Address matching method and device and readable storage medium

By character segmentation of building data and feature words and matching cities, districts and counties, and combining matching strategies to match keywords, the problems of low efficiency and insufficient accuracy in the association matching of fixed network circuits and building addresses are solved, and the improvement is achieved Efficient and accurate address matching.

CN119441552APending Publication Date: 2025-02-14CHINA UNITED NETWORK COMM GRP CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411554338.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-01
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

The prior art has problems of low efficiency and insufficient accuracy in address association matching between fixed network circuits and buildings.

Method used

By obtaining building data and preset feature words, character segmentation is performed to match local cities, districts and counties, and selecting appropriate matching strategies based on the matching results to achieve address matching.

Benefits of technology

It improves the efficiency and accuracy of the association and matching of fixed network circuits with building addresses, and is suitable for solving the problems of full coverage of regions, low matching accuracy and abbreviation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119441552A_ABST
    Figure CN119441552A_ABST
Patent Text Reader

Abstract

The invention provides an address matching method and device and a readable storage medium, and the method comprises the steps: obtaining to-be-matched building data, and presetting a feature word used as an address matching standard; respectively performing character segmentation on the building data and the feature words to obtain a building data character sequence and a feature word character sequence which take a single character as a unit; performing city, city and county matching on the building data character sequence and the feature word character sequence to obtain a city, city and county matching result; and selecting a corresponding matching strategy to carry out keyword matching on the building data character sequence and the feature word character sequence based on the city and district matching result to obtain an address matching result of the building data and the feature words. According to the method, character string matching is completed through the feature words and the matching strategies, the method is suitable for scenes where association relationships are established between buildings and fixed network circuits, and the problems of regional full coverage, low matching accuracy and acronyms of business scenes can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an address matching method, device and readable storage medium. Background Art

[0002] Fixed-line circuit services refer to telecommunication services provided through fixed networks, such as traditional telephone lines (Plain Old Telephone Service, POTS), digital subscriber lines (Digital Subscriber Line, DSL), optical fiber, etc. Fixed-line circuit services mainly include voice calls, data transmission and other value-added services. Among them, data transmission includes services such as Internet access and video conferencing. Value-added services include caller ID, hotline services, voice mail, etc. Compared with mobile networks, fixed-line services usually have higher stability and lower latency, and are suitable for users who have higher requirements for call quality.

[0003] At present, operators need to associate fixed-line circuits with buildings and other structures in order to optimize network resource allocation, expand business, and increase revenue. However, the existing association matching method has certain limitations, such as unclear standard addresses and low association matching efficiency.

[0004] Therefore, how to improve the efficiency and accuracy of address association matching between fixed-line circuits and buildings has become a problem that needs to be solved. Summary of the invention

[0005] The technical problem to be solved by the present application is to provide an address matching method, device and readable storage medium to solve the problems existing in the prior art in view of the above-mentioned deficiencies in the prior art.

[0006] In a first aspect, the present application provides an address matching method, the method comprising:

[0007] S1. Obtain building data to be matched, and preset feature words used as address matching criteria;

[0008] S2, performing character segmentation on the building data and the characteristic words respectively to obtain a building data character sequence and a characteristic word character sequence in units of single characters;

[0009] S3, matching the building data character sequence and the feature word character sequence by city, district, and county, to obtain a matching result of the building data and the feature word by city, district, and county;

[0010] S4. Based on the matching results of the cities, districts and counties, select a corresponding matching strategy to perform keyword matching on the character sequence of the building data and the character sequence of the feature word to obtain an address matching result of the building data and the feature word.

[0011] In some embodiments, S3 includes:

[0012] Extracting the first city, district, and county information from the building data character sequence;

[0013] Extracting the second city, district, and county information from the characteristic word character sequence;

[0014] The first city, district, city, and county information is matched with the second city, district, city, and county information to obtain a city, district, city, and county matching result of the building data and the feature word.

[0015] In some embodiments, S4 includes: based on the matching results of the cities, districts and counties, sequentially selecting preset matching strategies to perform keyword matching on the building data character sequence and the feature word character sequence until a match is successful;

[0016] Each preset matching strategy corresponds to a set of matching parameters. Each set of matching parameters includes the following parameter types: feature word length threshold keyLenTHValue, unmatched character threshold keyDiffTHValue, feature word segment number threshold keyParaTHValue, and feature word segment threshold keyDistTHValue.

[0017] Among them, among the feature word type, city, district and county matching results, feature word length threshold keyLenTHValue, unmatched character threshold keyDiffTHValue, feature word segment number threshold keyParaTHValue, and feature word segment threshold keyDistTHValue corresponding to each set of matching parameters, there is at least one item that is different from other sets of matching parameters.

[0018] In some embodiments, the characteristic word types include: standard address stdadd, building name fullname, building name characteristic word keyname;

[0019] The preset matching strategies include:

[0020] a. When the feature word type is standard address stdadd, if the city, district, or county matching result is a match, keyword matching is performed according to the first set of matching parameters;

[0021] b. When the feature word type is standard address stdadd, if the city, district, or county matching result is not a match, keyword matching is performed according to the second set of matching parameters;

[0022] c. When the feature word type is building name fullname, if the city, district, or county matching result is a match, keyword matching is performed according to the third set of matching parameters;

[0023] d. When the feature word type is building name fullname, if the city, district, or county matching result is not a match, keyword matching is performed according to the fourth set of matching parameters;

[0024] e. When the feature word type is the seventh and eighth level standard address 78add in the standard address stdadd, if the city, district, or county matching result is a match, keyword matching is performed according to the fifth set of matching parameters;

[0025] f. When the feature word type is the seventh or eighth level standard address 78add, if the city, district, or county matching result is not a match, keyword matching is performed according to the sixth set of matching parameters;

[0026] g. When the feature word type is building name fullname, if the city, district, or county matching result is a match, keyword matching is performed according to the seventh set of matching parameters;

[0027] h. When the feature word type is building name fullname, if the city, district, or county matching result is not a match, keyword matching is performed according to the eighth set of matching parameters;

[0028] i. When the feature word type is the building name feature word keyname, if the city, district, or county matching result is a match, keyword matching is performed according to the ninth set of matching parameters;

[0029] j. When the feature word type is the building name feature word keyname, if the city, district, or county matching result is not a match, keyword matching is performed according to the tenth set of matching parameters;

[0030] k. When the feature word type is the seventh or eighth level standard address 78add, if the city, district, or county matching result is a match, keyword matching is performed according to the eleventh set of matching parameters;

[0031] l. When the feature word type is the seventh or eighth level standard address 78add, if the city, district, or county matching result is not a match, keyword matching is performed according to the twelfth set of matching parameters;

[0032] m. When the feature word type is building name fullname, if the city, district, or county matching result is a match, keyword matching is performed according to the thirteenth set of matching parameters;

[0033] n. When the feature word type is building name fullname, if the city, district, or county matching result is not a match, keyword matching is performed according to the fourteenth set of matching parameters;

[0034] o. When the feature word type is the building name feature word keyname, if the city, district, or county matching result is a match, keyword matching is performed according to the fifteenth set of matching parameters;

[0035] p. When the feature word type is the building name feature word keyname, if the city, district, or county matching result is a mismatch, keyword matching is performed according to the sixteenth set of matching parameters.

[0036] In some embodiments, among all preset matching strategies, the feature word length threshold keyLenTHValue, the unmatched character threshold keyDiffTHValue, the feature word segment number threshold keyParaTHValue, and the feature word segment threshold keyDistTHValue in the matching parameters of the partial matching strategy have a combination of at least two different values.

[0037] In some embodiments, keyword matching is performed on the building data character sequence and the feature word character sequence to obtain an address matching result between the building data and the feature word, including:

[0038] Matching each character in the characteristic word character sequence with each character in the building data character sequence in sequence to obtain a keyword matching result, and determining an address matching result based on the keyword matching result;

[0039] The keyword matching result includes the number of keywords that have been matched successfully (keyMatchNum) and the number of keywords that have passed the distance check (keyDistCorrectNum).

[0040] In some embodiments, each character in the characteristic word character sequence is matched with each character in the building data character sequence in sequence to obtain a keyword matching result, including:

[0041] The first character in the characteristic word character sequence is used as the character to be matched, and the character to be matched is matched with the character sequence of the building data from the first character to the last character;

[0042] If there is a target character matching the character to be matched in the building data character sequence, then the matching sequence position and character value of the target character in the building data character sequence are recorded;

[0043] The next character of the character to be matched is used again as the character to be matched, and the character to be matched is re-matched with the building data character sequence from the next position of the matching sequence position corresponding to the previous character to be matched to the last character, until the matching process of all characters in the feature word character sequence is completed, and the keyword matching result of each character in the feature word character sequence is obtained.

[0044] In a second aspect, the present application provides an address matching device, the device comprising:

[0045] A data acquisition module, which is configured to acquire building data to be matched, and preset feature words used as address matching standards;

[0046] A character segmentation module, which is configured to perform character segmentation on the building data and the characteristic words respectively to obtain a building data character sequence and a characteristic word character sequence in units of single characters;

[0047] A city, district, and county matching module, which is configured to match the building data character sequence and the feature word character sequence by city, district, and county, and obtain a city, district, and county matching result of the building data and the feature word;

[0048] The keyword matching module is configured to select a corresponding matching strategy to perform keyword matching on the building data character sequence and the feature word character sequence based on the matching results of the cities, districts and counties, so as to obtain the address matching results of the building data and the feature words.

[0049] In a third aspect, the present application provides an address matching device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to implement the address matching method described in the first aspect above.

[0050] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the address matching method described in the first aspect is implemented.

[0051] The address matching method, device and readable storage medium provided by the present application include: obtaining building data to be matched, and presetting feature words used as address matching standards; performing character segmentation on the building data and the feature words respectively to obtain a building data character sequence and a feature word character sequence in units of single characters; matching the building data character sequence and the feature word character sequence by city, district and county to obtain a city, district and county matching result of the building data and the feature word; based on the city, district and county matching result, selecting a corresponding matching strategy to perform keyword matching on the building data character sequence and the feature word character sequence to obtain an address matching result of the building data and the feature word. The present application completes string matching through feature words and matching strategies, and is applicable to scenarios where an association relationship is established between buildings and fixed-line circuits. It solves the problems of full regional coverage, low matching accuracy and abbreviations in business scenarios. This application is used to adapt to the functional scenarios associated with fixed-line circuit services and buildings, so that operators can conduct statistical analysis of services, accurately implement marketing services, accurately measure investment plans, ensure the timeliness and accuracy of construction delivery, and comprehensively improve customer perception experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0053] Figure 1 A flowchart of an address matching method provided in an embodiment of the present application;

[0054] Figure 2 A schematic diagram of multiple preset matching strategies provided in an embodiment of the present application;

[0055] Figure 3 A schematic diagram of character matching between a characteristic word and a circuit installation address provided in an embodiment of the present application;

[0056] Figure 4 A schematic diagram of the structure of an address matching device provided in an embodiment of the present application;

[0057] Figure 5 A schematic diagram of the structure of another address matching device provided in an embodiment of the present application.

[0058] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0059] In order to enable those skilled in the art to better understand the technical solution of the present application, the implementation mode of the present application will be further described in detail below with reference to the accompanying drawings.

[0060] It should be understood that the specific embodiments and drawings described herein are only used to explain the present application, rather than to limit the present application.

[0061] It can be understood that, in the absence of conflict, the various embodiments in the present application and the various features in the embodiments can be combined with each other.

[0062] It can be understood that, for the convenience of description, the drawings of the present application only show the parts related to the present application, while the parts unrelated to the present application are not shown in the drawings.

[0063] It can be understood that each unit and module involved in the embodiments of the present application may correspond to only one physical structure, or may be composed of multiple physical structures, or multiple units and modules may be integrated into one physical structure.

[0064] It can be understood that the terms "first", "second", etc. in the embodiments of the present application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.

[0065] It is understandable that, in the absence of conflict, the functions and steps marked in the flowcharts and block diagrams of the present application may occur in an order different from that marked in the drawings.

[0066] It is understood that the flowcharts and block diagrams of the present application illustrate the possible architectures, functions, and operations of the systems, devices, equipment, and methods according to the various embodiments of the present application. Among them, each box in the flowchart or block diagram may represent a unit, module, program segment, code, which contains executable instructions for implementing the specified functions. Moreover, each box or combination of boxes in the block diagram and flowchart may be implemented by a hardware-based system that implements the specified functions, or by a combination of hardware and computer instructions.

[0067] It can be understood that the units and modules involved in the embodiments of the present application can be implemented by software or hardware, for example, the units and modules can be located in a processor.

[0068] At present, in the scenario of fixed-line circuit services and building association, the more commonly used association solutions are as follows:

[0069] 1. The fixed-line circuit business order includes the standard address, and there is a correlation between the order and the standard address. The standard address is associated with the building, so the order is associated with the building.

[0070] 2. The user and the order have an association relationship, and the association relationship between the user and the building is maintained manually, so that the order and the building have an association relationship.

[0071] 3. Word segmentation algorithm based on deep learning.

[0072] 4. Dictionary-based word segmentation algorithm.

[0073] However, the disadvantage of the above solution 1 is that it is subject to regional influence. Some regions have not yet promoted the standard address, and cannot complete the association between the standard address and the fixed-line circuit order, resulting in the technical solution of matching buildings and fixed-line circuit orders with standard addresses being unfeasible, and it is impossible to match and associate the full amount of order business. Therefore, Solution 1 is subject to scope factors.

[0074] Although the above solution 2 can achieve full association between buildings and fixed-line circuit orders, the manual method has a high error rate, low efficiency, and high cost, resulting in the technical solution of manually matching buildings and fixed-line circuit orders being unable to achieve 100% accuracy. In addition, there is a lack of appropriate auditing means for the accuracy of the relationship.

[0075] The algorithm in the above solution 3 usually requires a large amount of training data and model optimization to improve the accuracy and efficiency of word segmentation. It is relatively complex and cannot directly and effectively produce word segmentation results, and the investment cost is relatively high.

[0076] The algorithms in the above solution 4 include forward maximum matching FMM and reverse maximum matching BMM. Such algorithms use a greedy approach to segment the word with the longest length at the current position. However, abbreviations exist in the business scenario of building and fixed-line circuit order matching. Therefore, the disadvantage of this solution is that it cannot be applied to the abbreviation scenario.

[0077] Based on the problems existing in the above existing solutions, this application aims to complete string matching through feature words and matching strategies, which is applicable to the scenario of establishing association between buildings and fixed-line circuits. It solves the problem of full regional coverage of business scenarios, low matching accuracy, and abbreviation problems.

[0078] This application is used to adapt to the functional scenarios associated with fixed-line circuit services and buildings, so that operators can conduct statistical analysis of services, accurately implement marketing services, accurately measure investment plans, ensure the timeliness and accuracy of construction delivery, and comprehensively improve customer perception experience.

[0079] Before describing the embodiments of the present application, the terms and definitions used in the embodiments of the present application are explained as follows:

[0080] (1) Circuit installation location

[0081] The network order of the operator includes the standard address, installation address, district, county, city, province, etc. Therefore, the following formula is used:

[0082] Circuit installation location = circuit city + circuit district and county + circuit installation address

[0083] Among them, the circuit installation address: there may be both standard address and living address; the standard address is used first.

[0084] Circuit District: The installation address and order district fields may contain district information.

[0085] Circuit City: The Installation Address and Order City fields may contain city information.

[0086] (2) Feature words: standard words for preset addresses that are associated with circuit installation locations and buildings. These include the building standard address stdadd, building name fullname, and building name feature word keyname.

[0087] Among them, the standard address stdadd follows the following classification strategy:

[0088] Level 1: Provinces, municipalities, autonomous regions, and special administrative regions

[0089] Level 2: provincial capitals, prefecture-level cities, autonomous prefectures, leagues

[0090] Level 3: Districts, counties, county-level cities, banners

[0091] Level 4: Streets, towns, villages, industrial parks, and university towns

[0092] Level 5: roads, streets, lanes, alleys, administrative villages

[0093] Level 6: House number, natural village + village group

[0094] Level 7: Residential areas, real estate projects, building complexes (including bungalows and communities), schools, and natural village housing sites

[0095] Level 8: Building number, block number, structure number, factory building number

[0096] Level 9: Unit

[0097] Level 10: Floor

[0098] Level 11: Room (Door Number)

[0099] Among them, building name characteristic words: based on the building name, words that describe the characteristics of the building name are summarized by specific rules.

[0100] The following are specific examples of feature words:

[0101] (1) Standard building address stdadd: Room YY, Building XX, Mingsheng Building, No. 2117, Xinluo Street, High-tech Zone, Jinan City;

[0102] (2) full name of the building: Mingsheng Building;

[0103] (3) Building name keyname: Mingsheng.

[0104] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0105] The present application provides an address matching method, the working process of which can be implemented by electronic devices, such as computers, handheld smart terminals, etc. For the convenience of explanation, the embodiments of the present application are described with the method execution subject being a computer.

[0106] It should be noted that when executing the solution of the present application, it is necessary to pre-agreed on the parameters related to the feature words to prepare for the character string matching between the feature words and the circuit installation address.

[0107] In this application, the parameters related to the feature words are agreed upon as follows:

[0108] (1) Keywords: the string to be matched

[0109] (2) Keyword: A single character in a feature word string.

[0110] (3) Number of keywords that are successfully matched (keyMatchNum): the number of identical characters between the feature word string and the circuit installation address string in step 6.

[0111] (4) Number of keywords that pass the spacing check (keyDistCorrectNum): After the feature word string is matched, an index is created for the matched keyword to record the position of the word in the original string. The difference between the values ​​of two adjacent words in the index is defined as the spacing. Different spacings will result in different numbers of qualified keywords.

[0112] (5) Keyword length threshold (keyLenTHValue): Limitation on the length of the string to be matched.

[0113] (6) The threshold value of the number of characters that cannot be matched in a feature word (keyDiffTHValue): After a feature word is matched, the limit on the number of keywords that cannot be successfully matched.

[0114] (7) Feature word segmentation threshold (keyDistTHValue): When the number of characters between two adjacent characters in a feature word is greater than the threshold, the feature word is considered to be segmented here.

[0115] (8) Keyword segmentation quantity threshold (keyParaTHValue): After segmenting the keyword, the number of paragraphs obtained is limited to meet the following rules:

[0116] Among them, the number of keywords that successfully matched (keyMatchNum) - the number of keywords that passed the distance check (keyDistCorrectNum) <= the threshold number of feature word segments (keyParaTHValue)

[0117] Optionally, if the building data to be matched is large and exceeds a preset quantity threshold, the building data to be matched is also processed. Specifically, the building data can be processed in the following four dimensions in order to prepare for matching:

[0118] (1) Sorting by building type: Sort the building types in order according to the rules (building types are: 1. Commercial buildings (commercial enterprises); 2. Professional markets (commercial enterprises); 3. Commercial complexes (commercial enterprises); 4. Factory parks (commercial enterprises); 5. Non-commercial enterprise buildings. The importance of the above building types decreases from 1 to 5).

[0119] (2) Building standard address dimension: sort the buildings in descending order according to the length of the standard address.

[0120] (3) Building name dimension: sort the buildings in descending order according to the length of their names.

[0121] (4) Building name feature words: sort the buildings in descending order according to the length of the building name feature words.

[0122] Figure 1 A schematic diagram of an address matching method provided in an embodiment of the present application, such as Figure 1 As shown, the present application provides an address matching method, the method includes S1-S4, which are as follows:

[0123] S1. Obtain building data to be matched, and preset feature words used as address matching criteria;

[0124] The building data to be matched is the circuit installation location. The feature word is a pre-set address word containing multiple keywords, which is used as a standard for address matching.

[0125] S2, performing character segmentation on the building data and the characteristic words respectively to obtain a building data character sequence and a characteristic word character sequence in units of single characters;

[0126] Specifically, the circuit installation location is segmented by characters, and a digital index is established. Taking Table 1 as an example, Table 1 is an index result obtained by segmenting a circuit installation address by characters.

[0127] Building data characters north Beijing city West city district gold melt Numeric Index 1 2 3 4 5 6 7 8 Building data characters big street trade easy pay flow big Xiamen Numeric Index 9 10 11 12 13 14 15 16

[0128] Table 1

[0129] S3, matching the building data character sequence and the feature word character sequence by city, district, and county, to obtain a matching result of the building data and the feature word by city, district, and county;

[0130] In some embodiments, S3 includes:

[0131] Extracting the first city, district, and county information from the building data character sequence;

[0132] Extracting the second city, district, and county information from the characteristic word character sequence;

[0133] The first city, district, city, and county information is matched with the second city, district, city, and county information to obtain a city, district, city, and county matching result of the building data and the feature word.

[0134] Among them, if the first metropolitan area, city, district, and county information is consistent with the second metropolitan area, city, district, and county information, then the matching result of the building data and the metropolitan area, city, and county of the feature word is determined to be a match; if the first metropolitan area, city, district, and county information is inconsistent with the second metropolitan area, city, district, and county information, or some items are missing (for example, one of them contains the metropolitan area, city, district, and county information and the other does not, or neither of them contains it), then the matching result of the building data and the metropolitan area, city, and county of the feature word is determined to be a mismatch.

[0135] S4. Based on the matching results of the cities, districts and counties, select a corresponding matching strategy to perform keyword matching on the character sequence of the building data and the character sequence of the feature word to obtain an address matching result of the building data and the feature word.

[0136] In some embodiments, S4 includes: based on the matching results of the cities, districts and counties, sequentially selecting preset matching strategies to perform keyword matching on the building data character sequence and the feature word character sequence until a match is successful;

[0137] Each preset matching strategy corresponds to a set of matching parameters. Each set of matching parameters includes the following parameter types: feature word length threshold keyLenTHValue, unmatched character threshold keyDiffTHValue, feature word segment number threshold keyParaTHValue, and feature word segment threshold keyDistTHValue.

[0138] Among them, among the feature word type, city, district and county matching results, feature word length threshold keyLenTHValue, unmatched character threshold keyDiffTHValue, feature word segment number threshold keyParaTHValue, and feature word segment threshold keyDistTHValue corresponding to each set of matching parameters, there is at least one item that is different from other sets of matching parameters.

[0139] In some embodiments, the characteristic word types include: standard address stdadd, building name fullname, building name characteristic word keyname;

[0140] The preset matching strategies include:

[0141] a. When the feature word type is standard address stdadd, if the city, district, or county matching result is a match, keyword matching is performed according to the first set of matching parameters;

[0142] b. When the feature word type is standard address stdadd, if the city, district, or county matching result is not a match, keyword matching is performed according to the second set of matching parameters;

[0143] c. When the feature word type is building name fullname, if the city, district, or county matching result is a match, keyword matching is performed according to the third set of matching parameters;

[0144] d. When the feature word type is building name fullname, if the city, district, or county matching result is not a match, keyword matching is performed according to the fourth set of matching parameters;

[0145] e. When the feature word type is the seventh and eighth level standard address 78add in the standard address stdadd, if the city, district, or county matching result is a match, keyword matching is performed according to the fifth set of matching parameters;

[0146] f. When the feature word type is the seventh or eighth level standard address 78add, if the city, district, or county matching result is not a match, keyword matching is performed according to the sixth set of matching parameters;

[0147] g. When the feature word type is building name fullname, if the city, district, or county matching result is a match, keyword matching is performed according to the seventh set of matching parameters;

[0148] h. When the feature word type is building name fullname, if the city, district, or county matching result is not a match, keyword matching is performed according to the eighth set of matching parameters;

[0149] i. When the feature word type is the building name feature word keyname, if the city, district, or county matching result is a match, keyword matching is performed according to the ninth set of matching parameters;

[0150] j. When the feature word type is the building name feature word keyname, if the city, district, or county matching result is not a match, keyword matching is performed according to the tenth set of matching parameters;

[0151] k. When the feature word type is the seventh or eighth level standard address 78add, if the city, district, or county matching result is a match, keyword matching is performed according to the eleventh set of matching parameters;

[0152] l. When the feature word type is the seventh or eighth level standard address 78add, if the city, district, or county matching result is not a match, keyword matching is performed according to the twelfth set of matching parameters;

[0153] m. When the feature word type is building name fullname, if the city, district, or county matching result is a match, keyword matching is performed according to the thirteenth set of matching parameters;

[0154] n. When the feature word type is building name fullname, if the city, district, or county matching result is not a match, keyword matching is performed according to the fourteenth set of matching parameters;

[0155] o. When the feature word type is the building name feature word keyname, if the city, district, or county matching result is a match, keyword matching is performed according to the fifteenth set of matching parameters;

[0156] p. When the feature word type is the building name feature word keyname, if the city, district, or county matching result is a mismatch, keyword matching is performed according to the sixteenth set of matching parameters.

[0157] Specifically, Figure 2 A schematic diagram of multiple preset matching strategies provided in the embodiments of the present application, such as Figure 2 As shown, different matching strategies correspond to different feature word types, city, district and county matching results, and matching parameters. The matching parameters include the feature word length threshold keyLenTHValue, the unmatched character threshold keyDiffTHValue, the feature word segment number threshold keyParaTHValue, and the feature word segment threshold keyDistTHValue.

[0158] For example, for matching strategy a, the corresponding feature word type is standard address stdadd, the matching result of the city, district and county is match, and the matching parameters are the first set of matching parameters, specifically the feature word length threshold keyLenTHValue is 1, the unmatched character threshold keyDiffTHValue is 0, the feature word segment number threshold keyParaTHValue is 0, and the feature word segment threshold keyDistTHValue is 1. The corresponding matching strategy ranking is 1.

[0159] For another example, for matching strategy d, the corresponding feature word type is building name fullname, the matching result of the city, district and county is unmatched, and the matching parameters are the fourth set of matching parameters, specifically the feature word length threshold keyLenTHValue is 1, the unmatched character threshold keyDiffTHValue is 0, the feature word segment number threshold keyParaTHValue is 0, and the feature word segment threshold keyDistTHValue is 1. The corresponding matching strategy is ranked 5.

[0160] For another example, for matching strategy p, the corresponding feature word type is the building name feature word keyname, the matching result of the city, district and county is mismatch, and the matching parameters are the sixteenth set of matching parameters, specifically the feature word length threshold keyLenTHValue is 1, the unmatched character threshold keyDiffTHValue is 0, the feature word segment number threshold keyParaTHValue is 0, and the feature word segment threshold keyDistTHValue is 1. The corresponding matching strategy is ranked 5.

[0161] It should be noted that when performing address matching, Figure 2 The order shown is used to match from top to bottom. For example, if matching strategy a does not find a corresponding matching result, matching strategy b is used for matching, and so on.

[0162] In some embodiments, among all preset matching strategies, the feature word length threshold keyLenTHValue, the unmatched character threshold keyDiffTHValue, the feature word segment number threshold keyParaTHValue, and the feature word segment threshold keyDistTHValue in the matching parameters of the partial matching strategy have a combination of at least two different values.

[0163] For example, refer to Figure 2 For the matching strategy h, the corresponding feature word type is building name fullname, the matching result of city, district and county is not matched, and the matching parameters are the eighth set of matching parameters, which includes a combination of 4 different values, specifically:

[0164] Combination 1: Specifically, the feature word length threshold keyLenTHValue is 10, the unmatched character threshold keyDiffTHValue is 1, the feature word segment number threshold keyParaTHValue is 1, and the feature word segment threshold keyDistTHValue is 1. The corresponding matching strategy ranking is 13.

[0165] Combination 2: Specifically, the feature word length threshold keyLenTHValue is 10, the unmatched character threshold keyDiffTHValue is 0, the feature word segment number threshold keyParaTHValue is 2, and the feature word segment threshold keyDistTHValue is 1. The corresponding matching strategy ranking is 14.

[0166] Combination 3: Specifically, the feature word length threshold keyLenTHValue is 8, the unmatched character threshold keyDiffTHValue is 0, the feature word segment number threshold keyParaTHValue is 2, and the feature word segment threshold keyDistTHValue is 1. The corresponding matching strategy ranking is 15.

[0167] Combination 4: Specifically, the feature word length threshold keyLenTHValue is 12, the unmatched character threshold keyDiffTHValue is 1, the feature word segment number threshold keyParaTHValue is 3, and the feature word segment threshold keyDistTHValue is 1. The corresponding matching strategy ranking is 16.

[0168] In some embodiments, keyword matching is performed on the building data character sequence and the feature word character sequence to obtain an address matching result between the building data and the feature word, including:

[0169] Matching each character in the characteristic word character sequence with each character in the building data character sequence in sequence to obtain a keyword matching result, and determining an address matching result based on the keyword matching result;

[0170] The keyword matching result includes the number of keywords that have been matched successfully (keyMatchNum) and the number of keywords that have passed the distance check (keyDistCorrectNum).

[0171] The conditions for determining the address matching results based on the keyword matching results may specifically be that the number of successfully matched keywords keyMatchNum is greater than a first preset threshold, and the number of keywords that pass the distance check keyDistCorrectNum is greater than a second preset threshold, wherein the preset thresholds may be set according to actual conditions.

[0172] In some embodiments, each character in the characteristic word character sequence is matched with each character in the building data character sequence in sequence to obtain a keyword matching result, including:

[0173] The first character in the characteristic word character sequence is used as the character to be matched, and the character to be matched is matched with the character sequence of the building data from the first character to the last character;

[0174] If there is a target character matching the character to be matched in the building data character sequence, then the matching sequence position and character value of the target character in the building data character sequence are recorded;

[0175] Take the next character of the character to be matched as the character to be matched again, and re-match the character to be matched with the character sequence of the building data from the next position after the corresponding matching sequence position of the previous character to be matched to the end character until the matching process of all characters in the feature word character sequence is completed, and obtain the keyword matching result of each character in the feature word character sequence.

[0176] Specifically, split the feature word by characters and establish a digital index. Taking Table 2 as an example, Table 2 shows the result of splitting a feature word by characters to obtain the index.

[0177] Characteristic word trade easy pay big Numeric Index 1 2 3 4

[0178] Table 2

[0179] Figure 3 This is a schematic diagram of character matching between the feature word provided in the embodiment of the present application and the circuit installation address. As Figure 3 shown, first, complete the matching of a single character "Mao" according to the index. If the match fails, the feature word is shifted one position backward and continues to match with the building data. It can be seen that when the match value is the 11th time, the keyword "Mao" is successfully matched, and then the matching character and the corresponding index of this character in the circuit installation address are recorded in the matching result. The current matching result is Table 3:

[0180] trade 11

[0181] Table 3

[0182] Then, take the next character "Yi" of the feature word and continue the matching from the next position (i.e., the 12th position) after the corresponding matching sequence position of the previous character to be matched (i.e., the 11th position). After each successful match, record the matching result and write down the digital index of its circuit installation address. After the matching of the feature word and the circuit installation address is completed, the final matching result as shown in Table 4 is obtained:

[0183] trade easy pay big 11 12 13 15

[0184] Table 4

[0185] In addition, the numerical index relationship of this match can be obtained as shown in Table 5:

[0186]

[0187] Table 5

[0188] From the above table data, the parameter value of the matching between the feature word and the circuit matching installation address can be obtained as:

[0189] (1) The number of successfully matched keywords (keyMatchNum) is 4;

[0190] (2) When the feature word segmentation threshold keyDistTHValue is 1, the number of keywords that pass the distance check (keyDistCorrectNum) is 3;

[0191] (3) When the feature word segmentation threshold keyDistTHValue is greater than 1, the number of keywords that pass the distance check (keyDistCorrectNum) is 4.

[0192] Therefore, based on the above keyword matching result, the address matching result is determined to be a match between the two.

[0193] This application provides an address matching method, which completes string matching through feature words and matching strategies, and is applicable to scenarios where buildings and fixed-line circuits are associated. It solves the problem of full regional coverage of business scenarios, low matching accuracy, and abbreviations. This application is used to adapt to functional scenarios where fixed-line circuit services are associated with buildings, so that operators can conduct statistical analysis of services, achieve accurate implementation of marketing services, accurately measure investment plans, ensure the timeliness and accuracy of construction delivery, and comprehensively improve customer perception experience.

[0194] It should be understood that, although the various steps in the flowcharts in the above-described embodiments are sequentially displayed according to the indications of the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and they can be executed in other orders. Moreover, at least a portion of the steps in the figure may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily to be carried out sequentially, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0195] Figure 4 A schematic diagram of an address matching device provided in an embodiment of the present application, such as Figure 4 As shown, the present application provides an address matching device, the device comprising:

[0196] A data acquisition module 11, which is configured to acquire building data to be matched, and preset feature words used as address matching criteria;

[0197] A character segmentation module 12, which is configured to perform character segmentation on the building data and the characteristic words respectively, to obtain a building data character sequence and a characteristic word character sequence in units of single characters;

[0198] A city, district, and county matching module 13 is configured to match the building data character sequence and the feature word character sequence by city, district, and county, and obtain a city, district, and county matching result of the building data and the feature word;

[0199] The keyword matching module 14 is configured to select a corresponding matching strategy to perform keyword matching on the building data character sequence and the feature word character sequence based on the matching result of the city, district, or county, so as to obtain an address matching result between the building data and the feature word.

[0200] Regarding the limitation of the address matching device, reference may be made to the limitation of the address matching method in the above embodiments of the present application, which will not be elaborated in this embodiment.

[0201] Figure 5 Another schematic diagram of the address matching device provided in the embodiment of the present application is as follows: Figure 5 As shown, in some embodiments, the present application provides an address matching device, including a memory 22 and a processor 21, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the address matching method in the above-mentioned embodiments of the present application.

[0202] The memory is connected to the processor, the memory may be a flash memory or a read-only memory or other memory, and the processor may be a central processing unit or a single-chip microcomputer.

[0203] In some embodiments, the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the address matching method in the above-mentioned embodiments of the present application is implemented.

[0204] The computer-readable storage medium includes volatile or non-volatile, removable or non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, computer program modules or other data). Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable read only memory), flash memory or other memory technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer.

[0205] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present application, but the present application is not limited thereto. For those skilled in the art, various modifications and improvements can be made without departing from the spirit and substance of the present application, and these modifications and improvements are also considered to be within the scope of protection of the present application.

Claims

1. An address matching method, characterized in that: The method comprises: S1. Obtain building data to be matched, and preset feature words used as address matching criteria; S2, performing character segmentation on the building data and the characteristic words respectively to obtain a building data character sequence and a characteristic word character sequence in units of single characters; S3, matching the building data character sequence and the feature word character sequence by city, district, and county, to obtain a matching result of the building data and the feature word by city, district, and county; S4. Based on the matching results of the cities, districts and counties, select a corresponding matching strategy to perform keyword matching on the character sequence of the building data and the character sequence of the feature word to obtain an address matching result of the building data and the feature word.

2. The address matching method according to claim 1, characterized in that: S3, including: Extracting the first city, district, and county information from the building data character sequence; Extracting the second city, district, and county information from the characteristic word character sequence; The first city, district, city, and county information is matched with the second city, district, city, and county information to obtain a city, district, city, and county matching result of the building data and the feature word.

3. The address matching method according to claim 1, characterized in that: S4, comprising: based on the matching results of the cities, districts and counties, sequentially selecting preset matching strategies to perform keyword matching on the building data character sequence and the feature word character sequence until a match is successful; Each preset matching strategy corresponds to a set of matching parameters. Each set of matching parameters includes the following parameter types: feature word length threshold keyLenTHValue, unmatched character threshold keyDiffTHValue, feature word segment number threshold keyParaTHValue, and feature word segment threshold keyDistTHValue. Among them, among the feature word type, city, district and county matching results, feature word length threshold keyLenTHValue, unmatched character threshold keyDiffTHValue, feature word segment number threshold keyParaTHValue, and feature word segment threshold keyDistTHValue corresponding to each set of matching parameters, there is at least one item that is different from other sets of matching parameters.

4. The address matching method according to claim 3, characterized in that: The characteristic word types include: standard address stdadd, building name fullname, building name characteristic word keyname; The preset matching strategies include: a. When the feature word type is standard address stdadd, if the city, district, or county matching result is a match, keyword matching is performed according to the first set of matching parameters; b. When the feature word type is standard address stdadd, if the city, district, or county matching result is not a match, keyword matching is performed according to the second set of matching parameters; c. When the feature word type is building name fullname, if the city, district, or county matching result is a match, keyword matching is performed according to the third set of matching parameters; d. When the feature word type is building name fullname, if the city, district, or county matching result is not a match, keyword matching is performed according to the fourth set of matching parameters; e. When the feature word type is the seventh and eighth level standard address 78add in the standard address stdadd, if the city, district, or county matching result is a match, keyword matching is performed according to the fifth set of matching parameters; f. When the feature word type is the seventh or eighth level standard address 78add, if the city, district, or county matching result is not a match, keyword matching is performed according to the sixth set of matching parameters; g. When the feature word type is building name fullname, if the city, district, or county matching result is a match, keyword matching is performed according to the seventh set of matching parameters; h. When the feature word type is building name fullname, if the city, district, or county matching result is not a match, keyword matching is performed according to the eighth set of matching parameters; i. When the feature word type is the building name feature word keyname, if the city, district, or county matching result is a match, keyword matching is performed according to the ninth set of matching parameters; j. When the feature word type is the building name feature word keyname, if the city, district, or county matching result is not a match, keyword matching is performed according to the tenth set of matching parameters; k. When the feature word type is the seventh or eighth level standard address 78add, if the city, district, or county matching result is a match, keyword matching is performed according to the eleventh set of matching parameters; l. When the feature word type is the seventh or eighth level standard address 78add, if the city, district, or county matching result is not a match, keyword matching is performed according to the twelfth set of matching parameters; m. When the feature word type is building name fullname, if the city, district, or county matching result is a match, keyword matching is performed according to the thirteenth set of matching parameters; n. When the feature word type is building name fullname, if the city, district, or county matching result is not a match, keyword matching is performed according to the fourteenth set of matching parameters; o. When the feature word type is the building name feature word keyname, if the city, district, or county matching result is a match, keyword matching is performed according to the fifteenth set of matching parameters; p. When the feature word type is the building name feature word keyname, if the city, district, or county matching result is a mismatch, keyword matching is performed according to the sixteenth set of matching parameters.

5. The address matching method according to claim 4, characterized in that: Among all preset matching strategies, the matching parameters of some matching strategies include the feature word length threshold keyLenTHValue, the unmatched character threshold keyDiffTHValue, the feature word segment number threshold keyParaTHValue, and the feature word segment threshold keyDistTHValue, which have at least two different numerical combinations.

6. The address matching method according to any one of claims 1 to 5, characterized in that: Keyword matching is performed on the building data character sequence and the feature word character sequence to obtain an address matching result between the building data and the feature word, including: Matching each character in the characteristic word character sequence with each character in the building data character sequence in sequence to obtain a keyword matching result, and determining an address matching result based on the keyword matching result; The keyword matching result includes the number of keywords that have been matched successfully (keyMatchNum) and the number of keywords that have passed the distance check (keyDistCorrectNum).

7. The address matching method according to claim 6, characterized in that: Each character in the characteristic word character sequence is matched with each character in the building data character sequence in sequence to obtain a keyword matching result, including: The first character in the characteristic word character sequence is used as the character to be matched, and the character to be matched is matched with the character sequence of the building data from the first character to the last character; If there is a target character matching the character to be matched in the building data character sequence, then the matching sequence position and character value of the target character in the building data character sequence are recorded; The next character of the character to be matched is used again as the character to be matched, and the character to be matched is re-matched with the building data character sequence from the next position of the matching sequence position corresponding to the previous character to be matched to the last character, until the matching process of all characters in the feature word character sequence is completed, and the keyword matching result of each character in the feature word character sequence is obtained.

8. An address matching device, characterized in that: The device comprises: A data acquisition module, which is configured to acquire building data to be matched, and preset feature words used as address matching standards; A character segmentation module, which is configured to perform character segmentation on the building data and the characteristic words respectively to obtain a building data character sequence and a characteristic word character sequence in units of single characters; A city, district, and county matching module, which is configured to match the building data character sequence and the feature word character sequence by city, district, and county, and obtain a city, district, and county matching result of the building data and the feature word; The keyword matching module is configured to select a corresponding matching strategy to perform keyword matching on the building data character sequence and the feature word character sequence based on the matching results of the cities, districts and counties, so as to obtain the address matching results of the building data and the feature words.

9. An address matching device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to implement the address matching method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the address matching method according to any one of claims 1 to 7 is implemented.