Class system updating method, device and system and storage medium
By clustering target request words in human-computer interaction logs, new categories are adaptively added to the NLU category system, which solves the problem that the first version of the category system cannot match new technology fields and vocabulary, and realizes the dynamics of the category system. Updates and better coverage of user needs.
Patent Information
- Application Number
- CN202310341758.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-01
AI Technical Summary
The first version of the NLU category system cannot fully cover all demand classifications. As a result, emerging technical fields and vocabulary cannot be matched and cannot be added to the category system. New categories need to be adaptively added to meet changing user needs.
By obtaining human-computer interaction logs within a preset time period, target request words whose correlation with the existing category system is less than the preset correlation are clustered to form clusters, and new additions are added to the category system based on the clustering results. Relevant categories to update the category system.
Effectively cluster request words with similar intentions into clusters, identify intentions with greater user needs, and automatically add new categories to the category system, reducing the workload of developers and improving the adaptability of the category system. performance and coverage.
Smart Images

Figure CN118733762A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a category system updating method, device, system and storage medium. Background Art
[0002] NLU (Natural Language Understanding) is used to convert user text or voice input into a structured representation that is easy for machines to understand in task-based dialogue systems. It usually includes three parts: domain identification, intent identification, and slot filling. During the cold start period of NLU, that is, from project establishment and project launch to the period before rapid growth, an initial version of the NLU category system is often built to define which labels there are for the domain, which labels there are for the intent, which labels there are for the slot, and what each label means. At the same time, there will be a sufficient number of request word samples under each category system to improve the computer's language understanding ability.
[0003] The first version of the NLU category system cannot fully cover all demand classifications. For example, with the development of society, new technical fields and new vocabulary appear. For some professional content, there may be a mismatch with the existing category system, resulting in the system considering it as "meaningless" vocabulary, and thus unable to be added to the existing category system. Therefore, for the NLU category system, it is necessary not only to expand the specific request words under each category, but also to add new categories to the category system. Therefore, how to adaptively add new categories to the category system is a technical problem that needs to be solved urgently. Summary of the invention
[0004] The present application provides a category system updating method, device, system and storage medium for adaptively adding new categories to the category system to update the existing category system.
[0005] The present application provides a category system updating method, comprising:
[0006] Obtain human-computer interaction logs within a preset time period;
[0007] Acquire a target request word in the human-computer interaction log whose relevance to the existing category system is less than a preset relevance;
[0008] Clustering the target request words to obtain a clustering result;
[0009] Determine a target cluster whose sample quantity in the clustering result is greater than a preset quantity;
[0010] Adding categories related to the target cluster to the existing category system.
[0011] In one embodiment, obtaining a target request word in the human-computer interaction log whose relevance to the existing category system is less than a preset relevance includes:
[0012] Obtaining a response result to each request word from the human-computer interaction log;
[0013] When there is a request word with an empty response result, it is determined that the request word with an empty response result is a target request word whose relevance to the existing category system is less than a preset relevance.
[0014] In one embodiment, obtaining a target request word in the human-computer interaction log whose relevance to the existing category system is less than a preset relevance includes:
[0015] Extracting each request word from the human-computer interaction log;
[0016] Comparing each request word with the existing category system to obtain a comparison result, wherein the comparison result is a correlation between each request word and the existing category system;
[0017] A target request word whose relevance to the existing category system is less than a preset relevance is selected from the comparison results.
[0018] In one embodiment, clustering the target request words to obtain clustering results includes:
[0019] Convert all target request words into vectors;
[0020] Determine the vector distance of each target request word;
[0021] Cluster the target request words whose vector distance is less than the preset distance.
[0022] In one embodiment, adding a category related to the target cluster to the existing category system includes:
[0023] The target cluster is fed back to a terminal corresponding to a developer, so that the developer can add a category related to the target cluster in the category system according to the target cluster.
[0024] In one embodiment, adding a category related to the target cluster to the existing category system includes:
[0025] Extracting each target request word in the target cluster;
[0026] Searching each target request word in a preset search engine;
[0027] Determine that the words that appear in the search results more than a second preset number of times are the labels corresponding to the target request words;
[0028] Determine the same label corresponding to each target request word;
[0029] Determine that the categories to which the same tags corresponding to the target request words belong are categories related to the target cluster;
[0030] Add categories related to the target cluster to the target system.
[0031] In one embodiment, adding a category related to the target cluster to the existing category system includes:
[0032] Extracting each target request word in the target cluster;
[0033] Searching each target request word in a preset search engine;
[0034] Identify content related to the category of each target request word that appears in the search results;
[0035] Determine the words with the highest frequency of occurrence in the content related to each target request word category as the categories related to the target cluster;
[0036] Add categories related to the target cluster to the category system.
[0037] The present application also provides a category system updating device, comprising:
[0038] A first acquisition module is used to acquire the human-computer interaction log within a preset time period;
[0039] A second acquisition module is used to acquire a target request word in the human-computer interaction log whose relevance to the existing category system is less than a preset relevance;
[0040] A clustering module, used for clustering the target request words to obtain a clustering result;
[0041] A determination module, used to determine a target cluster whose sample quantity in the clustering result is greater than a preset quantity;
[0042] A new module is used to add a category related to the target cluster in the existing category system.
[0043] In one embodiment, the second acquisition module includes:
[0044] An acquisition submodule, used to acquire a response result to each request word from the human-computer interaction log;
[0045] The determination submodule is used to determine, when there is a request word with an empty response result, that the request word with an empty response result is a target request word whose relevance to the existing category system is less than a preset relevance.
[0046] In one embodiment, the second acquisition module includes:
[0047] A first extraction submodule, used to extract each request word from the human-computer interaction log;
[0048] A comparison submodule, used to compare each request word with the existing category system to obtain a comparison result, wherein the comparison result is a correlation between each request word and the existing category system;
[0049] The selection submodule is used to select, from the comparison results, a target request word whose relevance to the existing category system is less than a preset relevance.
[0050] In one embodiment, the clustering module includes:
[0051] The conversion submodule is used to convert all target request words into vectors;
[0052] A first determination submodule, used to determine the vector distance of each target request word;
[0053] The clustering submodule is used to cluster target request words whose vector distance is less than a preset distance.
[0054] In one embodiment, the newly added module includes:
[0055] The feedback submodule is used to feed back the target cluster to the terminal corresponding to the developer, so that the developer can add a category related to the target cluster in the category system according to the target cluster.
[0056] In one embodiment, the newly added module includes:
[0057] A second extraction submodule is used to extract each target request word in the target cluster;
[0058] A search submodule, used to search for each target request word in a preset search engine;
[0059] A second determination submodule is used to determine that a word that appears more than a second preset number of times in the search results is a label corresponding to each target request word;
[0060] The third determination submodule is used to determine the same label corresponding to each target request word;
[0061] A fourth determination submodule is used to determine that the categories to which the same tags corresponding to the target request words belong are categories related to the target cluster;
[0062] The adding submodule is used to add categories related to the target cluster to the target system.
[0063] In one embodiment, the newly added module further includes:
[0064] A second extraction submodule is used to extract each target request word in the target cluster;
[0065] A search submodule, used to search for each target request word in a preset search engine;
[0066] An identification submodule, used to identify content related to the category of each target request word appearing in the search results;
[0067] A fifth determination submodule, configured to determine the words with the highest frequency of occurrence in the content related to each target request word category as the category related to the target cluster;
[0068] The adding submodule is used to add categories related to the target cluster to the category system.
[0069] The present application also provides a category system updating system, including:
[0070] at least one processor; and,
[0071] a memory communicatively connected to the at least one processor; wherein,
[0072] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to implement the category system updating method recorded in any of the above embodiments.
[0073] The present application also provides a computer-readable storage medium. When the instructions in the storage medium are executed by a processor corresponding to the category system update system, the category system update system can implement the category system update method recorded in any of the above embodiments.
[0074] The beneficial effect of the present application is that by obtaining the human-computer interaction log within a preset time period, a clustering operation is performed on the target request words in the human-computer interaction log whose relevance to the existing category system is less than a preset relevance, and some request words that do not match the pre-stored category system are clustered through clustering. In this way, some request words with similar intentions can be clustered into a cluster cluster. When the number in the cluster cluster is large, it means that there are more users with corresponding intentions, that is, the user demand corresponding to this type of intention is large. Therefore, the categories of the target cluster clusters whose sample number in the clustering results is greater than the preset number are added to the existing category system as new categories, and then new categories can be adaptively added to the category system, thereby realizing the update of the existing category system.
[0075] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings.
[0076] The technical solution of the present application is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0077] The accompanying drawings are used to provide a further understanding of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings:
[0078] Figure 1 This is a flow chart of a category system updating method in one embodiment of the present application;
[0079] Figure 2 This is a structural diagram of a category system updating device in one embodiment of the present application;
[0080] Figure 3 This is a schematic diagram of the hardware structure of a category system update system in one embodiment of the present application;
[0081] Figure 4 This is a schematic diagram of a category system in one embodiment of the present application. DETAILED DESCRIPTION
[0082] The preferred embodiments of the present application are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application and are not used to limit the present application.
[0083] Figure 1 Flow chart of a method for updating a category system in one embodiment of the present application. Figure 1 As shown, the method can be implemented as the following steps S101-S105:
[0084] In step S101, a human-computer interaction log within a preset time period is obtained;
[0085] In step S102, a target request word in the human-computer interaction log whose relevance to the existing category system is less than a preset relevance is obtained;
[0086] In step S103, clustering the target request words to obtain clustering results;
[0087] In step S104, a target cluster whose number of samples in the clustering result is greater than a preset number is determined;
[0088] In step S105, categories related to the target cluster are added to the existing category system.
[0089] In the present application, a human-computer interaction log within a preset time period is obtained; the human-computer interaction log can be collected by a human-computer interaction system. Specifically, the human-computer interaction system is placed in an intelligent voice assistant or other product with a human-computer interaction page. During the use of the product, the human-computer interaction system can record the human-computer interaction process with the user after the intelligent voice assistant is awakened, which may specifically include the user's request words (including the user's questions, voice commands issued by the user or search words entered by the user, control commands entered by the user, etc.), and the response results of the human-computer interaction system to the request words, etc. The interaction process including the user's request words and response results recorded by the human-computer interaction system is the human-computer interaction log.
[0090] A target request word in the human-computer interaction log whose relevance to the existing category system is less than a preset relevance is obtained. Figure 4This is a schematic diagram of a category system in one embodiment of the present application. In the prior art, after receiving a request word input by a user, the system searches for the request word input by the user through an existing category system or searches for other words with similar meanings to the request word input by the user to determine a target request word with a relevance greater than or equal to a preset relevance in the existing category system, and further determines a target category with a relevance greater than a preset relevance to the target request word, and then determines a corresponding reply word or a corresponding operation. In the present application, in order to expand categories that do not match the existing category system into the existing category system, target request words with a relevance less than a preset relevance to the existing category system are selected from the human-computer interaction log to expand the existing category system. In this application, request words whose relevance to the existing category system is less than the preset relevance include two categories: one is because the request words are completely irrelevant to the existing category system and cannot be classified into the existing category system, and thus cannot get a response result. This type of request word is likely to be a new potential demand; the other is that it can be classified into the existing category system and return the corresponding response result, but because the relevance to the existing category system is less than the preset value, that is, the confidence is not high, it is very likely that there is a deviation from the previous category definition, and it is mistakenly classified into the existing category system, and the returned response result is not what the user needs. Therefore, this application provides two ways to obtain the target request word:
[0091] Method 1
[0092] The response result to each request word is obtained from the human-computer interaction log; when there is a request word with an empty response result, the request word with an empty response result is determined to be a target request word whose relevance to the existing category system is less than a preset relevance.
[0093] Specifically, by obtaining the response results of each request word, it can be determined whether the user's request has been responded to. For example, the following human-computer interaction record is obtained from the human-computer interaction log:
[0094] 1. 20230201 17:00 User 1 I want to listen to XXX's song Field = Media Intent = Search Music Singer Name = XXX;
[0095] 2. 20230201 18:00 User 2 navigates home Domain = map navigation intention = navigation common address = home;
[0096] 3. 20230201 19:00 User 3 navigates home Domain = map navigation intention = navigation common address = home;
[0097] 4. 20230201 19:00 User 2 navigates to the gas station Domain = map navigation intention = navigation location = gas station;
[0098] …
[0099] Among them, taking the first record as an example, when the request word is a complete request sentence in the human-computer interaction log, "20230201 17:00" is the request time, "User 1" is the requester, and "I want to listen to XXX's song" is the request word. "Domain = Media Intent = Search Music Singer Name = XXX" is the response result.
[0100] When there are request words with empty response results, it means that the user's request result cannot be obtained under the existing category system, that is, the existing category system cannot meet the user's needs. Therefore, the request words with empty response results are determined to be target request words with a relevance to the existing category system less than a preset relevance. By incorporating the request words that cannot obtain response results into the target request words with a relevance to the existing category system less than a preset relevance, cluster analysis can be performed on the request words that cannot obtain response results to explore the user's potential needs and expand the existing category system.
[0101] Method 2
[0102] Extract each request word from the human-computer interaction log; compare each request word with the existing category system to obtain a comparison result, wherein the comparison result is the relevance of each request word with the existing category system; select a target request word whose relevance to the existing category system is less than a preset relevance from the comparison result.
[0103] Among them, in addition to being a complete request sentence, the request word can also use some open source toolkits to segment the complete request sentence to obtain individual participles. Assume that the complete request sentence before segmentation is: I want to go to the zoo. After segmentation, the participles "I", "want", "go", and "zoo" can be obtained. Assume that the complete request sentence before segmentation is: open the car window. After segmentation, the two participles "open" and "car window" can be obtained.
[0104] By comparing each request word with the existing category system, a comparison result is obtained, wherein the comparison result is the relevance of each request word with the existing category system. Specifically, the relevance of each request word with the category system can be determined by the labels corresponding to the request word and each category in the category system. For example, the request word is searched in a preset search engine; the words that appear more than a second preset number of times in the search results are determined as the labels of the request word; the labels of the request word are compared with the labels corresponding to each category in the category system; and the similarity between the labels of the request word and the labels corresponding to each category is determined as the relevance of each request word with the existing category system. For example, the request word is "I want to listen to a's song". If a is a new singer, the human-computer interaction system has not added a's information to the category system. At this time, the request word can be searched from other search engines. After the search, it is found that the words "media", "music" and "singer" appear more than the second preset number of times in the search results. Therefore, the labels corresponding to this request word are "media", "music", and "singer". The labels of the request word are compared with the labels corresponding to each category in the category system, and it is found that all three labels are matched. Figure 4 The domain is media, and the intent is to search for music and videos. After calculation, the label similarity between the category and the target request word is 100%, so it is determined that the relevance of the request word "I want to listen to a's song" to the existing category system is 100%.
[0105] According to the comparison results, if there is a request word whose relevance is less than the preset relevance, it means that the request word does not match the existing category system and an accurate response result cannot be obtained. Therefore, the target request word whose relevance to the existing category system is less than the preset relevance will be determined.
[0106] Cluster the target request words to obtain a clustering result. Specifically, convert all target request words into vectors. Specifically, segment the complete request sentence to obtain a request word set, wherein the request word set contains all target request words and all segmented request words; sort all request words in the request word set to obtain the arrangement sequence number corresponding to each request word; use the number of request words in the request word set as the dimension of the vector, and use the number of times each request word appears in the target request word as the corresponding numerical value, thereby obtaining the vector corresponding to the target request word. Determine the vector distance of each target request word. There are many ways to determine the distance between each adjacent word, such as Euclidean distance, Manhattan distance, Chebyshev distance, Mahalanobis distance, etc., which are not limited in this application. After obtaining the vector distance of each target request word, cluster the target request words whose vector distance is less than the preset distance.
[0107] Determine the target clusters whose sample numbers in the clustering results are greater than the preset number. Since the sample numbers in each cluster are different in the clustering results, the clusters with large sample numbers, that is, the clusters with more target request words, indicate that the corresponding demand is large, and the corresponding demand can be expanded to the existing category system. Therefore, through the target clusters whose sample numbers are greater than the preset number, the request word combination for expanding the existing category can be obtained.
[0108] Add categories related to the target cluster in the existing category system. Specifically, there are multiple methods for adding categories. For example, the target cluster with a sample size greater than a preset number can be directly sent to the corresponding burden of the developer, and then the developer can determine the corresponding category based on the target cluster and add it to the existing category system, thereby reducing the workload of the developer to manually mine the category system and manually select category samples. It is also possible to extract each target request word in the target cluster; search each target request word in a preset search engine respectively, and then determine the label of the target request word according to the search result, specifically, determine that the words that appear more than a second preset number of times in the search result are the labels corresponding to each target request word. For multiple target request words in the target cluster, determine the corresponding same labels; and the categories to which the same labels corresponding to each target request word belong are the categories related to the target cluster; add the categories related to the target cluster to the target system, thereby realizing automatic determination and addition of new categories.
[0109] The beneficial effect of the present application is that by obtaining the human-computer interaction log within a preset time period, a clustering operation is performed on the target request words in the human-computer interaction log whose relevance to the existing category system is less than a preset relevance, and some request words that do not match the pre-stored category system are clustered through clustering. In this way, some request words with similar intentions can be clustered into a cluster cluster. When the number in the cluster cluster is large, it means that there are more users with corresponding intentions, that is, the user demand corresponding to this type of intention is large. Therefore, the categories of the target cluster clusters whose sample number in the clustering results is greater than the preset number are added to the existing category system as new categories, and then new categories can be adaptively added to the category system, thereby realizing the update of the existing category system.
[0110] In one embodiment, the above step S102 may be implemented as the following steps A1-A2:
[0111] In step A1, a response result to each request word is obtained from the human-computer interaction log;
[0112] In step A2, when there is a request word with an empty response result, it is determined that the request word with an empty response result is a target request word whose relevance to the existing category system is less than a preset relevance.
[0113] In this embodiment, the response results for each request word are obtained from the human-computer interaction log. By obtaining the response results for each request word, it can be determined whether the user's request has been responded to. In addition, in order to determine the user's needs, the number of requests issued by the user, that is, the number of visits to each request word, can also be counted from the human-computer interaction log. In this embodiment, in order to determine whether the user's request has been responded to, the request word is a complete request statement. For example, the following human-computer interaction record is obtained from the human-computer interaction log:
[0114] 1. 20230201 17:00 User 1 I want to listen to XXX's song Field = Media Intent = Search Music Singer Name = XXX;
[0115] 2. 20230201 18:00 User 2 navigates home Domain = map navigation intention = navigation common address = home;
[0116] 3. 20230201 19:00 User 3 navigates home Domain = map navigation intention = navigation common address = home;
[0117] 4. 20230201 19:00 User 2 navigates to the gas station Domain = map navigation intention = navigation location = gas station;
[0118] …
[0119] Among them, taking the first record as an example, when the request word is a complete request sentence in the human-computer interaction log, "20230201 17:00" is the request time, "User 1" is the requester, and "I want to listen to XXX's song" is the request word. "Domain = Media Intent = Search Music Singer Name = XXX" is the response result. At the same time, counting the number of visits to each request word, we can get: I want to listen to XXX's song, pv = 1; navigate home, pv = 2; navigate to the gas station, pv = 1. Among them, PV (page view) refers to the page visits, which is used to measure the popularity of visits; it also refers to the request frequency corresponding to a request. The higher the PV, the higher the frequency of the request and the stronger the demand. pv = 1 means that the number of visits to the request word is 1, and pv = 2 means that the number of visits to the request word is 2. In this way, the number of visits to the request word at the sentence granularity can be obtained.
[0120] In this embodiment, when there are request words with empty response results, it means that the user's request result cannot be obtained under the existing category system, that is, the existing category system cannot meet the user's needs. Therefore, the request word with empty response results is determined to be a target request word with a relevance to the existing category system less than a preset relevance. By incorporating the request words that cannot obtain response results into the target request word range with a relevance to the existing category system less than a preset relevance, cluster analysis can be performed on the request words that cannot obtain response results to explore the user's potential needs and expand the existing category system.
[0121] In one embodiment, the above step S102 may be implemented as the following steps B1-B2:
[0122] In step B1, each request word is extracted from the human-computer interaction log;
[0123] In step B2, each request word is compared with the existing category system to obtain a comparison result, wherein the comparison result is the relevance of each request word with the existing category system;
[0124] In step B3, a target request word whose relevance to the existing category system is less than a preset relevance is selected from the comparison results.
[0125] In this embodiment, each request word is extracted from the human-computer interaction log. In addition to being a complete request sentence, the request word can also be obtained by segmenting the complete request sentence using some open source toolkits. Assume that the complete request sentence before segmentation is: I want to go to the zoo. After segmentation, the segmentations "I", "want", "go", and "zoo" can be obtained. Assume that the complete request sentence before segmentation is: open the car window. After segmentation, the two segmentations "open" and "car window" can be obtained.
[0126] Each request word is compared with the existing category system to obtain a comparison result, wherein the comparison result is the correlation between each request word and the existing category system.
[0127] Specifically, the relevance of each request word to the category system can be determined by the labels corresponding to the request words and the categories in the category system. For example, the request word is searched in a preset search engine; the words that appear more than a second preset number of times in the search results are determined to be the labels of the request words; the labels of the request words are compared with the labels corresponding to the categories in the category system; the similarity between the labels of the request words and the labels corresponding to the categories is determined as the relevance of each request word to the existing category system. For example, the request word is "I want to listen to a's song". If a is a new singer, the human-computer interaction system has not added a's information to the category system. At this time, the request word can be searched from other search engines. After the search, it is found that the words "media", "music", and "singer" appear more than the second preset number of times in the search results. Therefore, the labels corresponding to the request word are "media", "music", and "singer". The labels of the request word are compared with the labels corresponding to the categories in the category system, and it is found that all three labels hit. Figure 4 The domain is media, and the intent is to search for music and videos. After calculation, the label similarity between the category and the target request word is 100%, so it is determined that the relevance of the request word "I want to listen to a's song" to the existing category system is 100%.
[0128] According to the comparison results, if there is a request word whose relevance is less than the preset relevance, it means that the request word does not match the existing category system and an accurate response result cannot be obtained. Therefore, the target request word whose relevance to the existing category system is less than the preset relevance will be determined.
[0129] In one embodiment, the above step S103 may be implemented as the following steps C1-C3:
[0130] In step C1, all target request words are converted into vectors;
[0131] In step C2, the vector distance of each target request word is determined;
[0132] In step C3, the target request words whose vector distance is less than a preset distance are clustered.
[0133] In this embodiment, all target request words are converted into vectors. Specifically, the complete request sentence is segmented to obtain a request word set, wherein the request word set contains all target request words and all segmented request words; all request words in the request word set are sorted to obtain the arrangement sequence number corresponding to each request word; the number of request words in the request word set is used as the dimension of the vector, and the number of times each request word appears in the target request word is used as the corresponding value, thereby obtaining the vector corresponding to the target request word.
[0134] Determine the vector distance of each target request word. There are many ways to determine the distance between each adjacent word, such as Euclidean distance, Manhattan distance, Chebyshev distance, Mahalanobis distance, etc., which are not limited in this application.
[0135] After obtaining the vector distance of each target request word, the target request words whose vector distance is less than the preset distance are clustered.
[0136] In one embodiment, the above step S105 may be implemented as follows:
[0137] The target cluster is fed back to a terminal corresponding to a developer, so that the developer can add a category related to the target cluster in the category system according to the target cluster.
[0138] In this embodiment, the target clusters whose sample size is greater than a preset number can be directly sent to the corresponding task of the developer, and then the developer can determine the corresponding category based on the target clusters and add it to the existing category system, thereby reducing the workload of the developer to manually mine the category system and manually select category samples.
[0139] In one embodiment, the above step S105 can be implemented as the following steps D1-D6:
[0140] In step D1, each target request word in the target cluster is extracted;
[0141] In step D2, each target request word is searched in a preset search engine;
[0142] In step D3, determining that the words that appear in the search results more than a second preset number of times are tags corresponding to the target request words;
[0143] In step D4, the same tags corresponding to each target request word are determined;
[0144] In step D5, it is determined that the categories to which the same tags corresponding to the target request words belong are categories related to the target cluster;
[0145] In step D6, categories related to the target cluster are added to the target system.
[0146] In this embodiment, since each target cluster contains target request words greater than a preset number, each target request word in the target cluster can be extracted, and each target request word is searched in a preset search engine, and then the label of the target request word is determined according to the search results. Specifically, the words that appear more than a second preset number of times in the search results are determined as the labels corresponding to each target request word. For multiple target request words in the target cluster, the corresponding same labels are determined; and the categories to which the same labels corresponding to each target request word belong are the categories related to the target cluster; and the categories related to the target cluster are added to the target system.
[0147] In one embodiment, the above step S105 may be implemented as the following steps E1-E5:
[0148] In step E1, each target request word in the target cluster is extracted;
[0149] In step E2, each target request word is searched in a preset search engine;
[0150] In step E3, identifying content related to the category of each target request word appearing in the search results;
[0151] In step E4, the words with the highest frequency of occurrence in the content related to each target request word category are determined as the categories related to the target cluster;
[0152] In step E5, categories related to the target cluster are added to the category system.
[0153] In this embodiment, each target request word in the target cluster is extracted, and after searching each target request word in a preset search engine, the content related to the category of each target request word appearing in the search results is identified, wherein the content related to the category of each target request word includes industry, field, theme, keyword and other information, and then, the most frequently appearing words in the content related to each target request word category are determined to be the categories related to the target cluster, and the categories related to the target cluster are added to the target system.
[0154] In one embodiment, after step S101, the method may also be implemented as the following steps F1-F4:
[0155] In step F1, the number of accesses and the access growth rate of each request word in the human-computer interaction log are obtained;
[0156] In step F2, it is determined whether there is a target request word whose access times are greater than a preset times and whose access growth rate is greater than a preset growth rate;
[0157] In step F3, when there is a target request word, it is determined whether the target request word exists in the existing category system;
[0158] In step F4, when the target request word does not exist in the pre-stored category system, the target request word is added to the category system.
[0159] In this embodiment, in this application, the number of accesses and the access growth rate of each request word in the human-computer interaction log are obtained. The specific acquisition process can be mainly divided into two methods, as follows:
[0160] Method 1
[0161] The human-computer interaction system itself will record the number of occurrences of each request word, and can also pre-set the access cycle. The human-computer interaction system can also determine the access growth rate of different cycles based on the number of occurrences of each request word in different access cycles, and directly record the number of visits and the access growth rate of each request word in the human-computer interaction log. In this case, the number of visits and the access growth rate of each request word can be directly obtained from the human-computer interaction log.
[0162] Method 2
[0163] The human-computer interaction log does not record the number of visits and the visit growth rate of each request word. In this case, it is necessary to count the number of requests for each request word in the human-computer interaction log; substitute the number of requests for each request word in the human-computer interaction log into a preset formula to calculate the month-on-month growth rate of each request word; and determine the month-on-month growth rate of each request word as the visit growth rate of each request word.
[0164] Determine whether there is a target request word with a visit number greater than a preset number and a visit growth rate greater than a preset growth rate; when there is a target request word, determine whether the target request word exists in the existing category system; the form of the existing category system can be as follows Figure 4 As shown, when determining whether the target request word exists in an existing category system, the pre-stored category system may be directly traversed, and then it is determined whether the target request word exists in the pre-stored category system based on the traversal result.
[0165] When the target request word does not exist in the pre-stored category system, the target request word is added to the category system. Specifically, when adding the request word, determine whether there is a target category in the category system whose relevance to the target request word is greater than a preset relevance. If there is a target category in the category system whose relevance to the target request word is greater than a preset relevance, the target request word is added to the target category. If there is no target category in the category system whose relevance to the target request word is greater than a preset relevance, a clustering operation is performed on all target request words to obtain a first clustering result; the first clustering cluster in which the number of samples in the first clustering result is greater than a first preset number is fed back to the terminal corresponding to the developer, so that the developer adds a category related to the first clustering cluster in the category system based on the first clustering cluster. Specifically, the relevance between the target request word and the category system can be determined by the labels corresponding to the target request word and each category in the category system, and the target request words are searched in the preset search engine; the words that appear more than a second preset number of times in the search results are determined to be the labels of the target request words; the labels of the target request words are compared with the labels corresponding to each category in the category system; the categories whose similarity with the label of the target request word in the comparison result is greater than the preset similarity are determined to be the target categories whose relevance with the target request word is greater than the preset relevance. For example, the target request word is "I want to listen to a's song". If a is a new singer, the human-computer interaction system has not added a's information to the category system. At this time, the target request word can be searched from other search engines. After the search, it is found that the words "media", "music", and "singer" appear more than the second preset number of times in the search results. Therefore, the labels corresponding to the target request word are "media", "music", and "singer". The labels of the target request word are compared with the labels corresponding to each category in the category system, and it is found that all three labels hit Figure 4 The domain is media, and the intent is to search for music and videos. After calculation, the label similarity between this category and the target request word is 100%, and it can be considered that the label similarity between this category and the target request word is greater than the preset similarity. Therefore, this category is a target category with a relevance greater than the preset relevance to the target request word.
[0166] If there is no target category in the category system whose relevance to the target request word is greater than the preset relevance, clustering operation is performed on all target request words to obtain a first clustering result; the first clustering cluster whose sample quantity is greater than the first preset quantity in the first clustering result is fed back to the terminal corresponding to the developer, so that the developer can add categories related to the first clustering cluster in the category system according to the first clustering cluster. Specifically, clustering is to cluster some request words that are not related to the pre-stored category system, so that some request words with similar intentions can be clustered into a clustering cluster. When the number of clusters is large, it means that there are more users with corresponding intentions, that is, the user demand corresponding to this type of intention is large. Therefore, the first clustering cluster whose sample quantity is greater than the first preset quantity can be fed back to the terminal corresponding to the developer, so that the developer can add categories related to the first clustering cluster in the category system according to the first clustering cluster.
[0167] Figure 2 : is a structural diagram of a category system updating device in one embodiment of the present application, such as Figure 2 As shown, the device comprises:
[0168] The first acquisition module 201 is used to acquire the human-computer interaction log within a preset time period;
[0169] The second acquisition module 202 is used to acquire a target request word in the human-computer interaction log whose relevance to the existing category system is less than a preset relevance;
[0170] A clustering module 203, used for clustering the target request words to obtain a clustering result;
[0171] A determination module 204 is used to determine a target cluster whose sample quantity in the clustering result is greater than a preset quantity;
[0172] The adding module 205 is used to add a category related to the target cluster in the existing category system.
[0173] In one embodiment, the second acquisition module includes:
[0174] An acquisition submodule, used to acquire a response result to each request word from the human-computer interaction log;
[0175] The determination submodule is used to determine, when there is a request word with an empty response result, that the request word with an empty response result is a target request word whose relevance to the existing category system is less than a preset relevance.
[0176] In one embodiment, the second acquisition module includes:
[0177] A first extraction submodule, used to extract each request word from the human-computer interaction log;
[0178] A comparison submodule, used to compare each request word with the existing category system to obtain a comparison result, wherein the comparison result is a correlation between each request word and the existing category system;
[0179] The selection submodule is used to select, from the comparison results, a target request word whose relevance to the existing category system is less than a preset relevance.
[0180] In one embodiment, the clustering module includes:
[0181] The conversion submodule is used to convert all target request words into vectors;
[0182] A first determination submodule, used to determine the vector distance of each target request word;
[0183] The clustering submodule is used to cluster target request words whose vector distance is less than a preset distance.
[0184] In one embodiment, the newly added module includes:
[0185] The feedback submodule is used to feed back the target cluster to the terminal corresponding to the developer, so that the developer can add a category related to the target cluster in the category system according to the target cluster.
[0186] In one embodiment, the newly added module includes:
[0187] A second extraction submodule is used to extract each target request word in the target cluster;
[0188] A search submodule, used to search for each target request word in a preset search engine;
[0189] A second determination submodule is used to determine that a word that appears more than a second preset number of times in the search results is a label corresponding to each target request word;
[0190] The third determination submodule is used to determine the same label corresponding to each target request word;
[0191] A fourth determination submodule is used to determine that the categories to which the same tags corresponding to the target request words belong are categories related to the target cluster;
[0192] The adding submodule is used to add categories related to the target cluster to the target system.
[0193] In one embodiment, the newly added module further includes:
[0194] A second extraction submodule is used to extract each target request word in the target cluster;
[0195] A search submodule, used to search for each target request word in a preset search engine;
[0196] An identification submodule, used to identify content related to the category of each target request word appearing in the search results;
[0197] A fifth determination submodule, configured to determine the words with the highest frequency of occurrence in the content related to each target request word category as the category related to the target cluster;
[0198] The adding submodule is used to add categories related to the target cluster to the category system.
[0199] In one embodiment, the apparatus further comprises:
[0200] A third acquisition module is used to obtain the number of accesses and the access growth rate of each request word in the human-computer interaction log;
[0201] The first judgment module is used to judge whether there is a target request word with a number of visits greater than a preset number and a visit growth rate greater than a preset growth rate;
[0202] A second judgment module is used to judge whether the target request word exists in the existing category system when the target request word exists;
[0203] The adding module is also used to add the target request word to the category system when the target request word does not exist in the pre-stored category system.
[0204] Figure 3 FIG. 1 is a schematic diagram of the hardware structure of a category system update system in one embodiment of the present application. Figure 3 As shown, the category system update system includes:
[0205] at least one processor 320; and,
[0206] A memory 304 in communication with the at least one processor 320; wherein,
[0207] The memory 304 stores instructions that can be executed by the at least one processor 320, and the instructions are executed by the at least one processor 320 to implement the category system updating method recorded in any of the above embodiments.
[0208] Reference Figure 3The category system update system 300 may include one or more of the following components: a processing component 302, a memory 304, a power component 306, a multimedia component 308, an audio component 310, an input / output (I / O) interface 312, a sensor component 314, and a communication component 316.
[0209] The processing component 302 generally controls the overall operation of the category system update system 300. The processing component 302 may include one or more processors 320 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 302 may include one or more modules to facilitate the interaction between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate the interaction between the multimedia component 308 and the processing component 302.
[0210] The memory 304 is configured to store various types of data to support the operation of the category system update system 300. Examples of such data include instructions for any application or method operating on the category system update system 300, such as text, pictures, videos, etc. The memory 304 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0211] The power component 306 provides power to various components of the category hierarchy update system 300. The power component 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the vehicle control system 300.
[0212] The multimedia component 308 includes a screen that provides an output interface between the category system update system 300 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 308 may also include a front camera and / or a rear camera. When the category system update system 300 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
[0213] The audio component 310 is configured to output and / or input audio signals. For example, the audio component 310 includes a microphone (MIC), and when the category system update system 300 is in an operation mode, such as an alarm mode, a recording mode, a voice recognition mode, and a voice output mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 304 or sent via the communication component 316. In some embodiments, the audio component 310 also includes a speaker for outputting audio signals.
[0214] I / O interface 312 provides an interface between processing component 302 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0215] The sensor assembly 314 includes one or more sensors for providing various aspects of status assessment for the category system update system 300. For example, the sensor assembly 314 may include a sound sensor. In addition, the sensor assembly 314 may detect the open / closed state of the category system update system 300, the relative positioning of the components, such as the display and keypad of the category system update system 300, and the sensor assembly 314 may also detect the operating state of the category system update system 300 or a component of the category system update system 300, such as the operating state of the air distribution plate, the structural state, the operating state of the discharge scraper, etc., the category system update system 300 orientation or acceleration / deceleration and the temperature change of the category system update system 300. The sensor assembly 314 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 314 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 314 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, a material stacking thickness sensor, or a temperature sensor.
[0216] The communication component 316 is configured to enable the category system update system 300 to provide the ability to communicate with other devices and cloud platforms in a wired or wireless manner. The category system update system 300 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 316 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0217] In an exemplary embodiment, the category system update system 300 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the category system update method described in any of the above embodiments.
[0218] The present application also provides a computer-readable storage medium. When the instructions in the storage medium are executed by a processor corresponding to the category system update system, the category system update system can implement the category system update method recorded in any of the above embodiments.
[0219] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0220] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0221] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0222] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0223] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for updating a category system, characterized in that: include: Obtain human-computer interaction logs within a preset time period; Acquire a target request word in the human-computer interaction log whose relevance to the existing category system is less than a preset relevance; Clustering the target request words to obtain a clustering result; Determine a target cluster whose sample quantity in the clustering result is greater than a preset quantity; Adding categories related to the target cluster to the existing category system.
2. The method according to claim 1, characterized in that The step of obtaining a target request word in the human-computer interaction log whose relevance to the existing category system is less than a preset relevance includes: Obtaining a response result to each request word from the human-computer interaction log; When there is a request word with an empty response result, it is determined that the request word with an empty response result is a target request word whose relevance to the existing category system is less than a preset relevance.
3. The method according to claim 1, characterized in that The step of obtaining a target request word in the human-computer interaction log whose relevance to the existing category system is less than a preset relevance includes: Extracting each request word from the human-computer interaction log; Comparing each request word with the existing category system to obtain a comparison result, wherein the comparison result is a correlation between each request word and the existing category system; A target request word whose relevance to the existing category system is less than a preset relevance is selected from the comparison results.
4. The method according to claim 1, characterized in that The clustering of the target request words to obtain a clustering result includes: Convert all target request words into vectors; Determine the vector distance of each target request word; Cluster the target request words whose vector distance is less than the preset distance.
5. The method according to claim 1, characterized in that The adding of categories related to the target cluster in the existing category system includes: The target cluster is fed back to a terminal corresponding to a developer, so that the developer can add a category related to the target cluster in the category system according to the target cluster.
6. The method according to claim 1, characterized in that The adding of categories related to the target cluster in the existing category system includes: Extracting each target request word in the target cluster; Searching each target request word in a preset search engine; Determine that the words that appear in the search results more than a second preset number of times are the labels corresponding to the target request words; Determine the same label corresponding to each target request word; Determine that the categories to which the same tags corresponding to the target request words belong are categories related to the target cluster; Add categories related to the target cluster to the target system.
7. The method according to claim 1, characterized in that The adding of categories related to the target cluster in the existing category system includes: Extracting each target request word in the target cluster; Searching each target request word in a preset search engine; Identify content related to the category of each target request word that appears in the search results; Determine the words with the highest frequency of occurrence in the content related to each target request word category as the categories related to the target cluster; Adding categories related to the target cluster to the category system.
8. A category system updating device, characterized in that: include: A first acquisition module is used to acquire the human-computer interaction log within a preset time period; A second acquisition module is used to acquire a target request word in the human-computer interaction log whose relevance to the existing category system is less than a preset relevance; A clustering module, used for clustering the target request words to obtain a clustering result; A determination module, used to determine a target cluster whose sample quantity in the clustering result is greater than a preset quantity; A new module is used to add a category related to the target cluster in the existing category system.
9. A category system updating system, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to implement the category system updating method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor corresponding to the category system updating system, the category system updating system can implement the category system updating method as described in any one of claims 1-7.
Citation Information
Patent Citations
Method and device to process information according to multilevel categories
CN108228787A
Text category determination method and device, computer equipment and storage medium
CN115129871A
