Cross-regional commodity code mapping method and system, storage medium and electronic equipment
Through the cross-regional commodity code mapping method, the HS code classification and scoring model is used to solve the problem of low efficiency and accuracy of traditional classification methods, realize the rapid classification of the same commodity in different regions, and help traders accurately obtain overseas commodity codes. , which improves classification efficiency in international trade.
Patent Information
- Application Number
- CN202410925406.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-10-15
AI Technical Summary
The traditional way of classifying goods has low classification efficiency and accuracy due to the wide variety of goods and differences in coding in different regions. Especially in international trade, it is difficult to accurately determine the customs HS code of overseas goods.
Propose a cross-regional commodity coding mapping method. By training the HS coding classification model and scoring model, we can obtain the commodity description and coding of the target region, realize the rapid classification of the same commodity in different regions, and solve the problem of traders being unable to determine during the export process. The issue of HS coding for overseas goods classification.
It achieves rapid and accurate classification of the same product in different regions, helps companies or individuals quickly find classification information in target regions, and solves the problems of low efficiency and accuracy of traditional classification methods.
Smart Images

Figure CN118779724A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of commodity trade technology, and in particular to a cross-regional commodity code mapping method, system, storage medium and electronic equipment. Background Art
[0002] With the continuous development of global trade, there are many types of goods. Therefore, all goods need to be classified to help companies comply with international trade rules and tariff policies.
[0003] Traditional classification methods are generally performed manually, but due to the wide variety of commodities and the possible differences in specific coding applications in different countries or regions, it is impossible for humans to fully understand these differences, resulting in low classification efficiency and accuracy. Summary of the invention
[0004] Based on this, the purpose of the present invention is to propose a cross-regional commodity code mapping method, system, storage medium and electronic device, aiming to solve the problems of low classification efficiency and classification accuracy in traditional classification methods.
[0005] In one aspect, the present invention provides a cross-regional commodity code mapping method, the method comprising: Get the target region name and product description of the product to be matched; Inputting the commodity description of the commodity to be matched into the trained HS code classification model to obtain the HS code result of the commodity to be matched in the first region; Acquire at least one product description of the to-be-matched product in the target region according to the target region name and the HS code result; The matching degree between the at least one product description in the target area and the product to be matched is obtained according to the trained scoring model, so as to obtain the HS code of the product to be matched in the target area according to the matching degree.
[0006] In summary, based on the above-mentioned cross-regional commodity code mapping method, an intelligent classification method applied to international commodities is proposed to realize the rapid classification of the same commodity in different regions, thereby helping enterprises or individuals to quickly and accurately find the classification information of any commodity in the target area, that is, after entering the commodity name and commodity description in the destination country and Chinese, the domestic customs HS commodity code and the corresponding commodity code of the destination country are directly obtained, which solves the problem that traders cannot determine the HS code for overseas commodity classification during the export process.
[0007] Furthermore, the step of inputting the commodity description of the commodity to be matched into the trained HS code classification model to obtain the HS code result of the commodity to be matched in the first region includes: Acquire historical data of a plurality of commodities in a first region, the historical data comprising commodity information and HS codes corresponding to the commodity information; Segment the product, and generate a corresponding word vector group according to the segmentation result; The HS code classification model is trained according to the word vector group and the HS code corresponding to the commodity information.
[0008] Furthermore, the step of obtaining at least one product description of the to-be-matched product in the target region according to the target region name and the HS coding result includes: Extracting a code with a preset number of digits from the HS code result, and obtaining all corresponding HS codes in the target area according to the code with the preset number of digits; According to all the corresponding HS codes in the target area, the corresponding product descriptions are obtained one by one.
[0009] Furthermore, the step of obtaining the matching degree between the at least one product description in the target area and the product to be matched according to the trained scoring model, and obtaining the HS code of the product to be matched in the target area according to the matching degree includes: Obtaining HS codes and commodity descriptions of a plurality of commodities in at least one second region, wherein the target region is one of the second regions; Segmenting the product description of at least one second region, and marking the matching degree between each segmentation result and the product description of the second region; The scoring model is trained based on the labeled data.
[0010] Furthermore, the step of obtaining the matching degree between the at least one product description in the target area and the product to be matched according to the trained scoring model, and obtaining the HS code of the product to be matched in the target area according to the matching degree also includes: The highest matching degree is screened out from all matching degrees, and a product description corresponding to the highest matching degree is obtained, and the HS code of the to-be-matched product in the target area is obtained according to the product description corresponding to the highest matching degree.
[0011] On the other hand, an embodiment of the present invention further provides a cross-region commodity code mapping system, the system comprising: a data acquisition module, used to acquire a target region name and a commodity description of a commodity to be matched; A classification model training module, used for inputting the commodity description of the commodity to be matched into the trained HS code classification model to obtain the HS code result of the commodity to be matched in the first region; An information matching module, used for obtaining at least one product description of the to-be-matched product in the target region according to the name of the target region and the HS coding result; A mapping module is used to obtain the matching degree between the at least one product description in the target area and the product to be matched according to the trained scoring model, so as to obtain the HS code of the product to be matched in the target area according to the matching degree.
[0012] Furthermore, the classification model training module is also used for: Acquire historical data of a plurality of commodities in a first region, the historical data comprising commodity information and HS codes corresponding to the commodity information; Segment the product, and generate a corresponding word vector group according to the segmentation result; The HS code classification model is trained according to the word vector group and the HS code corresponding to the commodity information.
[0013] Furthermore, the information matching module is also used for: Extracting a code with a preset number of digits from the HS code result, and obtaining all corresponding HS codes in the target area according to the code with the preset number of digits; According to all the corresponding HS codes in the target area, the corresponding product descriptions are obtained one by one.
[0014] Another aspect of the present invention provides a storage medium, including one or more programs stored in the storage medium, which, when executed, implement the above-mentioned cross-regional commodity code mapping method.
[0015] Another aspect of the present invention further provides an electronic device, the electronic device comprising a memory and a processor, wherein: The memory is used to store computer programs; When the processor is used to execute the computer program stored in the memory, the cross-regional commodity code mapping method as described above is implemented.
[0016] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description or will be learned through embodiments of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 This is a flow chart of the cross-regional commodity code mapping method proposed in the first embodiment of the present invention; Figure 2 This is a schematic diagram of the structure of a cross-regional commodity code mapping system proposed in the second embodiment of the present invention.
[0018] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION
[0019] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.
[0020] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.
[0021] See also Figure 1 , which is a flow chart of a method for mapping commodity codes across regions in a first embodiment of the present invention, the method comprises steps S01 to S04, wherein: Step S01: Obtain the name of the target region and the product description of the product to be matched; In some embodiments, the destination region input by the user is first obtained to find the complete set of HS commodity coordination codes and corresponding complete commodity description information of the corresponding country according to the destination region, and then the commodity name and commodity description information of the commodity to be matched input by the user are obtained.
[0022] As an example but not a limitation, the user enters the destination country as the United States, the product name is a stroller, and the product description is: a high-view, sit-and-lie-down, foldable, and shock-absorbing stroller. The intelligent word segmentation results are: high-view, sit-and-lie-down, foldable, shock-absorbing, and stroller.
[0023] In addition, it should be pointed out that the product description of the product to be matched generally refers to the first region.
[0024] In addition, about HS code: also known as the code of the Harmonization System (HS-Code), it was created by the World Customs Organization and has been internationally recognized by almost all countries / regions. Each Harmonization System code consists of 6 digits. The first 2 digits indicate the chapter to which the HS code belongs. There are 21 chapters in total. Each chapter provides a description to summarize the corresponding commodity category. The next 4 digits are composed of the title and subtitle of the chapter. The 6-digit HS code is an internationally common code. The HS codes of various countries will be further subdivided on the basis of this 6-digit HS code to form the final HS code definition of the country. For example: China is a 10-digit HS code; the United States is a 10-digit HS code. In the last 4 digits of the HS code, the classification ideas of various countries for products are different.
[0025] Step S02: inputting the commodity description of the commodity to be matched into the trained HS code classification model to obtain the HS code result of the commodity to be matched in the first region; In this step, the HS code result is obtained by inputting the word segmentation result into the above-trained HS code classification model. It should be pointed out that the first region generally refers to the region where the enterprise or individual is located, usually the country, but it can also be another country.
[0026] Specifically, the intelligent word segmentation result in step S01 is input into the above-trained HS code classification model.
[0027] In addition, the process of constructing the HS code classification model is: obtaining historical data of multiple commodities in the first region, the historical data including commodity information and HS codes corresponding to the commodity information; performing word segmentation on the commodities, and generating corresponding word vector groups according to the word segmentation results; and training the HS code classification model according to the word vector group and the HS codes corresponding to the commodity information.
[0028] For example, historical data: 1) The original data is: cat scratching board|3|2|wooden|pine PINUS|non-disposable product|for pets||; the intelligent word segmentation result is: cat scratching board, wooden, pine, non-disposable, pet; the corresponding HS code is 4421999090, and the corresponding description of the product code is: unlisted wooden products; 2) The original data is: wooden dining table|0|0|Fraxinus spp.|for kitchen use|no brand|180*180*76cm|||; the intelligent word segmentation result is: wooden, dining table, ash, for kitchen use; the corresponding HS code is: 9403400090, and the corresponding description of the HS code is: other wooden furniture for kitchens.
[0029] Step S03: acquiring at least one product description of the to-be-matched product in the target region according to the target region name and the HS coding result; In some embodiments, in order to obtain the most matching product information, it is first necessary to extract a code of preset digits from the HS coding result, and obtain all corresponding HS codes in the target area based on the code of preset digits; and then obtain the corresponding product descriptions one by one based on all the corresponding HS codes in the target area.
[0030] For example and not limitation, the preset number of digits is generally the first six digits, that is, the first six digits of the code are locked by the obtained HS coding result.
[0031] Step S04: obtaining the matching degree between the at least one product description in the target area and the product to be matched according to the trained scoring model, so as to obtain the HS code of the product to be matched in the target area according to the matching degree.
[0032] In some embodiments, the specific process of constructing a scoring model is: The HS codes and product descriptions of multiple commodities in at least one second region are obtained, wherein the target region is one of the second regions; the product descriptions of at least one second region are segmented, and the matching degree between each segmentation result and the product description in the second region is marked; and a scoring model is trained according to the marked data.
[0033] Exemplarily, in the process of constructing the scoring model, it is necessary to translate the HS codes and corresponding product descriptions of each destination country (second region), and perform intelligent word segmentation on a large amount of accumulated historical product names and description text data, and mark the matching degree of the corresponding relationship with the product description under the corresponding HS code (for example: the corresponding matching degree between tables and furniture is 1; the corresponding matching degree between sofas and furniture is 1; the matching degree between tableware and furniture is 0.3; the matching degree between cars and furniture is 0), and input the marked data into the constructed intelligent model for training and learning, so as to obtain a trained scoring model of the corresponding descriptions of the destination country products and HS codes.
[0034] In addition, after obtaining the matching degree of at least one product description in the target area and the product to be matched, the highest matching degree is screened out from all the matching degrees, and the product description corresponding to the highest matching degree is obtained, and the HS code of the product to be matched in the target area is obtained according to the product description corresponding to the highest matching degree.
[0035] For example, the user enters the destination country as the United States, the product name is baby stroller, and the product description is: high-view, sitting, lying, folding, shock-absorbing baby stroller. The intelligent word segmentation result is: high-view, sitting, lying, folding, shock-absorbing, baby stroller. After entering the domestic HS code classification model, the output Chinese matching HS code is 8715000010, and the product description corresponding to the HS code is baby stroller. The first six digits of the HS code are 871500. The corresponding US HS codes for this group of six codes are: 1) 8715000020, and the corresponding product description is Baby carriages (including strollers); 2) 8715000040, and the corresponding product description is Parts. The product description originally input by the user is paired with the description of baby carriages (including lightweight baby strollers) corresponding to 8715000020 and input into the scoring model of the description corresponding to the destination country product and HS code, and the matching score is 1; the product description input by the user is paired with the product description parts corresponding to 8715000040 and input into the above model to obtain a matching score of 0.5, so the final result selects the HS code 8715000020 with a higher matching score as the final destination country HS code result.
[0036] In summary, based on the above-mentioned cross-regional commodity code mapping method, an intelligent classification method applied to international commodities is proposed to realize the rapid classification of the same commodity in different regions, thereby helping enterprises or individuals to quickly and accurately find the classification information of any commodity in the target area, that is, after entering the commodity name and commodity description in the destination country and Chinese, the domestic customs HS commodity code and the corresponding commodity code of the destination country are directly obtained, which solves the problem that traders cannot determine the HS code for overseas commodity classification during the export process.
[0037] See also Figure 2 , which is a schematic diagram of the structure of a cross-regional commodity code mapping system in the second embodiment of the present application, and the system includes: The data acquisition module 10 is used to acquire the name of the target region and the product description of the product to be matched; The classification model training module 20 is used to input the commodity description of the commodity to be matched into the trained HS code classification model to obtain the HS code result of the commodity to be matched in the first region; An information matching module 30, configured to obtain at least one product description of the to-be-matched product in the target region according to the name of the target region and the HS coding result; The mapping module 40 is used to obtain the matching degree between the at least one product description in the target area and the product to be matched according to the trained scoring model, so as to obtain the HS code of the product to be matched in the target area according to the matching degree.
[0038] In some embodiments, the classification model training module 20 is further used to: Acquire historical data of a plurality of commodities in a first region, the historical data comprising commodity information and HS codes corresponding to the commodity information; Segment the product, and generate a corresponding word vector group according to the segmentation result; The HS code classification model is trained according to the word vector group and the HS code corresponding to the commodity information.
[0039] In some embodiments, the information matching module 30 is further used to: Extracting a code with a preset number of digits from the HS code result, and obtaining all corresponding HS codes in the target area according to the code with the preset number of digits; According to all the corresponding HS codes in the target area, the corresponding product descriptions are obtained one by one.
[0040] In some embodiments, the mapping module 40 is further configured to: Obtaining HS codes and commodity descriptions of a plurality of commodities in at least one second region, wherein the target region is one of the second regions; Segmenting the product description of at least one second region, and marking the matching degree between each segmentation result and the product description of the second region; Train the scoring model based on the labeled data; The highest matching degree is screened out from all matching degrees, and a product description corresponding to the highest matching degree is obtained, and the HS code of the to-be-matched product in the target area is obtained according to the product description corresponding to the highest matching degree.
[0041] On the other hand, the present invention further proposes a computer storage medium on which one or more programs are stored, and when the programs are executed by a processor, the above-mentioned cross-regional commodity code mapping method is implemented.
[0042] On the other hand, the present invention further proposes an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory to implement the above-mentioned cross-regional commodity code mapping method.
[0043] Those skilled in the art will appreciate that the logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For purposes of this specification, "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0044] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0045] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0046] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0047] The above-described embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the attached claims.
Claims
1. A cross-regional commodity code mapping method, characterized in that: The method comprises: Get the target region name and product description of the product to be matched; Inputting the commodity description of the commodity to be matched into the trained HS code classification model to obtain the HS code result of the commodity to be matched in the first region; Acquire at least one product description of the to-be-matched product in the target region according to the target region name and the HS code result; The matching degree between the at least one product description in the target area and the product to be matched is obtained according to the trained scoring model, so as to obtain the HS code of the product to be matched in the target area according to the matching degree.
2. The cross-regional commodity code mapping method according to claim 1, characterized in that: The step of inputting the commodity description of the commodity to be matched into the trained HS code classification model to obtain the HS code result of the commodity to be matched in the first region comprises: Acquire historical data of a plurality of commodities in a first region, the historical data comprising commodity information and HS codes corresponding to the commodity information; Segment the product, and generate a corresponding word vector group according to the segmentation result; The HS code classification model is trained according to the word vector group and the HS code corresponding to the commodity information.
3. The cross-regional commodity code mapping method according to claim 2, characterized in that: The step of obtaining at least one product description of the to-be-matched product in the target region according to the target region name and the HS coding result comprises: intercepting a code of preset digits from the HS coding result, and obtaining all corresponding HS codes in the target region according to the code of preset digits; According to all the corresponding HS codes in the target area, the corresponding product descriptions are obtained one by one.
4. The cross-regional commodity code mapping method according to claim 3, characterized in that: The step of obtaining the matching degree between the at least one product description in the target area and the product to be matched according to the trained scoring model, and obtaining the HS code of the product to be matched in the target area according to the matching degree comprises: Obtaining HS codes and commodity descriptions of a plurality of commodities in at least one second region, wherein the target region is one of the second regions; Segmenting the product description of at least one second region, and marking the matching degree between each segmentation result and the product description of the second region; The scoring model is trained based on the labeled data.
5. The cross-regional commodity code mapping method according to claim 4, characterized in that: The step of obtaining the matching degree between the at least one product description in the target area and the product to be matched according to the trained scoring model, and obtaining the HS code of the product to be matched in the target area according to the matching degree also includes: The highest matching degree is screened out from all matching degrees, and a product description corresponding to the highest matching degree is obtained, and the HS code of the to-be-matched product in the target area is obtained according to the product description corresponding to the highest matching degree.
6. A cross-regional commodity code mapping system, characterized in that: The system comprises: A data acquisition module is used to obtain the name of the target region and the product description of the product to be matched; A classification model training module, used for inputting the commodity description of the commodity to be matched into the trained HS code classification model to obtain the HS code result of the commodity to be matched in the first region; An information matching module, used for obtaining at least one product description of the to-be-matched product in the target region according to the name of the target region and the HS coding result; A mapping module is used to obtain the matching degree between the at least one product description in the target area and the product to be matched according to the trained scoring model, so as to obtain the HS code of the product to be matched in the target area according to the matching degree.
7. The cross-regional commodity code mapping system according to claim 6, characterized in that: The classification model training module is also used for: Acquire historical data of a plurality of commodities in a first region, the historical data comprising commodity information and HS codes corresponding to the commodity information; Segment the product, and generate a corresponding word vector group according to the segmentation result; The HS code classification model is trained according to the word vector group and the HS code corresponding to the commodity information.
8. The cross-regional commodity code mapping system according to claim 7, characterized in that: The information matching module is also used for: Extracting a code with a preset number of digits from the HS code result, and obtaining all corresponding HS codes in the target area according to the code with the preset number of digits; According to all the corresponding HS codes in the target area, the corresponding product descriptions are obtained one by one.
9. A storage medium, characterized in that: include: The storage medium stores one or more programs, which, when executed by the processor, implement the cross-regional commodity code mapping method as described in any one of claims 1-5.
10. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein: The memory is used to store computer programs; When the processor is used to execute the computer program stored in the memory, it implements the cross-regional commodity code mapping method described in any one of claims 1-5.
