Search word component identification model construction method and search word component identification method

By conducting component identification, prediction, screening, labeling and training models on search word samples within the industry, the problem of low efficiency in traditional methods is solved, and efficient search word component identification is achieved, which is suitable for search word identification in different industries.

CN116720517BActive Publication Date: 2024-10-15TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210188760.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-28
Publication Date
2024-10-15
Estimated Expiration
2042-02-28

AI Technical Summary

Technical Problem

Traditional component identification methods are inefficient in item search terms, require a large amount of manual annotation of data, are cumbersome to operate, and have different important attributes in different industries, resulting in low efficiency in dictionary matching and model prediction.

Method used

By conducting component identification and prediction on search word samples in the industry, we select samples to be labeled that meet the labeling conditions, perform labeling and model training, and build a search word component identification model corresponding to the industry. We use active learning to reduce the number of manually labeled samples and improve model construction. efficiency.

Benefits of technology

It greatly reduces the number of manually labeled samples, simplifies data labeling operations, improves the construction efficiency and component identification efficiency of search word component identification models, and is suitable for search word identification in different industries.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116720517B_ABST
    Figure CN116720517B_ABST
Patent Text Reader

Abstract

The present application relates to a method for constructing a search term component identification model and a method for identifying search term components. The method for constructing a search term component identification model comprises: performing component identification prediction on the acquired search term samples in the industry to obtain component identification prediction results corresponding to each search term sample; screening out samples to be labeled whose component identification prediction results meet the labeling conditions from the search term samples; labeling the samples to be labeled to obtain labeled search term samples; performing model training based on the labeled search term samples to obtain a search term component identification model corresponding to the industry for component identification of the search term to be identified. The use of this method can greatly reduce the number of samples that are manually labeled by utilizing active learning, so as to improve the efficiency of constructing the search term component identification model by simplifying the data labeling operation, and obtain a search term component identification model that supports efficient component identification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a method for constructing a search term component recognition model and a method for recognizing search term components. Background Art

[0002] With the development of artificial intelligence technology, component recognition technology has emerged. Component recognition can also be called named entity recognition. It is mainly used to identify meaningful entities in a text. For example, when applied to search terms for items, component recognition can be used to identify attributes such as brand, product, color, size, etc. in the search terms.

[0003] In traditional technology, commonly used component identification methods include dictionary matching and model prediction. Dictionary matching refers to first mining the dictionary of each component, and then obtaining the component results in the text to be identified through text matching. Model prediction refers to training the model for component identification based on a large amount of manually annotated data.

[0004] However, when traditional methods are applied to search terms for items, due to the different important attributes corresponding to different industries (for example, in the mobile phone industry, "CPU (central processing unit) model" and "camera pixels" are important attributes, and in the beauty industry, "applicable skin type" and "slogan color number" are important attributes), the ingredient type definition required when mining the dictionary of each ingredient in dictionary matching and the large amount of manually annotated data used in model prediction all need to rely on staff to use professional knowledge for manual annotation, which is cumbersome and requires a large amount of annotated data, resulting in low efficiency in ingredient recognition. Summary of the invention

[0005] Based on this, it is necessary to provide a search term component identification model construction method, device, computer equipment, computer-readable storage medium and computer program product that can support efficient component identification, as well as a search term component identification method, device, computer equipment, computer-readable storage medium and computer program product that improves component identification efficiency in response to the above-mentioned technical problems.

[0006] In a first aspect, the present application provides a method for constructing a search term component recognition model. The method comprises:

[0007] Perform component recognition and prediction on the acquired industry search word samples to obtain component recognition and prediction results corresponding to each search word sample;

[0008] From the search word samples, select the samples to be labeled whose component recognition prediction results meet the labeling conditions;

[0009] Label the samples to be labeled to obtain labeled search term samples;

[0010] The model is trained based on the labeled search term samples to obtain the industry-specific search term component recognition model for component recognition of the search term to be recognized.

[0011] In a second aspect, the present application also provides a device for constructing a search term component recognition model. The device comprises:

[0012] A prediction module is used to perform component recognition prediction on the acquired industry search word samples to obtain component recognition prediction results corresponding to each search word sample;

[0013] A screening module is used to screen out samples to be labeled whose component recognition prediction results meet the labeling conditions from the search word samples;

[0014] The annotation module is used to annotate the samples to be annotated to obtain annotated search term samples;

[0015] The model training module is used to perform model training based on labeled search term samples to obtain an industry-specific search term component recognition model for component recognition of search terms to be recognized.

[0016] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0017] Perform component recognition and prediction on the acquired industry search word samples to obtain component recognition and prediction results corresponding to each search word sample;

[0018] From the search word samples, select the samples to be labeled whose component recognition prediction results meet the labeling conditions;

[0019] Label the samples to be labeled to obtain labeled search term samples;

[0020] The model is trained based on the labeled search term samples to obtain the industry-specific search term component recognition model for component recognition of the search term to be recognized.

[0021] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0022] Perform component recognition and prediction on the acquired industry search word samples to obtain component recognition and prediction results corresponding to each search word sample;

[0023] From the search word samples, select the samples to be labeled whose component recognition prediction results meet the labeling conditions;

[0024] Label the samples to be labeled to obtain labeled search term samples;

[0025] The model is trained based on the labeled search term samples to obtain the industry-specific search term component recognition model for component recognition of the search term to be recognized.

[0026] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0027] Perform component recognition and prediction on the acquired industry search word samples to obtain component recognition and prediction results corresponding to each search word sample;

[0028] From the search word samples, select the samples to be labeled whose component recognition prediction results meet the labeling conditions;

[0029] Label the samples to be labeled to obtain labeled search term samples;

[0030] The model is trained based on the labeled search term samples to obtain the industry-specific search term component recognition model for component recognition of the search term to be recognized.

[0031] In a sixth aspect, the present application provides a method for identifying search term components. The method comprises:

[0032] receiving a search term processing request, the search term processing request carrying a search term to be identified;

[0033] Carry out industry identification for the search terms to be identified and determine the target industry;

[0034] The search word component identification model of the target industry is used to perform component identification on the search word to be identified, and a search word component identification result is obtained. The search word component identification model is constructed by the above-mentioned search word component identification model construction method.

[0035] In a seventh aspect, the present application also provides a search term component identification device. The device comprises:

[0036] A receiving module, used for receiving a search term processing request, the search term processing request carrying a search term to be identified;

[0037] Industry identification module, used to identify the industry of the search term to be identified and determine the target industry;

[0038] The component identification module is used to identify the components of the search words to be identified through the search word component identification model of the target industry to obtain the search word component identification results. The search word component identification model is constructed by the above-mentioned search word component identification model construction method.

[0039] In an eighth aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0040] receiving a search term processing request, the search term processing request carrying a search term to be identified;

[0041] Carry out industry identification for the search terms to be identified and determine the target industry;

[0042] The search word component identification model of the target industry is used to perform component identification on the search word to be identified, and a search word component identification result is obtained. The search word component identification model is constructed by the above-mentioned search word component identification model construction method.

[0043] In a ninth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0044] receiving a search term processing request, the search term processing request carrying a search term to be identified;

[0045] Carry out industry identification for the search terms to be identified and determine the target industry;

[0046] The search word component identification model of the target industry is used to perform component identification on the search word to be identified, and a search word component identification result is obtained. The search word component identification model is constructed by the above-mentioned search word component identification model construction method.

[0047] In a tenth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0048] receiving a search term processing request, the search term processing request carrying a search term to be identified;

[0049] Carry out industry identification for the search terms to be identified and determine the target industry;

[0050] The search word component identification model of the target industry is used to perform component identification on the search word to be identified, and a search word component identification result is obtained. The search word component identification model is constructed by the above-mentioned search word component identification model construction method.

[0051] The above-mentioned search term component identification model construction method, device, computer equipment, storage medium and computer program product perform component identification prediction on the acquired search term samples in the industry to obtain the component identification prediction results corresponding to each search term sample, and screen out the samples to be labeled whose component identification prediction results meet the labeling conditions from the search term samples. The samples to be labeled can be screened out through active learning, and then labeled search term samples can be obtained by only labeling the samples to be labeled, which can greatly reduce the number of manually labeled samples, so that model training can be performed based on the labeled search term samples to obtain the industry-corresponding search term component identification model for component identification of the search term to be identified. The whole process can greatly reduce the number of manually labeled samples by utilizing active learning, so as to improve the efficiency of building the search term component identification model by simplifying the data labeling operation, and obtain a search term component identification model that supports efficient component identification.

[0052] The above-mentioned search term component identification method, apparatus, computer equipment, storage medium and computer program product, by receiving a search term processing request carrying a search term to be identified, performs industry identification on the search term to be identified, determines the target industry, and performs component identification on the search term to be identified through a search term component identification model of the target industry to obtain a search term component identification result. It can realize component identification by utilizing an efficiently constructed search term component identification model corresponding to the target industry, and can improve component identification efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 A diagram of an application environment of a method for building a search term component recognition model in one embodiment;

[0054] Figure 2 A schematic diagram of a flow chart of a method for constructing a search term component recognition model in one embodiment;

[0055] Figure 3 A schematic diagram of sample item information in an industry in one embodiment;

[0056] Figure 4 A schematic diagram of the model structure of an initial component identification model in one embodiment;

[0057] Figure 5 A schematic diagram of a process for performing attribute mining on sample item information in an industry in one embodiment;

[0058] Figure 6 A schematic diagram of a process for labeling sample item information in an industry in one embodiment;

[0059] Figure 7 A schematic diagram of a flow chart of a search word component identification method in one embodiment;

[0060] Figure 8 A schematic diagram of the principle of a method for building a search word component recognition model in one embodiment;

[0061] Fig. 9 A flowchart of using a title domain component recognition model to construct a search term domain component recognition model and obtain a final model in one embodiment;

[0062] Fig.10 A schematic diagram of a flow chart of a method for constructing a search term component recognition model in another embodiment;

[0063] Fig.11 A structural block diagram of a search term component recognition model building device in one embodiment;

[0064] Fig.12 is a structural block diagram of a search word component identification device in one embodiment;

[0065] Fig.13 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0066] This application relates to the field of artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.

[0067] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. Basic artificial intelligence technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, and mechatronics. Artificial intelligence software technology mainly includes several major directions such as computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning. Among them, the main focus of this application is natural language processing technology. Natural language processing (NLP) is an important direction in the fields of computer science and artificial intelligence. It studies various theories and methods that can achieve effective communication between people and computers using natural language. Natural language processing is a science that integrates linguistics, computer science, and mathematics. Therefore, research in this field will involve natural language, that is, the language used by people in daily life, so it is closely related to the study of linguistics. Natural language processing technology usually includes text processing, semantic understanding, machine translation, robot question answering, knowledge graphs, and other technologies.

[0068] In order to make the purpose, technical solutions and advantages of this application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application. It should be noted that the embodiments of this application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, assisted driving, etc.

[0069] The search term component identification model construction method and the search term component identification method provided in the embodiments of the present application can be applied to Figure 1 In the application environment shown, when a search is required, the user can send a search term processing request carrying the search term to be identified (XX mobile phone gold four-camera full network 8+128, where XX is a brand term) to the terminal through the interface displayed on the terminal. After receiving the search term processing request, the terminal will perform industry identification on the search term to be identified, determine that the target industry corresponding to the search term to be identified is the mobile phone industry, and then obtain the constructed search term component identification model for the mobile phone industry, and perform component identification on the search term to be identified through the search term component identification model for the mobile phone industry to obtain the search term component identification result (XX{brand} mobile phone{product positioning}gold{color}four-camera{number of cameras}full network{operator}8{running memory}+128{body memory}). Among them, the terminal can be but not limited to various desktop computers, laptops, smart phones, tablets, Internet of Things devices, portable wearable devices and aircraft, etc., and the Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc.

[0070] In one embodiment, Figure 2 As shown, a method for constructing a search word component recognition model is provided. This embodiment uses the method applied to a terminal as an example. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. Among them, the server can be implemented as an independent server or a server cluster composed of multiple servers, or it can be a node on the blockchain. In this embodiment, the method includes the following steps:

[0071] Step 202: perform component recognition prediction on the acquired industry search term samples to obtain component recognition prediction results corresponding to each search term sample.

[0072] Among them, the search term refers to the text entered by the user for search in the search engine, etc. For example, the search term may specifically refer to the text for search containing brand words, product words, colors, sizes, etc. The search term samples in the industry refer to the unlabeled search term samples in the industry. For example, the search term samples in the industry may specifically refer to the unlabeled search terms obtained based on the historical search records in the industry. Component identification prediction refers to predicting the meaningful entities in the search term samples in the industry through component identification. The meaningful entities may specifically be brand words, product words, colors, sizes, etc.

[0073] Among them, the component identification prediction result refers to the probability that each single word in the search word sample belongs to each annotation type, and the annotation type is determined according to the attribute information corresponding to the industry. For example, the annotation here can specifically refer to the BIO (B-begin, I-inside, O-outside, start, inside, outside) annotation, and the BIO annotation marks each element (that is, each single word in this embodiment) as "BX", "IX" or "O". Among them, "BX" means that the segment where this element is located belongs to type X and this element is at the beginning of this segment, "IX" means that the segment where this element is located belongs to type X and this element is in the middle of this segment, and "O" means that it does not belong to any type. It should be noted that the type in the BIO annotation is an attribute. For example, X can specifically represent attributes such as brand words (brand) and product words (product), then the annotation type of BIO can be: B-brand (the beginning of the brand word), I-brand (the middle of the brand word), B-product: (the beginning of the product word), I-product (the middle of the product word) and O (not a noun phrase).

[0074] Specifically, the terminal can obtain component recognition prediction results corresponding to each search word sample by performing component recognition prediction on the acquired industry search word samples. Furthermore, the terminal can perform component recognition prediction on the acquired industry search word samples through the object information component recognition model corresponding to the industry, and obtain component recognition prediction results corresponding to each search word sample. Among them, the object information component recognition model is obtained by training the acquired industry sample object information, and the industry sample object information refers to the object information used as samples in the industry. For example, when the industry is the home appliance industry, the industry sample object information may specifically refer to home appliance object information. To further illustrate, such as Figure 3 As shown, when the household appliance is a microwave oven, its household appliance information includes item title information and item description information (i.e., product parameters). The item description information specifically includes product model, external dimensions, door opening method, product net weight, rated input power, rated output power, microwave operating frequency, grilling power, volume, certification, product noise value, rated voltage / frequency and other attributes as well as attribute parameters corresponding to the attributes.

[0075] Step 204 , screening out samples to be labeled whose component recognition prediction results meet the labeling conditions from the search word samples.

[0076] Among them, the marking condition refers to the condition that needs to be manually marked, and the marking condition can be set as needed. For example, the marking condition can specifically be that the average value of the information entropy of each single word in the search term sample is greater than the preset information entropy threshold. For another example, the marking condition can specifically mean that the minimum confidence of the search term sample is less than the preset confidence threshold. For another example, the marking condition can specifically mean that the minimum probability difference calculated according to the edge sampling principle is less than the preset probability difference threshold. Among them, the preset information entropy threshold, the preset confidence threshold and the preset probability difference threshold can all be set as needed.

[0077] Among them, information entropy refers to the average amount of information after excluding redundancy in the information. The minimum confidence of the search term sample refers to the minimum value of the maximum probability determined by sorting the maximum probability of each word in the search term sample belonging to each annotation type. When performing component recognition prediction, for each word, a most likely annotation type and probability, that is, the maximum probability, will be predicted. Edge sampling refers to selecting those search term samples that are more likely to be judged as two categories, that is, the probability of the search term sample being judged as two categories is not much different. The minimum probability difference refers to the minimum value of the probability difference of each word in the search term sample. The probability difference of each word refers to the difference between the maximum probability and the second largest probability in the probability of the word belonging to each annotation type.

[0078] Specifically, the terminal will screen out samples to be labeled whose component recognition prediction results meet the labeling conditions from the search word samples according to the labeling conditions. Among them, when the labeling condition is that the average value of the information entropy of each single word in the search word sample is greater than the preset information entropy threshold, the terminal will calculate the average value of the information entropy of each single word in the search word sample, and screen out samples to be labeled that meet the labeling conditions by comparing the average value of the information entropy of each single word in the search word sample with the preset information entropy threshold.

[0079] Among them, when the labeling condition is that the minimum confidence of the search word sample is less than the preset confidence threshold, the terminal will determine the maximum probability of each word in the search word sample belonging to each labeling type based on the component recognition prediction result, sort the maximum probability of each word in the search word sample belonging to each labeling type, and determine the minimum value of the maximum probability as the minimum confidence of the search word sample. By comparing the minimum confidence of the search word sample and the preset confidence threshold, the samples to be labeled that meet the labeling conditions are screened out. For example, assuming that the maximum probability of each word in the search word sample belonging to each labeling type is: {B-brand: 0.7, I-brand: 0.6, B-product: 0.7, I-product: 0.4, O: 0.6, O: 0.2}, then the minimum confidence of the search word sample can be obtained as 0.2.

[0080] Among them, when the labeling condition is that the minimum probability difference calculated according to the edge sampling principle is less than the preset probability difference threshold, the terminal will calculate the probability difference of each word according to the component recognition prediction result, sort the probability difference of each word, and obtain the minimum value as the minimum probability difference. By comparing the minimum probability difference with the preset probability difference threshold, the samples to be labeled that meet the labeling conditions are screened out. For example, assuming that for the word "X", the probability of belonging to each labeling type is {0.4, 0.3, 0.1, 0.1, 0.1}, the difference between the maximum probability (0.4) and the second largest probability (0.3), that is, the probability difference is 0.1.

[0081] Step 206: annotate the sample to be annotated to obtain annotated search term samples.

[0082] Specifically, after determining the sample to be labeled, the terminal will label the sample to be labeled and obtain the labeled search term sample. Among them, the method of labeling the sample to be labeled can be to push the sample to be labeled and the component identification prediction result of the sample to be labeled to the user side, prompting the user to perform manual labeling. For example, the terminal can directly display the sample to be labeled and the component identification prediction result of the sample to be labeled on the corresponding display screen for the user to perform manual labeling. It should be noted that here, in addition to the sample to be labeled, the component identification prediction result of the sample to be labeled will also be displayed for the user to refer to for labeling during manual labeling, which can significantly reduce the difficulty of manual labeling and save human resources.

[0083] Step 208, model training is performed based on the labeled search term samples to obtain a search term component recognition model corresponding to the industry for performing component recognition on the search term to be recognized.

[0084] Specifically, the terminal can obtain the search term component recognition model corresponding to the industry for component recognition of the search term to be recognized by performing model training based on the labeled search term samples. Furthermore, in order to improve the component recognition accuracy of the search term component recognition model, the model training can be specifically an iterative training process, that is, after performing model training based on the labeled search term samples, the terminal will first obtain a component recognition model to be optimized, then obtain new search term samples, perform model training on the component recognition model to be optimized based on the newly obtained search term samples, obtain a new component recognition model to be optimized, and return to the step of performing model training on the component recognition model to be optimized based on the newly obtained search term samples, and obtain a new component recognition model to be optimized, until the latest component recognition model to be optimized reaches the preset stop iterative training condition, and obtains the search term component recognition model corresponding to the industry.

[0085] The preset conditions for stopping iterative training can be set as needed, and this embodiment does not specifically limit this. For example, the preset conditions for stopping iterative training can be that the model accuracy of the latest component identification model to be optimized reaches the preset accuracy target, wherein the preset accuracy target can be set as needed, for example, the preset accuracy target can be 95%. The model accuracy can be obtained by calculating the accuracy index of the latest component identification model to be optimized on a predefined test set, and the predefined test set refers to a predefined test set, which includes search terms and corresponding component identification results.

[0086] Furthermore, if the terminal uses the industry-corresponding item information component recognition model to perform component recognition prediction on the acquired search term samples within the industry, then when training the model based on the annotated search term samples, the item information component recognition model can be directly trained based on the annotated search term samples. In this way, the search term component recognition model can be obtained by optimizing the item information component recognition model, thereby improving the component recognition accuracy of the search term component recognition model.

[0087] The above-mentioned search term component identification model construction method performs component identification prediction on the acquired search term samples in the industry to obtain the component identification prediction results corresponding to each search term sample, and screens out the samples to be labeled whose component identification prediction results meet the labeling conditions from the search term samples. The samples to be labeled can be screened out through active learning, and then the labeled search term samples can be obtained by only labeling the samples to be labeled, which can greatly reduce the number of manually labeled samples, so that model training can be performed based on the labeled search term samples to obtain the industry-corresponding search term component identification model for component identification of the search terms to be identified. The whole process can greatly reduce the number of manually labeled samples by utilizing active learning, so as to improve the efficiency of building the search term component identification model by simplifying the data labeling operation, and obtain a search term component identification model that supports efficient component identification.

[0088] In one embodiment, from the search word samples, samples to be labeled whose component recognition prediction results meet the labeling conditions are screened out, including:

[0089] According to the component recognition prediction results, the probability of each word in the search word sample belonging to each annotation type is obtained;

[0090] Calculate the information entropy of each word based on the probability of belonging to each annotation type;

[0091] The average value of the information entropy of each word in the search term sample is calculated, and the search term samples whose average value is greater than the preset information entropy threshold are selected as the samples to be labeled.

[0092] The annotation type is all possible annotations determined according to the attribute information corresponding to the industry. For example, when the annotation is BIO, the annotation type can be specifically composed of B / I / OX, where X represents the attribute, "BX" means that the segment where the element is located belongs to type X and the element is at the beginning of the segment, "IX" means that the segment where the element is located belongs to type X and the element is in the middle of the segment, and "O" means that it does not belong to any type.

[0093] Specifically, the component recognition prediction result includes the probability that each single word in the search word sample belongs to each annotation type. Therefore, the terminal can directly obtain the probability that each single word in the search word sample belongs to each annotation type based on the component recognition prediction result. After obtaining the probability that each single word belongs to each annotation type, the terminal will calculate the information entropy of each single word according to the probability of belonging to each annotation type and the information entropy formula, calculate the average value of the information entropy of each single word in the search word sample, compare the average value with the preset information entropy threshold, and filter out the search word samples whose average value is greater than the preset information entropy threshold as the samples to be labeled. Among them, the information entropy formula is: p(x i ) is the probability of belonging to each label type, and n is the number of label types to which it belongs. The average value of the information entropy of each word in the search term sample is the ratio of the sum of the information entropies of all words in the search term sample to the number of words in the search term sample. In this embodiment, the probability of each word in the search term sample belonging to each annotation type is obtained according to the component recognition prediction result, and the information entropy of each word is calculated according to the probability of belonging to each annotation type. The average value of the information entropy of each word in the search term sample is calculated, and the search term samples can be screened using the average value, and the search term samples whose average value is greater than the preset information entropy threshold are screened as samples to be labeled.

[0094] In one embodiment, component recognition prediction is performed on the acquired industry search word samples to obtain component recognition prediction results corresponding to each search word sample, including:

[0095] Through the industry-specific item information component recognition model, the component recognition prediction is performed on the acquired search word samples in the industry to obtain the component recognition prediction results corresponding to each search word sample;

[0096] Among them, the item information component recognition model is constructed in the following way:

[0097] Perform attribute mining on the acquired sample item information within the industry to obtain attribute information corresponding to the industry and an attribute dictionary corresponding to the attribute information, wherein the attribute dictionary includes attribute parameters;

[0098] According to the attribute information and the attribute parameters in the attribute dictionary, the sample item information in the industry is labeled to obtain the item information training sample;

[0099] The initial component recognition model is trained through item information training samples to obtain the item information component recognition model corresponding to the industry.

[0100] Among them, the industry-corresponding item information component identification model refers to a model obtained through training that can be used to identify the components of item information. Sample item information in the industry refers to item information used as samples in the industry, including item title information and item description information, wherein the item title information refers to the title used when describing the item, for example, the item title information can be in the form of {[brand word][volume size][product word][power size]}. Item description information refers to information that describes the item in detail, that is, item parameters, including the attributes of the item and the attribute parameters corresponding to the attributes. For example, the item description information can specifically be product parameters. For example, for a household microwave oven, its item description information can specifically include attributes such as product model, external dimensions, door opening method, product net weight, rated input power, rated output power, microwave operating frequency, grilling power, volume, certification, product noise value, rated voltage / frequency, and the like, as well as attribute parameters corresponding to the attributes.

[0101] Among them, attribute refers to the properties of an item. The attribute information corresponding to an industry refers to the properties of most items in the industry. For example, in the home appliance industry, the rated input power, rated output power, etc. are the attribute information corresponding to the industry. The attribute dictionary corresponding to the attribute information refers to the set of attribute parameters corresponding to the attribute information. The attribute parameter refers to the attribute value corresponding to the attribute information. For example, for the rated input power and rated output power, the corresponding attribute parameters are specific power values.

[0102] The initial component recognition model refers to a component recognition model that has not been trained. For example, the initial component recognition model can be a model based on BERT (Bidirectional Encoder Representation from Transformers) + CRF (Conditional Random Field), and its model structure is as follows: Figure 4 As shown in the figure, the BERT+CRF-based model is a model that can be used for sequence labeling. Its input layer takes each word in the text sequence (in this embodiment, the item information training sample) as the input of BERT, and then uses BERT to encode the input text sequence, that is, to extract features. After passing through the bidirectional BERT layer, a CRF layer is used for decoding, and the features extracted by the BERT layer are used as input. The CRF layer is used to calculate the label of each element in the text sequence according to the features extracted by the BERT layer, that is, the probability that each word in the item information training sample belongs to each labeling type.

[0103] Specifically, the terminal can perform component recognition prediction on the acquired search term samples in the industry through the component recognition model of the item information corresponding to the industry, and obtain the component recognition prediction results corresponding to each search term sample. Among them, the component recognition model of the item information corresponding to the industry needs to be pre-built, and the construction method of the item information component recognition model can be: the terminal first takes all the attributes appearing in the sample item information in the industry as candidate attributes, and then traverses the sample item information in the industry according to the candidate attributes, and mines the attribute information corresponding to the industry and the attribute dictionary corresponding to the attribute information from the candidate attributes, and then uses the attribute parameters in the attribute dictionary to perform text matching on the item title information in the sample item information in the industry, and obtains the target attribute parameters (i.e., the attribute parameters appearing in the item title information) that match the attribute parameters, and then determines the corresponding target attribute information from the attribute information according to the target attribute parameters, and annotates the item title information according to the target attribute parameters and the target attribute information, and obtains the item information training sample, and then supervised training is performed on the initial component recognition model through the item information training sample to obtain the item information component recognition model corresponding to the industry.

[0104] Among them, supervised training of the initial component recognition model through item information training samples refers to training with the item title information in the item information training samples as input and the annotation of the item title information as the label of supervised training. Specifically, when conducting supervised training, the initial component recognition model will first be used to predict the component recognition of the item title information in the item information training samples, and the component recognition prediction results corresponding to each item title information will be obtained. The model loss function is calculated by comparing the component recognition prediction results and the annotation of the item title information, and the parameters of the initial component recognition model are adjusted according to the model loss function until the initial component recognition model reaches the preset stop training condition, and the item information component recognition model corresponding to the industry is obtained. Among them, the preset stop training condition can be set as needed. For example, the preset stop training condition can be specifically that the model loss function is less than the preset loss function threshold, wherein the preset loss function threshold can be set as needed. For another example, the preset stop training condition can be specifically that the model loss function converges.

[0105] In this embodiment, by performing attribute mining on the acquired sample item information within the industry, attribute information corresponding to the industry and an attribute dictionary corresponding to the attribute information can be obtained. By labeling the sample item information within the industry according to the attribute information and the attribute parameters in the attribute dictionary, item information training samples can be obtained. The item information training samples can be used to train an initial component recognition model to realize the construction of an item information component recognition model corresponding to the industry. Furthermore, the item information component recognition model corresponding to the industry can be used to perform component recognition prediction on the acquired search term samples within the industry to obtain component recognition prediction results corresponding to each search term sample.

[0106] In one embodiment, attribute mining is performed on the acquired sample item information within the industry to obtain attribute information corresponding to the industry and an attribute dictionary corresponding to the attribute information, including:

[0107] The attributes appearing in the sample item information in the industry are taken as candidate attributes, and the sample item information in the industry is traversed to obtain the attribute characteristics and attribute parameter sets of each candidate attribute;

[0108] According to the attribute characteristics, the attribute importance of the candidate attribute is calculated;

[0109] According to the attribute importance, the target attribute that meets the attribute importance screening condition is screened out from the candidate attributes;

[0110] Merge the target attributes to obtain attribute information;

[0111] According to the attribute information, the attribute parameter set is aggregated to obtain an attribute dictionary matching the attribute information. Among them, the attribute feature refers to the feature used to characterize the characteristics of the candidate attribute in the sample item information in the industry, including at least two of the distribution frequency feature, the title co-occurrence feature and the word weight feature, wherein the distribution frequency feature refers to the frequency of the candidate attribute appearing in the item description information in the sample item information in the industry, the title co-occurrence feature refers to the co-occurrence frequency of the attribute parameter corresponding to the candidate attribute in the item title information in the sample item information in the industry, that is, the frequency of the attribute parameter corresponding to the candidate attribute in the item title information, and the word weight feature refers to the average word weight of the attribute parameter corresponding to the candidate attribute in the item title information in the sample item information in the industry, which is used to characterize the importance of the candidate attribute in the sample item information in the industry. It should be noted that the distribution frequency feature and the title co-occurrence feature can be directly obtained by traversing the sample item information in the industry, and the word weight feature needs to be calculated using a pre-trained word weight model. By inputting the sample item information in the industry into the pre-trained word weight model, the weight of each word in the sample item information in the industry can be obtained, and the word weight feature can be obtained by averaging the weight of each word. The pre-trained word weight model can be trained as needed, and this embodiment does not make any specific limitation here, as long as it can output the weight of the word. The attribute importance is used to describe the importance of the attribute.

[0112] Specifically, the terminal will take all the attributes that appear in the sample item information in the industry as candidate attributes, and traverse the sample item information in the industry according to the candidate attributes to obtain the attribute characteristics and attribute parameter sets of each candidate attribute respectively, and the attribute characteristics include at least two of the distribution frequency characteristics, the title co-occurrence characteristics and the word weight characteristics. After obtaining the attribute characteristics, the terminal will perform weighted averaging on the attribute characteristics, calculate the attribute importance of the candidate attributes, and filter out the target attributes that meet the attribute importance filtering conditions from the candidate attributes according to the attribute importance, wherein the attribute importance filtering conditions can be set as needed, for example, the attribute importance filtering conditions can be specifically that the attribute importance is greater than the preset importance threshold, wherein the preset importance threshold can be set as needed.

[0113] Specifically, after obtaining the target attributes, since there may be semantically similar attributes in all target attributes, such as "fragrance" and "aroma", in order to ensure the distinction between the components (i.e., attributes) of component identification, similar attributes need to be merged. The terminal will calculate the attribute similarity between the target attributes, and merge similar attributes in the target attributes according to the attribute similarity to obtain attribute information. After obtaining the attribute information, the terminal will aggregate the attribute parameter set according to the attribute information, that is, aggregate the attribute parameter set of the merged target attributes together to obtain the attribute dictionary corresponding to the attribute information. Furthermore, in the process of obtaining the attribute dictionary, after aggregating the attribute parameter set, the terminal will also clean the attribute parameters in the aggregated attribute parameter set, and obtain the attribute dictionary corresponding to the attribute information according to the cleaned attribute parameters. Among them, the cleaning method includes but is not limited to text normalization, stop word filtering, meaningless word filtering, etc. For example, text normalization can specifically be case conversion, special symbol processing, etc.

[0114] For example, the flow chart of attribute mining for sample item information in the industry can be as follows: Figure 5 The terminal first filters the attribute importance according to the sample item information in the industry. At this time, the terminal will first filter the sample item information in the industry (i.e. Figure 5 The item details page data in the terminal (it should be noted that the item details page data here specifically refers to the item details page data when the item is displayed on the terminal interface) is used as a candidate attribute, and the sample item information in the industry is traversed to obtain the attribute characteristics and attribute parameter sets of each candidate attribute respectively. Then, based on the attribute characteristics, the attribute importance of the candidate attribute is calculated. Finally, based on the attribute importance, the target attribute that meets the attribute importance screening conditions is screened out from the candidate attributes to complete the attribute importance filtering. After completing the attribute importance filtering, the terminal will merge the target attributes, that is, merge similar attributes, and obtain attribute information (that is, Figure 5After obtaining the attribute information, the terminal aggregates the attribute parameter set according to the attribute information, uses the aggregated attribute parameter set as the attribute dictionary corresponding to the attribute information, cleans the attribute dictionary, and obtains the final attribute dictionary corresponding to the attribute information.

[0115] In this embodiment, by taking the attributes appearing in the sample item information in the industry as candidate attributes, traversing the sample item information in the industry, respectively obtaining the attribute characteristics and attribute parameter set of each candidate attribute, calculating the attribute importance of the candidate attribute according to the attribute characteristics, and being able to screen out target attributes that meet the attribute importance screening conditions from the candidate attributes according to the attribute importance, and by merging the target attributes to obtain attribute information, the attribute parameter set can be aggregated according to the attribute information to obtain an attribute dictionary that matches the attribute information. In one embodiment, the target attributes are merged to obtain the attribute information including:

[0116] Calculate attribute similarity between target attributes;

[0117] According to the attribute similarity, similar attributes are merged to obtain attribute information.

[0118] Among them, attribute similarity is used to describe the similarity between attributes.

[0119] Specifically, when the terminal merges the target attributes, it will first calculate the attribute similarity between any two target attributes, and then merge the similar attributes in the target attributes according to the attribute similarity to obtain the attribute information. When calculating the attribute similarity, the word vector similarity of word2vec (a related model used to generate word vectors) can be used for calculation (i.e., the word vector of the target attribute is first calculated by a pre-trained word2vec model, and then the attribute similarity is calculated using the word vector of the target attribute), or the similarity score between the target attributes can be calculated by a pre-trained BERT model. This embodiment does not limit the method of calculating the attribute similarity.

[0120] Furthermore, when merging the target attributes, the terminal will first sort the target attributes according to the attribute importance as a candidate sequence, and then generate an empty sequence as a result sequence. Each time, a target attribute with the greatest importance is selected from the candidate sequence for judgment. If the result sequence is empty, the target attribute with the greatest importance is directly added to the result sequence and deleted from the candidate sequence. If the result sequence is not empty, the attribute similarity between the target attribute with the greatest importance and each target attribute in the result sequence is checked. If the attribute similarities are all less than the preset similarity threshold, the target attribute with the greatest importance is added to the result sequence, otherwise the target attribute with the greatest importance is discarded. After traversing all the target attributes in the candidate sequence, the target attribute in the result sequence is used as attribute information.

[0121] In this embodiment, by calculating the attribute similarity between target attributes, similar attributes in the target attributes can be merged according to the attribute similarity to obtain attribute information.

[0122] In one embodiment, sample item information in the industry is labeled according to the attribute information and the attribute parameters in the attribute dictionary to obtain item information training samples including:

[0123] Segment the title information of sample items in the industry to obtain the title segmentation results;

[0124] Perform text matching on the title segmentation result through the attribute parameters in the attribute dictionary to obtain a text matching result, which includes a target attribute parameter that matches the attribute parameter;

[0125] According to the target attribute parameter, determining corresponding target attribute information from the attribute information;

[0126] According to the target attribute parameters and target attribute information, the item title information is labeled to obtain item information training samples.

[0127] Specifically, the terminal will segment the title information of the sample item information in the industry to obtain the title segmentation result, perform text matching on the title segmentation result through the attribute parameters in the attribute dictionary to obtain the preliminary matching result, check whether the segmentation in the preliminary matching result conflicts with the title segmentation result, remove unreasonable matching results, and retain the maximum matching result in the preliminary matching result as the text matching result. Among them, the maximum matching result can be specifically the maximum positive matching result.

[0128] Specifically, after obtaining the text matching result, the terminal will determine the corresponding target attribute information from the attribute information according to the target attribute parameter that matches the attribute parameter in the text matching result, mark the corresponding target attribute information at the position of the target attribute parameter in the item title information, and obtain the item information training sample. Taking a microwave oven as an example to illustrate the item information training sample, the item information training sample can be in the form of "brand word [brand] 23 liters [volume] variable frequency household microwave oven [product] 900w (watt) [power]".

[0129] For example, the flowchart of labeling sample item information in the industry in this embodiment can be as follows: Figure 6 As shown. The terminal will first segment the item title information in the sample item information in the industry to obtain the title segmentation result, and then use the attribute dictionary ( Figure 6The specific examples are attribute parameters in the attribute A dictionary, attribute B dictionary, attribute C dictionary and attribute D dictionary, text matching is performed on the title segmentation results to obtain preliminary matching results, segmentation check is performed on the preliminary matching results (i.e., check whether the segmentation in the preliminary matching results conflicts with the title segmentation results, and remove unreasonable matching results), the maximum matching result in the preliminary matching results is retained as the text matching result, and the corresponding target attribute information is determined from the attribute information according to the target attribute parameters in the text matching results that match the attribute parameters, and the item title information is labeled according to the target attribute parameters and the target attribute information to obtain item information training samples, i.e., output samples.

[0130] In this embodiment, by segmenting the item title information in the sample item information in the industry, the title segmentation result is obtained, and the title segmentation result is text matched through the attribute parameters in the attribute dictionary, so that a text matching result including the target attribute parameters that match the attribute parameters can be obtained, and then the corresponding target attribute information can be determined from the attribute information according to the target attribute parameters, and the item title information is labeled according to the target attribute parameters and the target attribute information to obtain an item information training sample.

[0131] In one embodiment, model training is performed based on labeled search word samples to obtain a search word component recognition model corresponding to the industry for component recognition of the search word to be recognized, including:

[0132] The item information component recognition model is trained by annotating search word samples to obtain a component recognition model to be optimized;

[0133] The component identification model to be optimized is trained by using the newly acquired search word samples to obtain a new component identification model to be optimized;

[0134] Return to the step of training the component identification model to be optimized using the newly acquired search term samples to obtain a new component identification model to be optimized, until the latest component identification model to be optimized reaches the preset stop iterative training condition, and obtains the industry-corresponding search term component identification model for component identification of the search term to be identified.

[0135] Specifically, when performing model training based on labeled search term samples, an iterative training method can be adopted. The terminal can first perform model training on the item information component recognition model through the labeled search term samples to obtain the component recognition model to be optimized, and then perform model training on the component recognition model to be optimized through the newly acquired search term samples to obtain a new component recognition model to be optimized, and then return to the step of performing model training on the component recognition model to be optimized through the newly acquired search term samples to obtain a new component recognition model to be optimized, until the latest component recognition model to be optimized reaches the preset stop iterative training condition, and obtains the search term component recognition model corresponding to the industry.

[0136] Among them, when the component recognition model to be optimized is trained through the newly acquired search word samples, the terminal will first perform component recognition prediction on the newly acquired search word samples through the component recognition model to be optimized, and obtain the component recognition prediction results corresponding to each search word sample, and screen out the samples to be labeled whose component recognition prediction results meet the labeling conditions from the search word samples, label the samples to be labeled, and obtain labeled search word samples, and train the component recognition model to be optimized based on the labeled search word samples to obtain a new component recognition model to be optimized.

[0137] In this embodiment, the search term component recognition model corresponding to the industry is obtained through iterative training, which can improve the component recognition accuracy of the model.

[0138] In one embodiment, Figure 7 As shown, a search word component recognition method is provided. This embodiment uses the method applied to a terminal as an example for illustration. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. Among them, the terminal can be but is not limited to various desktop computers, laptops, smart phones, tablet computers, Internet of Things devices, portable wearable devices and aircraft, etc. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server can be implemented as an independent server or a server cluster composed of multiple servers, or it can be a node on the blockchain. In this embodiment, the method includes the following steps:

[0139] Step 702: Receive a search term processing request, where the search term processing request carries a search term to be identified.

[0140] The search term processing request refers to a request for processing a search term. For example, the search term processing request may specifically refer to a processing request initiated by a user through a search engine. The search term to be identified refers to a search term that needs to be identified as a component.

[0141] Specifically, when searching, the user sends a search term processing request carrying the search term to be identified to the terminal, and the terminal receives the search term processing request. For example, the user can send a search term processing request carrying the search term to be identified to the terminal through the search engine interface displayed on the terminal.

[0142] Step 704, perform industry identification on the search term to be identified and determine the target industry.

[0143] Specifically, after receiving the search term processing request, the terminal will perform industry identification on the search term to be identified to determine the target industry corresponding to the search term to be identified. Further, the terminal can perform industry identification on the search term to be identified through a pre-trained industry identification model, which is trained through industry identification samples, and the industry identification samples include texts carrying industry annotations.

[0144] Step 706, component recognition is performed on the search word to be recognized by using the search word component recognition model of the target industry to obtain a search word component recognition result. The search word component recognition model is constructed by the above-mentioned search word component recognition model construction method.

[0145] Specifically, after determining the target industry, the terminal will obtain the search term component recognition model of the target industry, perform component recognition on the search term to be recognized through the search term component recognition model of the target industry, and obtain the search term component recognition result.

[0146] The above-mentioned search term component identification method receives a search term processing request carrying a search term to be identified, performs industry identification on the search term to be identified, determines the target industry, and performs component identification on the search term to be identified through a search term component identification model of the target industry to obtain a search term component identification result. It can realize component identification by utilizing an efficiently constructed search term component identification model corresponding to the target industry, thereby improving component identification efficiency.

[0147] Furthermore, the search term component identification results obtained by the above-mentioned search term component identification method can be applied to item recall and correlation calculation in search scenarios. Recalling items containing specific attributes based on the attributes extracted from the search term can improve the recall accuracy and reduce the pressure of item sorting. At the same time, it can also be used as a feature to calculate the correlation between the search term and the item. For example, in an e-commerce scenario, the item is a commodity. Through the search term "oily skin cleanser", it can be identified that it is suitable for the skin type "oily". When searching, only products suitable for oily skin can be recalled, which can improve the recall accuracy.

[0148] In one embodiment, Figure 8As shown, a schematic diagram is used to illustrate the principle of the search term component identification model construction method of the present application. The search term component identification model construction method of the present application mainly includes the following steps: the terminal first obtains the basic data of industry items (i.e., sample item information within the industry), calculates the attribute importance and performs dictionary mining on the obtained basic information of industry items, obtains item information training samples, trains the initial component identification model through the item information training samples, constructs a title domain component identification model (i.e., the item information component identification model), and then uses the title domain component identification model to construct a search term domain component identification model to obtain the final model (i.e., the industry-corresponding search term component identification model for component identification of the search term to be identified).

[0149] Furthermore, the title domain component recognition model is used to construct the search term domain component recognition model, and the flow chart of the final model can be as follows: Fig. 9 As shown. The terminal will use the title domain component recognition model to perform component recognition prediction on the unlabeled search terms (i.e., search term samples in the industry) obtained, and obtain the component recognition prediction results corresponding to each search term sample. From the search term samples, the to-be-labeled samples whose component recognition prediction results meet the labeling conditions are screened out, and the to-be-labeled samples are labeled to obtain labeled search terms (i.e., labeled search term samples). The title domain component recognition model is trained according to the labeled search term samples to obtain the search term component recognition model corresponding to the industry for component recognition of the to-be-labeled search terms.

[0150] Furthermore, when the title domain component recognition model is trained according to the annotated search term samples to obtain the industry-corresponding search term component recognition model for component recognition of the search term to be recognized, the terminal will perform model training on the title domain component recognition model through the annotated search term samples to obtain the component recognition model to be optimized, perform model training on the component recognition model to be optimized through the newly acquired search term samples to obtain a new component recognition model to be optimized, and return to the step of performing model training on the component recognition model to be optimized through the newly acquired search term samples to obtain a new component recognition model to be optimized, until the latest component recognition model to be optimized reaches the preset stop iterative training condition, and obtains the industry-corresponding search term component recognition model for component recognition of the search term to be recognized.

[0151] In one embodiment, Fig.10 As shown, a flow chart is used to illustrate the search term component recognition model construction method of the present application, and the search term component recognition model construction method specifically includes the following steps:

[0152] Step 1002: take the attributes appearing in the sample item information in the industry as candidate attributes, traverse the sample item information in the industry, and obtain the attribute characteristics and attribute parameter set of each candidate attribute.

[0153] Specifically, the terminal will take all attributes that appear in the sample item information in the industry as candidate attributes, and traverse the sample item information in the industry based on the candidate attributes to obtain the attribute characteristics and attribute parameter sets of each candidate attribute, wherein the attribute characteristics include at least two of the distribution frequency characteristics, title co-occurrence characteristics, and word weight characteristics.

[0154] Step 1004: Calculate the attribute importance of the candidate attribute according to the attribute characteristics.

[0155] Specifically, after obtaining the attribute features, the terminal performs weighted averaging on the attribute features to calculate the attribute importance of the candidate attributes.

[0156] Step 1006: According to the attribute importance, select the target attribute that meets the attribute importance screening condition from the candidate attributes.

[0157] The attribute importance screening condition may be set as needed. For example, the attribute importance screening condition may specifically be that the attribute importance is greater than a preset importance threshold, wherein the preset importance threshold may be set as needed.

[0158] Step 1008, calculating the attribute similarity between target attributes.

[0159] Specifically, when calculating attribute similarity, the terminal can use word2vec (a related model used to generate word vectors) word vector similarity for calculation (that is, first calculate the word vector of the target attribute through a pre-trained word2vec model, and then use the word vector of the target attribute to calculate the attribute similarity), or it can use a pre-trained BERT model to calculate the similarity score between target attributes.

[0160] Step 1010: Based on the attribute similarity, similar attributes in the target attribute are merged to obtain attribute information.

[0161] Specifically, the terminal will first sort the target attributes according to the attribute importance as a candidate sequence, and then generate an empty sequence as a result sequence. Each time, a target attribute with the greatest importance is selected from the candidate sequence for judgment. If the result sequence is empty, the target attribute with the greatest importance is directly added to the result sequence and deleted from the candidate sequence. If the result sequence is not empty, the attribute similarity between the target attribute with the greatest importance and each target attribute in the result sequence is checked. If the attribute similarities are all less than the preset similarity threshold, the target attribute with the greatest importance is added to the result sequence, otherwise the target attribute with the greatest importance is discarded. After traversing all the target attributes in the candidate sequence, the target attribute in the result sequence is used as the attribute information.

[0162] Step 1012: Aggregate the attribute parameter set according to the attribute information to obtain an attribute dictionary that matches the attribute information.

[0163] Specifically, after obtaining the attribute information, the terminal aggregates the attribute parameter set according to the attribute information, cleans the aggregated attribute parameter set, and obtains an attribute dictionary that matches the attribute information.

[0164] Step 1014, segment the item title information in the sample item information in the industry to obtain the title segmentation result.

[0165] Specifically, the terminal may use a segmentation method such as Jieba segmentation to segment item title information in sample item information within the industry to obtain a title segmentation result.

[0166] Step 1016, perform text matching on the title segmentation result through the attribute parameters in the attribute dictionary to obtain a text matching result, which includes a target attribute parameter that matches the attribute parameter.

[0167] Specifically, the terminal will perform text matching on the title segmentation results through the attribute parameters in the attribute dictionary to obtain preliminary matching results, check whether the segmentation in the preliminary matching results conflicts with the title segmentation results, remove unreasonable matching results, and retain the maximum matching result in the preliminary matching results as the text matching result.

[0168] Step 1018: Determine corresponding target attribute information from the attribute information according to the target attribute parameter.

[0169] Specifically, the terminal can determine the target attribute information corresponding to the target attribute parameter from the attribute information according to the target attribute parameter.

[0170] Step 1020: label the item title information according to the target attribute parameters and the target attribute information to obtain item information training samples.

[0171] Specifically, the terminal will mark the corresponding target attribute information at the position of the target attribute parameter in the item title information to obtain the item information training sample. Taking a microwave oven as an example, the item information training sample can be in the form of "brand word [brand] 23 liters [volume] variable frequency household microwave oven [product] 900w [power]".

[0172] Step 1022: Train the initial component recognition model using the item information training samples to obtain an item information component recognition model corresponding to the industry.

[0173] Specifically, the terminal will perform supervised training on the initial component recognition model through item information training samples to obtain an item information component recognition model corresponding to the industry.

[0174] Step 1024, using the industry-corresponding article information component recognition model, perform component recognition prediction on the acquired search term samples within the industry, and obtain component recognition prediction results corresponding to each search term sample.

[0175] Step 1026, based on the component recognition prediction results, obtain the probability that each word in the search term sample belongs to each annotation type.

[0176] The component recognition prediction result includes the probability that each word in the search term sample belongs to each annotation type.

[0177] Step 1028, calculating the information entropy of each word according to the probability of belonging to each annotation type.

[0178] Specifically, the terminal will calculate the information entropy of each word according to the probability of belonging to each annotation type and the information entropy formula. The information entropy formula is: p(x i ) is the probability of belonging to each label type, and n is the number of label types.

[0179] Step 1030, calculate the average value of the information entropy of each word in the search word sample, and select the search word samples whose average value is greater than a preset information entropy threshold as samples to be labeled.

[0180] Specifically, the average value of the information entropy of each word in the search term sample is the ratio of the sum of the information entropy of all words in the search term sample to the number of words in the search term sample. After calculating the average value, the terminal will compare the average value with the preset information entropy threshold, and filter out the search term samples whose average value is greater than the preset information entropy threshold as samples to be labeled.

[0181] Step 1032: annotate the sample to be annotated to obtain annotated search term samples.

[0182] Specifically, after determining the sample to be labeled, the terminal will label the sample to be labeled to obtain a labeled search term sample. The method of labeling the sample to be labeled can be to push the sample to be labeled and the component recognition prediction result of the sample to be labeled to the user side, prompting the user to perform manual labeling.

[0183] Step 1034, training the item information component recognition model by annotating the search term samples to obtain a component recognition model to be optimized.

[0184] Specifically, the terminal will perform supervised training on the item information component recognition model by annotating search term samples to obtain a component recognition model to be optimized.

[0185] Step 1036, training the component identification model to be optimized using the newly acquired search term samples to obtain a new component identification model to be optimized.

[0186] Specifically, the terminal will first perform component recognition prediction on the newly acquired search term samples through the component recognition model to be optimized, and obtain the component recognition prediction results corresponding to each search term sample. From the search term samples, the terminal will screen out the samples to be labeled whose component recognition prediction results meet the labeling conditions, label the samples to be labeled, and obtain labeled search term samples. The component recognition model to be optimized is trained based on the labeled search term samples to obtain a new component recognition model to be optimized.

[0187] Step 1038, return to step 1036, until the latest component identification model to be optimized reaches the preset stop iterative training condition, and obtains the industry-corresponding search term component identification model for component identification of the search term to be identified.

[0188] The preset conditions for stopping iterative training can be set as needed, and this embodiment does not specifically limit this. For example, the preset conditions for stopping iterative training can be that the model accuracy of the latest component identification model to be optimized reaches the preset accuracy target, wherein the preset accuracy target can be set as needed, for example, the preset accuracy target can be 95%. The model accuracy can be obtained by calculating the accuracy index of the latest component identification model to be optimized on a predefined test set, and the predefined test set refers to a predefined test set, which includes search terms and corresponding component identification results.

[0189] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0190] Based on the same inventive concept, the embodiment of the present application also provides a search term component identification model construction device for implementing the search term component identification model construction method involved above and a search term component identification device for the search term component identification method. The implementation scheme for solving the problem provided by the search term component identification model construction device and the search term component identification device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more search term component identification model construction devices and search term component identification device embodiments provided below can refer to the above limitations on the search term component identification model construction method and the search term component identification method, and will not be repeated here.

[0191] In one embodiment, Fig.11 As shown, a search word component recognition model construction is provided, including: a prediction module 1102, a screening module 1104, a labeling module 1106 and a model training module 1108, wherein:

[0192] Prediction module 1102, used to perform component recognition prediction on the acquired industry search word samples, and obtain component recognition prediction results corresponding to each search word sample;

[0193] A screening module 1104 is used to screen out samples to be labeled whose component recognition prediction results meet the labeling conditions from the search word samples;

[0194] A labeling module 1106 is used to label the sample to be labeled to obtain a labeled search term sample;

[0195] The model training module 1108 is used to perform model training based on the labeled search term samples to obtain an industry-specific search term component identification model for component identification of the search term to be identified.

[0196] The above-mentioned search term component identification model construction device performs component identification prediction on the acquired search term samples in the industry to obtain the component identification prediction results corresponding to each search term sample, and screens out the samples to be labeled whose component identification prediction results meet the labeling conditions from the search term samples. It is able to screen out the samples to be labeled through active learning, and then obtain labeled search term samples by only labeling the samples to be labeled, which can greatly reduce the number of manually labeled samples, so that model training can be performed based on the labeled search term samples to obtain the industry-corresponding search term component identification model for component identification of the search term to be identified. The entire process can greatly reduce the number of manually labeled samples by utilizing active learning, so as to improve the efficiency of building the search term component identification model by simplifying the data labeling operation, and obtain a search term component identification model that supports efficient component identification.

[0197] In one embodiment, the screening module is also used to obtain the probability of each word in the search term sample belonging to each annotation type based on the component recognition prediction result, calculate the information entropy of each word according to the probability of belonging to each annotation type, calculate the average information entropy of each word in the search term sample, and screen out the search term samples whose average value is greater than a preset information entropy threshold as samples to be labeled.

[0198] In one embodiment, the prediction module is also used to perform component recognition prediction on the acquired search term samples within the industry through the industry-corresponding item information component recognition model, and obtain the component recognition prediction results corresponding to each search term sample; the model training module is also used to perform attribute mining on the acquired sample item information within the industry, and obtain the attribute information corresponding to the industry and the attribute dictionary corresponding to the attribute information, the attribute dictionary includes attribute parameters, and the sample item information within the industry is labeled according to the attribute information and the attribute parameters in the attribute dictionary to obtain item information training samples, and the initial component recognition model is trained through the item information training samples to obtain the item information component recognition model corresponding to the industry.

[0199] In one embodiment, the model training module is also used to take the attributes appearing in the sample item information in the industry as candidate attributes, traverse the sample item information in the industry, obtain the attribute characteristics and attribute parameter sets of each candidate attribute respectively, calculate the attribute importance of the candidate attribute according to the attribute characteristics, filter out the target attributes that meet the attribute importance filter conditions from the candidate attributes according to the attribute importance, merge the target attributes to obtain attribute information, aggregate the attribute parameter sets according to the attribute information, and obtain an attribute dictionary that matches the attribute information. In one embodiment, the model training module is also used to calculate the attribute similarity between target attributes, and merge similar attributes according to the attribute similarity to obtain attribute information.

[0200] In one embodiment, the model training module is also used to segment item title information in sample item information within the industry to obtain title segmentation results, perform text matching on the title segmentation results through attribute parameters in the attribute dictionary to obtain text matching results, and the text matching results include target attribute parameters that match the attribute parameters, and determine the corresponding target attribute information from the attribute information based on the target attribute parameters, and annotate the item title information based on the target attribute parameters and the target attribute information to obtain item information training samples.

[0201] In one embodiment, the model training module is also used to perform model training on the item information component identification model by annotating search term samples to obtain a component identification model to be optimized, perform model training on the component identification model to be optimized by using newly acquired search term samples to obtain a new component identification model to be optimized, and return to the step of performing model training on the component identification model to be optimized by using the newly acquired search term samples to obtain a new component identification model to be optimized, until the latest component identification model to be optimized reaches a preset condition for stopping iterative training, thereby obtaining an industry-corresponding search term component identification model for component identification of the search term to be identified.

[0202] In one embodiment, Fig.12 As shown, a search word component identification device is provided, including: a receiving module 1202, an industry identification module 1204 and a component identification module 1206, wherein:

[0203] A receiving module 1202 is used to receive a search word processing request, where the search word processing request carries a search word to be identified;

[0204] The industry identification module 1204 is used to identify the industry of the search term to be identified and determine the target industry;

[0205] The component identification module 1206 is used to perform component identification on the search word to be identified through the search word component identification model of the target industry to obtain the search word component identification result. The search word component identification model is constructed by the above-mentioned search word component identification model construction method.

[0206] The above-mentioned search word component identification device receives a search word processing request carrying a search word to be identified, performs industry identification on the search word to be identified, determines the target industry, and performs component identification on the search word to be identified through a search word component identification model of the target industry to obtain a search word component identification result. It can use the efficiently constructed search word component identification model corresponding to the target industry to realize component identification, which can improve the efficiency of component identification.

[0207] Each module in the above-mentioned search word component identification model building device and search word component identification device can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0208] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.13As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a search word component recognition model construction method and a search word component recognition method are implemented. The display unit of the computer device is used to form a visually visible image, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse, etc.

[0209] Those skilled in the art will understand that Fig.13 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0210] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0211] Perform component recognition and prediction on the acquired industry search word samples to obtain component recognition and prediction results corresponding to each search word sample;

[0212] From the search word samples, select the samples to be labeled whose component recognition prediction results meet the labeling conditions;

[0213] Label the samples to be labeled to obtain labeled search term samples;

[0214] The model is trained based on the labeled search term samples to obtain the industry-specific search term component recognition model for component recognition of the search term to be recognized.

[0215] In one embodiment, when the processor executes the computer program, the following steps are also implemented: based on the component recognition prediction results, the probability of each word in the search word sample belonging to each annotation type is obtained, and based on the probability of belonging to each annotation type, the information entropy of each word is calculated respectively, and the average information entropy of each word in the search word sample is calculated, and the search word samples whose average value is greater than a preset information entropy threshold are screened out as samples to be labeled.

[0216] In one embodiment, the processor further implements the following steps when executing the computer program: performing component recognition prediction on the acquired search term samples within the industry through the industry-corresponding item information component recognition model to obtain component recognition prediction results corresponding to each search term sample; performing attribute mining on the acquired sample item information within the industry to obtain attribute information corresponding to the industry and an attribute dictionary corresponding to the attribute information, wherein the attribute dictionary includes attribute parameters, and labeling the sample item information within the industry according to the attribute information and the attribute parameters in the attribute dictionary to obtain item information training samples, and training the initial component recognition model through the item information training samples to obtain the item information component recognition model corresponding to the industry.

[0217] In one embodiment, when the processor executes the computer program, the following steps are also implemented: taking the attributes appearing in the sample item information in the industry as candidate attributes, traversing the sample item information in the industry, respectively obtaining the attribute characteristics and attribute parameter sets of each candidate attribute, calculating the attribute importance of the candidate attribute according to the attribute characteristics, screening out the target attributes that meet the attribute importance screening conditions from the candidate attributes according to the attribute importance, merging the target attributes to obtain attribute information, and aggregating the attribute parameter sets according to the attribute information to obtain an attribute dictionary that matches the attribute information. In one embodiment, when the processor executes the computer program, the following steps are also implemented: calculating the attribute similarity between the target attributes, and merging similar attributes according to the attribute similarity to obtain attribute information.

[0218] In one embodiment, when the processor executes the computer program, the following steps are also implemented: segmenting the title information of items in the sample item information in the industry to obtain the title segmentation result; performing text matching on the title segmentation result through the attribute parameters in the attribute dictionary to obtain the text matching result, the text matching result includes the target attribute parameters that match the attribute parameters; according to the target attribute parameters, the corresponding target attribute information is determined from the attribute information; according to the target attribute parameters and the target attribute information, the item title information is labeled to obtain the item information training sample.

[0219] In one embodiment, the processor further implements the following steps when executing the computer program: performing model training on the item information component identification model by annotating search term samples to obtain a component identification model to be optimized, performing model training on the component identification model to be optimized by using newly acquired search term samples to obtain a new component identification model to be optimized, returning to the step of performing model training on the component identification model to be optimized by using the newly acquired search term samples to obtain a new component identification model to be optimized, until the latest component identification model to be optimized reaches a preset condition for stopping iterative training, thereby obtaining an industry-corresponding search term component identification model for component identification of the search term to be identified.

[0220] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0221] receiving a search term processing request, the search term processing request carrying a search term to be identified;

[0222] Carry out industry identification for the search terms to be identified and determine the target industry;

[0223] The search word component identification model of the target industry is used to perform component identification on the search word to be identified, and a search word component identification result is obtained. The search word component identification model is constructed by the above-mentioned search word component identification model construction method.

[0224] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0225] Perform component recognition and prediction on the acquired industry search word samples to obtain component recognition and prediction results corresponding to each search word sample;

[0226] From the search word samples, select the samples to be labeled whose component recognition prediction results meet the labeling conditions;

[0227] Label the samples to be labeled to obtain labeled search term samples;

[0228] The model is trained based on the labeled search term samples to obtain the industry-specific search term component recognition model for component recognition of the search term to be recognized.

[0229] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: based on the component recognition prediction results, the probability of each word in the search word sample belonging to each annotation type is obtained, and based on the probability of belonging to each annotation type, the information entropy of each word is calculated respectively, and the average information entropy of each word in the search word sample is calculated, and the search word samples whose average value is greater than a preset information entropy threshold are screened out as samples to be labeled.

[0230] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: using the industry-corresponding item information component identification model, component identification prediction is performed on the acquired search term samples within the industry to obtain component identification prediction results corresponding to each search term sample; attribute mining is performed on the acquired sample item information within the industry to obtain attribute information corresponding to the industry and an attribute dictionary corresponding to the attribute information, the attribute dictionary including attribute parameters, and the sample item information within the industry is labeled according to the attribute information and the attribute parameters in the attribute dictionary to obtain item information training samples, and the initial component identification model is trained using the item information training samples to obtain the item information component identification model corresponding to the industry.

[0231] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: taking the attributes appearing in the sample item information in the industry as candidate attributes, traversing the sample item information in the industry, respectively obtaining the attribute characteristics and attribute parameter sets of each candidate attribute, calculating the attribute importance of the candidate attribute according to the attribute characteristics, screening out the target attributes that meet the attribute importance screening conditions from the candidate attributes according to the attribute importance, merging the target attributes to obtain attribute information, and aggregating the attribute parameter sets according to the attribute information to obtain an attribute dictionary that matches the attribute information. In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: calculating the attribute similarity between the target attributes, and merging similar attributes according to the attribute similarity to obtain attribute information.

[0232] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: segmenting the item title information in the sample item information in the industry to obtain the title segmentation result; performing text matching on the title segmentation result through the attribute parameters in the attribute dictionary to obtain the text matching result, the text matching result includes the target attribute parameters that match the attribute parameters; according to the target attribute parameters, the corresponding target attribute information is determined from the attribute information; according to the target attribute parameters and the target attribute information, the item title information is labeled to obtain the item information training sample.

[0233] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: model training is performed on the item information component identification model by annotating search term samples to obtain a component identification model to be optimized, model training is performed on the component identification model to be optimized by using newly acquired search term samples to obtain a new component identification model to be optimized, and the step of returning to the step of model training is performed on the component identification model to be optimized by using the newly acquired search term samples to obtain a new component identification model to be optimized, until the latest component identification model to be optimized reaches a preset condition for stopping iterative training, thereby obtaining a search term component identification model corresponding to the industry for component identification of the search term to be identified.

[0234] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0235] receiving a search term processing request, the search term processing request carrying a search term to be identified;

[0236] Carry out industry identification for the search terms to be identified and determine the target industry;

[0237] The search word component identification model of the target industry is used to perform component identification on the search word to be identified, and a search word component identification result is obtained. The search word component identification model is constructed by the above-mentioned search word component identification model construction method.

[0238] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0239] Perform component recognition and prediction on the acquired industry search word samples to obtain component recognition and prediction results corresponding to each search word sample;

[0240] From the search word samples, select the samples to be labeled whose component recognition prediction results meet the labeling conditions;

[0241] Label the samples to be labeled to obtain labeled search term samples;

[0242] The model is trained based on the labeled search term samples to obtain the industry-specific search term component recognition model for component recognition of the search term to be recognized.

[0243] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: based on the component recognition prediction results, the probability of each word in the search word sample belonging to each annotation type is obtained, and based on the probability of belonging to each annotation type, the information entropy of each word is calculated respectively, and the average information entropy of each word in the search word sample is calculated, and the search word samples whose average value is greater than a preset information entropy threshold are screened out as samples to be labeled.

[0244] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: using the industry-corresponding item information component identification model, component identification prediction is performed on the acquired search term samples within the industry to obtain component identification prediction results corresponding to each search term sample; attribute mining is performed on the acquired sample item information within the industry to obtain attribute information corresponding to the industry and an attribute dictionary corresponding to the attribute information, the attribute dictionary including attribute parameters, and the sample item information within the industry is labeled according to the attribute information and the attribute parameters in the attribute dictionary to obtain item information training samples, and the initial component identification model is trained using the item information training samples to obtain the item information component identification model corresponding to the industry.

[0245] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: taking the attributes appearing in the sample item information in the industry as candidate attributes, traversing the sample item information in the industry, respectively obtaining the attribute characteristics and attribute parameter sets of each candidate attribute, calculating the attribute importance of the candidate attribute according to the attribute characteristics, screening out the target attributes that meet the attribute importance screening conditions from the candidate attributes according to the attribute importance, merging the target attributes to obtain attribute information, and aggregating the attribute parameter sets according to the attribute information to obtain an attribute dictionary that matches the attribute information. In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: calculating the attribute similarity between the target attributes, and merging similar attributes according to the attribute similarity to obtain attribute information.

[0246] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: segmenting the item title information in the sample item information in the industry to obtain the title segmentation result; performing text matching on the title segmentation result through the attribute parameters in the attribute dictionary to obtain the text matching result, the text matching result includes the target attribute parameters that match the attribute parameters; according to the target attribute parameters, the corresponding target attribute information is determined from the attribute information; according to the target attribute parameters and the target attribute information, the item title information is labeled to obtain the item information training sample.

[0247] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: model training is performed on the item information component identification model by annotating search term samples to obtain a component identification model to be optimized, model training is performed on the component identification model to be optimized by using newly acquired search term samples to obtain a new component identification model to be optimized, and the step of returning to the step of model training is performed on the component identification model to be optimized by using the newly acquired search term samples to obtain a new component identification model to be optimized, until the latest component identification model to be optimized reaches a preset condition for stopping iterative training, thereby obtaining a search term component identification model corresponding to the industry for component identification of the search term to be identified.

[0248] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0249] receiving a search term processing request, the search term processing request carrying a search term to be identified;

[0250] Carry out industry identification for the search terms to be identified and determine the target industry;

[0251] The search word component identification model of the target industry is used to perform component identification on the search word to be identified, and a search word component identification result is obtained. The search word component identification model is constructed by the above-mentioned search word component identification model construction method.

[0252] It should be noted that the item information (including but not limited to sample item information in the industry, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0253] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0254] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0255] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for constructing a search term component recognition model, characterized in that: The method comprises: Perform component recognition prediction on the acquired industry search word samples, predict entities in the industry search word samples through the component recognition prediction, and obtain component recognition prediction results corresponding to each search word sample; the component recognition prediction results refer to the probability that each word in the search word sample belongs to each annotation type, and the annotation type is determined according to the attribute information corresponding to the industry; the attribute information refers to information describing the properties of items in the industry; Filtering out samples to be labeled whose component recognition prediction results meet the labeling conditions from the search word samples; Annotating the samples to be annotated to obtain annotated search term samples; Model training is performed based on the labeled search term samples to obtain an industry-specific search term component identification model for component identification of the search term to be identified.

2. The method according to claim 1, characterized in that The step of screening out samples to be labeled whose component recognition prediction results meet the labeling conditions from the search word samples includes: According to the component recognition prediction result, the probability of each word in the search word sample belonging to each annotation type is obtained; Calculate the information entropy of each word according to the probability of belonging to each annotation type; The average value of the information entropy of each word in the search term sample is calculated, and the search term samples whose average value is greater than a preset information entropy threshold are screened out as samples to be labeled.

3. The method according to claim 1, characterized in that The component recognition prediction is performed on the acquired industry search word samples to obtain the component recognition prediction results corresponding to each search word sample, including: Through the industry-specific item information component recognition model, the component recognition prediction is performed on the acquired search word samples in the industry to obtain the component recognition prediction results corresponding to each search word sample; The item information component recognition model is constructed in the following way: Performing attribute mining on the acquired sample item information within the industry to obtain attribute information corresponding to the industry and an attribute dictionary corresponding to the attribute information, wherein the attribute dictionary includes attribute parameters; Labeling sample item information in the industry according to the attribute information and the attribute parameters in the attribute dictionary to obtain item information training samples; The initial component recognition model is trained using the item information training samples to obtain an item information component recognition model corresponding to the industry.

4. The method according to claim 3, characterized in that The method of performing attribute mining on the acquired sample item information within the industry to obtain attribute information corresponding to the industry and an attribute dictionary corresponding to the attribute information includes: Taking the attributes appearing in the sample item information in the industry as candidate attributes, traversing the sample item information in the industry, and obtaining the attribute characteristics and attribute parameter sets of each candidate attribute; Calculating the attribute importance of the candidate attribute according to the attribute feature; According to the attribute importance, a target attribute that meets the attribute importance screening condition is screened out from the candidate attributes; Merging the target attributes to obtain attribute information; According to the attribute information, the attribute parameter set is aggregated to obtain an attribute dictionary matching the attribute information.

5. The method according to claim 4, characterized in that The target attributes are merged to obtain attribute information including: Calculating attribute similarity between the target attributes; According to the attribute similarity, similar attributes in the target attributes are merged to obtain attribute information.

6. The method according to claim 3, characterized in that The labeling of sample item information in the industry according to the attribute information and the attribute parameters in the attribute dictionary to obtain item information training samples includes: Segmenting the title information of the sample items in the industry to obtain the title segmentation result; Performing text matching on the title segmentation result by using the attribute parameters in the attribute dictionary to obtain a text matching result, wherein the text matching result includes a target attribute parameter that matches the attribute parameter; Determining corresponding target attribute information from the attribute information according to the target attribute parameter; The item title information is labeled according to the target attribute parameter and the target attribute information to obtain an item information training sample.

7. The method according to claim 3, characterized in that The step of training the model according to the labeled search word samples to obtain a search word component identification model corresponding to the industry for component identification of the search word to be identified includes: Performing model training on the item information component recognition model through the labeled search word samples to obtain a component recognition model to be optimized; The component identification model to be optimized is trained by using the newly acquired search word samples to obtain a new component identification model to be optimized; Return to the step of training the component identification model to be optimized through the newly acquired search term samples to obtain a new component identification model to be optimized, until the latest component identification model to be optimized reaches the preset stop iterative training condition, and obtains the industry-corresponding search term component identification model for component identification of the search term to be identified.

8. A method for identifying search word components, characterized in that: The method comprises: receiving a search term processing request, wherein the search term processing request carries a search term to be identified; Performing industry identification on the search term to be identified to determine the target industry; The search term to be identified is identified by components of the search term component identification model of the target industry to obtain a search term component identification result, wherein the search term component identification model is constructed by the method described in any one of claims 1 to 7.

9. A search term component recognition model construction device, characterized in that: The device comprises: A prediction module is used to perform component recognition prediction on the acquired industry search word samples, predict entities in the industry search word samples through the component recognition prediction, and obtain component recognition prediction results corresponding to each search word sample; the component recognition prediction results refer to the probability that each word in the search word sample belongs to each annotation type, and the annotation type is determined according to the attribute information corresponding to the industry; the attribute information refers to information describing the properties of items in the industry; A screening module, used to screen out samples to be labeled whose component recognition prediction results meet the labeling conditions from the search word samples; A labeling module, used to label the sample to be labeled to obtain a labeled search term sample; The model training module is used to perform model training based on the labeled search term samples to obtain an industry-corresponding search term component recognition model for component recognition of the search term to be recognized.

10. The device according to claim 9, characterized in that The screening module is also used to obtain the probability of each single word in the search word sample belonging to each annotation type based on the component identification prediction result, calculate the information entropy of each single word according to the probability of belonging to each annotation type, calculate the average information entropy of each single word in the search word sample, and screen out the search word samples whose average value is greater than a preset information entropy threshold as samples to be labeled.

11. The device according to claim 9, characterized in that The prediction module is also used to perform component recognition prediction on the acquired search term samples within the industry through the industry-corresponding item information component recognition model, and obtain the component recognition prediction results corresponding to each search term sample; the model training module is also used to perform attribute mining on the acquired sample item information within the industry, and obtain the attribute information corresponding to the industry and the attribute dictionary corresponding to the attribute information, the attribute dictionary including attribute parameters, and the sample item information within the industry is labeled according to the attribute information and the attribute parameters in the attribute dictionary to obtain item information training samples, and the initial component recognition model is trained by the item information training samples to obtain the item information component recognition model corresponding to the industry.

12. The device according to claim 11, characterized in that The model training module is also used to take the attributes appearing in the sample item information in the industry as candidate attributes, traverse the sample item information in the industry, obtain the attribute characteristics and attribute parameter sets of each candidate attribute respectively, calculate the attribute importance of the candidate attribute based on the attribute characteristics, filter out target attributes that meet the attribute importance filtering conditions from the candidate attributes according to the attribute importance, merge the target attributes to obtain attribute information, and aggregate the attribute parameter set based on the attribute information to obtain an attribute dictionary that matches the attribute information.

13. The device according to claim 12, characterized in that The model training module is also used to calculate the attribute similarity between the target attributes, and merge similar attributes in the target attributes according to the attribute similarity to obtain attribute information.

14. The device according to claim 11, characterized in that The model training module is also used to segment the item title information in the sample item information in the industry to obtain the title segmentation result, and to perform text matching on the title segmentation result through the attribute parameters in the attribute dictionary to obtain the text matching result, wherein the text matching result includes a target attribute parameter that matches the attribute parameter, and according to the target attribute parameter, the corresponding target attribute information is determined from the attribute information, and according to the target attribute parameter and the target attribute information, the item title information is labeled to obtain an item information training sample.

15. The device according to claim 11, characterized in that The model training module is also used to perform model training on the item information component identification model through the labeled search term samples to obtain the component identification model to be optimized, perform model training on the component identification model to be optimized through the newly acquired search term samples to obtain a new component identification model to be optimized, and execute the steps of performing model training on the component identification model to be optimized through the newly acquired search term samples to obtain a new component identification model to be optimized, until the latest component identification model to be optimized reaches the preset stop iterative training condition, and obtains the industry-corresponding search term component identification model for component identification of the search term to be identified.

16. A search word component recognition device, characterized in that: The device comprises: A receiving module, configured to receive a search term processing request, wherein the search term processing request carries a search term to be identified; An industry identification module, used to identify the industry of the search term to be identified and determine the target industry; A component identification module is used to identify the components of the search term to be identified by using the search term component identification model of the target industry to obtain a search term component identification result. The search term component identification model is constructed by the method described in any one of claims 1 to 7 above.

17. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.

18. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

19. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.