Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Unless defined otherwise, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this application belongs. The terms "first," "second," and the like, as used herein, do not denote any order, quantity, or importance, but rather are used to distinguish one element from another. Likewise, the terms "a" or "an" and the like do not denote a limitation of quantity, but rather denote the presence of at least one. The terms "connected" or "connected," and the like, are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", etc. are used merely to indicate a relative positional relationship, which changes accordingly when the absolute position of the object to be described changes.
Referring to fig. 1, fig. 1 is a flowchart of a method for generating material tag information according to an embodiment of the present application, where the method includes:
step 101, acquiring material information of label information to be generated and material delivery time information corresponding to the material information.
It should be understood that the tag information, i.e., the tag overview information displayed on the tag management page, may be used to mark product targets, classifications, or content, etc., and the material information, i.e., product targets, classifications, or content, etc., of the material. In addition, the material delivery time information corresponding to the material information is the material waiting time.
The material information management system generates tag information matched with the material information by acquiring the material information and the material delivery time information of the material.
Step 102, generating label information corresponding to the material information according to the order of the material delivery time information corresponding to the material information from first to last.
It should be understood that, after the material information management system sequentially generates the label information matched with the material information according to the order of the material delivery time from front to back, the label information can be installed on the material through the label medium, and the material with the label medium can be subjected to the next delivery process.
In the technical scheme provided by the embodiment of the application, the material information of the label information to be generated and the material delivery time information corresponding to the material information are obtained; and generating label information corresponding to the material information according to the material delivery time information corresponding to the material information from the beginning to the end. In this way, by determining the generation time of the material generation code in the order of the material delivery time from first to last, the generation rationality of the material identification code can be improved compared with the random determination of the generation time of the material identification code.
Optionally, step 102 includes:
determining the expected delivery time of the label corresponding to the material information according to the material delivery time information corresponding to the material information;
determining the generation sequence of the label information corresponding to the material information according to the expected delivery time of the label corresponding to the material information;
and generating label information corresponding to the material information according to the generation sequence.
It should be understood that both the delivery time of the material and the expected delivery time of the tag may be a period of time, with the expected delivery time of the tag being the latest delivery time of the material.
The material information management system determines the generation sequence of the label information matched with the material according to the delivery time of the material, and further generates the label information according to the generation sequence, and then the label information is installed on the material through a label medium, so that the material with the label medium can be subjected to the next delivery flow.
In an alternative embodiment, the supplier transmits the material information of the acquired material to a material information management system, and the material information management system determines an expected delivery time of the label matched with the material and the material information according to the delivery time of the material, so that the system determines a generation order of the label information according to the expected delivery time and generates the label information according to the generation order.
The supplier obtains the label, the supplier can obtain the label information on the label through scanning and compares the label information with the material information provided with the label, the supplier can carry out shipping processing under the condition that the label information and the material information are matched, and the supplier can judge that the label is not matched under the condition that the label information and the material information are not matched, and at the moment, the label information should be regenerated by the material information management system.
Optionally, the determining the generating sequence of the label information corresponding to the material information according to the expected delivery time of the label corresponding to the material information includes:
calculating a generation parameter value of the label information corresponding to the material information according to the expected delivery time of the label corresponding to the material information;
determining the generation sequence of the label information corresponding to the material information according to the sequence of the generation parameter values from large to small;
calculating a generation parameter value f of the label information corresponding to the material information through the following function:
,
wherein,for the earliest delivery time of the class i tag, < >>For the latest delivery time of the i-th type tag, T is the generation time required for all tag information,/I>For the number of class i tags, Q is the total number of tags.
In this embodiment, the generation parameter value of the label information corresponding to the generated material information is calculated according to the expected delivery time of the material label, and the generation order of the label information is determined from large to small according to the generation parameter value, so that the generation mode of the material information is more reasonable when the label information is generated in consideration of the material circulation time compared with the random generation mode of the material information in the prior art.
Optionally, step 102 includes:
comparing the material information with historical material information, wherein the historical material information is material information which has generated corresponding label information;
and under the condition that the material information is not matched with the historical material information, generating label information corresponding to the material information according to the order of the material delivery time information corresponding to the material information from front to back.
In this embodiment, the material information management system compares the material information with the historical material information, and if the historical material information base does not include the material information consistent with the material information, that is, the material information is not matched with the historical material information, the label information matched with the material information is sequentially generated according to the sequence of the material delivery time.
Optionally, the method further comprises:
extracting keywords of the tag information and keywords of the material information;
the keywords of the label information are corresponding to the keywords of the material information, so that the similarity of the corresponding keywords is obtained;
and under the condition that the similarity reaches a preset threshold value, determining that the label information corresponding to the material information is correct.
It should be understood that keywords may include nouns, adjectives, and adverbs in tag information and material information. In a specific implementation, nouns, adjectives and adverbs in the tag information are associated with nouns, adjectives and adverbs in the physical information. Specifically, the nouns in the tag information are corresponding to the nouns in the physical information, adjectives in the tag information are corresponding to adjectives in the physical information, adverbs in the tag information are corresponding to adverbs in the physical information, and the similarity of the acquired keywords is calculated.
Wherein, the similarity may include appearance similarity and meaning similarity. The similarity of the keywords of the tag information and the keywords of the material information is calculated by calculating the appearance similarity of the keywords of the tag information and the keywords of the material information and the meaning similarity of the keywords of the tag information and the keywords of the material information.
In an alternative embodiment, the similarity f may be calculated by the following formula:
wherein i is the label word sequence number, j is the material word sequence number, M is the total number of label words, and N is the total number of material words; />For the appearance similarity of the words i and j, < +.>Meaning similarity of words i and j;
wherein->The word shape structural similarity of words i and j; />For the stroke similarity of the words i and j,the difference between strokes of word i minus j;
,/>the standard vocabulary corresponding to the vocabulary i and j is the same, the same is 1, and the different is 0.
In this embodiment, the similarity is compared with a preset threshold by calculating the similarity, and if the similarity is greater than or equal to the preset threshold, the label information corresponding to the material information is judged to be correct.
It should be noted that, when the similarity is smaller than the preset threshold, it is determined that the label information corresponding to the material information is wrong, and at this time, the material information management system should regenerate the label information.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a material tag information generating apparatus according to an embodiment of the present application, where the apparatus 200 includes:
a first obtaining module 201, configured to obtain material information of label information to be generated and material delivery time information corresponding to the material information;
the generating module 202 is configured to generate tag information corresponding to the material information according to the order of the material delivery time information corresponding to the material information from first to last.
Optionally, the generating module 202 includes:
the first determining submodule is used for determining the expected delivery time of the label corresponding to the material information according to the material delivery time information corresponding to the material information;
a second determining submodule, configured to determine a generating sequence of tag information corresponding to the material information according to an expected delivery time of the tag corresponding to the material information;
the first generation sub-module is used for generating label information corresponding to the material information according to the generation sequence.
Optionally, the second determining sub-module includes:
a calculating unit, configured to calculate a generation parameter value of tag information corresponding to the material information according to an expected delivery time of the tag corresponding to the material information;
a determining unit, configured to determine a generating sequence of the tag information corresponding to the material information according to the sequence of the generating parameter values from large to small;
calculating a generation parameter value f of the label information corresponding to the material information through the following function:
,
wherein,for the earliest delivery time of the class i tag, < >>For the latest delivery time of the i-th type tag, T is the generation time required for all tag information,/I>For the number of class i tags, Q is the total number of tags.
Optionally, the generating module 202 includes:
the comparison sub-module is used for comparing the material information with the historical material information, wherein the historical material information is the material information which has generated the corresponding label information;
and the second generation sub-module is used for generating label information corresponding to the material information according to the order of the material delivery time information corresponding to the material information from first to last under the condition that the material information is not matched with the historical material information.
Optionally, the apparatus 200 further includes:
the extraction module is used for extracting the keywords of the label information and the keywords of the material information;
the second acquisition module is used for corresponding the keywords of the label information and the keywords of the material information so as to acquire the similarity of the corresponding keywords;
and the third determining module is used for determining that the label information corresponding to the material information is correct under the condition that the similarity reaches a preset threshold value.
The embodiments of the present application have been described in connection with the accompanying drawings, but the present application is not limited to the above-described embodiments, which are intended to be illustrative only and not limiting, and many forms can be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.