Article name matching method and device, electronic equipment and storage medium

By constructing and processing text pairs between item names and standard item names, replacing brands and categories, and calculating fine-grained similarity, the problem of inaccurate item name matching is solved, achieving more accurate matching results.

CN117725427BActive Publication Date: 2026-11-24XIAOHONGSHU TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311224147.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-20
Publication Date
2026-11-24
Estimated Expiration
2043-09-20

AI Technical Summary

Technical Problem

Existing technologies cannot guarantee the accuracy of matching results when determining whether an item name matches a standard item name, mainly because the item name has multiple aliases, which makes the direct similarity calculation method inaccurate.

Method used

Multiple text pairs are constructed, and fine-grained similarity is calculated by replacing and processing the brand and category of the item name and the standard item name. Text pairs with high target similarity are then selected to determine the final matching result.

Benefits of technology

It improves the accuracy of item name matching results, reduces the amount of data, increases matching efficiency, and ensures the accuracy of matching results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117725427B_ABST
    Figure CN117725427B_ABST
Patent Text Reader

Abstract

This application discloses an item name matching method, apparatus, electronic device, and storage medium. The method includes: obtaining a first item name; constructing multiple first text pairs based on the first item name and multiple first standard item names, wherein each first text pair includes a first item name and a first standard item name, and the first standard item names in any two first text pairs are different; processing the multiple first text pairs based on the first item name and each first standard item name to obtain multiple second text pairs, wherein each second text pair includes a first target item name and a first target standard item name; performing matching processing on the first target item name and the first target standard item name in each second text pair to determine the matching result corresponding to each second text pair; and determining the target matching result corresponding to the first item name based on the matching result corresponding to each second text pair.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of name matching technology, specifically to a method, apparatus, electronic device, and storage medium for matching item names. Background Technology

[0002] Currently, when determining whether a matching standard item name exists between multiple standard item names in a name database and the current item name, the similarity between the current item name and each standard item name is directly calculated to determine the matching result. However, since an item name typically has multiple aliases (i.e., multiple representations), this method of directly calculating the similarity between the current item name and each standard item name cannot guarantee the accuracy of the determined matching results. Therefore, improving the accuracy of determining the matching results for item names is an urgent problem to be solved. Summary of the Invention

[0003] This application provides a method, apparatus, electronic device, and storage medium for matching item names, which improves the accuracy of determining the matching results corresponding to item names.

[0004] In a first aspect, embodiments of this application provide an item name matching method, the method comprising:

[0005] Get the name of the first item;

[0006] Based on the first item name and multiple first standard item names, construct multiple first text pairs, wherein each first text pair includes the first item name and a first standard item name, and the first standard item names in any two first text pairs are different;

[0007] Based on the first item name and each first standard item name, multiple first text pairs are processed to obtain multiple second text pairs, wherein each second text pair includes the first target item name and the first target standard item name;

[0008] For each second text pair, perform matching processing on the first target item name and the first target standard item name to determine the matching result for each second text pair;

[0009] Based on the matching results for each second text pair, determine the target matching result corresponding to the first item name.

[0010] Secondly, embodiments of this application provide an item name matching device, which includes: an acquisition unit and a processing unit;

[0011] The acquisition unit is used to acquire the name of the first item;

[0012] The processing unit is configured to construct multiple first text pairs based on a first item name and multiple first standard item names, wherein each first text pair includes a first item name and a first standard item name, and the first standard item names in any two first text pairs are different;

[0013] The processing unit is configured to process multiple first text pairs based on a first item name and each first standard item name to obtain multiple second text pairs, wherein each second text pair includes a first target item name and a first target standard item name;

[0014] The processing unit is used to match the first target item name and the first target standard item name in each second text pair and determine the matching result corresponding to each second text pair.

[0015] The processing unit is used to determine the target matching result corresponding to the first item name based on the matching result corresponding to each second text pair.

[0016] Thirdly, embodiments of this application provide an electronic device, including: a processor and a memory, the processor being connected to the memory, the memory being used to store a computer program, and the processor being used to execute the computer program stored in the memory, so that the electronic device performs the method as described in the first aspect.

[0017] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that causes a computer to perform the method as described in the first aspect.

[0018] Fifthly, embodiments of this application provide a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and is operable to cause the computer to perform the method as described in the first aspect.

[0019] Implementing the embodiments of this application has the following beneficial effects:

[0020] First, obtain the first item name. Then, based on the first item name and multiple first standard item names, construct multiple first text pairs. Each first text pair includes the first item name and a first standard item name, and the first standard item names in any two first text pairs are different. That is, there is a one-to-one correspondence between the multiple first text pairs and the multiple first standard item names. Then, based on the first item name and each first standard item name, process the multiple first text pairs to obtain multiple second text pairs. Each second text pair includes the first target item name and the first target standard item name. In other words, we process the first item name and the first standard item name in each first text pair to obtain multiple second text pairs. At this point, the first target item name and the first target standard item name included in each second text pair are respectively the first item name and the first standard item name processed. The process involves first matching the first target item name with the first target standard item name in each second text pair, and then matching the first target item name with the first target standard item name in each second text pair to determine the matching result for each second text pair. Based on the matching result for each second text pair, the target matching result for the first item name is determined. In other words, when determining whether the first item name matches each first standard item name, the similarity between the first item name and each first standard item name is not directly calculated. Instead, the processed first item name and first standard item name in each second text pair, i.e., the first target item name and the first target standard item name, are matched to obtain the matching result for each second text pair. This improves the accuracy of the matching result for each second text pair, i.e., the matching degree between the first item name and each standard item name, and thus improves the accuracy of the target matching result for the first item name. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 A flowchart illustrating an item name matching method provided in an embodiment of this application;

[0023] Figure 2 A schematic diagram of replacing the first item brand D2 in a first text pair D1 with a first preset item brand D3, and replacing the item brand D5 in the first standard item name D4 in each first text pair D1 with a second preset item brand D6 to obtain a third text pair D7;

[0024] Figure 3 A schematic diagram illustrating the determination of the target similarity corresponding to a third text pair A1, provided in an embodiment of this application;

[0025] Figure 4 A flowchart illustrating a method for training an item name matching model provided for the implementation of this application;

[0026] Figure 5 This application provides an embodiment of a method for removing the content of the second standard item name E2 in the sixth text pair E1 when the object to be removed corresponding to the sixth text pair E1 is a third item category, thereby obtaining the seventh text pair E3.

[0027] Figure 6 This application provides an embodiment of a method for replacing the second standard item name F2 in the sixth text pair F1 with the fourth item category to obtain the seventh text pair F3.

[0028] Figure 7 A functional unit block diagram of an item name matching device provided in this application embodiment;

[0029] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0030] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0031] The terms "first," "second," "third," and "fourth," etc., used in the specification, claims, and drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0032] In this document, the term "embodiment" means that a particular feature, result, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0033] To facilitate understanding of this application, the relevant terms used in this application will first be explained:

[0034] Standard item name: Generally includes at least three parts: item brand, item attribute, and item category. For example, the item brand of "WWW First Series Bracelet" is "WWW", the item attribute is "First Series", and the item category is "bracelet". In addition, the item attribute can also be item series, item model, etc., but this application refers to item series, item model, etc. uniformly as item attribute.

[0035] Item name: It can generally include at least three parts: item brand, item attributes, and item category. It can also include at least the item brand and item attributes, or at least the item brand and item category.

[0036] Product brand: A brand can have multiple aliases, that is, multiple ways of representing it, or in layman's terms, multiple names; for example, if the product brand is "X", all the corresponding aliases for this product brand include: "Y" and "Z".

[0037] See Figure 1 , Figure 1 This is a flowchart illustrating an item name matching method provided in an embodiment of this application. The method includes, but is not limited to, steps 101-105:

[0038] 101: Get the name of the first item.

[0039] In the embodiments of this application, the first item name includes the first item brand and the first item category. Additionally, user-posted notes / articles / web pages can be obtained in advance, and then the names of the notes / articles / web pages can be extracted. If the names can be extracted, the first item name is obtained.

[0040] 102: Construct multiple first text pairs based on the first item name and multiple first standard item names.

[0041] Each first text pair includes a first item name and a first standard item name, and the first standard item names in any two first text pairs are different. In other words, multiple first text pairs and multiple first standard item names are already associated.

[0042] It should be noted that this application pre-establishes a standard name library, which includes multiple first standard item names. Therefore, after obtaining a first item name, multiple first standard item names can be obtained from the standard name library to construct multiple first text pairs with the first item name. Of course, we can also perform preliminary screening of multiple first standard item names in the standard name library based on the name information included in the first item name. For example, when the name information is a first item category, multiple first standard item names can be pre-screened based on the first item category to obtain multiple target first standard item names. Among them, the item category in multiple target first standard item names is the same as the first item category. Then, multiple first text pairs are constructed based on the first item name and multiple target first standard item names. At this time, the number of multiple first text pairs constructed is reduced, which speeds up the efficiency of name matching.

[0043] 103: Based on the first item name and each first standard item name, process multiple first text pairs to obtain multiple second text pairs.

[0044] Each second text pair includes a first target item name and a first target standard item name. In other words, by processing the first item name and each first standard item name in each first text pair, the corresponding first target item name and first target standard item name are obtained respectively. At this time, each second text pair includes the first target item name and the first target standard item name.

[0045] In an optional embodiment of this application, step 103 may further include:

[0046] First, replace the first item brand in each first text pair with a first preset item brand, and replace the item brand in the first standard item name in each first text pair with a second preset item brand, to obtain multiple third text pairs. Each third text pair includes a second target item name and a second target standard item name. The second target item name includes the first preset item brand, and the second target standard item name includes the second preset brand. In other words, after replacing the first item brand in the first item name in each first text pair with the first preset brand, the corresponding second target item name is obtained. After replacing the item brand in the first standard item name in each first text pair with the second preset brand, the corresponding second target standard item name is obtained.

[0047] It should be noted that the first preset item brand refers to the unified name corresponding to the first item brand in the first item name, and the second preset item brand refers to the unified name corresponding to the item brand in each first standard item name. That is to say, both the first and second preset item brands are pre-set, and the first preset item brand is one of all aliases corresponding to the first item brand, and the second preset item brand is one of all aliases corresponding to the item brand in each first standard item name. Specifically, for example, if the first item brand is "X", and all existing aliases corresponding to the first item brand include "X", "Y", and "Z", all aliases corresponding to the first item brand can be made into a first alias group and pre-stored in the brand alias library. At this time, we can assume that the pre-set first preset item brand is "Y". In this case, the first preset item brand is one of all aliases corresponding to the first item brand, that is, one of the first alias groups. Therefore, after obtaining the first item brand in each first text pair, the system finds the first alias group corresponding to the first item brand in the preset brand alias library, then obtains the pre-set first preset item brand from the first alias group, and replaces the first item brand in each first text pair with the first preset item brand. Additionally, if the first preset item brand and the second preset item brand corresponding to each first text pair are the same, it means that the first item brand in the first text pair and the item brand in the first standard item name are the same or are aliases of each other. Here, "mutually aliases" means that the first item brand and the item brand in the first standard item name both correspond to the same alias group, with the first item brand being one member of that alias group and the item brand in the first standard item name being the other member of that alias group. If the first preset item brand and the second preset item brand corresponding to each first text pair are different, it means that the first item brand in the first text pair and the item brand in the first standard item name are different and are not aliases of each other. Similarly, the principles and examples related to the second preset item brand are similar to those related to the first preset item brand, and will not be repeated here.

[0048] It should be noted that since both the first item brand and the item brand in each first standard item name have multiple aliases (e.g., the first item brand and the item brand in the first standard item name are aliases of each other, meaning they are both expressions of the same brand), directly determining whether the first item name and the first standard item name match will result in the case where the first item brand and the item brand in the first standard item name are aliases of each other being considered a mismatch, or the match score will be very low, thus failing to guarantee the accuracy of the final matching result. However, this application, regardless of whether the first item brand and the item brand in the first standard item name are aliases of each other, first replaces the first item brand and the item brand in the first standard item name with the corresponding first preset item brand and second preset brand, respectively, to obtain the corresponding second target item name and second target standard item name. This ensures that when determining whether the first item name and the first standard item name match, the matching is determined by whether the second target item name and the second target standard item name match. In this case, all aliases are replaced with preset brands, preventing the issue of aliases in the name from being considered a mismatch or having a low match score, thereby improving the accuracy of the item name matching result.

[0049] For example, see Figure 2 , Figure 2 This application provides an embodiment of a method for replacing the first item brand D2 in a first text pair D1 with a first preset item brand D3, and replacing the item brand D5 in the first standard item name D4 of each first text pair D1 with a second preset item brand D6 to obtain a third text pair D7, as shown in the diagram. Figure 2 As shown, the first text pair D1 includes two names: "W1 Classic Q1 Handbag" and "W2 Black Q1 Handbag". The first item name D8 is "W1 Classic Q1 Handbag", and the first standard item name D4 is "W2 Black Q1 Handbag". Then, the first item brand D2, "W1", is extracted from the first item name D8, and the item brand D5, "W2", is extracted from the first standard item name D4. Since the first item brand D2 and item brand D5 are aliases, corresponding to the same alias group, the alias group is used to obtain... A pre-defined alias is used as the first preset item brand D3 and the second preset item brand D6, which is "W". Then, "W1" in the first text pair D1 is replaced with "W", and "W2" in the first standard item name D4 in each first text pair D1 is replaced with "W", resulting in the third text pair D7. At this time, the third text pair D7 includes "W Classic Q1 Handbag" and "W Black Q1 Handbag", that is, the second target item name in the third text pair D7 is "W Classic Q1 Handbag", and the second target standard item name is "W Black Q1 Handbag".

[0050] Then, based on the first preset item brand, the second preset item brand in the second target standard item name of each third text pair, the first item category, and the second item category in the second target standard item name of each third text pair, multiple third text pairs are filtered to obtain multiple second text pairs. For example, this may specifically include steps S11-S15:

[0051] S11: For the third text pair A1, determine the first similarity between the first preset item brand and the second preset item brand A2, and determine the second similarity between the first item category and the second item category A4.

[0052] In the embodiments of this application, the third text pair A1 is any one of a plurality of third text pairs, the second preset item brand A2 is the second preset item brand in the second target standard item name A3 of the third text pair A1, and the second item category A4 is the second item category in the second target standard item name A3. For example, if the first preset item brand and the second preset item brand A2 are the same, the first similarity is determined to be a first preset value; if the first preset item brand and the second preset item brand A2 are different, the first similarity is determined to be a second preset value; if the first item category and the second item category A4 are the same, the second similarity is determined to be a first preset value; if the first item category and the second item category A4 are different, the second similarity is determined to be a second preset value.

[0053] S12: Based on the first similarity and the second similarity, perform content removal processing on the second target item name and the second target standard item name A3 respectively to obtain the first remaining item name and the second remaining item name respectively.

[0054] In embodiments of this application, the content of the first remaining name can be the second target item name, or the content of the second target item name excluding the first preset item brand and / or the first item category; similarly, the content of the second remaining name can be the second target standard item name A3 in the third text pair A1, or the name of the second target standard item name A3 in the third text pair A1 excluding the second preset item brand A2 and / or the second item category A4. Specifically:

[0055] If both the first similarity and the second similarity are the first preset values, remove the first preset item brand and the first item category from the second target item name to obtain the first remaining item name; and remove the second preset item brand A2 and the second item category A4 from the second target standard item name A3 to obtain the second remaining item name.

[0056] If the first similarity is the first preset value and the second similarity is the second preset value, remove the first preset item brand from the second target item name to obtain the first remaining item name; and remove the second preset item brand A2 from the second target standard item name A3 to obtain the second remaining item name.

[0057] If the first similarity is the second preset value and the second similarity is the first preset value, remove the first item category from the second target item name to obtain the first remaining item name; and remove the second item category A4 from the second target standard item name A3 to obtain the second remaining item name.

[0058] If both the first similarity and the second similarity are the second preset values, the second target item name is determined as the first remaining item name, and the second target standard item name A3 is determined as the second remaining item name.

[0059] S13: Determine the third similarity between the names of the first remaining items and the names of the second remaining items.

[0060] For example, the Levenstein ratio between the first and second remaining item names can be calculated as the third similarity; of course, this application does not limit the calculation method of the third similarity.

[0061] S14: Based on the first similarity, the second similarity, and the third similarity, determine the target similarity corresponding to the third text pair A1.

[0062] For example, the first similarity, the second similarity and the third similarity are summed to obtain the target similarity corresponding to the third text pair; or, the first similarity, the second similarity and the third similarity can be weighted and summed to obtain the target similarity. This application does not limit the method for obtaining the target similarity.

[0063] For example, see Figure 3 , Figure 3 This application provides an embodiment of a schematic diagram for determining the target similarity corresponding to a third text pair A1, as shown below. Figure 3As shown, the third text pair A1 includes "R Classic Q2 Handbag" and "R Black Q2 Handbag", meaning the second target item name in the third text pair A1 is "R Classic Q2 Handbag", and the second target standard item name A3 is "R Black Q2 Handbag". The first preset item brand is extracted as "R" from the second target item name, and the first item category is extracted as "handbag". Similarly, the second preset item brand A2 is extracted as "R" from the second target standard item name A3, and the second item category A4 is also extracted as "handbag". In this case, the first preset item brand and the second preset item brand A2 are the same, and the first item category and the second... Since item category A4 is the same, the first remaining name can be determined as "Classic Q2" and the second remaining name as "Black Q2". Then, since the first preset item brand and the second preset item brand A2 are the same, the first similarity between the first preset item brand and the second preset item brand A2 is determined as the first preset value. Since the first item category and the second item category A4 are the same, the second similarity between the first item category and the second item category A4 is also the first preset value. At the same time, the third similarity between the first remaining name and the second remaining name is determined. Finally, the target similarity is obtained based on the first similarity, the second similarity, and the third similarity.

[0064] It should be noted that this application first determines the first similarity between the first preset item brand and the second preset item brand A2, the second similarity between the first item category and the second item category A4, and the third similarity between the first remaining name and the second remaining name, to obtain the target similarity corresponding to the third text pair A1. That is, the matching degree / similarity between the second target item name and the second target standard item name A3 in the third text pair A1. Compared with directly calculating the similarity between the second target item name and the second target standard item name A3, this application obtains the final target similarity from multiple perspectives (i.e., brand perspective, category perspective), or in other words, it obtains the final target similarity based on fine-grained similarity, rather than calculating it from the overall granularity. This can improve the accuracy of determining the target similarity, and thus improve the accuracy of the matching results corresponding to the item name.

[0065] S15: Based on the target similarity corresponding to each third text pair, filter multiple third text pairs to obtain multiple second text pairs.

[0066] In embodiments of this application, the target similarity corresponding to each second text pair is greater than a first threshold. For example, the target similarity corresponding to each third text pair is compared with the first threshold, and the third text pairs corresponding to target similarities greater than the first threshold are determined as second text pairs. It should be noted that by filtering multiple third text pairs, multiple second text pairs are obtained, reducing the number of text pairs, speeding up the matching efficiency, and thus meeting the user's needs.

[0067] 104: Perform matching processing on the first target item name and the first target standard item name in each second text pair to determine the matching result corresponding to each second text pair.

[0068] In other words, the matching result of the first target item name and the first target standard item name in each second text pair is determined. The matching result can include scores / probabilities across three dimensions: match, mismatch, and missing information (meaning the first target item name does not fully include the item brand, item category, and item attribute, missing one or two of the item category or attribute). Specifically, the "match" dimension refers to the matching score between the first target item name and the first target standard item name; the "mismatch" dimension refers to the mismatch score; and the "missing information" dimension refers to the score indicating missing information in the first target item name. Of course, step 104 only needs to determine the matching score of the first target item name and the first target standard item name in each second text pair under the "match" dimension, thus determining the matching result for each second text pair.

[0069] 105: Based on the matching results corresponding to each second text pair, determine the target matching result corresponding to the first item name.

[0070] For example, the matching result corresponding to each second text pair (i.e., the matching score between the first target item name and the first target standard item name in the second text pair) can be compared with a preset threshold. The matching result that is greater than the preset threshold is determined as the target matching result corresponding to the first item name. Of course, if there are multiple matching results that are greater than the preset threshold, the largest matching result among the multiple matching results can be determined as the target matching result corresponding to the first item name.

[0071] If there are multiple target text pairs, we can take the text pair with the largest matching result corresponding to these multiple target text pairs as the target text pair here, and then determine the first target standard item name in the target text pair as the target matching result corresponding to the first item name. That is, the item name that matches the first target item name is the first target standard item name in the target text pair, or in other words, the item name that matches the first item name is the first standard item name in the first text pair corresponding to the target text pair.

[0072] In one optional embodiment, after determining the target matching result corresponding to the first item name, if the target matching result is greater than or equal to the second threshold, a third standard item name is determined, wherein the third standard item name is the first target standard item name in the second text pair corresponding to the target matching result, or can be understood as the first standard item name corresponding to the first target standard item name in the second text pair corresponding to the target matching result; then a statistics table is obtained, which is used to count the number of times each first standard item name is counted. That is, users can promote and publicize each first standard item name by publishing notes, articles, etc., and the number of times each first standard item name is promoted and publicized by users will be the corresponding number of times the first standard item name is counted in the statistics table; Then, the statistics table is updated based on the third standard item name to obtain the updated statistics table. That is, since the target matching result is greater than or equal to the second threshold, it means that the third standard item name has been recorded in the statistics table. At this time, the third standard item name can be found in the statistics table, and the statistical count corresponding to the third standard item name is updated, for example, by adding 1, to obtain the updated statistics table. Furthermore, if you want to obtain how many notes, articles, etc., record item name F within the target time period, you can obtain the number of times the standard item name corresponding to item name F is counted within the target event period from the statistics table. Then, the obtained number of times item name F is counted can be pushed to the target users (such as advertisers) so that the target users can gain market insight and take corresponding actions.

[0073] It should be noted that after constructing multiple first text pairs, this application replaces the first item brand in each first text pair with a first preset item brand, and replaces the item brand in the first standard item name in each first text pair with a second preset item brand, thus obtaining multiple third text pairs. This avoids the situation where the first item brand and the item brand in the first standard item name of each first text pair are considered mismatched due to aliasing issues, thereby improving the accuracy of subsequent matching results. Then, based on multi-angle / fine-grained calculation, the target similarity corresponding to each third text pair is calculated to filter multiple third text pairs, resulting in multiple second text pairs. This reduces the amount of data, speeds up the matching efficiency, and thus meets the user's needs.

[0074] In an optional embodiment, the item name matching method provided in this application is executed through an item name matching model; therefore, see [link to relevant documentation]. Figure 4 , Figure 4 A flowchart illustrating a method for training an item name matching model for implementation of this application is provided, including but not limited to steps 401-406:

[0075] 401: Get the name of the second item.

[0076] In this application embodiment, user-published notes / articles / web pages, etc., can be obtained in advance, and then the names of the notes / articles / web pages can be extracted. If they can be extracted, the name of the second item is obtained. Of course, the name of the second item can also be provided in advance by the user. This application does not limit the source of the name of the second item.

[0077] 402: Construct multiple fourth text pairs based on the second item name and multiple second standard item names.

[0078] Each fourth text pair includes a second item name and a second standard item name, and the second standard item names in any two fourth text pairs are different. In other words, there is a one-to-one correspondence between multiple fourth text pairs and multiple second standard item names.

[0079] It should be noted that this application pre-establishes a standard name library, which includes multiple second standard item names. Therefore, after obtaining the second item name, multiple second standard item names can be obtained from the standard name library to construct multiple fourth text pairs with the second item name. Of course, we can also perform preliminary screening on multiple second standard item names in the standard name library based on the name information included in the second item name to obtain multiple target second standard item names. The principle of preliminary screening is the same as the principle of preliminary screening on multiple first standard item names in the standard name library based on the name information included in the first item name, which will not be repeated here. Then, multiple fourth text pairs are constructed based on the second item name and multiple target second standard item names. At this time, the number of multiple text pairs constructed is reduced, which speeds up the efficiency of name matching.

[0080] 403: Based on the second item name and each second standard item name, process multiple fourth text pairs to obtain multiple fifth text pairs.

[0081] It should be noted that the principle of step 403 is similar to that of step 103, and will not be repeated here. It should also be noted that in step 103, multiple first text pairs are processed to obtain multiple third text pairs. Then, the target similarity corresponding to each third text pair is determined. Based on the target similarity corresponding to each third text pair, multiple third text pairs are then filtered to obtain multiple second text pairs. That is, the target similarity corresponding to each second text pair is greater than the first threshold. Similarly, during model training, the target similarity corresponding to each fifth text pair is greater than the third threshold. This means that the relationship between the item name corresponding to the second item name and the item name corresponding to the second standard item name in the fifth text pair with a target similarity greater than the third threshold is considered a match. In other words, multiple fifth text pairs are used to determine multiple positive sample pairs in model training.

[0082] 404: Construct multiple sixth text pairs based on multiple second standard item names.

[0083] In this context, multiple second standard item names correspond one-to-one with multiple sixth text pairs. Each sixth text pair includes multiple second standard item names corresponding to that sixth text pair. For example, each sixth text pair includes two second standard item names corresponding to that sixth text pair.

[0084] 405: Data augmentation is performed on one of the second standard item names in each sixth text pair to obtain multiple seventh text pairs.

[0085] In an optional embodiment, step 405 may include: obtaining the object to be removed corresponding to each first text pair, wherein the object to be removed represents the content to be removed from a second standard item name in each sixth text pair; based on the object to be removed corresponding to each first text pair, removing content from a second standard item name in each sixth text pair to obtain multiple seventh text pairs, wherein the object to be removed corresponding to each sixth text pair includes a first item attribute or a third item category. Therefore, when the object to be removed corresponding to each sixth text pair is a third item category, the content in a second standard item name in each sixth text pair, excluding the third item brand and the first item attribute, is removed to obtain multiple seventh text pairs. For example, see [link to relevant documentation]. Figure 5 , Figure 5 This application provides an embodiment of a method for removing the second standard item name E2 from the sixth text pair E1 when the object to be removed corresponding to the sixth text pair E1 is a third item category, thereby obtaining the seventh text pair E3. Figure 5 As shown, the sixth text pair E1 includes "G Black Q3 Handbag" and "G Black Q3 Handbag", where the second standard item name E2 is "G Black Q3 Handbag". When the object to be removed is a third item category, the third item category corresponding to the second standard item name E2 is found to be "handbag". Then, the "handbag" in the second standard item name E2 of the sixth text pair E1 is removed, resulting in the seventh text pair E3, which includes "G Black Q3" and "G Black Q3 Handbag". Similarly, when the object to be removed corresponding to each sixth text pair is a first item attribute, the content of one second standard item name in each sixth text pair, except for the third item brand and the third item category, is removed, resulting in multiple seventh text pairs. It should be noted that this method is similar to... Figure 5 Similar examples will not be repeated here.

[0086] In an optional embodiment, step 405 may further include: obtaining the object to be replaced corresponding to each sixth text pair, wherein the object to be replaced represents the content to be replaced in a second standard item name in each sixth text pair; based on the object to be replaced corresponding to each sixth text pair, performing content replacement on a second standard item name in each sixth text pair to obtain multiple seventh text pairs, wherein the object to be replaced corresponding to each sixth text pair includes a fourth item category. Therefore, for example, a fifth item category corresponding to each sixth text pair can be obtained from a preset item category library, wherein the fifth item category is different from the fourth item category. It should be noted that the item category library can pre-store multiple item categories, such as bracelets, necklaces, handbags, mobile phones, etc. Therefore, we can randomly obtain a fifth item category different from the fourth item category from the item category library; then, the fourth item category corresponding to the first and second standard item names in each sixth text pair is replaced with the fifth item category corresponding to each sixth text pair to obtain multiple seventh text pairs, for example, see [reference needed]. Figure 6 , Figure 6 This application provides an embodiment of a method for replacing the second standard item name F2 in the sixth text pair F1 with the fourth item category, resulting in a seventh text pair F3. Figure 6 As shown, the sixth text pair F1 includes "H First Series Bracelet" and "H First Series Bracelet", where the second standard item name F2 is "H First Series Bracelet"; when the object to be replaced is the fourth item category, the fourth item category corresponding to the second standard item name F2 is found to be "bracelet"; if the obtained fifth item category is "necklace", then "bracelet" in the second standard item name F2 is replaced with "necklace", resulting in the seventh text pair F3, where the seventh text pair F3 includes "H First Series Necklace" and "H First Series Bracelet".

[0087] It should be noted that the multiple seventh text pairs obtained through the embodiment of step 405 are either mismatched, i.e., the two item names in each seventh text pair are different, or one of the item names is missing some content, such as missing item category or item attribute. These two types of seventh text pairs can be identified as mismatched and missing content, respectively. In short, the two item names in each seventh text pair are mismatched, which can be understood as the multiple seventh text pairs being identified as multiple negative sample pairs during model training.

[0088] 406: Based on multiple fifth text pairs and multiple seventh text pairs, the pre-trained model is trained to obtain the item name matching model.

[0089] For example, since multiple fifth text pairs can be understood as multiple positive sample pairs, the corresponding labels for multiple fifth text pairs are denoted as "match"; multiple seventh text pairs can be understood as multiple negative sample pairs, and the corresponding labels for multiple seventh text pairs are denoted as "mismatch" or "information missing", or some of the seventh text pairs are denoted as "match", and the remaining seventh text pairs are denoted as "information missing". Then, a pre-defined model is trained based on multiple positive sample pairs and multiple negative sample pairs. In essence, after each sample pair is input into the pre-defined model, a three-class fully connected layer is connected to the output layer of the pre-trained model to output the scores of the sample pair in the matching dimension, the mismatch dimension, and the information missing dimension, that is, the output is the three-class classification result corresponding to the sample pair; it should be noted that this application does not limit the pre-trained model.

[0090] It should be noted that the training model provided in this application first constructs multiple fourth text pairs based on the second item name and multiple second standard item names; then, it processes the multiple fourth texts to obtain multiple positive sample pairs, i.e., multiple fifth text pairs; then, it constructs multiple sixth text pairs based on the multiple second standard item names; and then, it performs data augmentation on one of the second standard item names in each sixth text pair to obtain multiple negative sample pairs, i.e., multiple seventh text pairs. Compared with the existing method of constructing multiple sample pairs based on the obtained name A and multiple standard names by random combination, and then directly inputting the multiple sample pairs into the pre-trained model to output the matching result (including matching, non-matching, and missing information) corresponding to name A, the method of this application is more diversified. It does not simply input the randomly constructed sample pairs directly into the model, which can ensure the accuracy of determining the matching result corresponding to name A.

[0091] See Figure 7 , Figure 7 This is a functional unit block diagram of an item name matching device provided in an embodiment of this application. The item name matching device 700 includes: an acquisition unit 701 and a processing unit 702;

[0092] Acquisition unit 701 is used to acquire the name of the first item;

[0093] The processing unit 702 is configured to construct multiple first text pairs based on a first item name and multiple first standard item names, wherein each first text pair includes a first item name and a first standard item name, and the first standard item names in any two first text pairs are different;

[0094] The processing unit 702 is used to process multiple first text pairs based on a first item name and each first standard item name to obtain multiple second text pairs, wherein each second text pair includes a first target item name and a first target standard item name;

[0095] The processing unit 702 is used to perform matching processing on the first target item name and the first target standard item name in each second text pair, and determine the matching result corresponding to each second text pair;

[0096] The processing unit 702 is used to determine the target matching result corresponding to the first item name based on the matching result corresponding to each second text pair.

[0097] In specific implementations, the acquisition unit 701 and processing unit 702 described in the embodiments of the present invention can execute all implementations described in all embodiments of the item name matching method provided in the embodiments of the present invention, and will not be repeated here.

[0098] See Figure 8 , Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 8 As shown, the electronic device 800 includes a transceiver 801, a processor 802, and a memory 803. These are connected via a bus 804. The memory 803 stores computer programs and data, and can transfer data stored in the memory 803 to the processor 802.

[0099] Processor 802 is used to read the computer program in memory 803 and perform the following operations:

[0100] Control transceiver 801 to obtain the name of the first item;

[0101] Based on the first item name and multiple first standard item names, construct multiple first text pairs, wherein each first text pair includes the first item name and a first standard item name, and the first standard item names in any two first text pairs are different;

[0102] Based on the first item name and each first standard item name, multiple first text pairs are processed to obtain multiple second text pairs, wherein each second text pair includes the first target item name and the first target standard item name;

[0103] For each second text pair, perform matching processing on the first target item name and the first target standard item name to determine the matching result for each second text pair;

[0104] Based on the matching results for each second text pair, determine the target matching result corresponding to the first item name.

[0105] In specific implementations, the transceiver 801, processor 802, and memory 803 described in the embodiments of the present invention can execute all implementations of the item name matching method provided in all embodiments of the present invention, and will not be repeated here.

[0106] Specifically, the transceiver 801 described above can be Figure 7 The acquisition unit 701 of the item name matching device 700 in the embodiment of the processor 802 can be... Figure 7 The processing unit 702 of the item name matching device 700 in the embodiment.

[0107] It should be understood that the electronic devices mentioned in this application may include smartphones (such as Android phones, iOS phones, Windows Phones, etc.), tablet computers, PDAs, laptops, mobile internet devices (MIDs), or wearable devices. The above-mentioned electronic devices are merely examples and not exhaustive, and include, but are not limited to, the electronic devices described above. In practical applications, the above-mentioned electronic devices may also include: intelligent in-vehicle terminals, computer equipment, etc.

[0108] This application also provides a computer-readable storage medium storing a computer program that is executed by a processor to implement some or all of the steps of any of the article name matching methods described in the above method embodiments.

[0109] This application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the article name matching methods described in the above method embodiments.

[0110] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily essential to this application.

[0111] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0112] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical or other forms.

[0113] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0114] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software program module.

[0115] If the integrated unit is implemented as a software program module and sold or used as an independent product, it can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.

[0116] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0117] The embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. An article name matching method characterized by comprising: The method includes: Get the name of the first item; Based on the first item name and multiple first standard item names, multiple first text pairs are constructed, wherein each first text pair includes the first item name and a first standard item name, and the first standard item names in any two first text pairs are different; Based on the first item name and each first standard item name, the plurality of first text pairs are processed to obtain a plurality of second text pairs, wherein each second text pair includes a first target item name and a first target standard item name, and the first item name includes the first item brand and the first item category, including: Replace the first item brand in each first text pair with a first preset item brand, and replace the item brand in the first standard item name in each first text pair with a second preset item brand to obtain multiple third text pairs. Each third text pair includes a second target item name and a second target standard item name. The second target item name includes the first preset item brand, and the second target standard item name includes the second preset item brand. Determine the similarity between the second target item name and the second target standard item name in each third text pair to obtain the target similarity corresponding to each third text, wherein the target similarity is determined based on the first preset item brand, the first item category, the second preset item brand and the second item category in the second target standard item name of each third text pair; based on the target similarity corresponding to each third text pair, filter the plurality of third text pairs to obtain the plurality of second text pairs; For each second text pair, perform matching processing on the first target item name and the first target standard item name to determine the matching result for each second text pair; Based on the matching results corresponding to each second text pair, the target matching result corresponding to the first item name is determined.

2. The method of claim 1, wherein, Determining the similarity between the second target item name and the second target standard item name in each third text pair to obtain the target similarity corresponding to each third text includes: For a third text pair A1, determine the first similarity between the first preset item brand and the second preset item brand A2, and determine the second similarity between the first item category and the second item category A4, wherein the third text pair A1 is any one of the plurality of third text pairs, the second preset item brand A2 is the second preset item brand in the second target standard item name A3 in the third text pair A1, and the second item category A4 is the second item category in the second target standard item name A3; Based on the first similarity and the second similarity, content removal processing is performed on the second target item name and the second target standard item name A3 respectively to obtain the first remaining item name and the second remaining item name respectively; Determine the third similarity between the names of the first remaining items and the names of the second remaining items; Based on the first similarity, the second similarity, and the third similarity, the target similarity corresponding to the third text pair A1 is determined.

3. The method of claim 2, wherein, Determining the first similarity between the first preset item brand and the second preset item brand A2, and determining the second similarity between the first item category and the second item category A4, includes: If the first preset item brand and the second preset item brand A2 are the same, the first similarity is determined to be the first preset value; If the first preset item brand and the second preset item brand A2 are not the same, the first similarity is determined to be the second preset value; If the first item category and the second item category A4 are the same, the second similarity is determined to be the first preset value; If the first item category and the second item category A4 are not the same, the second similarity is determined to be the second preset value.

4. The method of claim 3, wherein, The step of removing content from the second target item name and the second target standard item name A3 based on the first similarity and the second similarity, respectively, to obtain the first remaining item name and the second remaining item name, includes: If both the first similarity and the second similarity are the first preset value, remove the first preset item brand and the first item category from the second target item name to obtain the first remaining item name, and remove the second preset item brand A2 and the second item category A4 from the second target standard item name A3 to obtain the second remaining item name; If the first similarity is the first preset value and the second similarity is the second preset value, remove the first preset item brand from the second target item name to obtain the first remaining item name, and remove the second preset item brand A2 from the second target standard item name A3 to obtain the second remaining item name; If the first similarity is the second preset value and the second similarity is the first preset value, remove the first item category from the second target item name to obtain the first remaining item name, and remove the second item category A4 from the second target standard item name A3 to obtain the second remaining item name; If both the first similarity and the second similarity are the second preset value, the second target item name is determined as the first remaining item name, and the second target standard item name A3 is determined as the second remaining item name.

5. The method according to any one of claims 1 to 4, characterized in that, After determining the target matching result corresponding to the first item name, the method further includes: If the target matching result is greater than or equal to the second threshold, a third standard item name is determined, wherein the third standard item name is the first target standard item name in the second text pair corresponding to the target matching result; Obtain a statistical table, which is used to count the number of times each first standard item name is counted; The statistical table is updated based on the third standard item name to obtain the updated statistical table.

6. The method according to any one of claims 1 to 4, characterized in that, The item name matching method is executed through an item name matching model, and the method further includes: Get the name of the second item; Based on the second item name and multiple second standard item names, multiple fourth text pairs are constructed, wherein each fourth text pair includes the second item name and a second standard item name, and the second standard item names in any two fourth text pairs are different; Based on the second item name and each second standard item name, the plurality of fourth text pairs are processed to obtain a plurality of fifth text pairs; Based on the plurality of second standard item names, a plurality of sixth text pairs are constructed, wherein the plurality of second standard item names correspond one-to-one with the plurality of sixth text pairs, and each sixth text pair includes a plurality of second standard item names corresponding to the sixth text pair; Data augmentation is performed on one of the second standard item names in each sixth text pair to obtain multiple seventh text pairs; The pre-trained model is trained based on the plurality of fifth text pairs and the plurality of seventh text pairs to obtain the item name matching model.

7. The method of claim 6, wherein, The process involves data augmentation of one second standard item name in each sixth text pair to obtain multiple seventh text pairs, including: Obtain the object to be removed corresponding to each first text pair, wherein the object to be removed represents the content to be removed from a second standard item name in each sixth text pair; Based on the object to be removed corresponding to each first text pair, the content of a second standard item name in each sixth text pair is removed to obtain the plurality of seventh text pairs.

8. The method of claim 7, wherein, The object to be removed corresponding to each sixth text pair includes a first item attribute or a third item category. Based on the object to be removed corresponding to each sixth text pair, content removal is performed on a second standard item name within each sixth text pair to obtain the plurality of seventh text pairs, including: When the object to be removed corresponding to each sixth text pair is the third item category, remove the content from one of the second standard item names in each sixth text pair except for the third item brand and the first item attribute to obtain the plurality of seventh text pairs; When the object to be removed corresponding to each sixth text pair is the first item attribute, the content other than the third item brand and the third item category in one of the second standard item names in each sixth text pair is removed to obtain the plurality of seventh text pairs.

9. The method of claim 6, wherein, The process involves data augmentation of one second standard item name in each sixth text pair to obtain multiple seventh text pairs, including: Obtain the object to be replaced for each sixth text pair, wherein the object to be replaced represents the content to be replaced in a second standard item name in each sixth text pair; Based on the object to be replaced corresponding to each sixth text pair, the content of one of the second standard item names in each sixth text pair is replaced to obtain the plurality of seventh text pairs.

10. The method of claim 9, wherein, The object to be replaced for each sixth text pair includes a fourth item category. Based on the object to be replaced for each sixth text pair, the content of a second standard item name in each sixth text pair is replaced to obtain the plurality of seventh text pairs, including: Obtain the fifth item category corresponding to each sixth text pair from a preset item category library, wherein the fifth item category is different from the fourth item category; The fourth item category corresponding to the first and second standard item names in each sixth text pair is replaced with the fifth item category corresponding to each sixth text pair to obtain the plurality of seventh text pairs.

11. An article name matching device characterized by comprising: The device includes: an acquisition unit and a processing unit; The acquisition unit is used to acquire the name of the first item; The processing unit is configured to construct multiple first text pairs based on the first item name and multiple first standard item names, wherein each first text pair includes the first item name and a first standard item name, and the first standard item names in any two first text pairs are different; The processing unit is configured to process the plurality of first text pairs based on the first item name and each first standard item name to obtain a plurality of second text pairs, wherein each second text pair includes a first target item name and a first target standard item name, the first item name including the first item brand and the first item category, including: Replace the first item brand in each first text pair with a first preset item brand, and replace the item brand in the first standard item name in each first text pair with a second preset item brand to obtain multiple third text pairs. Each third text pair includes a second target item name and a second target standard item name. The second target item name includes the first preset item brand, and the second target standard item name includes the second preset item brand. Determine the similarity between the second target item name and the second target standard item name in each third text pair to obtain the target similarity corresponding to each third text, wherein the target similarity is determined based on the first preset item brand, the first item category, the second preset item brand and the second item category in the second target standard item name of each third text pair; based on the target similarity corresponding to each third text pair, filter the plurality of third text pairs to obtain the plurality of second text pairs; The processing unit is used to match the first target item name and the first target standard item name in each second text pair and determine the matching result corresponding to each second text pair; The processing unit is used to determine the target matching result corresponding to the first item name based on the matching result corresponding to each second text pair.

12. An electronic device, comprising: include: A processor and a memory, the processor being connected to the memory, the memory being used to store a computer program, the processor being used to execute the computer program stored in the memory to cause the electronic device to perform the method as described in any one of claims 1-10.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that is executed by a processor to implement the method as described in any one of claims 1-10.

Citation Information

Patent Citations

  • Information processing method and device, equipment and storage medium

    CN115544341A

  • Determining and using brand information in electronic commerce

    US20140081701A1