Processing method and device for name registration, and computer equipment
By judging and replacing special characters in the person's name in the hotel registration system, and determining the splitting rules based on the name type for splitting and registration, the registration problems caused by special characters in the person's name are solved, and the hotel's occupancy rate and experience effect are improved.
Patent Information
- Application Number
- CN202411762988.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-03
- Publication Date
- 2025-04-08
AI Technical Summary
The existing hotel registration system cannot support passengers with special characters in their names, resulting in poor check-in experience and low hotel passenger occupancy rate.
By determining whether the input person's name information contains special characters. If it is included, look for standard characters in the preset special character mapping relationship table and replace special characters with standard characters. Determine the splitting rules of the person name based on the type of person name information, and split and register the name information.
It effectively solves the problem that passengers with special characters in their names cannot check in through the registration system, improves the passenger check-in experience effect, and thus improves the hotel passenger occupancy rate.
Smart Images

Figure CN119783665A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for processing name registration, and computer equipment. Background Art
[0002] With the development of the times, international travel is becoming more and more popular. In the hotel industry, foreign travelers often check in. However, the check-in systems of many hotels cannot support the check-in of travelers whose names contain special characters. As a result, such travelers cannot check in through the hotel registration system, which brings a lot of trouble to the travelers, poor check-in experience, and low hotel check-in rate.
[0003] In view of this, it is indeed necessary to provide a technical solution to the above problems. Summary of the invention
[0004] The embodiment of the present invention provides a method and device for processing name registration, and a computer device, aiming to solve the technical problem in the prior art that passengers whose names contain special characters cannot check in through a hotel registration system, resulting in a poor check-in experience and a low hotel passenger occupancy rate.
[0005] In a first aspect, an embodiment of the present invention provides a method for processing name registration, including:
[0006] Step S1, determine whether the input name information contains special characters, if so, go to step S2; if not, go to step S3;
[0007] Step S2, searching a preset special character mapping relationship table for a standard character that has a mapping relationship with the special character;
[0008] Step S3, replacing the special characters in the name information with the standard characters;
[0009] Step S4, determining a name splitting rule according to the type of the name information;
[0010] Step S5: split and register the name information according to the determined name splitting rule.
[0011] In some embodiments, each standard character is obtained by normalizing the character encoding of the corresponding special character through the Unicode; the normalized forms of the Unicode include: NFC (Normalization Form C), NFD (Normalization Form D), NFKC (Normalization Form KC), and NFKD (Normalization Form KD).
[0012] In some embodiments, the types of the name information include: Chinese names, standard English names, and non-English foreign names;
[0013] The name splitting rules include: Chinese name splitting rules, standard English name splitting rules, and non-English foreign name splitting rules.
[0014] In some embodiments, when the type of the name information is: Chinese name; the name splitting rule is: Chinese name splitting rule; then the step of splitting and registering the name information according to the determined name splitting rule includes:
[0015] Step S101, obtaining the character length of the name information;
[0016] Step S102: when the character length of the name is greater than 2, determine whether the first two characters of the name exist in the preset double surname database; if yes, proceed to step S103; if no, proceed to step S104;
[0017] Step S103, splitting the first two characters in the name information into a double surname and registering the remaining characters into a given name;
[0018] Step S104, determine whether the first character of the name information exists in the preset single-surname database, if so, proceed to step S105;
[0019] Step S105: split the first character in the name information into a single surname and register it, and split the remaining characters into a given name and register it.
[0020] In some embodiments, after determining whether the preset single-surname database contains the first character of the name information, the step S103 further includes:
[0021] When the single surname database does not have the first character of the name information, marking the first character as an abnormal surname;
[0022] The marked first character is added to the single surname database to provide data support for subsequent upgrades and updates of the single surname database.
[0023] In some embodiments, when the type of the name information is: a standard English name; the name splitting rule is: a standard English name splitting rule; the step of splitting and registering the name information according to the determined name splitting rule includes:
[0024] Get the number of words in the name information;
[0025] According to the number of words in the name information, the name information is split and registered.
[0026] In some embodiments, the step of splitting and registering the name information according to the number of words in the name information specifically includes:
[0027] When the number of words is 2, the first word in the name information is split and registered as a first name, and the remaining words are split and registered as a last name;
[0028] When the number of words is 3, the first word in the name information is split and registered as the first name, the second word is split and registered as the middle name, and the third word is split and registered as the last name;
[0029] When the number of words is greater than or equal to 4, the first word in the name information is split and registered as the first name, the second word is split and registered as the middle name, the combination of the first and second to last words is split and registered as the last name; the remaining words are split and registered as the first middle name.
[0030] In some embodiments, after the step of splitting and registering the name information according to the determined name splitting rule, the step further includes:
[0031] Determine whether the split registration of name information fails;
[0032] If so, determine the type of name information split registration failure;
[0033] When the type of split registration failure is the split registration failure of the first word in the name information, the first word is marked as an abnormal name, and the marked first word is added to the English-name database to provide data support for subsequent upgrades and updates of the English-name database;
[0034] When the type of split registration failure is the surname split registration failure in the name information, the word for which the surname split registration fails is marked as an abnormal surname, and the marked word is added to the English-surname database to provide data support for subsequent upgrades and updates of the English-surname database; and / or,
[0035] When the type of split registration failure is the failure to split registration of the middle name in the name information, the word for which the middle name split registration fails is marked as an abnormal middle name, and the marked word is added to the English-middle name database to provide data support for subsequent upgrades and updates of the English-middle name database.
[0036] In some embodiments, when the type of the name information is a non-English foreign name, and the name splitting rule is a non-English foreign name splitting rule, the step of splitting and registering the name information according to the determined name splitting rule includes:
[0037] Determine the language category to which the non-English foreign name belongs;
[0038] According to the language category, find the corresponding language category name splitting rules;
[0039] According to the language category name splitting rule, the non-English foreign name is split and registered.
[0040] In a second aspect, an embodiment of the present invention further provides a processing device for name registration, comprising: a character judgment unit, a character search unit, a character replacement unit, a rule determination unit, and a split registration unit; wherein the character judgment unit is used to judge whether the input name information contains special characters; the character search unit is used to search for standard characters that establish a mapping relationship with the special characters in a preset special character mapping relationship table when the name information contains special characters; the character replacement unit is used to replace the special characters in the name information with the standard characters; the rule determination unit is used to determine the name splitting rules according to the type of the name information; and the split registration unit is used to split and register the name information according to the determined name splitting rules.
[0041] In a third aspect, an embodiment of the present invention further provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the above-mentioned method for processing name registration when executing the computer program.
[0042] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the processing method for name registration as described above can be implemented.
[0043] The embodiment of the present invention provides a method and device for processing name registration, and a computer device. The method for processing name registration includes: determining whether the input name information contains special characters; when the name information contains special characters, searching for standard characters that establish a mapping relationship with the special characters in a preset special character mapping relationship table; replacing the special characters with the standard characters in the name information; determining the name splitting rules according to the type of the name information; and splitting and registering the name information according to the determined name splitting rules. The method for processing name registration provided by the embodiment of the present invention effectively solves the problem that passengers whose names contain special characters cannot check in through the registration system, improves the check-in experience of passengers, and thus improves the check-in rate of hotel passengers. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0046] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0047] Figure 1 A flowchart of a method for processing name registration provided by an embodiment of the present invention;
[0048] Figure 2 A schematic diagram of a sub-flow chart of a method for processing name registration provided by another embodiment of the present invention;
[0049] Figure 3 A schematic diagram of a sub-flow chart of a method for processing name registration provided by another embodiment of the present invention;
[0050] Figure 4 A schematic diagram of a sub-flow chart of a method for processing name registration provided by another embodiment of the present invention;
[0051] Figure 5 A schematic diagram of a sub-flow chart of a method for processing name registration provided by another embodiment of the present invention;
[0052] Figure 6 A schematic diagram of a sub-flow chart of a method for processing name registration provided by another embodiment of the present invention;
[0053] Figure 7 A schematic block diagram of a processing device for name registration provided by an embodiment of the present invention;
[0054] Figure 8 A schematic block diagram of a split registration unit of a name registration processing device provided by another embodiment of the present invention;
[0055] Fig. 9 A schematic block diagram of a split registration unit of a name registration processing device provided by another embodiment of the present invention;
[0056] Fig.10A schematic block diagram of a split registration unit of a name registration processing device provided by another embodiment of the present invention;
[0057] Fig.11 A schematic block diagram of a split registration unit of a name registration processing device provided by another embodiment of the present invention;
[0058] Fig.12 A schematic block diagram of a split registration unit of a name registration processing device provided by another embodiment of the present invention;
[0059] Fig.13 A schematic block diagram of a computer device provided by the present invention. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0061] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.
[0062] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0063] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0064] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0065] As used in this specification and the appended claims, the term "if" may be construed, depending on the context, as "when" or "once" or "in response to determining" or "in response to detecting". Similarly, the phrase "if determined" or "if [described condition or event] is detected" may be construed, depending on the context, to mean "once determined" or "in response to determining" or "once [described condition or event] is detected" or "in response to detecting [described condition or event]".
[0066] To solve the technical problem that passengers with special characters in their names cannot check in through the registration system in the prior art, the present invention provides a processing method for name registration, which can effectively solve the problem that passengers with special characters in their names cannot check in through the registration system, improve the check-in experience of passengers, and further improve the hotel check-in rate for passengers.
[0067] An embodiment of the present invention provides a processing method for name registration. Refer to Figure 1 , Figure 1 which is a schematic flowchart of the processing method for name registration provided by the embodiment of the present invention. The processing method includes:
[0068] Step S10: Determine whether the input name information contains special characters. If so, proceed to step S20; if not, proceed to step S30.
[0069] Currently, from a global perspective, the special characters included in names are: symbol characters, numeric characters, and ancient text characters. Among them, the symbol characters include: punctuation marks and religious symbols. Among them, the punctuation marks include commas, hyphens, etc. For example, commas are used in the formation of names in some Eastern European countries; hyphens (-) are common in the names of some European and American countries and are used to connect different parts of the name, such as "Mary-Ann". There are specific symbols in some names with a religious background. For example, a symbol representing auspiciousness may appear in Hindu names. Numeric characters generally appear in Japanese names, such as the numeric characters representing order in "Ichiro" and "Jiro". Ancient text characters generally refer to ancient Greek letters, such as the ancient Greek letters α, β.
[0070] Step S20: In a preset special character mapping relation table, search for the standard character that has a mapping relation with the special character.
[0071] In this embodiment, a special character mapping database needs to be established. Each special character in each type in the special character mapping database corresponds to a standard character obtained by normalizing character encoding through Unicode, that is, each special character establishes a one-to-one mapping relationship with the corresponding standard character after normalization encoding. Specifically, the normalized forms of the Unicode include: NFC (Normalization Form C), NFD (Normalization Form D), NFKC (Normalization Form KC), and NFKD (Normalization Form KD). Among them, the NFC is: converting a character into a pre-combined form, represented by a single Unicode character. The NFD is: converting a character into a decomposed form, represented by more than one Unicode character. The NFKC is: converting compatible and equivalent characters based on NFC. The NFKD is: converting compatible and equivalent characters based on NFD.
[0072] The special character mapping database includes a mapping table between punctuation marks and standard characters, a mapping table between religious symbols and standard characters, a mapping table between numeric characters and standard characters, and a mapping table between ancient Chinese characters and standard characters.
[0073] Step S30: Replace the special characters in the name information with the standard characters.
[0074] In this step, special characters in the name information are replaced with standard characters to facilitate the name splitting registration in the subsequent steps, and to prevent the failure of the name splitting registration due to the inability to recognize special characters.
[0075] Step S40: Determine a name splitting rule according to the type of the name information.
[0076] In this embodiment, when there are special characters in the name information, the name splitting rules are determined according to the name information type after the special characters are replaced with standard characters, and the subsequent name splitting registration operation is performed. When the name information does not contain special characters, the name splitting rules are directly determined according to the name information type, and the subsequent name splitting registration operation is performed.
[0077] In some embodiments, the types of name information in the name registration processing method include: Chinese name, standard English name, non-English foreign name. The name splitting rules include: Chinese name splitting rules, standard English name splitting rules, non-English foreign name splitting rules.
[0078] Step S50: split and register the name information according to the determined name splitting rule.
[0079] In this embodiment, when the original name information contains special characters, the special characters of the name information in this step have been replaced with recognizable standard characters. In the process of splitting and registering the name information, the replaced standard characters will be directly split and registered at the corresponding positions according to the positions of the original special characters in the name information, so as to ensure that the split and registered name information is consistent with the input name information. At the same time, after the name information is successfully split and registered, the input name information will be displayed on the display screen so that relevant personnel can check the name.
[0080] See also Figure 2 In some embodiments, when the type of the name information is: Chinese name; the name splitting rule is: Chinese name splitting rule; then the step S50 of splitting and registering the name information according to the determined name splitting rule includes:
[0081] Step S511, obtaining the character length of the name information.
[0082] Step S512: When the character length of the name information is greater than 2, determine whether the first two characters of the name information exist in the preset double-surname database; if so, proceed to step S513; if not, proceed to step S514.
[0083] A traditional Chinese name contains at least 2 characters, including a surname and a given name; when a Chinese name contains more than 3 characters, the surname may be a compound surname or a single surname.
[0084] Step S513: split the first two characters in the name information and register them as a surname, and split the remaining characters and register them as a given name.
[0085] Step S514, determine whether the first character of the name information exists in the preset single-surname database, and if so, proceed to step S515.
[0086] Step S515: split the first character in the name information into a single surname and register it, and split the remaining characters into a given name and register it.
[0087] In this embodiment, when the character length of the name information is equal to 2, it is determined whether the first character of the name information exists in the preset single surname database; if so, the first character is directly split and registered as a single surname, and the remaining characters are split and registered as a name.
[0088] See also Figure 3In some embodiments, after the step S514 determines whether the preset single-surname database has the first character of the name information, when the single-surname database does not have the first character of the name information, it also includes:
[0089] Step S516: Mark the first character as an abnormal surname.
[0090] Step S517: Add the marked first character to the single surname database to provide data support for subsequent upgrades and updates of the single surname database.
[0091] See also Figure 4 In some embodiments, when the type of the name information is: a standard English name; the name splitting rule is: a standard English name splitting rule. The step S50 of splitting and registering the name information according to the determined name splitting rule includes:
[0092] Step S521, obtaining the number of words in the name information.
[0093] Step S522: split and register the name information according to the number of words in the name information.
[0094] In some embodiments, the step of splitting and registering the name information according to the number of words in the name information specifically includes the following processing: when the number of words is 2, the first word in the name information is split and registered as a given name, and the remaining words are split and registered as surnames. When the number of words is 3, the first word in the name information is split and registered as a given name, the second word is split and registered as a middle name, and the third word is split and registered as a surname. When the number of words is greater than or equal to 4, the first word in the name information is split and registered as a given name, the second word is split and registered as a middle name, and the combination of the first and second to last words is split and registered as a surname; the remaining words are split and registered as the first middle name.
[0095] Standard English names generally include a first name and a last name, with the first name in front and the last name in the back. For example, "John Smith", "John" is the first name and "Smith" is the last name. Some standard English names may also include one or more middle names. Whether a middle name is included can be determined by the number of words in the name information. Generally, if the number of words is more than 3, it means that the name contains a middle name, such as "John Michael Smith", "John" is the first name, "Michael" is the middle name, and "Smith" is the last name. There may also be multiple middle names, and the middle name is located between the first name and the last name.
[0096] See also Figure 5 In some embodiments, after the step S522 of splitting and registering the name information according to the number of words in the name information, the following steps are further included:
[0097] Step S523, determine whether the name information split registration fails; if so, go to step S524.
[0098] Step S524: determine the type of name information splitting registration failure.
[0099] Step S525, when the type of split registration failure is the split registration failure of the first word in the name information, the first word is marked as an abnormal name, and the marked first word is added to the English-name database to provide data support for subsequent upgrades and updates of the English-name database.
[0100] In this embodiment, an English-name database is established for standard English names. A large number of English words that can be used as names are included in the English-name database. At the same time, an abnormal name collection sub-database is also set in the database to store English words that fail to be registered for name splitting.
[0101] If the first word split registration fails in this step, it means that there is no corresponding first word in the English-name database, which leads to the failure of the first word split registration. In this step, the first word is marked as an abnormal name and added to the abnormal name collection sub-database in the English-name database, which can provide data support for the subsequent upgrade and expansion of English name words in the English-name database.
[0102] Step S526: When the type of split registration failure is the surname split registration failure in the name information, the word for which the surname split registration fails is marked as an abnormal surname, and the marked word is added to the English-surname database to provide data support for subsequent upgrades and updates of the English-surname database.
[0103] Similarly, this embodiment establishes an English-surname database for standard English names, which includes a large number of English words that can be used as surnames. At the same time, the database also has an abnormal surname collection sub-database for storing English words that failed to be registered for surname splitting.
[0104] If the surname splitting registration fails in this step, it means that there is no corresponding word in the English-surname database, which leads to the failure of the word splitting registration. In this step, the word is marked as abnormal surname and added to the abnormal surname collection sub-database in the English-surname database, which can provide data support for the subsequent upgrade and expansion of English surname words in the English-surname database.
[0105] and / or,
[0106] S527. When the type of split registration failure is the middle name split registration failure in the name information, the word for which the middle name split registration fails is marked as an abnormal middle name, and the marked word is added to the English-middle name database to provide data support for subsequent upgrades and updates of the English-middle name database.
[0107] Similarly, in this embodiment, an English-middle name database is established for standard English names. The English-middle name database includes a large number of English words that can be used as middle names. At the same time, the database also has an abnormal middle name collection sub-database for storing English words that failed to be registered by middle name splitting.
[0108] If the middle name split registration fails in this step, it means that there is no corresponding word in the English-middle name database, which leads to the failure of the word split registration. In this step, the word is marked as an abnormal middle name and added to the abnormal middle name collection sub-database in the English-middle name database, which can provide data support for the subsequent upgrade and expansion of English middle name words in the English-middle name database.
[0109] In this embodiment, the above-mentioned step S525, step S526, and step S527 may exist at the same time, or only one or two of the steps may exist.
[0110] See also Figure 6 In some embodiments, when the type of the name information is a non-English foreign name, and the name splitting rule is a non-English foreign name splitting rule, then the step S50 of splitting and registering the name information according to the determined name splitting rule includes:
[0111] Step S531: Determine the language category to which the non-English foreign name belongs.
[0112] Step S532: according to the language category, find the corresponding language category name splitting rule.
[0113] In the processing method of name registration provided by the present invention, for the time being, the language categories with relatively large number of users in the world include the following language categories in addition to Chinese and English: Russian, Spanish, Japanese, Korean, French, German, Portuguese, Bengali, Hindi, Arabic. In the present embodiment, corresponding name databases and corresponding name splitting rules are respectively established for the above 10 language categories. That is, the present embodiment establishes a Russian foreign name database, a Spanish foreign name database, a Japanese foreign name database, a Korean foreign name database, a French foreign name database, a German foreign name database, a Portuguese foreign name database, a Bengali foreign name database, a Hindi foreign name database, an Arabic foreign name database, and corresponding name splitting rules. Wherein, the name splitting rules of each language category are all set according to the general provisions of the name naming of the corresponding language category to ensure the smoothness of the name splitting registration.
[0114] Step S533: split and register the non-English foreign name according to the language category name splitting rule.
[0115] Furthermore, in this embodiment, each database is also provided with a sub-database for recording abnormal names. When the name splitting registration fails, the first name and / or last name corresponding to the name splitting registration failure is marked as abnormal, and the marked first name and / or last name is added to the abnormal name recording sub-database of the database, providing data support for the subsequent corresponding database upgrade and expansion of the first name and / or last name.
[0116] The method for processing name registration provided in the above embodiment of the present invention effectively solves the problem that passengers whose names contain special characters cannot check in through the registration system by replacing special characters in the name information with standard characters, determining the corresponding name splitting rule according to the name information type, and splitting and registering the name according to the determined name splitting rule, thereby improving the check-in experience of passengers and thus improving the check-in rate of hotel passengers. At the same time, the method for processing name registration provided by the present invention can be applied to the splitting registration of name information in relatively more language categories used worldwide, and can be used for the splitting registration of Chinese names in China and the splitting registration of names in multi-language categories internationally.
[0117] Figure 7 FIG. 1 is a schematic block diagram of a processing device for name registration provided by an embodiment of the present invention. Figure 7 As shown, corresponding to the above name registration processing method, the name registration processing device includes a unit for executing the above name registration processing method, and the name registration processing device can be configured in a desktop computer, a tablet computer, a laptop, and other terminals. Specifically, see Figure 7, the processing device 100 for name registration comprises a character judgment unit 110, a character search unit 120, a character replacement unit 130, a rule determination unit 140, and a split registration unit 150. The character judgment unit 110 is used to judge whether the input name information contains special characters. The character search unit 120 is used to search for standard characters that establish a mapping relationship with the special characters in a preset special character mapping relationship table when the name information contains special characters. The character replacement unit 130 is used to replace the special characters with the standard characters in the name information. The rule determination unit 140 is used to determine the name splitting rule according to the type of the name information. The split registration unit 150 is used to split and register the name information according to the determined name splitting rule.
[0118] In some embodiments, the types of name information in the name registration processing method include: Chinese name, standard English name, non-English foreign name. The name splitting rules include: Chinese name splitting rules, standard English name splitting rules, non-English foreign name splitting rules.
[0119] In some embodiments, Figure 8 As shown, the split registration unit 150 includes: a Chinese name split registration unit 151. The Chinese name split registration unit 151 includes: a length acquisition subunit 1511, a first judgment subunit 1512, a first split subunit 1513, a second judgment subunit 1514, and a second split subunit 1515. Among them, the length acquisition subunit 1511 is used to obtain the character length of the name information when the type of the name information is: Chinese name; the name splitting rule is: Chinese name splitting rule. The first judgment subunit 1512 is used to determine whether the first two characters of the name information exist in the preset double surname database when the character length of the name information is greater than 2. The first split subunit 1513 is used to split the first two characters of the name information into double surnames and split the remaining characters into first names when the first two characters of the name information exist in the double surname database. The second judgment subunit 1514 is used to determine whether the first character of the name information exists in the preset single surname database. The second splitting subunit 1515 is used to split the first character of the name information into a single surname and register the remaining characters into a given name when the single surname database contains the first character of the name information.
[0120] like Fig. 9As shown, the Chinese name splitting and registration unit 151 in this embodiment is based on the above embodiment and adds an abnormal marking subunit 1516 and a character adding subunit 1517. The abnormal marking subunit 1516 is used to mark the first character as an abnormal surname when the single surname database does not have the first character in the name information. The character adding subunit 1517 is used to add the marked first character to the single surname database to provide data support for subsequent upgrades and updates of the single surname database.
[0121] In some embodiments, Fig.10 As shown, the split registration unit 150 also includes: a standard English name split registration unit 152, and the standard English name split registration unit 152 includes: a quantity acquisition subunit 1521 and a name split subunit 1522. The quantity acquisition subunit 1521 is used to obtain the number of words in the name information when the type of the name information is: a standard English name; the name splitting rule. The name information splitting subunit 1522 is used to split and register the name information according to the number of words in the name information. The name splitting subunit 1522 is specifically used for, when the number of words is 2, splitting the first word in the name information into a given name, and splitting the remaining words into surnames; when the number of words is 3, splitting the first word in the name information into a given name, the second word into a middle name, and the third word into a surname; when the number of words is greater than or equal to 4, splitting the first word in the name information into a given name, the second word into a middle name, and the combination of the first and second to last words into surnames; and splitting the remaining words into the first middle name.
[0122] like Fig.11As shown, the standard English name splitting registration unit 152 in this embodiment is based on the above embodiment and adds a splitting failure judgment subunit 1523, a failure type judgment subunit 1524, a first name splitting failure marking subunit 1525, a surname splitting failure marking subunit 1526, and a middle name splitting failure marking subunit 1527. Among them, the splitting failure judgment subunit 1523 is used to judge whether the name information splitting registration fails. The failure type judgment subunit 1524 is used to judge the type of name information splitting registration failure when the name information splitting registration fails. The first name splitting failure marking subunit 1525 is used to mark the first word as an abnormal name when the type of splitting registration failure is the splitting registration failure of the first word in the name information, and add the marked first word to the English-name database to provide data support for the subsequent upgrade and update of the English-name database. The surname splitting failure marking subunit 1526 is used to mark the word that failed to be registered as an abnormal surname when the type of splitting registration failure is the surname splitting registration failure in the name information, and add the marked word to the English-surname database to provide data support for subsequent upgrades and updates of the English-surname database. The middle name splitting failure marking subunit 1527 is used to mark the word that failed to be registered as an abnormal middle name when the type of splitting registration failure is the middle name splitting registration failure in the name information, and add the marked word to the English-middle name database to provide data support for subsequent upgrades and updates of the English-middle name database.
[0123] In some embodiments, Fig.12 As shown, the split registration unit 150 also includes: a non-English foreign name split registration unit 153. The non-English foreign name split registration unit 153 includes: a language category judgment subunit 1531, a split rule search subunit 1532, and a foreign name split subunit 1533. Among them, the language category judgment subunit 1531 is used to judge the language category to which the non-English foreign name belongs. The split rule search subunit 1532 is used to search for the corresponding language category name splitting rule according to the language category. The foreign name splitting subunit 1533 is used to split and register the non-English foreign name according to the language category name splitting rule.
[0124] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned name registration processing device 100 and each unit can refer to the corresponding description in the above-mentioned name registration processing method embodiment, and for the convenience and brevity of description, it will not be repeated here.
[0125] like Fig.13As shown, an embodiment of the present invention provides a computer device, including a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114, and the memory 113 is used to store computer programs;
[0126] In one embodiment of the present invention, the processor 111 is used to implement the name registration processing method provided by any one of the aforementioned method embodiments when executing the program stored in the memory 113.
[0127] It can be understood by a person skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the embodiment of the above-mentioned method for processing name registration.
[0128] Therefore, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for processing name registration provided in any of the aforementioned method embodiments are implemented.
[0129] The storage medium is a physical, non-transient storage medium, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which can store program codes. The computer-readable storage medium can be non-volatile or volatile.
[0130] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0131] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0132] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0133] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.
[0134] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0135] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
[0136] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for processing name registration, characterized in that: include: Step S1, determine whether the input name information contains special characters, if so, go to step S2; if not, go to step S3; Step S2, searching a preset special character mapping relationship table for a standard character that has a mapping relationship with the special character; Step S3, replacing the special characters in the name information with the standard characters; Step S4, determining a name splitting rule according to the type of the name information; Step S5: split and register the name information according to the determined name splitting rule.
2. The method for processing name registration according to claim 1, characterized in that: The types of name information include: Chinese names, standard English names, and non-English foreign names; The name splitting rules include: Chinese name splitting rules, standard English name splitting rules, and non-English foreign name splitting rules.
3. The method for processing name registration according to claim 2, characterized in that: When the type of the name information is: Chinese name; the name splitting rule is: Chinese name splitting rule; then the step of splitting and registering the name information according to the determined name splitting rule includes: Step S101, obtaining the character length of the name information; Step S102: when the character length of the name is greater than 2, determine whether the first two characters of the name exist in the preset double surname database; if yes, proceed to step S103; if no, proceed to step S104; Step S103, splitting the first two characters in the name information into a double surname and registering the remaining characters into a given name; Step S104, determine whether the first character of the name information exists in the preset single-surname database, if so, proceed to step S105; Step S105: split the first character in the name information into a single surname and register it, and split the remaining characters into a given name and register it.
4. The method for processing name registration according to claim 3, characterized in that: After the step S103 determines whether the preset single-surname database contains the first character of the name information, the following further comprises: When the single surname database does not have the first character of the name information, marking the first character as an abnormal surname; The marked first character is added to the single surname database to provide data support for subsequent upgrades and updates of the single surname database.
5. The method for processing name registration according to claim 2, characterized in that: When the type of the name information is: a standard English name; and the name splitting rule is: a standard English name splitting rule, the step of splitting and registering the name information according to the determined name splitting rule includes: Get the number of words in the name information; According to the number of words in the name information, the name information is split and registered.
6. The method for processing name registration according to claim 5, characterized in that: The step of splitting and registering the name information according to the number of words in the name information specifically includes: When the number of words is 2, the first word in the name information is split and registered as a first name, and the remaining words are split and registered as a last name; When the number of words is 3, the first word in the name information is split and registered as the first name, the second word is split and registered as the middle name, and the third word is split and registered as the last name; When the number of words is greater than or equal to 4, the first word in the name information is split and registered as the first name, the second word is split and registered as the middle name, the combination of the first and second to last words is split and registered as the last name; the remaining words are split and registered as the first middle name.
7. The method for processing name registration according to claim 6, characterized in that: After the step of splitting and registering the name information according to the number of words in the name information, the following step is further included: Determine whether the split registration of name information fails; If so, determine the type of name information split registration failure; When the type of split registration failure is the split registration failure of the first word in the name information, the first word is marked as an abnormal name, and the marked first word is added to the English-name database to provide data support for subsequent upgrades and updates of the English-name database; When the type of split registration failure is the surname split registration failure in the name information, the word for which the surname split registration fails is marked as an abnormal surname, and the marked word is added to the English-surname database to provide data support for subsequent upgrades and updates of the English-surname database; and / or, When the type of split registration failure is the failure to split registration of the middle name in the name information, the word for which the middle name split registration fails is marked as an abnormal middle name, and the marked word is added to the English-middle name database to provide data support for subsequent upgrades and updates of the English-middle name database.
8. The method for processing name registration according to claim 2, characterized in that: When the type of the name information is a non-English foreign name, and the name splitting rule is a non-English foreign name splitting rule, the step of splitting and registering the name information according to the determined name splitting rule includes: Determine the language category to which the non-English foreign name belongs; According to the language category, find the corresponding language category name splitting rules; According to the language category name splitting rule, the non-English foreign name is split and registered.
9. A device for processing name registration, characterized in that: include: A character judgment unit, used to judge whether the input name information contains special characters; A character search unit, used for searching a preset special character mapping table for a standard character that establishes a mapping relationship with the special character when the name information contains the special character; A character replacement unit, used for replacing the special characters in the name information with the standard characters; A rule determination unit, used to determine a name splitting rule according to the type of the name information; The splitting and registering unit is used to split and register the name information according to the determined name splitting rule.
10. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the method for processing name registration as described in any one of claims 1 to 8 when executing the computer program.