A method and device for address error correction
Through forward and reverse retrieval in the address undirected graph, the wrong address filled in or selected by the user is corrected, the problem of delivery failure is solved, and the accuracy of the address and the user experience are improved.
Patent Information
- Application Number
- CN201910925029.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-27
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2039-09-27
AI Technical Summary
The existing technology fails to effectively solve the problem of incorrect addresses filled in or selected by users, resulting in delivery failure and no verification of addresses.
By dividing the target address information into administrative area addresses and other address information, the pre-constructed address undirected graph is used for forward and reverse retrieval, and the target address information is corrected to ensure the correctness of the address.
It effectively avoids delivery failures caused by address errors, improves user experience and address accuracy, requires no user operation, and ensures corrected address accuracy through verification.
Smart Images

Figure CN110704564B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular to an address error correction method and device. Background Art
[0002] Currently, logistics delivery companies usually directly use the address filled in or selected by users when placing an order for logistics delivery. However, the delivery address filled in or selected by users when placing an order often contains incorrect information. When the delivery person delivers the package according to the above address, if he finds that the address is incorrect, he can only send the package back to the station for re-dispatch or let the user return the product directly.
[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art: the prior art does not provide effective address error correction, and does not verify the complete address filled in or selected by the user. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides an address error correction method and device, which divides the target address information, performs bidirectional retrieval in combination with an address undirected graph, and automatically corrects the target address information based on the reverse retrieval results to avoid delivery failures due to address errors.
[0005] To achieve the above objective, according to one aspect of an embodiment of the present invention, an address error correction method is provided.
[0006] An address error correction method according to an embodiment of the present invention includes: obtaining target address information, dividing the target address information into a first part and a second part; wherein the first part includes an administrative area address, and the second part is the address information of the target address information except the first part; performing a forward search in a pre-constructed address undirected graph to obtain an address entry that is the same as the lowest-level administrative area address in the first part as a reference address entry; wherein the address undirected graph is obtained by dividing a plurality of reference address information into multiple levels of address entries, and associating the address entries according to the levels; comparing the address entries belonging to the reference address entries in the address undirected graph with the second part respectively; and in the case where there is no address entry that is the same as the second part, performing a reverse search in the address undirected graph according to the second part to correct the target address information according to the reverse search result.
[0007] Optionally, after dividing the multiple reference address information into multiple levels of address terms, the address terms are associated according to the levels to obtain an address undirected graph, including: dividing the multiple reference address information according to the positions of the set feature words in the multiple reference address information to obtain corresponding multiple address terms; associating the address terms belonging to the same reference address information according to the levels to construct the address undirected graph; wherein a node of the address undirected graph represents an address term.
[0008] Optionally, correcting the target address information according to the reverse search result includes: arranging the reverse search result in reverse order to obtain complete address information, and replacing the target address information with the complete address information.
[0009] Optionally, dividing the target address information into the first part and the second part includes: segmenting the target address information according to the position of the feature word in the target address information; taking the segmentation result except the last part as the first part, and taking the last part as the second part.
[0010] Optionally, the method also includes: obtaining the multiple reference address information to construct an address information library; wherein the reference address information is identity card address information; verifying the complete address information based on the reference address information in the address information library; using the complete address information to replace the target address information includes: if the verification passes, using the complete address information to replace the target address information.
[0011] Optionally, the method further comprises: in case of verification failure, outputting verification failure information to prompt the user to modify the target address information.
[0012] Optionally, the characteristic words include any combination of province, city, district, county, town and street.
[0013] To achieve the above objective, according to another aspect of an embodiment of the present invention, an address error correction device is provided.
[0014] An address error correction device according to an embodiment of the present invention comprises: a division module, used to obtain target address information, and divide the target address information into a first part and a second part; wherein the first part includes an administrative area address, and the second part is the address information of the target address information except the first part; a retrieval module, used to perform a forward search in a pre-constructed address undirected graph, so as to obtain an address entry that is the same as the lowest-level administrative area address in the first part as a reference address entry; wherein the address undirected graph is obtained by dividing a plurality of reference address information into multiple levels of address entries, and associating the address entries according to the levels; a comparison module, used to compare the address entries belonging to the reference address entries in the address undirected graph with the second part respectively; and a correction module, used to perform a reverse search in the address undirected graph according to the second part when there is no address entry that is the same as the second part, so as to correct the target address information according to the reverse search result.
[0015] Optionally, the device also includes: a construction module, used to segment the multiple reference address information according to the positions of set feature words in the multiple reference address information to obtain corresponding multiple address entries; and to associate the address entries belonging to the same reference address information according to levels to construct the address undirected graph; wherein a node of the address undirected graph represents an address entry.
[0016] Optionally, the correction module is further used to: arrange the reverse search results in reverse order to obtain complete address information, and use the complete address information to replace the target address information.
[0017] Optionally, the segmentation module is further used to: segment the target address information according to the position of the feature word in the target address information; and use the segmentation result except the last part as the first part, and the last part as the second part.
[0018] Optionally, the device also includes: a verification module, used to obtain the multiple reference address information to construct an address information library; wherein the reference address information is the ID card address information; and based on the reference address information in the address information library, the complete address information is verified; the correction module is also used to: if the verification passes, use the complete address information to replace the target address information.
[0019] Optionally, the device further comprises: a prompt module, configured to output verification failure information in case of verification failure, so as to prompt the user to modify the target address information.
[0020] Optionally, the characteristic words include any combination of province, city, district, county, town and street.
[0021] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic device is provided.
[0022] An electronic device according to an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement an address error correction method according to an embodiment of the present invention.
[0023] To achieve the above objective, according to another aspect of the embodiments of the present invention, a computer readable medium is provided.
[0024] A computer-readable medium according to an embodiment of the present invention stores a computer program, and when the program is executed by a processor, an address error correction method according to an embodiment of the present invention is implemented.
[0025] An embodiment of the above invention has the following advantages or beneficial effects: after the target address information is divided, a bidirectional search is performed in combination with the address undirected graph, and the target address information is automatically corrected according to the reverse search results to avoid delivery failures caused by address errors; the reference address information is segmented according to feature words, and then an address undirected graph is constructed to facilitate subsequent bidirectional search; the target address information is corrected using the complete address information obtained by arranging the reverse search results in reverse order to ensure the correctness of the address without user operation, which helps to improve user experience; the target address information is segmented according to feature words to obtain the first part and the second part, and then a bidirectional search and address correction are performed in combination with the address undirected graph to ensure the accuracy of the corrected address; the provincial certificate address information is used as the reference address information to verify the complete address information, further ensuring the accuracy of the corrected address; feature words are selected based on the characteristics of the address information to facilitate subsequent address information segmentation.
[0026] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0028] Figure 1 is a schematic diagram of the main steps of the address error correction method according to the first embodiment of the present invention;
[0029] Figure 2 is a schematic diagram of the main flow of the address error correction method according to the second embodiment of the present invention;
[0030] Figure 3 is a schematic diagram of the structure of the address undirected graph in the second embodiment of the present invention;
[0031] Figure 4 1 is a schematic diagram of the main flow of the address error correction method according to Embodiment 3 of the present invention;
[0032] Figure 5 is a schematic diagram of main modules of an address error correction device according to an embodiment of the present invention;
[0033] Figure 6 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0034] Figure 7 It is a schematic diagram of the structure of a computer device suitable for implementing the electronic device of the embodiment of the present invention. DETAILED DESCRIPTION
[0035] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0036] Figure 1 FIG. 1 is a schematic diagram of the main steps of the address error correction method according to the first embodiment of the present invention. Figure 1 As shown, the address error correction method of the first embodiment of the present invention mainly includes the following steps:
[0037] Step S101: Obtain target address information, and divide the target address information into a first part and a second part; wherein the first part includes the administrative region address, and the second part is the address information of the target address information except the first part. Obtain target address information generated by user input or selection, and segment the target address information according to the position of the set feature words in the target address information, and use the address information except the last part in the segmentation result as the first part, and the address information of the last part as the second part. The feature words are selected based on the characteristics of the address information, such as any combination of provinces, cities, districts, counties, towns, and streets.
[0038] Step S102: forward search is performed in a pre-constructed undirected address graph to obtain an address entry that is the same as the lowest level administrative region address in the first part as a reference address entry; wherein the undirected address graph is obtained by dividing multiple reference address information into multiple levels of address entries and associating the address entries according to the levels. The reference address information is correct address information, and an undirected address graph is constructed in advance based on multiple reference address information, and each node of the undirected address graph represents an address entry. The address entry that is the same as the lowest level administrative region address in the first part is obtained in the undirected address graph, and the address entry is used as the reference address entry.
[0039] Step S103: The address entries belonging to the reference address entry in the undirected address graph are compared with the second part respectively. The address entry belonging to the reference address entry is searched in the undirected address graph, that is, all the child nodes belonging to the reference address entry are searched, and each child node is compared with the second part of the target address information respectively. If there is a child node that is the same as the second part, it is considered that the first part and the second part of the target address information match and no correction is required; if there is no child node that is the same as the second part, it is considered that the first part and the second part of the target address information do not match and need to be corrected.
[0040] Step S104: In the case that there is no address entry that is identical to the second part, reverse search is performed in the address undirected graph according to the second part, so as to correct the target address information according to the reverse search result. In the address undirected graph, a child node identical to the second part of the target address information is searched, and reverse search is performed from the child node to the root node, and the reverse search results are arranged in reverse order to obtain the complete address information, and the target address information is replaced with the complete address information, so that the address error correction is completed.
[0041] Figure 2 FIG. 1 is a schematic diagram of the main flow of the address error correction method according to Embodiment 2 of the present invention. Figure 2 As shown, the address error correction method of the second embodiment of the present invention mainly includes the following steps:
[0042] Step S201: Acquire multiple reference address information to construct an address information library. The reference address information is correct address information. The verified address information can be used as the reference address information, and the ID card address information can also be used as the reference address information. Taking the reference address information as the ID card address information as an example, the ID card can be recognized using OCR (Optical Character Recongnition) recognition technology to obtain the reference address information, and the reference address information is stored in the address information library.
[0043] Step S202: After dividing the multiple reference address information of the address information database into multiple levels of address terms, the address terms are associated according to the levels to construct an address undirected graph. According to the position of the set feature words in each reference address information, each reference address information is divided to obtain the corresponding multiple address terms; then the address terms belonging to the same reference address information are associated according to the levels to obtain an address undirected graph. Among them, the feature words are selected based on the characteristics of the address information, such as any combination of provinces, cities, districts, counties, towns, and streets.
[0044] In the embodiment, the provinces and cities in the reference address information are divided into first-level address entries X0, the regions are divided into second-level address entries X1, the streets are divided into third-level address entries X2, and the communities and specific house numbers are divided into fourth-level address entries X3.
[0045] An undirected graph is composed of several vertices and edges connected to each other, each edge is connected by only two vertices and has no direction. The address undirected graph in the present invention includes a root node and multiple child nodes, and each node directly establishes an association relationship through a predecessor (i.e., a parent node) and a successor (i.e., a child node), so as to obtain an address undirected graph, and a bidirectional linked list is used to store the address undirected graph. If a node has multiple child nodes, an array is pointed to by a pointer, and the array points to the head node of the child node linked list.
[0046] Figure 3 Schematic diagram of the structure of the address undirected graph in the second embodiment of the present invention. Figure 3 As shown, the root node is Beijing, which includes multiple child nodes (such as Chaoyang District and Changping District). Each child node also includes multiple child nodes. The parent and child nodes are connected to form an undirected address graph.
[0047] Step S203: Obtain the target address information, and divide the target address information into a first part and a second part. The first part includes the administrative area address, and the second part is the address information of the target address information except the first part. Obtain the target address information input or generated by the user, and segment the target address information according to the position of the feature words in the target address information; take the address information except the last part in the segmentation result as the first part, and take the address information of the last part as the second part. The feature words here include the feature words of the lowest level in step S202.
[0048] In the embodiment, the target address information is segmented according to the characteristic words set in step S202 at the target address information position. That is, the province and city in the target address information are divided into the first-level target entry S0, the region is divided into the second-level target entry S1, the street is divided into the third-level target entry S2, and the community and specific house number input by the user are divided into the fourth-level target entry S3. The first part is the first-level target entry S0, the second-level target entry S1 and the third-level target entry S2, and the second part is the fourth-level target entry S3.
[0049] Taking the target address information of "Room 401, Building 1, Anhui Beili Community, Asian Games Village Street, Chaoyang District, Beijing" as an example, "Beijing City" is the first-level target entry S0, "Chaoyang District" is the second-level target entry S1, "Asian Games Village Street" is the third-level target entry S2, and "Room 401, Building 1, Anhui Beili Community" is the fourth-level target entry S3.
[0050] Step S204: forward search is performed in the address undirected graph to obtain the address entry that is the same as the lowest level administrative area address in the first part as the base address entry. Assuming that the lowest level administrative area address in the first part is "Asian Games Village Street", forward search is performed from the root node in the address undirected graph to obtain the child node that is the same as the street name, and the child node is used as the base address entry. In this step, forward search is used for matching.
[0051] Step S205: Compare the address entries belonging to the reference address entries in the address undirected graph with the second part respectively. If there is no address entry that is the same as the second part, execute step S206; if there is an address entry that is the same as the second part, no processing is done. For example, all child nodes under the "Asian Games Village Street" node are compared with the second part (i.e., the fourth-level target entry) respectively. If the comparison is the same, it is considered that the first part and the second part of the target address information match, and no error correction is required. If there is no child node that is the same as the second part, it means that the first part and the second part of the target address information do not match, and error correction is required.
[0052] Step S206: Perform a reverse search in the address undirected graph according to the second part, arrange the reverse search results in reverse order to obtain complete address information, and use the complete address information to replace the target address information. In the embodiment, the second part is string matched with the lowest level address term in the address undirected graph. If the match is successful, a reverse search is performed in the address undirected graph starting from the lowest level address term, and the reverse search results are arranged in reverse order to obtain complete address information, and then the target address information is replaced with the complete address information, thereby completing the address error correction.
[0053] In this step, the second part of the target address information can be assumed to be correct, and the front part of the address information can be automatically completed through reverse search. In the embodiment, the reverse search result is: Anhui Beili Community - Asian Games Village Street - Chaoyang District - Beijing City, and the complete address information sorted in reverse order is: Anhui Beili Community, Asian Games Village Street, Chaoyang District, Beijing City.
[0054] The automatic error correction process in the second embodiment is based on the reference address information in the address information database. Since the address information database cannot cover all address information, it cannot be 100% error-tolerant, so the user can be prompted to re-enter the address information. See the third embodiment for specific implementation.
[0055] Figure 4 FIG. 1 is a schematic diagram of the main flow of the address error correction method according to Embodiment 3 of the present invention. Figure 4 As shown, the address error correction method of the third embodiment of the present invention mainly includes the following steps:
[0056] Step S401: Acquire multiple ID card address information to build an address information database. Use OCR recognition technology to identify the ID card of the real-name authentication user to obtain the ID card address information, and store the ID card address information in the address information database, which can be placed in the server, and the terminal device performs cloud verification by calling the interface.
[0057] Step S402: After dividing multiple ID card address information of the address information database into multiple levels of address terms according to the set multiple characteristic words, the address terms are associated according to the levels to construct an address undirected graph. The implementation principle of this step is the same as that of step S202. In this embodiment, the characteristic words are province, city, district, county, town, and street.
[0058] Step S403: Obtain the target address information input or selected by the user, and divide the target address information into a first part and a second part according to a plurality of feature words. The target address information is the address information to be corrected, the first part includes all administrative area addresses, and the second part is the address information of the target address information except the first part. Use the same feature words as step S402 to divide the target address information to obtain the first part and the second part.
[0059] In actual applications, the target address information, i.e., the delivery address information, is formed by combining the address information selected by the user through the drop-down box and the address information entered by the user. The address information selected by the user is the address corresponding to the national administrative region, such as the province, city, district, etc., for example: Asian Games Village Street, Chaoyang District, Beijing; the address information entered by the user, such as: Building 4, Anhui North Li Community, the combined target address information is "Building 4, Anhui North Li Community, Asian Games Village Street, Chaoyang District, Beijing".
[0060] Since the user may not be sure of the specific street or district of the delivery location, the user is not sure whether the delivery address information selected or entered is wrong. Therefore, when dividing, the address information selected by the user can be divided into the first part, and the address information entered by the user can be divided into the second part. According to the subsequent processing process, the two parts of the target address information are checked to see whether they match, so as to perform address error correction.
[0061] Step S404: forward search is performed in the address undirected graph to obtain the address entry that is the same as the lowest level administrative area address in the first part as the reference address entry. The implementation principle of this step is the same as step S204, that is, the address entry that is the same as the Asian Games Village street is obtained from the address undirected graph as the reference address entry.
[0062] Step S405: compare the address entries belonging to the reference address entry in the undirected address graph with the second part respectively. If there is no address entry that is the same as the second part, execute step S406; if there is an address entry that is the same as the second part, do not process it. The implementation principle of this step is the same as step S405, that is, compare all the address entries belonging to the node of Asian Games Village Street in the undirected address graph with "Building 4, Anhui Beili Community" respectively.
[0063] Step S406: Perform a reverse search in the address undirected graph based on the second part, and arrange the reverse search results in reverse order to obtain the complete address information. Perform a string match between the second part and the lowest level address term in the address undirected graph. If the match is successful, perform a reverse search in the address undirected graph starting from the lowest level address term, and arrange the reverse search results in reverse order to obtain the complete address information. If the match fails, step S409 can be executed.
[0064] Step S407: Verify the complete address information. If the verification is successful, execute step S408; if the verification is not successful, execute step S409. Match the complete address information with the ID card address information in the address information database. If the match is successful, the verification is successful; if the match fails, the verification fails.
[0065] Step S408: Replace the target address information with the complete address information, and end the process. Thus, automatic error correction is achieved for the case where the community, house number, etc. input by the user are correct, but the province, city, district, street, etc. selected are wrong.
[0066] Step S409: Output verification failure information to prompt the user that the address detection fails and please modify the target address information. Since the ID card address information in the address information database cannot cover all address information, it cannot be 100% fault-tolerant, so the user can be prompted to re-enter the address information.
[0067] In a preferred embodiment, the second part can be further divided, for example, into a community and a specific house number. Accordingly, the address entries divided in the ID card address information in step S402 also correspond to the community and the specific house number. In step S405, the address entry belonging to the reference address entry can be compared with the highest level target entry in the second part first, and if the comparison is the same, the subsequent levels of comparison are performed in sequence to improve the comparison efficiency.
[0068] It can be seen from the address error correction method of the embodiment of the present invention that after the target address information is divided, a two-way search is performed in combination with the address undirected graph, and the target address information is automatically corrected according to the reverse search result to avoid delivery failures caused by address errors; the reference address information is segmented according to feature words, and then an address undirected graph is constructed to facilitate subsequent two-way search; the complete address information obtained by arranging the reverse search results in reverse order is used to correct the target address information to ensure the correctness of the address without user operation, which helps to improve user experience; the target address information is segmented according to feature words to obtain the first part and the second part, and then a two-way search and address correction are performed in combination with the address undirected graph to ensure the accuracy of the corrected address; the provincial certificate address information is used as the reference address information to verify the complete address information to further ensure the accuracy of the corrected address; feature words are selected based on the characteristics of the address information to facilitate subsequent address information segmentation.
[0069] Figure 5 Schematic diagram of the main modules of the address error correction device according to an embodiment of the present invention. Figure 5 As shown, the address error correction device 500 of the embodiment of the present invention mainly includes:
[0070] The division module 501 is used to obtain the target address information and divide the target address information into a first part and a second part; wherein the first part includes the administrative area address, and the second part is the address information of the target address information except the first part. The target address information generated by the user input or selection is obtained, and the target address information is divided according to the position of the set feature words in the target address information, and the address information except the last part in the segmentation result is taken as the first part, and the address information of the last part is taken as the second part. The feature words are selected based on the characteristics of the address information, such as any combination of provinces, cities, districts, counties, towns, and streets.
[0071] The retrieval module 502 is used to perform a forward search in a pre-constructed address undirected graph to obtain an address entry that is the same as the lowest level administrative region address in the first part as a reference address entry; wherein the address undirected graph is obtained by dividing multiple reference address information into multiple levels of address entries and associating the address entries according to the levels. The reference address information is correct address information, and an address undirected graph is constructed in advance based on multiple reference address information, and each node of the address undirected graph represents an address entry. The address entry that is the same as the lowest level administrative region address in the first part is obtained in the address undirected graph, and the address entry is used as the reference address entry.
[0072] The comparison module 503 is used to compare the address entries belonging to the reference address entry in the undirected address graph with the second part respectively. The address entry belonging to the reference address entry is searched in the undirected address graph, that is, all the child nodes belonging to the reference address entry are searched, and each child node is compared with the second part of the target address information respectively. If there is a child node that is the same as the second part, it is considered that the first part and the second part of the target address information match and no correction is required; if there is no child node that is the same as the second part, it is considered that the first part and the second part of the target address information do not match and need to be corrected.
[0073] The correction module 504 is used to perform a reverse search in the undirected address graph according to the second part when there is no address entry that is the same as the second part, so as to correct the target address information according to the reverse search result. The child node that is the same as the second part of the target address information is searched in the undirected address graph, and a reverse search is performed from the child node to the root node, and the reverse search results are arranged in reverse order to obtain the complete address information, and the target address information is replaced with the complete address information, so as to complete the address error correction.
[0074] In addition, the address error correction device 500 of the embodiment of the present invention may also include: a construction module, a verification module, and a prompt module ( Figure 5 The construction module is used to segment the multiple reference address information according to the positions of the set feature words in the multiple reference address information to obtain the corresponding multiple address terms; and to associate the address terms belonging to the same reference address information according to the level to construct an address undirected graph; wherein one node of the address undirected graph represents one address term.
[0075] The verification module is used to obtain multiple reference address information to build an address information library; the reference address information is the ID card address information; and the complete address information is verified according to the reference address information in the address information library. The prompt module is used to output a verification failure message in the case of a verification failure, so as to prompt the user to modify the target address information.
[0076] From the above description, it can be seen that after the target address information is divided, a two-way search is performed in combination with the address undirected graph, and the target address information is automatically corrected according to the reverse search results to avoid delivery failures caused by address errors; the reference address information is segmented according to feature words, and then an address undirected graph is constructed to facilitate subsequent two-way search; the complete address information obtained by arranging the reverse search results in reverse order is used to correct the target address information to ensure the correctness of the address without user operation, which helps to improve user experience; the target address information is segmented according to feature words to obtain the first part and the second part, and then a two-way search and address correction are performed in combination with the address undirected graph to ensure the accuracy of the corrected address; the provincial certificate address information is used as the reference address information to verify the complete address information, further ensuring the accuracy of the corrected address; feature words are selected based on the characteristics of the address information to facilitate subsequent address information segmentation.
[0077] Figure 6 An exemplary system architecture 600 to which the address error correction method or the address error correction device according to the embodiment of the present invention can be applied is shown.
[0078] like Figure 6 As shown, system architecture 600 may include terminal devices 601, 602, 603, network 604 and server 605. Network 604 is used to provide a medium for communication links between terminal devices 601, 602, 603 and server 605. Network 604 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0079] The user can use the terminal devices 601, 602, 603 to interact with the server 605 through the network 604 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 601, 602, 603, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0080] The terminal devices 601 , 602 , and 603 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.
[0081] The server 605 may be a server that provides various services, such as a background management server that supports the administrator to process target address information and reference address information using the terminal devices 601, 602, and 603. The background management server may divide the received target address information, perform bidirectional retrieval in the map undirected graph, and feed back the processing result (such as complete address information) to the terminal device.
[0082] It should be noted that the address correction method provided in the embodiment of the present application is generally executed by the server 605 , and accordingly, the address correction device is generally arranged in the server 605 .
[0083] It should be understood that Figure 6 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0084] According to an embodiment of the present invention, the present invention also provides an electronic device and a computer-readable medium.
[0085] The electronic device of the present invention comprises: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement an address error correction method of an embodiment of the present invention.
[0086] The computer-readable medium of the present invention stores a computer program, and when the program is executed by a processor, an address error correction method of an embodiment of the present invention is implemented.
[0087] Reference below Figure 7 , which shows a schematic diagram of the structure of a computer system 700 suitable for implementing an electronic device of an embodiment of the present invention. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0088] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the computer system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0089] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.
[0090] In particular, according to the embodiments disclosed in the present invention, the process described in the main step diagram above can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the main step diagram. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the system of the present invention are executed.
[0091] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0092] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0093] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes a partitioning module, a retrieval module, a comparison module and a correction module. The names of these modules do not constitute a limitation on the modules themselves in some cases, for example, the partitioning module may also be described as "a module for obtaining target address information and partitioning the target address information into a first part and a second part".
[0094] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: obtaining target address information, dividing the target address information into a first part and a second part; wherein the first part includes an administrative area address, and the second part is the address information of the target address information except the first part; performing a forward search in a pre-constructed address undirected graph to obtain an address entry that is the same as the lowest level administrative area address in the first part as a reference address entry; wherein the address undirected graph is obtained by dividing multiple reference address information into multiple levels of address entries, and associating the address entries according to the levels; comparing the address entries belonging to the reference address entry in the address undirected graph with the second part respectively; in the case where there is no address entry that is the same as the second part, performing a reverse search in the address undirected graph according to the second part, so as to correct the target address information according to the reverse search result.
[0095] From the above description, it can be seen that after the target address information is divided, a bidirectional search is performed in combination with the address undirected graph, and the target address information is automatically corrected according to the reverse search results to avoid delivery failures due to address errors.
[0096] The above product can execute the method provided by the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the method provided by the embodiment of the present invention.
[0097] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. An address error correction method, characterized in that: include: Acquire target address information, and divide the target address information into a first part and a second part; wherein the first part includes an administrative area address, and the second part is address information of the target address information except the first part; Perform a forward search in a pre-constructed undirected address graph to obtain an address entry that is the same as the lowest-level administrative area address in the first part as a reference address entry; wherein the undirected address graph is obtained by dividing multiple reference address information into multiple levels of address entries and associating the address entries according to the levels; Comparing the address entries in the undirected address graph that belong to the reference address entry with the second part respectively; In the case that there is no address entry identical to the second part, a reverse search is performed in the address undirected graph according to the second part, so as to correct the target address information according to the reverse search result.
2. The method according to claim 1, characterized in that After dividing the multiple reference address information into multiple levels of address terms, the address terms are associated according to the levels to obtain an address undirected graph, including: According to the positions of the set feature words in the plurality of reference address information, the plurality of reference address information are respectively segmented to obtain a plurality of corresponding address entries; The address terms belonging to the same reference address information are associated according to the level to construct the address undirected graph; wherein one node of the address undirected graph represents one address term.
3. The method according to claim 1, characterized in that The correcting the target address information according to the reverse search result includes: The reverse search results are arranged in reverse order to obtain complete address information, and the target address information is replaced with the complete address information.
4. The method according to claim 2, characterized in that: The dividing the target address information into a first part and a second part comprises: Segmenting the target address information according to the position of the feature word in the target address information; The segmentation result except the last part is taken as the first part, and the last part is taken as the second part.
5. The method according to claim 3, characterized in that: The method further comprises: Acquire the plurality of reference address information to construct an address information database; wherein the reference address information is identity card address information; Verifying the complete address information according to the reference address information in the address information database; The using the complete address information to replace the target address information comprises: If the verification is successful, the target address information is replaced with the complete address information.
6. The method according to claim 5, characterized in that The method further comprises: In the case of verification failure, verification failure information is output to prompt the user to modify the target address information.
7. The method according to claim 2 or 4, characterized in that: The characteristic words include any combination of provinces, cities, districts, counties, towns, and streets.
8. An address error correction device, characterized in that: include: A division module, used for obtaining target address information, and dividing the target address information into a first part and a second part; wherein the first part includes an administrative area address, and the second part is address information of the target address information except the first part; A search module, used for performing a forward search in a pre-constructed undirected address graph to obtain an address entry that is the same as the lowest-level administrative area address in the first part as a reference address entry; wherein the undirected address graph is obtained by dividing a plurality of reference address information into multiple levels of address entries and associating the address entries according to the levels; A comparison module, used for comparing the address entries belonging to the reference address entry in the address undirected graph with the second part respectively; The correction module is used to perform a reverse search in the address undirected graph according to the second part when there is no address entry that is the same as the second part, so as to correct the target address information according to the reverse search result.
9. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
