WO2021017273A1 - User account generation method and apparatus, medium, and computer device - Google Patents

User account generation method and apparatus, medium, and computer device Download PDF

Info

Publication number
WO2021017273A1
WO2021017273A1 PCT/CN2019/117003 CN2019117003W WO2021017273A1 WO 2021017273 A1 WO2021017273 A1 WO 2021017273A1 CN 2019117003 W CN2019117003 W CN 2019117003W WO 2021017273 A1 WO2021017273 A1 WO 2021017273A1
Authority
WO
WIPO (PCT)
Prior art keywords
polyphonic
user
name information
user account
user name
Prior art date
Application number
PCT/CN2019/117003
Other languages
French (fr)
Chinese (zh)
Inventor
孙强
殷兰兰
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021017273A1 publication Critical patent/WO2021017273A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes

Definitions

  • this application provides a user account generation method, device, medium and computer equipment.
  • the user does not need to actively input the user name in pinyin form, which can reduce the user’s need to set the user name. Operation, shorten the registration process of user accounts.
  • the embodiments of the present application provide a computer non-volatile readable storage medium according to the third aspect, on which a computer program is stored, and when the program is executed by a processor, the user account generation method described above is implemented.
  • Storage device for storing one or more programs
  • the pronunciation pinyin determining submodule 131 is used to determine X phonetic pinyins corresponding to the polyphonic Chinese character when the user name information contains a polyphonic Chinese character, where X is a positive integer greater than 1;

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

A user account generation method and apparatus, a computer storage medium and a computer device. Said method comprises: acquiring user name information inputted by a user (S110); determining whether the user name information contains a Chinese character having multiple pronunciations, said Chinese character being a Chinese character corresponding to at least two pinyin pronunciations, of which at least two pinyin pronunciations are different from each other (S120); if the user name information contains a Chinese character having multiple pronunciations, generating N user account candidates according to the user name information, and presenting the N user account candidates in an account candidate box, N being equal to the product of the number of the respective pinyin pronunciations corresponding to each of all the Chinese characters having multiple pronunciations, and N being a positive integer greater than 1 (S130); and receiving a user account confirmation instruction from the user, and taking the user account candidate corresponding to the user account confirmation instruction as a user account of the user (S140). The solution above reduces operations of setting a user name by a user, shortening the process of registering a user account.

Description

用户账号生成方法、装置、介质和计算机设备User account generating method, device, medium and computer equipment
本申请要求于2019年07月30日提交中国专利局、申请号为201910695526.9、申请名称为“用户账号生成方法、装置、介质和计算机设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on July 30, 2019, the application number is 201910695526.9, and the application name is "user account generation method, device, medium and computer equipment", the entire content of which is incorporated by reference In this application.
技术领域Technical field
本申请涉及计算机领域,具体而言,本申请涉及一种用户账号生成方法、装置、介质和计算机设备。This application relates to the computer field. Specifically, this application relates to a method, device, medium and computer equipment for generating a user account.
背景技术Background technique
在一些应用场景中,比如注册用户账号的应用场景中,用户需要自己设置一个用户名,同时系统会将该用户名中的中文分别替换为与其对应拼音,从而组成一个拼音形式的用户名,然后系统就将这个用户名作为用户的用户账号。但是目前如果检测发现用户输入的用户名中包含了多音字,就需要提示用户自行输入拼音形式的用户名,然而用户输入的速度比较慢,并且当用户想要设置的用户名比较长时,相应的拼音形式的用户名就会更长,这会使得设置用户名的操作变得繁琐,用户账户的注册过程也被延长了。In some application scenarios, such as the application scenario of registering a user account, the user needs to set a user name, and the system will replace the Chinese in the user name with its corresponding pinyin to form a user name in pinyin form, and then The system uses this username as the user's user account. However, if it is detected that the user name entered by the user contains polyphonic characters, the user needs to be prompted to enter the user name in pinyin form. However, the user input speed is relatively slow, and when the user wants to set a long user name, the corresponding The user name in pinyin form will be longer, which will make the operation of setting the user name cumbersome, and the registration process of the user account has also been extended.
发明内容Summary of the invention
本申请针对现有技术的缺点,提供了一种用户账号生成方法、装置、介质和计算机设备,在本申请技术方案中,不需要用户主动输入拼音形式的用户名,能够减少用户设置用户名的操作,缩短用户账户的注册过程。In view of the shortcomings of the prior art, this application provides a user account generation method, device, medium and computer equipment. In the technical solution of this application, the user does not need to actively input the user name in pinyin form, which can reduce the user’s need to set the user name. Operation, shorten the registration process of user accounts.
能够在用户输入的用户名包含多音汉字时,基于用户输入的用户名主动向用户提供用户账号候选项,It can actively provide users with user account candidates based on the user name entered by the user when the user name entered by the user contains polyphonic Chinese characters.
本申请实施例根据第一方面提供了一种用户账号生成方法,包括:The embodiments of the present application provide a user account generation method according to the first aspect, including:
获取用户输入的用户名信息;Obtain the user name information entered by the user;
判断所述用户名信息中是否包含多音汉字,所述多音汉字是对应有至少两个读音拼音,且所述至少两个读音拼音之间各不相同的汉字;Determining whether the user name information contains polyphonic Chinese characters, the polyphonic Chinese characters corresponding to at least two pronunciation pinyin, and the at least two pronunciation pinyins are different from each other;
若所述用户名信息中包含多音汉字,则根据所述用户名信息生成N个用 户账号候选项,将所述N个用户账号候选项展示在账号候选框中,其中,N等于所有多音汉字各自对应的读音拼音数量之间的乘积,N是大于1的正整数;If the user name information contains polyphonic Chinese characters, N user account candidates are generated according to the user name information, and the N user account candidates are displayed in the account candidate box, where N is equal to all polyphonic characters The product of the number of phonetic pronunciations corresponding to each Chinese character, N is a positive integer greater than 1;
接收用户的用户账号确认指令,将与所述用户账号确认指令对应的用户账号候选项作为所述用户的用户账号。The user account confirmation instruction of the user is received, and the user account candidates corresponding to the user account confirmation instruction are used as the user account of the user.
本申请实施例根据第二方面提供了一种用户账号生成装置,包括:The embodiments of the present application provide a user account generation device according to the second aspect, including:
用户名获取模块,用于获取用户输入的用户名信息;The user name acquisition module is used to acquire the user name information entered by the user;
判断模块,用于判断所述用户名信息中是否包含多音汉字,所述多音汉字是对应有至少两个读音拼音,且所述至少两个读音拼音之间各不相同的汉字;A judging module for judging whether the user name information contains polyphonic Chinese characters, the polyphonic Chinese characters corresponding to at least two pronunciation pinyin, and the at least two pronunciation pinyins are different from each other;
候选框展示模块,用于当所述用户名信息中包含多音汉字时,根据所述用户名信息生成N个用户账号候选项,将所述N个用户账号候选项展示在账号候选框中,其中,N等于所有多音汉字各自对应的读音拼音数量之间的乘积,N是大于1的正整数;The candidate frame display module is used to generate N user account candidates according to the user name information when the user name information contains polyphonic Chinese characters, and display the N user account candidates in the account candidate frame, Among them, N is equal to the product of the phonetic numbers of all polyphonic Chinese characters, and N is a positive integer greater than 1;
用户账号确定模块,用于接收用户的用户账号确认指令,将与所述用户账号确认指令对应的用户账号候选项作为所述用户的用户账号。The user account determination module is configured to receive the user account confirmation instruction of the user, and use the user account candidates corresponding to the user account confirmation instruction as the user account of the user.
本申请实施例根据第三方面提供了一种计算机非易失性可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述的用户账号生成方法。The embodiments of the present application provide a computer non-volatile readable storage medium according to the third aspect, on which a computer program is stored, and when the program is executed by a processor, the user account generation method described above is implemented.
本申请实施例根据第四方面提供了一种计算机设备,该计算机设备包括:The embodiments of the present application provide a computer device according to the fourth aspect, and the computer device includes:
一个或多个处理器;One or more processors;
存储装置,用于存储一个或多个程序;Storage device for storing one or more programs;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现上述的用户账号生成方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the aforementioned user account generation method.
在本申请实施例中,能够实现基于用户输入的用户名主动为用户展示用户账号候选项而不需要用户输入拼音形式的用户名,从而减少用户设置用户名的操作,缩短用户账户的注册过程。In the embodiment of the present application, it is possible to actively display user account candidates based on the user name entered by the user without requiring the user to input the user name in pinyin form, thereby reducing the user's operation of setting the user name and shortening the user account registration process.
本申请附加的方面和优点将在下面的描述中部分给出,这些将从下面的描述中变得明显,或通过本申请的实践了解到。The additional aspects and advantages of this application will be partly given in the following description, which will become obvious from the following description, or be understood through the practice of this application.
附图说明Description of the drawings
本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中 将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present application will become obvious and easy to understand from the following description of the embodiments in conjunction with the accompanying drawings, in which:
图1为本申请一个实施例的用户账号生成方法流程示意图;FIG. 1 is a schematic flowchart of a method for generating a user account according to an embodiment of the application;
图2为本申请一个实施例的用户账号候选项展示效果的示意图;2 is a schematic diagram of the display effect of user account candidates according to an embodiment of the application;
图3为本申请另一个实施例的用户账号候选项展示效果的示意图;3 is a schematic diagram of the display effect of user account candidates according to another embodiment of the application;
图4为本申请又一个实施例的用户账号候选项展示效果的示意图;4 is a schematic diagram of the display effect of user account candidates according to another embodiment of this application;
图5为本申请一个实施例的用户账号生成装置的结构示意图;FIG. 5 is a schematic structural diagram of a user account generating apparatus according to an embodiment of the application;
图6为本申请一种实施例的计算机设备的结构示意图。Fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the application.
具体实施方式Detailed ways
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本申请,而不能解释为对本申请的限制。The embodiments of the present application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals indicate the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the drawings are exemplary, and are only used to explain the present application, and cannot be construed as a limitation to the present application.
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式,这里使用的“第一”、“第二”仅用于区别同一技术特征,并不对该技术特征的顺序和数量等加以限定。应该进一步理解的是,本申请的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。Those skilled in the art can understand that, unless specifically stated otherwise, the singular forms "a", "an", "the" and "the" used herein may also include plural forms. The "first" and "second" used herein "It is only used to distinguish the same technical feature, and does not limit the order and quantity of the technical feature. It should be further understood that the term "comprising" used in the specification of this application refers to the presence of the described features, integers, steps, operations, elements, and/or components, but does not exclude the presence or addition of one or more other features, Integers, steps, operations, elements, components, and/or groups thereof.
本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本申请所属领域中的普通技术人员的一般理解相同的意义。Those skilled in the art can understand that, unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meaning as those commonly understood by those of ordinary skill in the art to which this application belongs.
本申请提供了一种用户账号生成方法,需要说明的是,本申请技术方案的执行主体可以根据技术方案的具体应用场景来确定。一种可能实施方式中,执行主体可以是智能终端,比如智能手机、平板电脑、笔记本电脑以及传统PC等,智能终端获取用户通过智能终端提供的输入框输入用户名信息,然后智能终端基于该用户名信息来确定与其相应的用户账号。另一种可能实施方式中,执行主体可以是远程服务器和智能终端,二者相互配合从而实现基于用户名信息确定与其相应的用户账号,比如远程服务器接收智能终端上传的用户在智能 终端上输入的用户名信息,然后基于该用户名信息生成用户账号候选项并发送给智能终端,由智能终端展示给用户,智能终端响应于接收到的用户下发的用户账号确认指令确定用户账号,或者是远程服务器接收智能终端上传的用户通过智能终端下发的用户账号确认指令,响应于该指令确定用户账号。This application provides a method for generating a user account. It should be noted that the execution subject of the technical solution of this application can be determined according to the specific application scenario of the technical solution. In a possible implementation manner, the execution subject may be a smart terminal, such as a smart phone, a tablet computer, a notebook computer, and a traditional PC. The smart terminal obtains the user name information entered by the user through the input box provided by the smart terminal, and then the smart terminal is based on the user Name information to determine the corresponding user account. In another possible implementation, the execution body may be a remote server and a smart terminal, which cooperate with each other to determine the corresponding user account based on user name information. For example, the remote server receives the input uploaded by the smart terminal from the user on the smart terminal. User name information, and then generate user account candidates based on the user name information and send them to the smart terminal. The smart terminal displays to the user. The smart terminal determines the user account in response to the received user account confirmation instruction issued by the user, or remotely The server receives the user account confirmation instruction issued by the user through the smart terminal uploaded by the smart terminal, and determines the user account in response to the instruction.
以下以智能终端作为技术方案执行主体并结合附图对本申请的具体实施方式进行详细介绍。如图1所示,本申请实施例提供的用户账号生成方法包括以下步骤:Hereinafter, the specific implementation manner of the present application will be introduced in detail with the smart terminal as the main body of the implementation of the technical solution and the accompanying drawings. As shown in Figure 1, the user account generation method provided by the embodiment of the present application includes the following steps:
S110:获取用户输入的用户名信息;S110: Obtain user name information input by the user;
S120:判断所述用户名信息中是否包含多音汉字,所述多音汉字是对应有至少两个读音拼音,且所述至少两个读音拼音之间各不相同的汉字;S120: Determine whether the user name information contains polyphonic Chinese characters, the polyphonic Chinese characters correspond to at least two pronunciation pinyin, and the at least two pronunciation pinyins are different from each other;
S130:若所述用户名信息中包含多音汉字,则根据所述用户名信息生成N个用户账号候选项,将所述N个用户账号候选项展示在账号候选框中,其中,N等于所有多音汉字各自对应的读音拼音数量之间的乘积,N是大于1的正整数;S130: If the user name information contains polyphonic Chinese characters, generate N user account candidates according to the user name information, and display the N user account candidates in the account candidate box, where N is equal to all The product of the number of pronunciation pinyin corresponding to each polyphonic Chinese character, N is a positive integer greater than 1;
S140:接收用户的用户账号确认指令,将与所述用户账号确认指令对应的用户账号候选项作为所述用户的用户账号。S140: Receive a user account confirmation instruction of the user, and use a user account candidate corresponding to the user account confirmation instruction as the user account of the user.
在本实施例中,用户要注册用户账号时,在智能终端展示的用户名文本框上输入用户名信息,智能终端在检测到用户输入的用户名信息后,就获取该用户名信息,其中,用户输入的用户名信息可以包含有汉字、英文字符、数字和/或部分符号,比如下划线等。还需要说明的是,用户在输入时可能是一次性输入完整的用户名,也可能是分多次输入文本才完成整个用户名的输入,比如,用户要输入完整的用户名是“重单”,用户可能是先输入“重”再输入“单”,也可能是一次性输入“重单”,因此在应用技术方案时,获取用户名信息的方式可以是只要检测到用户有在用户名文本框中输入了用户名信息,就获取该用户名信息并自动执行方案的后续步骤,还可以是等用户输入完整文本才获取用户名信息以及执行方案的后续步骤,其中,确定用户是否完成完整文本的输入可以是检测到用户点击了其他信息输入框,或者用户触发了确认完成输入的指令,比如将点击“enter”键设置为触发确认完成输入的指令等。In this embodiment, when a user wants to register a user account, he enters user name information in the user name text box displayed on the smart terminal. After detecting the user name information entered by the user, the smart terminal obtains the user name information, where: The user name information input by the user may include Chinese characters, English characters, numbers and/or partial symbols, such as underscores. It should also be noted that the user may enter the complete user name at one time, or enter the text multiple times to complete the input of the entire user name. For example, if the user wants to enter the complete user name, it is "re-order" , The user may enter "re" first and then "single", or it may be a one-time input of "repeated order", so when applying technical solutions, the way to obtain user name information can be as long as the user is detected in the user name text If the user name information is entered in the box, the user name information is obtained and the subsequent steps of the plan are automatically executed. It can also wait for the user to enter the complete text to obtain the user name information and execute the subsequent steps of the plan, in which it is determined whether the user has completed the complete text The input can be the detection that the user has clicked on other information input boxes, or the user has triggered an instruction to confirm the completion of the input, for example, clicking the "enter" key is set to trigger the instruction to confirm the completion of the input.
接着智能终端判断用户名信息中是否包含了多音汉字,需要说明的是,汉 字的读音由两部分构成,即声调和拼音(下文称为读音拼音),如多音汉字“重”的其中一个读音是读第四声调的“zhong”,“zhong”即是汉字“重”的其中一个读音拼音。其中,本实施例中所说的多音汉字、多音字不是指有两个或两个以上的读音的汉字,尽管不同的读音表义不同,用法不同,词性也不同,但是在本实施例中只需要展示汉字对应的读音拼音,不需要考虑汉字的读音中的声调、汉字的表义、用法以及词性等,只需要将多音汉字对应的不同的拼音显示出来供用户选择,所以本实施例中所述多音汉字是对应有至少两个读音拼音,且所述至少两个读音拼音之间各不相同的汉字。“所述至少两个读音拼音之间各不相同”是指,从多音汉字的所有读音拼音中任意取两个读音拼音进行比较,两个读音拼音都是不相同的。Then the smart terminal judges whether the user name information contains polyphonic Chinese characters. It should be noted that the pronunciation of Chinese characters consists of two parts, namely tone and pinyin (hereinafter referred to as pronunciation pinyin), such as one of the polyphonic Chinese characters "heavy" The pronunciation is "zhong" in the fourth tone. "zhong" is one of the pronunciations of the Chinese character "重". Among them, the polyphonic Chinese characters and polyphonic characters mentioned in this embodiment do not refer to Chinese characters with two or more pronunciations. Although different pronunciations have different meanings, different usages, and different parts of speech, in this embodiment It only needs to display the pronunciation pinyin corresponding to the Chinese character, without considering the tones in the pronunciation of the Chinese character, the meaning, usage, and part of speech of the Chinese character. It only needs to display the different pinyin corresponding to the polyphonic Chinese character for the user to choose, so this embodiment The polyphonic Chinese characters are Chinese characters corresponding to at least two pronunciation pinyin, and the at least two pronunciation pinyins are different from each other. "The at least two pronunciation pinyins are different from each other" means that two pronunciation pinyins are randomly selected from all the pronunciation pinyins of a polyphonic Chinese character for comparison, and the two pronunciation pinyins are not the same.
比如汉字“重”有两个读音,一个是读第四声调的“zhong”,另一个是读第二声调的“chong”,可以看出“zhong”和“chong”这两个读音拼音不相同,所以汉字“重”属于多音汉字,而汉字“单”有三个读音,分别是读第一声调的“dan”、读第四声调的“shan”和读第二声调的“chan”,同理可以确定汉字“单”属于多音汉字,汉字“好”有两个读音,一个是读第三声调的“hao”,另一个是读第四声调的“hao”,可以看出两个读音中的读音拼音都是“hao”,那么汉字“好”不属于多音汉字;而汉字“薄”有三个读音,分别是读第二声调的“bo”、读第四声调的“bo”和读第二声调的“bao”,虽然前两个读音的读音拼音一致,但是第三个读音的读音拼音与前两个不同,所以汉字“薄”属于多音汉字,但是其只有两个读音拼音,即“bo”和“bao”。For example, the Chinese character "重" has two pronunciations, one is "zhong" in the fourth tone, and the other is "chong" in the second tone. It can be seen that the two pronunciations of "zhong" and "chong" are different in pinyin , So the Chinese character "重" is a polyphonic Chinese character, and the Chinese character "single" has three pronunciations, namely "dan" in the first tone, "shan" in the fourth tone, and "chan" in the second tone. Reasoning can confirm that the Chinese character "single" is a polyphonic Chinese character. The Chinese character "好" has two pronunciations, one is "hao" in the third tone, and the other is "hao" in the fourth tone. Two pronunciations can be seen The pronunciation in Pinyin is "hao", so the Chinese character "好" is not a polyphonic Chinese character; and the Chinese character "Bo" has three pronunciations, namely "bo" in the second tone, "bo" in the fourth tone, and In the second tone of "bao", although the pronunciation of the first two pronunciations is the same, the pronunciation of the third pronunciation is different from the first two, so the Chinese character "Bo" is a polyphonic Chinese character, but it has only two pronunciations , Namely "bo" and "bao".
如果经过判断确定该用户名信息中包含了多音汉字,就将用户名信息中的多音汉字分别替换为与其对应的读音的拼音形式,即读音拼音,从而生成用户账号候选项,之后智能终端将生成的用户账号候选项展示在账号候选框中,由用户进行选择。比如,如图2所示,用户输入的用户名信息是汉字“重”,经检测确定汉字“行”是多音字,其读音分别有第四声调的“zhong”和第二声调的“chong”,那么就将“重”替换为“zhong”以得到一个用户账号候选项,另外再将“重”替换为“chong”得到另一个用户账号候选项,之后将得到两个用户账号候选项“zhong”和“chong”展示在账号候选框中。If it is determined after judgment that the user name information contains polyphonic Chinese characters, the polyphonic Chinese characters in the user name information are replaced with the corresponding pronunciation of the phonetic form, that is, the pronunciation pinyin, thereby generating user account candidates, and then the smart terminal The generated user account candidates are displayed in the account candidate box for selection by the user. For example, as shown in Figure 2, the user name information entered by the user is the Chinese character "重", and the Chinese character "Xing" is determined to be a polyphonic character, and its pronunciation has the fourth tone of "zhong" and the second tone of "chong". , Then replace "重" with "zhong" to get a user account candidate, and then replace "重" with "chong" to get another user account candidate, and then you will get two user account candidates "zhong" "And "chong" are displayed in the account candidate box.
用户从账号候选框中可以看到N个用户账号候选项,其中,N等于所有 多音汉字各自对应的读音拼音数量之间的乘积,N是大于1的正整数,比如,共确定有两个多音汉字“薄”和“重”,“薄”的读音拼音是“bo”和“bao”,“重”的读音拼音是“chong”和“zhong”,那么可以生成N(个)=2(个)*2(个)=4(个0),即“bochong”、“bozhong”、“baochong”、“baozhong”。The user can see N user account candidates from the account candidate box, where N is equal to the product of the number of pronunciation pinyin corresponding to all polyphonic Chinese characters, and N is a positive integer greater than 1, for example, there are two The polyphonic Chinese characters "Bo" and "重", the pronunciation of "Bo" is "bo" and "bao", and the pronunciation of "重" is "chong" and "zhong", then N (pieces) = 2 (Pieces) * 2 (pieces) = 4 (pieces 0), namely "bochong", "bozhong", "baochong", "baozhong".
用户需要从中确定与其输入的多音汉字对应的读音的用户账号候选项,比如用户对某一个用户账号候选项执行预设触发操作,如鼠标点击、触摸点击等的操作以触发用户账号确认指令。当智能终端接收到用户账号确认指令之后,就将与该用户账号确认指令对应的用户账号候选项作为用户的用户账号,并将该用户账号展示在用户账号文本框中。The user needs to determine the user account candidates corresponding to the pronunciation of the input polyphonic Chinese characters. For example, the user performs a preset trigger operation on a certain user account candidate, such as mouse clicks, touch clicks, etc., to trigger user account confirmation instructions. After the smart terminal receives the user account confirmation instruction, it uses the user account candidate corresponding to the user account confirmation instruction as the user's user account, and displays the user account in the user account text box.
本实施例中,能够主动为用户提供用户账号候选项,不需要用户输入拼音形式的用户名,从而减少用户设置用户名的操作,缩短用户账户的注册过程。In this embodiment, it is possible to actively provide users with user account candidates without requiring the user to input the user name in pinyin form, thereby reducing the user's operation of setting the user name and shortening the user account registration process.
在一个实施例中,步骤S130中,根据所述用户名信息生成N个用户账号候选项,包括:In one embodiment, in step S130, generating N user account candidates according to the user name information includes:
S131:若所述用户名信息中包含一个多音汉字,则确定所述多音汉字对应的X个读音拼音,其中,X是大于1的正整数;S131: If the user name information contains a polyphonic Chinese character, determine X pronunciation pinyin corresponding to the polyphonic Chinese character, where X is a positive integer greater than 1;
S132:将各个读音拼音分别替换所述用户名信息中的多音汉字,生成X个用户账号候选项。S132: Replace the polyphonic Chinese characters in the user name information with each pronunciation pinyin, and generate X user account candidates.
在本实施例中,经过步骤S120能够确定用户名信息中包含了多少个多音汉字,如果确定用户输入的用户名信息中只包含一个多音汉字,则只需要进一步确定多音汉字对应的X个读音对应的X个读音拼音,然后将各个读音拼音分别替换掉用户名信息中的多音汉字,从而生成X个用户账号候选项,其中,X是大于1的正整数。In this embodiment, after step S120, it is possible to determine how many polyphonic Chinese characters are contained in the user name information. If it is determined that the user name information input by the user only contains one polyphonic Chinese character, it is only necessary to further determine the X corresponding to the polyphonic Chinese character. X pronunciation pinyin corresponding to each pronunciation, and then each pronunciation pinyin is replaced with polyphonic Chinese characters in the user name information, thereby generating X user account candidates, where X is a positive integer greater than 1.
具体地,用户名信息中除了确定出来的多音汉字,可能还包含了其他字符、如非多音汉字、数字、英文和/或其他字符,如果用户名信息中除了多音汉字之外的其他字符中还包含了非多音汉字,还需要确定该非多音汉字对应的读音拼音,然后该读音拼音和多音汉字的至少两个读音拼音替换掉用户名信息中的与其相应的汉字,比如用户输入的用户名信息是“张重”,其中汉字“张”是非多音汉字,汉字“重”是多音汉字,其有两个读音拼音,即“zhong”和“chong”,那么可以生成的两个用户账号候选项,分别是“zhangchong”以及 “zhangzhong”。Specifically, in addition to the determined polyphonic Chinese characters, the user name information may also contain other characters, such as non-polyphonic Chinese characters, numbers, English and/or other characters. If the user name information contains other characters other than polyphonic Chinese characters The characters also contain non-polyphonic Chinese characters. It is also necessary to determine the pronunciation pinyin corresponding to the non-polyphonic Chinese character, and then at least two pronunciation pinyins of the pronunciation pinyin and the polyphonic Chinese character replace the corresponding Chinese characters in the user name information, such as The user name information entered by the user is "Zhang Zhong", in which the Chinese character "张" is a non-polyphonic Chinese character, and the Chinese character "重" is a polyphonic Chinese character, which has two pronunciations, namely "zhong" and "chong", then it can be generated The two user account candidates are "zhangchong" and "zhangzhong".
进一步地,步骤S130中,根据所述用户名信息生成至少两个用户账号候选项,还包括:Further, in step S130, generating at least two user account candidates according to the user name information further includes:
若所述用户名信息中包含的多音汉字的个数大于一个,则确定各个多音汉字分别对应的读音拼音;If the number of polyphonic Chinese characters contained in the user name information is greater than one, determine the pronunciation pinyin corresponding to each polyphonic Chinese character;
按照预设组合规则将所述用户名信息中的多音汉字替换为与其对应的读音拼音,生成Y个用户账号候选项,其中,Y等于所有多音汉字各自对应的读音拼音数量之间的乘积,Y是大于3的正整数。According to the preset combination rules, replace the polyphonic Chinese characters in the user name information with their corresponding pronunciation pinyin, and generate Y user account candidates, where Y is equal to the product of the number of corresponding pronunciation pinyins of all polyphonic Chinese characters , Y is a positive integer greater than 3.
具体地,如果用户名信息中包含的多音汉字的个数大于一个,则在需要按照预设组合规则将用户名信息中的多音汉字替换为与其对应的读音拼音,生成Y个用户账号候选项,其中,Y等于所有多音汉字各自对应的读音拼音数量之间的乘积,Y是大于3的正整数,比如,如图3所示,用户输入的用户名信息是“重单”,其中的“重”和“单”都是多音汉字,从上述例子中可知,汉字“重”对应的读音拼音有“zhong”和“chong”,汉字“单”对应的读音拼音有“dan”、“shan”和“chan”,将这两个汉字对应的读音拼音分别进行组合以及替换用户名信息中对应的汉字,可以得到6个用户账号候选项,分别是“zhongchan”、“zhongdan”、“zhongshan”、“chongchan”、“chongdan”以及“chongshan”。Specifically, if the number of polyphonic Chinese characters contained in the user name information is greater than one, it is necessary to replace the polyphonic Chinese characters in the user name information with the corresponding pronunciation pinyin according to the preset combination rule to generate Y user account candidates Item, where Y is equal to the product of the number of pronunciation pinyin corresponding to all polyphonic Chinese characters, and Y is a positive integer greater than 3, for example, as shown in Figure 3, the user name information entered by the user is "duplicate", where "重" and "single" are both polyphonic Chinese characters. From the above examples, we can see that the Chinese character "重" corresponds to the pronunciation of "zhong" and "chong", and the Chinese character "single" corresponds to the pronunciation of "dan", "Shan" and "chan", respectively combine the pronunciation and pinyin of these two Chinese characters and replace the corresponding Chinese characters in the user name information, you can get 6 user account candidates, namely "zhongchan", "zhongdan", and " "zhongshan", "chongchan", "chongdan" and "chongshan".
更进一步地,步骤S132:将各个读音拼音分别替换所述用户名信息中的多音汉字,生成X个用户账号候选项,包括:Furthermore, step S132: replacing the polyphonic Chinese characters in the user name information with each pronunciation pinyin respectively to generate X user account candidates, including:
将各个读音拼音分别替换所述用户名信息中的多音汉字,得到X个初始候选项;Substituting each pronunciation pinyin for the polyphonic Chinese characters in the user name information to obtain X initial candidates;
将各个初始候选项与获取到的预设长度的随机码进行拼接,生成X个用户账号候选项。Each initial candidate item is spliced with the obtained random code of preset length to generate X user account candidates.
考虑到用户之间注册的不同的用户名可能只是音调不同但读音拼音相同,比如用户名“张山”和用户名“章珊”转换为拼音形式之后都是“zhangshan”,为了能够区别不同的用户账号,可以先将用户名信息中的汉字都替换为读音拼音后得到的初始用户账号候选项,即初始候选项,然后在该初始用户账号候选项中的由开发人员预先设置的拼接位置,比如用户名信息前面、后面或者中间 等位置拼接上预设长度的随机码,从而得到最终的需要进行展示的用户账号候选项。比如,用户名“张山”,将用户名信息中各个汉字替换为其对应的读音拼音可以得到初始用户账号候选项“zhangshan”,接着在“zhangshan”的后面位置拼接上3位随机码“123”,得到最终的用户账号候选项为“zhangshan123”,而对用户名“章珊”进行上述处理之后,可以得到最终的用户账号候选项为“zhangshan456”,这样就能够区分开两个用户账号了。Taking into account that the different user names registered between users may only have different pitches but the same pronunciation, for example, the user name "Zhangshan" and the user name "章珊" are both "zhangshan" after being converted to the pinyin form, in order to be able to distinguish the different For the user account, you can first replace all Chinese characters in the user name information with the initial user account candidates obtained after the pronunciation pinyin, that is, the initial candidate, and then in the initial user account candidate, the splicing position preset by the developer, For example, a random code of a preset length is spliced in front, back, or middle of the user name information to obtain the final user account candidates that need to be displayed. For example, for the user name "Zhangshan", replace each Chinese character in the user name information with its corresponding pronunciation pinyin to get the initial user account candidate "zhangshan", and then splice the 3-digit random code "123" at the back of "zhangshan" ", the final user account candidate is "zhangshan123", and after the user name "张珊" is processed above, the final user account candidate is "zhangshan456", which can distinguish the two user accounts .
而假如用户名信息中的多音汉字大于一个,那么先按照预设组合规则将所述用户名信息中的多音汉字替换为与其对应的读音拼音,生成Y个初始用户账号候选项,再在各个初始用户账号候选项中的由开发人员预先设置的拼接位置拼接上预设长度的随机码,从而得到最终的用户账号候选项,展示效果请参考图4。If there is more than one polyphonic Chinese character in the user name information, first replace the polyphonic Chinese character in the user name information with the corresponding pronunciation pinyin according to the preset combination rules to generate Y initial user account candidates, and then In each initial user account candidate, the splicing position preset by the developer is spliced with a random code of a preset length to obtain the final user account candidate. Please refer to Figure 4 for the display effect.
在一个实施例中,步骤S120:判断所述用户名信息中是否包含多音汉字,之后还包括:In one embodiment, step S120: determining whether the user name information contains polyphonic Chinese characters, and then further including:
S210:若所述用户名信息中不包含多音汉字,则确定所述用户名信息中包含的汉字对应的读音拼音;S210: If the user name information does not include polyphonic Chinese characters, determine the pronunciation pinyin corresponding to the Chinese characters included in the user name information;
S220:将所述用户名信息中包含的汉字替换为与其对应的读音拼音,生成用户账号。S220: Replace the Chinese characters included in the user name information with their corresponding pronunciation pinyin to generate a user account.
在本实施例中,如果用户名信息中不包含多音汉字,那么直接将用户名信息中包含的汉字替换为与其对应的读音拼音,生成用户账号,而不需要向用户展示用户账号候选项。In this embodiment, if the user name information does not contain polyphonic Chinese characters, the Chinese characters included in the user name information are directly replaced with the corresponding pronunciation pinyin to generate the user account without showing the user account candidates.
在一个实施例中,步骤S120:判断所述用户名信息中是否包含多音汉字,包括:In one embodiment, step S120: judging whether the user name information contains polyphonic Chinese characters, including:
S121:将所述用户名信息拆分为若干个单字符,判断所述若干个单字符中是否包含汉字字符;S121: Split the user name information into several single characters, and determine whether the several single characters contain Chinese characters;
S122:若所述若干个单字符中有包含汉字字符,则查询预设多音字表;S122: if there are Chinese characters in the plurality of single characters, query the preset polyphone table;
S123:如果从所述预设多音字表查询到与所述汉字字符对应的多音汉字,则确定所述用户名信息中包含多音汉字;S123: If the polyphonic Chinese character corresponding to the Chinese character is found from the preset polyphonic character table, it is determined that the user name information contains the polyphonic Chinese character;
S124:如果从所述预设多音字表没有查询到与所述汉字字符对应的多音汉字,则确定所述用户名信息中不包含多音汉字。S124: If the polyphonic Chinese character corresponding to the Chinese character is not found from the preset polyphonic character table, determine that the user name information does not include the polyphonic Chinese character.
在本实施例中,智能终端获取了用户名信息之后,将用户名信息拆分为若干个单字符,通过ASCII(American Standard Code for Information Interchange:美国信息交换标准代码)码表判断该若干个单字符中是否有汉字字符,如果确定有汉字字符,那么就再查询预设多音字表。In this embodiment, after obtaining the user name information, the smart terminal splits the user name information into a number of single characters, and judges the number of single characters through the ASCII (American Standard Code for Information Interchange) code table. Whether there are Chinese characters in the characters, if it is determined that there are Chinese characters, then query the preset polyphone table.
预设多音字表记录着多个多音汉字和各个多音汉字对应的所有读音拼音。The preset polyphonic character table records multiple polyphonic Chinese characters and all the pronunciation pinyin corresponding to each polyphonic Chinese character.
如果从预设多音字表能够查询到与汉字字符对应的多音汉字,那么可以确定用户名信息中包含多音汉字,如果从预设多音字表没有查询到与汉字字符对应的多音汉字,那么可以确定用户名信息中不包含多音汉字。If the polyphonic Chinese character corresponding to the Chinese character can be queried from the preset polyphonic character table, then it can be determined that the user name information contains the polyphonic Chinese character. If the polyphonic Chinese character corresponding to the Chinese character is not queried from the preset polyphonic character table, Then it can be determined that the user name information does not contain polyphonic Chinese characters.
在一个实施例中,步骤S122中,查询预设多音字表,之前包括:In one embodiment, in step S122, querying the preset polyphonic word table includes:
采集多个初始多音汉字,确定各个初始多音汉字对应的读音拼音;Collect multiple initial polyphonic Chinese characters and determine the pronunciation pinyin corresponding to each initial polyphonic Chinese character;
在将所述多个初始多音汉字和其对应的读音拼音录入预设多音字表时,若初始多音汉字的所有读音拼音中有至少两个读音拼音相同,则将所述至少两个相同的读音拼音合并为一个读音拼音;若初始多音汉字的所有读音拼音相同,则不将所述初始多音汉字录入所述预设多音字表。When the plurality of initial polyphonic Chinese characters and their corresponding pronunciation pinyin are recorded into the preset polyphonic character table, if at least two pronunciation pinyins of all the initial polyphonic Chinese characters are the same, then the at least two are identical The pronunciation pinyin of is merged into one pronunciation pinyin; if all the pronunciation pinyins of the initial polyphonic Chinese character are the same, the initial polyphonic Chinese character is not entered into the preset polyphonic character table.
具体地,多音字表需要预先设置。具体是先从所有汉字中找出初始多音汉字,以及各个初始多音汉字对应的所有读音拼音,然后录入表格从而得到多音字表。需要说明的是,本实施例中所述采集到的初始多音汉字是指通常所认为的有两个或两个以上的读音的汉字,比如,汉字“薄”有三个读音,“分别是读第二声调的“bo”、读第四声调的“bo”和读第二声调的“bao”,则其对应有“bo”、“bo”和“bao”共三个读音拼音。Specifically, the polyphonic word table needs to be preset. Specifically, first find out the initial polyphonic Chinese character and all the pronunciation pinyin corresponding to each initial polyphonic Chinese character from all the Chinese characters, and then enter the table to obtain the polyphonic character table. It should be noted that the initial polyphonic Chinese characters collected in this embodiment refer to Chinese characters that are generally considered to have two or more pronunciations. For example, the Chinese character "Bo" has three pronunciations, "respectively read The second tone "bo", the fourth tone "bo", and the second tone "bao" correspond to three pronunciations of "bo", "bo" and "bao".
本实施例考虑到有的多音字的不同读音之间只是声调不同,但是读音拼音是相同的,因此将读音拼音相同的读音合并为一个,减少在判断时的数据匹配量,即,在将所述多个初始多音汉字和其对应的至少两个读音拼音录入预设多音字表时,若初始多音汉字的至少两个读音拼音中有至少两个读音拼音相同,则将所述至少两个相同的读音拼音合并为一个读音拼音。比如,初始多音汉字“好”有两个读音,一个是读第三声调的“hao”,另一个是读第四声调的“hao”,可以看出两个读音中的读音拼音都是“hao”,那么就将这两个读音拼音合并为一个,也就是说多音汉字“好”对应的读音拼音只有一个,即“hao”。This embodiment takes into account that the different pronunciations of some polyphonic characters are only different in tone, but the pronunciation pinyin is the same, so the pronunciations with the same pronunciation pinyin are merged into one to reduce the amount of data matching in the judgment, that is, when the When describing multiple initial polyphonic Chinese characters and their corresponding at least two pronunciation pinyin into the preset polyphonic character table, if at least two pronunciation pinyins of the initial polyphonic Chinese character are the same, then the at least two pronunciation pinyins are the same. The same pronunciation pinyin is merged into one pronunciation pinyin. For example, the initial polyphonic Chinese character "hao" has two pronunciations, one is "hao" in the third tone, and the other is "hao" in the fourth tone. It can be seen that the pronunciation in both pronunciations is " "hao", then these two pronunciation pinyin are merged into one, which means that there is only one pronunciation pinyin corresponding to the polyphonic Chinese character "好", namely "hao".
如果在经过上述合并操作后,初始多音汉字对应的读音拼音只剩下了一 个,那么就不将其作为多音汉字录入多音字表。If after the above-mentioned merging operation, there is only one pronunciation pinyin corresponding to the initial polyphonic Chinese character, it will not be recorded as a polyphonic Chinese character into the polyphonic character table.
优选地,考虑到初始多音汉字其实有很多,然而有部分初始多音汉字在日常使用中,只会用到其中一个读音,比如“她”通常只用到读第一声调的“ta”,另一读音,读第三声调的“jie”的使用频率非常低,甚至很多人都不知道“她”有读第三声调的“jie”这个读音。因此可以先确定每个初始多音汉字的各个读音的使用频率,如果初始多音汉字的某一读音使用频率低于预设频率阈值,则在将其录入多音字表的时候将该读音舍弃,比如“她”的“jie”读音使用频率很低,因此可以将“jie”这个读音舍弃。Preferably, considering that there are actually many initial polyphonic Chinese characters, there are some initial polyphonic Chinese characters that only use one of the pronunciations in daily use. For example, "she" is usually only used to pronounce the first tone of "ta". Another pronunciation, "jie" in the third tone is used very low, and many people don't even know that "she" has the pronunciation of "jie" in the third tone. Therefore, the use frequency of each pronunciation of each initial polyphonic Chinese character can be determined first. If the use frequency of a certain pronunciation of the initial polyphonic Chinese character is lower than the preset frequency threshold, the pronunciation will be discarded when it is entered into the polyphonic character table. For example, the pronunciation of "jie" in "she" is very low, so the pronunciation of "jie" can be discarded.
为了更好地理解本申请技术方案,本申请还提供了一种用户账号生成装置,如图5所示,包括以下模块:In order to better understand the technical solution of this application, this application also provides a user account generation device, as shown in Figure 5, including the following modules:
用户名获取模块110,用于获取用户输入的用户名信息;The user name obtaining module 110 is used to obtain user name information input by the user;
判断模块120,用于判断所述用户名信息中是否包含多音汉字,所述多音汉字是对应有至少两个读音拼音,且所述至少两个读音拼音之间各不相同的汉字;The judging module 120 is configured to judge whether the user name information contains polyphonic Chinese characters, the polyphonic Chinese characters corresponding to at least two pronunciation pinyin, and the at least two pronunciation pinyins are different from each other;
候选框展示模块130,用于当所述用户名信息中包含多音汉字时,根据所述用户名信息生成N个用户账号候选项,将所述N个用户账号候选项展示在账号候选框中,其中,N等于所有多音汉字各自对应的读音拼音数量之间的乘积,N是大于1的正整数;The candidate frame display module 130 is configured to generate N user account candidates according to the user name information when the user name information contains polyphonic Chinese characters, and display the N user account candidates in the account candidate frame , Where N is equal to the product of the phonetic numbers of all polyphonic Chinese characters, and N is a positive integer greater than 1;
用户账号确定模块140,用于接收用户的用户账号确认指令,将与所述用户账号确认指令对应的用户账号候选项作为所述用户的用户账号。The user account determination module 140 is configured to receive a user account confirmation instruction of the user, and use the user account candidates corresponding to the user account confirmation instruction as the user account of the user.
在一个实施例中,候选框展示模块130,包括:In one embodiment, the candidate frame display module 130 includes:
读音拼音确定子模块131,用于当所述用户名信息中包含一个多音汉字时,确定所述多音汉字对应的X个读音拼音,其中,X是大于1的正整数;The pronunciation pinyin determining submodule 131 is used to determine X phonetic pinyins corresponding to the polyphonic Chinese character when the user name information contains a polyphonic Chinese character, where X is a positive integer greater than 1;
候选项生成子模块132,用于将各个读音拼音分别替换所述用户名信息中的多音汉字,生成X个用户账号候选项。The candidate item generation sub-module 132 is configured to replace the polyphonic Chinese characters in the user name information with each pronunciation pinyin to generate X user account candidates.
进一步地,在一个实施例中候选项生成子模块132还用于:Further, in an embodiment, the candidate item generation sub-module 132 is also used to:
将各个读音拼音分别替换所述用户名信息中的多音汉字,得到X个初始候选项;Substituting each pronunciation pinyin for the polyphonic Chinese characters in the user name information to obtain X initial candidates;
将各个初始候选项与获取到的预设长度的随机码进行拼接,生成X个用户账号候选项。Each initial candidate item is spliced with the obtained random code of preset length to generate X user account candidates.
在一个实施例中,候选框展示模块130,还用于当所述用户名信息中包含的多音汉字的个数大于一个时,确定各个多音汉字分别对应的读音拼音,按照预设组合规则将所述用户名信息中的多音汉字替换为与其对应的读音拼音,生成Y个用户账号候选项,其中,Y等于所有多音汉字各自对应的读音拼音数量之间的乘积,Y是大于3的正整数。In one embodiment, the candidate frame display module 130 is further configured to determine the pronunciation pinyin corresponding to each polyphonic Chinese character when the number of polyphonic Chinese characters contained in the user name information is greater than one, according to a preset combination rule Replace the polyphonic Chinese characters in the user name information with their corresponding pronunciation pinyin to generate Y user account candidates, where Y is equal to the product of the number of pronunciation pinyins corresponding to all polyphonic Chinese characters, and Y is greater than 3. A positive integer.
在一个实施例中,本申请提供的用户账号生成装置还包括以下模块:In an embodiment, the user account generation device provided in this application further includes the following modules:
读音确定模块210,用于当所述用户名信息中不包含多音汉字时,确定所述用户名信息中包含的汉字对应的读音拼音;The pronunciation determining module 210 is configured to determine the pronunciation pinyin corresponding to the Chinese character contained in the user name information when the user name information does not contain polyphonic Chinese characters;
账号生成模块220,用于将所述用户名信息中包含的汉字替换为与其对应的读音拼音,生成用户账号。The account generation module 220 is configured to replace the Chinese characters contained in the user name information with the corresponding pronunciation pinyin to generate a user account.
在一个实施例中,判断模块120,包括:In one embodiment, the judgment module 120 includes:
判断子模块121:将所述用户名信息拆分为若干个单字符,判断所述若干个单字符中是否包含汉字字符;Judgment sub-module 121: split the user name information into several single characters, and determine whether the several single characters contain Chinese characters;
查询子模块122,用于当所述若干个单字符中有包含汉字字符时,查询预设多音字表;The query submodule 122 is used for querying the preset polyphonic word table when there are Chinese characters in the plurality of single characters;
第一确定子模块123,用于在从所述预设多音字表查询到与所述汉字字符对应的多音汉字时,确定所述用户名信息中包含多音汉字;The first determining sub-module 123 is configured to determine that the user name information contains a polyphonic Chinese character when the polyphonic Chinese character corresponding to the Chinese character is queried from the preset polyphonic character table;
第二确定子模块124,用于在从所述预设多音字表没有查询到与所述汉字字符对应的多音汉字时,确定所述用户名信息中不包含多音汉字。The second determining sub-module 124 is configured to determine that the user name information does not include the polyphonic Chinese character when the polyphonic Chinese character corresponding to the Chinese character is not queried from the preset polyphonic character table.
进一步地,本申请提供的用户账号生成装置还包括:Further, the user account generation device provided in this application further includes:
多音汉字采集模块,用于采集多个初始多音汉字,确定各个初始多音汉字对应的读音拼音;The multi-tone Chinese character collection module is used to collect multiple initial multi-tone Chinese characters and determine the pronunciation pinyin corresponding to each initial multi-tone Chinese character;
多音汉字录入模块,用于在将所述初始多个多音汉字和其对应的读音拼音录入预设多音字表时,若初始多音汉字的所有读音拼音中有至少两个读音拼音相同,则将所述至少两个相同的读音拼音合并为一个读音拼音;若初始多音汉字的所有读音拼音相同,则不将所述初始多音汉字录入所述预设多音字表。The polyphonic Chinese character input module is used to record the initial multiple polyphonic Chinese characters and their corresponding pronunciation pinyin into the preset polyphonic character table, if at least two of the pronunciation pinyins of the initial polyphonic Chinese character are the same, Then the at least two identical pronunciation pinyin are merged into one pronunciation pinyin; if all the pronunciation pinyins of the initial polyphonic Chinese character are the same, the initial polyphonic Chinese character is not recorded into the preset polyphonic character table.
优选地,考虑到初始多音汉字其实有很多,然而有部分初始多音汉字在日 常使用中,只会用到其中一个读音,比如“她”通常只用到读第一声调的“ta”,另一读音,读第三声调的“jie”的使用频率非常低,甚至很多人都不知道“她”有读第三声调的“jie”这个读音。因此可以先确定每个初始多音汉字的各个读音的使用频率,如果初始多音汉字的某一读音使用频率低于预设频率阈值,则在将其录入多音字表的时候将该读音舍弃,比如“她”的“jie”读音使用频率很低,因此可以将“jie”这个读音舍弃。Preferably, considering that there are actually many initial polyphonic Chinese characters, there are some initial polyphonic Chinese characters that only use one of the pronunciations in daily use. For example, "she" is usually only used to pronounce the first tone of "ta". Another pronunciation, "jie" in the third tone is used very low, and many people don't even know that "she" has the pronunciation of "jie" in the third tone. Therefore, the use frequency of each pronunciation of each initial polyphonic Chinese character can be determined first. If the use frequency of a certain pronunciation of the initial polyphonic Chinese character is lower than the preset frequency threshold, the pronunciation will be discarded when it is entered into the polyphonic character table. For example, the pronunciation of "jie" in "she" is very low, so the pronunciation of "jie" can be discarded.
需要说明的是,本申请实施例提供的用户账号生成装置能够实现上述用户账号生成方法实施例所实现的功能,功能的具体实现参照上述用户账号生成方法中的描述,在此不再赘述。It should be noted that the user account generation device provided in the embodiments of the present application can implement the functions implemented in the foregoing user account generation method embodiments, and the specific implementation of the functions refers to the description in the foregoing user account generation method, which will not be repeated here.
本申请实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述用户账号生成方法。其中,所述存储介质包括但不限于任何类型的盘(包括软盘、硬盘、光盘、CD-ROM、和磁光盘)、ROM(Read-Only Memory,只读存储器)、RAM(Random AcceSS Memory,随即存储器)、EPROM(EraSable Programmable Read-Only Memory,可擦写可编程只读存储器)、EEPROM(Electrically EraSable Programmable Read-Only Memory,电可擦可编程只读存储器)、闪存、磁性卡片或光线卡片。也就是,存储介质包括由设备(比如,计算机)以能够读的形式存储或传输信息的任何介质。可以是只读存储器,磁盘或光盘等。The embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the user account generation method described above is implemented. Wherein, the storage medium includes, but is not limited to, any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory), RAM (Random AccesSS Memory), and then Memory), EPROM (EraSable Programmable Read-Only Memory), EEPROM (Electrically EraSable Programmable Read-Only Memory), flash memory, magnetic card or optical card. That is, the storage medium includes any medium that stores or transmits information in a readable form by a device (for example, a computer). It can be a read-only memory, magnetic disk or optical disk, etc.
本申请实施例还提供一种计算机设备,所述计算机设备包括:An embodiment of the present application also provides a computer device, which includes:
一个或多个处理器310;One or more processors 310;
存储装置320,用于存储一个或多个程序300,The storage device 320 is used to store one or more programs 300,
当所述一个或多个程序300被所述一个或多个处理器310执行,使得所述一个或多个处理器310实现上述用户账号生成方法。When the one or more programs 300 are executed by the one or more processors 310, the one or more processors 310 implement the aforementioned user account generation method.
如图6所示为本申请计算机设备的结构示意图,包括处理器310、存储装置320、输入单元330以及显示单元340等器件。本领域技术人员可以理解,图6示出的结构器件并不构成对所有计算机设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件。存储装置320可用于存储应用程序300以及各功能模块,处理器310运行存储在存储装置320的应用程序300,从而执行设备的各种功能应用以及数据处理。存储装置320可以是内存储器或外存 储器,或者包括内存储器和外存储器两者。内存储器可以包括只读存储器、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦写可编程ROM(EEPROM)、快闪存储器、或者随机存储器。外存储器可以包括硬盘、软盘、ZIP盘、U盘、磁带等。本申请所公开的存储装置包括但不限于这些类型的存储装置。本申请所公开的存储装置320只作为例子而非作为限定。FIG. 6 is a schematic diagram of the structure of the computer equipment of this application, including a processor 310, a storage device 320, an input unit 330, a display unit 340 and other devices. Those skilled in the art can understand that the structural components shown in FIG. 6 do not constitute a limitation on all computer equipment, and may include more or less components than those shown in the figure, or combine certain components. The storage device 320 may be used to store the application program 300 and various functional modules. The processor 310 runs the application program 300 stored in the storage device 320 to execute various functional applications and data processing of the device. The storage device 320 may be an internal memory or an external memory, or include both internal memory and external memory. The internal memory may include read-only memory, programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory, or random access memory. External storage can include hard disks, floppy disks, ZIP disks, U disks, tapes, etc. The storage devices disclosed in this application include but are not limited to these types of storage devices. The storage device 320 disclosed in this application is merely an example and not a limitation.
输入单元330用于接收信号的输入,以及接收用户输入的选择语音文件等相关请求。输入单元330可包括触控面板以及其它输入设备。触控面板可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板上或在触控面板附近的操作),并根据预先设定的程序驱动相应的连接装置;其它输入设备可以包括但不限于物理键盘、功能键(比如播放控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。显示单元340可用于显示用户输入的信息或提供给用户的信息以及计算机设备的各种菜单。显示单元340可采用液晶显示器、有机发光二极管等形式。处理器310是计算机设备的控制中心,利用各种接口和线路连接整个电脑的各个部分,通过运行或执行存储在存储装置320内的软件程序和/或模块,以及调用存储在存储装置内的数据,执行各种功能和处理数据。The input unit 330 is used for receiving signal input and receiving related requests such as voice file selection input by the user. The input unit 330 may include a touch panel and other input devices. The touch panel can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc., to operate on the touch panel or near the touch panel), and according to preset The program drives the corresponding connection device; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as playback control buttons, switch buttons, etc.), trackball, mouse, and joystick. The display unit 340 may be used to display information input by the user or information provided to the user and various menus of the computer device. The display unit 340 may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 310 is the control center of computer equipment. It uses various interfaces and lines to connect various parts of the entire computer, runs or executes the software programs and/or modules stored in the storage device 320, and calls data stored in the storage device. , Perform various functions and process data.
在一实施方式中,计算机设备包括一个或多个处理器310,以及一个或多个存储装置320,一个或多个应用程序300,其中所述一个或多个应用程序300被存储在存储装置320中并被配置为由所述一个或多个处理器310执行,所述一个或多个应用程序300配置用于执行以上实施例所述的用户账号生成方法。In an embodiment, the computer device includes one or more processors 310, one or more storage devices 320, and one or more application programs 300, wherein the one or more application programs 300 are stored in the storage device 320. It is configured to be executed by the one or more processors 310, and the one or more application programs 300 are configured to execute the user account generation method described in the above embodiments.
应该理解的是,虽然附图的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,附图的流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the various steps in the flowchart of the drawings are shown in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless explicitly stated in this article, the execution of these steps is not strictly limited in order, and they can be executed in other orders. Moreover, at least part of the steps in the flowchart of the drawings may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the order of execution is also It is not necessarily performed sequentially, but may be performed alternately or alternately with other steps or at least a part of sub-steps or stages of other steps.
应该理解的是,在本申请各实施例中的各功能单元可集成在一个处理模块中,也可以各个单元单独物理存在,也可以两个或两个以上单元集成于一个模 块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。It should be understood that the functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or software functional modules.
以上所述仅是本申请的部分实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above are only part of the implementation of this application. It should be pointed out that for those of ordinary skill in the art, without departing from the principle of this application, several improvements and modifications can be made, and these improvements and modifications are also Should be regarded as the scope of protection of this application.

Claims (20)

  1. 一种用户账号生成方法,其特征在于,包括:A method for generating a user account, characterized in that it comprises:
    获取用户输入的用户名信息;Obtain the user name information entered by the user;
    判断所述用户名信息中是否包含多音汉字,所述多音汉字是对应有至少两个读音拼音,且所述至少两个读音拼音之间各不相同的汉字;Determining whether the user name information contains polyphonic Chinese characters, the polyphonic Chinese characters corresponding to at least two pronunciation pinyin, and the at least two pronunciation pinyins are different from each other;
    若所述用户名信息中包含多音汉字,则根据所述用户名信息生成N个用户账号候选项,将所述N个用户账号候选项展示在账号候选框中,其中,N等于所有多音汉字各自对应的读音拼音数量之间的乘积,N是大于1的正整数;If the user name information contains polyphonic Chinese characters, N user account candidates are generated according to the user name information, and the N user account candidates are displayed in the account candidate box, where N is equal to all polyphonic characters The product of the number of phonetic pronunciations corresponding to each Chinese character, N is a positive integer greater than 1;
    接收用户的用户账号确认指令,将与所述用户账号确认指令对应的用户账号候选项作为所述用户的用户账号。The user account confirmation instruction of the user is received, and the user account candidates corresponding to the user account confirmation instruction are used as the user account of the user.
  2. 如权利要求1所述的用户账号生成方法,其特征在于,The method for generating a user account according to claim 1, wherein:
    所述根据所述用户名信息生成N个用户账号候选项,包括:The generating N user account candidates according to the user name information includes:
    若所述用户名信息中包含一个多音汉字,则确定所述多音汉字对应的X个读音拼音,其中,X是大于1的正整数;If the user name information contains a polyphonic Chinese character, determine X pronunciation pinyin corresponding to the polyphonic Chinese character, where X is a positive integer greater than 1;
    将各个读音拼音分别替换所述用户名信息中的多音汉字,生成X个用户账号候选项。Each pronunciation pinyin is replaced with the polyphonic Chinese characters in the user name information, and X user account candidates are generated.
  3. 如权利要求2所述的用户账号生成方法,其特征在于,The method for generating a user account according to claim 2, wherein:
    所述将各个读音拼音分别替换所述用户名信息中的多音汉字,生成X个用户账号候选项,包括:The replacing the polyphonic Chinese characters in the user name information with each pronunciation pinyin respectively to generate X user account candidates includes:
    将各个读音拼音分别替换所述用户名信息中的多音汉字,得到X个初始候选项;Substituting each pronunciation pinyin for the polyphonic Chinese characters in the user name information to obtain X initial candidates;
    将各个初始候选项与获取到的预设长度的随机码进行拼接,生成X个用户账号候选项。Each initial candidate item is spliced with the obtained random code of preset length to generate X user account candidates.
  4. 如权利要求1所述的用户账号生成方法,其特征在于,The method for generating a user account according to claim 1, wherein:
    所述根据所述用户名信息生成至少两个用户账号候选项,包括:The generating at least two user account candidates according to the user name information includes:
    若所述用户名信息中包含的多音汉字的个数大于一个,则确定各个多音汉字分别对应的读音拼音;If the number of polyphonic Chinese characters contained in the user name information is greater than one, determine the pronunciation pinyin corresponding to each polyphonic Chinese character;
    按照预设组合规则将所述用户名信息中的多音汉字替换为与其对应的读音拼音,生成Y个用户账号候选项,其中,Y等于所有多音汉字各自对应的 读音拼音数量之间的乘积,Y是大于3的正整数。According to the preset combination rules, replace the polyphonic Chinese characters in the user name information with their corresponding pronunciation pinyin, and generate Y user account candidates, where Y is equal to the product of the number of corresponding pronunciation pinyins of all polyphonic Chinese characters , Y is a positive integer greater than 3.
  5. 如权利要求1所述的用户账号生成方法,其特征在于,The method for generating a user account according to claim 1, wherein:
    所述判断所述用户名信息中是否包含多音汉字,之后还包括:The determining whether the user name information contains polyphonic Chinese characters, and then further includes:
    若所述用户名信息中不包含多音汉字,则确定所述用户名信息中包含的汉字对应的读音拼音;If the user name information does not include polyphonic Chinese characters, determine the pronunciation pinyin corresponding to the Chinese characters included in the user name information;
    将所述用户名信息中包含的汉字替换为与其对应的读音拼音,生成用户账号。Replace the Chinese characters contained in the user name information with the corresponding pronunciation pinyin to generate a user account.
  6. 如权利要求1所述的用户账号生成方法,其特征在于,The method for generating a user account according to claim 1, wherein:
    所述判断所述用户名信息中是否包含多音汉字,包括:The determining whether the user name information contains polyphonic Chinese characters includes:
    将所述用户名信息拆分为若干个单字符,判断所述若干个单字符中是否包含汉字字符;Split the user name information into several single characters, and determine whether the several single characters contain Chinese characters;
    若所述若干个单字符中有包含汉字字符,则查询预设多音字表;If any of the single characters contains Chinese characters, then query the preset polyphonic word table;
    如果从所述预设多音字表查询到与所述汉字字符对应的多音汉字,则确定所述用户名信息中包含多音汉字;If the polyphonic Chinese character corresponding to the Chinese character is found from the preset polyphonic character table, it is determined that the user name information contains the polyphonic Chinese character;
    如果从所述预设多音字表没有查询到与所述汉字字符对应的多音汉字,则确定所述用户名信息中不包含多音汉字。If no polyphonic Chinese character corresponding to the Chinese character is found from the preset polyphonic character table, it is determined that the user name information does not include the polyphonic Chinese character.
  7. 如权利要求6所述的用户账号生成方法,其特征在于,The method for generating a user account according to claim 6, wherein:
    所述查询预设多音字表,之前包括:The query preset polyphonic word table includes:
    采集多个初始多音汉字,确定各个初始多音汉字对应的读音拼音;Collect multiple initial polyphonic Chinese characters and determine the pronunciation pinyin corresponding to each initial polyphonic Chinese character;
    在将所述多个初始多音汉字和其对应的读音拼音录入预设多音字表时,若初始多音汉字的所有读音拼音中有至少两个读音拼音相同,则将所述至少两个相同的读音拼音合并为一个读音拼音;若初始多音汉字的所有读音拼音相同,则不将所述初始多音汉字录入所述预设多音字表。When the plurality of initial polyphonic Chinese characters and their corresponding pronunciation pinyin are recorded into the preset polyphonic character table, if at least two pronunciation pinyins of all the initial polyphonic Chinese characters are the same, then the at least two are identical The pronunciation pinyin of is merged into one pronunciation pinyin; if all the pronunciation pinyins of the initial polyphonic Chinese character are the same, the initial polyphonic Chinese character is not entered into the preset polyphonic character table.
  8. 一种用户账号生成装置,其特征在于,包括:A user account generating device, characterized in that it comprises:
    用户名获取模块,用于获取用户输入的用户名信息;The user name acquisition module is used to acquire the user name information entered by the user;
    判断模块,用于判断所述用户名信息中是否包含多音汉字,所述多音汉字是对应有至少两个读音拼音,且所述至少两个读音拼音之间各不相同的汉字;A judging module for judging whether the user name information contains polyphonic Chinese characters, the polyphonic Chinese characters corresponding to at least two pronunciation pinyin, and the at least two pronunciation pinyins are different from each other;
    候选框展示模块,用于当所述用户名信息中包含多音汉字时,根据所述用户名信息生成N个用户账号候选项,将所述N个用户账号候选项展示在账号 候选框中,其中,N等于所有多音汉字各自对应的读音拼音数量之间的乘积,N是大于1的正整数;The candidate frame display module is used to generate N user account candidates according to the user name information when the user name information contains polyphonic Chinese characters, and display the N user account candidates in the account candidate frame, Among them, N is equal to the product of the phonetic numbers of all polyphonic Chinese characters, and N is a positive integer greater than 1;
    用户账号确定模块,用于接收用户的用户账号确认指令,将与所述用户账号确认指令对应的用户账号候选项作为所述用户的用户账号。The user account determination module is configured to receive the user account confirmation instruction of the user, and use the user account candidates corresponding to the user account confirmation instruction as the user account of the user.
  9. 如权利要求8所述的用户账号生成装置,其特征在于,所述候选框展示模块包括:8. The user account generation device of claim 8, wherein the candidate frame display module comprises:
    读音拼音确定子模块,用于当所述用户名信息中包含一个多音汉字时,确定所述多音汉字对应的X个读音拼音,其中,X是大于1的正整数;The pronunciation pinyin determining sub-module is used to determine the X pronunciation pinyin corresponding to the polyphonic Chinese character when the user name information contains a polyphonic Chinese character, where X is a positive integer greater than 1;
    候选项生成子模块,用于将各个读音拼音分别替换所述用户名信息中的多音汉字,生成X个用户账号候选项。The candidate item generation sub-module is used to replace the polyphonic Chinese characters in the user name information with each pronunciation pinyin to generate X user account candidates.
  10. 如权利要求9所述的用户账号生成装置,其特征在于,9. The user account generating device of claim 9, wherein:
    所述候选项生成子模块,还用于将各个读音拼音分别替换所述用户名信息中的多音汉字,得到X个初始候选项;将各个初始候选项与获取到的预设长度的随机码进行拼接,生成X个用户账号候选项。The candidate item generation sub-module is also used to replace the polyphonic Chinese characters in the user name information with each pronunciation pinyin to obtain X initial candidates; combine each initial candidate with the obtained random code of preset length Perform splicing to generate X user account candidates.
  11. 如权利要求8所述的用户账号生成装置,其特征在于,The user account generating device according to claim 8, wherein:
    所述候选框展示模块,还用于当所述用户名信息中包含的多音汉字的个数大于一个时,确定各个多音汉字分别对应的读音拼音;按照预设组合规则将所述用户名信息中的多音汉字替换为与其对应的读音拼音,生成Y个用户账号候选项,其中,Y等于所有多音汉字各自对应的读音拼音数量之间的乘积,Y是大于3的正整数。The candidate frame display module is also used to determine the pronunciation pinyin corresponding to each polyphonic Chinese character when the number of polyphonic Chinese characters contained in the user name information is greater than one; The polyphonic Chinese characters in the information are replaced with their corresponding pronunciation pinyin, and Y user account candidates are generated, where Y is equal to the product of the corresponding pronunciation pinyin numbers of all polyphonic Chinese characters, and Y is a positive integer greater than 3.
  12. 如权利要求8所述的用户账号生成装置,其特征在于,所述用户账号生成装置还包括以下模块:8. The user account generation device of claim 8, wherein the user account generation device further comprises the following modules:
    读音确定模块,用于当所述用户名信息中不包含多音汉字时,确定所述用户名信息中包含的汉字对应的读音拼音;The pronunciation determining module is used to determine the pronunciation pinyin corresponding to the Chinese character contained in the user name information when the user name information does not contain polyphonic Chinese characters;
    账号生成模块,用于将所述用户名信息中包含的汉字替换为与其对应的读音拼音,生成用户账号。The account generation module is used to replace the Chinese characters contained in the user name information with the corresponding pronunciation pinyin to generate a user account.
  13. 如权利要求8所述的用户账号生成装置,其特征在于,所述判断模块包括:8. The user account generation device according to claim 8, wherein the judgment module comprises:
    所述判断所述用户名信息中是否包含多音汉字,包括:The determining whether the user name information contains polyphonic Chinese characters includes:
    判断子模块,用于将所述用户名信息拆分为若干个单字符,判断所述若干个单字符中是否包含汉字字符;A judging sub-module, which is used to split the user name information into a number of single characters, and determine whether the number of single characters contains Chinese characters;
    查询子模块,用于当所述若干个单字符中有包含汉字字符时,查询预设多音字表;The query sub-module is used to query the preset polyphonic word table when there are Chinese characters in the plurality of single characters;
    第一确定子模块,用于在从所述预设多音字表查询到与所述汉字字符对应的多音汉字,则确定所述用户名信息中包含多音汉字;The first determining sub-module is configured to determine that the user name information contains the polyphonic Chinese character when the polyphonic Chinese character corresponding to the Chinese character is queried from the preset polyphonic character table;
    第二确定子模块,用于在从所述预设多音字表没有查询到与所述汉字字符对应的多音汉字,则确定所述用户名信息中不包含多音汉字。The second determining sub-module is used for determining that the user name information does not include the polyphonic Chinese character if the polyphonic Chinese character corresponding to the Chinese character is not queried from the preset polyphonic character table.
  14. 如权利要求13所述的用户账号生成装置,其特征在于,所述用户账号生成装置还包括:The user account generating device according to claim 13, wherein the user account generating device further comprises:
    多音汉字采集模块,用于采集多个初始多音汉字,确定各个初始多音汉字对应的读音拼音;The multi-tone Chinese character collection module is used to collect multiple initial multi-tone Chinese characters and determine the pronunciation pinyin corresponding to each initial multi-tone Chinese character;
    多音汉字录入模块,用于在将所述多个初始多音汉字和其对应的读音拼音录入预设多音字表时,若初始多音汉字的所有读音拼音中有至少两个读音拼音相同,则将所述至少两个相同的读音拼音合并为一个读音拼音;若初始多音汉字的所有读音拼音相同,则不将所述初始多音汉字录入所述预设多音字表。The polyphonic Chinese character input module is used to record the plurality of initial polyphonic Chinese characters and their corresponding pronunciation pinyin into the preset polyphonic character table, if at least two of the pronunciation pinyins of the initial polyphonic Chinese character are the same, Then the at least two identical pronunciation pinyin are merged into one pronunciation pinyin; if all the pronunciation pinyins of the initial polyphonic Chinese character are the same, the initial polyphonic Chinese character is not recorded into the preset polyphonic character table.
  15. 一种计算机非易失性可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-7任一项所述的用户账号生成方法。A computer non-volatile readable storage medium having a computer program stored thereon, wherein the program is executed by a processor to implement the user account generation method according to any one of claims 1-7.
  16. 一种计算机设备,其特征在于,所述计算机设备包括:A computer device, characterized in that the computer device includes:
    一个或多个处理器;One or more processors;
    存储装置,用于存储一个或多个程序;Storage device for storing one or more programs;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器执行以下步骤:When the one or more programs are executed by the one or more processors, the one or more processors execute the following steps:
    获取用户输入的用户名信息;Obtain the user name information entered by the user;
    判断所述用户名信息中是否包含多音汉字,所述多音汉字是对应有至少两个读音拼音,且所述至少两个读音拼音之间各不相同的汉字;Determining whether the user name information contains polyphonic Chinese characters, the polyphonic Chinese characters corresponding to at least two pronunciation pinyin, and the at least two pronunciation pinyins are different from each other;
    若所述用户名信息中包含多音汉字,则根据所述用户名信息生成N个用户账号候选项,将所述N个用户账号候选项展示在账号候选框中,其中,N 等于所有多音汉字各自对应的读音拼音数量之间的乘积,N是大于1的正整数;If the user name information contains polyphonic Chinese characters, N user account candidates are generated according to the user name information, and the N user account candidates are displayed in the account candidate box, where N is equal to all polyphonic characters The product of the number of phonetic pronunciations corresponding to each Chinese character, N is a positive integer greater than 1
    接收用户的用户账号确认指令,将与所述用户账号确认指令对应的用户账号候选项作为所述用户的用户账号。The user account confirmation instruction of the user is received, and the user account candidates corresponding to the user account confirmation instruction are used as the user account of the user.
  17. 如权利要求16所述的计算机设备,其特征在于,所述处理器在执行所述根据所述用户名信息生成N个用户账号候选项时,具体执行以下步骤:The computer device according to claim 16, wherein the processor specifically executes the following steps when executing the generating of N user account candidates according to the user name information:
    若所述用户名信息中包含一个多音汉字,则确定所述多音汉字对应的X个读音拼音,其中,X是大于1的正整数;If the user name information contains a polyphonic Chinese character, determine X pronunciation pinyin corresponding to the polyphonic Chinese character, where X is a positive integer greater than 1;
    将各个读音拼音分别替换所述用户名信息中的多音汉字,生成X个用户账号候选项。Each pronunciation pinyin is replaced with the polyphonic Chinese characters in the user name information, and X user account candidates are generated.
  18. 如权利要求17所述的计算机设备,其特征在于,所述处理器在执行所述将各个读音拼音分别替换所述用户名信息中的多音汉字,生成X个用户账号候选项时,具体执行以下步骤:The computer device according to claim 17, wherein the processor specifically executes when executing the respective pronunciation pinyin to replace the polyphonic Chinese characters in the user name information to generate X user account candidates The following steps:
    将各个读音拼音分别替换所述用户名信息中的多音汉字,得到X个初始候选项;Substituting each pronunciation pinyin for the polyphonic Chinese characters in the user name information to obtain X initial candidates;
    将各个初始候选项与获取到的预设长度的随机码进行拼接,生成X个用户账号候选项。Each initial candidate item is spliced with the obtained random code of preset length to generate X user account candidates.
  19. 如权利要求16所述的计算机设备,其特征在于,所述处理器执行所述根据所述用户名信息生成至少两个用户账号候选项时,具体执行以下步骤:The computer device according to claim 16, wherein when the processor executes the generating of at least two user account candidates according to the user name information, the following steps are specifically executed:
    若所述用户名信息中包含的多音汉字的个数大于一个,则确定各个多音汉字分别对应的读音拼音;If the number of polyphonic Chinese characters contained in the user name information is greater than one, determine the pronunciation pinyin corresponding to each polyphonic Chinese character;
    按照预设组合规则将所述用户名信息中的多音汉字替换为与其对应的读音拼音,生成Y个用户账号候选项,其中,Y等于所有多音汉字各自对应的读音拼音数量之间的乘积,Y是大于3的正整数。According to the preset combination rules, replace the polyphonic Chinese characters in the user name information with their corresponding pronunciation pinyin, and generate Y user account candidates, where Y is equal to the product of the number of corresponding pronunciation pinyins of all polyphonic Chinese characters , Y is a positive integer greater than 3.
  20. 如权利要求16所述的计算机设备,其特征在于,所述判断所述用户名信息中是否包含多音汉字,之后所述处理器还执行以下步骤:16. The computer device according to claim 16, wherein said determining whether said user name information contains polyphonic Chinese characters, after which said processor further executes the following steps:
    若所述用户名信息中不包含多音汉字,则确定所述用户名信息中包含的汉字对应的读音拼音;If the user name information does not include polyphonic Chinese characters, determine the pronunciation pinyin corresponding to the Chinese characters included in the user name information;
    将所述用户名信息中包含的汉字替换为与其对应的读音拼音,生成用户账号。Replace the Chinese characters contained in the user name information with the corresponding pronunciation pinyin to generate a user account.
PCT/CN2019/117003 2019-07-30 2019-11-11 User account generation method and apparatus, medium, and computer device WO2021017273A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910695526.9A CN110569501A (en) 2019-07-30 2019-07-30 user account generation method, device, medium and computer equipment
CN201910695526.9 2019-07-30

Publications (1)

Publication Number Publication Date
WO2021017273A1 true WO2021017273A1 (en) 2021-02-04

Family

ID=68773011

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/117003 WO2021017273A1 (en) 2019-07-30 2019-11-11 User account generation method and apparatus, medium, and computer device

Country Status (2)

Country Link
CN (1) CN110569501A (en)
WO (1) WO2021017273A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111145724B (en) * 2019-12-31 2022-08-19 出门问问信息科技有限公司 Polyphone marking method and device and computer readable storage medium
CN112328096A (en) * 2020-11-13 2021-02-05 维沃移动通信有限公司 Candidate word display method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102135812A (en) * 2010-11-30 2011-07-27 华为终端有限公司 method and device for inputting polyphonic Chinese characters
CN103067373A (en) * 2012-12-20 2013-04-24 天津书生投资有限公司 User registration method
CN106991535A (en) * 2017-04-07 2017-07-28 携程旅游信息技术(上海)有限公司 The automation creation method and system of enterprise-level employee's account
CN109375900A (en) * 2018-10-16 2019-02-22 广州市南方人力资源评价中心有限公司 A kind of tables of data and data field name automatic generation
CN109933215A (en) * 2019-01-31 2019-06-25 平安科技(深圳)有限公司 Phonetic transcriptions of Chinese characters conversion method, device, terminal and computer readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104281620A (en) * 2013-07-11 2015-01-14 腾讯科技(深圳)有限公司 Contact person data query method and device supporting polyphones
CN107800850A (en) * 2017-10-26 2018-03-13 北京珠穆朗玛移动通信有限公司 Information processing method, mobile terminal and the storage medium of contact person

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102135812A (en) * 2010-11-30 2011-07-27 华为终端有限公司 method and device for inputting polyphonic Chinese characters
CN103067373A (en) * 2012-12-20 2013-04-24 天津书生投资有限公司 User registration method
CN106991535A (en) * 2017-04-07 2017-07-28 携程旅游信息技术(上海)有限公司 The automation creation method and system of enterprise-level employee's account
CN109375900A (en) * 2018-10-16 2019-02-22 广州市南方人力资源评价中心有限公司 A kind of tables of data and data field name automatic generation
CN109933215A (en) * 2019-01-31 2019-06-25 平安科技(深圳)有限公司 Phonetic transcriptions of Chinese characters conversion method, device, terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN110569501A (en) 2019-12-13

Similar Documents

Publication Publication Date Title
US9081482B1 (en) Text input suggestion ranking
JP5837608B2 (en) Registration in the system level search user interface
JP5924859B2 (en) Method and apparatus for providing context-aware input data
JP5513898B2 (en) Shared language model
WO2019024692A1 (en) Speech input method and device, computer equipment and storage medium
JP2006527870A (en) Configurable information identification system and method
US10134067B2 (en) Autocomplete of searches for data stored in multi-tenant architecture
JP6180470B2 (en) Sentence candidate presentation terminal, sentence candidate presentation system, sentence candidate presentation method, and program
WO2021017273A1 (en) User account generation method and apparatus, medium, and computer device
US20170039293A1 (en) Question answering system with data mining capabilities
US20220129491A1 (en) Method for supporting agent and computing device thereof
US10061835B2 (en) Establishing user-confidence levels of data inputs
US20150106701A1 (en) Input support method and information processing system
US20210160366A1 (en) Systems and methods to manage models for call data
US20080082535A1 (en) Method and system for automatically generating a communication interface
US11436029B2 (en) Help information display system, help information display method, and help information display program
JP7324058B2 (en) SENTENCE ANALYSIS METHOD, SENTENCE ANALYSIS PROGRAM, AND SENTENCE ANALYSIS SYSTEM
CN111602129B (en) Smart search for notes and ink
CN110059491A (en) Data import monitoring method, device, equipment and readable storage medium storing program for executing
JP2006023968A (en) Unique expression extracting method and device and program to be used for the same
KR20090114386A (en) Method and apparatus for managing descriptors in system specifications
JP2018067095A (en) Business card information management system, and search result display method and search result display program in business card information management system
WO2018054127A1 (en) Handwriting input method and device
US20230297567A1 (en) Information processing system, information processing method, and non-transitory recording medium
JP5950369B2 (en) Input support system, input support method, and input support program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19939359

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19939359

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 19939359

Country of ref document: EP

Kind code of ref document: A1