Logistics data processing method, device and equipment
By establishing keyword tables and automated address resolution and matching processes, the inefficiency and errors of address matching caused by traditional manual operations are solved, and the accurate matching of express addresses and rapid distribution of packages is achieved, which improves the overall processing speed of express services.
Patent Information
- Application Number
- CN202411162126.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-11-12
AI Technical Summary
The traditional express address matching and distribution methods rely on manual operations, which are inefficient and error-prone, and cannot cope with a large number of delivery needs, resulting in parcel delays and wrong delivery. The existing system lacks flexibility and real-time update capabilities, and cannot adapt to the new outlets in a timely manner. Add and modify.
By establishing keyword tables and automated address resolution and matching processes, address resolution is analyzed using natural language processing and geographic information system technology, and matching matches are queried in keyword tables based on allocation rules, using sequential search, hash search or editing distance algorithms. The database determines the courier or courier company to achieve automated address matching and parcel allocation.
It improves the accuracy and speed of address matching and parcel allocation, reduces manual errors, meets the growing demand for express delivery business, and ensures accurate delivery of parcels.
Smart Images

Figure CN118941184A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a logistics data processing method, device and equipment. Background Art
[0002] In the express logistics industry, accurately and quickly matching the delivery address with the corresponding outlets and reasonably allocating packages to the corresponding couriers or express companies are key links to ensure efficient and accurate express services. However, traditional address matching and allocation methods often rely on manual operations, which are not only inefficient but also prone to errors. Due to the diversity and complexity of addresses, manual processing is difficult to cope with a large number of delivery needs, which can easily lead to package delays and wrong deliveries. At the same time, with the vigorous development of e-commerce business, the volume of express delivery business has increased dramatically, and higher requirements have been placed on the speed and accuracy of address processing. Some existing systems lack flexibility and real-time update capabilities when processing addresses, and cannot adapt to the addition and modification of outlets in a timely manner, resulting in inaccurate address matching. Summary of the invention
[0003] The present invention provides a logistics data processing method, device and equipment, which can more accurately determine the outlet to which a package belongs by establishing a keyword table and an automated address parsing and matching process, thereby reducing the misdelivery of packages due to manual judgment errors.
[0004] In one aspect, the present invention provides a method for processing logistics data, the method comprising:
[0005] Constructing a keyword table corresponding to the logistics platform, the keyword table including the correspondence between the network point identifiers corresponding to the multiple logistics network points in the logistics platform and the pickup codes and keywords corresponding to the multiple logistics network points;
[0006] Obtain the target mailing address corresponding to the target express package, and call the address resolution interface to resolve the target mailing address into a target planning area and a target keyword;
[0007] Querying the keyword table to see whether there is a keyword matching the target keyword;
[0008] If there is a keyword matching the target keyword, obtain the target network point identifier and the target pickup code corresponding to the keyword matching the target keyword;
[0009] A courier or courier company matching the target network point identifier is obtained based on an allocation rule database, and the target express package and the target pickup code are allocated to the matching courier or courier company.
[0010] Optionally, the keyword table corresponding to the construction of the logistics platform includes:
[0011] Obtain the network information of each logistics network in the logistics platform;
[0012] Extract keywords of each logistics network point from the network point information of each logistics network point;
[0013] The network point identification, pickup code and keywords corresponding to each logistics network point are stored in the database to build a keyword table corresponding to the logistics platform.
[0014] Optionally, the calling of the address resolution interface to resolve the target mailing address into a target planning area and a target keyword includes:
[0015] Using natural language processing technology and geographic information system technology, the target mailing address is parsed into structured address components;
[0016] The address resolution interface is called to perform word segmentation, part-of-speech tagging and lexical analysis on the address component to obtain the target planning area and the target keyword.
[0017] Optionally, the querying in the keyword table whether there is a keyword matching the target keyword includes:
[0018] Using a sequential search algorithm, a binary search algorithm or a hash search algorithm to query whether there is a keyword matching the target keyword in the keyword table;
[0019] If there is a keyword matching the target keyword, obtaining a target network point identifier and a target pickup code corresponding to the keyword matching the target keyword includes:
[0020] If there is a keyword matching the target keyword, using an associated data structure to obtain the keyword matching the target keyword;
[0021] Obtain the target network point identifier and target pickup code corresponding to the matched keyword.
[0022] Optionally, the querying in the keyword table whether there is a keyword matching the target keyword includes:
[0023] Using an edit distance algorithm or a regular expression to perform fuzzy matching of keywords, and querying whether there is a keyword that matches the target keyword;
[0024] If it does not exist, return a null value or error handling process.
[0025] Optionally, the acquiring a courier or courier company matching the target network point identifier based on a distribution rule database includes:
[0026] Acquire the allocation rule database, wherein the allocation rule database stores the correspondence between different outlets and couriers or courier companies and allocation priority rules;
[0027] Determining a target priority that matches the target network point identifier according to the allocation priority rule;
[0028] The Dijkstra algorithm, load balancing strategy or preset rules are used to determine the courier or courier company that matches the target priority.
[0029] Optionally, the method further includes:
[0030] The association between the target network point identifier and the matched courier or courier company is stored, and a package tracking record corresponding to the target express package is created.
[0031] Another aspect provides a logistics data processing device, the device comprising:
[0032] A keyword table construction module is used to construct a keyword table corresponding to the logistics platform, wherein the keyword table includes a correspondence between the network point identifiers corresponding to multiple logistics network points in the logistics platform and the pickup codes and keywords corresponding to the multiple logistics network points;
[0033] A keyword parsing module is used to obtain a target mailing address corresponding to a target express package, and call an address parsing interface to parse the target mailing address into a target planning area and a target keyword;
[0034] A query module, used for querying whether there is a keyword matching the target keyword in the keyword table;
[0035] A matching module, configured to obtain a target network point identifier and a target pickup code corresponding to the keyword matching the target keyword if there is a keyword matching the target keyword;
[0036] The allocation module is used to obtain a courier or courier company that matches the target network point identifier based on an allocation rule database, and allocate the target express package and the target pickup code to the matching courier or courier company.
[0037] Optionally, the keyword table construction module includes:
[0038] A network point information acquisition unit, used to acquire network point information of each logistics network point in the logistics platform;
[0039] A keyword extraction unit, used to extract keywords of each logistics network point from the network point information of each logistics network point;
[0040] The keyword table construction unit is used to store the network point identification, collection code and keywords corresponding to each logistics network point in the database to construct the keyword table corresponding to the logistics platform.
[0041] Optionally, the keyword parsing module includes:
[0042] A parsing unit, used to parse the target mailing address into structured address components by using natural language processing technology and geographic information system technology;
[0043] The analysis unit is used to call the address resolution interface to perform word segmentation, part-of-speech tagging and lexical analysis on the address components to obtain the target planning area and the target keyword.
[0044] Optionally, the query module is further used to use a sequential search algorithm, a binary search algorithm or a hash search algorithm to query whether there is a keyword matching the target keyword in the keyword table;
[0045] The matching module comprises:
[0046] A keyword acquisition unit, configured to acquire the keyword matching the target keyword by using an associated data structure if there is a keyword matching the target keyword;
[0047] The target information acquisition unit is used to obtain the target network point identifier and the target pickup code corresponding to the matched keyword.
[0048] Optionally, the query module includes:
[0049] A query unit, used to perform fuzzy matching of keywords using an edit distance algorithm or a regular expression to query whether there is a keyword matching the target keyword;
[0050] Return unit, used to return null value or error handling process if it does not exist.
[0051] Optionally, the allocation module includes:
[0052] A database acquisition unit, used to acquire the allocation rule database, wherein the allocation rule database stores the correspondence between different outlets and couriers or courier companies and allocation priority rules;
[0053] A target priority determination unit, configured to determine a target priority matching the target network point identifier according to the allocation priority rule;
[0054] The allocation unit is used to determine the courier or courier company that matches the target priority by adopting the Dijkstra algorithm, load balancing strategy or preset rules.
[0055] Optionally, the device further comprises:
[0056] The record creation module is used to store the association between the target network point identifier and the matched courier or courier company, and to create a package tracking record corresponding to the target express package.
[0057] On the other hand, an electronic device is provided, which includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the logistics data processing method as described above.
[0058] On the other hand, a computer storage medium is provided, which stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by a processor to implement the logistics data processing method as described above.
[0059] On the other hand, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes to implement the logistics data processing method as described above.
[0060] The logistics data processing method, device and equipment provided by the present invention have the following technical effects:
[0061] The present invention constructs a keyword table corresponding to a logistics platform, wherein the keyword table includes the correspondence between the network point identifications corresponding to multiple logistics network points in the logistics platform and the pickup codes and keywords corresponding to the multiple logistics network points; obtains the target mailing address corresponding to the target express package, and calls the address resolution interface to resolve the target mailing address into a target planning area and a target keyword; queries whether there is a keyword matching the target keyword in the keyword table; if there is a keyword matching the target keyword, obtains the target network point identification and the target pickup code corresponding to the keyword matching the target keyword; obtains the courier or courier company matching the target network point identification based on the allocation rule database, and allocates the target express package and the target pickup code to the matching courier or courier company. The present invention can more accurately determine the network point to which the package belongs by establishing a keyword table and an automated address resolution and matching process, thereby reducing the misdelivery of packages due to manual judgment errors. The automated processing flow greatly shortens the time for address matching and package allocation, speeds up the overall processing speed of express delivery services, and meets the growing business needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] In order to more clearly illustrate the technical solutions and advantages of the embodiments of this specification or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0063] Figure 1 is a schematic diagram of a logistics data processing system provided by an embodiment of this specification;
[0064] Figure 2 It is a flow chart of a logistics data processing method provided in an embodiment of this specification;
[0065] Figure 3 It is a flowchart of a method for constructing a keyword table corresponding to a logistics platform provided in an embodiment of this specification;
[0066] Figure 4 It is a flowchart of a method for calling an address resolution interface to resolve the target mailing address into a target planning area and a target keyword provided by an embodiment of this specification;
[0067] Figure 5 It is a flowchart of a method for obtaining a courier or courier company matching the target network point identifier based on a distribution rule database provided in an embodiment of this specification;
[0068] Figure 6 It is a structural schematic diagram of a logistics data processing device provided in an embodiment of this specification;
[0069] Figure 7 It is a structural diagram of a server provided in an embodiment of this specification. DETAILED DESCRIPTION
[0070] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0071] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0072] See also Figure 1 , Figure 1 is a schematic diagram of a logistics data processing system provided in an embodiment of this specification, such as Figure 1 As shown, the logistics data processing system may include at least a server 01 and a client 02.
[0073] Specifically, in the embodiments of this specification, the server 01 may include an independently operated server, or a distributed server, or a server cluster composed of multiple servers, and may also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. Server 01 may include a network communication unit, a processor, a memory, and the like. Specifically, the server 01 can be used to construct a keyword table corresponding to a logistics platform, and assign the target express package and the target pickup code to the matching courier or courier company.
[0074] Specifically, in the embodiments of this specification, the client 02 may include physical devices such as smart phones, desktop computers, tablet computers, laptop computers, digital assistants, smart wearable devices, smart speakers, vehicle terminals, smart TVs, etc., and may also include software running in physical devices, such as web pages provided by some service providers to users, or applications provided by these service providers to users. Specifically, the client 02 may be used to query the courier or courier company corresponding to the target express package online.
[0075] A logistics data processing method of the present invention is introduced below. Figure 2It is a flow chart of a logistics data processing method provided in an embodiment of this specification. This specification provides method operation steps as described in the embodiment or flow chart, but may include more or fewer operation steps based on conventional or non-creative labor. The order of steps listed in the embodiment is only one way of executing the steps among many orders, and does not represent the only order of execution. When the actual system or server product is executed, it can be executed in sequence or in parallel (for example, in a parallel processor or multi-threaded processing environment) according to the method shown in the embodiment or the accompanying drawings. Specifically, Figure 2 As shown, the method may include:
[0076] S201: Construct a keyword table corresponding to the logistics platform, wherein the keyword table includes correspondences between the network point identifiers corresponding to multiple logistics network points in the logistics platform and the pickup codes and keywords corresponding to the multiple logistics network points.
[0077] In the embodiments of this specification, Figure 3 As shown, the keyword table corresponding to the construction of the logistics platform includes:
[0078] S20101: Obtain the network point information of each logistics network point in the logistics platform;
[0079] S20103: extracting keywords of each logistics network point from network information of each logistics network point;
[0080] S20105: Store the network point identification, pickup code and keywords corresponding to each logistics network point in the database, and build a keyword table corresponding to the logistics platform.
[0081] In the embodiments of this specification, when first constructed, all outlet information is traversed, keywords (such as place names, landmark buildings, etc.) of each outlet are extracted, and these keywords are stored in the database together with outlet ID, pickup code and other information. A monitoring mechanism or scheduled task is designed to detect changes in outlet information (additions, deletions, and modifications), and corresponding operations are performed to update the keyword table. For example, a trigger is used to automatically insert a keyword record when a new outlet is added, or an API call is used to confirm and update. An existing keyword table is read from a database or data storage.
[0082] Exemplarily, when there is an update of a logistics outlet, the outlet identification, pickup code, and keywords of the updated logistics outlet can be determined and stored in the database to obtain an updated keyword table. When there is updated information of the logistics outlet, the updated information can include the outlet identification, pickup code, and keywords. The updated information in the keyword table can be updated to obtain an updated keyword table. When there is an operation of adding or modifying an outlet, the corresponding event handler is triggered. This program will obtain detailed information of the new outlet, extract relevant keywords, and integrate them into the existing keyword table. Data structures such as hash tables or binary search trees can be used to store and quickly find keywords to improve the efficiency of update operations.
[0083] S203: Obtain a target mailing address corresponding to a target express package, and call an address resolution interface to resolve the target mailing address into a target planning area and a target keyword.
[0084] In the embodiments of this specification, Figure 4 As shown, the calling address resolution interface resolves the target mailing address into a target planning area and a target keyword, including:
[0085] S2031: using natural language processing technology and geographic information system technology to parse the target mailing address into structured address components;
[0086] S2033: Call the address resolution interface to perform word segmentation, part-of-speech tagging and lexical analysis on the address components to obtain the target planning area and the target keyword.
[0087] In the embodiments of this specification, a third-party or self-built address resolution service is called through an HTTP request, and the complete address string is passed in. According to the returned JSON or XML data, the planning area (such as the administrative division code) and keywords are extracted, and the complete address string is received as input. Natural language processing (NLP) and geographic information system (GIS) technology are used to parse it into structured address components, such as cities, streets, house numbers, etc. After receiving the new shipping address, a special address resolution interface is called. This interface can use natural language processing technology and geographic coding libraries to perform word segmentation, part-of-speech tagging and lexical analysis on the address. Through pattern matching and rule engines, the address is decomposed into planning areas (such as cities, counties, etc.) and keywords (such as specific street names, landmark buildings, etc.).
[0088] S205: Query the keyword table to see whether there is a keyword matching the target keyword.
[0089] In the embodiment of the present specification, the obtained target keyword may be compared with the keyword table.
[0090] In the embodiment of the present specification, the querying in the keyword table whether there is a keyword matching the target keyword includes:
[0091] A sequential search algorithm, a binary search algorithm or a hash search algorithm is used to query whether there is a keyword matching the target keyword in the keyword table.
[0092] In the embodiment of the present specification, the querying in the keyword table whether there is a keyword matching the target keyword includes:
[0093] Using an edit distance algorithm or a regular expression to perform fuzzy matching of keywords, and querying whether there is a keyword that matches the target keyword;
[0094] If it does not exist, return a null value or error handling process.
[0095] In the embodiments of this specification, the decomposed keywords are searched in the keyword table. Algorithms such as sequential search, binary search or hash search can be used. If a matching keyword is found, the corresponding outlet and pickup code are obtained through the associated data structure. If no match is found, a null value is returned, indicating that the corresponding outlet cannot be determined. An efficient index structure (such as B-tree, hash table) is established for the keyword table to speed up the query. Use an edit distance algorithm (such as Levenshtein distance) or regular expressions to perform fuzzy matching of keywords to improve matching flexibility.
[0096] S207: If there is a keyword matching the target keyword, obtain a target network point identifier and a target pickup code corresponding to the keyword matching the target keyword.
[0097] In the embodiment of the present specification, if there is a keyword matching the target keyword, obtaining the target network point identifier and the target pickup code corresponding to the keyword matching the target keyword includes:
[0098] If there is a keyword matching the target keyword, using an associated data structure to obtain the keyword matching the target keyword;
[0099] Obtain the target network point identifier and target pickup code corresponding to the matched keyword.
[0100] In the embodiment of the present specification, after a matching item is found in the keyword table, the corresponding branch ID and pickup code are directly retrieved from the table; if there is no match, a null value is returned or an error handling process is executed.
[0101] S209: Acquire a courier or courier company that matches the target network point identifier based on the allocation rule database, and allocate the target express package and the target pickup code to the matching courier or courier company.
[0102] In the embodiments of this specification, Figure 5 As shown, the acquiring of the courier or courier company matching the target network point identifier based on the allocation rule database includes:
[0103] S2091: Acquire the allocation rule database, wherein the allocation rule database stores the correspondence between different outlets and couriers or courier companies and allocation priority rules;
[0104] S2093: Determine a target priority that matches the target network point identifier according to the allocation priority rule;
[0105] S2095: Using Dijkstra algorithm, load balancing strategy or preset rules, determine the courier or courier company that matches the target priority.
[0106] In an embodiment of the present specification, the allocation rule database stores the correspondence between different outlets and couriers or courier companies and the allocation priority rules; thus, according to the allocation priority rules, the target priority that matches the target outlet identifier can be determined, and then the courier or courier company that matches the target priority can be found.
[0107] Based on the obtained network information, the distribution rule database of couriers or courier companies can be queried. This database stores the correspondence between different network points and couriers or courier companies, as well as the rules of distribution priority. Using these rules, the most suitable courier or courier company is determined through the algorithm, and the relevant information of the package is assigned to them for subsequent processing. The Dijkstra algorithm, load balancing strategy or preset rules (such as regional division) are used to determine the best courier or company. The system automatically sends task instructions to the mobile terminal of the relevant courier or the management system of the courier company to start the next processing flow of the package.
[0108] In the embodiment of this specification, the method further includes:
[0109] The association between the target network point identifier and the matched courier or courier company is stored, and a package tracking record corresponding to the target express package is created.
[0110] In the embodiment of the present specification, while allocating the target express parcel, a parcel tracking record is created, linking the outlet information and the courier information, to facilitate subsequent logistics tracking and customer service.
[0111] This embodiment provides a logistics data processing method, including the following steps:
[0112] Step 1: Obtain a keyword table, which contains keyword information of each outlet. When adding or modifying an outlet, the keyword table is updated synchronously;
[0113] When building for the first time, traverse all branch information, extract keywords for each branch (such as place names, landmark buildings, etc.), and store these keywords, branch ID, pickup code and other information in the database. Design a monitoring mechanism or scheduled task to detect changes in branch information (additions, deletions, and modifications), and perform corresponding operations to update the keyword table. For example, use triggers to automatically insert keyword records when adding new branches, or use API calls to confirm and update. Read the existing keyword table from the database or data storage. When there is an operation to add or modify a branch, trigger the corresponding event handler. This program will obtain detailed information about the new branch, extract relevant keywords, and integrate them into the existing keyword table. Data structures such as hash tables or binary search trees can be used to store and quickly find keywords to improve the efficiency of update operations.
[0114] Step 2: After receiving the new delivery address, decompose it into planning areas and keywords through the address resolution interface;
[0115] Call a third-party or self-built address resolution service through HTTP request, pass in the complete address string, extract the planning area (such as administrative division code) and keywords based on the returned JSON or XML data, receive the complete address string as input, and use natural language processing (NLP) and geographic information system (GIS) technology to parse it into structured address components, such as city, street, house number, etc. After receiving the new shipping address, call a special address resolution interface. This interface can use natural language processing technology and geocoding library to perform word segmentation, part-of-speech tagging and lexical analysis on the address. Through pattern matching and rule engines, the address is decomposed into planning areas (such as cities, counties, etc.) and keywords (such as specific street names, landmark buildings, etc.).
[0116] Step 3: Compare the obtained keyword with the keyword table. If a match is found, obtain the corresponding outlet and pickup code; otherwise, return a null value;
[0117] Search the decomposed keywords in the keyword table. You can use algorithms such as sequential search, binary search, or hash search. If a matching keyword is found, get the corresponding outlet and pickup code through the associated data structure. If no match is found, return a null value, indicating that the corresponding outlet cannot be determined. Establish an efficient index structure (such as B-tree, hash table) for the keyword table to speed up the query. Use edit distance algorithms (such as Levenshtein distance) or regular expressions to perform fuzzy matching of keywords to improve matching flexibility. After finding a match, directly retrieve the corresponding outlet ID and pickup code from the table; if there is no match, return a null value or execute the error handling process.
[0118] Step 4: Allocate the package to the corresponding courier or courier company based on the obtained outlet information.
[0119] Based on the obtained network information, query the courier or courier company's allocation rule database. This database stores the correspondence between different network points and couriers or courier companies, as well as allocation priority and other rules. Using these rules, the most suitable courier or courier company is determined through an algorithm, and the relevant information of the package is allocated to them for subsequent processing. The Dijkstra algorithm, load balancing strategy or preset rules (such as regional division) are used to determine the best courier or company. The system automatically sends task instructions to the relevant courier's mobile terminal or the courier company's management system to start the next processing flow of the package. At the same time as the allocation, create a package tracking record, associate network information and courier information, and facilitate subsequent logistics tracking and customer service.
[0120] It can be seen from the technical solutions provided by the above embodiments of this specification that the embodiments of this specification construct a keyword table corresponding to the logistics platform, and the keyword table includes the correspondence between the network point identifications corresponding to multiple logistics network points in the logistics platform and the pickup codes and keywords corresponding to multiple logistics network points; obtain the target mailing address corresponding to the target express package, call the address resolution interface to resolve the target mailing address into the target planning area and the target keyword; query whether there is a keyword matching the target keyword in the keyword table; if there is a keyword matching the target keyword, obtain the target network point identification and the target pickup code corresponding to the keyword matching the target keyword; obtain the courier or courier company matching the target network point identification based on the allocation rule database, and assign the target express package and the target pickup code to the matching courier or courier company. The present invention can more accurately determine the network point to which the package belongs by establishing a keyword table and an automated address resolution and matching process, and reduce the misdelivery of packages caused by manual judgment errors. The automated processing flow greatly shortens the time for address matching and package allocation, speeds up the overall processing speed of express delivery services, and meets the growing business needs.
[0121] The embodiment of this specification also provides a logistics data processing device, such as Figure 6 As shown, the device comprises:
[0122] A keyword table construction module 610 is used to construct a keyword table corresponding to the logistics platform, wherein the keyword table includes a correspondence between the network point identifiers corresponding to multiple logistics network points in the logistics platform and the pickup codes and keywords corresponding to the multiple logistics network points;
[0123] The keyword parsing module 620 is used to obtain the target mailing address corresponding to the target express package, and call the address parsing interface to parse the target mailing address into a target planning area and a target keyword;
[0124] A query module 630, configured to query the keyword table to see whether there is a keyword matching the target keyword;
[0125] The matching module 640 is used to obtain the target network point identifier and the target pickup code corresponding to the keyword matching the target keyword if there is a keyword matching the target keyword;
[0126] The allocation module 650 is used to obtain a courier or courier company that matches the target network point identifier based on the allocation rule database, and allocate the target express package and the target pickup code to the matching courier or courier company.
[0127] Optionally, the keyword table construction module includes:
[0128] A network point information acquisition unit, used to acquire network point information of each logistics network point in the logistics platform;
[0129] A keyword extraction unit, used to extract keywords of each logistics network point from the network point information of each logistics network point;
[0130] The keyword table construction unit is used to store the network point identification, collection code and keywords corresponding to each logistics network point in the database to construct the keyword table corresponding to the logistics platform.
[0131] Optionally, the keyword parsing module includes:
[0132] A parsing unit, used to parse the target mailing address into structured address components by using natural language processing technology and geographic information system technology;
[0133] The analysis unit is used to call the address resolution interface to perform word segmentation, part-of-speech tagging and lexical analysis on the address components to obtain the target planning area and the target keyword.
[0134] Optionally, the query module is further used to use a sequential search algorithm, a binary search algorithm or a hash search algorithm to query whether there is a keyword matching the target keyword in the keyword table;
[0135] The matching module comprises:
[0136] A keyword acquisition unit, configured to acquire the keyword matching the target keyword by using an associated data structure if there is a keyword matching the target keyword;
[0137] The target information acquisition unit is used to obtain the target network point identifier and the target pickup code corresponding to the matched keyword.
[0138] Optionally, the query module includes:
[0139] A query unit, used to perform fuzzy matching of keywords using an edit distance algorithm or a regular expression to query whether there is a keyword matching the target keyword;
[0140] Return unit, used to return null value or error handling process if it does not exist.
[0141] Optionally, the allocation module includes:
[0142] A database acquisition unit, used to acquire the allocation rule database, wherein the allocation rule database stores the correspondence between different outlets and couriers or courier companies and allocation priority rules;
[0143] A target priority determination unit, configured to determine a target priority matching the target network point identifier according to the allocation priority rule;
[0144] The allocation unit is used to determine the courier or courier company that matches the target priority by adopting the Dijkstra algorithm, load balancing strategy or preset rules.
[0145] Optionally, the device further comprises:
[0146] The record creation module is used to store the association between the target network point identifier and the matched courier or courier company, and to create a package tracking record corresponding to the target express package.
[0147] The device and method embodiments in the described device embodiments are based on the same inventive concept.
[0148] An embodiment of the present specification provides an electronic device, which includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the processor to implement the logistics data processing method provided in the above method embodiment.
[0149] An embodiment of the present invention also provides a computer storage medium, which can be set in a terminal to store at least one instruction or at least one program related to a logistics data processing method in a method embodiment. The at least one instruction or at least one program is loaded and executed by the processor to implement the logistics data processing method provided by the above method embodiment.
[0150] The embodiment of the present invention also provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes to implement the logistics data processing method provided by the above method embodiment.
[0151] Optionally, in the embodiments of this specification, the storage medium may be located in at least one of the multiple network servers of the computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.
[0152] The memory described in the embodiments of this specification can be used to store software programs and modules, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, application programs required for functions, etc.; the data storage area may store data created according to the use of the device, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory may also include a memory controller to provide the processor with access to the memory.
[0153] The logistics data processing method embodiment provided in the embodiments of this specification can be executed in a mobile terminal, a computer terminal, a server or a similar computing device. Taking running on a server as an example, Figure 7 1 is a hardware structure diagram of a server of a logistics data processing method provided in an embodiment of this specification. Figure 7As shown, the server 700 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 710 (the central processing unit 710 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 730 for storing data, and one or more storage media 720 (such as one or more mass storage devices) for storing application programs 723 or data 722. Among them, the memory 730 and the storage medium 720 can be short-term storage or permanent storage. The program stored in the storage medium 720 may include one or more modules, each of which may include a series of instruction operations on the server. Furthermore, the central processing unit 710 can be configured to communicate with the storage medium 720 and execute a series of instruction operations in the storage medium 720 on the server 700. The server 700 may also include one or more power supplies 760, one or more wired or wireless network interfaces 750, one or more input and output interfaces 740, and / or one or more operating systems 721, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
[0154] The input / output interface 740 may be used to receive or send data via a network. The specific example of the network may include a wireless network provided by a communication provider of the server 700. In one example, the input / output interface 740 includes a network adapter (Network Interface Controller, NIC), which may be connected to other network devices via a base station so as to communicate with the Internet. In one example, the input / output interface 740 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0155] It can be understood by those skilled in the art that Figure 7 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 7 More or fewer components as shown, or with Figure 7 Different configurations are shown.
[0156] It can be seen from the embodiments of the logistics data processing method, device, electronic device or storage medium provided by the present invention that the present invention constructs a keyword table corresponding to the logistics platform, and the keyword table includes the correspondence between the network point identifications corresponding to multiple logistics network points in the logistics platform and the pickup codes and keywords corresponding to the multiple logistics network points; obtain the target mailing address corresponding to the target express package, call the address resolution interface to resolve the target mailing address into the target planning area and the target keyword; query whether there is a keyword matching the target keyword in the keyword table; if there is a keyword matching the target keyword, obtain the target network point identification and the target pickup code corresponding to the keyword matching the target keyword; obtain the courier or courier company matching the target network point identification based on the allocation rule database, and assign the target express package and the target pickup code to the matching courier or courier company. The present invention can more accurately determine the network point to which the package belongs by establishing a keyword table and an automated address resolution and matching process, reducing the misdelivery of packages caused by manual judgment errors. The automated processing flow greatly shortens the time for address matching and package allocation, speeds up the overall processing speed of express delivery services, and meets the growing business needs.
[0157] It should be noted that the above sequence of the embodiments of this specification is for description only and does not represent the advantages and disadvantages of the embodiments. The above describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0158] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0159] A person skilled in the art will appreciate that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0160] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for distributing express parcels, characterized in that: The method comprises: Constructing a keyword table corresponding to the logistics platform, the keyword table including the correspondence between the network point identifiers corresponding to the multiple logistics network points in the logistics platform and the pickup codes and keywords corresponding to the multiple logistics network points; Obtain the target mailing address corresponding to the target express package, and call the address resolution interface to resolve the target mailing address into a target planning area and a target keyword; Querying the keyword table to see whether there is a keyword matching the target keyword; If there is a keyword matching the target keyword, obtain the target network point identifier and the target pickup code corresponding to the keyword matching the target keyword; A courier or courier company matching the target network point identifier is obtained based on an allocation rule database, and the target express package and the target pickup code are allocated to the matching courier or courier company.
2. The method according to claim 1, characterized in that: The keyword table corresponding to the construction of the logistics platform includes: Obtain the network information of each logistics network in the logistics platform; Extract keywords of each logistics network point from the network point information of each logistics network point; The network point identification, pickup code and keywords corresponding to each logistics network point are stored in the database to build a keyword table corresponding to the logistics platform.
3. The method according to claim 1, characterized in that The calling of the address resolution interface to resolve the target mailing address into a target planning area and a target keyword includes: Using natural language processing technology and geographic information system technology, the target mailing address is parsed into structured address components; The address resolution interface is called to perform word segmentation, part-of-speech tagging and lexical analysis on the address component to obtain the target planning area and the target keyword.
4. The method according to claim 1, characterized in that: The querying in the keyword table whether there is a keyword matching the target keyword includes: Using a sequential search algorithm, a binary search algorithm or a hash search algorithm to query whether there is a keyword matching the target keyword in the keyword table; If there is a keyword matching the target keyword, obtaining a target network point identifier and a target pickup code corresponding to the keyword matching the target keyword includes: If there is a keyword matching the target keyword, using an associated data structure to obtain the keyword matching the target keyword; Obtain the target network point identifier and target pickup code corresponding to the matched keyword.
5. The method according to any one of claims 1 to 4, characterized in that: The querying in the keyword table whether there is a keyword matching the target keyword includes: Using an edit distance algorithm or a regular expression to perform fuzzy matching of keywords, and querying whether there is a keyword that matches the target keyword; If it does not exist, return a null value or error handling process.
6. The method according to any one of claims 1 to 4, characterized in that: The acquiring the courier or courier company matching the target network point identifier based on the allocation rule database includes: Acquire the allocation rule database, wherein the allocation rule database stores the correspondence between different outlets and couriers or courier companies and allocation priority rules; Determining a target priority that matches the target network point identifier according to the allocation priority rule; The Dijkstra algorithm, load balancing strategy or preset rules are used to determine the courier or courier company that matches the target priority.
7. The method according to claim 6, characterized in that The method further comprises: The association between the target network point identifier and the matched courier or courier company is stored, and a package tracking record corresponding to the target express package is created.
8. A logistics data processing device, characterized in that: The device comprises: A keyword table construction module is used to construct a keyword table corresponding to the logistics platform, wherein the keyword table includes a correspondence between the network point identifiers corresponding to multiple logistics network points in the logistics platform and the pickup codes and keywords corresponding to the multiple logistics network points; A keyword parsing module is used to obtain a target mailing address corresponding to a target express package, and call an address parsing interface to parse the target mailing address into a target planning area and a target keyword; A query module, used for querying whether there is a keyword matching the target keyword in the keyword table; A matching module, configured to obtain a target network point identifier and a target pickup code corresponding to the keyword matching the target keyword if there is a keyword matching the target keyword; The allocation module is used to obtain a courier or courier company that matches the target network point identifier based on an allocation rule database, and allocate the target express package and the target pickup code to the matching courier or courier company.
9. An electronic device, characterized in that: The device includes: a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the processor to implement the logistics data processing method as described in any one of claims 1-7.
10. A computer storage medium, characterized in that: The computer storage medium stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the processor to implement the logistics data processing method as described in any one of claims 1-7.
