CN117350620A - Logistics state confirmation method and device, electronic equipment and storage medium - Google Patents

Logistics state confirmation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117350620A
CN117350620A CN202311428621.5A CN202311428621A CN117350620A CN 117350620 A CN117350620 A CN 117350620A CN 202311428621 A CN202311428621 A CN 202311428621A CN 117350620 A CN117350620 A CN 117350620A
Authority
CN
China
Prior art keywords
logistics
track information
nodes
physical distribution
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311428621.5A
Other languages
Chinese (zh)
Inventor
谢方敏
周峰
郭陟
蔡梓浩
罗永杰
温雄驰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Fangzhou Information Technology Co ltd
Original Assignee
Guangzhou Fangzhou Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Fangzhou Information Technology Co ltd filed Critical Guangzhou Fangzhou Information Technology Co ltd
Priority to CN202311428621.5A priority Critical patent/CN117350620A/en
Publication of CN117350620A publication Critical patent/CN117350620A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • G06Q10/0833Tracking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/243Natural language query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Computational Linguistics (AREA)
  • General Business, Economics & Management (AREA)
  • Artificial Intelligence (AREA)
  • Development Economics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Marketing (AREA)
  • Mathematical Physics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Human Resources & Organizations (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method, a device, electronic equipment and a storage medium for confirming a logistics state, which comprise the following steps: acquiring logistics track information of a target order uploaded by a logistics company; carrying out semantic similarity matching on the logistics track information and a preset logistics node template aiming at each piece of logistics track information to obtain logistics nodes; determining a hierarchical relationship between logistics nodes based on the time sequence of the logistics track information; generating a directed acyclic graph based on the logistics nodes and the hierarchical relationship; the logistics state of the target order is determined based on the directed acyclic graph. The logistics state can be determined only by semantic similarity, so that the defect that the logistics state cannot be updated due to the fact that the keywords cannot be detected due to the fact that the logistics state is determined directly through the keywords can be avoided, corresponding logistics nodes can be quickly matched, and the current logistics state is obtained; the logistics state of the target order is determined through the directed acyclic graph, so that the situation that the express is rolled between different logistics nodes and the logistics state cannot be confirmed can be avoided.

Description

Logistics state confirmation method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of express service technologies, and in particular, to a method and apparatus for confirming a physical distribution state, an electronic device, and a storage medium.
Background
With the rapid development of the online mall mode, commodities corresponding to a plurality of orders in a drug store are transported through express delivery, which is also called express delivery or express delivery, that is, a transportation mode that a logistics enterprise (including a freight agent) rapidly and safely sends files or packages entrusted by a user from a sender to a receiver through an independent network of the logistics enterprise or in a joint cooperation (i.e. networking) mode. However, in each link of express delivery, a large number of people participate, and each link has the possibility of damaging the express delivery or delaying the delivery time, and the express delivery can not be safely and accurately delivered to the receiving party, so that the logistics management system of the drug store shop needs to monitor the current final logistics state of the order.
At present, the logistics management system mainly judges the current final logistics state according to keywords in logistics information provided by a logistics company, for example, the keywords are signed, and when the system detects the keywords, the system can determine that the logistics dispatching is completed. In the whole physical distribution transportation process, the actual transportation conditions are complex and changeable, sometimes the physical distribution keywords cannot describe the current transportation conditions, so that the physical distribution company may change the physical distribution information without preset keywords, and the situation that the physical distribution company changes the keywords in the physical distribution information may exist, which all results in the situation that the physical distribution management system cannot recognize the physical distribution keywords, the physical distribution state cannot be changed in time, and the judgment of the physical distribution management system on the current final physical distribution state of the order is affected.
Disclosure of Invention
The invention provides a logistics state confirmation method, which aims to solve the problems that the logistics state cannot be changed in time and the final logistics judgment is influenced only by determining the logistics state according to logistics keywords.
In a first aspect, the present invention provides a method for confirming a physical distribution state, including:
acquiring logistics track information of a target order uploaded by a logistics company;
carrying out semantic similarity matching on the logistics track information and a preset logistics node template aiming at each piece of logistics track information to obtain logistics nodes;
determining a hierarchical relationship between the logistics nodes based on the chronological order of the logistics track information;
generating a directed acyclic graph based on the logistics nodes and the hierarchical relationship;
determining a logistics state of the target order based on the directed acyclic graph.
In a second aspect, the present invention provides a logistic status confirmation apparatus, comprising:
the logistics track information acquisition module is used for acquiring logistics track information of the target order uploaded by the logistics company;
the logistics node determining module is used for matching the logistics track information with a preset logistics node template according to each piece of logistics track information to obtain logistics nodes;
the hierarchical relation determining module is used for determining the hierarchical relation among the logistics nodes based on the time sequence of the logistics track information;
a directed acyclic graph generation module for generating a directed acyclic graph based on the logistics nodes and the hierarchical relationship;
and the logistics state determining module is used for determining the logistics state of the target order based on the directed acyclic graph.
In a third aspect, the present invention provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of confirming the physical distribution status according to the first aspect of the present invention.
In a fourth aspect, the present invention provides a computer readable storage medium storing computer instructions for causing a processor to implement the method for confirming a physical distribution status according to the first aspect of the present invention when executed.
According to the logistics state confirmation method, logistics track information of a target order uploaded by a logistics company is obtained; carrying out semantic similarity matching on the logistics track information and a preset logistics node template aiming at each piece of logistics track information to obtain logistics nodes; determining a hierarchical relationship between logistics nodes based on the time sequence of the logistics track information; generating a directed acyclic graph based on the logistics nodes and the hierarchical relationship; the logistics state of the target order is determined based on the directed acyclic graph.
On the one hand, the logistics nodes are obtained by matching the logistics track information with the preset logistics node templates in a semantic similarity mode, the logistics state can be determined as long as the semantics are similar, the defect that the logistics state cannot be updated due to the fact that the keywords cannot be detected due to the fact that the logistics state is determined directly through the keywords can be avoided, the corresponding logistics nodes can be quickly matched, and the current logistics state is obtained; on the other hand, the logistics state of the target order is determined through the directed acyclic graph, so that the situation that the logistics state cannot be confirmed due to the fact that express is rolled between different logistics nodes can be avoided. In addition, the logistics state is determined by adopting the directed acyclic graph, so that a user can conveniently and intuitively confirm the logistics state of the target order.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for confirming a physical distribution status according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an overall system for distributing order streams according to a first embodiment of the present invention;
FIG. 3 is a directed acyclic graph generated by various order-based logistics nodes provided in accordance with an embodiment of the present invention;
FIG. 4 is a partial directed acyclic graph of an example order provided by an embodiment of the present invention;
FIG. 5 is a flow chart of a method for confirming the status of a logistics according to a second embodiment of the present invention;
fig. 6 is a schematic structural diagram of a logistic status confirmation device according to a third embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
Example 1
Fig. 1 is a flowchart of a method for confirming a physical distribution status according to an embodiment of the present invention, where the method may be performed by a physical distribution status confirmation device, and the physical distribution status confirmation device may be implemented in hardware and/or software, and the physical distribution status confirmation device may be configured in an electronic device. As shown in fig. 1, the method for confirming the state of the logistics comprises the following steps:
s101, acquiring logistics track information of a target order uploaded by a logistics company.
The embodiment of the invention can be applied to a logistics management system of a drug mall, fig. 2 is a schematic diagram of an architecture of an order logistics distribution total system, as shown in fig. 2, in a system level, a mall end 10, an order performance system 11 and a logistics management system 12 are sequentially connected, and in addition, the logistics management system 12 is also connected with the mall end 10.
In terms of flow, the mall end is provided with a commodity page of a merchant, after a user purchases a certain commodity (medicine, nursing tool and the like) in the medicine mall, the order is generated at the mall end, the order information of the order in the mall end is synchronized by the order fulfillment system, and then the order information is transmitted to the logistics management system for logistics distribution, namely, the logistics merchant is distributed, after the logistics merchant is matched with the logistics merchant, the logistics track information of the order is fed back, so that the logistics management system can acquire the logistics track information corresponding to the order number of the target order, and the logistics management system can confirm the distribution condition of the target order conveniently.
S102, carrying out semantic similarity matching on the logistics track information and a preset logistics node template according to each piece of logistics track information to obtain logistics nodes.
The logistics node of the express logistics is a node representing the logistics transportation process of the order, and generally comprises the steps of collecting, transporting, sending, signing and the like. Of course, the naming of specific logistics nodes can be set according to actual requirements.
The preset logistics node template is a template corresponding to a logistics node, for example, a logistics node is received corresponding to a logistics node template A, and a logistics node is transported corresponding to a logistics node template B. The logistics node template is a standard template which is used as logistics track information to be matched to obtain logistics nodes, and generally, the logistics node template comprises character strings related to the logistics nodes.
The logistics track information is also generally generated based on a logistics editing template of a logistics company, but a medicine merchant may cooperate with a plurality of logistics companies, and the logistics keywords of each logistics company may be different, so that the logistics editing template and a logistics node template provided by a logistics management system of a medicine mall may be the same or similar or different, and the invention is not limited to this.
For example, for a logistics company, a logistics editing template E: the [ $ (node) ] your express item is received by [ $ { tolode } ], wherein the courier can edit [ $ (node) ], "$ { tolode } ], edit the post-logistics track information, exemplary:
first kind: the express mail of the Guangzhou city is collected by Zhang Santa;
second kind: [ Guangzhou Tianhe district ] your express mail has been collected by [ Zhang Santel 150013333 ].
The logistics node templates provided by the logistics editing templates of the logistics companies and the logistics management system of the medicine mall can be similar or identical or different, and the logistics track information is obtained according to the logistics editing templates of the logistics companies and is information related to the logistics nodes, so that the corresponding logistics nodes can be determined through semantic similarity matching as long as the semantics are similar.
For example, the logistics track information G is that [ guangzhou city ] your express item has been collected by [ Zhang san ], the logistics track information H is that [ guangzhou city ] express item has been collected by [ Liqu in district super city ], (one of the preset logistics node templates is that [ $ (node) ] express item is collected by [ $ { tolode }). Then, by matching the logistics track information with the semantic similarity of the logistics node template, the corresponding logistics node can be determined to be a 'received part'. The naming of the specific logistics nodes is set in the logistics management system and is generally the same as part or all of the character strings in the logistics node templates.
The logistics nodes are determined by carrying out semantic similarity matching on the logistics track information and the preset logistics node templates, so that the defect that the logistics state cannot be updated due to the fact that the keywords cannot be identified caused by determining the logistics state directly through the keywords can be avoided, and the corresponding logistics nodes can be quickly matched, and the current logistics state is obtained. For example, in general, the keyword of the corresponding logistics is "sign-in", and if some logistics companies upload "entrance guard" it is not possible to sign-in according to the keyword, but it is matched according to semantic similarity, it can be effectively matched.
In an optional embodiment, for each piece of logistics track information, performing similarity matching on the logistics track information and a preset logistics node template to obtain a logistics node, which specifically includes: converting the logistics track information into logistics element information based on dynamic character strings in the logistics track information aiming at each piece of logistics track information, wherein the content corresponding to the dynamic character strings is dynamically edited content; calculating semantic similarity between logistics element information and a preset logistics node template; when the semantic similarity larger than the preset threshold exists, taking the logistics node corresponding to the logistics node template when the semantic similarity is maximum as the current logistics node.
Dynamic strings may be labeled with specific symbols in general, and exemplary, for logistic trajectory information: the express mail of Guangzhou city is collected by Zhang Sany, and the character strings in the symbols "[ ]", and "[", are dynamic character strings.
Placeholders may also be employed to label content properties as dynamic strings. The following table is a table of placeholder fields and corresponding interpretations, as shown in the following table.
In the above table, fromnode, tonode exists in the same piece of logistics track information at the same time. In addition, other dynamic parameters such as the update time can be added to the placeholder field.
Semantic similarity matching, namely text matching, specifically can obtain the similarity of two texts by calculating cosine similarity, euclidean distance and the like of sentences. The dynamic character strings are determined through recognition, and when semantic similarity matching is carried out, the dynamic character strings possibly interfere with the calculation of the semantic similarity, so that the dynamic character strings can be processed in a deleting or rewriting mode generally, and the semantic similarity is further improved.
Of course, when the dynamic character strings in the logistics track information are not deleted or rewritten, semantic similarity matching can still be performed, and only a preset threshold value of the semantic similarity needs to be adaptively changed. The preset threshold value can be set according to actual conditions and actual demands.
S103, determining the hierarchical relationship among the logistics nodes based on the time sequence of the logistics track information.
The logistics track information comprises time information, one piece of logistics track information corresponds to one logistics node, and the rule that the logistics nodes of the express logistics change along with time is considered, so that the level of the logistics node in front of time is higher than that of the logistics node in back of time.
S104, generating a directed acyclic graph based on the logistics nodes and the hierarchical relationship.
The directed acyclic graph refers to a loop-free directed graph, which is composed of nodes and unidirectional arrows, wherein the unidirectional arrows represent path directions.
The logistics nodes are nodes in the directed acyclic graph, and the hierarchical relationship can determine the path trend, namely the arrow direction. Specifically, the logistics nodes can be arranged; setting unidirectional arrows between logistics nodes based on a hierarchical relationship to obtain a directed acyclic graph; wherein the unidirectional arrow points from the upper level of the logistics node to the lower level of the logistics node. I.e. the originating end of the arrow is the upper level and the pointing end of the arrow is the lower level based on the arrow.
The logistics nodes can be arranged according to the time sequence, and then unidirectional arrows are arranged between adjacent logistics nodes based on the hierarchical relationship, so that the directed acyclic graph is obtained. The logistics nodes are arranged according to the time sequence, so that the directed acyclic graph can be drawn more simply and quickly.
Illustratively, as shown in FIG. 3, FIG. 3 is a directed acyclic graph generated by various order-based logistics nodes. Each logistics node sequentially comprises to-be-shipped, to-be-picked-up, in-transit, in-dispatch and signed.
S105, determining the logistics state of the target order based on the directed acyclic graph.
In the directed acyclic graph of this embodiment, a loop-to-loop transfer exists, so there is a last link at the current time, and the (final) logistics state of the target order at the current time is taken as the logistics node corresponding to the last link at the current time, where the current time is emphasized, because the current time is not necessarily the last time (signing time) of the logistics. Illustratively, the logistics node corresponding to the last link at the current moment is "in dispatch", and then the current final logistics state of the target order is "in dispatch"; the last link at the current moment corresponds to the logistics node being "signed", and then the current final logistics state of the target order is "signed".
Here, it should be noted that, in the process of express delivery transportation, there may be a case that the express delivery returns to the last node, for example, when the express delivery person dispatches the order, the logistics node is in the process of dispatch, but there is a case that the express delivery cannot be dispatched in the process of dispatch, then the express delivery person may return the express delivery to the express delivery station, then the logistics returns to the last logistics node again, assuming that the last logistics track information is that the express arrives at the three-stream express station, then the logistics node is in the process of transportation, then part of logistics nodes of the target order are changed into: in-transit-in-dispatch-in-transit, the prior art logistics management system cannot distinguish the current real final logistics state. When the directed acyclic graph of the present invention is employed to determine the physical distribution state of a target, as shown in FIG. 4, FIG. 4 is a partial directed acyclic graph of an example order, then the current final physical distribution node may be determined to be "in transit" and then the current final physical distribution state may be determined to be "in transit". Based on the logistics determination method, the current final logistics state of the target order can be rapidly and accurately determined.
The condition that the recipient cannot be dispatched can comprise that the recipient is not at home, the recipient changes the destination address, the recipient rejects, the address is wrong, and the like.
According to the logistics state confirmation method, logistics track information of a target order uploaded by a logistics company is obtained; carrying out semantic similarity matching on the logistics track information and a preset logistics node template aiming at each piece of logistics track information to obtain logistics nodes; determining a hierarchical relationship between logistics nodes based on the time sequence of the logistics track information; generating a directed acyclic graph based on the logistics nodes and the hierarchical relationship; the logistics state of the target order is determined based on the directed acyclic graph. On the one hand, the logistics nodes are obtained by matching the logistics track information with the preset logistics node templates in a semantic similarity mode, the logistics state can be determined as long as the semantics are similar, the defect that the logistics state cannot be updated due to the fact that the keywords cannot be detected due to the fact that the logistics state is determined directly through the keywords can be avoided, the corresponding logistics nodes can be quickly matched, and the current logistics state is obtained; on the other hand, the logistics state of the target order is determined through the directed acyclic graph, so that the situation that the logistics state cannot be confirmed due to the fact that express is rolled between different logistics nodes can be avoided. In addition, the logistics state is determined by adopting the directed acyclic graph, so that a user can conveniently and intuitively confirm the logistics state of the target order.
Example two
Fig. 5 is a flowchart of a method for confirming a physical distribution state according to a second embodiment of the present invention, where the method for confirming a physical distribution state according to the first embodiment of the present invention is optimized on the basis of the first embodiment, as shown in fig. 5, and includes:
s501, acquiring logistics track information of a target order uploaded by a logistics company;
s502, converting the logistics track information into logistics element information based on dynamic character strings in the logistics track information according to each piece of logistics track information.
In an optional embodiment, the preset logistics node template includes a preset general element, and the method for converting logistics track information into logistics element information based on a dynamic character string in the logistics track information includes: and converting the content corresponding to the dynamic character string in the logistics track information into a preset general element to obtain logistics element information. In this embodiment, the dynamic character string in the logistics track information is converted into a general element corresponding to the logistics node template. The universal elements can be single elements, and different universal elements can be set for character strings with different meanings, and the universal elements are specifically set according to actual requirements. The contents of the dynamic character strings in the logistics track information can be various, and the contents have interference when being matched, so that the contents with the interference are converted into common elements which are the same as those in the corresponding logistics node templates, the interference is eliminated, and the information matching is facilitated.
In another alternative embodiment, converting the logistics track information into logistics element information based on the dynamic character string in the logistics track information includes: and determining a dynamic character string in the logistics information as a target character string, and deleting the content corresponding to the target character string in the logistics information to obtain the logistics element information. In this embodiment, the logistics node template may have no dynamic character string, or may be reserved, and the target character string in the logistics information may be deleted, and since the content of the information may be various, and the information has interference during matching, part of the interference information may be removed.
S503, calculating semantic similarity between the logistics element information and a preset logistics node template.
S504, when the semantic similarity larger than a preset threshold exists, taking the logistics node corresponding to the logistics node template when the semantic similarity is maximum as the current logistics node.
S505, when the semantic similarity larger than a preset threshold value does not exist, the logistics track information is sent to a manual interface, and the current logistics node is configured manually.
When there is no semantic similarity greater than the preset threshold, it is indicated that the corresponding logistics node cannot be matched with the current logistics track information, for example, when signing, the logistics track information is "put district and overtime counter", the corresponding logistics node template is "$ { logistic manname } successfully dispatched", and the semantic similarity of the two is possibly lower, and the corresponding logistics node cannot be identified.
S506, determining the hierarchical relationship among the logistics nodes based on the time sequence of the logistics track information.
S507, generating a directed acyclic graph based on the logistics nodes and the hierarchical relationship.
S508, determining the hierarchy attribute of the logistics node based on the hierarchy relation in the directed acyclic graph, wherein the hierarchy attribute comprises an upper-level attribute and a lower-level attribute.
S509, taking the logistics node with the lower-level attribute as the logistics state of the target order.
In an alternative embodiment, after determining that the logistics has been signed, the missing logistics nodes may be further determined based on the directed acyclic graph, specifically, after obtaining the directed acyclic graph, whether the missing logistics nodes exist is determined based on the existing logistics nodes and the preset complete logistics nodes. For example, if the last piece of logistics track information arrives at Shanghai city but the logistics is not updated and the next piece of logistics track information is that the express mail has been signed up, it can be confirmed that the logistics node in the dispatch is truly the logistics node in the dispatch.
According to the embodiment, for each piece of logistics track information, the logistics track information is converted into logistics element information based on the dynamic character strings in the logistics track information, the semantic similarity between the logistics element information and the preset logistics node template is calculated, when the semantic similarity larger than the preset threshold exists, the logistics node corresponding to the logistics node template with the largest semantic similarity is used as the current logistics node, so that the similarity of matching of the semantic similarity can be improved, and matching of the corresponding logistics nodes is facilitated.
Example III
Fig. 6 is a schematic structural diagram of a logistic status confirmation device according to a third embodiment of the present invention. As shown in fig. 6, the logistics state confirmation apparatus includes:
the logistics track information acquisition module 601 is configured to acquire logistics track information of a target order uploaded by a logistics company;
the logistics node determining module 602 is configured to match, for each piece of logistics track information, the logistics track information with a preset logistics node template in a semantic similarity manner, so as to obtain a logistics node;
a hierarchical relationship determining module 603, configured to determine a hierarchical relationship between the logistics nodes based on a time sequence of the logistics track information;
a directed acyclic graph generation module 604 for generating a directed acyclic graph based on the logistics nodes and the hierarchical relationship;
a logistics state determination module 605 is configured to determine a logistics state of the target order based on the directed acyclic graph.
In an alternative embodiment, the logistics node determination module 602 includes:
the logistics element information conversion sub-module is used for converting the logistics track information into logistics element information based on dynamic character strings in the logistics track information aiming at each piece of logistics track information, wherein the content corresponding to the dynamic character strings is dynamically edited content;
the semantic similarity calculation sub-module is used for calculating the semantic similarity between the logistics element information and a preset logistics node template;
and the logistics node determining submodule is used for taking the logistics node corresponding to the logistics node template when the semantic similarity is maximum as the current logistics node when the semantic similarity is larger than the preset threshold value.
In an optional embodiment, the preset logistics node template includes a preset general element, and the logistics element information conversion sub-module includes:
the first conversion unit is used for converting the content corresponding to the dynamic character string in the logistics track information into a preset general element to obtain logistics element information.
In an alternative embodiment, the logistics element information conversion sub-module further includes: :
a target character string determining unit, configured to determine a dynamic character string in the logistics information as a target character string;
and the second conversion unit is used for deleting the content corresponding to the target character string in the logistics information to obtain logistics element information.
In an alternative embodiment, the logistics node determination module 602 further comprises:
and the logistics node manual configuration submodule is used for sending the logistics track information to a manual interface when the semantic similarity larger than a preset threshold value does not exist, and manually configuring the current logistics node.
In an alternative embodiment, the directed acyclic graph generation module 604 includes:
a logistics node arrangement sub-module, configured to arrange the logistics nodes;
the directed acyclic graph generation sub-module is used for setting unidirectional arrows between the logistics nodes based on the hierarchical relationship to obtain a directed acyclic graph;
wherein said unidirectional arrow points from said logistics node of an upper stage to said logistics node of a lower stage.
In an alternative embodiment, the logistic status determination module 605 includes:
a hierarchy attribute determination submodule, configured to determine a hierarchy attribute of the logistics node based on the hierarchy relation in the directed acyclic graph, where the hierarchy attribute includes an upper-level attribute and a lower-level attribute;
and the logistics state determining submodule is used for taking the logistics node with only the lower-level attribute as the logistics state of the target order.
The logistic state confirmation device provided by the embodiment of the invention can execute the logistic state confirmation method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Fig. 7 shows a schematic diagram of an electronic device 40 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 7, the electronic device 40 includes at least one processor 41, and a memory communicatively connected to the at least one processor 41, such as a Read Only Memory (ROM) 42, a Random Access Memory (RAM) 43, etc., in which the memory stores a computer program executable by the at least one processor, and the processor 41 may perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 42 or the computer program loaded from the storage unit 48 into the Random Access Memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 may also be stored. The processor 41, the ROM 42 and the RAM 43 are connected to each other via a bus 44. An input/output (I/O) interface 45 is also connected to bus 44.
Various components in electronic device 40 are connected to I/O interface 45, including: an input unit 46 such as a keyboard, a mouse, etc.; an output unit 47 such as various types of displays, speakers, and the like; a storage unit 48 such as a magnetic disk, an optical disk, or the like; and a communication unit 49 such as a network card, modem, wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 41 may be various general and/or special purpose processing components with processing and computing capabilities. Some examples of processor 41 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 41 performs the respective methods and processes described above, such as the logistics state confirmation method.
In some embodiments, the logistic status validation method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 48. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 40 via the ROM 42 and/or the communication unit 49. When the computer program is loaded into RAM 43 and executed by processor 41, one or more steps of the logistic status confirmation method described above may be performed. Alternatively, in other embodiments, processor 41 may be configured to perform the logistic status validation method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above can be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for confirming a physical distribution state, comprising:
acquiring logistics track information of a target order uploaded by a logistics company;
carrying out semantic similarity matching on the logistics track information and a preset logistics node template aiming at each piece of logistics track information to obtain logistics nodes;
determining a hierarchical relationship between the logistics nodes based on the chronological order of the logistics track information;
generating a directed acyclic graph based on the logistics nodes and the hierarchical relationship;
determining a logistics state of the target order based on the directed acyclic graph.
2. The method for confirming the physical distribution state according to claim 1, wherein the step of matching the physical distribution trajectory information with a preset physical distribution node template to obtain physical distribution nodes according to each piece of physical distribution trajectory information includes:
converting the logistics track information into logistics element information based on dynamic character strings in the logistics track information aiming at each piece of logistics track information, wherein the content corresponding to the dynamic character strings is dynamically edited content;
calculating semantic similarity between the logistics element information and a preset logistics node template;
when the semantic similarity larger than the preset threshold exists, taking the logistics node corresponding to the logistics node template when the semantic similarity is maximum as the current logistics node.
3. The method for confirming the physical distribution state according to claim 2, wherein the preset physical distribution node template includes preset general elements, and the converting the physical distribution track information into physical distribution element information based on the dynamic character string in the physical distribution track information includes:
and converting the content corresponding to the dynamic character string in the logistics track information into a preset general element to obtain logistics element information.
4. The method for confirming the physical distribution state according to claim 2, wherein the converting the physical distribution trajectory information into physical distribution element information based on the dynamic character string in the physical distribution trajectory information, further comprises:
determining a dynamic character string in the logistics information as a target character string;
and deleting the content corresponding to the target character string in the logistics information to obtain logistics element information.
5. The method for confirming a physical distribution state according to claim 2, further comprising:
and when the semantic similarity larger than the preset threshold value does not exist, the logistics track information is sent to a manual interface, and the current logistics node is configured manually.
6. The method of claim 1, wherein the generating a directed acyclic graph based on the logistics nodes and the hierarchical relationship comprises:
arranging the logistics nodes;
setting unidirectional arrows between the logistics nodes based on the hierarchical relationship to obtain a directed acyclic graph;
wherein said unidirectional arrow points from said logistics node of an upper stage to said logistics node of a lower stage.
7. The logistics state confirmation method of any one of claims 1-6, wherein said determining the logistics state of said target order based on said directed acyclic graph comprises:
determining, in the directed acyclic graph, a hierarchical attribute of the logistics node based on the hierarchical relationship, the hierarchical attribute including an upper level attribute and a lower level attribute;
and taking the logistics node with only the subordinate attribute as the logistics state of the target order.
8. A logistic state confirmation device, characterized by comprising:
the logistics track information acquisition module is used for acquiring logistics track information of the target order uploaded by the logistics company;
the logistics node determining module is used for matching the logistics track information with a preset logistics node template according to each piece of logistics track information to obtain logistics nodes;
the hierarchical relation determining module is used for determining the hierarchical relation among the logistics nodes based on the time sequence of the logistics track information;
a directed acyclic graph generation module for generating a directed acyclic graph based on the logistics nodes and the hierarchical relationship;
and the logistics state determining module is used for determining the logistics state of the target order based on the directed acyclic graph.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the logistic status confirmation method of any one of claims 1 to 7.
10. A computer readable storage medium storing computer instructions for causing a processor to perform the method of confirming a physical distribution status according to any of claims 1 to 7.
CN202311428621.5A 2023-10-30 2023-10-30 Logistics state confirmation method and device, electronic equipment and storage medium Pending CN117350620A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311428621.5A CN117350620A (en) 2023-10-30 2023-10-30 Logistics state confirmation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311428621.5A CN117350620A (en) 2023-10-30 2023-10-30 Logistics state confirmation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117350620A true CN117350620A (en) 2024-01-05

Family

ID=89366592

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311428621.5A Pending CN117350620A (en) 2023-10-30 2023-10-30 Logistics state confirmation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117350620A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113793093A (en) * 2021-08-24 2021-12-14 深圳市前海云途物流有限公司 Track query display method and device and readable storage medium
CN113837572A (en) * 2021-09-10 2021-12-24 畅销家(深圳)科技有限公司 Logistics monitoring method and related equipment
CN114757619A (en) * 2022-04-24 2022-07-15 畅销家(深圳)科技有限公司 Package transportation state identification method and related equipment
CN114997813A (en) * 2022-04-29 2022-09-02 北京璇星科技有限公司 Flow chart generation method, device, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113793093A (en) * 2021-08-24 2021-12-14 深圳市前海云途物流有限公司 Track query display method and device and readable storage medium
CN113837572A (en) * 2021-09-10 2021-12-24 畅销家(深圳)科技有限公司 Logistics monitoring method and related equipment
CN114757619A (en) * 2022-04-24 2022-07-15 畅销家(深圳)科技有限公司 Package transportation state identification method and related equipment
CN114997813A (en) * 2022-04-29 2022-09-02 北京璇星科技有限公司 Flow chart generation method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109992766B (en) Method and device for extracting target words
CN112650858A (en) Method and device for acquiring emergency assistance information, computer equipment and medium
CN114202027A (en) Execution configuration information generation method, model training method and device
CN116151240A (en) Relation extraction model training method and device, electronic equipment and storage medium
CN113312539B (en) Method, device, equipment and medium for providing search service
CN114610418A (en) Digital content processing method, device, electronic equipment, storage medium and product
CN117350620A (en) Logistics state confirmation method and device, electronic equipment and storage medium
CN116309963B (en) Batch labeling method and device for images, electronic equipment and storage medium
CN116151718A (en) Overseas warehouse management system, method, equipment and storage medium
CN113656466B (en) Policy data query method, device, equipment and storage medium
CN115618234A (en) Model training method, device, equipment and storage medium
CN115344584A (en) Logistics express delivery information real-time updating system based on big data
CN115048352A (en) Log field extraction method, device, equipment and storage medium
CN113379173B (en) Method and device for marking warehouse goods with labels
CN114461748A (en) Label extraction method, device, storage medium and electronic equipment
CN114186147A (en) Data processing method and device, electronic equipment and storage medium
CN117874308B (en) Train control data acquisition method and device, electronic equipment and storage medium
CN113742485A (en) Method and device for processing text
CN112559727A (en) Method, apparatus, device, storage medium, and program for outputting information
CN112950240A (en) Distribution method and device
CN117272970B (en) Document generation method, device, equipment and storage medium
CN113378524B (en) Method, device, equipment and storage medium for updating storage information of document
CN113032540B (en) Man-machine interaction method, device, equipment and storage medium
CN116431698B (en) Data extraction method, device, equipment and storage medium
CN116245984A (en) Animation file generation method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination