Method and system for address completion based on context information, electronic equipment and storage medium
By using context information to complete the address in the address completion method, the error problems caused by the missing and ambiguity of address information in the prior art are solved, and a higher accuracy and distinction ability of address completion are achieved.
Patent Information
- Application Number
- CN202411944576.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-05-06
AI Technical Summary
When the address information is seriously missing and there is ambiguity, the existing address completion method can easily lead to address errors and cannot effectively distinguish address information of the same place name but different place types.
By entering the address text to be completed and its context text, extracting address information and context address information, matching the pre-completion address information list and context address information list, determining the pre-completion address information based on the matching results, and completing the address.
It improves the accuracy of address completion when address information is missing, can effectively distinguish address information of the same place name but different place types, and reduces the occurrence of address errors.
Smart Images

Figure CN119938893A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of natural language processing, and in particular to a method and system for address completion based on context information, an electronic device, and a computer-readable storage medium. Background Art
[0002] Address completion technology is a method of intelligent address parsing and correction and completion. It can correct and complete key elements in the input address when they are missing or wrong, and standardize them. It provides an effective solution for complex address management problems in the modern information society and is widely used in finance, logistics, retail, urban management, e-commerce, life services and other fields. The existing address completion method is to split and identify the address information in the address text, split an address information into many possible location lists, and then traverse the leading characters of the adjacent locations, and then combine the possible location lists to obtain a more accurate location information split list, and then complete it according to the administrative division code.
[0003] However, the existing address completion methods rely heavily on the preceding adjacent locations for completion. When the address information is seriously missing and there is ambiguous address content, the existing address completion methods will have address errors. For example, for the text: "According to the Changchun Radio Station: Today at xx Road, Chaoyang District, a major festival celebration is being held", the address information to be completed in this text is "xx Road, Chaoyang District". If the address information is to be completed, the key is to complete and identify the district-level division of Chaoyang District. Chaoyang District may refer to Chaoyang District, Beijing, or Chaoyang District, Changchun City, Jilin Province. However, the existing address completion method may complete this address information as xx Road, Chaoyang District, Beijing, due to the missing address information before "Chaoyang District" and the address ambiguity of "Chaoyang District", which will cause a huge error with the information in the original text. Summary of the invention
[0004] The present invention provides a method and system for address completion based on context information, an electronic device, and a computer-readable storage medium, which can use context information to complete the address when the input address text lacks address information, and can also effectively distinguish address information with the same place name but different place types, greatly improving the accuracy of address completion when address information is missing.
[0005] According to one aspect of the present invention, a method for performing address completion based on context information is provided, comprising the following contents:
[0006] Enter the address text to be completed and its context text;
[0007] Extracting address information from the address text to be completed, and matching the address information of the missing preceding administrative division in the address information database to obtain a list of all possible preceding completion address information;
[0008] Extract all context address information lists from the context text;
[0009] The prefix completion address information list is matched with the context address information list, the prefix completion address information is determined according to the matching result, and the prefix completion address information is used to complete the address text to be completed.
[0010] Furthermore, the process of matching the prefix completion address information list with the context address information list and determining the prefix completion address information according to the matching result includes the following:
[0011] All the preceding completion address information in the preceding completion address information list and all the context address information in the context address information list are split into administrative division addresses at each level, and matched according to the administrative division addresses, and the preceding completion address information is determined according to the successfully matched administrative division addresses.
[0012] Furthermore, the priority of the provincial administrative division address is higher than that of the prefecture-level city administrative division address, and the priority of the prefecture-level city administrative division address is higher than that of the district / county administrative division address.
[0013] Furthermore, if there are at least two successfully matched leading completion address information, the leading completion address information that is before the address text to be completed and is closest is selected as the successfully matched object.
[0014] Furthermore, the process of extracting address information from the address text to be completed includes the following:
[0015] Each character in the address text to be completed is used as a node for segmentation, and the characters belonging to the place are extracted, and all the places and their place types are determined. If the place type of a certain place clearly appears in the address text, other place types corresponding to the place are eliminated.
[0016] Furthermore, the following contents are also included:
[0017] If the prefix completion address information list fails to match the context address information list, the popularity of all prefix completion address information is sorted, and the prefix completion address information with the greatest popularity is selected for address completion.
[0018] Furthermore, the following contents are also included:
[0019] If the address completion fails, the new address after the completion failure will be output and the staff will be reminded to conduct manual verification.
[0020] In addition, the present invention also provides a system for performing address completion based on context information, comprising:
[0021] A text input module, used to input the address text to be completed and its context text;
[0022] The leading completion address information extraction module is used to extract the address information from the address text to be completed, and obtain a list of all possible leading completion address information by matching the address information of the missing leading administrative divisions in the address information database;
[0023] A context address information extraction module is used to extract all context address information lists from the context text;
[0024] The address information matching and address completion module is used to match the prefix completion address information list with the context address information list, determine the prefix completion address information according to the matching result, and use the prefix completion address information to complete the address text to be completed.
[0025] In addition, the present invention also provides an electronic device, including a processor and a memory, wherein the memory stores a computer program, and the processor executes the steps of the above method by calling the computer program stored in the memory.
[0026] In addition, the present invention also provides a computer-readable storage medium for storing a computer program for performing address completion based on context information, wherein the computer program executes the steps of the above-mentioned method when running on a computer.
[0027] The present invention has the following beneficial effects:
[0028] The method for address completion based on context information of the present invention first inputs context text and address text to be completed, then extracts address information from the address text to be completed, matches all possible pre-completion address information lists in the address information database according to the address information of the missing pre-administrative division, extracts all context address information lists from the context text, finally matches the pre-completion address information list with the context address information list, determines the pre-completion address information according to the matching result, and uses the pre-completion address information to complete the address text to be completed. The method uses Chinese semantic habits and contextual connections as entry points, digs out the strong correlation characteristics between address information and text semantics adjacent to the context, can use context information to complete the address when the input address text lacks address information, and can also effectively distinguish address information of the same place name but different place types, greatly improving the accuracy of address completion when address information is missing.
[0029] In addition, the system for performing address completion based on context information of the present invention also has the above advantages.
[0030] In addition to the above-described purposes, features and advantages, the present invention has other purposes, features and advantages. The present invention will be further described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The drawings constituting a part of this application are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0032] Figure 1 It is a flowchart of a method for performing address completion based on context information according to a preferred embodiment of the present application;
[0033] Figure 2 is another flowchart of a method for performing address completion based on context information in a preferred embodiment of the present application;
[0034] Figure 3 It is another flowchart of the method for performing address completion based on context information according to the preferred embodiment of the present application;
[0035] Figure 4 It is a schematic diagram of the module structure of a system for performing address completion based on context information according to another embodiment of the present application. DETAILED DESCRIPTION
[0036] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0037] Reference Figure 1 As shown, a preferred embodiment of the present application provides a method for address completion based on context information, including the following contents:
[0038] Step S1: input the address text to be completed and its context text;
[0039] It can be understood that in step S1, the address text to be completed and its context text are input. The address text to be completed and its context text are obtained from the address text. For example, for the address text "According to the report of Changchun Radio Station: Today at xx Road, Chaoyang District, a major festival celebration is being held", the address text to be completed is "xx Road, Chaoyang District", and the context text of the address text to be completed is: the above text "According to the report of Changchun Radio Station" and the following text "A major festival celebration is being held". The purpose of the present invention is to complete the address of "xx Road, Chaoyang District" according to the context text.
[0040] Step S2: extracting address information from the address text to be completed, and matching the address information of the missing preceding administrative divisions in the address information database to obtain a list of all possible preceding completed address information;
[0041] It can be understood that in step S2, the process of extracting address information from the address text to be completed includes the following:
[0042] Each character in the address text to be completed is used as a node for segmentation, and the characters belonging to the place are extracted, and all the places and their place types are determined. If the place type of a certain place clearly appears in the address text, other place types corresponding to the place are eliminated.
[0043] Specifically, after obtaining the address text to be completed, the existing word segmentation algorithm is used to traverse and split each character in the address text as a node, and the split characters are matched with the location dictionary to extract the characters belonging to the location, and determine all the locations and their location types, wherein the location dictionary is a pre-set dictionary text including all locations and their location types, and the location type includes fields such as province, city, district, county, street, road, etc. used to indicate the administrative level of a specific location, wherein the specific traversal and splitting process belongs to the prior art, and can refer to patent CN113935293B, which will not be repeated here. For example, for the address text "No. xx, Renmin East Road, Chaoyang District", the locations that can be extracted include "Chaoyang", "Chaoyang District", "Renmin East Road" and "No. xx". Then, it is determined whether the address text has clarified the location type of the location. If the location type of a certain location has been clearly stated, other location types corresponding to the location are eliminated. For example, the place types corresponding to "Chaoyang" may be "Chaoyang City", "Chaoyang County", "Chaoyang District", etc., but "Chaoyang District" has clearly appeared in the address text, so other place types corresponding to the place "Chaoyang" are eliminated, that is, "Chaoyang City" and "Chaoyang County" are eliminated.
[0044] It can be understood that by splitting the characters one by one to perform location matching to determine the locations included in the address text, each character can be accurately matched, thereby improving the accuracy of location matching, and if the location type of a certain location clearly appears in the address text, other location types corresponding to the location are eliminated, thereby effectively screening out the correct location and eliminating the wrong location, thereby improving the accuracy and efficiency of subsequent matching based on context information.
[0045] In addition, in the step S2, in the Chinese word order, the common address information should be province-city-district / county level, so according to the address information of the missing preceding administrative division, all possible preceding completion address information lists are matched in the address information database. For example, for the address text "No. xx, Renmin East Road, Chaoyang District", the preceding administrative division of the address information "Chaoyang District" is missing, and there is address ambiguity in "Chaoyang District", which may be "Chaoyang District, Beijing" or "Chaoyang District, Changchun City, Jilin Province". Therefore, according to the place name "Chaoyang District", there are two values of the administrative division code that can be matched in the address information database. It is necessary to find the preceding administrative division according to these two administrative division codes to complete the place "Chaoyang District". Then, the preceding completion address information list that can be matched includes "Chaoyang District, Beijing" and "Chaoyang District, Changchun City, Jilin Province". Among them, the administrative division code of each place and the corresponding preceding administrative division address information are preset in the address information database.
[0046] Step S3: extracting a list of all context address information from the context text;
[0047] It can be understood that in step S3, a piece of context text may contain multiple address information. The present invention needs to extract all the context address information from the context text to form a context address information list. For example, the context text is "According to a report from the Changchun Radio Station in Jilin Province, a major incident occurred at No. xx, Renmin East Road, Chaoyang District within its jurisdiction", and the address text that needs to be completed is "No. xx, Renmin East Road, Chaoyang District", and the address information extracted from the context text includes "Jilin Province" and "Changchun City". In addition, when the address information extracted from the context text is repeated, the address information needs to be deduplicated. In addition, the execution order between step S3 and step S2 is not specifically limited here, and the two can be executed simultaneously or one after another.
[0048] Step S4: Match the prefix completion address information list with the context address information list, determine the prefix completion address information according to the matching result, and use the prefix completion address information to complete the address text to be completed.
[0049] It can be understood that in step S4, all possible pre-complement address information lists are matched with the context address information list. If only one pre-complement address information is successfully matched in the context address information list, it can be determined that the pre-complement address information is a successfully matched object, and the address text is completed according to the pre-complement address information. For example, the pre-complement address information list matched in step S2 includes "Chaoyang District, Beijing" and "Chaoyang District, Changchun City, Jilin Province", and the context address information list includes "Jilin Province" and "Changchun City". Obviously, "Chaoyang District, Changchun City, Jilin Province" is successfully matched, while "Chaoyang District, Beijing" is not successfully matched, and the completed address text is "No. xx, Renmin East Road, Chaoyang District, Changchun City, Jilin Province".
[0050] The process of matching the list of leading completion address information with the list of context address information and determining the leading completion address information according to the matching result includes the following:
[0051] All the preceding completion address information in the preceding completion address information list and all the context address information in the context address information list are split into administrative division addresses at each level, and matched according to the administrative division addresses, and the preceding completion address information is determined according to the successfully matched administrative division addresses.
[0052] Specifically, all the pre-completion address information and context address information are split into administrative division addresses of various levels, namely, province, city, district, county, etc., and then matched according to the administrative division addresses, and the pre-completion address information is determined according to the successfully matched administrative division addresses. For example, "Chaoyang District, Beijing" is split into "Beijing" and "Chaoyang District", and "Chaoyang District, Changchun City, Jilin Province" is split into "Jilin Province", "Changchun City" and "Chaoyang District", and then matched according to the administrative division addresses. If the administrative division addresses of various levels are matched successfully, it is determined that the pre-completion address information and the context address information are matched successfully.
[0053] It can be understood that by splitting all the front-end completion address information and all the context address information into administrative division addresses at each level, and then matching them according to the administrative division addresses, when the administrative division addresses at each level are matched successfully, it is determined that the front-end completion address information and the context address information are matched successfully, which can effectively distinguish and identify addresses with the same or similar place names, avoid confusion of address information due to mismatching, and further improve the accuracy of address completion.
[0054] Optionally, when matching based on administrative division addresses, the priority of provincial administrative division addresses is higher than that of prefectural-level city administrative division addresses, and the priority of prefectural-level city administrative division addresses is higher than that of district / county-level administrative division addresses. When the three-level administrative divisions of province-city-district / county are clear, the provincial administrative division address is matched first, then the municipal administrative division address is matched, and then the district / county-level administrative division address is matched. For example, by matching the provincial administrative division address first, it can be determined that the "Chaoyang District, Changchun City, Jilin Province" in the pre-completion address information list and the "Jilin Province" in the context address information list are successfully matched, and there is no need to match the municipal and district / county-level administrative division addresses. On the basis of ensuring the matching accuracy, it is beneficial to improve the matching efficiency. Of course, if the matching result cannot be determined based on the provincial administrative division address, it can be matched based on the municipal administrative division address.
[0055] In addition, if there are at least two matching prefix completion address information, the nearest prefix completion address information before the address text to be completed is selected as the matching object. For example, if the word Beijing appears before "According to the Changchun Radio Station in Jilin Province" in the context text, that is, the context address information list includes "Beijing" and "Changchun City, Jilin Province", then according to the Chinese semantic habits, the principle of proximity is adopted to improve the accuracy, that is, "Changchun City, Jilin Province" will be matched first.
[0056] It can be understood that, when there are at least two prefix completion address information matches successfully, the present invention uses the similarity principle to filter the matching objects according to Chinese semantic habits, which is beneficial to improving the accuracy of context information filtering.
[0057] It can be understood that the method of address completion based on context information in this embodiment first inputs the context text and the address text to be completed, then extracts the address information from the address text to be completed, and matches all possible pre-completion address information lists in the address information database according to the address information of the missing pre-administrative division, and extracts all context address information lists from the context text, and finally matches the pre-completion address information list with the context address information list, determines the pre-completion address information according to the matching result, and uses the pre-completion address information to complete the address text to be completed. This method uses Chinese semantic habits and contextual connections as the entry point, and mines the strong correlation characteristics between the address information and the text semantics adjacent to the context. When the input address text lacks address information, the context information can be used to complete the address, and the address information of the same place name but different place types can be effectively distinguished, which greatly improves the accuracy of address completion when the address information is missing.
[0058] like Figure 2As shown, the method for performing address completion based on context information also includes the following contents:
[0059] Step S5: If the list of pre-completing address information fails to match the list of context address information, the popularity of all pre-completing address information is sorted, and the pre-completing address information with the greatest popularity is selected for address completion.
[0060] Specifically, when the pre-completion address information list fails to match the context address information list, it means that there may be a situation where there is no contextual connection, for example, "According to official city reports, the people of Chaoyang District have revealed some problems that still exist", and the address information that needs to be completed is "Chaoyang District", but there is no other address connection in the context, so an empty object will be obtained when matching the address information list. At this time, the present invention adopts the maximum weight principle, for example, all pre-completion address information is sorted according to popularity, that is, the popularity of "Chaoyang District, Beijing" is greater than that of "Chaoyang District, Changchun City, Jilin Province", and then the pre-completion address information with the greatest popularity is selected for address completion, that is, "Chaoyang District, Beijing" is selected for address completion.
[0061] like Figure 3 As shown, the method for performing address completion based on context information also includes the following contents:
[0062] Step S6: If the address completion fails, the new address after the completion failure is output, and the staff is reminded to perform manual verification.
[0063] It is understandable that after the address information fails to be completed, the new address after the completion failure is output, and the staff is reminded to conduct manual verification. The manual verification not only includes the verification of these addresses, but also needs to evaluate whether they need further maintenance or updating. In addition, the staff also needs to analyze the reasons for the completion failure, such as irregular address format, missing key fields or errors in data sources, and then update and maintain the address information database in detail. For example, for completion failures caused by changes in place names, the place name database can be updated in a timely manner; if the maintenance of address information fails, through the analysis of the address information that failed to be completed, the staff can continuously expand and improve the address information database, add new address entries and geographic information, so as to improve the coverage and accuracy of the address information database, which can effectively reduce the failure of address completion in the future and improve the accuracy and reliability of address data processing.
[0064] like Figure 4 As shown, another embodiment of the present invention further provides a system for performing address completion based on context information, preferably using the method for performing address completion based on context information as described above, including:
[0065] A text input module, used to input the address text to be completed and its context text;
[0066] The leading completion address information extraction module is used to extract the address information from the address text to be completed, and obtain a list of all possible leading completion address information by matching the address information of the missing leading administrative divisions in the address information database;
[0067] A context address information extraction module is used to extract all context address information lists from the context text;
[0068] The address information matching and address completion module is used to match the prefix completion address information list with the context address information list, determine the prefix completion address information according to the matching result, and use the prefix completion address information to complete the address text to be completed.
[0069] It can be understood that the system for completing addresses based on context information of the present invention first inputs the context text and the address text to be completed, then extracts the address information from the address text to be completed, and matches all possible pre-completion address information lists in the address information database according to the address information of the missing pre-administrative division, and extracts all context address information lists from the context text, and finally matches the pre-completion address information list with the context address information list, determines the pre-completion address information according to the matching result, and uses the pre-completion address information to complete the address text to be completed. The system uses Chinese semantic habits and contextual connections as the entry point, digs out the strong correlation characteristics between the address information and the text semantics adjacent to the context, can use the context information to complete the address when the input address text lacks address information, and can also effectively distinguish address information of the same place name but different place types, greatly improving the accuracy of address completion when address information is missing.
[0070] In addition, the system for performing address completion based on context information further includes:
[0071] The default address completion module is used to sort the popularity of all the front-end completion address information when the front-end completion address information list fails to match the context address information list, and select the front-end completion address information with the greatest popularity for address completion.
[0072] In addition, the system for performing address completion based on context information further includes:
[0073] The manual verification reminder module is used to output the new address after the address completion fails, and remind the staff to perform manual verification.
[0074] It can be understood that the various modules of the system embodiment correspond to the various steps of the above method embodiment, so the specific working process and principle of each module will not be repeated here, and the corresponding reference is made to the various steps of the above method embodiment.
[0075] In addition, another embodiment of the present invention further provides an electronic device, including a processor and a memory, wherein the memory stores a computer program, and the processor executes the steps of the above method by calling the computer program stored in the memory.
[0076] In addition, another embodiment of the present invention further provides a computer-readable storage medium for storing a computer program for performing address completion based on context information, wherein the computer program executes the steps of the above-mentioned method when running on a computer.
[0077] Common computer-readable storage media include: floppy disks, flexible disks, hard disks, magnetic tapes, any other magnetic media, CD-ROMs, any other optical media, punch cards, paper tapes, any other physical media with patterns of holes, random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), flash-erasable programmable read-only memory (FLASH-EPROM), any other memory chip or cartridge, or any other medium that can be read by a computer. Instructions can further be transmitted or received by a transmission medium. The term transmission medium may include any tangible or intangible medium that can be used to store, encode or carry instructions for execution by a machine, and includes digital or analog communication signals or intangible media that facilitate communication of the above instructions. Transmission media include coaxial cables, copper wire, and optical fiber, including the wires of a bus used to transmit a computer data signal.
[0078] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The schemes in the embodiments of the present application may be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.
[0079] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0080] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0081] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0082] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0083] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
[0084] The above description is only a preferred embodiment of the present invention and is 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 method for address completion based on context information, characterized in that: Includes the following: Enter the address text to be completed and its context text; Extracting address information from the address text to be completed, and matching the address information of the missing preceding administrative division in the address information database to obtain a list of all possible preceding completion address information; Extract all context address information lists from the context text; The prefix completion address information list is matched with the context address information list, the prefix completion address information is determined according to the matching result, and the prefix completion address information is used to complete the address text to be completed.
2. The method for address completion based on context information according to claim 1, characterized in that: The process of matching the list of leading completion address information with the list of context address information and determining the leading completion address information according to the matching result includes the following: All the preceding completion address information in the preceding completion address information list and all the context address information in the context address information list are split into administrative division addresses at each level, and matched according to the administrative division addresses, and the preceding completion address information is determined according to the successfully matched administrative division addresses.
3. The method for address completion based on context information as claimed in claim 2, characterized in that: The priority of provincial-level administrative division addresses is higher than that of prefecture-level city administrative division addresses, and the priority of prefecture-level city administrative division addresses is higher than that of district / county-level administrative division addresses.
4. The method for address completion based on context information as claimed in claim 2, characterized in that: If there are at least two successfully matched leading completion address information, the leading completion address information that is before the address text to be completed and is closest is selected as the successfully matched object.
5. The method for address completion based on context information according to claim 1, characterized in that: The process of extracting address information from the address text to be completed includes the following: Each character in the address text to be completed is used as a node for segmentation, and the characters belonging to the place are extracted, and all the places and their place types are determined. If the place type of a certain place clearly appears in the address text, other place types corresponding to the place are eliminated.
6. The method for address completion based on context information according to claim 1, characterized in that: Also included are the following: If the prefix completion address information list fails to match the context address information list, the popularity of all prefix completion address information is sorted, and the prefix completion address information with the greatest popularity is selected for address completion.
7. The method for address completion based on context information according to claim 1, characterized in that: Also included are the following: If the address completion fails, the new address after the completion failure will be output and the staff will be reminded to conduct manual verification.
8. A system for address completion based on context information, characterized in that: include: A text input module, used to input the address text to be completed and its context text; The module for extracting the pre-complement address information is used to extract the address information from the address text to be completed, and to obtain a list of all possible pre-complement address information in the address information database according to the address information of the missing pre-complement administrative division; A context address information extraction module is used to extract all context address information lists from the context text; The address information matching and address completion module is used to match the prefix completion address information list with the context address information list, determine the prefix completion address information according to the matching result, and use the prefix completion address information to complete the address text to be completed.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a computer program, and the processor executes the steps of the method according to any one of claims 1 to 7 by calling the computer program stored in the memory.
10. A computer-readable storage medium for storing a computer program for performing address completion based on context information, characterized in that: When the computer program is run on a computer, the steps of the method according to any one of claims 1 to 7 are executed.