Site matching method and system
By removing the head and tail interference words in the delivery address, simplifying the address name for keyword matching, the problem of site matching failure caused by multiple keyword conflicts in the prior art is solved, and the matching accuracy and matching rate of delivery sites are improved .
Patent Information
- Application Number
- CN201910874051.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-17
- Publication Date
- 2025-01-17
- Estimated Expiration
- 2039-09-17
AI Technical Summary
In the prior art, multiple keywords in the delivery address conflict or incorrect maintenance leads to site matching failure, reducing the accuracy and matching rate of delivery site matching.
By removing the head and tail interference words of the address name, simplifying the address name for keyword matching, avoiding multiple keywords conflicts and improving matching accuracy.
Improve the accuracy and matching rate of site matching, and avoid the impact of interfering words in the delivery address on keyword matching services.
Smart Images

Figure CN112529484B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a site matching method and system. Background Art
[0002] With the booming development of online shopping, the speed and accuracy of parcel delivery in logistics have become key factors in improving the online shopping experience. Logistics companies use logistics sorting and delivery systems to formulate parcel delivery routes. Based on the specific parcel delivery address filled in by the customer, the keyword matching service is used to match the parcel to the appropriate delivery site.
[0003] In the prior art, when customers maintain keywords, the delivery site matching often fails because there are multiple keywords in the delivery address and the sites corresponding to the multiple keywords conflict with each other. For example, the customer maintains that the site corresponding to "Zhaolin Plaza Block A" is "Yizhuang Station" and the site corresponding to "Yizhuang Economic Development Zone" is "Majuqiao Station". If the customer enters the delivery address "Zhaolin Plaza Block A, Yizhuang Economic Development Zone, Daxing District, Beijing", because the delivery address contains the above two keywords, the sites "Yizhuang Station" and "Majuqiao Station" are matched. The delivery address fails to match the delivery site because the sites corresponding to the multiple keywords matched conflict with each other. This reduces the matching rate of site matching.
[0004] When maintaining keywords, customers often mistakenly maintain the fourth-level address in the delivery address as a keyword, so that the delivery address containing the fourth-level address cannot be accurately matched to the delivery site. For example, the customer maintained the site corresponding to the keyword "Shijiazhuang" as "Station A", but in fact "Shijiazhuang" belongs to the fourth-level address. Under normal circumstances, no site has the ability to deliver packages in the entire city of Shijiazhuang. Because the customer mistakenly maintained "Shijiazhuang" as a keyword, other delivery addresses related to Shijiazhuang City were unable to be accurately matched to matching delivery sites. This reduces the accuracy of site matching. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a site matching method and system, which performs keyword matching service based on the simplified address name without the fourth-level address at the head and the interference words at the tail of the address name to obtain matching sites, so as to improve the matching rate and accuracy of site matching.
[0006] According to one aspect of the present invention, there is provided a site matching method, comprising:
[0007] Obtaining a site matching request, wherein the site matching request includes an address name;
[0008] removing the first address at the head and the interference words at the tail of the address name to obtain a simplified address name; and
[0009] Keyword matching is performed based on the simplified address name to obtain matching sites.
[0010] Preferably, the specific steps of removing the first address at the head and the interference words at the tail of the address name to obtain a simplified address name include:
[0011] Obtaining a first address information database;
[0012] Based on the first address information base, reverse traverse is performed to query the first address contained in the address name.
[0013] Preferably, the specific step of removing the first address at the head and the interference words at the tail of the address name to obtain a simplified address name also includes:
[0014] When the first address contained in the address name is found through reverse traversal query, the index position of the first address is recorded;
[0015] Starting from the index position of the first address, continue to traverse in reverse order to query whether the address name contains the parent address of the first address or the parent address of the parent of the first address.
[0016] Preferably, the specific step of removing the first address at the head and the interference words at the tail of the address name to obtain a simplified address name also includes:
[0017] If the parent address of the first address or the parent address of the parent of the first address is found by reverse traversal in the address name, the first address is a valid first address;
[0018] The valid first address is truncated from the address name according to the index position of the valid first address.
[0019] Preferably, the specific step of removing the first address at the head and the interference words at the tail of the address name to obtain a simplified address name also includes:
[0020] If the parent address of the first address or the parent address of the parent of the first address is not found through reverse traversal in the address name, the first address is an invalid first address;
[0021] The record of the invalid index position of the first address is deleted.
[0022] Preferably, the specific step of removing the first address at the head and the interference words at the tail of the address name to obtain a simplified address name also includes:
[0023] Starting from the index position of the valid first address or the index position of the invalid first address, continue to reversely traverse and query the first address included in the address name until the reverse traversal and query of the address name are completed.
[0024] Preferably, the specific step of removing the first address at the head and the interference words at the tail of the address name to obtain a simplified address name also includes:
[0025] Interference words at the end of the address name from which the first address has been truncated are intercepted and deleted to obtain the simplified address name of the address name.
[0026] Preferably, the specific steps of performing keyword matching based on the simplified address name to obtain a matching site include:
[0027] Get keyword information database;
[0028] Based on the keyword information base, the simplified address name is retrieved to obtain the keyword matched by the simplified address name.
[0029] Preferably, the specific step of performing keyword matching based on the simplified address name to obtain a matching site also includes:
[0030] If the simplified address name does not match the keyword, the matching site is not obtained.
[0031] Preferably, the specific step of performing keyword matching based on the simplified address name to obtain a matching site also includes:
[0032] If the simplified address name matches a keyword, it is determined whether the simplified address name matches multiple keywords and whether the sites corresponding to the multiple keywords are inconsistent.
[0033] Preferably, the specific step of performing keyword matching based on the simplified address name to obtain a matching site also includes:
[0034] If the simplified address name matches a keyword or the sites corresponding to the multiple keywords matched are consistent, the site corresponding to the keyword or the consistent sites corresponding to the multiple keywords are returned to obtain the matching site.
[0035] Preferably, the specific step of performing keyword matching based on the simplified address name to obtain a matching site also includes:
[0036] If the simplified address name matches multiple keywords and the sites corresponding to the multiple keywords are inconsistent, keyword logic processing is performed on the matched multiple keywords.
[0037] Preferably, the specific step of performing keyword logic processing on the matched multiple keywords includes:
[0038] Performing a forward or reverse search on the simplified address name;
[0039] When a keyword matching the simplified address name is retrieved, the site corresponding to the keyword and the position of the keyword in the simplified address name are recorded as temporary matching site information.
[0040] Preferably, the specific step of performing keyword logic processing on the matched multiple keywords further includes:
[0041] Continue to perform forward or reverse search on the simplified address name;
[0042] When a keyword matching the simplified address name is retrieved, a comparison is made to see whether the keyword and the previous keyword in the record are in a containment relationship or whether the position of the keyword in the simplified address name and the previous keyword in the record are in a front-and-back relationship.
[0043] Preferably, the specific step of performing keyword logic processing on the matched multiple keywords further includes:
[0044] If there is a containment relationship between the keyword and the last keyword recorded, the temporary matching site information is updated to the site corresponding to the longer keyword and the position of the longer keyword in the simplified address name.
[0045] Preferably, the specific step of performing keyword logic processing on the matched multiple keywords further includes:
[0046] If the position of the keyword in the simplified address name and the position of the previous keyword recorded in the simplified address name are in a causal relationship, the temporary matching site information is updated to the site corresponding to the later keyword and the later position of the keyword in the simplified address name.
[0047] Preferably, the specific step of performing keyword logic processing on the matched multiple keywords further includes:
[0048] Traversing the multiple matched keywords; and obtaining the matching site according to the last recorded temporary matching site information.
[0049] Preferably, the keyword information database includes at least one of the following information: keywords, and sites corresponding to keywords.
[0050] Preferably, the first address includes four levels of addresses, and the first address information base includes four levels of address information base.
[0051] According to another aspect of the present invention, there is provided a site matching system, comprising:
[0052] A data acquisition module, used to acquire a site matching request, wherein the site matching request includes an address name;
[0053] A data processing module, used to remove the first address at the head and the interference words at the tail of the address name to obtain a simplified address name; and
[0054] The site matching module is used to perform keyword matching based on the simplified address name to obtain matching sites.
[0055] Preferably, the site matching system further includes:
[0056] The keyword maintenance module is used to maintain the keyword information base according to the customer operation, wherein the keyword information base includes at least one of the following information: keywords and sites corresponding to keywords.
[0057] Preferably, the data acquisition module is also used to acquire the first address information database and the keyword information database.
[0058] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are executed, the site matching method as described above is implemented.
[0059] According to another aspect of the present invention, a control device for site matching is provided, comprising: a memory for storing computer instructions; a processor coupled to the memory, the processor being configured to execute the site matching method as described above based on the computer instructions stored in the memory.
[0060] An embodiment of the present invention has the following advantages or beneficial effects: a keyword matching service is performed based on the simplified address name with the first address at the head and the interference words at the tail removed to obtain a matching site. The influence of the first address and the interference words at the tail on the keyword matching service is avoided, and the accuracy and matching rate of site matching are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
[0062] Figure 1 A schematic flow chart showing a site matching method according to an embodiment of the present invention.
[0063] Figure 2 A schematic flow chart showing a site matching method according to an embodiment of the present invention.
[0064] Figure 3 A schematic flow chart showing a site matching method according to an embodiment of the present invention.
[0065] Figure 4 A schematic diagram showing the structure of a site matching system according to an embodiment of the present invention is shown.
[0066] Figure 5 A structural diagram showing a control device for site matching according to an embodiment of the present invention. DETAILED DESCRIPTION
[0067] The present invention is described below based on embodiments, but the present invention is not limited to these embodiments. In the detailed description of the present invention below, some specific details are described in detail. It is possible for a person skilled in the art to fully understand the present invention without the description of these details. In order to avoid confusing the essence of the present invention, known methods, processes, and procedures are not described in detail. In addition, the drawings are not necessarily drawn to scale.
[0068] Figure 1 The following is a flow chart of a site matching method according to an embodiment of the present invention, which specifically includes the following steps:
[0069] In step S101, a site matching request is obtained, wherein the site matching request includes an address name.
[0070] In step S102, the first address at the head and the interference words at the tail of the address name are removed to obtain a simplified address name.
[0071] In step S103, keyword matching is performed based on the simplified address name to obtain matching sites.
[0072] In one embodiment of the present invention, first, a site matching request is obtained, wherein the site matching request includes an address name. Then, the first address at the head and the interference words at the tail of the address name are removed to obtain a simplified address name. The first address here can be a fourth-level address. Finally, keyword matching is performed based on the simplified address name to obtain a matching site.
[0073] According to the embodiment of the present invention, a keyword matching service is performed based on the simplified address name with the first address at the head and the interference words at the tail removed to obtain a matching site, thereby avoiding the influence of the first address and the interference words at the tail on the keyword matching and improving the accuracy and matching rate of site matching.
[0074] Figure 2 The following is a flow chart of a site matching method according to an embodiment of the present invention.
[0075] In step S201, a site matching request is obtained, wherein the site matching request includes an address name.
[0076] In step S202, a first address information database is obtained; and a first address included in the address name is reversely traversed and queried based on the first address information database.
[0077] In step S203, when the reverse traversal query finds a first address included in the address name, the index position of the first address is recorded. Starting from the index position of the first address, the reverse traversal query continues to determine whether the address name contains the parent address of the first address or the parent address of the parent of the first address.
[0078] In step S204, it is determined whether the parent address of the first address or the parent address of the parent of the first address is found by reverse traversal in the address name. If the parent address of the first address or the parent address of the parent of the first address is found by reverse traversal in the address name, S205 is executed; if the parent address of the first address or the parent address of the parent of the first address is not found by reverse traversal in the address name, S206 is executed;
[0079] In step S205, the first address is a valid first address; according to the index position of the valid first address, the valid first address is truncated from the address name.
[0080] In step S206, the first address is an invalid first address; and the record of the index position of the invalid first address is deleted.
[0081] In step S207, starting from the index position of the valid first address or the index position of the invalid first address, reverse traversal querying of the first address included in the address name is continued until the reverse traversal querying of the address name is completed.
[0082] In step S208, the interference words at the end of the address name of the first address are truncated and deleted to obtain the simplified address name of the address name.
[0083] In step S209, a keyword matching service is performed based on the simplified address name to obtain a matching site.
[0084] In one embodiment of the present invention, a site matching request is obtained, wherein the site matching request includes an address name. A first address information base is obtained, wherein the first address information base may be a four-level address information base; based on the first address information base, a first address included in the address name is reversely traversed and queried, wherein the first address may be a four-level address. When a first address included in the address name is reversely traversed and queried, the index position of the first address is recorded. Starting from the index position of the first address, reverse traversal is continued to query whether the address name contains the parent address of the first address or the parent address of the parent of the first address. If the parent address of the first address or the parent address of the parent of the first address is reversely traversed and queried in the address name, the first address is a valid first address; according to the index position of the valid first address, the valid first address is truncated from the address name. If the parent address of the first address or the parent address of the parent of the first address is not reversely traversed and queried in the address name, the first address is an invalid first address; and the record of the index position of the invalid first address is deleted. Starting from the index position of the valid first address or the index position of the invalid first address, continue to reversely traverse and query the first address contained in the address name until the reverse traversal and query of the address name is completed. Intercept and delete the interference words at the end of the address name with the first address truncated to obtain the simplified address name of the address name. Perform keyword matching service based on the simplified address name to obtain a matching site.
[0085] According to an embodiment of the present invention, when a first address included in the address name is queried through reverse traversal, the index position of the first address is recorded. Starting from the index position of the first address, reverse traversal is continued to query whether the address name contains the parent address of the first address or the parent address of the parent of the first address. After a valid first address is queried, the valid first address is truncated from the address name. The accuracy of the queried first address is improved, thereby improving the accuracy of site matching. At the same time, the interference words at the end of the address name from which the first address has been truncated are intercepted and deleted to obtain the simplified address name of the address name. The influence of the interference words at the end of the address name on the subsequent keyword matching service is avoided, thereby further improving the accuracy of site matching.
[0086] In an optional embodiment of the present invention, the first address at the head and the interference words at the tail of the address name are removed to obtain a simplified address name, wherein the order of removing the first address at the head of the address name and removing the interference words at the tail of the address name is arbitrary. In one embodiment, a site matching request is obtained, wherein the site matching request includes an address name. Interference words at the tail of the address name are intercepted and deleted. A first address information base is obtained; based on the first address information base, a reverse traversal query is performed to query the first address contained in the address name with the tail interference words cut off. When a first address contained in the address name with the tail interference words cut off is found through reverse traversal query, the index position of the first address is recorded. Starting from the index position of the first address, a reverse traversal query is continued to query whether the address name with the tail interference words cut off contains the parent address of the first address or the parent address of the parent of the first address. If the parent address of the first address or the parent address of the parent of the first address is found through reverse traversal in the address name with the tail interference word truncated, the first address is a valid first address; according to the index position of the valid first address, the valid first address is truncated from the address name with the tail interference word truncated. If the parent address of the first address or the parent address of the parent of the first address is not found through reverse traversal in the address name with the tail interference word truncated, the first address is an invalid first address; delete the record of the index position of the invalid first address. Starting from the index position of the valid first address or the index position of the invalid first address, continue to reversely traverse and query the first address contained in the address name with the tail interference word truncated, until the reverse traversal query of the address name with the tail interference word truncated is completed, and the simplified address name of the address name is obtained. Perform keyword matching service based on the simplified address name to obtain a matching site.
[0087] Figure 3 The following is a flow chart of a site matching method according to an embodiment of the present invention.
[0088] In step S301, a keyword information library is obtained; based on the keyword information library, the simplified address name is searched to obtain keywords matched by the simplified address name.
[0089] In step S302, it is determined whether the simplified address name matches a keyword. If the simplified address name does not match a keyword, step S303 is executed; if the simplified address name matches a keyword, step S304 is executed.
[0090] In step S303, the matching site is not obtained.
[0091] In step S304, it is determined whether the simplified address name matches a keyword or multiple keywords and whether the sites corresponding to the multiple keywords are inconsistent. If the simplified address name matches a keyword or the sites corresponding to the multiple keywords are consistent, S305 is executed; if the simplified address name matches multiple keywords and the sites corresponding to the multiple keywords are inconsistent, S306 is executed.
[0092] In step S305, the site corresponding to the one keyword or the consistent sites corresponding to the multiple keywords are returned to obtain the matching sites.
[0093] In step S306, keyword logic processing is performed on the matched multiple keywords. The simplified address name is forward or reversely searched; when a keyword matching the simplified address name is retrieved, the site corresponding to the keyword and the position of the keyword in the simplified address name are recorded as temporary matching site information. The simplified address name is continuously forward or reversely searched.
[0094] In step 307, when a keyword matching the simplified address name is retrieved, a comparison is made to see whether the keyword and the previous keyword in the record are in a containment relationship or whether the position of the keyword in the simplified address name and the previous keyword in the record are in a front-and-back relationship.
[0095] In step 308, if there is a containment relationship between the keyword and the last keyword recorded, the temporary matching site information is updated to the site corresponding to the longer keyword and the position of the longer keyword in the simplified address name.
[0096] If the position of the keyword in the simplified address name and the position of the previous keyword recorded in the simplified address name are in a causal relationship, the temporary matching site information is updated to the site corresponding to the later keyword and the later position of the keyword in the simplified address name.
[0097] In step 309, the multiple matched keywords are traversed and queried; and the matching site is obtained according to the temporary matching site information recorded last.
[0098] In one embodiment of the present invention, a keyword information library is obtained, which includes keywords and sites corresponding to the keywords; based on the keyword information library, the simplified address name is retrieved to obtain the keyword matched by the simplified address name. If the simplified address name does not match the keyword, the matching site is not obtained. If the simplified address name matches the keyword, it is determined whether the simplified address name matches multiple keywords and whether the sites corresponding to the multiple keywords are inconsistent. If the simplified address name matches a keyword or the sites corresponding to the multiple keywords are consistent, the site corresponding to the keyword or the consistent sites corresponding to the multiple keywords are returned to obtain the matching site. If the simplified address name matches multiple keywords and the sites corresponding to the multiple keywords are inconsistent, keyword logic processing is performed on the multiple keywords that are matched.
[0099] Specifically, the simplified address name is forward or reverse searched; when a keyword matching the simplified address name is retrieved, the site corresponding to the keyword and the position of the keyword in the simplified address name are recorded as temporary matching site information. The simplified address name is continued to be forward or reverse searched; when a keyword matching the simplified address name is retrieved, whether the keyword and the previous keyword recorded are in a containment relationship or whether the position of the keyword in the simplified address name and the position of the previous keyword recorded in the simplified address name are in a front-and-back relationship. If the keyword and the previous keyword recorded are in a containment relationship, the temporary matching site information is updated to the site corresponding to the longer keyword and the position of the longer keyword in the simplified address name. If the position of the keyword in the simplified address name and the position of the previous keyword recorded in the simplified address name are in a front-and-back relationship, the temporary matching site information is updated to the site corresponding to the later keyword and the position of the later keyword in the simplified address name. After traversing and querying the multiple keywords matched, the matching site is obtained according to the temporary matching site information recorded last.
[0100] According to an embodiment of the present invention, when the next keyword matching the simplified address name is retrieved, a comparison is made as to whether the keyword and the previous keyword recorded are in a containment relationship or whether the position of the keyword in the simplified address name and the position of the previous keyword recorded in the simplified address name are in a front-and-back relationship. If the keyword and the previous keyword recorded are in a containment relationship, the temporary matching site information is updated to the site corresponding to the longer keyword and the position of the longer keyword in the simplified address name. If the position of the keyword in the simplified address name and the position of the previous keyword recorded in the simplified address name are in a front-and-back relationship, the temporary matching site information is updated to the site corresponding to the later keyword and the position of the later keyword in the simplified address name. This avoids the situation where the delivery site matching fails due to conflicts between sites corresponding to multiple keywords matched, thereby improving the matching rate of site matching.
[0101] In an optional embodiment of the present invention, the keyword information database is maintained by a client, wherein the keyword information database includes at least one of the following information: a keyword, and a site corresponding to the keyword.
[0102] Figure 4 FIG. 1 is a schematic diagram of the structure of a site matching system according to an embodiment of the present invention. Figure 4 As shown, the site matching system includes: a data acquisition module 401 , a data processing module 402 , a site matching module 403 , and a keyword maintenance module 404 .
[0103] The data acquisition module 401 is used to acquire a site matching request, wherein the site matching request includes an address name.
[0104] The data processing module 402 is used to remove the first address at the head and the interference words at the tail of the address name to obtain a simplified address name. The first address here includes four levels of addresses.
[0105] The site matching module 403 is used to perform keyword matching based on the simplified address name to obtain a matching site.
[0106] The keyword maintenance module 404 is used to maintain the keyword information database according to the customer operation, wherein the keyword information database includes at least one of the following information: keywords and sites corresponding to keywords.
[0107] In an optional embodiment of the present invention, the data acquisition module is further used to acquire a first address information database, where the first address information database includes a four-level address information database.
[0108] In an optional embodiment of the present invention, the data acquisition module is also used to acquire a keyword information library.
[0109] Figure 5 4 is a structural diagram of a control device for site matching according to an embodiment of the present invention. Figure 5 The device shown is only an example and should not constitute any limitation to the functions and scope of use of the embodiments of the present invention.
[0110] refer to Figure 5 , the device includes a processor 501, a memory 502 and an input / output device 503 connected by a bus. The memory 502 includes a read-only memory (ROM) and a random access memory (RAM). The memory 502 stores various computer instructions and data required for executing system functions. The processor 501 reads various computer instructions from the memory 502 to perform various appropriate actions and processes. The input / output device includes an input part such as a keyboard and a mouse; an output part such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage part such as a hard disk; and a communication part such as a network interface card such as a LAN card and a modem. The memory 502 also stores the following computer instructions to complete the operations specified in the site matching method of the embodiment of the present invention: obtaining a site matching request, wherein the site matching request includes an address name; removing the first address at the head of the address name and the interference words at the tail to obtain a simplified address name; and performing keyword matching based on the simplified address name to obtain a matching site.
[0111] Accordingly, an embodiment of the present invention provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed, the operations specified by the above-mentioned site matching method are implemented.
[0112] Correspondingly, an embodiment of the present invention further provides a computer program product, including a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a mobile terminal, the mobile terminal is enabled to execute the steps of the above site matching method.
[0113] The flowcharts and block diagrams in the accompanying drawings illustrate the possible system frameworks, functions and operations of the systems, methods and devices of the embodiments of the present invention. The boxes on the flowcharts and block diagrams can represent a module, a program segment or just a piece of code, and the modules, program segments and codes are all executable instructions for implementing the specified logical functions. It should also be noted that the executable instructions for implementing the specified logical functions can be recombined to generate new modules and program segments. Therefore, the boxes and the order of the boxes in the accompanying drawings are only used to better illustrate the process and steps of the embodiments, and should not be used as a limitation on the invention itself.
[0114] The above descriptions are only some embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A site matching method, characterized in that: include: Obtaining a site matching request, wherein the site matching request includes an address name; Removing the valid first address at the head and the interference words at the tail of the address name to obtain a simplified address name, wherein if the parent address of the first address or the parent address of the parent of the first address is found by reverse traversal in the address name, the first address is a valid first address; and Keyword matching is performed based on the simplified address name to obtain a matching site, wherein when the simplified address name matches multiple keywords and the sites corresponding to the multiple keywords are inconsistent, if the current keyword matched by the retrieved simplified address name and the previous keyword recorded are in an inclusion relationship, then the temporary matching site information is updated to the site corresponding to the longer keyword and the position of the longer keyword in the simplified address name, If the position of the current keyword matching the simplified address name retrieved in the simplified address name and the position of the last keyword recorded in the simplified address name are in a front-and-back relationship, then the temporary matching site information is updated to the site corresponding to the later keyword and the position of the later keyword in the simplified address name, Traverse the multiple matched keywords and obtain the matching site according to the last recorded temporary matching site information.
2. The site matching method according to claim 1, characterized in that: The specific steps of removing the first address at the head and the interference words at the tail of the address name to obtain a simplified address name include: Obtaining a first address information database; Based on the first address information base, reverse traverse is performed to query the first address contained in the address name.
3. The site matching method according to claim 2, characterized in that: The specific step of removing the first address at the head and the interference words at the tail of the address name to obtain a simplified address name also includes: When the first address contained in the address name is found through reverse traversal query, the index position of the first address is recorded; Starting from the index position of the first address, continue to traverse in reverse order to query whether the address name contains the parent address of the first address or the parent address of the parent of the first address.
4. The site matching method according to claim 3, characterized in that: The specific step of removing the first address at the head and the interference words at the tail of the address name to obtain a simplified address name also includes: If the parent address of the first address or the parent address of the parent of the first address is found by reverse traversal in the address name, the first address is a valid first address; The valid first address is truncated from the address name according to the index position of the valid first address.
5. The site matching method according to claim 4, characterized in that: The specific step of removing the first address at the head and the interference words at the tail of the address name to obtain a simplified address name also includes: If the parent address of the first address or the parent address of the parent of the first address is not found through reverse traversal in the address name, the first address is an invalid first address; The record of the invalid index position of the first address is deleted.
6. The site matching method according to claim 5, characterized in that: The specific step of removing the first address at the head and the interference words at the tail of the address name to obtain a simplified address name also includes: Starting from the index position of the valid first address or the index position of the invalid first address, continue to reversely traverse and query the first address included in the address name until the reverse traversal and query of the address name are completed.
7. The site matching method according to claim 6, characterized in that: The specific step of removing the first address at the head and the interference words at the tail of the address name to obtain a simplified address name also includes: Interference words at the end of the address name from which the first address has been truncated are intercepted and deleted to obtain the simplified address name of the address name.
8. The site matching method according to claim 7, characterized in that: The specific steps of performing keyword matching based on the simplified address name to obtain a matching site include: Get keyword information database; Based on the keyword information base, the simplified address name is retrieved to obtain the keyword matched by the simplified address name.
9. The site matching method according to claim 8, characterized in that: The specific step of performing keyword matching based on the simplified address name to obtain a matching site also includes: If the simplified address name does not match the keyword, the matching site is not obtained.
10. The site matching method according to claim 9, characterized in that: The specific step of performing keyword matching based on the simplified address name to obtain a matching site also includes: If the simplified address name matches a keyword, it is determined whether the simplified address name matches multiple keywords and whether the sites corresponding to the multiple keywords are inconsistent.
11. The site matching method according to claim 10, characterized in that: The specific step of performing keyword matching based on the simplified address name to obtain a matching site also includes: If the simplified address name matches a keyword or the sites corresponding to the matched multiple keywords are consistent, the site corresponding to the keyword or the consistent sites corresponding to the multiple keywords are returned to obtain the matched site.
12. The site matching method according to claim 11, characterized in that: The specific step of performing keyword matching based on the simplified address name to obtain a matching site also includes: If the simplified address name matches multiple keywords and the sites corresponding to the multiple keywords are inconsistent, keyword logic processing is performed on the matched multiple keywords.
13. The site matching method according to claim 12, characterized in that: The specific step of performing keyword logic processing on the matched multiple keywords includes: Performing a forward or reverse search on the simplified address name; When a keyword matching the simplified address name is retrieved, the site corresponding to the keyword and the position of the keyword in the simplified address name are recorded as temporary matching site information.
14. The site matching method according to claim 13, characterized in that: The specific step of performing keyword logic processing on the matched multiple keywords also includes: Continue to perform forward or reverse search on the simplified address name; When a keyword matching the simplified address name is retrieved, a comparison is made to see whether the keyword and the previous keyword in the record are in a containment relationship or whether the position of the keyword in the simplified address name and the previous keyword in the record are in a front-and-back relationship.
15. The site matching method according to claim 14, characterized in that: The keyword information database includes at least one of the following information: keywords and sites corresponding to the keywords.
16. The site matching method according to claim 15, characterized in that: The first address includes four levels of addresses, and the first address information base includes four levels of address information base.
17. A site matching system, characterized in that: include: A data acquisition module, used to acquire a site matching request, wherein the site matching request includes an address name; a data processing module, configured to remove the valid first address at the head and the interference words at the tail of the address name to obtain a simplified address name, wherein if the parent address of the first address or the parent address of the parent of the first address is found by reverse traversal in the address name, the first address is a valid first address; and A site matching module is used to perform keyword matching based on the simplified address name to obtain a matching site, wherein when the simplified address name matches multiple keywords and the sites corresponding to the multiple keywords are inconsistent, if the current keyword matched by the retrieved simplified address name and the previous keyword recorded are in an inclusion relationship, then the temporary matching site information is updated to the site corresponding to the longer keyword and the position of the longer keyword in the simplified address name, If the position of the current keyword matching the simplified address name retrieved in the simplified address name and the position of the last keyword recorded in the simplified address name are in a front-and-back relationship, then the temporary matching site information is updated to the site corresponding to the later keyword and the position of the later keyword in the simplified address name, Traverse the multiple matched keywords and obtain the matching site according to the last recorded temporary matching site information.
18. The site matching system according to claim 17, further comprising: The keyword maintenance module is used to maintain the keyword information base according to the customer operation, wherein the keyword information base includes at least one of the following information: keywords and sites corresponding to keywords.
19. The site matching system according to claim 18, wherein the data acquisition module is further used to acquire the first address information database and the keyword information database.
20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed, the site matching method according to any one of claims 1 to 16 is implemented.
21. A site matching control device, characterized in that: include: Memory, for storing computer instructions; A processor is coupled to the memory, and the processor is configured to execute the site matching method according to any one of claims 1 to 16 based on computer instructions stored in the memory.
Citation Information
Patent Citations
Chinese address recognition system
CN109033225A
Pre-distribution method and system for logistics order distribution, electronic device and storage medium
CN110119918A