Unit area recognition method, device and computer equipment based on address text

By performing address segmentation and index data query on the problem address text in logistics, a second address data set is generated, which solves the problem of low unit area identification efficiency in logistics, achieves fast and accurate unit area matching, and improves logistics operation efficiency.

CN112052672BActive Publication Date: 2024-09-13丰图科技(深圳)有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010888561.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-28
Publication Date
2024-09-13
Estimated Expiration
2040-08-28

AI Technical Summary

Technical Problem

In the logistics industry, problematic address text prevents packages from being correctly matched to the corresponding unit area. Existing methods rely on manual traversal of multiple business systems, which is complex and inefficient.

Method used

By obtaining the target address text, perform address segmentation, query the matching first address data in the preconfigured address index data set according to each entry, conduct comprehensive processing, generate a second address data set, and send it to the terminal. Indicates the selection of matching cell regions.

Benefits of technology

It improves the efficiency of unit area identification, reduces the complexity and time-consuming manual operation, and achieves fast and accurate unit area matching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112052672B
    Figure CN112052672B
Patent Text Reader

Abstract

The present application relates to a method, device and computer equipment for unit area recognition based on address text. The method comprises: obtaining target address text; performing address segmentation on the target address text to obtain entries belonging to each address level; searching for matching first address data in a preconfigured address index data set according to each entry to obtain a first address data set corresponding to each entry; performing comprehensive processing on the first address data set corresponding to each entry to obtain a second address data set; the second address data set includes at least one second address data; the second address data set is sent to a terminal; the sent second address data set is used to instruct the terminal to select target address data matching the target address text from the second address data, and extract the unit area corresponding to the target address text from the target address data. The use of this method can improve the recognition efficiency of unit areas.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of logistics technology, and in particular to a method, device and computer equipment for identifying unit areas based on address text. Background Art

[0002] In the process of receiving and delivering parcels in the logistics industry, it is necessary to accurately allocate the parcel to the unit area corresponding to the waybill address according to the waybill address filled in by the customer. The unit area refers to the service area or service range of the delivery personnel during the receiving and delivering process. The outlet area corresponds to the service area or service range of an outlet. The service range can also be understood as the receiving and delivering range or the distribution range. The unit area corresponds to an individual, and the outlet area corresponds to an organization. Each outlet area includes multiple unit areas, that is, one outlet corresponds to multiple unit areas. If there are certain problems with the waybill address (such as missing address, fuzzy address, etc.), the parcel will not be correctly matched to the corresponding unit area. This problematic waybill address can be understood as a problem address, and the corresponding address text can be understood as a problem address text. Therefore, how to identify the corresponding unit area for the problem address text is a problem worthy of attention.

[0003] Currently, the corresponding unit area is usually obtained by manually traversing multiple business systems based on the problem address text. However, this method has high operation complexity, requires a lot of traversal time, and has the problem of low efficiency in unit area recognition. Summary of the invention

[0004] Based on this, it is necessary to provide a method, device and computer equipment for unit area recognition based on address text that can improve the efficiency of unit area recognition in order to solve the above technical problems.

[0005] A method for identifying a unit area based on address text, the method comprising:

[0006] Get the target address text;

[0007] Performing address segmentation on the target address text to obtain entries belonging to each address level;

[0008] According to each entry, searching for matching first address data in a preconfigured address index data set to obtain a first address data set corresponding to each entry;

[0009] Comprehensively processing the first address data sets corresponding to each entry to obtain a second address data set; the second address data set includes at least one second address data;

[0010] The second address data set is sent to the terminal; the sent second address data set is used to instruct the terminal to select target address data matching the target address text from the second address data, and extract the unit area corresponding to the target address text from the target address data.

[0011] In one embodiment, searching for matching first address data in a preconfigured address index data set according to each entry to obtain the first address data set corresponding to each entry includes:

[0012] Determine the administrative region identifier corresponding to the target address text;

[0013] Filtering an address index data subset matching the administrative region identifier from a preconfigured address index data set;

[0014] The first address data matching each term is searched in the address index data subset to obtain the first address data set corresponding to each term.

[0015] In one embodiment, the step of comprehensively processing the first address data sets corresponding to each entry to obtain the second address data set includes:

[0016] Clustering the terms in the target address text according to the address level to obtain a first-category term set, a second-category term set, and a third-category term set;

[0017] Determine a first address data set corresponding to each entry in the first category of entry set as a first basic data set;

[0018] Taking a union of the first address data sets corresponding to each entry in the second category of entry set to obtain a second basic data set;

[0019] Taking the intersection of the first basic data set and the second basic data set to obtain a target basic data set;

[0020] The target basic data set is sequentially intersected with the first address data set corresponding to each entry in the third category entry set to obtain a second address data set.

[0021] In one embodiment, sending the second address data set to a terminal includes:

[0022] Calculate the similarity between the target address text and each piece of second address data in the second address data set to obtain corresponding text similarity;

[0023] sorting the second address data in the second address data set according to the text similarity to obtain a sorted second address data set;

[0024] The sorted second address data set is sent to the terminal.

[0025] In one embodiment, obtaining the target address text includes:

[0026] Get the initial address text;

[0027] The initial address text is normalized to obtain the target address text of the unit area to be identified.

[0028] In one embodiment, the step of performing address segmentation on the target address text to obtain entries belonging to each address level includes:

[0029] Generating a word vector corresponding to each word of the target address text word by word;

[0030] Obtaining a target word vector sequence corresponding to the target address text according to the word vector;

[0031] Input the target word vector sequence into the trained address text segmentation model to obtain a corresponding target label sequence;

[0032] The entries belonging to each address level are obtained according to the target tag sequence.

[0033] In one embodiment, the step of configuring the address index data set includes:

[0034] Acquire a standard address data set; the standard address data set includes a plurality of standard address data, each of which includes a standard address text and a unit area corresponding to the standard address text;

[0035] Compiling each piece of standard address data to obtain corresponding address index data;

[0036] A corresponding address index data set is obtained according to the address index data corresponding to each of the standard address data.

[0037] A unit area recognition device based on address text, the device comprising:

[0038] The acquisition module is used to obtain the target address text;

[0039] A word segmentation module, used for performing address word segmentation on the target address text to obtain entries belonging to each address level;

[0040] A query module, configured to query the matching first address data in the preconfigured address index data set according to each entry, and obtain the first address data set corresponding to each entry;

[0041] An identification module, used for comprehensively processing the first address data set corresponding to each entry to obtain a second address data set; the second address data set includes at least one second address data;

[0042] A sending module is used to send the second address data set to the terminal; the sent second address data set is used to instruct the terminal to select target address data matching the target address text from the second address data, and to extract a unit area corresponding to the target address text from the target address data.

[0043] A computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0044] A computer-readable storage medium stores a computer program, which implements the steps in the above-mentioned method embodiments when executed by a processor.

[0045] The above-mentioned unit area recognition method, device, computer equipment and storage medium based on address text perform address segmentation on the target address text of the unit area to be recognized, obtain the entries belonging to each address level in the target address text, query the matching first address data in the preconfigured address index data set according to each entry, obtain the first address data set corresponding to each entry, and perform comprehensive processing on the first address data set corresponding to each entry to obtain a second address data set including at least one second address data, and send the second address data set to the terminal to instruct the terminal to select the target address data matching the target address text from the received second address data, and extract the unit area corresponding to the target address text from the target address data. In this way, based on the entries belonging to each address level in the target address text, the corresponding first address data set is queried respectively, the second address data set is further determined based on each first address data set, and the second address data set is sent to the terminal, so that the user can quickly select the unit area corresponding to the target address text from the second address data set through the terminal, thereby improving the recognition efficiency of the unit area corresponding to the target address text. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 FIG. 1 is an application environment diagram of a unit area recognition method based on address text in one embodiment;

[0047] Figure 2 is a flow chart of a method for identifying a unit region based on address text in one embodiment;

[0048] Figure 3 is a flow chart of a method for identifying a unit region based on address text in another embodiment;

[0049] Figure 4 A schematic diagram of the principle of a unit area recognition method based on address text in one embodiment;

[0050] Figure 5 is a structural block diagram of a unit area recognition device based on address text in one embodiment;

[0051] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0053] The unit area recognition method based on address text provided in this application can be applied to Figure 1 In the application environment shown. The terminal 102 communicates with the server 104 through the network. The server 104 obtains the target address text, performs address segmentation on the target address text, obtains the entries belonging to each address level in the target address text, searches for the matching first address data in the preconfigured address index data set according to each entry, obtains the corresponding first address data set, performs comprehensive processing on the first address data set corresponding to each entry to obtain a second address data set including at least one second address data, and sends the second address data set to the terminal 102. The terminal 102 selects the target address data that matches the target address text from the received second address data, and extracts the unit area corresponding to the target address text from the target address data. The terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers and portable wearable devices, and the server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.

[0054] In one embodiment, Figure 2 As shown in FIG. 1 , a unit region recognition method based on address text is provided, and the method is applied to Figure 1 The server in the example is used to illustrate the following steps:

[0055] Step 202, obtaining the target address text.

[0056] The target address text refers to the address text of the unit area to be identified, and specifically refers to the address text with preset problems, that is, the problem address text, and the preset problems include but are not limited to missing addresses and fuzzy addresses. The problem address text specifically refers to the address text of the corresponding unit area that cannot be quickly identified by the existing unit area identification method.

[0057] Specifically, the server receives the unit area identification request sent by the terminal, and parses the received unit area identification request to obtain the target address text of the unit area to be identified.

[0058] In one embodiment, the unit area refers to the service area or service range of the courier during the collection and delivery process, and the outlet area corresponds to the service area or service range of an outlet. The service range can also be understood as the collection and delivery range or the distribution range. The unit area corresponds to an individual, and the outlet area corresponds to an organization. Each outlet area includes multiple unit areas, that is, one outlet corresponds to multiple unit areas.

[0059] In one embodiment, when the unit area identification condition is met, the server obtains the target address text of the unit area to be identified from the pre-configured collection and delivery waybill address library. The unit area identification condition is a condition or basis for triggering the unit area identification operation, which can be the receipt of the unit area identification instruction sent by the terminal, or the reaching of a preset time since the last triggering of the unit area identification operation, which is not specifically limited here. The terminal generates a unit area identification instruction according to the user's unit area identification triggering operation, and sends the unit area identification instruction to the server. The preset time can be customized, such as 30 minutes.

[0060] In one embodiment, step 202 includes: obtaining initial address text; and normalizing the initial address text to obtain target address text of the unit area to be identified.

[0061] The normalization process refers to processing abnormal data in the initial address text, which may include but is not limited to simplification of traditional Chinese characters, detection of typos, and processing of abnormal symbols.

[0062] Specifically, the server obtains the initial address text of the unit area to be identified in the above manner, and performs normalization processing on the obtained initial address text to obtain the corresponding target address text.

[0063] In one embodiment, the server calls a preconfigured address normalization system to perform normalization processing on the initial address text to obtain the corresponding target address text.

[0064] In the above embodiment, the initial address text is normalized to obtain the target address text, so that the unit area corresponding to the initial address text can be identified based on the target address text, which can improve the recognition accuracy of the unit area.

[0065] Step 204, perform address word segmentation on the target address text to obtain entries belonging to each address level.

[0066] The address segmentation of the target address text refers to segmenting the target address text according to the preconfigured address level to divide the target address text into multiple entries and determine the address level to which each entry belongs.

[0067] In one embodiment, 18 address levels, including province, city, district, street, road, road number, park, building, unit, and room number, are pre-configured for the address text. Each address level corresponds to a word level, that is, 18 word levels, 1 to 18, are pre-configured for the address text. The word level corresponds to the address level one by one, and the address or area represented by each entry belongs to the address level corresponding to the corresponding word level. For example, the address level corresponding to the "province" is "1", and the address or area represented by the entry "Hunan Province" belongs to the address level "province". Therefore, based on the pre-configured address level, it is possible to implement 18 levels of word segmentation of the target address text, obtain the entry corresponding to the target address text, and the address level to which each entry belongs, that is, determine the entry corresponding to the target address text and the word level corresponding to each entry.

[0068] Specifically, the server performs address segmentation on the acquired target address text to obtain entries corresponding to the target address text and the address level to which each entry belongs.

[0069] In one embodiment, the server calls a preconfigured address segmentation system to perform address segmentation on the target address text to obtain the words corresponding to the target address text and the address level to which each word belongs. Compared with the current general segmentation tools, the preconfigured address segmentation system has a better segmentation effect on the target address text.

[0070] In one embodiment, step 204 includes: generating a word vector corresponding to each word of the target address text word by word; obtaining a target word vector sequence corresponding to the target address text based on the word vector; inputting the target word vector sequence into a trained address text word segmentation model to obtain a corresponding target label sequence; and obtaining entries belonging to each address level based on the target label sequence.

[0071] Among them, a word vector refers to the vector corresponding to a single word, such as the word vector corresponding to "Chang". The target word vector sequence is a vector sequence composed of multiple word vectors. Specifically, it can be a vector sequence composed of the word vectors corresponding to multiple words respectively, sorted according to the order of these words in the target address text. The target word vector sequence includes multiple word vectors, and each word vector corresponds to a word in the target address text. The address text segmentation model is a model trained based on a pre-obtained training sample set and can be used to predict the corresponding target label sequence according to the target word vector sequence. The training sample set includes the sample word vector sequence and the sample label sequence corresponding to the sample address text. The label sequence includes multiple words and the labels corresponding to each word. Taking the target label sequence as an example, the target label sequence is a sequence composed of each word in the target address text and the label corresponding to each word.

[0072] Specifically, the server traverses each word in the target address text and generates the word vector corresponding to each traversed word. The server sorts and combines the word vectors corresponding to each word in the target address text according to the order of the corresponding words in the target address text to obtain the target word vector sequence corresponding to the target address text. The server inputs the target word vector sequence into the trained address text segmentation model, and the address text segmentation model performs sequence labeling on the target address text according to the target word vector sequence to obtain the corresponding target label sequence. The server combines the words in the target label sequence into the corresponding entries according to the labels corresponding to each word in the target label sequence, and determines the address level to which the corresponding entry belongs according to the label of the word. It can be understood that each word in each entry belongs to the same address level. For example, the Chinese characters "Chang" and "Sha" in the entry "Changsha" both belong to the address level "city".

[0073] In one embodiment, the server generates the word vector corresponding to each word in the target address text one by one through the trained word vector model. The server inputs the target address text into the trained word vector model to obtain the word vector corresponding to each word in the target address text. The training steps of the word vector model include: obtaining multiple sample address texts, obtaining an address text corpus according to the multiple sample address texts, training each word in the address text corpus through the initialized word vector model, and obtaining the trained word vector model when each word in the address text corpus has been trained. Among them, the machine learning algorithm involved in the training process of the word vector model is Word2Vec.

[0074] In one embodiment, the training step of the address text segmentation model includes: the server obtains multiple sample address texts, vectorizes each sample address text to obtain a corresponding sample word vector sequence, and performs sequence annotation on each sample address text to obtain a corresponding sample label sequence, and obtains a training sample set according to the sample word vector sequence and the sample label sequence corresponding to each sample address text, and then performs model training according to the training sample set to obtain a trained address text segmentation model. It can be understood that the server can predict the corresponding sample label sequence according to the sample word vector sequence corresponding to each sample address text through the trained sequence annotation model, and can also use the existing sequence annotation method to perform sequence annotation on the sample address text, which is not specifically limited here.

[0075] In the above embodiment, through the trained address text segmentation model, according to the target word vector sequence corresponding to the target address text, the corresponding target label sequence can be quickly and accurately obtained, so that based on the target label sequence, the entries belonging to each address level in the target address text can be quickly and accurately obtained.

[0076] Step 206: Search for matching first address data in the preconfigured address index data set according to each entry to obtain a first address data set corresponding to each entry.

[0077] The address index data set includes multiple address index data, each of which corresponds to a standard address data. Each standard address data includes a standard address text and a unit area corresponding to the standard address text, and may also include a network point, address identifier, and keyword corresponding to the standard address text. The address index data is data compiled from the corresponding standard address data and stored in binary form. Therefore, the address index data includes binary data corresponding to the standard address text and the corresponding unit area, network point, address identifier, keyword, etc. The keyword corresponding to the standard address text can be specifically understood as the entry belonging to each address level obtained by address segmentation of the standard address text.

[0078] Specifically, the server compiles each entry corresponding to the target address text to obtain corresponding binary data, and searches for address index data matching the binary data in the preconfigured address index data set according to the binary data corresponding to each entry, extracts the binary data corresponding to the standard address text, unit area and network point from the queried address index data, decompiles the extracted binary data to obtain the corresponding standard address text, unit area and network point, and obtains the first address data matching the currently queried entry according to the standard address text, unit area and network point. Thus, according to the above method, one or more first address data matching each entry can be queried from the address index data set, and the first address data set corresponding to the entry can be obtained according to the one or more first address data corresponding to each entry. The above query operation is performed for each entry corresponding to the target address text, and the first address data set corresponding to each entry can be obtained.

[0079] In one embodiment, the server calls a preconfigured index compilation tool to compile each entry into corresponding binary data. Since binary data is data that is convenient for computer processing or storage, binary data corresponds to plaintext data, and plaintext data refers to data that can be intuitively understood by users, such as Chinese characters, letters, and numbers, etc., the binary data can be understood as binary encrypted data. Accordingly, the server can also call a preconfigured index compilation tool to decompile the binary data to obtain the corresponding plaintext data.

[0080] Step 208: Comprehensively process the first address data sets corresponding to each entry to obtain a second address data set; the second address data set includes at least one second address data.

[0081] The second address data set is a data set obtained by processing the first address data set corresponding to each entry corresponding to the target address text. Each second address data in the second address data set is screened out from the first address data set.

[0082] Specifically, after the server obtains the corresponding first address data sets for each entry corresponding to the target address text, it performs comprehensive processing on each first address data set to filter out second address data with a relatively high degree of match with the target address text from each first address data set, and obtains the corresponding second address data set based on each filtered second address data.

[0083] In one embodiment, the server performs an intersection-and-union operation on the first address data sets corresponding to each word to obtain a corresponding second address data set. The intersection-and-union operation refers to an intersection and / or union operation, that is, performing an intersection and / or union operation on multiple first address data sets corresponding to the target address text to obtain a corresponding second address data set.

[0084] In one embodiment, step 208 includes: clustering the terms in the target address text according to the address level to obtain a first-category term set, a second-category term set, and a third-category term set; determining the first address data set corresponding to each term in the first-category term set as the first basic data set; taking the union of the first address data sets corresponding to each term in the second-category term set to obtain a second basic data set; taking the intersection of the first basic data set and the second basic data set to obtain a target basic data set; taking the intersection of the target basic data set with the first address data set corresponding to each term in the third-category term set in turn to obtain a second address data set.

[0085] Among them, the term set is a set composed of terms. According to the address level, the terms can be clustered into multiple term sets, each term set corresponds to a term category, such as the first term set, the second term set and the third term set, and each term in the same term set belongs to the same term category. The term category is divided according to the importance of the address level in the actual business, and each term under each address level with the same importance is divided into the same term category, that is, each term under each address level with the same importance is clustered into the same term set, so that the terms in different term sets have different importance in the actual business.

[0086] In one embodiment, the importance of the entries in the first category entry set, the second category entry set, and the third category entry set in actual business decreases in sequence. Since the word level corresponds to the address level one by one, the address level can be represented by the word level. For example, the word level corresponding to the first category entry set is, for example, level 13, the word level corresponding to the second category entry set is, for example, level 6, level 8, level 9, level 10, and level 18, and the word level corresponding to the third category entry set is, for example, level 5, level 4, level 11, level 12, level 7, and level 14. It can be understood that the entry set obtained by clustering the entries according to the address level can also include a fourth category entry set, and the word levels corresponding to the fourth category entry set are, for example, level 1, level 2, level 3, level 15, and level 16. The fourth category entry set has the lowest importance in actual business.

[0087] Taking the intersection of two address data sets means extracting address data that exist in both address data sets, and combining the extracted address data into an address data set obtained by taking the intersection. Taking the union of two address data sets means extracting address data that exist in any one of the two address data sets, and combining the extracted address data into an address data set obtained by taking the union. It can be understood that the address data that exists in both address data sets is only extracted once, so that the address data in the address data set obtained by taking the union are different from each other.

[0088] Specifically, the server clusters each term in the target address text according to the address level to obtain a first-category term set, a second-category term set, and a third-category term set corresponding to the target address text. It can be understood that since the target address text usually does not cover the terms in each of the 18 address levels, the term set obtained by clustering the terms according to the address level may be empty. When a certain term set obtained by clustering is empty, it can also be understood that the term set will not be obtained through clustering. Further, the server determines the first address data set corresponding to each term in the first-category term set as the first basic data set, takes the union of the first address data sets corresponding to each term in the second-category term set to obtain the second basic data set, and takes the intersection of the first basic data set and the second basic data set to obtain the corresponding target basic data set. The server traverses each entry in the third category entry set, and takes the intersection of the target basic data set and the first address data set corresponding to the currently traversed entry. If the intersection of the two is empty, the target basic data set continues to take the intersection with the first address data set corresponding to the next traversed entry. If the intersection of the two is not empty, the address data set obtained by taking the intersection continues to take the intersection with the first address data set corresponding to the next traversed entry, and so on, until each entry in the third category entry set is traversed, and the address data set obtained by the current intersection or the address data set obtained by the previous intersection is determined as the corresponding second address data set.

[0089] In one embodiment, if the result of the intersection of the first basic data set and the second basic data set is empty, the first basic data set is determined as the target basic data set. If the first category entry set is empty, that is, if the first basic data set does not exist, the second basic data set is determined as the target basic data set. If both the first basic data set and the second basic data set do not exist, the first address data set corresponding to each entry in the third category entry set is sequentially determined as the target basic data set.

[0090] For example, the server determines the first address data set of level 13 as the first basic data set, takes the union of the first address data sets corresponding to levels 6, 8, 9, 10, and 18 to obtain the second basic data set, takes the intersection of the first basic data set and the second basic data set to obtain the target basic data set, and takes the intersection of the target basic data set with the first address data sets of levels 5, 4, 11, 12, 7, and 14 in turn to obtain the second address data set.

[0091] In the above embodiment, the terms corresponding to the target address text are clustered into multiple term sets according to the address level, and the first address data set corresponding to each term in the term set is processed to obtain the corresponding second address data set, thereby screening out the second address data with a relatively high degree of match with the target address text.

[0092] Step 210, sending the second address data set to the terminal; the sent second address data set is used to instruct the terminal to select target address data matching the target address text from the second address data, and extract the unit area corresponding to the target address text from the target address data.

[0093] Specifically, after obtaining the second address data set corresponding to the target address text in the above manner, the server sends the second address data set to the terminal. The terminal displays each second address data in the received second address data set to the user, so that the user can select the target address data matching the target address text from the displayed second address data through the terminal, and extract the unit area corresponding to the target address text from the target address data.

[0094] In one embodiment, since the target address data also includes a network point, the server can also extract a network point from the target address data as the network point corresponding to the target address text.

[0095] In one embodiment, step 210 includes: calculating the similarity between the target address text and each second address data in the second address data set to obtain corresponding text similarity; sorting the second address data in the second address data set according to the text similarity to obtain a sorted second address data set; and sending the sorted second address data set to the terminal.

[0096] The text similarity refers to the degree of similarity between texts, and specifically may refer to the degree of similarity between the target address text and the standard address text in the second address data.

[0097] Specifically, the server extracts the standard address text from each second address data in the second address data set, and performs similarity calculation on each extracted standard address text and the target address text, so as to calculate the similarity between the target address text and each second address data, and obtain the corresponding text similarity. The server sorts the second address data in the second address data set in descending order of text similarity, obtains the sorted second address data set, and sends the sorted second address data set to the terminal. In this way, the terminal displays the sorted second address data set to the user, so that the user can quickly filter the target address data from the second address data set based on the sorting.

[0098] In the above embodiment, each second address data in the second address data set is sorted according to the text similarity between the target address text and the second address data, and the sorted second address data set is sent to the terminal for display, so that the target address data can be quickly selected, thereby quickly determining the unit area corresponding to the target address text.

[0099] The above-mentioned unit area recognition method based on address text performs address segmentation on the target address text of the unit area to be recognized, obtains the entries belonging to each address level in the target address text, searches for the matching first address data in the preconfigured address index data set according to each entry, obtains the first address data set corresponding to each entry, and performs comprehensive processing on the first address data set corresponding to each entry to obtain a second address data set including at least one second address data, and sends the second address data set to the terminal to instruct the terminal to select the target address data matching the target address text from the received second address data, and extract the unit area corresponding to the target address text from the target address data. In this way, based on the entries belonging to each address level in the target address text, the corresponding first address data set is queried respectively, the second address data set is further determined based on each first address data set, and the second address data set is sent to the terminal, so that the user can quickly select the unit area corresponding to the target address text from the second address data set through the terminal, thereby improving the recognition efficiency of the unit area corresponding to the target address text.

[0100] In one embodiment, step 206 includes: determining the administrative region identifier corresponding to the target address text; filtering an address index data subset that matches the administrative region identifier from a preconfigured address index data set; and querying the address index data subset for the first address data that matches each entry to obtain a first address data set corresponding to each entry.

[0101] Among them, the administrative region identifier is used to identify the administrative region, and specifically can be a string composed of one or more characters such as numbers, letters and symbols. For example, the administrative region identifier corresponding to "Changsha City" is "CS-1". Each address index data also includes binary data corresponding to the administrative region identifier. The address index data in the address index data set can be partitioned and stored according to the administrative region identifier. The multiple address index data corresponding to each administrative region identifier constitute an address index data subset. Therefore, each administrative region identifier corresponds to an address index data subset.

[0102] Specifically, the server determines the administrative region identifier corresponding to the target address text, and dynamically compiles the administrative region identifier into corresponding binary data. Based on the binary data corresponding to the administrative region identifier, the server queries the preconfigured address index data set for a subset of address index data that matches the binary data, that is, queries the preconfigured address index data set for a subset of address index data that matches the administrative region identifier, and determines the queried subset of address index data as the subset of address index data that matches the target address text. Furthermore, for each entry corresponding to the target address text, the server compiles the entry into corresponding binary data, and based on the binary data, queries the address index data that matches the binary data in the subset of address index data that matches the target address text, and decompiles the address index data to obtain the first address data that matches the entry, and then obtains the first address data set corresponding to the entry.

[0103] In the above embodiment, the address index data in the address index data set are partitioned and stored according to the administrative area identifier, so that when performing unit area identification, the address index data subset matching the target address text can be quickly located based on the administrative area identifier, and the first address data matching each entry can be queried in the address index data subset, which can improve the query efficiency of the first address data and thus improve the recognition efficiency of the unit area.

[0104] In one embodiment, the configuration steps of the address index data set include: obtaining a standard address data set; the standard address data set includes multiple standard address data, each standard address data includes a standard address text and a unit area corresponding to the standard address text; compiling each standard address data separately to obtain corresponding address index data; and obtaining a corresponding address index data set according to the address index data corresponding to each standard address data.

[0105] The standard address text refers to the correct address text that complies with the address specification. The address index data set includes multiple address index data.

[0106] Specifically, the server obtains each standard address text, as well as the unit area and outlet corresponding to each standard address text from the national standard address database, and obtains the corresponding standard address data according to each standard address text and the corresponding unit area and outlet, and then obtains the standard address data set according to each standard address data. The server calls the pre-configured index compilation tool to compile each standard address data separately to obtain the corresponding address index data, and obtains the corresponding address index data set according to the address index data corresponding to each standard address data.

[0107] In the above embodiment, the address index data set is pre-compiled based on the standard address data, so that the first address data matched by each entry can be determined based on the address index data set.

[0108] like Figure 3 As shown, in one embodiment, a method for identifying a unit area based on an address text is provided, and the method specifically comprises the following steps:

[0109] Step 302, obtaining the initial address text.

[0110] Step 304 , generating a word vector corresponding to each word of the target address text word by word.

[0111] Step 306: Obtain a target word vector sequence corresponding to the target address text according to the word vector.

[0112] Step 308: Input the target word vector sequence into the trained address text segmentation model to obtain a corresponding target label sequence.

[0113] Step 310, obtaining entries belonging to each address level according to the target tag sequence.

[0114] Step 312, determining the administrative region identifier corresponding to the target address text.

[0115] Step 314: Filter the address index data subset that matches the administrative region identifier from the pre-configured address index data set.

[0116] Step 316: search the address index data subset for first address data matching each term to obtain a first address data set corresponding to each term.

[0117] Step 318, clustering the terms in the target address text according to the address level to obtain a first category term set, a second category term set, and a third category term set.

[0118] Step 320: determine the first address data set corresponding to each entry in the first category of entry set as the first basic data set.

[0119] Step 322: Taking the union of the first address data sets corresponding to the respective terms in the second category term set, to obtain a second basic data set.

[0120] Step 324: Take the intersection of the first basic data set and the second basic data set to obtain a target basic data set.

[0121] Step 326: intersect the target basic data set with the first address data set corresponding to each entry in the third category entry set in turn to obtain a second address data set; the second address data set includes at least one second address data.

[0122] Step 328: Calculate the similarity between the target address text and each piece of second address data in the second address data set to obtain corresponding text similarity.

[0123] Step 330 , sorting the second address data in the second address data set according to the text similarity to obtain a sorted second address data set.

[0124] Step 332, sending the sorted second address data set to the terminal; the sent second address data set is used to instruct the terminal to select target address data matching the target address text from the second address data, and extract the unit area corresponding to the target address text from the target address data.

[0125] In the above embodiment, at least one second address data having a relatively high matching degree with the target address text is determined in the above manner, each second address data is sorted according to text similarity, and the sorted second address data set is sent to the terminal, so that the user can quickly select the target address data matching the target address text from the second address data set through the terminal, and then determine the unit area corresponding to the target address text. In this way, the recognition efficiency of the unit area can be improved, thereby improving the collection and delivery efficiency of the delivery personnel and saving the collection and delivery time.

[0126] In one embodiment, the unit area identification method based on address text provided in the present application can be deployed in an address unit area query system, so that the unit area corresponding to the target address text can be quickly queried based on the address unit query system. It can be understood that the address unit query system can run on a single server with 256G memory, and can simultaneously fully load the address index data of more than 300 cities across the country, and provide a unit area prompt recommendation function for the address text to be reviewed and supplemented in any city. The address text to be reviewed and supplemented can be specifically understood as a problematic address text, which needs to be manually reviewed, and the customer service determines the corresponding unit area based on the second address data set.

[0127] Figure 4 FIG. 1 is a schematic diagram of the principle of a method for identifying a unit region based on address text in one embodiment. Figure 4 As shown, when the unit area recognition based on the address text is triggered, the server obtains the target address text, normalizes and segmentes the target address text, determines the entries obtained by the address segmentation as keywords, searches for the first address data based on the keywords, and performs set operations on the first address data sets corresponding to each keyword to obtain the second address data set, sorts the second address data in the second address data set, outputs the sorted second address data set, and then ends the process.

[0128] It should be understood that although Figure 2-3 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-3 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0129] In one embodiment, Figure 5 As shown, a unit region recognition device 500 based on address text is provided, comprising: an acquisition module 501, a word segmentation module 502, a query module 503, a recognition module 504 and a sending module 505, wherein:

[0130] The acquisition module 501 is used to acquire the target address text;

[0131] A word segmentation module 502 is used to perform address word segmentation on the target address text to obtain entries belonging to each address level;

[0132] A query module 503 is used to query the matching first address data in the preconfigured address index data set according to each entry, and obtain the first address data set corresponding to each entry;

[0133] The identification module 504 is used to perform comprehensive processing on the first address data set corresponding to each entry to obtain a second address data set; the second address data set includes at least one second address data;

[0134] The sending module 505 is used to send the second address data set to the terminal; the sent second address data set is used to instruct the terminal to select target address data matching the target address text from the second address data, and extract the unit area corresponding to the target address text from the target address data.

[0135] In one embodiment, the query module 503 is also used to determine the administrative region identifier corresponding to the target address text; filter the address index data subset that matches the administrative region identifier from the preconfigured address index data set; and query the first address data that matches each entry in the address index data subset to obtain the first address data set corresponding to each entry.

[0136] In one embodiment, the identification module 504 is also used to cluster the terms in the target address text according to the address level to obtain a first-category term set, a second-category term set, and a third-category term set; determine the first address data set corresponding to each term in the first-category term set as the first basic data set; take the union of the first address data sets corresponding to each term in the second-category term set to obtain a second basic data set; take the intersection of the first basic data set and the second basic data set to obtain a target basic data set; take the intersection of the target basic data set with the first address data set corresponding to each term in the third-category term set in turn to obtain a second address data set.

[0137] In one embodiment, the sending module 505 is also used to calculate the similarity between the target address text and each second address data in the second address data set to obtain corresponding text similarity; sort the second address data in the second address data set according to the text similarity to obtain a sorted second address data set; and send the sorted second address data set to the terminal.

[0138] In one embodiment, the acquisition module 501 is further used to acquire the initial address text; and perform normalization processing on the initial address text to obtain the target address text of the unit area to be identified.

[0139] In one embodiment, the word segmentation module 502 is also used to generate a word vector corresponding to each word of the target address text word by word; obtain a target word vector sequence corresponding to the target address text based on the word vector; input the target word vector sequence into a trained address text word segmentation model to obtain a corresponding target label sequence; and obtain entries belonging to each address level based on the target label sequence.

[0140] In one embodiment, the above-mentioned unit region identification device 500 based on address text further includes: a configuration module;

[0141] A configuration module is used to obtain a standard address data set; the standard address data set includes multiple standard address data, each standard address data includes a standard address text and a unit area corresponding to the standard address text; each standard address data is compiled separately to obtain corresponding address index data; and a corresponding address index data set is obtained according to the address index data corresponding to each standard address data.

[0142] For the specific definition of the unit area recognition device based on address text, please refer to the definition of the unit area recognition method based on address text above, which will not be repeated here. Each module in the above-mentioned unit area recognition device based on address text can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0143] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store pre-configured address index data sets. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a unit area recognition method based on address text is implemented.

[0144] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0145] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0146] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0147] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0148] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0149] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for identifying unit regions based on address text, characterized in that: The method comprises: Get the target address text; Performing address segmentation on the target address text to obtain entries belonging to each address level; According to each entry, searching for matching first address data in a preconfigured address index data set to obtain a first address data set corresponding to each entry; Comprehensively processing the first address data sets corresponding to each entry to obtain a second address data set; the second address data set includes at least one second address data; The second address data set is sent to the terminal; the sent second address data set is used to instruct the terminal to select target address data matching the target address text from the second address data, and extract a unit area corresponding to the target address text from the target address data; The step of comprehensively processing the first address data sets corresponding to each entry to obtain the second address data set includes: Perform intersection and / or union operations on multiple first address data sets to obtain multiple second address data; filter out multiple second address data from each of the first address data sets based on the matching degree between each first address data and the target address text, and obtain the second address data set based on the filtered multiple second address data.

2. The method according to claim 1, characterized in that The step of searching for matching first address data in a preconfigured address index data set according to each entry to obtain a first address data set corresponding to each entry includes: Determine the administrative region identifier corresponding to the target address text; Filtering an address index data subset matching the administrative region identifier from a preconfigured address index data set; The first address data matching each term is searched in the address index data subset to obtain the first address data set corresponding to each term.

3. The method according to claim 1, characterized in that The step of comprehensively processing the first address data sets corresponding to each entry to obtain the second address data set includes: Clustering the terms in the target address text according to the address level to obtain a first-category term set, a second-category term set, and a third-category term set; Determine a first address data set corresponding to each entry in the first category of entry set as a first basic data set; Taking a union of the first address data sets corresponding to each entry in the second category of entry set to obtain a second basic data set; Taking the intersection of the first basic data set and the second basic data set to obtain a target basic data set; The target basic data set is sequentially intersected with the first address data set corresponding to each entry in the third category entry set to obtain a second address data set.

4. The method according to claim 1, characterized in that: The sending the second address data set to the terminal includes: Calculate the similarity between the target address text and each piece of second address data in the second address data set to obtain corresponding text similarity; sorting the second address data in the second address data set according to the text similarity to obtain a sorted second address data set; The sorted second address data set is sent to the terminal.

5. The method according to claim 1, characterized in that The step of obtaining the target address text includes: Get the initial address text; The initial address text is normalized to obtain the target address text of the unit area to be identified.

6. The method according to claim 1, characterized in that The address segmentation of the target address text to obtain entries belonging to each address level includes: Generating a word vector corresponding to each word of the target address text word by word; Obtaining a target word vector sequence corresponding to the target address text according to the word vector; Input the target word vector sequence into the trained address text segmentation model to obtain a corresponding target label sequence; The entries belonging to each address level are obtained according to the target tag sequence.

7. The method according to any one of claims 1 to 6, characterized in that: The configuration steps of the address index data set include: Acquire a standard address data set; the standard address data set includes a plurality of standard address data, each of which includes a standard address text and a unit area corresponding to the standard address text; Compiling each piece of standard address data to obtain corresponding address index data; A corresponding address index data set is obtained according to the address index data corresponding to each of the standard address data.

8. A unit area recognition device based on address text, characterized in that: The device comprises: The acquisition module is used to obtain the target address text; A word segmentation module, used for performing address word segmentation on the target address text to obtain entries belonging to each address level; A query module, configured to query the matching first address data in the preconfigured address index data set according to each entry, and obtain the first address data set corresponding to each entry; An identification module, used for comprehensively processing the first address data set corresponding to each entry to obtain a second address data set; the second address data set includes at least one second address data; A sending module, used for sending the second address data set to a terminal; the sent second address data set is used for instructing the terminal to select target address data matching the target address text from the second address data, and extract a unit area corresponding to the target address text from the target address data; The step of comprehensively processing the first address data sets corresponding to each entry to obtain the second address data set includes: Perform intersection and / or union operations on multiple first address data sets to obtain multiple second address data; filter out multiple second address data from each of the first address data sets based on the matching degree between each first address data and the target address text, and obtain the second address data set based on the filtered multiple second address data.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.