Address information extraction method, model training method and related equipment

By marking and highlighting the receiving address physical information, the problem of time wasted by couriers when determining the receiving area is solved, and logistics distribution efficiency and user experience are improved.

CN112488103BActive Publication Date: 2024-10-15SHANGHAI XUNMENG INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011376060.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-30
Publication Date
2024-10-15
Estimated Expiration
2040-11-30

AI Technical Summary

Technical Problem

In existing logistics distribution, couriers need to spend a lot of time browsing long receiving addresses to determine the specific receiving area, resulting in inefficient delivery.

Method used

The address information extraction method is used to process the receiving address through the entity information annotation model, generate a vector matrix, and determine whether it contains points of interest or road labels, and highlight it to quickly determine the specific receiving area of ​​the receiving address.

Benefits of technology

It improves logistics and distribution efficiency, saves delivery costs, and improves users' receipt experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112488103B_ABST
    Figure CN112488103B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of logistics technology, and provides an address information extraction method, a model training method and related equipment. The address information extraction method includes: receiving a recipient address; processing the recipient address to generate a vector matrix; inputting the vector matrix into an entity information annotation model to obtain an entity label sequence, the entity label sequence includes an entity label corresponding to each local address in the recipient address; judging whether the entity label sequence contains a point of interest label, if so, the point of interest label is used as the target entity label, otherwise the road label is used as the target entity label; and, filtering out the target local address corresponding to the target entity label from the entity label sequence, and highlighting the target local address. The present invention helps couriers quickly determine the specific receiving area of ​​the recipient address and improves logistics distribution efficiency by annotating the recipient address with entity information, extracting the point of interest / road-related address information therefrom and highlighting it.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of logistics technology, and in particular to an address information extraction method, a model training method and related equipment. Background Art

[0002] According to the existing logistics and distribution process, after the package arrives at the terminal distribution point, it is assigned to the corresponding courier, who then delivers the package to the destination according to the receiving address shown on the courier delivery bill of the package.

[0003] Since the delivery area that each courier is responsible for usually covers multiple receiving areas, each receiving area corresponds to, for example, a residential community, an industrial park, a road number, etc.; and the receiving address displayed on the courier delivery note is relatively long. For example, a regular receiving address usually includes province and city information, road information, residential community information, building number information, etc.; as a result, after the courier receives the package, he needs to spend time browsing the receiving address from front to back and find the address information such as the residential community / road from it to determine which receiving area the receiving address displayed on the courier delivery note of the package corresponds to, resulting in low delivery efficiency.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present invention, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] In view of this, the present invention provides an address information extraction method, a model training method and related equipment, which can annotate the entity information of the delivery address, extract the point of interest / road-related address information therefrom and highlight it, so as to help the courier quickly determine the specific delivery area of ​​the delivery address and improve the logistics distribution efficiency.

[0006] One aspect of the present invention provides an address information extraction method, comprising: receiving a recipient address; processing the recipient address to generate a vector matrix; inputting the vector matrix into an entity information annotation model to obtain an entity label sequence, wherein the entity label sequence includes an entity label corresponding to each local address segment in the recipient address; determining whether the entity label sequence contains a point of interest label, and if so, using the point of interest label as the target entity label, and otherwise using a road label as the target entity label; and filtering out a target local address corresponding to the target entity label from the entity label sequence, and highlighting the target local address.

[0007] In some embodiments, after highlighting the target local address, it also includes: searching whether there is an automatic delivery point within the receiving range of the target local address; if so, encrypting and displaying the end local address of the receiving address after the target local address, and highlighting the automatic delivery point adjacent to the target local address.

[0008] In some embodiments, the automatic delivery points include smart express lockers and smart express stations.

[0009] In some embodiments, the address information extraction method further includes: printing an express delivery label according to the highlighted receiving address.

[0010] In some embodiments, the processing of the recipient address to generate a vector matrix includes: preprocessing the recipient address to generate an address text in a preset format; converting words in the address text into numbers according to a data dictionary to generate a number sequence; converting the numbers corresponding to each word in the number sequence into vectors, and splicing the converted vectors in the order of the words in the address text to generate a vector matrix.

[0011] In some embodiments, the entity information labeling model includes a recurrent neural network and a probabilistic undirected graphical model; obtaining the entity label sequence includes: the recurrent neural network obtains a feature vector corresponding to each word according to the vector matrix; the probabilistic undirected graphical model obtains a probability matrix containing a probability sequence of each word corresponding to each entity label according to the feature vector, and outputs an optimal label sequence as the entity label sequence according to the probability matrix; in the optimal label sequence, each word corresponds to an entity label, and in the order of the words, each consecutive multiple words correspond to the same entity label.

[0012] Another aspect of the present invention provides a model training method, comprising: obtaining sample addresses; labeling the sample addresses with an entity label set to obtain a sample label sequence for each of the sample addresses; processing each of the labeled sample addresses to obtain a sample vector matrix; constructing a network model based on a recurrent neural network and a probabilistic undirected graph model; and training the network model with the sample vector matrix as input and the corresponding sample label sequence as output to obtain an entity information labeling model.

[0013] In some embodiments, the entity tag set includes: entity tags corresponding to administrative division information, entity tags corresponding to point of interest information and / or road information, and entity tags corresponding to floor unit information.

[0014] In some embodiments, the network model is constructed based on the recurrent neural network and the probabilistic undirected graph model, including: a feature extraction layer using a bidirectional long short-term memory network as a vectorized processing; and a label output layer using a conditional random field as a probability distribution processing.

[0015] Another aspect of the present invention provides an address information extraction device, comprising: an address receiving module, configured to receive a recipient address; a data processing module, configured to process the recipient address and generate a vector matrix; an entity labeling module, configured to input the vector matrix into an entity information labeling model to obtain an entity label sequence, wherein the entity label sequence includes an entity label corresponding to each local address segment in the recipient address; a target determination module, configured to determine whether the entity label sequence contains a point of interest label, and if so, use the point of interest label as the target entity label, otherwise use the road label as the target entity label; and a highlighting module, configured to filter out the target local address corresponding to the target entity label from the entity label sequence, and highlight the target local address.

[0016] Another aspect of the present invention provides a model training device, comprising: a sample collection module, configured to obtain sample addresses; a sample labeling module, configured to label the sample addresses with an entity label set to obtain a sample label sequence for each of the sample addresses; a sample processing module, configured to process each of the labeled sample addresses to obtain a sample vector matrix; a model construction module, configured to construct a network model based on a recurrent neural network and a probabilistic undirected graph model; and a model training module, configured to use the sample vector matrix as input and the corresponding sample label sequence as output to train the network model and obtain an entity information labeling model.

[0017] Another aspect of the present invention provides an electronic device, comprising: a processor; a memory storing executable instructions; wherein, when the executable instructions are executed by the processor, the address information extraction method described in any of the above embodiments is implemented, and / or the model training method described in any of the above embodiments is implemented.

[0018] Another aspect of the present invention provides a computer-readable storage medium storing a computer program, which, when executed, implements the address information extraction method described in any of the above embodiments, and / or implements the model training method described in any of the above embodiments.

[0019] The beneficial effects of the present invention compared with the prior art include at least:

[0020] The entity information annotation model is used to annotate the delivery address with entity information, and the local address corresponding to the point of interest label / road label is extracted and highlighted, helping the courier to quickly lock the point of interest / road related address information in the delivery address, so as to quickly determine the specific delivery area corresponding to the delivery address, improve logistics distribution efficiency, and also improve the user's delivery experience.

[0021] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present invention, and together with the specification are used to explain the principles of the present invention. Obviously, the accompanying drawings described below are only some embodiments of the present invention, and for those of ordinary skill in the art, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0023] Figure 1 A schematic diagram showing the steps of a method for extracting address information in one embodiment of the present invention;

[0024] Figure 2 A schematic diagram showing the steps of a method for extracting address information in another embodiment of the present invention;

[0025] Figure 3 A schematic diagram of an express delivery bill printed according to a highlighted recipient address in an embodiment of the present invention is shown;

[0026] Figure 4 A schematic diagram of a module of an address information extraction device according to an embodiment of the present invention is shown;

[0027] Figure 5 A schematic diagram showing the steps of the model training method in an embodiment of the present invention is shown;

[0028] Figure 6 A schematic diagram of a module of a model training device according to an embodiment of the present invention is shown;

[0029] Figure 7 A schematic diagram showing the structure of an electronic device in an embodiment of the present invention; and

[0030] Figure 8 A schematic diagram showing the structure of a computer-readable storage medium in an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0031] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the embodiments set forth herein. Instead, these embodiments are provided to make the present invention comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art.

[0032] In addition, the accompanying drawings are only schematic illustrations of the present invention and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0033] The step numbers in the following embodiments are only used to indicate different execution contents, and do not strictly limit the execution order between the steps. It should be noted that the features in the embodiments of the present invention and in different embodiments can be combined with each other without conflict.

[0034] Figure 1 The main steps of the method for extracting address information in the embodiment are shown, referring to Figure 1 As shown, the address information extraction method in this embodiment includes: in step S110, receiving the recipient address; in step S120, processing the recipient address to generate a vector matrix; in step S130, inputting the vector matrix into an entity information annotation model to obtain an entity label sequence, the entity label sequence including an entity label corresponding to each local address in the recipient address; in step S140-10, determining whether the entity label sequence contains a point of interest label, if so, executing step S140-20, using the point of interest label as the target entity label, otherwise executing step S140-30, using the road label as the target entity label; and in step S150, filtering out the target local address corresponding to the target entity label from the entity label sequence, and highlighting the target local address.

[0035] The above-mentioned address information extraction method uses a trained entity information annotation model to annotate the entity information of the receiving address, obtains the entity label sequence of the receiving address, extracts the local address corresponding to the point of interest label / road label for highlighting, and helps the courier quickly obtain the point of interest / road related address information in the receiving address; the courier no longer needs to browse the receiving address from front to back to determine the specific receiving area, and can directly lock the corresponding receiving area through the highlighted target local address, thereby improving the courier's logistics distribution efficiency, saving logistics distribution costs, and also improving the user's receiving experience.

[0036] The following describes in detail the various steps of the address information extraction method with reference to specific examples.

[0037] In step S110, the receiving address is input by the user, and the entity that receives the receiving address may be the relevant control center of the e-commerce platform or the relevant control center of the logistics platform. Specifically, in the scenario where the user places an order to purchase goods on the e-commerce platform, the user enters the receiving address, and the relevant control center of the e-commerce platform receives the receiving address and performs subsequent processing. In the scenario where the user places an order to send a parcel on the logistics platform, the user enters the receiving address, and the relevant control center of the logistics platform receives the receiving address and performs subsequent processing.

[0038] In step S120, the recipient address is vectorized to generate a vector form that can be processed by the entity information annotation model to facilitate model operation. The processing method of the recipient address here is consistent with the processing method of the sample data during the training process of the entity information annotation model, that is, the recipient address received in real time is processed according to the data processing method during the model training process.

[0039] In one embodiment, the process of processing the recipient address and generating a vector matrix specifically includes: first, preprocessing the recipient address to generate an address text in a preset format. The preprocessing may include padding, truncation, error correction, traditional-simplified conversion, etc., to generate an address text with a complete and accurate address description. Wherein complete and accurate means that the preprocessed address text at least contains accurate road information (including road names and road numbers), so that when the subsequent model is operated, the generated entity label sequence contains at least road labels; the preprocessed address text also preferably contains accurate point of interest information (community, shopping malls, etc.), so that the entity label sequence output by the subsequent entity information annotation model also contains point of interest labels. Among them, by setting the preset input format of the recipient address, the recipient address input by the user can contain at least road information; based on the road information, the corresponding points of interest that may exist can be obtained through map service association.

[0040] Secondly, according to the data dictionary, the words in the address text are converted into numbers to generate a number sequence. The data dictionary is constructed and generated during the model training process to realize the conversion of text sequence to number sequence. When converting the address text into a number sequence, the text-to-number conversion can be performed on each word in the address text in units of words, and then the converted numbers are spliced ​​in the order of the words in the address text to generate a number sequence; or, the address text can be segmented first, and then the text-to-number conversion is performed on each word in the address text in units of words, and then the converted numbers are spliced ​​in the order of the words in the address text to generate a number sequence.

[0041] Finally, the numbers corresponding to each word in the digital sequence are converted into vectors, and the converted vectors are concatenated in the order of the words in the address text to generate a vector matrix. When converting vectors, for example, each word or character in the recipient address is mapped to a 200-dimensional vector, and then concatenated to form a vector matrix corresponding to the recipient address.

[0042] In step S130, the vectorized recipient address is annotated based on the entity information annotation model to obtain an entity label corresponding to each word in the recipient address.

[0043] In one embodiment, the entity information labeling model includes a recurrent neural network and a probabilistic undirected graph model; the process of obtaining the entity label sequence of the recipient address using the entity information labeling model including the recurrent neural network and the probabilistic undirected graph model specifically includes: the recurrent neural network obtains the feature vector corresponding to each word according to the vector matrix, thereby realizing further vectorization processing of the recipient address; the probabilistic undirected graph model obtains a probability matrix including the probability sequence of each entity label corresponding to each word according to the feature vector; the probabilistic undirected graph model further processes the obtained probability matrix, and outputs the optimal label sequence as the entity label sequence; in the optimal label sequence, each word corresponds to an entity label, and in the order of the words, each consecutive multiple words correspond to the same entity label, so that the entity label corresponding to each local address in the recipient address can be known.

[0044] The recurrent neural network can specifically adopt a bidirectional long short-term memory network (Bi-directional Long Short-Term Memory, referred to as BiLSTM). The BiLSTM network can model the sequence data well and obtain the feature vector of each word in the recipient address. The probabilistic undirected graph model can specifically adopt a conditional random field (Conditional RandomField, referred to as CRF). The CRF layer can obtain the probability matrix of the recipient address composed of the probability sequence of all entity labels corresponding to each word based on the feature vector represented by the encoding generated by the BiLSTM network. In addition, the CRF layer uses the Viterbi algorithm to process the probability matrix to obtain the optimal label sequence, and the entity label of each word in the optimal label sequence is used as the final labeling result.

[0045] According to the express delivery scenario, the entity tags specifically include entity tags corresponding to administrative division information, entity tags corresponding to point of interest information and / or road information, entity tags corresponding to floor unit information, etc. For example, in a specific embodiment, the entity tags include:

[0046] Entity Tags meaning PRVN Province / Municipality CITY City DIST District and County ROAD Road Name ROADNO Road No. POI Points of interest (community, shopping mall, etc.) FLOORNO Floor number HOUSENO Building No.

[0047] Among them, "PRVN", "CITY" and "DIST" are entity tags corresponding to administrative division information; "ROAD" and "ROADNO" are corresponding to road tags; "POI" is corresponding to point of interest tags; "FLOORNO" and "HOUSENO" are entity tags corresponding to floor unit information. The entity tag sequence of a delivery address contains at least road tags, and may also contain point of interest tags, and of course, entity tags for administrative division information and floor unit information.

[0048] Using the above entity label, in a specific entity information labeling scenario, the receiving address "15th Floor, Jinhongqiao International Center, 233 Loushanguan Road, Changning District, Shanghai" is received. After processing the receiving address, it is input into the entity information labeling model to obtain the entity label sequence as follows:

[0049] "On 'B-PRVN'

[0050] Sea 'I-PRVN'

[0051] City 'E-PRVN'

[0052] Long 'B-DIST'

[0053] Ning'I-DIST'

[0054] Area 'E-DIST'

[0055] Lou 'B-ROAD'

[0056] Mountain 'I-ROAD'

[0057] Close 'I-ROAD'

[0058] Road 'E-ROAD'

[0059] 2'B-ROADNO'

[0060] 3'I-RAODNO'

[0061] 3'I-ROADNO'

[0062] No. 'E-ROADNO'

[0063] Gold 'B-POI'

[0064] Rainbow 'I-POI'

[0065] Bridge 'I-POI'

[0066] I-POI

[0067] International 'I-POI'

[0068] in 'I-POI'

[0069] Heart 'E-POI'

[0070] 1'B-FLOORNO'

[0071] 5'I-FLOORNO'

[0072] Floor 'E-FLOORNO'".

[0073] According to the entity label sequence output by the entity information annotation model, it can be determined that in the above-mentioned receiving address, "Shanghai" belongs to the municipality, "Changning District" belongs to the district, "Loushanguan Road" belongs to the road name, "No. 233" belongs to the road number, "Jinhongqiao International Center" belongs to the point of interest, and "15th Floor" belongs to the floor number; the entity label is spliced ​​with the character "B" to indicate the beginning of the entity, the entity label is spliced ​​with the character "I" to indicate the middle part of the entity, and the entity label is spliced ​​with the character "E" to indicate the end of the entity. In each partial address, at least the entity labels corresponding to the first and last words are spliced ​​with the characters "B" and "E" respectively to mark the beginning and end of the partial address.

[0074] In steps S140-10 to S140-30, a point of interest tag / road tag is determined from the entity tag sequence of the recipient address as the target entity tag. For example, in the above-mentioned entity information annotation scenario, it can be determined that there is a point of interest tag "POI", and the point of interest tag "POI" is determined as the target entity tag. In other scenarios, there may be no point of interest tag in the generated entity tag sequence, and the road tag, including the road name "ROAD" and the road number "ROADNO", is determined as the target entity tag.

[0075] In step S150, the target local address corresponding to the target entity tag is highlighted. For example, in the above-mentioned entity information annotation scenario, if the point of interest tag "POI" is determined as the target entity tag, the target local address corresponding to the point of interest tag "POI", i.e. "Jinhongqiao International Center", is further highlighted, so that the courier can quickly lock the specific receiving area of ​​the receiving address according to the highlighted point of interest information, thereby improving the logistics distribution efficiency.

[0076] Furthermore, after highlighting the target local address corresponding to the point of interest information / road information in the delivery address, it is possible to continue to determine whether there is an automatic delivery point in the delivery area of ​​the target local address, and further process the delivery address based on the determination result.

[0077] Specifically, in one embodiment, referring to Figure 2As shown, after highlighting the target local address, it also includes: step S260, searching whether there is an automatic delivery point in the receiving area of ​​the target local address; the automatic delivery point includes smart express cabinets, smart express stations, etc., which can help users collect express delivery and improve the flexibility of users' delivery. If there is an automatic delivery point in the receiving area of ​​the target local address, it means that the package can be delivered to the automatic delivery point (it can also be further determined whether the user's delivery setting allows the package to be delivered to the automatic delivery point), then step S270 is executed to encrypt and display the terminal local address after the target local address in the receiving address, and highlight the automatic delivery point near the target local address. Encrypting and displaying the terminal local address can protect the user's information security, and highlighting the automatic delivery point near the target local address can enable the courier to lock the point of interest information / road information and the corresponding automatic delivery point in the entire receiving address at a glance, greatly improving the speed at which the courier obtains key address information from the receiving address and improving the efficiency of logistics distribution.

[0078] Further, after highlighting the target local address / automatic delivery point, step S280 is also included, and the express delivery bill is printed according to the highlighted delivery address. The printing of the express delivery bill here includes two scenarios: virtual printing and physical printing. For example, in the scenario where the e-commerce platform receives the delivery address entered by the user when placing an order to purchase goods, the relevant control center of the e-commerce platform obtains the entity label sequence of the delivery address according to the entity information annotation model, extracts the target local address corresponding to the point of interest label / road label from it and highlights it, and also highlights the possible automatic delivery point near the target local address, and then generates the locally highlighted delivery address by virtual printing, and sends it to the corresponding logistics platform, so as to provide a basis for the subsequent logistics platform to print the physical express delivery bill. For another example, in the scenario where the logistics platform receives the delivery address entered by the user when placing an order to send a parcel, after the relevant control center of the logistics platform highlights the target local address / automatic delivery point, the express delivery bill with the locally highlighted delivery address can be directly printed by physical printing.

[0079] Figure 3 The courier bill printed according to the highlighted receiving address in the embodiment is shown, referring to Figure 3As shown, in the delivery information area 302 of the express delivery bill 300, the delivery address, such as the point of interest "Jinhongqiao International Center" in "15th Floor, Jinhongqiao International Center, No. 233, Loushanguan Road, Changning District, Shanghai" listed in the above embodiment is highlighted, and the automatic delivery point corresponding to the point of interest, such as "Express Cabinet in the Lobby on the 1st Floor" is highlighted near the point of interest "Jinhongqiao International Center", while the specific terminal local address "15th Floor" is hidden to protect the user's information security, and the courier can also lock the specific delivery area, i.e. the highlighted "Jinhongqiao International Center", and the specific delivery point, i.e. the highlighted "Express Cabinet in the Lobby on the 1st Floor" from the express delivery bill 300 at a glance. The express delivery bill 300 also includes some conventional information display areas, such as the express information area 301, the mailing information area 303, etc., which will not be described in detail here.

[0080] In other embodiments, if there is no automatic delivery point in the receiving area of ​​the target local address, only the target local address will be highlighted on the express delivery bill, and the terminal local address will not be encrypted. This will also allow the courier to lock the specific receiving area from the express delivery bill at a glance and ensure that the package can be accurately delivered to the destination.

[0081] Therefore, the above-mentioned address information extraction method can accurately extract the target local address corresponding to the point of interest label / road label from the receiving address and highlight it, helping the courier to quickly lock the specific receiving area of ​​the receiving address, thereby improving the logistics distribution efficiency and the user's receiving experience; it can also further obtain the automatic delivery points that may exist in the receiving area and highlight them, while hiding the terminal local address, thereby improving the logistics distribution efficiency while protecting the user's information security.

[0082] An embodiment of the present invention further provides an address information extraction device, which can be used to implement the address information extraction method described in any of the above embodiments. Figure 4 The main modules of the address information extraction device are shown in FIG. Figure 4 As shown, the address information extraction device 400 in this embodiment includes: an address receiving module 410, configured to receive a recipient address; a data processing module 420, configured to process the recipient address and generate a vector matrix; an entity labeling module 430, configured to input the vector matrix into an entity information labeling model to obtain an entity label sequence, and the entity label sequence includes an entity label corresponding to each local address segment in the recipient address; a target determination module 440, configured to determine whether the entity label sequence contains an interest point label, if so, the interest point label is used as the target entity label, otherwise the road label is used as the target entity label; and a highlighting module 450, configured to filter out the target local address corresponding to the target entity label from the entity label sequence, and highlight the target local address.

[0083] Furthermore, the address information extraction device 400 may also include modules for implementing other process steps of the above-mentioned address information extraction method embodiments. The specific principles of each module can refer to the description of the above-mentioned address information extraction method embodiments, and will not be repeated here.

[0084] As described above, the address information extraction device of this embodiment adopts a trained entity information labeling model to perform entity information labeling on the receiving address, obtain the entity label sequence of the receiving address, extract the local address corresponding to the point of interest label / road label from it and highlight it, so as to help the courier quickly lock the specific receiving area of ​​the receiving address, improve the logistics distribution efficiency, save the logistics distribution cost, and also improve the user's receiving experience.

[0085] An embodiment of the present invention further provides a model training method for training and generating the entity information labeling model in the above-mentioned address information extraction method embodiments. Figure 5 Show the main steps of the model training method, refer to Figure 5 As shown, the model training method in this embodiment includes: in step S510, obtaining a sample address; in step S520, labeling the sample address with an entity label set to obtain a sample label sequence for each sample address; in step S530, processing each labeled sample address to obtain a sample vector matrix; in step S540, constructing a network model based on a recurrent neural network and a probabilistic undirected graph model; and in step S550, taking the sample vector matrix as input and the corresponding sample label sequence as output, training the network model to obtain an entity information labeling model.

[0086] In step S510, in order to ensure sufficient training data and solve the problem of uneven data distribution, oversampling may be used to expand the data to obtain sufficient and evenly distributed sample addresses.

[0087] In step S520, for the express delivery scenario, the sample addresses are labeled with an entity tag set. The entity tag set includes entity tags corresponding to administrative division information, such as the entity tags "PRVN", "CITY", "DIST", etc. in the above embodiments; entity tags corresponding to point of interest information and / or road information, such as "POI", "ROAD", "ROADNO", etc. in the above embodiments; and entity tags corresponding to floor unit information, such as "FLOORNO", "HOUSENO", etc. in the above embodiments. When labeling the sample addresses, each sample address is made to cover as many entity tags as possible, so that after machine learning, the entity information labeling model can accurately and comprehensively label the entity information of the recipient address when it is actually applied.

[0088] In step S530, the labeled sample addresses are processed, including preprocessing operations such as padding or truncation; a data dictionary is constructed, an index is generated according to the order of the data dictionary, and the conversion of the text sequence to the digital sequence is completed; and a vector of a fixed dimension is generated for each character or word, and the word vectors are concatenated to generate a sample vector matrix of the sample address. The specific processing process can refer to the description of the above-mentioned address information extraction method embodiment, and will not be repeated here.

[0089] In step S540, a bidirectional long short-term memory network and a conditional random field can be used to construct a neural network model, wherein the bidirectional long short-term memory network is used as a feature extraction layer for vectorization processing, and the conditional random field is used as a label output layer for probability distribution processing. The specific principles of the bidirectional long short-term memory network and the conditional random field can also refer to the description of the above-mentioned address information extraction method embodiment.

[0090] In step S550, the constructed neural network model is trained to obtain an entity information labeling model that can accurately label at least the points of interest / road information of the sample address through entity tags.

[0091] The entity information labeling model generated by the model training method of the above embodiment, when applied to the actual address information extraction scenario, can output an entity label sequence that accurately identifies the points of interest / road information in the receiving address. The target local address extracted according to the entity information labeling model can help the courier quickly lock the specific receiving area of ​​the receiving address, improve logistics distribution efficiency, save logistics distribution costs, and also improve the user's receiving experience.

[0092] An embodiment of the present invention also provides a model training device, which can be used to implement the model training method described in the above embodiment. Figure 6 The main modules of the model training device are shown in Figure 2. Figure 6 As shown, the model training device 600 in this embodiment includes: a sample collection module 610, configured to obtain a sample address; a sample labeling module 620, configured to label the sample address with an entity label set to obtain a sample label sequence for each sample address; a sample processing module 630, configured to process each labeled sample address to obtain a sample vector matrix; a model construction module 640, configured to construct a network model based on a recurrent neural network and a probabilistic undirected graph model; and a model training module 650, configured to take the sample vector matrix as input and the corresponding sample label sequence as output, train the network model, and obtain an entity information labeling model.

[0093] Furthermore, the model training device 600 may also include modules for implementing other process steps of the above-mentioned model training method embodiment. The specific principles of each module can refer to the description of the above-mentioned model training method embodiment, and will not be repeated here.

[0094] As described above, the entity information labeling model generated by the model training method of this embodiment, when applied to the actual address information extraction scenario, can output an entity label sequence that accurately identifies the points of interest / road information in the receiving address. The target local address extracted according to the entity information labeling model can help the courier quickly lock the specific receiving area of ​​the receiving address, improve logistics distribution efficiency, save logistics distribution costs, and also improve the user's receiving experience.

[0095] An embodiment of the present invention also provides an electronic device, including a processor and a memory, wherein executable instructions are stored in the memory, and when the executable instructions are executed by the processor, the address information extraction method / model training method described in any of the above embodiments is implemented.

[0096] As described above, the electronic device of the present invention can obtain the entity label sequence of the delivery address through the entity information labeling model, extract the target local address corresponding to the point of interest label / road label, and highlight it, so as to help the courier quickly lock the specific delivery area of ​​the delivery address, improve the logistics distribution efficiency, and also improve the user's delivery experience.

[0097] Figure 7 is a schematic diagram of the structure of an electronic device in an embodiment of the present invention. It should be understood that: Figure 7 The modules are only schematically shown, and these modules may be virtual software modules or actual hardware modules. The combination and splitting of these modules and the addition of other modules are all within the protection scope of the present invention.

[0098] like Figure 7 As shown, the electronic device 700 is in the form of a general computing device. The components of the electronic device 700 include but are not limited to: at least one processing unit 710, at least one storage unit 720, a bus 730 connecting different platform components (including the storage unit 720 and the processing unit 710), a display unit 740, etc.

[0099] The storage unit stores program codes, which can be executed by the processing unit 710, so that the processing unit 710 performs the steps of the address information extraction method / model training method described in any of the above embodiments. For example, the processing unit 710 can perform the following steps: Figure 1 , Figure 2 and Figure 5 Steps shown.

[0100] The storage unit 720 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 7201 and / or a cache storage unit 7202 , and may further include a read-only storage unit (ROM) 7203 .

[0101] The storage unit 720 may also include a program / utility 7204 having one or more program modules 7205, such program modules 7205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0102] Bus 730 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0103] The electronic device 700 can also communicate with one or more external devices 800, which can be one or more of a keyboard, a pointing device, a Bluetooth device, etc. These external devices 800 enable the user to communicate interactively with the electronic device 700. The electronic device 700 can also communicate with one or more other computing devices, and the computer device shown includes a router and a modem. This communication can be performed through an input / output (I / O) interface 750. In addition, the electronic device 700 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN) and / or a public network, such as the Internet) through a network adapter 760. The network adapter 760 can communicate with other modules of the electronic device 700 through a bus 730. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms.

[0104] The embodiment of the present invention further provides a computer-readable storage medium for storing a program, which, when executed, implements the address information extraction method / model training method described in any of the above embodiments. In some possible implementations, various aspects of the present invention may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the address information extraction method / model training method described in any of the above embodiments.

[0105] As described above, the computer-readable storage medium of the present invention can obtain the entity label sequence of the delivery address through the entity information labeling model, extract the target local address corresponding to the point of interest label / road label, and highlight it, so as to help the courier quickly lock the specific delivery area of ​​the delivery address, improve the logistics distribution efficiency, and also improve the user's delivery experience.

[0106] Figure 8 Schematic diagram of the structure of the computer-readable storage medium of the present invention. Figure 8 As shown, a program product 900 for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.

[0107] The program product may adopt any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media include, but are not limited to: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0108] Computer-readable storage media may include data signals propagated in baseband or as part of a carrier wave, wherein readable program codes are carried. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program code contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination thereof.

[0109] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device, such as through the Internet using an Internet service provider.

[0110] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.

Claims

1. A method for extracting address information, It is characterized in that include: Receiving address; Processing the recipient address to generate a vector matrix; Inputting the vector matrix into an entity information labeling model to obtain an entity label sequence, wherein the entity label sequence includes an entity label corresponding to each local address segment in the recipient address; Determine whether the entity tag sequence includes a point of interest tag, if so, use the point of interest tag as the target entity tag, if not, use the road tag as the target entity tag; Filtering out a target local address corresponding to the target entity tag from the entity tag sequence, and highlighting the target local address; and Search whether there is an automatic delivery point within the delivery range of the target local address; If so, the terminal local address of the receiving address after the target local address is displayed encrypted, and the automatic receiving point is highlighted near the target local address.

2. The address information extraction method according to claim 1, It is characterized in that The automatic delivery points include smart express cabinets and smart express stations.

3. The address information extraction method according to claim 1, It is characterized in that Also includes: Print the express delivery label according to the highlighted delivery address.

4. The address information extraction method according to claim 1, It is characterized in that The processing of the recipient address to generate a vector matrix includes: Preprocessing the recipient address to generate an address text in a preset format; According to the data dictionary, the words in the address text are converted into numbers to generate a number sequence; The numbers corresponding to each word in the digital sequence are converted into vectors, and the converted vectors are concatenated according to the word order of the address text to generate a vector matrix.

5. The address information extraction method according to claim 4, It is characterized in that The entity information labeling model includes a recurrent neural network and a probabilistic undirected graph model; The obtaining of the entity tag sequence includes: The recurrent neural network obtains a feature vector corresponding to each word according to the vector matrix; The probabilistic undirected graph model obtains a probability matrix including a probability sequence of each word corresponding to each entity label according to the feature vector, and outputs an optimal label sequence as the entity label sequence according to the probability matrix; In the optimal label sequence, each word corresponds to an entity label, and according to the word order, each plurality of consecutive words corresponds to the same entity label.

6. An address information extraction device, It is characterized in that include: An address receiving module configured to receive a recipient address; A data processing module, configured to process the recipient address to generate a vector matrix; An entity labeling module is configured to input the vector matrix into an entity information labeling model to obtain an entity label sequence, wherein the entity label sequence includes an entity label corresponding to each local address segment in the recipient address; a target determination module, configured to determine whether the entity tag sequence includes a point of interest tag, and if so, use the point of interest tag as the target entity tag; if not, use the road tag as the target entity tag; a highlighting module, configured to filter out a target local address corresponding to the target entity tag from the entity tag sequence, and highlight the target local address; and The address information extraction device is further configured as follows: Search whether there is an automatic delivery point within the delivery range of the target local address; If so, the terminal local address of the receiving address after the target local address is displayed encrypted, and the automatic receiving point is highlighted near the target local address.

7. An electronic device, It is characterized in that include: A processor; a memory storing executable instructions; Wherein, when the executable instruction is executed by the processor, the address information extraction method as described in any one of claims 1-5 is implemented.

8. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed, the address information extraction method according to any one of claims 1 to 5 is implemented.