Method, device, equipment and readable storage medium for fuzzy matching of Chinese names

By acquiring and combining sets of similar words in Chinese names and directly searching for similar names in the full name database, the time-consuming problem of character fuzzy matching in the existing technology is solved, and the matching efficiency is significantly improved.

CN110928915BActive Publication Date: 2024-10-18JINGDONG TECH HLDG CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201811011539.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-08-31
Publication Date
2024-10-18
Estimated Expiration
2038-08-31

AI Technical Summary

Technical Problem

Character fuzzy matching methods in the prior art consume a lot of computing time, resulting in low efficiency.

Method used

By obtaining the set of similar words for each word in the Chinese name to be processed, and combining each word and similar words to form a set of similar names, if similar names exist in the full name database, it will be used as a fuzzy matching result.

Benefits of technology

It effectively reduces the calculation time and improves the efficiency of fuzzy matching of Chinese names.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110928915B_ABST
    Figure CN110928915B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a method, device, equipment and readable storage medium for fuzzy matching of Chinese names, the method comprising: obtaining a Chinese name to be processed; determining a similar character set of each single character to be processed in the Chinese name to be processed; performing a similar name combination on each single character to be processed and each similar character in the similar character set to form a similar name set; if the similar name in the similar name set exists in the full name database, the similar name is the result of fuzzy matching of the Chinese name to be processed. Since the similar character set of each single character to be processed is first obtained, and then the single character to be processed and each similar character are combined with similar names, and the combined similar names are verified, the calculation time can be effectively reduced and the efficiency of fuzzy matching of Chinese names can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of fuzzy matching technology, and in particular to a method, device, equipment and readable storage medium for fuzzy matching of Chinese names. Background Art

[0002] With the rapid development of the Internet and mobile terminals, people enjoy more convenient services through the Internet and mobile terminals, such as online shopping, online ordering, and swiping cards on POS machines. When people enjoy the convenient services of the Internet and mobile terminals, they need to reserve their real names online or sign their real names on POS machines. However, due to spelling errors in the input method, accent problems, or irregular handwriting, the user's real name will be inaccurate. Therefore, it is necessary to perform fuzzy matching on the user's real name and then determine the user's real name based on other information.

[0003] The basic idea of ​​the existing method for fuzzy matching of characters is to compare the name to be processed with all the names in the full name database in pairs to obtain the fuzzy matching result of the name to be processed, which requires a lot of computing time.

[0004] Therefore, the character fuzzy matching method in the prior art will consume a lot of computing time, making the fuzzy matching efficiency low. Summary of the invention

[0005] The embodiments of the present invention provide a method, device, equipment and readable storage medium for fuzzy matching of Chinese names, which solve the technical problem that the method for fuzzy matching of characters in the prior art consumes a lot of computing time and makes the fuzzy matching inefficient.

[0006] A first aspect of an embodiment of the present invention provides a method for fuzzy matching of Chinese names, comprising: obtaining a Chinese name to be processed; determining a similar character set for each single character to be processed in the Chinese name to be processed; performing similar name combinations on each single character to be processed and each similar character in the similar character set to form a similar name set; if similar names in the similar name set exist in a full name database, then the similar names are the results of fuzzy matching of the Chinese name to be processed.

[0007] A second aspect of an embodiment of the present invention provides a device for fuzzy matching of Chinese names, comprising: a Chinese name acquisition unit, used to acquire a Chinese name to be processed; a similar character set determination unit, used to determine a similar character set for each single character to be processed in the Chinese name to be processed; a similar name set determination unit, used to perform similar name combinations on each single character to be processed and each similar character in the similar character set to form a similar name set; and a similar name verification unit, used to verify that if a similar name in the similar name set exists in a full name database, the similar name is the result of fuzzy matching of the Chinese name to be processed.

[0008] A third aspect of an embodiment of the present invention provides an electronic device, comprising: a memory, a processor and a computer program; wherein the computer program is stored in the memory and is configured to be executed by the processor to implement the method described in the first aspect.

[0009] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the method as described in the first aspect.

[0010] Based on the above aspects, the embodiment of the present invention provides a method, device, equipment and readable storage medium for fuzzy matching of Chinese names, by obtaining a Chinese name to be processed; determining a similar character set of each single character to be processed in the Chinese name to be processed; performing a similar name combination on each single character to be processed and each similar character in the similar character set to form a similar name set; if the similar name in the similar name set exists in the full name database, the similar name is the result of fuzzy matching of the Chinese name to be processed. Since when performing fuzzy matching of Chinese names, the name to be processed is not directly compared with all the names in the full name database in pairs according to conventional ideas, but first obtaining a similar character set of each single character to be processed, and then performing a similar name combination on the single character to be processed and each similar character, and verifying the combined similar names, it can effectively reduce the calculation time and effectively improve the efficiency of fuzzy matching of Chinese names.

[0011] It should be understood that the contents described in the above summary of the invention are not intended to limit the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 A flowchart of a method for fuzzy matching of Chinese names provided in Embodiment 1 of the present invention;

[0013] Figure 2A flowchart of a method for fuzzy matching of Chinese names provided in Embodiment 2 of the present invention;

[0014] Figure 3 This is a schematic diagram of the result after executing the method for fuzzy matching of Chinese names in the second embodiment of the present invention;

[0015] Figure 4 A flowchart of a method for fuzzy matching of Chinese names provided in Embodiment 3 of the present invention;

[0016] Figure 5 A schematic diagram of the structure of a device for fuzzy matching of Chinese names provided in Embodiment 4 of the present invention;

[0017] Figure 6 A schematic diagram of the structure of a device for fuzzy matching of Chinese names provided in Embodiment 5 of the present invention;

[0018] Figure 7 This is a schematic diagram of the structure of an electronic device provided in Embodiment 6 of the present invention. DETAILED DESCRIPTION

[0019] Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are only for exemplary purposes and are not intended to limit the scope of protection of the present invention.

[0020] The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of the embodiments of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein, for example, can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0021] The application scenarios of the method for fuzzy matching of Chinese names provided in this embodiment of the present invention may include: determining whether there are spelling errors in the Chinese name input by the user through the input method, finding similar names that fuzzily match the input Chinese name, obtaining the user's handwritten Chinese name, fuzzily matching the user's handwritten Chinese name, outputting similar names, or other application scenarios.

[0022] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

[0023] Embodiment 1

[0024] Figure 1 This is a flow chart of the method for fuzzy matching of Chinese names provided in the first embodiment of the present invention, as shown in FIG. Figure 1 As shown, the execution subject of this embodiment is a device for fuzzy matching of Chinese names, and the device for fuzzy matching of Chinese names can be integrated in an electronic device. The electronic device can be a computer, a laptop, a tablet computer, a smart phone, or other devices with independent computing and processing capabilities. The method for fuzzy matching of Chinese names provided in this embodiment includes the following steps.

[0025] Step 101, obtaining the Chinese name to be processed.

[0026] In this embodiment, the Chinese name to be processed may be a Chinese name input by the user through an input method, or a Chinese name handwritten by the user.

[0027] Specifically, in this embodiment, the method for obtaining the Chinese name to be processed may be to receive the Chinese name to be processed input by the user through a keyboard, or to communicate with other devices to obtain the Chinese name to be processed from the storage area of ​​other devices, or to obtain the Chinese name to be processed in other ways, which are not limited in this embodiment.

[0028] The Chinese name to be processed includes at least two characters.

[0029] Step 102, determining a similar character set for each single character to be processed in the Chinese name to be processed.

[0030] Specifically, in this embodiment, each single character to be processed in the Chinese name to be processed is fuzzy matched with each comparison single character in the name single character library, the similarity between each single character to be processed and each comparison single character is calculated, and the similar single characters of each single character to be processed are determined according to the similarity, and the similarity set of the single character to be processed is composed of all similar single characters of the single character to be processed.

[0031] When fuzzy matching is performed between each single character to be processed in the Chinese name to be processed and each single character to be compared in the name single character library, the specific fuzzy matching algorithm is not limited in this embodiment.

[0032] The comparison characters in the name character library are characters that are different from the characters to be processed for which similarity calculation is performed.

[0033] Step 103, performing similar name combination on each single word to be processed and each similar word in the similar word set to form a similar name set.

[0034] Specifically, in this embodiment, each single word to be processed and the similar characters of each single word to be processed are extracted, and each single word to be processed or the similar characters of each single word to be processed are combined and traversed in the order of Chinese names to form different combinations of similar names.

[0035] In this embodiment, each single word to be processed and each similar word in the similar word set are combined with similar names to form a similar name set. An exemplary explanation is as follows: Assume that the Chinese name to be processed includes two single words, and the Chinese name to be processed is "AB". There are three similar words for the first single word to be processed, namely "A1", "A2", and "A3"; there are also three similar words for the second single word to be processed, namely "B1", "B2", and "B3"; then firstly, the first single word to be processed is combined with the similar words of the second single word to be processed, and the similar words are: "AB1", "AB2", and "AB3". The first similar word of the first single word to be processed is combined with the second single word to be processed and the similar words of the second single word to be processed, and the similar names are: "A1B", "A1B1", "A1B2", and "A1B3". The second similar word of the first single word to be processed is combined with the second single word to be processed and the similar words of the second single word to be processed, respectively, to form similar names: "A2B", "A2B1", "A2B2", "A2B3". The third similar word of the first single word to be processed is combined with the second single word to be processed and the similar words of the second single word to be processed, respectively, to form similar names: "A3B", "A3B1", "A3B2", "A3B3". The above 15 similar names are included in the similar name set.

[0036] Step 104: If the similar name in the similar name set exists in the full name database, the similar name is the result of fuzzy matching of the Chinese name to be processed.

[0037] Specifically, in this embodiment, all Chinese names are pre-stored in the full name database. It is determined whether each similar name in the similar name set exists in the full name database. If a similar name exists in the full name database, the similar name is used as a similar name fuzzy matched with the Chinese name to be processed. If a similar name does not exist in the full name database, the similar name is not used as a similar name fuzzy matched with the Chinese name to be processed. All similar names existing in the full name database are used as the results of fuzzy matching of the Chinese name to be processed.

[0038] The method for fuzzy matching of Chinese names provided in this embodiment is as follows: obtaining a Chinese name to be processed; determining a similar character set of each single character to be processed in the Chinese name to be processed; performing a similar name combination on each single character to be processed and each similar character in the similar character set to form a similar name set; if a similar name in the similar name set exists in the full name database, the similar name is the result of fuzzy matching of the Chinese name to be processed. Since when performing fuzzy matching of Chinese names, the name to be processed is not directly compared with all the names in the full name database in pairs according to conventional ideas, but first obtaining a similar character set of each single character to be processed, then performing a similar name combination on the single character to be processed and each similar character, and verifying the combined similar names, it can effectively reduce the calculation time and effectively improve the efficiency of fuzzy matching of Chinese names.

[0039] Embodiment 2

[0040] Figure 2 The flowchart of the method for fuzzy matching of Chinese names provided in the second embodiment of the present invention is as follows: Figure 2 As shown, the method for fuzzy matching of Chinese names provided in this embodiment is a further refinement of step 102 based on the method for fuzzy matching of Chinese names provided in the first embodiment of the present invention. The method provided in this embodiment includes the following steps.

[0041] Step 201, obtaining the Chinese name to be processed.

[0042] In this embodiment, step 201 is implemented in the same manner as step 101 of the method for fuzzy matching of Chinese names provided in the first embodiment of the present invention, and the comparison is not limited in this embodiment.

[0043] Step 202, calculating the similarity between each to-be-processed character and each comparison character in the name character library.

[0044] The name character library is a library composed of all the names after the characters are deduplicated. All comparison characters are all the characters in the name character library that are different from the characters to be processed.

[0045] Furthermore, in step 202 of this embodiment, calculating the similarity between each to-be-processed character and each comparison character in the name character library includes the following three steps.

[0046] Step 202a, extracting features of different dimensions for each single word to be processed, and forming feature data of each dimension for each single word to be processed.

[0047] The feature extraction of different dimensions for each single word to be processed may include: pronunciation feature extraction and character shape feature extraction. The pronunciation feature extraction includes: initial consonant feature extraction and final consonant feature extraction. The character shape feature extraction includes: four-corner code feature extraction, stroke number feature extraction and character shape structure feature extraction.

[0048] Correspondingly, the feature data of each dimension includes: pronunciation feature data and character shape feature data. The pronunciation feature data includes: initial consonant feature data and final vowel feature data. The character shape feature data includes: four-corner code feature data, stroke number feature data, and character shape structure feature data.

[0049] Therefore, in this embodiment, step 202a, extracting features of different dimensions for each single word to be processed to form feature data of each dimension of each single word to be processed, specifically includes the following steps.

[0050] Step 202a1, extracting pronunciation features of each single word to be processed, and forming pronunciation feature data of each single word to be processed.

[0051] Preferably, in this embodiment, pronunciation feature extraction is performed on each word to be processed to form pronunciation feature data of each word to be processed, specifically including:

[0052] First, determine whether each word to be processed is a polyphone.

[0053] Specifically, in this embodiment, when constructing a name character library, if a certain character in the character library is a polyphonic character, the polyphonic character is marked. Therefore, it is possible to query in the name character library whether the character to be processed has been marked as a polyphonic character. If it has been marked as a polyphonic character, the character to be processed is a polyphonic character, otherwise it is not a polyphonic character.

[0054] Secondly, if the single word to be processed is a polyphonic word, the pinyin of the single word to be processed as the common pronunciation of the name is used to extract the initial consonant feature and the final consonant feature data of the single word to be processed, respectively forming the initial consonant feature data and the final consonant feature data of the single word to be processed.

[0055] Specifically, in this embodiment, if the single word to be processed is a polyphonic word, it is determined which is the common pronunciation of the single word to be processed as a name. The initial consonant feature and the final vowel feature of the common pronunciation of the name of the single word to be processed are extracted to form the initial consonant feature data and the final vowel feature data of the single word to be processed respectively.

[0056] In this embodiment, the initial consonant feature extraction and the final vowel feature extraction are performed on the pinyin of the single character to be processed as the common pronunciation of a name, and the initial consonant feature data and the final vowel feature data of the single character to be processed are respectively formed. An exemplary illustration is as follows: Assume that the single character to be processed is "解". This single character to be processed is a polyphonic character. When used as a name, "xie" is the common pronunciation of the name. Then, the initial consonant feature extraction is performed on "xie", and the formed initial consonant feature data is "x". The final vowel feature extraction is performed on the final vowel "ie", and the formed final vowel feature data is "ie".

[0057] Finally, if the single character to be processed is not a polyphonic character, the initial consonant feature extraction and the final vowel feature extraction are performed on the pinyin of the single character to be processed, and the initial consonant feature data and the final vowel feature data of the single character to be processed are respectively formed.

[0058] Step 202a2, perform glyph feature extraction on each single character to be processed to form the glyph feature data of each single character to be processed.

[0059] Specifically, in this embodiment, performing glyph feature extraction on each single character to be processed to form the glyph feature data of each single character to be processed specifically includes:

[0060] Perform four-corner code feature extraction, stroke count feature extraction, and glyph structure feature extraction on each single character to be processed respectively to form four-corner code feature data, stroke count feature data, and glyph structure feature data respectively.

[0061] Among them, the four-corner code is a kind of encoding of Chinese character glyphs. The stroke codes of the four corners of the Chinese character are taken in sequence as the Chinese character encoding. It was invented for typesetting in the publishing industry and dictionary look-up in 1925. Compared with pinyin, the four-corner code has much fewer homophones and has the characteristics of glyphs.

[0062] Among them, the stroke count of a single character is the number of strokes used to write the single character, which reflects the glyph of the Chinese character to a certain extent. The glyph structure value of a single character refers to the structure of the single character. It can include: single structure, left-right structure, up-down structure, upper-left surrounded structure, upper-three surrounded structure, full surrounded structure, character-in-character structure, etc.

[0063] An exemplary illustration of performing four-corner code feature extraction, stroke count feature extraction, and glyph structure feature extraction on the single character to be processed in this embodiment to form four-corner code feature data, stroke count feature data, and glyph structure feature data respectively is as follows: Assume that the single character to be processed is "体". Perform four-corner code feature extraction on "体", and the obtained four-corner code feature data is "2523". Perform stroke count feature extraction on "体", and the obtained stroke count feature data is "7". Perform font structure feature extraction on "体", and the obtained font structure feature data is the left-right structure.

[0064] Step 202b, calculating the similarity between the feature data of each dimension of each to-be-processed word and the feature data of the corresponding dimension of each comparison word.

[0065] Preferably, in this embodiment, if the feature data of the word to be processed is initial consonant feature data or final feature data, then the similarity between the feature data of each dimension of each word to be processed and the feature data of the corresponding dimension of each comparison word is calculated, specifically including:

[0066] First, the initial consonant feature data or the final consonant feature data of the word to be processed is compared with the feature data of the corresponding dimension of the comparison word.

[0067] It should be noted that, in this embodiment, before comparing the initial consonant feature data or the final consonant feature data of the word to be processed with the feature data of the corresponding dimension of the comparison word, the initial consonant similar sounds and the final consonant similar sounds are first set.

[0068] Among them, initial consonants with similar sounds can be set according to pronunciation, such as flat tongue sounds and curled tongue sounds. For example, "L" and "N" are initial consonant similar sounds. Similarly, final consonant similar sounds can be set according to pronunciation. For example, "en" and "eng" are similar sounds, and "iang" and "ang" are similar sounds.

[0069] Specifically, in this embodiment, the initial consonant feature data or the final consonant feature data of the word to be processed is compared with the feature data of the corresponding dimension of the comparison word to determine whether the initial consonant feature data of the word to be processed is the same or similar or neither the same nor similar to the initial consonant feature data of the comparison word. And determine whether the final consonant feature data of the word to be processed is the same or similar or neither the same nor similar to the final consonant feature data of the comparison word.

[0070] Secondly, if the initial consonant feature data or the final consonant feature data of the word to be processed is the same as the feature data of the corresponding dimension of the comparison word, the similarity between the initial consonant feature data or the final consonant feature data of the word to be processed and the comparison word is the first value.

[0071] Again, if the initial consonant feature data or the final consonant feature data of the word to be processed is similar to the feature data of the corresponding dimension of the comparison word, the similarity between the initial consonant feature data or the final consonant feature data of the word to be processed and the comparison word is the second value.

[0072] Finally, if the initial consonant feature data or final consonant feature data of the word to be processed is neither identical nor similar to the feature data of the corresponding dimension of the comparison word, the similarity between the initial consonant feature data or final consonant feature data of the word to be processed and the comparison word is the third value.

[0073] Specifically, in the present embodiment, if the initial consonant feature data of the word to be processed is the same as the initial consonant feature data of the comparison word, or if the final consonant feature data of the word to be processed is the same as the final consonant feature data of the comparison word, then the similarity between the word to be processed and the initial consonant feature data or the final consonant feature data of the comparison word is a first value. If the initial consonant feature data of the word to be processed is close to the initial consonant feature data of the comparison word, or if the final consonant feature data of the word to be processed is close to the final consonant feature data of the comparison word, then the similarity between the word to be processed and the initial consonant feature data or the final consonant feature data of the comparison word is a second value. If the initial consonant feature data of the word to be processed is neither the same nor close to the initial consonant feature data of the comparison word, or if the final consonant feature data of the word to be processed is neither the same nor close to the final consonant feature data of the comparison word, then the similarity between the word to be processed and the initial consonant feature data or the final consonant feature data of the comparison word is a third value.

[0074] The first value is greater than the second value, and the second value is greater than the third value. For example, the first value may be 1, the second value may be 0.8, and the third value may be 0. The first value, the second value, and the third value may also be other values ​​that meet the requirements, which are not limited in this embodiment.

[0075] Preferably, in this embodiment, if the feature data of the to-be-processed single word is four-corner code feature data, then calculating the similarity between the feature data of each dimension of each to-be-processed single word and the feature data of the corresponding dimension of each comparison single word specifically includes:

[0076] First, each bit of the four-corner code characteristic data of the single word to be processed is compared with the corresponding bit of the four-corner code characteristic data of the single word to be compared.

[0077] Secondly, if a certain bit of data of the single word to be processed is the same as the data of the corresponding bit of the single word to be compared, the similarity corresponding to the bit of data is the first value.

[0078] Again, if a certain bit of data of the single word to be processed is different from the data of the corresponding bit of the single word to be compared, the similarity corresponding to the bit of data is the third value.

[0079] Finally, the average value of the similarities corresponding to all bit data of the four-corner code feature data of the single word to be processed and the single word to be compared is determined as the similarity between the four-corner code feature data of the single word to be processed and the four-corner code feature data of the single word to be compared.

[0080] The first value is greater than the third value.

[0081] Specifically, in the present embodiment, the four-corner code feature data of the single word to be processed and the four-corner code feature data of the single word to be compared both include four bits of data. Each bit of data of the single word to be processed and the single word to be compared is compared to determine whether each bit of data is the same. If a certain bit of data of the single word to be processed is the same as that of the single word to be compared, the similarity corresponding to the bit of data is a first value; if a certain bit of data of the single word to be processed is different from that of the single word to be compared, the similarity corresponding to the bit of data is a third value. After obtaining the value of the similarity corresponding to each bit of data, the average of the similarity values ​​corresponding to all the bit of data is calculated, and the average is used as the similarity between the four-corner code feature data of the single word to be processed and the four-corner code feature data of the single word to be compared.

[0082] In this embodiment, the similarity between the characteristic data of the four-corner code of the single word to be processed and the characteristic data of the four-corner code of each comparison single word is exemplified. Assuming that the first value is 1, the third value is 0, the single word to be processed is "body", the corresponding four-corner code characteristic data is "2523", and the comparison single word is "rest", and the corresponding four-corner code characteristic data is "2429". Then the similarity values ​​obtained after comparing each bit of data are "1010" respectively, and the average of the four values ​​is summed and taken as "0.5". Then "0.5" is the similarity of the four-corner code characteristic data of the single word to be processed "body" and the comparison single word "rest".

[0083] Preferably, in this embodiment, if the feature data of the to-be-processed single word is the feature data of the number of strokes, then calculating the similarity between the feature data of each dimension of each to-be-processed single word and the feature data of the corresponding dimension of each comparison single word specifically includes:

[0084] First, determine whether the number of strokes of the character to be processed is greater than the number of strokes of the comparison character.

[0085] Secondly, if the number of strokes of the word to be processed is greater than the number of strokes of the comparison word, the ratio of the number of strokes of the comparison word to the number of strokes of the word to be processed is determined as the similarity between the stroke number feature data of the word to be processed and the stroke number feature data of the comparison word.

[0086] Finally, if the number of strokes of the word to be processed is less than or equal to the number of strokes of the comparison word, the ratio of the number of strokes of the word to be processed to the number of strokes of the comparison word is taken as the similarity between the stroke number feature data of the word to be processed and the stroke number feature data of the comparison word.

[0087] Specifically, in this embodiment, an example is given for calculating the similarity between the feature data of the number of strokes of the single character to be processed and the feature data of the number of strokes of each comparison single character. Assume that the single character to be processed is "体" (body), the feature data of the number of strokes is "7", and the comparison single character is "休" (rest) with the corresponding feature data of the number of strokes being "6". It is determined that the number of strokes of the single character to be processed "体" is greater than that of the comparison single character "休". Then, the ratio 0.86 of the number of strokes "6" of the comparison single character "休" to the number of strokes 7 of the single character to be processed "体" is determined as the similarity between the feature data of the number of strokes of the single character to be processed "体" and the feature data of the number of strokes of the comparison single character "休".

[0088] Preferably, in this embodiment, if the feature data of the single character to be processed is the glyph structure feature data, then calculate the similarity between the feature data of each dimension of each single character to be processed and the corresponding dimension feature data of each comparison single character, which specifically includes:

[0089] First, determine whether the glyph structure feature data of the single character to be processed is the same as the glyph structure feature data of the comparison single character.

[0090] Second, if the glyph structure feature data of the single character to be processed is the same as the glyph structure feature data of the comparison single character, then determine that the similarity between the glyph structure feature data of the single character to be processed and the glyph structure feature data of the comparison single character is the first value.

[0091] Finally, if the glyph structure feature data of the single character to be processed is different from the glyph structure feature data of the comparison single character, then determine that the similarity between the glyph structure feature data of the single character to be processed and the glyph structure feature data of the comparison single character is the third value.

[0092] Among them, the first value is greater than the third value.

[0093] Specifically, in this embodiment, an example is given for calculating the similarity between the feature data of the font structure of the single character to be processed and the feature data of the font structure of each comparison single character. Assume that the single character to be processed is "体" (body), the font structure feature data is "left - right structure", and the comparison single character is "休" (rest) with the corresponding font structure feature data being "left - right structure". It is determined that the font structure feature data of the single character to be processed "体" is the same as the font structure feature data of the comparison single character "休", then it is determined that the similarity between the font structure feature data of the single character to be processed "体" and the font structure feature data of the comparison single character "休" is the first value.

[0094] Step 202c, set the weight of the feature data of each dimension, and perform a weighted sum calculation on the similarity of the feature data of each dimension to obtain the similarity between each single character to be processed and each comparison single character in the name single - character library.

[0095] Specifically, in this embodiment, the weight of the feature data of each dimension can be set according to the different application scenarios of the embodiments of the present invention. For example, in the scenario of determining whether there is a spelling error in the Chinese name input by the user through the input method, and finding a similar name that fuzzily matches the input Chinese name, the weight set for the pronunciation feature data can be greater than the weight set for the glyph feature data. For example, the weight set for the pronunciation feature data is 0.7, and the weight set for the glyph feature data is 0.3. For another example, in the scenario of obtaining the user's handwritten Chinese name, fuzzily matching the user's handwritten Chinese name, and outputting a similar name, the weight set for the glyph feature data can be greater than the weight set for the pronunciation feature data. For example, the weight set for the glyph feature data is 0.7, and the weight set for the pronunciation feature data is 0.3.

[0096] Among them, in the pronunciation feature data, the weights are set for the initial consonant feature data and the final consonant feature data, such as the weight set for the initial consonant feature data is 0.6, and the weight set for the final consonant feature data is 0.4. In the character feature data, the weights are set for the four-corner code feature data, the number of strokes feature data and the character structure feature data, such as the weight set for the four-corner code feature data is 0.4, the weight set for the number of strokes feature data is 0.2, and the weight set for the character structure feature data is 0.4.

[0097] It is understandable that in this embodiment, the specific value of the weight set for the feature data of each dimension is not limited.

[0098] Specifically, in this embodiment, the similarity of the feature data of each dimension is weighted and summed to obtain the similarity of each single word to be processed and each comparison single word in the name single word library. The following is an exemplary explanation: the weight of the pronunciation feature data is set to 0.7, and the weight of the character feature data is set to 0.3; the weight of the initial consonant feature data is set to 0.6, and the similarity of the initial consonant feature data is 1; the weight of the final feature data is set to 0.4, and the similarity of the final feature data is 0; the weight of the four-corner code feature data is set to 0.4, and the similarity of the four-corner code feature data is 0.5; the weight of the stroke number feature data is set to 0.2, and the similarity of the stroke number feature data is 0.8; the weight of the character structure feature data is set to 0.4. The similarity corresponding to the character structure feature data is 0. The similarity of the feature data of each dimension is weighted and summed up, and the result is: 0.7*(0.6*1+0.4*0+0.4*0.5)+0.3*(0.2*0.8+0.4*0)=0.608.

[0099] Step 203, determining whether the similarity between the to-be-processed word and the comparison word is greater than a preset threshold, if so, executing step 204, otherwise executing step 205.

[0100] In this embodiment, the preset threshold value may be 0.8 or 0.85 or other suitable values, which is not limited in this implementation.

[0101] Specifically, in this embodiment, it is determined whether the similarity between the single word to be processed and the comparison single word is greater than a preset threshold. If the similarity between the single word to be processed and the comparison single word is greater than the preset threshold, it means that the single word to be processed and the comparison single word are very similar, and the comparison single word is determined to be a similar word to the single word to be processed. If the similarity between the single word to be processed and the comparison single word is less than or equal to the preset threshold, it means that the single word to be processed and the comparison single word are not similar, and it is determined that the comparison single word is not a similar word to the single word to be processed.

[0102] Step 204, determining that the compared word is a similar word to the word to be processed.

[0103] It can be understood that, in this embodiment, step 206 is executed after step 204 is executed.

[0104] Step 205, determining that the compared single word is not a similar word to the single word to be processed.

[0105] Step 206: determine the set of similar characters as the similar character set of the single character to be processed.

[0106] It should be noted that, in this embodiment, steps 202 to 206 are further refinements of step 102 of the method for fuzzy matching of Chinese names provided in the first embodiment of the present invention.

[0107] Step 207, performing similar name combination on each single word to be processed and each similar word in the similar word set to form a similar name set.

[0108] In this embodiment, the implementation of step 207 is the same as the implementation of step 103 of the method for fuzzy matching of Chinese names provided in the first embodiment of the present invention, and will not be described in detail here.

[0109] Step 208, determining whether the similar names in the similar name set exist in the full name database, if so, executing step 209, otherwise executing step 210.

[0110] Step 209: The similar name is a result of fuzzy matching of the Chinese name to be processed.

[0111] Step 210: The similar name is not a result of fuzzy matching of the Chinese name to be processed.

[0112] Specifically, in this embodiment, it is determined whether a similar name in the similar name set exists in the full name database. If a similar name in the similar name set exists in the full name database, then the similar name is the result of fuzzy matching of the Chinese name to be processed. If a similar name in the similar name set does not exist in the full name database, then the similar name is not the result of fuzzy matching of the Chinese name to be processed, so as to verify the result of fuzzy matching. Figure 3 This is a schematic diagram of the result of executing the method for fuzzy matching of Chinese names in the second embodiment of the present invention. Figure 3 The fuzzy matching results of four Chinese names to be processed are included.

[0113] The method for fuzzy matching of Chinese names provided in this embodiment, when calculating the similarity between each single word to be processed and each comparison single word in the single word library of the name, extract features of different dimensions for each single word to be processed to form feature data of each dimension of each single word to be processed, and extract features of different dimensions for each single word to be processed may include: pronunciation feature extraction and character shape feature extraction. The pronunciation feature extraction includes: initial consonant feature extraction and final vowel feature extraction. The character shape feature extraction includes: four-corner code feature extraction, stroke number feature extraction and character shape structure feature extraction. The weight of the feature data of each dimension is set according to the application scenario, and the similarity of the feature data of each dimension is weighted and summed to obtain the similarity of each single word to be processed and each comparison single word in the single word library of the name. Since Chinese characters are pictographic characters, they have not only pronunciation features but also character features. Therefore, when performing fuzzy matching of single words, not only the pronunciation features of the single words but also the character shape features are extracted, and the pronunciation similarity and character shape similarity are considered at the same time. When setting the weight of the feature data, the weight can be adjusted according to the application scenario, so as to make the fuzzy matching result of the single word more accurate.

[0114] Embodiment 3

[0115] Figure 4 The flowchart of the third embodiment of the method for fuzzy matching of Chinese names provided in the third embodiment of the present invention is based on the method for fuzzy matching of Chinese names provided in the second embodiment of the present invention, and also includes the steps of constructing a name single-character word library, extracting features of different dimensions for each single character in the name single-character word library, forming feature data of each dimension of each single character in the name single-character word library, and post-processing the constructed name single-character word library. The method for fuzzy matching of Chinese names provided in this embodiment includes the following steps.

[0116] Step 401, construct a name character library.

[0117] Further, in this embodiment, step 401, constructing a name character library specifically includes:

[0118] First, extract the individual characters of all names in the full name database.

[0119] Secondly, remove duplicate characters from all names.

[0120] Finally, a name character library is constructed from the characters of all names after deduplication.

[0121] Specifically, in this embodiment, all Chinese names are included in the full name database, and the Chinese names are split to obtain the individual characters of all names, and the individual characters of all names are deduplicated using a deduplication algorithm. A name single-character word library is constructed from the individual characters of all names after deduplication, and the individual characters corresponding to all names are stored in the name single-character word library.

[0122] Step 402: If the name character library includes traditional Chinese characters, convert the traditional Chinese characters into simplified Chinese characters.

[0123] Specifically, in this embodiment, it is determined whether the name character library includes traditional Chinese characters, and if so, the traditional Chinese characters are converted to simplified Chinese characters. The determination of whether the name character library includes traditional Chinese characters can be made based on a traditional Chinese character recognition method.

[0124] Step 403: If the name character library includes polyphones, the polyphones are marked and the polyphones are constructed into two characters, and the pronunciations of the two characters are different.

[0125] Furthermore, in this embodiment, if the name character library includes polyphones, the polyphones are marked, that is, each polyphone has an identifier of the polyphone, and different characters are formed according to the different pronunciations of the polyphone.

[0126] It is understandable that step 402 and step 403 are post-processing of the name character library. After the name character library is constructed and post-processed, step 401 to step 403 are no longer executed, but the name character library can be updated regularly.

[0127] Step 404 , extracting features of different dimensions for each single character in the name single character library, and forming feature data of each dimension for each single character in the name single character library.

[0128] In this embodiment, the method for extracting features of different dimensions for each single word in the name single word library to form feature data of each dimension for each single word in the name single word library is similar to the method for extracting features of different dimensions for each single word to be processed in step 202a in the second embodiment of the present invention to form feature data of each dimension for each single word to be processed, and will not be described in detail here.

[0129] Step 405, obtaining the Chinese name to be processed.

[0130] Step 406, calculating the similarity between each to-be-processed character and each comparison character in the name character library.

[0131] Step 407 , determining whether the similarity between the to-be-processed word and the comparison word is greater than a preset threshold, if so, executing step 408 , otherwise executing step 409 .

[0132] Step 408, determining that the compared word is a similar word to the word to be processed.

[0133] Step 409, determining that the compared word is not a similar word to the word to be processed.

[0134] Step 410: determine the set of similar characters as the similar character set of the single character to be processed.

[0135] Step 411, performing similar name combination on each single word to be processed and each similar word in the similar word set to form a similar name set.

[0136] Step 412, determining whether the similar names in the similar name set exist in the full name database, if so, executing step 413, otherwise executing step 414.

[0137] Step 413: The similar name is a result of fuzzy matching of the Chinese name to be processed.

[0138] Step 414: The similar name is not a result of fuzzy matching of the Chinese name to be processed.

[0139] In this embodiment, the implementation of steps 405 to 414 is the same as the implementation of steps 201 to 210 of the Chinese name fuzzy matching method provided in the second embodiment of the present invention, and will not be described in detail here.

[0140] The method for fuzzy matching of Chinese names provided in this embodiment is to construct a name single-character word library before obtaining the Chinese name to be processed. If all the single characters of the name include traditional Chinese characters, the traditional Chinese characters are converted into simplified Chinese characters; if the name single-character word library includes polyphonic characters, the polyphonic characters are marked and constructed into multiple single characters with different pronunciations; each single character in the name single-character word library is subjected to feature extraction of different dimensions to form feature data of each dimension of each single character in the name single-character word library. The constructed name single-character word library can be made more accurate, and each single character in the name single-character word library is subjected to feature extraction of different dimensions to form feature data of each single character in the name single-character word library to prepare for the calculation of single-character similarity.

[0141] Embodiment 4

[0142] Figure 5The schematic diagram of the structure of the device for fuzzy matching of Chinese names provided in the fourth embodiment of the present invention is as follows: Figure 5 As shown, the Chinese name fuzzy matching device 50 provided in this embodiment includes: a Chinese name obtaining unit 51, a similar character set determining unit 52, a similar name set determining unit 53 and a similar name verifying unit 54.

[0143] Among them, the Chinese name acquisition unit 51 is used to acquire the Chinese name to be processed. The similar character set determination unit 52 is used to determine the similar character set of each single character to be processed in the Chinese name to be processed. The similar name set determination unit 53 is used to perform similar name combination on each single character to be processed and each similar character in the similar character set to form a similar name set. The similar name verification unit 54 is used to determine that if the similar name in the similar name set exists in the full name database, the similar name is the result of fuzzy matching of the Chinese name to be processed.

[0144] The Chinese name fuzzy matching device provided in this embodiment can be executed Figure 1 The technical solution of the method embodiment shown has a similar implementation principle and will not be repeated here.

[0145] The device for fuzzy matching of Chinese names provided in the present embodiment obtains the Chinese name to be processed through a Chinese name obtaining unit, and the similar character set determining unit determines the similar character set of each single character to be processed in the Chinese name to be processed, and the similar name set determining unit performs similar name combination on each single character to be processed and each similar character in the similar character set to form a similar name set, and if the similar name in the similar name set exists in the full name database, the similar name verification unit determines that the similar name is the result of fuzzy matching of the Chinese name to be processed. When performing fuzzy matching of Chinese names, the name to be processed is not directly compared with all the names in the full name database in pairs according to conventional ideas, but the similar character set of each single character to be processed is first obtained, and then the single character to be processed and each similar character are combined with similar names, and the combined similar names are verified. Therefore, the calculation time can be effectively reduced and the efficiency of fuzzy matching of Chinese names can be effectively improved.

[0146] Embodiment 5

[0147] Figure 6 The schematic diagram of the structure of the device for fuzzy matching of Chinese names provided in the fifth embodiment of the present invention is as follows: Figure 6 As shown, the Chinese name fuzzy matching device 60 provided in this embodiment is based on the Chinese name fuzzy matching device provided in Example 4 of the present invention, and further includes: a construction unit 61, a character library single word feature extraction unit 62, a conversion unit 63 and a polyphone construction unit 64.

[0148] Furthermore, the similar character set determining unit 52 specifically includes: a single character similarity calculating subunit 521 , a similar character determining subunit 522 , and a similar character set determining subunit 523 .

[0149] The single word similarity calculation subunit 521 is used to calculate the similarity between each single word to be processed and each comparison single word in the name single word library. The similar word determination subunit 522 is used to determine the comparison single word as a similar word of the single word to be processed if the similarity between the single word to be processed and the comparison single word is greater than a preset threshold. The similar word set determination subunit 523 is used to determine a set composed of similar words as a similar word set of the single word to be processed.

[0150] Furthermore, the single-word similarity calculation subunit 521 includes: a single-word feature extraction module 521a, a single-word similarity calculation module 521b, a weight setting module 521c, and a weighted sum calculation module 521d.

[0151] Among them, the single word feature extraction module 521a is used to extract features of different dimensions for each single word to be processed, so as to form feature data of each dimension of each single word to be processed. The single word similarity calculation module 521b is used to calculate the similarity between the feature data of each dimension of each single word to be processed and the feature data of the corresponding dimension of each comparison single word. The weight setting module 521c is used to set the weight of the feature data of each dimension. The weighted sum calculation module 521d is used to perform weighted sum calculation on the similarity of the feature data of each dimension, so as to obtain the similarity between each single word to be processed and each comparison single word in the name single word library.

[0152] Furthermore, the single-word feature extraction module 521a includes: a single-word pronunciation feature extraction module 521a1 and a single-word shape feature extraction module 521a2.

[0153] The single word pronunciation feature extraction module 521a1 is used to extract pronunciation features of each single word to be processed to form pronunciation feature data of each single word to be processed. The single word glyph feature extraction module 521a2 is used to extract glyph features of each single word to be processed to form glyph feature data of each single word to be processed.

[0154] Furthermore, the single-word pronunciation feature extraction module 521a1 is specifically used to: determine whether each single word to be processed is a polyphone; if the single word to be processed is a polyphone, then the initial consonant feature extraction and the final consonant feature extraction are performed on the pinyin of the single word to be processed as the common pronunciation of the name, and the initial consonant feature data and the final consonant feature data of the single word to be processed are formed respectively; if the single word to be processed is not a polyphone, then the initial consonant feature extraction and the final consonant feature extraction are performed on the pinyin of the single word to be processed, and the initial consonant feature data and the final consonant feature data of the single word to be processed are formed respectively.

[0155] Furthermore, the single-character glyph feature extraction module 521a2 is specifically used to perform four-corner code feature extraction, stroke number feature extraction, and glyph structure feature extraction on each single character to be processed, and form four-corner code feature data, stroke number feature data, and glyph structure feature data respectively.

[0156] Preferably, if the feature data of the single word to be processed is initial consonant feature data or final vowel feature data, the single word similarity calculation module 521b is specifically used to: compare the initial consonant feature data or final vowel feature data of the single word to be processed with the feature data of the corresponding dimension of the comparison single word; if the initial consonant feature data or final vowel feature data of the single word to be processed is the same as the feature data of the corresponding dimension of the comparison single word, then the similarity between the initial consonant feature data or final vowel feature data of the single word to be processed and the comparison single word is a first value; if the initial consonant feature data or final vowel feature data of the single word to be processed is similar to the feature data of the corresponding dimension of the comparison single word, then the similarity between the initial consonant feature data or final vowel feature data of the single word to be processed and the comparison single word is a second value; if the initial consonant feature data or final vowel feature data of the single word to be processed is neither the same as nor similar to the feature data of the corresponding dimension of the comparison single word, then the similarity between the initial consonant feature data or final vowel feature data of the single word to be processed and the comparison single word is a third value; wherein, the first value is greater than the second value, and the second value is greater than the third value.

[0157] Preferably, if the feature data of the single word to be processed is four-corner code feature data, the single word similarity calculation module 521b is specifically used to: compare each bit of the four-corner code feature data of the single word to be processed with the data of the corresponding bit of the four-corner code feature data of the comparison single word; if a certain bit of the single word to be processed is the same as the data of the corresponding bit of the comparison single word, the similarity corresponding to the bit data is a first value; if a certain bit of the single word to be processed is different from the data of the corresponding bit of the comparison single word, the similarity corresponding to the bit data is a third value; the average value of the similarities corresponding to all bit data of the four-corner code feature data of the single word to be processed and the comparison single word is determined as the similarity between the four-corner code feature data of the single word to be processed and the four-corner code feature data of the comparison single word; wherein, the first value is greater than the third value.

[0158] Preferably, if the feature data of the single word to be processed is the feature data of the number of strokes, the single word similarity calculation module 521b is specifically used to: determine whether the number of strokes of the single word to be processed is greater than the number of strokes of the comparison single word; if the number of strokes of the single word to be processed is greater than the number of strokes of the comparison single word, then the ratio of the number of strokes of the comparison single word to the number of strokes of the single word to be processed is determined as the similarity between the feature data of the number of strokes of the single word to be processed and the feature data of the number of strokes of the comparison single word; if the number of strokes of the single word to be processed is less than or equal to the number of strokes of the comparison single word, then the ratio of the number of strokes of the single word to be processed to the number of strokes of the comparison single word is used as the similarity between the feature data of the number of strokes of the single word to be processed and the feature data of the number of strokes of the comparison single word.

[0159] Preferably, if the feature data of the single word to be processed is the glyph structure feature data, the single word similarity calculation module 521b is specifically used to: determine whether the glyph structure feature data of the single word to be processed is the same as the glyph structure feature data of the comparison single word; if the glyph structure feature data of the single word to be processed is the same as the glyph structure feature data of the comparison single word, then determine that the similarity between the glyph structure feature data of the single word to be processed and the glyph structure feature data of the comparison single word is a first value; if the glyph structure feature data of the single word to be processed is different from the glyph structure feature data of the comparison single word, then determine that the similarity between the glyph structure feature data of the single word to be processed and the glyph structure feature data of the comparison single word is a third value; wherein, the first value is greater than the third value.

[0160] Furthermore, the construction unit 61 is used to construct a name character library. The character library character feature extraction unit 62 is used to extract features of different dimensions for each character in the name character library to form feature data of each dimension of each character in the name character library.

[0161] Furthermore, the construction unit 61 is specifically used to: extract the single characters of all names in the full name database; perform deduplication processing on the single characters of all names; and construct a name single character library from the single characters of all names after deduplication processing.

[0162] Furthermore, the conversion unit 63 is used to convert the traditional Chinese characters into simplified Chinese characters if all the characters in the name include traditional Chinese characters. The polyphonic character construction unit 64 is used to mark the polyphonic characters and construct the polyphonic characters into multiple characters with different pronunciations if the name character library includes polyphonic characters.

[0163] The Chinese name fuzzy matching device provided in this embodiment can be executed Figure 2 and Figure 4 The technical solution of the method embodiment shown has a similar implementation principle and will not be repeated here.

[0164] The device for fuzzy matching of Chinese names provided in this embodiment, when the single-character similarity calculation module calculates the similarity between each single character to be processed and each comparison single character in the name single-character word library, the single-character feature extraction module performs feature extraction of different dimensions on each single character to be processed to form feature data of each dimension of each single character to be processed. The feature extraction of different dimensions for each single character to be processed may include: pronunciation feature extraction and character shape feature extraction. The pronunciation feature extraction includes: initial consonant feature extraction and final vowel feature extraction. The character shape feature extraction includes: four-corner code feature extraction, stroke number feature extraction and character shape structure feature extraction. The weight setting module can set the weight of the feature data of each dimension according to the application scenario, and the weighted sum calculation module performs weighted sum calculation on the similarity of the feature data of each dimension to obtain the similarity between each single character to be processed and each comparison single character in the name single-character word library. Since Chinese characters are pictographic, they have not only pronunciation features but also shape features. Therefore, when performing fuzzy matching of single words, not only the pronunciation features of the single words are extracted, but also the shape features. The pronunciation similarity and shape similarity are considered at the same time. When setting the weights of the feature data, the weights can be adjusted according to the application scenario, thereby making the fuzzy matching results of single words more accurate.

[0165] The device for fuzzy matching of Chinese names provided in this embodiment is that before the Chinese name acquisition unit acquires the Chinese name to be processed, the construction unit constructs a name single-character word library, and if all the single characters of the name include traditional Chinese characters, the conversion unit converts the traditional Chinese characters into simplified Chinese characters; if the name single-character word library includes polyphonic characters, the polyphonic character construction unit marks the polyphonic characters and constructs multiple single characters of the polyphonic characters, and the pronunciations of the multiple single characters are different; the word library single-character feature extraction unit extracts features of different dimensions for each single character in the name single-character word library, and forms feature data of each dimension of each single character in the name single-character word library. It can make the constructed name single-character word library more accurate, and extract features of different dimensions for each single character in the name single-character word library, and form feature data of each dimension of each single character in the name single-character word library, so as to prepare for the calculation of single-character similarity.

[0166] Embodiment 6

[0167] Figure 7 A schematic diagram of the structure of an electronic device provided in Embodiment 5 of the present invention is shown in FIG. Figure 5 As shown, the electronic device 70 provided in this embodiment includes: a memory 71, a processor 72 and a computer program.

[0168] Among them, the computer program is stored in the memory 71 and is configured to be executed by the processor 72 to implement the Chinese name fuzzy matching method provided in Example 1 of the present invention, the Chinese name fuzzy matching method provided in Example 2 of the present invention, or the Chinese name fuzzy matching method provided in Example 3 of the present invention.

[0169] For related instructions, please refer to Figure 1 , Figure 2 or Figure 4 Please refer to the relevant descriptions corresponding to the steps for understanding, and no further elaboration will be given here.

[0170] The electronic device provided by the embodiment of the present invention includes: a memory, a processor and a computer program. The computer program is stored in the memory and is configured to be executed by the processor to implement the method in any one of the embodiments 1 to 3 of the present invention. Since the fuzzy matching of Chinese names is not performed by directly comparing the names to be processed with all the names in the full name database in pairs according to the conventional idea, but first obtaining a set of similar characters for each single word to be processed, and then combining the single word to be processed and each similar character with similar names, and verifying the combined similar names, it can effectively reduce the calculation time and effectively improve the efficiency of fuzzy matching of Chinese names.

[0171] Embodiment 7

[0172] Embodiment 7 of the present invention further provides a computer-readable storage medium on which a computer program is stored. The computer program is executed by a processor to implement the method for fuzzy matching of Chinese names provided in Embodiment 1 of the present invention, the method for fuzzy matching of Chinese names provided in Embodiment 2 of the present invention, or the method for fuzzy matching of Chinese names provided in Embodiment 3 of the present invention.

[0173] The computer-readable storage medium provided in this embodiment obtains the Chinese name to be processed; determines the similar character set of each single character to be processed in the Chinese name to be processed; performs similar name combination on each single character to be processed and each similar character in the similar character set to form a similar name set; if the similar name in the similar name set exists in the full name database, the similar name is the result of fuzzy matching of the Chinese name to be processed. Since when performing fuzzy matching of Chinese names, the name to be processed is not directly compared with all the names in the full name database in pairs according to conventional ideas, but first obtains the similar character set of each single character to be processed, then performs similar name combination on the single character to be processed and each similar character, and verifies the combined similar names, it can effectively reduce the calculation time and effectively improve the efficiency of fuzzy matching of Chinese names.

[0174] 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 units or modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units or modules, which can be electrical, mechanical or other forms.

[0175] The units or modules described as separate components may or may not be physically separated, and the components shown as units or modules may or may not be physical units or modules, that is, they may be located in one place, or they may be distributed on multiple network units or modules. Some or all of the units or modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0176] In addition, each functional unit or module in each embodiment of the present invention may be integrated into one processing unit or module, or each unit or module may exist physically separately, or two or more units or modules may be integrated into one unit or module. The above-mentioned integrated unit or module may be implemented in the form of hardware or in the form of hardware plus software functional units or modules.

[0177] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.

[0178] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0179] In addition, although each operation is described in a specific order, this should be understood as requiring such operation to be performed in the specific order shown or in a sequential order, or requiring that all illustrated operations should be performed to obtain desired results. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single implementation in combination. On the contrary, the various features described in the context of a single implementation can also be implemented in multiple implementations individually or in any suitable sub-combination mode.

[0180] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A method for fuzzy matching of Chinese names, characterized in that: include: Get the Chinese name to be processed; Performing feature extraction of different dimensions on each single word to be processed in the Chinese name to be processed to form feature data of each dimension of each single word to be processed; wherein, performing feature extraction of different dimensions on each single word to be processed includes: pronunciation feature extraction and character shape feature extraction; pronunciation feature extraction includes: initial consonant feature extraction and final consonant feature extraction; character shape feature extraction includes: four-corner code feature extraction, stroke number feature extraction and character shape structure feature extraction; Calculate the similarity between the feature data of each dimension of each to-be-processed word and the feature data of the corresponding dimension of each comparison word; Setting the weight of the feature data of each dimension, and performing weighted sum calculation on the similarity of the feature data of each dimension, so as to obtain the similarity between each of the to-be-processed characters and each comparison character in the name character library; If the similarity between the word to be processed and the comparison word is greater than a preset threshold, the comparison word is determined to be a similar word to the word to be processed; The set consisting of the similar characters is determined as the similar character set of the single character to be processed; Performing similar name combination on each of the to-be-processed single characters and each similar character in the similar character set to form a similar name set; If a similar name in the similar name set exists in the full name database, the similar name is a result of fuzzy matching of the Chinese name to be processed; The calculating of the similarity between the feature data of each dimension of each to-be-processed word and the feature data of the corresponding dimension of each comparison word comprises: If the feature data of the word to be processed is initial consonant feature data or final consonant feature data, then the similarity between the initial consonant feature data or final consonant feature data of the word to be processed and the comparison word is determined based on the corresponding value determined based on whether the initial consonant feature data or final consonant feature data of the word to be processed is the same as the feature data of the corresponding dimension of the comparison word; If the feature data of the to-be-processed single word is four-corner code feature data, then each bit of the four-corner code feature data of the to-be-processed single word is compared with the corresponding bit of the four-corner code feature data of the comparison single word to determine the similarity between the four-corner code feature data of the to-be-processed single word and the four-corner code feature data of the comparison single word; If the feature data of the to-be-processed single word is the feature data of the number of strokes, then based on the number of strokes of the to-be-processed single word and the number of strokes of the comparison single word, determine the similarity between the feature data of the number of strokes of the to-be-processed single word and the feature data of the number of strokes of the comparison single word; If the feature data of the to-be-processed single word is the glyph structure feature data, then whether the glyph structure feature data of the to-be-processed single word is the same as the glyph structure feature data of the comparison single word is determined, and the similarity between the glyph structure feature data of the to-be-processed single word and the glyph structure feature data of the comparison single word is determined.

2. The method according to claim 1, characterized in that The feature extraction of each to-be-processed single word in different dimensions is performed to form feature data of each dimension of each to-be-processed single word, specifically comprising: Extracting pronunciation features of each word to be processed to form pronunciation feature data of each word to be processed; The character shape feature of each single word to be processed is extracted to form the character shape feature data of each single word to be processed.

3. The method according to claim 2, characterized in that The step of extracting pronunciation features of each word to be processed to form pronunciation feature data of each word to be processed specifically includes: Determine whether each of the to-be-processed characters is a polyphonic character; If the single word to be processed is a polyphonic word, the pinyin of the single word to be processed as the common pronunciation of the name is subjected to initial consonant feature extraction and final consonant feature extraction to form initial consonant feature data and final consonant feature data of the single word to be processed respectively; If the single word to be processed is not a polyphonic word, initial consonant feature extraction and final consonant feature extraction are performed on the pinyin of the single word to be processed to form initial consonant feature data and final consonant feature data of the single word to be processed respectively.

4. The method according to claim 2, characterized in that: The step of extracting the font feature of each of the to-be-processed characters to form font feature data of each of the to-be-processed characters specifically includes: Four-corner code feature extraction, stroke number feature extraction, and character structure feature extraction are performed on each single word to be processed, and four-corner code feature data, stroke number feature data, and character structure feature data are formed respectively.

5. The method according to claim 3, characterized in that: The corresponding value determined based on whether the initial consonant feature data or the final consonant feature data of the word to be processed is the same as the feature data of the corresponding dimension of the comparison word, and determining the similarity between the initial consonant feature data or the final consonant feature data of the word to be processed and the comparison word specifically includes: If the initial consonant feature data or the final consonant feature data of the to-be-processed word is the same as the feature data of the corresponding dimension of the comparison word, then the similarity between the initial consonant feature data or the final consonant feature data of the to-be-processed word and the comparison word is a first value; If the initial consonant feature data or the final consonant feature data of the to-be-processed word is similar to the feature data of the corresponding dimension of the comparison word, the similarity between the initial consonant feature data or the final consonant feature data of the to-be-processed word and the comparison word is a second value; If the initial consonant feature data or the final consonant feature data of the to-be-processed word is neither identical nor similar to the feature data of the corresponding dimension of the comparison word, the similarity between the initial consonant feature data or the final consonant feature data of the to-be-processed word and the comparison word is a third value; The first value is greater than the second value, and the second value is greater than the third value.

6. The method according to claim 4, characterized in that The step of comparing each bit of the four-corner code feature data of the to-be-processed single word with the corresponding bit of the four-corner code feature data of the comparison single word to determine the similarity between the four-corner code feature data of the to-be-processed single word and the four-corner code feature data of the comparison single word specifically includes: Compare each bit of the four-corner code characteristic data of the to-be-processed single word with the corresponding bit of the four-corner code characteristic data of the compared single word; If a certain bit of data of the word to be processed is the same as the data of the corresponding bit of the compared word, the similarity corresponding to the bit of data is the first value; If a certain bit of data of the word to be processed is different from the data of the corresponding bit of the compared word, the similarity corresponding to the bit of data is a third value; Determine the average value of the similarities corresponding to all bit data of the four-corner code feature data of the single word to be processed and the single word to be compared as the similarity between the four-corner code feature data of the single word to be processed and the four-corner code feature data of the single word to be compared; The first value is greater than the third value.

7. The method according to claim 4, characterized in that The determining of the similarity between the stroke number feature data of the to-be-processed character and the stroke number feature data of the to-be-processed character based on the stroke number of the to-be-processed character and the stroke number feature data of the to-be-processed character specifically includes: Determine whether the number of strokes of the to-be-processed character is greater than the number of strokes of the comparison character; If the number of strokes of the to-be-processed character is greater than the number of strokes of the comparison character, the ratio of the number of strokes of the comparison character to the number of strokes of the to-be-processed character is determined as the similarity between the stroke number feature data of the to-be-processed character and the stroke number feature data of the comparison character; If the number of strokes of the to-be-processed character is less than or equal to the number of strokes of the comparison character, the ratio of the number of strokes of the to-be-processed character to the number of strokes of the comparison character is taken as the similarity between the stroke number feature data of the to-be-processed character and the stroke number feature data of the comparison character.

8. The method according to claim 4, characterized in that Whether the glyph structure feature data of the to-be-processed single word is the same as the glyph structure feature data of the comparison single word, and determining the similarity between the glyph structure feature data of the to-be-processed single word and the glyph structure feature data of the comparison single word, specifically comprises: Determine whether the character structure feature data of the to-be-processed character is the same as the character structure feature data of the compared character; If the character structure feature data of the to-be-processed single character is the same as the character structure feature data of the comparison single character, then determining the similarity between the character structure feature data of the to-be-processed single character and the character structure feature data of the comparison single character to be a first value; If the character structure feature data of the to-be-processed single character is different from the character structure feature data of the compared single character, then determining the similarity between the character structure feature data of the to-be-processed single character and the character structure feature data of the compared single character to be a third value; The first value is greater than the third value.

9. The method according to claim 1, characterized in that: Before calculating the similarity between each to-be-processed character and each comparison character in the name character library, the method further includes: Construct a name character library; Perform feature extraction of different dimensions on each single character in the name single character library to form feature data of each dimension of each single character in the name single character library.

10. The method according to claim 9, characterized in that The construction of the name character library specifically includes: Extracting individual characters of all names in the full name database; De-duplication of all the characters in the names; The name single-character word library is constructed by using the single characters of all names after the deduplication process.

11. The method according to claim 10, characterized in that After constructing the name character library from the single characters of all the names after the deduplication process, the method further includes: If the single characters of all the names include traditional Chinese characters, convert the traditional Chinese characters into simplified Chinese characters; If the name character library includes polyphones, the polyphones are marked and constructed into multiple characters with different pronunciations.

12. A device for fuzzy matching of Chinese names, characterized in that: include: A Chinese name acquisition unit, used to acquire the Chinese name to be processed; A similar character set determination unit, used to determine a similar character set of each single character to be processed in the Chinese name to be processed; A similar name set determination unit, used for performing similar name combination on each of the to-be-processed single characters and each similar character in the similar character set to form a similar name set; A similar name verification unit, configured to verify that if a similar name in the similar name set exists in the full name database, the similar name is a result of fuzzy matching of the Chinese name to be processed; The similar character set determination unit is specifically used to extract features of different dimensions for each single character to be processed in the Chinese name to be processed, so as to form feature data of each dimension of each single character to be processed; wherein, the feature extraction of different dimensions for each single character to be processed includes: pronunciation feature extraction and character shape feature extraction; the pronunciation feature extraction includes: initial consonant feature extraction and final consonant feature extraction; the character shape feature extraction includes: four-corner code feature extraction, stroke number feature extraction and character shape structure feature extraction; Calculate the similarity between the feature data of each dimension of each to-be-processed word and the feature data of the corresponding dimension of each comparison word; Setting the weight of the feature data of each dimension, and performing weighted sum calculation on the similarity of the feature data of each dimension, so as to obtain the similarity between each of the to-be-processed characters and each comparison character in the name character library; If the similarity between the word to be processed and the comparison word is greater than a preset threshold, the comparison word is determined to be a similar word to the word to be processed; The set consisting of the similar characters is determined as the similar character set of the single character to be processed; The similar character set determination unit is specifically used to: If the feature data of the word to be processed is initial consonant feature data or final consonant feature data, then the similarity between the initial consonant feature data or final consonant feature data of the word to be processed and the comparison word is determined based on the corresponding value determined based on whether the initial consonant feature data or final consonant feature data of the word to be processed is the same as the feature data of the corresponding dimension of the comparison word; If the feature data of the to-be-processed single word is four-corner code feature data, then each bit of the four-corner code feature data of the to-be-processed single word is compared with the corresponding bit of the four-corner code feature data of the comparison single word to determine the similarity between the four-corner code feature data of the to-be-processed single word and the four-corner code feature data of the comparison single word; If the feature data of the to-be-processed single word is the feature data of the number of strokes, then based on the number of strokes of the to-be-processed single word and the number of strokes of the comparison single word, determine the similarity between the feature data of the number of strokes of the to-be-processed single word and the feature data of the number of strokes of the comparison single word; If the feature data of the to-be-processed single word is the glyph structure feature data, then whether the glyph structure feature data of the to-be-processed single word is the same as the glyph structure feature data of the comparison single word is determined, and the similarity between the glyph structure feature data of the to-be-processed single word and the glyph structure feature data of the comparison single word is determined.

13. An electronic device, characterized in that: include: Memory, processor and computer program; The computer program is stored in the memory and is configured to be executed by the processor to implement the method according to any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is executed by a processor to implement the method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Method for matching Chinese similarity

    CN102122298A

  • Character recognition device and medium

    JP1999120294A