Business site allocation method, device, equipment and storage medium
By generating a network point configuration table and performing address segmentation, combined with multi-level address hierarchy standards, the problem of inaccurate network point matching caused by incomplete waybill addresses was solved, achieving accurate delivery and cost optimization for express delivery.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- 丰图科技(深圳)有限公司
- Filing Date
- 2021-12-29
- Publication Date
- 2026-07-28
AI Technical Summary
The existing technology lacks sufficient accuracy in waybill address information, making it impossible to accurately match the appropriate business outlets at each level, resulting in reduced express delivery timeliness and increased transportation costs.
By pre-generating a branch configuration table to store address terms, business branches, and matching strategies, address word segmentation is performed to obtain a term list. Target business branches are then assigned according to the matching strategy. Combining multi-level address hierarchy standards reduces computational load and improves matching speed and accuracy.
It enables precise matching of appropriate business outlets at each level even when the waybill address is not detailed, improving delivery timeliness and reducing transportation costs.
Smart Images

Figure CN116431624B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of address identification and matching technology, and more specifically, relates to a business outlet allocation method, apparatus, device and storage medium. Background Technology
[0002] Currently, logistics companies provide delivery services based on waybill addresses. This requires obtaining the destination address from the waybill to allocate the package to the nearest branch for delivery. However, in the actual process of branch allocation, issues such as improper or incorrect waybill entries often result in the waybill address lacking detailed house numbers and points of interest information. In such cases, geocoding services can only identify linear or area-like regions such as roads, villages, and towns, failing to pinpoint specific locations. This lack of precision prevents accurate matching of the package to a suitable branch, leading to reduced delivery time and increased transportation costs. Summary of the Invention
[0003] In response to at least one defect or improvement requirement in the prior art, the present invention provides a business outlet allocation method, apparatus, equipment and storage medium to solve the technical problem that the accuracy of waybill information in the prior art does not meet the requirements for precise matching, and that it is impossible to accurately match express shipments to suitable business outlets at each level.
[0004] To achieve the above objectives, according to a first aspect of the present invention, a method for allocating business outlets is provided, comprising the steps of:
[0005] A pre-generated branch configuration table is prepared, which pre-stores multiple address terms, the business branches matched by each address term, and a matching strategy. The matching strategy is used to define the matching conditions for matching target business branches based on address terms.
[0006] The address text to be identified is segmented into words to obtain a list of words for the address text to be identified;
[0007] Obtain the target address terms in the term list that match the network configuration table, and assign target business networks to the address text to be identified according to the matching strategy of the target address terms.
[0008] In one possible implementation of this application, before the pre-generating of the branch configuration table, the following steps are also included:
[0009] A multi-level address hierarchy standard is predefined in the network configuration table, wherein the multi-level address hierarchy standard is used to define the address hierarchy of each address term in the network configuration table;
[0010] The pre-generated branch configuration table includes:
[0011] The address entries in the network configuration table are hierarchically assigned according to the multi-level address hierarchy standard to obtain the network configuration table.
[0012] In one possible implementation of this application,
[0013] The step of obtaining the target address entries in the entry list that match the network configuration table includes:
[0014] Obtain each address level of each address term in the network configuration table, and record it as the relevant address level of the network configuration table;
[0015] Extract each address term from the relevant address level in the term list and denote it as the term to be matched;
[0016] Query the target address entries in the network configuration table that have the same address level as the term to be matched.
[0017] In one possible implementation of this application, obtaining the target address term in the term list that matches the network configuration table includes:
[0018] The address levels in the network configuration table are sorted according to a preset order to obtain the address level order;
[0019] According to the address hierarchy order, query the network configuration table for target address terms that have the same address hierarchy as the term to be matched.
[0020] In one possible implementation of this application, the matching strategy includes a first matching strategy and a second matching strategy:
[0021] The first matching strategy is that the restriction condition for matching the target address term to the target business outlet is empty;
[0022] The second matching strategy is to obtain the target address level restricted address entries of the target address entries in the term list, and match the corresponding target business outlets according to the restricted address entries of the target address level.
[0023] In one possible implementation of this application, the step of assigning target business outlets to the address text to be identified according to the matching strategy of the target address term includes:
[0024] Obtain the matching strategy for the target address term in the network configuration table;
[0025] If the matching strategy of the target address term is the first matching strategy, then the business outlet associated with the target address term in the outlet configuration table is determined to be the target business outlet of the address text to be identified;
[0026] If the matching strategy for the target address term is the second matching strategy, obtain the restricted address terms at the target address level of the target address term in the term list, and determine the target business outlet of the address text to be identified based on the restricted address terms and the target address terms.
[0027] In one possible implementation of this application, the step of performing word segmentation on the address text to be identified to obtain a list of terms for the address text to be identified includes:
[0028] Obtain the address text to be identified, and extract the target character vector of the address text to be identified;
[0029] Generate a character vector sequence of the address text to be identified based on the target character vector;
[0030] The character vector sequence is input into the address text segmentation model to obtain a list of terms corresponding to the address text to be identified.
[0031] According to a second aspect of the present invention, a business outlet allocation device is provided, the business outlet allocation device comprising:
[0032] The branch configuration module is configured to pre-generate a branch configuration table. The branch configuration table pre-sets multiple address terms, business branches matched by each address term, and matching strategies according to address levels. The matching strategies are used to define the matching conditions for matching target business branches based on address terms.
[0033] The term acquisition module is configured to perform word segmentation on the address text to be identified, and obtain a term list of the address text to be identified;
[0034] The branch allocation module is configured to obtain target address terms that match the branch configuration table from the term list, and allocate target business branches to the address text to be identified according to the matching strategy of the target address terms.
[0035] According to a third aspect of the present invention, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement any of the above-described business outlet allocation methods.
[0036] According to a fourth aspect of the present invention, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements any of the above-described business outlet allocation methods.
[0037] This application predefines address terms, matching business outlets for each address term, and matching strategies in a network point configuration table. After generating the network point configuration table, it obtains the address text to be identified from the express waybill, performs word segmentation on the address text to obtain a list of terms in the address text, queries the network point configuration table for target address terms that match the term list, and assigns target business outlets to the address text to be identified according to the matching strategy of the target address terms. This allows for the allocation of suitable business outlets to the address text to be identified based on the configuration table when precise hierarchical matching is not possible. Furthermore, by predefining multi-level address hierarchy standards, it reduces the computational load during matching, improves matching speed, and thus enhances the computational performance of the business outlet allocation system when processing massive amounts of data. Attached Figure Description
[0038] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0039] Figure 1 This is a schematic diagram illustrating a scenario of the business outlet allocation method according to an embodiment of the present invention;
[0040] Figure 2 This is a flowchart illustrating one embodiment of the business outlet allocation method provided in this application.
[0041] Figure 3 This is a flowchart illustrating one embodiment of the business outlet allocation method provided in this application for determining target address terms;
[0042] Figure 4 This is a flowchart illustrating an embodiment of the business outlet allocation method provided in this application for determining a target business outlet based on a matching strategy.
[0043] Figure 5 This is a schematic diagram of one embodiment of the business outlet allocation device in this application.
[0044] Figure 6 This is a schematic diagram of an embodiment of the business outlet allocation device provided in this application. Detailed Implementation
[0045] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0046] In the description of this invention, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicating orientation or positional relationships based on the orientation or positional relationships shown in the accompanying drawings, are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of the stated features. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.
[0047] In this application, the term "exemplary" is used to mean "serving as an example, illustration, or description." Any embodiment described as "exemplary" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use the invention. Details are set forth in the following description for purposes of explanation. It should be understood that those skilled in the art will recognize that the invention can be made without using these specific details. In other instances, well-known structures and processes will not be described in detail to avoid obscuring the description of the invention with unnecessary detail. Therefore, the invention is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed in this application.
[0048] Currently, logistics companies provide delivery services based on waybill addresses. This requires obtaining the destination address from the waybill to allocate the package to the nearest branch for delivery. However, in the actual process of branch allocation, issues such as improper or incorrect waybill entries often result in the waybill address lacking detailed house numbers and points of interest information. In such cases, geocoding services can only identify linear or area-like regions such as roads, villages, and towns, failing to pinpoint specific locations. This lack of precision prevents accurate matching of the package to a suitable branch, leading to reduced delivery time and increased transportation costs.
[0049] Based on this, this application proposes a business outlet allocation method, apparatus, equipment and storage medium to solve the technical problem in the prior art that the accuracy of waybill information does not meet the requirements for precise matching, and that it is impossible to accurately match express parcels to suitable business outlets at each level.
[0050] like Figure 1 As shown, Figure 1 This is a schematic diagram of a scenario for a business outlet allocation method according to an embodiment of the present invention. The business outlet allocation scenario in this embodiment includes a business outlet allocation device 100 (which integrates a business outlet allocation unit), and the business outlet allocation device 100 is equipped with a computer-readable storage medium corresponding to the business outlet allocation method to execute the steps of the business outlet allocation method.
[0051] Understandable, Figure 1 The business outlet allocation device in the scenario of the business outlet allocation method shown, or the device included in the business outlet allocation device, does not constitute a limitation on the embodiments of the present invention. That is, the number or type of the business outlet allocation device in the scenario of the business outlet allocation method, or the number or type of the device included in each device, does not affect the overall implementation of the technical solution in the embodiments of the present invention, and can all be considered as equivalent substitutions or derivatives of the technical solutions claimed in the embodiments of the present invention.
[0052] In this embodiment of the invention, the business outlet allocation device 100 is mainly used to: pre-generate an outlet configuration table, wherein the outlet configuration table pre-stores multiple address entries, business outlets matched by each address entry, and matching strategies, wherein the matching strategies are used to define matching conditions for matching target business outlets based on address entries;
[0053] The address text to be identified is segmented into words to obtain a list of words for the address text to be identified;
[0054] Obtain the target address terms in the term list that match the network configuration table, and assign target business networks to the address text to be identified according to the matching strategy of the target address terms.
[0055] In this embodiment of the invention, the service outlet allocation device 100 can be an independent service outlet allocation device, such as a mobile phone, tablet computer, smart TV, network device, server, and smart computer, or it can be a service outlet allocation network or service outlet allocation cluster composed of multiple service outlet allocation devices.
[0056] This application provides a business outlet allocation method, apparatus, device, and computer-readable storage medium, which will be described in detail below.
[0057] It will be understood by those skilled in the art that Figure 1 The application environment shown is only one application scenario related to the solution of this application and does not constitute a limitation on the application scenario of this application. Other application environments may include more than one application scenario. Figure 1 The diagram shows more or fewer service point allocation devices, or service point allocation network connections, for example... Figure 1 Only one business outlet allocation device is shown in the figure. It can be understood that the scenario of this business outlet allocation method may also include one or more business outlet allocation devices, which are not limited here. The business outlet allocation device 100 may also include a memory for storing the outlet configuration table and other data.
[0058] It should be noted that, Figure 1 The schematic diagram of the business outlet allocation method shown is merely an example. The scenarios of the business outlet allocation method described in this embodiment of the invention are intended to more clearly illustrate the technical solutions of this embodiment and do not constitute a limitation on the technical solutions provided by this embodiment of the invention.
[0059] Based on the scenarios described above regarding the business outlet allocation method, various embodiments of the business outlet allocation method disclosed in this invention are proposed.
[0060] like Figure 2 As shown, Figure 2 This is a flowchart illustrating one embodiment of the business outlet allocation method provided in this application. Specifically, the business outlet allocation method includes the following steps 201-203:
[0061] 201. Pre-generate the branch configuration table;
[0062] The business outlet allocation method in this embodiment is applied to a business outlet allocation device. The type and number of business outlet allocation devices are not specifically limited. That is, the business outlet allocation device can be one or more smart terminals or servers. Optionally, in a specific embodiment, the business outlet allocation device is a smart computer.
[0063] Specifically, when the service point allocation device is in operation, it can receive service point allocation requests. These requests are images or scanned copies of logistics parcel waybills carrying address text to be identified, requesting the device to recognize the address text and allocate the parcel to a service point. The triggering method for these requests is not specifically limited; that is, the request can be actively triggered by logistics sorting personnel clicking the service point allocation button on the device. Alternatively, the request can be automatically triggered by the device itself. For example, the device can periodically scan parcel allocation applications, and when it scans a logistics parcel waybill without an assigned service point, it automatically triggers the allocation request to allocate the waybill.
[0064] Specifically, before receiving a service outlet allocation operation, the service outlet allocation device pre-generates an outlet configuration table. This table stores multiple address terms, the service outlets matched to each address term, and the matching strategy. The matching strategy defines the matching conditions for matching target service outlets based on address terms. Specifically, the matching strategy defines whether there are matching restrictions when matching an address term to a target service outlet, thereby resolving matching errors that may occur due to the inability to perform precise matching at each level and the existence of terms with the same name in different locations.
[0065] Specifically, the matching strategy includes a first matching strategy and a second matching strategy. The first matching strategy means that the restriction condition for matching the address term to the business outlet in the outlet configuration table is empty, and the second matching strategy means that the restriction condition for matching the address term to the business outlet exists in the outlet configuration table.
[0066] Optionally, different matching restrictions can be preset in the second matching strategy.
[0067] Specifically, before generating the branch network configuration table, the service branch allocation equipment predefines a multi-level address hierarchy standard within the configuration table. Address hierarchy is an identifier representing a geographical area. The multi-level address hierarchy standard defines the address hierarchy of each address term in the configuration table, with the address hierarchy from highest to lowest corresponding to a decreasing geographical area. The multi-level address hierarchy standard can be 1 (province), 2 (city), 3 (district / county), and so on.
[0068] Optionally, the business outlet allocation device can define the outlet configuration table in several ways. In one specific embodiment, the configuration table is manually edited and maintained. For example, each region is assigned a dedicated business operations personnel who define the logistics coverage area by analyzing operational data or obtaining information, obtaining the mapping relationship between each address term and the business outlet, and creating the outlet configuration table based on the mapping relationship. Optionally, in another specific embodiment, the outlet configuration table can be generated by the business outlet allocation device traversing historical business data of logistics outlet allocation, analyzing the historical business data, determining the logistics coverage area, obtaining the mapping relationship between each address term and the business outlet, and inputting each address term, business outlet, and mapping relationship into a preset database table.
[0069] After importing address terms, business outlets, and their mapping relationships into a preset database table, the business outlet allocation device performs hierarchical allocation of address terms in the outlet configuration table according to a multi-level address hierarchy standard, thereby obtaining the outlet configuration table. Table 1 shows a specific embodiment of the outlet configuration table. Column 1 is an example of an address term; column 2 is the address hierarchy of each term; column 3 represents the business outlets matched with each term; column 4 is the matching strategy for terms to outlets; and columns 5 and 6 are the restrictions on terms to business outlets. In this example, the standard address hierarchy of the outlet configuration table includes streets / townships, villages, and roads. 5 (streets / townships), 6 (villages / communities), and 9 (roads) are the corresponding standard address hierarchy codes. Other standard address hierarchies can also be defined.
[0070] In this example, the branch configuration table contains three matching strategies: 0 (unrestricted), 1 (district / county restriction), and 2 (street / town / township restriction). 0 (unrestricted) represents the first matching strategy, meaning there are no restrictions on matching address terms to business branches. 1 (district / county restriction) and 2 (street / town / township restriction) represent the second matching strategy, meaning there are restrictions on matching address terms to business branches.
[0071]
[0072]
[0073] Table 1
[0074] The standard address hierarchy, business outlets, matching strategies, and associated information of business outlets in the outlet configuration table can be customized by business maintenance personnel based on actual logistics coverage business data, and can also be edited and modified as needed.
[0075] 202. Perform word segmentation on the address text to be identified to obtain a list of words in the address text to be identified.
[0076] After receiving a service outlet allocation request, the service outlet allocation device obtains the address text to be identified, performs word segmentation on the address text, and obtains a list of terms for the address text to be identified. Word segmentation involves dividing a continuous string of address text to be identified into multiple key terms. Optionally, the service outlet allocation device can train an address word segmentation model and use this model to perform word segmentation on the obtained address text to be identified.
[0077] Specifically, the business outlet allocation device is pre-set with an address text segmentation model for segmenting the address to be identified. This address text segmentation model can be any deep learning model. Specifically, the business outlet allocation device generates a preset model and inputs the training address text into it. The preset model performs segmentation training and recognition classification on the training address text, using the training labels corresponding to the training address text as the training output. The loss function value of the preset model is calculated by comparing the model output and the training labels. The parameters of the preset model are adjusted based on this loss function value until the preset model training converges, resulting in the address text segmentation model.
[0078] After the business outlet's distribution equipment obtains the address text to be identified, it inputs the address text to be identified into the trained address text segmentation model. The address text segmentation model generates target character vectors for each character in the address text to be identified. Based on the target character vectors, the target character vector sequence corresponding to the target address text is obtained. By classifying and recognizing the target character vectors, the corresponding target label sequence is obtained, and the segmentation result corresponding to the address text to be identified is obtained based on the target label sequence.
[0079] Optionally, the business outlet allocation device also predefines multi-level address hierarchy standards for the address text segmentation model, and the word list after segmentation also includes the address hierarchy of each word.
[0080] Assuming the address text to be identified is “Linyuan Road, High-tech Development Zone, Bao'an District, Shenzhen”, the word list of the address text to be identified can be obtained by the address word segmentation model as “Shenzhen|Bao'an|High-tech Development|Linyuan|”. The business outlet allocation device can also divide the word list after word segmentation into address levels according to the predefined multi-level address level standard. That is, the word list of the address text to be identified, “Linyuan Road, High-tech Development Zone, Bao'an District, Shenzhen”, is Shenzhen (2) Bao'an (3) High-tech Development (4) Linyuan (9).
[0081] Assuming the address text to be identified is “Hongshan Village, Baoan District, Shenzhen”, multiple entries can be obtained through word segmentation as “Shenzhen (2)|Baoan (3)|Hongshan (6)”.
[0082] Assuming the address text to be identified is “Gushu New Village, Songgang Town, Baoan District, Shenzhen”, then multiple entries can be obtained through word segmentation as “Shenzhen (2)|Baoan (3)|Songgang (5)|Gushu New (6)”.
[0083] S203, obtain the target address entries in the entry list that match the network configuration table, and assign target business network points to the address text to be identified according to the matching strategy of the target address entries.
[0084] After obtaining the list of terms for the address text to be identified, the service outlet allocation device retrieves the target address terms that match the term list from the outlet configuration table, and allocates the target service outlet to the address text to be identified according to the matching strategy of the target address terms. The target address term is the same address term in the term list and the target configuration table at the same address level.
[0085] Specifically, the service outlet allocation device traverses the target address terms in the terminology list and the outlet configuration table according to a preset multi-level address hierarchy standard. The target address term is the same address term in both the terminology list and the target configuration table at the same address hierarchy. For example, if both the terminology list and the outlet configuration table include the address term "Bao'an," but if any address term in the terminology list or the outlet configuration table has an address hierarchy other than 3, then the address term "Bao'an" in the terminology list and the address term "Bao'an (address level 3)" in the outlet configuration table cannot be considered the same term.
[0086] Optionally, in one specific embodiment, the network configuration table is as shown in Table 1, and the address term to be identified is “Shenzhen|Baoan|High-tech Development|Linyuan|”, which includes the term “Linyuan” in the network configuration table. Therefore, the network A mapped by the target address term “Linyuan” in the network configuration table is matched as the target business network to the address to be identified.
[0087] Preferably, if a multi-level address hierarchy standard is predefined, in order to reduce the amount of computation, the same term is searched according to the address hierarchy.
[0088] Specifically, after obtaining the target address terms from the term list and the branch configuration table, the branch allocation device further determines the target service branch based on the matching strategy of the target address terms. The branch allocation device reads the branch configuration table, determines the matching strategy corresponding to the target address term, judges the matching restrictions between the target address term and the service branch, and determines whether the service branch is the target service branch based on the matching restrictions, thereby avoiding incorrect matching due to address name conflicts.
[0089] In this embodiment, the branch allocation device predefines address terms, matching business branches for each address term, and matching strategies in a branch configuration table. After generating the branch configuration table, it obtains the address text to be identified from the express waybill, performs word segmentation on the address text to obtain a list of terms in the address text to be identified, queries the branch configuration table for target address terms that match the term list, and assigns target business branches to the address text to be identified according to the matching strategy of the target address terms. This enables the allocation of suitable business branches to the address text to be identified based on the configuration table when precise matching at each level is not possible. Furthermore, by predefining multi-level address hierarchy standards, the amount of matching calculations during the matching process is reduced, the matching speed is improved, and thus the computational performance of the business branch allocation system when processing massive amounts of data is enhanced.
[0090] like Figure 3 As shown, Figure 3 This is a flowchart illustrating one embodiment of the business outlet allocation method provided in this application for determining target address terms.
[0091] Based on the above embodiments, this application embodiment determines the target address entry by obtaining the relevant address levels in the network configuration table. Specifically, it includes steps 301-303:
[0092] 301. Obtain each address level of each address term in the network configuration table, and record it as the relevant address level of the network configuration table;
[0093] The business outlet allocation device allocates address entries in the outlet configuration table hierarchically according to the multi-level address hierarchy standard. As shown in Table 1 of the above embodiment, the address hierarchy of all entries in the outlet configuration table includes 5 (street / town / village), 6 (village / community) and 9 (road).
[0094] After obtaining the corresponding term list based on the address text to be identified, the business outlet allocation device obtains the address level of each address term in the term list. After obtaining the address level of each address term in the term list, the business outlet allocation device further obtains the address level in the outlet configuration table that is the same as the address level of each address term, and marks it as the relevant address level in the outlet configuration table. Optionally, in a specific embodiment, if the address term in the term list is "Dock Road (9)", then the address level corresponding to the address term is the road level, and the business outlet allocation device determines the address level of the road level in the outlet configuration table as the relevant address level.
[0095] S302, extract each address term from the relevant address level in the term list and record it as the term to be matched.
[0096] Specifically, when address levels are defined, the target address term refers to the same term in the term list and the branch configuration list at the same address level. Therefore, it is only necessary to query all terms in the term list and the configuration table at the relevant address level, which can further reduce the amount of computation. After determining the relevant address levels of the term list and the branch configuration list, the service branch allocation device traverses each address term in the relevant address level of the branch configuration list and records them as terms to be matched.
[0097] S303, query the target address entries in the network configuration table that have the same address level as the term to be matched.
[0098] The service outlet allocation device sorts the address levels in the outlet configuration table according to a preset order to obtain the address level order. In one specific embodiment, the preset order can be from high to low, and optionally, the preset order can also be customized according to the actual application scenario requirements. Taking Table 1 as an example, the address levels of all address entries in the outlet configuration table from high to low are 5 (street / town / village), 6 (village / community), and 9 (road).
[0099] After sorting the address levels according to a preset order, the business outlet allocation device queries the outlet configuration table for address terms with the same address level as the term to be matched, and determines whether the address term is the same as the term to be matched. If the address term is the same as the term to be matched, then the term is determined to be the target address term.
[0100] Optionally, in one specific embodiment, the address hierarchy of the branch configuration table is the same as that of Table 1. The business branch allocation device first queries whether there is a matching address term for the address hierarchy of the field to be matched (5). If there is, the address term is determined to be the target address term, and the target business branch is matched to the address text to be identified according to the matching strategy of the target address term. If not, it then queries whether there is a matching term for the address hierarchy of the field to be matched (6), and so on.
[0101] In this embodiment, the service outlet allocation device obtains the address levels of each address term in the outlet configuration table, denoted as the relevant address levels of the outlet configuration table; extracts each address term from the relevant address levels in the term list, denoted as the term to be matched; and queries the outlet configuration table for target address terms that have the same address level as the term to be matched. This achieves the goal of narrowing the search range of target address terms based on address levels, reducing computational load, and improving query accuracy.
[0102] like Figure 4 As shown, Figure 4 This is a flowchart illustrating one embodiment of the business outlet allocation method provided in this application for determining the target business outlet based on a matching strategy.
[0103] Based on the above embodiments, this application embodiment determines the target business outlet by pre-setting a matching strategy for target address terms and according to the matching strategy. Specifically, it includes steps 401-403:
[0104] 401. Obtain the matching strategy for the target address term in the network configuration table;
[0105] When creating the branch configuration table, the business branch allocation device presets a corresponding matching strategy for each address term in the branch configuration table. This matching strategy is used to achieve accurate matching between the target address term and the target business branch, avoiding branch matching errors due to duplicate names.
[0106] Specifically, the service outlet allocation device presets a first matching strategy and a second matching strategy based on whether there are duplicate entries for the target address term. The first matching strategy is set when there are no duplicate names for the target address term, and there are no restrictions on matching the target address term with the target service outlet. The second matching strategy is set when there are duplicate names for the target address term, and the target address term needs to be confirmed with the restricted address term to confirm the service policy of the target service outlet.
[0107] As shown in Table 1, different matching strategy numbers are set according to different matching strategies. Number 0 represents the first matching strategy, number 1 represents the second matching strategy with district / county restrictions, and number 2 represents the second matching strategy with street / township restrictions. The service outlet allocation device matches the target address terms with the target service outlets according to different matching strategies to determine the target service outlet for the address text to be identified.
[0108] 402. If the matching strategy of the target address term is the first matching strategy, then the business outlet associated with the target address term in the outlet configuration table is determined to be the target business outlet of the address text to be identified.
[0109] The service point allocation device uses the service point configuration table to determine that the matching strategy for the target address term is the first matching strategy. It confirms that the matching restriction between the target address term and the service point is empty, meaning there are no duplicate address terms for the target address term. The service point allocation device then reads the service points in the service point configuration table that match the target address term, sets that service point as the target service point for that target address term, identifies that target service point as the target service point for the address text to be identified, and controls the sorting staff to sort the logistics package to that target service point for delivery.
[0110] Optionally, in one specific embodiment, the list of terms for the address to be identified is “Shenzhen|Baoan|Yangliu|”, the business outlet allocation device determines the target address term as “Yangliu (address level 5)”, and the query of the outlet configuration table shows that the matching mode of the term “Yangliu” is 0 (unrestricted). Then, the outlets with the term “Yangliu (address level 5)” in the configuration table are directly matched to the address to be identified.
[0111] 403. If the matching strategy for the target address term is the second matching strategy, obtain the restricted address terms at the target address level of the target address term in the term list, and determine the target business outlet of the address text to be identified based on the restricted address terms and the target address terms.
[0112] The service outlet allocation device uses the outlet configuration table to determine that the target address term has a matching strategy of the second matching strategy. This indicates that the target address term has matching restrictions with the service outlet, meaning there may be duplicate address terms with the same name. The service outlet allocation device reads the outlet configuration table, locates the target address term, and determines the restricted address terms at the target address level. These restricted address terms are used to distinguish duplicate target address terms within the corresponding target address level. This target address level can be the township / street address level or the district address level.
[0113] Specifically, after determining that the matching strategy for the target address term is the second matching strategy, the business outlet allocation device determines the target address level based on the matching strategy number in the outlet configuration table. After obtaining the target address level, it determines the restricted address term. The business outlet allocation device then checks whether the restricted address term exists in the address level corresponding to the target address level in the term list, thereby determining the target business outlet for the target address term.
[0114] Optionally, if the restricted address term exists in the address level corresponding to the target address level in the term list, the business outlet allocation device sets the business outlet corresponding to the target address term in the outlet configuration table as the target business outlet of the target address term, determines the target business outlet as the target business outlet of the address text to be identified, and controls the sorting staff to sort the logistics express to the target business outlet for delivery.
[0115] Optionally, in one specific embodiment, the term list for the address to be identified is "Shenzhen|Bao'an|Hongshan". The business outlet allocation device determines the target address term as "Hongshan (address level 6)". The matching strategy for the term "Hongshan" in the outlet configuration table is found to be 1, meaning the second matching strategy with district / county restrictions has the restriction condition "Bao'an". Therefore, it is necessary to first compare the terms in the term list of the address text to be identified at the district / county (address level 3) level with the restriction condition "Bao'an (address level 3)". If they match, satisfying the matching restriction condition, then the term "Hongshan" in the configuration table is matched as the target business outlet to the address to be identified. Assuming the term list of the address text to be identified is "Shenzhen|Longhua|Hongshan", and its address terms at the district / county level 3 do not include "Bao'an", then the outlet with the term "Hongshan" in the configuration table is not matched to the address to be identified.
[0116] Optionally, in another specific embodiment, the list of terms for the address text to be identified is "Shenzhen|Bao'an|Songgang|Gushu New". The business outlet allocation device determines the target address term "Gushu New (address level 6)" and searches the matching strategy for the term "Gushu New" in the outlet configuration table. It determines that the matching strategy for the address term "Gushu New" is 2, that is, the address term "Gushu New" is the second matching strategy restricted by street or township. If the business outlet allocation device determines that the address level restricted by street / town / township is 5 and the restriction condition is "Songgang", then it is necessary to first compare the address terms related to the street / town / township restriction (address level 5) in the list of terms for the address text to be identified with the restriction condition "Songgang". If they are found to be consistent and meet the matching restriction condition, then the business outlet of the address term "Gushu New" in the outlet configuration table is matched as the target business outlet to the address to be identified.
[0117] Furthermore, if an address term in the network configuration table corresponds to multiple different network addresses, and a unique network cannot be returned, it is considered a matching error. In this case, the next address term at the next address level is selected for matching and identification.
[0118] In this embodiment, the business outlet matching device obtains the matching strategy of the target address term and performs outlet matching on different target address terms using different matching strategies, thereby accurately determining the target business outlet of the target address term. This enables the allocation of a suitable business outlet to the address text to be identified based on the configuration table when it is not possible to achieve accurate matching at each level.
[0119] To better implement the business outlet allocation method in the embodiments of this application, based on the business outlet allocation method, the embodiments of this application also provide a business outlet allocation device, such as... Figure 5 As shown, Figure 5This is a schematic diagram of an embodiment of the business outlet allocation device in this application. The business outlet allocation device 500 includes:
[0120] The branch configuration module 501 is configured to pre-generate a branch configuration table. The branch configuration table pre-sets multiple address terms, business branches matched by each address term, and matching strategies according to address levels. The matching strategies are used to define the matching conditions for matching target business branches based on address terms.
[0121] The term acquisition module 502 is configured to perform word segmentation on the address text to be identified, and obtain a term list of the address text to be identified;
[0122] The branch allocation module 503 is configured to obtain target address terms that match the branch configuration table in the term list, and allocate target business branches to the address text to be identified according to the matching strategy of the target address terms.
[0123] In some embodiments of this application, before the service outlet allocation device 500 pre-generates the outlet configuration table, it further includes:
[0124] A multi-level address hierarchy standard is predefined in the network configuration table, wherein the multi-level address hierarchy standard is used to define the address hierarchy of each address term in the network configuration table;
[0125] The pre-generated branch configuration table includes:
[0126] The address entries in the network configuration table are hierarchically assigned according to the multi-level address hierarchy standard to obtain the network configuration table.
[0127] In some embodiments of this application, the business outlet allocation device 500 obtains target address entries from the entry list that match the outlet configuration table, including:
[0128] Obtain each address level of each address term in the network configuration table, and record it as the relevant address level of the network configuration table;
[0129] Extract each address term from the relevant address level in the term list and denote it as the term to be matched;
[0130] Query the target address entries in the network configuration table that have the same address level as the term to be matched.
[0131] In some embodiments of this application, the business outlet allocation device 500 obtains target address entries from the entry list that match the outlet configuration table, including:
[0132] The address levels in the network configuration table are sorted according to a preset order to obtain the address level order;
[0133] According to the address hierarchy order, query the network configuration table for target address terms that have the same address hierarchy as the term to be matched.
[0134] In some embodiments of this application, the matching strategy of the service outlet allocation device 500 includes a first matching strategy and a second matching strategy:
[0135] The first matching strategy is that the restriction condition for matching the target address term to the target business outlet is empty;
[0136] The second matching strategy is to obtain the target address level restricted address entries of the target address entries in the term list, and match the corresponding target business outlets according to the restricted address entries of the target address level.
[0137] In some embodiments of this application, the service outlet allocation device 500 allocates target service outlets to the address text to be identified according to the matching strategy of the target address term, including:
[0138] Obtain the matching strategy for the target address term in the network configuration table;
[0139] If the matching strategy of the target address term is the first matching strategy, then the business outlet associated with the target address term in the outlet configuration table is determined to be the target business outlet of the address text to be identified;
[0140] If the matching strategy for the target address term is the second matching strategy, obtain the restricted address terms at the target address level of the target address term in the term list, and determine the target business outlet of the address text to be identified based on the restricted address terms and the target address terms.
[0141] In some embodiments of this application, the business outlet allocation device 500 performs word segmentation processing on the address text to be identified to obtain a list of terms for the address text to be identified, including:
[0142] Obtain the address text to be identified, and extract the target character vector of the address text to be identified;
[0143] Generate a character vector sequence of the address text to be identified based on the target character vector;
[0144] The character vector sequence is input into the address text segmentation model to obtain a list of terms corresponding to the address text to be identified.
[0145] In this embodiment, the service outlet allocation device predefines address terms, matching service outlets for each address term, and matching strategies in a service outlet configuration table. After generating the service outlet configuration table, it obtains the address text to be identified from the express waybill, performs word segmentation on the address text to obtain a list of terms in the address text to be identified, queries the service outlet configuration table for target address terms that match the term list, and allocates target service outlets to the address text to be identified according to the matching strategy of the target address terms. This enables the allocation of suitable service outlets to the address text to be identified based on the configuration table when precise matching at each level is not possible. Furthermore, by predefining multi-level address hierarchy standards, the amount of matching calculations during the matching process is reduced, the matching speed is improved, and thus the computational performance of the service outlet allocation system when processing massive amounts of data is enhanced.
[0146] This invention also provides a business outlet allocation device, such as... Figure 6 As shown, Figure 6 This is a schematic diagram of an embodiment of the business outlet allocation device provided in this application.
[0147] The service outlet allocation device integrates any of the service outlet allocation devices provided in the embodiments of the present invention, and the service outlet allocation device includes:
[0148] One or more processors;
[0149] Memory; and
[0150] One or more applications, wherein the one or more applications are stored in the memory and configured by the processor to execute the steps of the business outlet allocation method described in any of the embodiments of the above-described business outlet allocation method.
[0151] Specifically, the service outlet distribution equipment may include components such as a processor 601 with one or more processing cores, a memory 602 with one or more computer-readable storage media, a power supply 603, and an input unit 604. Those skilled in the art will understand that... Figure 6 The structure of the service outlet distribution equipment shown does not constitute a limitation on the service outlet distribution equipment. It may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:
[0152] The processor 601 is the control center of the service outlet distribution equipment. It connects various parts of the equipment via interfaces and lines, and performs various functions and processes data by running or executing software programs and / or modules stored in the memory 602, and by calling data stored in the memory 602, thereby providing overall monitoring of the service outlet distribution equipment. Optionally, the processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 601.
[0153] The memory 602 can be used to store software programs and modules. The processor 601 executes various functional applications and data processing by running the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of equipment allocated by business outlets, etc. In addition, the memory 602 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 601 with access to the memory 602.
[0154] The service outlet distribution equipment also includes a power supply 603 that supplies power to various components. Preferably, the power supply 603 can be logically connected to the processor 601 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 603 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0155] The service outlet distribution device may also include an input unit 604, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0156] Although not shown, the service outlet allocation device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 601 in the service outlet allocation device loads the executable files corresponding to the processes of one or more applications into the memory 602 according to the following instructions, and the processor 601 runs the applications stored in the memory 602 to realize various functions, as follows:
[0157] A pre-generated branch configuration table is prepared, which pre-stores multiple address terms, the business branches matched by each address term, and a matching strategy. The matching strategy is used to define the matching conditions for matching target business branches based on address terms.
[0158] The address text to be identified is segmented into words to obtain a list of words for the address text to be identified;
[0159] Obtain the target address terms in the term list that match the network configuration table, and assign target business networks to the address text to be identified according to the matching strategy of the target address terms.
[0160] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the detailed descriptions of other embodiments above, which will not be repeated here.
[0161] In practice, each of the above units or structures can be implemented as an independent entity or can be arbitrarily combined to be implemented as the same or several entities. For the specific implementation of each of the above units or structures, please refer to the previous method embodiments, which will not be repeated here.
[0162] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0163] The above provides a detailed description of a business outlet allocation method provided by the embodiments of this application. Specific embodiments have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A business site allocation method characterized by comprising: Including the following steps: A pre-generated branch configuration table is prepared, which pre-stores multiple address terms, the business branches matched by each address term, and a matching strategy. The matching strategy is used to define the matching conditions for matching target business branches based on address terms. The address text to be identified is segmented into words to obtain a list of words for the address text to be identified; Obtain target address terms from the term list that match the branch configuration table, obtain the matching strategy for the target address terms in the branch configuration table, and assign target business branches to the address text to be identified according to the matching strategy for the target address terms. The matching strategy includes a first matching strategy and a second matching strategy: the first matching strategy is that if the restriction condition for the target address term to match the target business branch is empty, then the business branch associated with the target address term in the branch configuration table is determined as the target business branch of the address text to be identified; the second matching strategy is to obtain the restriction address terms at the target address level of the target address term in the term list, and determine the target business branch of the address text to be identified according to the restriction address terms and the target address terms.
2. The business outlet allocation method as described in claim 1, characterized in that, Before the pre-generated network configuration table, the following is also included: A multi-level address hierarchy standard is predefined in the network configuration table, wherein the multi-level address hierarchy standard is used to define the address hierarchy of each address term in the network configuration table; The pre-generated branch configuration table includes: The address entries in the network configuration table are hierarchically assigned according to the multi-level address hierarchy standard to obtain the network configuration table.
3. The business outlet allocation method as described in claim 2, characterized in that, The step of obtaining the target address entries in the entry list that match the network configuration table includes: Obtain each address level of each address term in the network configuration table, and record it as the relevant address level of the network configuration table; Extract each address term from the relevant address level in the term list and denote it as the term to be matched; Query the target address entries in the network configuration table that have the same address level as the term to be matched.
4. The business outlet allocation method as described in claim 3, characterized in that, The step of obtaining the target address entries in the entry list that match the network configuration table includes: The address levels in the network configuration table are sorted according to a preset order to obtain the address level order; According to the address hierarchy order, query the network configuration table for target address terms that have the same address hierarchy as the term to be matched.
5. The business outlet allocation method as described in claim 1, characterized in that, The step of performing word segmentation on the address text to be identified to obtain a word list of the address text to be identified includes: Obtain the address text to be identified, and extract the target character vector of the address text to be identified; Generate a character vector sequence of the address text to be identified based on the target character vector; The character vector sequence is input into the address text segmentation model to obtain a list of terms corresponding to the address text to be identified.
6. A business outlet allocation device, characterized in that, The business outlet allocation device includes: The branch configuration module is configured to pre-generate a branch configuration table. The branch configuration table pre-sets multiple address terms, business branches matched by each address term, and matching strategies according to address levels. The matching strategies are used to define the matching conditions for matching target business branches based on address terms. The term acquisition module is configured to perform word segmentation on the address text to be identified, and obtain a term list of the address text to be identified; The branch office allocation module is configured to obtain target address terms from the term list that match the branch office configuration table, obtain the matching strategy of the target address terms in the branch office configuration table, and allocate target business branches to the address text to be identified according to the matching strategy of the target address terms. The matching strategy includes a first matching strategy and a second matching strategy: the first matching strategy is that if the restriction condition for the target address term to match the target business branch is empty, then the business branch associated with the target address term in the branch office configuration table is determined as the target business branch of the address text to be identified; the second matching strategy is to obtain the restriction address terms at the target address level of the target address term in the term list, and determine the target business branch of the address text to be identified according to the restriction address terms and the target address terms.
7. A business outlet allocation device, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the business outlet allocation method according to any one of claims 1 to 5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the business outlet allocation method as described in any one of claims 1 to 5.