Multi-address matching method
Through address NER reasoning and hierarchical weighted similarity calculation, it solves the problems of high cost and poor independence of existing multi-address matching methods, and achieves efficient and accurate address matching, which is suitable for a variety of scenarios.
Patent Information
- Application Number
- CN202410706600.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-09-03
AI Technical Summary
Existing multi-address matching methods have problems such as high cost, poor system independence, strong dependence on external APIs, lack of universality, and high resource costs. In particular, it is difficult to achieve fast and accurate duplicate address detection when processing a large number of registered addresses.
The address NER inference method is used to perform address decomposition and four-level division completion through 12-level tags, combined with POI information hierarchical screening and weighted similarity calculation, using Levinstein distance to calculate similarity, custom thresholds to determine address repeatability, and combined Offline and online processing methods to achieve efficient address matching.
It achieves multi-address matching with a simple process, easy deployment, and high matching accuracy (up to more than 99%), reducing dependence on external APIs and improving the independence and universality of the system.
Smart Images

Figure CN118585599A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a multi-address matching method. Background Art
[0002] Whether the address information provided by an enterprise or organization during registration is unique, that is, not duplicated with other entities, is an important means to ensure the accuracy and legitimacy of the registration of an enterprise or organization. However, with the increasing number of enterprises or organizations submitting registration information, how to quickly match the registered address with the numerous registered addresses in the database and avoid duplicate registration of the same address has become an urgent problem to be solved.
[0003] Currently, the mainstream solutions for multi-address matching are:
[0004] 1) Calculate the actual relative distance of the geographical location with the help of longitude and latitude information to determine whether it is the same address. This solution requires longitude and latitude information. Although this information can be obtained by purchasing the geocoding API, it is costly and has a strong reliance on external APIs, resulting in poor system independence.
[0005] 2) With a large-scale, fine-grained address database, multiple input addresses are queried in the database, and the mapped results are compared. This solution is suitable for companies that are deeply involved in e-commerce, logistics and other fields. A rich address database will effectively improve the matching accuracy, but this is also the disadvantage, and it is not universal.
[0006] 3) Similarity calculation based on SimCSE method. This method increases the resource cost of training and has high requirements on the technical level of users and deployment equipment.
[0007] Based on the above situation, the present invention proposes a multi-address matching method. Summary of the invention
[0008] In order to make up for the defects of the prior art, the present invention provides a simple and efficient multi-address matching method.
[0009] The present invention is achieved through the following technical solutions:
[0010] A multi-address matching method, characterized in that it comprises the following steps:
[0011] Step S1: Input the registered address entered by the registered enterprise or organization, perform address NER reasoning, and obtain 12 levels of labels, including province, city, district, county, street, town, village, road, road number, park community, building number, unit number, floor number, and room number;
[0012] Step S2: bidirectionally complete the four-level administrative division information of the registered address according to the five-level administrative division label, where the four-level division is province, city, district, county, street, and town;
[0013] Step S3: further mining POI information for the completed registered address, performing hierarchical screening according to different levels of POI information, and hierarchically calculating weighted similarity with the registered address data stored in the database; customizing the similarity threshold in each screening process;
[0014] If the weighted similarity does not exceed the similarity threshold, it is considered that the registered address and the registered address data stored in the database are not duplicate addresses, and the registered address entered by the enterprise or organization is valid;
[0015] If the weighted similarity of each layer exceeds the similarity threshold, the weighted similarity of the next layer is calculated. If the weighted similarity of the third layer still exceeds the custom threshold, jump to step S4;
[0016] Step S4: for the village, park community, road number, building number, unit number, floor number, and room number in the registered address, the Levenshtein ratio is used to calculate the similarity with the registered address data stored in the database, and the user defines the similarity threshold;
[0017] If the similarity does not exceed the similarity threshold, it is considered that the registered address is not a duplicate address of the registered address data stored in the database, and the registered address entered by the enterprise or organization is valid;
[0018] If the similarity exceeds the similarity threshold, the registered address is considered to be a duplicate address that is identical to the registered address data stored in the database, and the registered address entered by the enterprise or organization is invalid.
[0019] In the step S1, representative sample data is randomly selected from the address database as training data, and the training data is manually labeled by means of labeling style unification and labeling cross-linking to ensure high quality of the training data labeling;
[0020] The manually annotated sample data is BIEO labeled (B represents the beginning of the label, I represents the middle of the label, E represents the end of the label, and O represents no label), and then input into the NER model to train the NER model;
[0021] The trained NER model is used for address NER inference.
[0022] According to the filling habits of the target end users, the labeled data is purposefully enhanced. In step S1, the words province, city, district, number and layer are omitted to enhance the generalization ability of the NER model.
[0023] In step S3, the POI information (village, road, road number, park community, building number, floor number, unit number, room number) of the completed registration address is processed in three layers to calculate the weighted similarity;
[0024] The first layer is regional POI information, including villages, park communities and roads, with weights of 0.4, 0.4 and 0.2 respectively. If the weighted similarity of the first layer is higher than the user-defined similarity threshold of the first layer, it will continue to participate in the calculation of the second layer.
[0025] The second layer is digital POI information, which are numbers, letters and - in the signpost number, building number, unit number, floor number and room number information. The numbers, letters and - in the signpost number, building number, unit number, floor number and room number information are given weights of 0.1, 0.225, 0.225, 0.225 and 0.225 respectively. If the second layer weighted similarity is higher than the second layer similarity threshold set by the user, it will continue to participate in the calculation of the third layer.
[0026] The third layer is additional POI information, which is the Chinese character part of the road number, building number, unit number, floor number and room number. The weights of the Chinese character part of the road number, building number, unit number, floor number and room number are 0.1, 0.225, 0.225, 0.225 and 0.225 respectively. If the third-layer weighted similarity is higher than the third-layer similarity threshold set by the user, it will continue to participate in the calculation to obtain the overall similarity score. The calculation formula of the overall similarity score H is as follows:
[0027] H=0.3×H1+0.7×(0.7×H2+0.3×H3)
[0028] Among them, H1 is the first-layer weighted similarity, H2 is the second-layer weighted similarity, and H3 is the third-layer weighted similarity.
[0029] In step S3, the user customizes the first layer similarity threshold, the second layer similarity threshold and the third layer similarity threshold respectively; the first layer similarity threshold, the second layer similarity threshold and the third layer similarity threshold are not less than 0.8 and not greater than 0.97.
[0030] In step S4, the similarity is calculated using the Levenshtein ratio, and the calculation is shown as follows:
[0031] SimilarityScore total(a,b)|SimilarityScor3(a,b)>threshold3=0.3*SimilarityScore1(a,b)+0.7*(0.7*SimilarityScore2(a,b)+0.3*SimilarityScore3(a,b))
[0032] Among them, SimilarityScore1(a,b) is the similarity between the village, park community and road information in the address information and the registered address data stored in the database;
[0033] SimilarityScore1(a,b)=0.4*LevenshteinRatio(a 村 ,b 村 )+0.4*LevenshteinRatio(a 园区小区 ,b 园区小区 )+0.2
[0034] SimilarityScore2(a,b) is the similarity between the alphanumeric characters in the road number, building number, unit number, floor number and room number in the address information and the registered address data stored in the database; if SimilarityScore1(a,b) exceeds the custom threshold, SimilarityScore2(a,b) is calculated;
[0035] SimilarityScore2(a,b)|SimilarityScor1(a,b)>threshold1=0.1*LevenshteinRatio(a 路号的字母数字 ,b 路号的字母数字 )+0.225*LevenshteinRatio(a 楼栋号的字母数字 ,b 楼栋号的字母数字 )+0.225*LevenshteinRatio(a 单元号的字母数字 ,b 单元号的字母数字 )+0.225*LevenshteinRatio(a 楼层号的字母数字 ,b 楼层号的字母数字 )+0.225*LevenshteinRatio(a 房间号的字母数字 ,b 房间号的字母数字 )
[0036] SimilarityScore3(a,b) is the similarity between the Chinese characters in the road number, building number, unit number, floor number and room number in the address information and the database data; if SimilarityScore2(a,b) exceeds the custom threshold, then calculate SimilarityScore3(a,b);
[0037] SimilarityScore3(a,b)|SimilarityScor2(a,b)>threshol2=0.1*LevenshteinRatio(a 路号的汉字 ,b 路号的汉字 )+0.225*LevenshteinRatio(a 楼栋号的汉字 ,b 楼栋号的汉字 )+0.225*LevenshteinRatio(a 单元号的汉字 ,b 单元号的汉字 )+0.225*LevenshteinRatio(a 楼层号的汉字 ,b 楼层号的汉字 )+0.225*LevenshteinRatio(a 房间号的汉字 ,b 房间号的汉字 )
[0038] Among them, LevenshteinRatio(a,b) is the similarity between two strings a and b in a local range; the specific algorithm is as follows:
[0039]
[0040] LevenshteinDistance(a,b) is a measure of the number of character differences between two strings a and b.
[0041] The multi-address matching method includes two approaches: offline and online;
[0042] When offline, the data in the database is indexed and the similarity calculation is performed on the address data of the four-level administrative divisions; when online, the database is first queried for the address entered by the registered enterprise or organization, and calculation and analysis are performed if there is no identical result.
[0043] A multi-address matching device, characterized in that it comprises a memory and a processor; the memory is used to store a computer program, and the processor is used to implement the above method steps when executing the computer program.
[0044] A readable storage medium, characterized in that: a computer program is stored on the readable storage medium, and the computer program implements the above method steps when executed by a processor.
[0045] The beneficial effect of the present invention is that the multi-address matching method absorbs the advantages of artificial intelligence and statistical similarity calculation, and has the characteristics of simple process, easy deployment, and high matching accuracy (which can reach more than 99% by adjusting the threshold). BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] Attached Figure 1 It is a schematic diagram of the multi-address matching method of the present invention.
[0048] Attached Figure 2 It is a schematic diagram of the method for reasoning based on the NER model of the present invention. DETAILED DESCRIPTION
[0049] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0050] The multi-address matching method comprises the following steps:
[0051] Step S1: Input the registered address entered by the registered enterprise or organization, perform address NER reasoning, and obtain 12 levels of labels, including province, city, district, county, street, town, village, road, road number, park community, building number, unit number, floor number, and room number;
[0052] Step S2: bidirectionally complete the four-level administrative division information of the registered address according to the five-level administrative division label, where the four-level division is province, city, district, county, street, and town;
[0053] For example, "Room 201, Unit 1, Building 3, HD Community, T Street" is completed as "Room 201, Unit 1, Building 3, HD Community, T Street, L District, J City, S Province". Due to duplicate names, the completed address may not be unique, so it is output and recorded at the same time.
[0054] Step S3: further mining POI information for the completed registered address, performing hierarchical screening according to different levels of POI information, and hierarchically calculating weighted similarity with the registered address data stored in the database; customizing the similarity threshold in each screening process;
[0055] If the weighted similarity does not exceed the similarity threshold, it is considered that the registered address and the registered address data stored in the database are not duplicate addresses, and the registered address entered by the enterprise or organization is valid;
[0056] If the weighted similarity of each layer exceeds the similarity threshold, the weighted similarity of the next layer is calculated. If the weighted similarity of the third layer still exceeds the custom threshold, jump to step S4;
[0057] Step S4: for the village, park community, road number, building number, unit number, floor number, and room number in the registered address, the Levenshtein ratio is used to calculate the similarity with the registered address data stored in the database, and the user defines the similarity threshold;
[0058] If the similarity does not exceed the similarity threshold, it is considered that the registered address is not a duplicate address of the registered address data stored in the database, and the registered address entered by the enterprise or organization is valid;
[0059] If the similarity exceeds the similarity threshold, the registered address is considered to be a duplicate address that is identical to the registered address data stored in the database, and the registered address entered by the enterprise or organization is invalid.
[0060] In the step S1, representative sample data is randomly selected from the address database as training data, and the training data is manually labeled by means of labeling style unification and labeling cross-linking to ensure high quality of the training data labeling;
[0061] The manually annotated sample data is BIEO labeled (B represents the beginning of the label, I represents the middle of the label, E represents the end of the label, and O represents no label), and then input into the NER model to train the NER model;
[0062] The trained NER model is used for address NER inference.
[0063] According to the filling habits of the target end users, the labeled data is purposefully enhanced. In step S1, the words province, city, district, number and layer are omitted to enhance the generalization ability of the NER model.
[0064] In step S3, the POI information (village, road, road number, park community, building number, floor number, unit number, room number) of the completed registration address is processed in three layers to calculate the weighted similarity;
[0065] The first layer is regional POI information, including villages, park communities and roads. The weights of villages, park communities and roads are 0.4, 0.4 and 0.2 respectively. This is because villages and park communities play a more decisive role, and the composition of roads is relatively complex. Too high a weight will interfere with judgment. If the weighted similarity of the first layer is higher than the user-defined similarity threshold of the first layer, it will continue to participate in the calculation of the second layer;
[0066] The second layer is digital POI information, which are numbers, letters and - in the signpost number, building number, unit number, floor number and room number information. The numbers, letters and - in the signpost number, building number, unit number, floor number and room number information are given weights of 0.1, 0.225, 0.225, 0.225 and 0.225 respectively. If the second layer weighted similarity is higher than the second layer similarity threshold set by the user, it will continue to participate in the calculation of the third layer.
[0067] The third layer is the additional POI information, which is the Chinese characters in the road number, building number, unit number, floor number and room number. This part takes into account the subtle differences in POI information such as "South of the Road" and "North District". The weights of the Chinese characters in the road number, building number, unit number, floor number and room number are 0.1, 0.225, 0.225, 0.225 and 0.225 respectively; if the third-layer weighted similarity is higher than the third-layer similarity threshold set by the user, it will continue to participate in the calculation to obtain the overall similarity score; the overall similarity score H is calculated as follows:
[0068] H=0.3×H1+0.7×(0.7×H2+0.3×H3)
[0069] Among them, H1 is the first-layer weighted similarity, H2 is the second-layer weighted similarity, and H3 is the third-layer weighted similarity.
[0070] In step S3, the user customizes the first-layer similarity threshold, the second-layer similarity threshold and the third-layer similarity threshold respectively; the first-layer similarity threshold, the second-layer similarity threshold and the third-layer similarity threshold are not less than 0.8 and not greater than 0.97. The higher the threshold, the stricter the screening, but it is also easy to miss the information of the same address, so in actual operation, it is recommended to perform threshold testing according to needs before putting it into use.
[0071] The Levenshtein ratio is simple, efficient, and sensitive to character order. LevenshteinDistance refers to the minimum number of editing operations (replacing one character with another, inserting a character, deleting a character) required to convert two strings from one to another.
[0072] In step S4, the similarity is calculated using the Levenshtein ratio, and the calculation is shown as follows:
[0073] SimilarityScore total (a,b)|SimilarityScor3(a,b)>threshold3=0.3*SimilarityScore1(a,b)+0.7*(0.7*SimilarityScore2(a,b)+0.3*SimilarityScore3(a,b))
[0074] Among them, SimilarityScore1(a,b) is the similarity between the village, park community and road information in the address information and the registered address data stored in the database;
[0075] SimilarityScore1(a,b)=0.4*LevenshteinRatio(a 村 ,b 村 )+0.4*LevenshteinRatio(a 园区小区 ,b 园区小区 )+0.2
[0076] SimilarityScore2(a,b) is the similarity between the alphanumeric characters in the road number, building number, unit number, floor number and room number in the address information and the registered address data stored in the database; if SimilarityScore1(a,b) exceeds the custom threshold, SimilarityScore2(a,b) is calculated;
[0077] SimilarityScore2(a,b)|SimilarityScor1(a,b)>threshold1=0.1*LevenshteinRatio(a 路号的字母数字 ,b 路号的字母数字 )+0.225*LevenshteinRatio(a 楼栋号的字母数字 ,b 楼栋号的字母数字 )+0.225*LevenshteinRatio(a 单元号的字母数字 ,b 单元号的字母数字 )+0.225*LevenshteinRatio(a 楼层号的字母数字 ,b 楼层号的字母数字 )+0.225*LevenshteinRatio(a 房间号的字母数字 ,b 房间号的字母数字 )
[0078] SimilarityScore3(a,b) is the similarity between the Chinese characters in the road number, building number, unit number, floor number and room number in the address information and the database data; if SimilarityScore2(a,b) exceeds the custom threshold, then calculate SimilarityScore3(a,b);
[0079] SimilarityScore3(a,b)|SimilarityScor2(a,b)>threshol2=0.1*LevenshteinRatio(a 路号的汉字 ,b 路号的汉字 )+0.225*LevenshteinRatio(a 楼栋号的汉字 ,b 楼栋号的汉字 )+0.225*LevenshteinRatio(a 单元号的汉字 ,b 单元号的汉字 )+0.225*LevenshteinRatio(a 楼层号的汉字 ,b 楼层号的汉字 )+0.225*LevenshteinRatio(a 房间号的汉字 ,b 房间号的汉字 )
[0080] Among them, LevenshteinRatio(a,b) is the similarity between two strings a and b in a local range; the specific algorithm is as follows:
[0081]
[0082] LevenshteinDistance(a,b) is a measure of the number of character differences between two strings a and b.
[0083] The multi-address matching method includes two approaches: offline and online;
[0084] When offline, the data in the database is indexed and the similarity calculation is performed on the address data of the four-level administrative divisions; when online, the database is first queried for the address entered by the registered enterprise or organization, and calculation and analysis are performed if there is no identical result.
[0085] The multi-address matching device comprises a memory and a processor; the memory is used to store a computer program, and the processor is used to implement the above method steps when executing the computer program.
[0086] The readable storage medium stores a computer program, and when the computer program is executed by a processor, the above method steps are implemented.
[0087] Compared with the prior art, the multi-address matching method has the following characteristics:
[0088] (1) The NER model only needs to be labeled and trained once under the premise of appropriate sampling, and then the model can be reused for reasoning, which has good generalization performance;
[0089] When the training data sampling is reasonable and the annotation quality is high, the inference accuracy of NER model training using BERT is high enough (96% and above). Also, since geographic location information has a relatively fixed description habit, it is very reasonable to use NER as the first step in geographic location-related application scenarios, which has a very positive effect on downstream tasks.
[0090] (2) b. The NER label granularity is moderate, including five-level administrative division information and sufficient POI (point of interest) information, and the model results are applicable to multiple scenarios;
[0091] The number of NER tags, the richness and quantity of labeled data, and reasoning accuracy are strongly correlated. We chose five-level administrative divisions, rich and restrained POI information (roads, road numbers, park communities, building numbers, etc.) as NER tags, so that the model can be applied to a variety of downstream tasks and achieve a good balance between the number of NER tags, the richness and quantity of labeled data, and reasoning accuracy.
[0092] (3) Use NER tag information and five-level administrative division code information to complete the input address information;
[0093] Missing address division information is a very common address matching problem. It is very necessary to use NER reasoning results and administrative division codes to prioritize address information completion.
[0094] (4) In the calculation process of multi-address similarity matching, full use is made of NER label information, while administrative division information and POI information are taken into consideration. Through layering, weighting and thresholding, the similarity is made more convincing and explainable, and users can make personalized adjustments based on the usage scenario while using it out of the box.
[0095] The multiple addresses that need to be matched are subjected to NER reasoning, and the obtained address labels are first screened according to administrative divisions, and then hierarchically screened and weighted similarity calculated according to POI information at different levels. Different similarity thresholds are set in each screening process. When the similarity is higher than the threshold, it is retained and enters the next layer to calculate the similarity; when the similarity is lower than the threshold, it is filtered out and does not participate in subsequent calculations.
[0096] Through the three-layer mechanism of stratification, weighting and threshold, the information richness of the similarity score is greatly expanded and space and time resources are saved. The weighted weights and thresholds set by the present invention are the best solutions after experiments and analysis, and are recommended for users to use; users can also make personalized changes according to different application scenarios.
[0097] (5) Offline and online methods are combined to meet various application scenarios. After the address data is calculated offline and stored in the similarity database, when it is used online, it will first query whether the input address already exists in the similarity database. If not, it will perform inference calculation.
[0098] Offline computing and storage help alleviate the pressure of online computing and improve system efficiency.
[0099] The embodiment described above is only one specific implementation of the present invention. Common changes and substitutions made by those skilled in the art within the scope of the technical solution of the present invention should be included in the protection scope of the present invention.
Claims
1. A multi-address matching method, characterized in that: The following steps are involved: Step S1, input the registered address input by the registered enterprise or organization into the NER model, perform address NER reasoning, and obtain 12 levels of labels, including province, city, district, county, street, town, village, road, road number, park community, building number, unit number, floor number and room number; Step S2, bidirectionally complete the registered address information; Step S3: further mining POI information for the completed registered address, performing hierarchical screening according to different levels of POI information, and hierarchically calculating weighted similarity with the registered address data stored in the database; customizing the similarity threshold in each screening process; If the weighted similarity does not exceed the similarity threshold, it is considered that the registered address and the registered address data stored in the database are not duplicate addresses, and the registered address entered by the enterprise or organization is valid; If the weighted similarity of each layer exceeds the similarity threshold, the weighted similarity of the next layer is calculated. If the weighted similarity of the third layer still exceeds the custom threshold, jump to step S4; Step S4: For the village, park community, road number, building number, unit number, floor number, and room number in the registered address, the Levenshtein ratio is used to calculate the similarity with the registered address data stored in the database, and the user customizes the similarity threshold; If the similarity does not exceed the similarity threshold, it is considered that the registered address is not a duplicate address of the registered address data stored in the database, and the registered address entered by the enterprise or organization is valid; If the similarity exceeds the similarity threshold, the registered address is considered to be a duplicate address that is identical to the registered address data stored in the database, and the registered address entered by the enterprise or organization is invalid.
2. The multi-address matching method according to claim 1, characterized in that: In the step S1, the training data is manually annotated by means of unifying the annotation styles and cross-annotation, the manually annotated sample data is BIEO labeled, input into the NER model, and the NER model is trained; the trained NER model is used for address NER reasoning.
3. The multi-address matching method according to claim 2, characterized in that: In the step S1, the labeled data is purposefully enhanced according to the filling habits of the target end user, and the words province, city, district, number and layer are omitted to enhance the generalization ability of the NER model.
4. The multi-address matching method according to claim 1, characterized in that: In the step S3, the POI information of the completed registered address is processed in three layers, and the weighted similarity is calculated; The first layer is regional POI information, including villages, park communities and roads, with weights of 0.4, 0.4 and 0.2 respectively. If the weighted similarity of the first layer is higher than the user-defined similarity threshold of the first layer, it will continue to participate in the calculation of the second layer. The second layer is digital POI information, which are numbers, letters and - in the signpost number, building number, unit number, floor number and room number information. The numbers, letters and - in the signpost number, building number, unit number, floor number and room number information are given weights of 0.1, 0.225, 0.225, 0.225 and 0.225 respectively. If the second layer weighted similarity is higher than the second layer similarity threshold set by the user, it will continue to participate in the calculation of the third layer. The third layer is additional POI information, which are the Chinese characters in the road number, building number, unit number, floor number and room number. The weights of the Chinese characters in the road number, building number, unit number, floor number and room number are 0.1, 0.225, 0.225, 0.225 and 0.225 respectively. If the third-layer weighted similarity is higher than the third-layer similarity threshold set by the user, it will continue to participate in the calculation to obtain the overall similarity score. The overall similarity score H is calculated as follows: H=0.3×H1+0.7×(0.7×H2+0.3×H3) Among them, H1 is the first-layer weighted similarity, H2 is the second-layer weighted similarity, and H3 is the third-layer weighted similarity.
5. The multi-address matching method according to claim 4, characterized in that: In step S3, the user customizes the first layer similarity threshold, the second layer similarity threshold and the third layer similarity threshold respectively; the first layer similarity threshold, the second layer similarity threshold and the third layer similarity threshold are not less than 0.8 and not greater than 0.
97.
6. The multi-address matching method according to claim 1, characterized in that: In step S4, the similarity is calculated using the Levenshtein ratio, and the calculation is shown as follows: SimilarityScore total (a,b)|SimilarityScor3(a,b)>threshold3 =0.3*SimilarityScore1(a,b)+0.7*(0.7*SimilarityScore2(a,b)+0.3*SimilarityScore3(a,b)) Among them, SimilarityScore1(a,b) is the similarity between the village, park community and road information in the address information and the registered address data stored in the database; SimilarityScore1(a,b) =0.4*LevenshteinRatio(a 村 ,b 村 )+0.4*LevenshteinRatio(a 园区小区 ,b 园区小区 )+0.2 SimilarityScore2(a,b) is the similarity between the alphanumeric characters in the road number, building number, unit number, floor number and room number in the address information and the registered address data stored in the database; if SimilarityScore1(a,b) exceeds the custom threshold, SimilarityScore2(a,b) is calculated; SimilarityScore2(a,b)|SimilarityScor1(a,b)>threshold1 =0.1*LevenshteinRatio(a 路号的字母数字 ,b 路号的字母数字 )+0.225*LevenshteinRatio(a 楼栋号的字母数字 ,b 楼栋号的字母数字 )+0.225*LevenshteinRatio(a 单元号的字母数字 ,b 单元号的字母数字 )+0.225*LevenshteinRatio(a 楼层号的字母数字 ,b 楼层号的字母数字 )+0.225*LevenshteinRatio(a 房间号的字母数字 ,b 房间号的字母数字 ) SimilarityScore3(a,b) is the similarity between the Chinese characters in the road number, building number, unit number, floor number and room number in the address information and the database data; if SimilarityScore2(a,b) exceeds the custom threshold, then calculate SimilarityScore3(a,b); SimilarityScore3(a,b)|SimilarityScor2(a,b)>threshol2 =0.1*LevenshteinRatio(a 路号的汉字 ,b 路号的汉字 )+0.225*LevenshteinRatio(a 楼栋号的汉字 ,b 楼栋号的汉字 )+0.225*LevenshteinRatio(a 单元号的汉字 ,b 单元号的汉字 )+0.225*LevenshteinRatio(a 楼层号的汉字 ,b 楼层号的汉字 )+0.225*LevenshteinRatio(a 房间号的汉字 ,b 房间号的汉字 ) Among them, LevenshteinRatio(a,b) is the similarity between two strings a and b in a local range; the specific algorithm is as follows: LevenshteinDistance(a,b) is a measure of the number of character differences between two strings a and b.
7. The multi-address matching method according to claim 1, characterized in that: Including both offline and online channels; When offline, the data in the database is indexed and the similarity calculation is performed on the address data of the four-level administrative divisions; when online, the database is first queried for the address entered by the registered enterprise or organization, and calculation and analysis are performed if there is no identical result.
8. A multi-address matching device, characterized in that: It comprises a memory and a processor; the memory is used to store a computer program, and the processor is used to implement the method steps as claimed in any one of claims 1 to 7 when executing the computer program.
9. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps according to any one of claims 1 to 7 are implemented.
