Label determination method, device, medium and electronic device

By combining conversation data and log data, and using semantic and statistical features to determine user tags, the problem of low tag accuracy in the existing technology is solved, achieving higher tag accuracy and reducing labor costs.

CN112163081BActive Publication Date: 2024-08-27NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 21 Cites 0 Cited by

Patent Information

Application Number
CN202011097282.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-14
Publication Date
2024-08-27
Estimated Expiration
2040-10-14

AI Technical Summary

Technical Problem

In the existing technology, the accuracy of user tags is low. Especially when it is necessary to add new tags or migrate tags to different game applications, the cost of artificially setting thresholds is high and the accuracy is reduced.

Method used

By obtaining the client's dialogue data and log data, combined with semantic features and statistical features, the dialogue classification model and speech classification model are used to determine the personality label, reducing manual participation and improving the accuracy of the label.

Benefits of technology

It improves the accuracy of labels, reduces labor costs, avoids label inaccuracies caused by manual settings, and enhances data utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112163081B
    Figure CN112163081B
Patent Text Reader

Abstract

The present disclosure provides a label determination method, a label determination device, a computer-readable medium, and an electronic device; and relates to the field of data processing technology. The label determination method includes: obtaining conversation data of a client, and determining the semantic features of the client through the conversation data, wherein the conversation data includes text data and voice data; obtaining log data of the client, and determining the statistical features corresponding to the statistical data in the log data, wherein the statistical data is data that can be accumulated in quantity; combining the semantic features and the statistical features to determine the personalized label of the client. The label determination method in the present disclosure can overcome the problem of inaccurate labels to a certain extent, thereby improving the accuracy of labels.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing technology, and in particular to a tag determination method, a tag determination device, a computer-readable medium, and an electronic device. Background Art

[0002] User tags can reflect the characteristics of user behavior, and building user tags is an important part of achieving personalized user experience. Taking game applications as an example, by building player tags, we can describe the player's personality characteristics and game behavior characteristics, and then provide players with friend recommendations, game team matching and other services that better meet their needs.

[0003] At present, the player's label is mainly obtained by collecting statistics from the player's log data to obtain various statistical indicators, such as cumulative online time, cumulative game matches, cumulative consumption, etc., and then setting thresholds for the statistical indicators. The player's label is determined by the threshold that the player meets. For example, if the player's cumulative online time in a month is greater than 30 hours, the player is determined to be an active player. Since the threshold of the statistical indicator is usually set manually by the game planner according to the actual situation, if a new label needs to be added or an existing label needs to be migrated to a different game application, the threshold needs to be manually reset, which has a high labor cost; and the accuracy of the manually set threshold becomes lower and lower as the data accumulates, resulting in low accuracy of the label.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] The purpose of the present disclosure is to provide a tag determination method, a tag determination device, a computer-readable medium and an electronic device, thereby overcoming the problem of low accuracy of user tags to a certain extent.

[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0007] According to a first aspect of the present disclosure, a tag determination method is provided, comprising:

[0008] Acquire conversation data of the client, and determine semantic features of the client through the conversation data, wherein the conversation data includes text data and voice data;

[0009] Obtaining log data of the client, and determining statistical features corresponding to statistical data in the log data, wherein the statistical data is data that can be accumulated;

[0010] The personality tag of the client is determined by combining the semantic feature and the statistical feature.

[0011] In an exemplary embodiment of the present disclosure, determining the semantic features of the client through the conversation data includes:

[0012] Get multiple conversation samples;

[0013] A dialogue classification model is determined through the multiple dialogue samples, so as to classify the dialogue data through the dialogue classification model to obtain the semantic features.

[0014] In an exemplary embodiment of the present disclosure, determining a dialogue classification model through the multiple dialogue samples includes:

[0015] performing unsupervised clustering on the multiple dialogue samples to obtain multiple semantic categories;

[0016] Determine sample matching templates for each semantic category respectively, so as to filter out corpus sample sets of each semantic category through the sample matching templates;

[0017] The dialogue classification model is determined by combining the corpus sample sets of each semantic category.

[0018] In an exemplary embodiment of the present disclosure, the respectively determining sample matching templates of each semantic category includes:

[0019] Perform keyword extraction on each of the semantic categories to obtain keywords corresponding to each of the semantic categories;

[0020] Acquire positive and negative samples of each semantic category from the multiple dialogue samples by using the keywords;

[0021] A positive sample matching template and a negative sample matching template of each semantic category are determined according to the positive and negative samples of each semantic category.

[0022] In an exemplary embodiment of the present disclosure, the semantic feature includes a voice feature; and determining the semantic feature of the client through the conversation data includes:

[0023] The conversation data is classified by a voice classification model to determine the voice features of the client.

[0024] In an exemplary embodiment of the present disclosure, before classifying the conversation data by using a speech classification model, the method further includes:

[0025] Obtain a speech sample set containing annotations;

[0026] Performing data enhancement processing on the annotated speech sample set to obtain a processed target sample set;

[0027] The speech classification model is determined by the target sample set.

[0028] In an exemplary embodiment of the present disclosure, determining the semantic features of the client through the conversation data includes:

[0029] A text classification model is generated by using knowledge distillation technology to determine the semantic features of the conversation data by using the text classification model.

[0030] According to a second aspect of the present disclosure, a label determination device is provided, comprising a feature extraction module, a data statistics module and a label determination module, wherein:

[0031] A feature extraction module is used to obtain the conversation data of the client and determine the semantic features of the client through the conversation data, wherein the conversation data includes text data and voice data; a data statistics module is used to determine the statistical features corresponding to the statistical data in the log data, wherein the statistical data is data that can be accumulated; a label determination module determines the personalized label of the client in combination with the semantic features and the statistical features.

[0032] In an exemplary embodiment of the present disclosure, the feature extraction module specifically includes a sample acquisition unit and a feature classification unit, wherein:

[0033] The sample acquisition unit is used to acquire a plurality of dialogue samples; the feature classification unit is used to determine a dialogue classification model through the plurality of dialogue samples, so as to classify the dialogue data through the dialogue classification model to obtain the semantic feature.

[0034] In an exemplary embodiment of the present disclosure, the feature classification unit specifically includes a clustering unit, a sample screening unit, and a model determination unit, wherein:

[0035] A clustering unit is used to perform unsupervised clustering on the multiple dialogue samples to obtain multiple semantic categories; a sample screening unit is used to respectively determine the sample matching templates of each semantic category to screen out the corpus sample sets of each semantic category through the sample matching templates; a model determination unit is used to determine the dialogue classification model in combination with the corpus sample sets of each semantic category.

[0036] In an exemplary embodiment of the present disclosure, the sample screening unit specifically includes a keyword extraction unit, a positive and negative sample extraction unit, and a matching template determination unit, wherein:

[0037] Keyword extraction is performed on each semantic category to obtain keywords corresponding to each semantic category; positive and negative samples of each semantic category are obtained from the multiple dialogue samples through the keywords; and positive sample matching templates and negative sample matching templates of each semantic category are determined according to the positive and negative samples of each semantic category.

[0038] In an exemplary embodiment of the present disclosure, the semantic features include voice features, and the feature extraction module may be specifically configured to classify the conversation data through a voice classification model to determine the voice features of the client.

[0039] In an exemplary embodiment of the present disclosure, the device further includes a speech sample acquisition module, a sample enhancement module and a speech classification model determination module, wherein:

[0040] A speech sample acquisition module is used to acquire a speech sample set containing annotations; a sample enhancement module is used to perform data enhancement processing on the speech sample set containing annotations to obtain a processed target sample set; and a speech classification model determination module is used to determine the speech classification model through the target sample set.

[0041] In an exemplary embodiment of the present disclosure, the feature extraction module may be specifically used to generate a text classification model through knowledge distillation technology, so as to determine the semantic features of the conversation data through the text classification model.

[0042] According to a third aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any one of the above-mentioned methods by executing the executable instructions.

[0043] According to a fourth aspect of the present disclosure, a computer-readable medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, any one of the methods described above is implemented.

[0044] The exemplary embodiments of the present disclosure may have some or all of the following beneficial effects:

[0045] In the label determination method provided in the example implementation mode of the present disclosure, on the one hand, the client's personal label is determined by acquiring the client's conversation data and log data, which can make more comprehensive use of the client's data and improve data utilization; on the other hand, the semantic features and statistical features of the client are determined, and these two types of features can make the obtained personal label more accurate, thereby improving the accuracy of the label; on the other hand, no human intervention is required in the process of determining the client's personal label, which can reduce labor costs and avoid the problem of inaccurate labels due to human settings.

[0046] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0048] Figure 1 A flowchart of a tag determination method according to an embodiment of the present disclosure is schematically shown;

[0049] Figure 2 A flowchart of a tag determination method according to another embodiment of the present disclosure is schematically shown;

[0050] Figure 3 A flowchart of a tag determination method according to an embodiment of the present disclosure is schematically shown;

[0051] Figure 4 A flowchart of a tag determination method according to another embodiment of the present disclosure is schematically shown;

[0052] Figure 5 A block diagram of a label determination device according to an embodiment of the present disclosure is schematically shown;

[0053] Figure 6 A system architecture diagram for implementing a tag determination method according to an embodiment of the present disclosure is schematically shown;

[0054] Figure 7 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0055] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.

[0056] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0057] The technical solution of the embodiment of the present disclosure is described in detail below:

[0058] This exemplary embodiment first provides a tag determination method. Figure 1 As shown, the label determination method may include the following steps:

[0059] Step S110: Acquire the conversation data of the client, and determine the semantic features of the client through the conversation data, wherein the conversation data includes text data and voice data.

[0060] Step S120: Obtain the log data of the client, and determine the statistical features corresponding to the statistical data in the log data, wherein the statistical data is data that can be accumulated.

[0061] Step S130: Determine the personality tag of the client by combining the semantic feature and the statistical feature.

[0062] In the label determination method provided in the example implementation mode of the present disclosure, on the one hand, the client's personal label is determined by acquiring the client's conversation data and log data, which can make more comprehensive use of the client's data and improve data utilization; on the other hand, the semantic features and statistical features of the client are determined, and these two types of features can make the obtained personal label more accurate, thereby improving the accuracy of the label; on the other hand, no human intervention is required in the process of determining the client's personal label, which can reduce labor costs and avoid the problem of inaccurate labels due to human settings.

[0063] Next, the above steps of this exemplary embodiment are described in more detail.

[0064] In step S110, the conversation data of the client is acquired, and the semantic features of the client are determined through the conversation data, wherein the conversation data includes text data and voice data.

[0065] The conversation data may refer to information sent by the client to other clients, or information received from other clients, and different client users may communicate through the conversation data. Exemplarily, the conversation data may include text data, voice data, etc. stored by the client, such as chat records; it may also include the client's bullet screen, information sent to the public screen, or other information, such as friend requests, team requests, etc., which are not specifically limited in this embodiment.

[0066] The conversation data can be filtered out from the data stored in the client, for example, by obtaining a file that stores the conversation data from a file directory, etc.; or, the conversation data of the client can be obtained by requesting the server, and the conversation data of the client can be stored in a database, a cloud disk, etc. After receiving the request from the client, the server can query the conversation data corresponding to the client from the database or the cloud disk, and return it to the client. For example, in a game application, a player can send a team request to other players, send voice or text to chat, etc. The client or server can save the information sent or received by the player in a specific file, and the conversation data of the player can be obtained through the file. For example, the conversation data can be updated every certain period of time, for example, the conversation data of the client can be re-obtained every day, month, etc., so as to maintain the timeliness of the conversation data.

[0067] Determining the semantic features of the client through the conversation data can be achieved through a classification model, that is, the conversation data can be classified through the model to determine the semantic type of the conversation data, and the semantic type is used as the semantic feature of the client. The semantic type can be preset, such as positive, negative, etc., or can be set to other types, such as encouragement, inspiration, cuteness, roughness, etc., but the present embodiment is not limited thereto. Exemplarily, the method for determining the semantic features of the conversation data can include steps S210 and S220, such as Figure 2 shown.

[0068] In step S210, multiple dialogue samples are obtained. A large number of dialogue samples can be obtained through a corpus, or historical dialogue messages of multiple clients can be obtained as dialogue samples. The dialogue sample can include text information, such as the chat history of the client, etc., or voice information of the client can be obtained and converted into text information through natural language recognition to obtain the dialogue sample.

[0069] In step S220, a dialogue classification model is determined by the dialogue sample, so that the dialogue data is classified by the dialogue classification model to obtain the semantic feature. Exemplarily, the dialogue classification model can be a text classification model, such as TextCNN, etc. The dialogue sample can be annotated and used as training data. If the dialogue sample is speech, the speech can be converted into text. After training, the dialogue classification model can be obtained, and then the dialogue data of the client is input into the dialogue classification model, and the result output by the model is used as the semantic feature. For example, the dialogue data can be "Hello everyone", and the semantic feature obtained by inputting the dialogue classification model is "Greetings".

[0070] When classifying the conversation data, since training the model for classifying the conversation data requires a large amount of labeled data, that is, each sample needs to be manually labeled in advance to mark the corresponding type, and the labor cost is too high. Therefore, in this example implementation, determining the semantic features of the conversation data may include steps S310 to S330, such as Figure 3 shown.

[0071] In step S310, the multiple dialogue samples are clustered unsupervisedly to obtain multiple semantic categories. Exemplarily, after obtaining a large number of dialogue samples, each sample can be firstly subjected to feature extraction, for example, the dialogue sample can be subjected to feature extraction through the BERT algorithm or the TF-IDF algorithm to obtain sample features, and then the extracted sample features are clustered through an unsupervised clustering algorithm, such as K-means, to obtain multiple classes, and finally the semantic categories of each class are defined. For example, logs of multiple game clients are obtained, a certain number of chat records are screened out from the logs, and each chat record is used as a dialogue sample. After performing unsupervised clustering on the chat records, four classes can be obtained, and the content of the dialogue samples contained in each class can be defined as basic information class, expression style class, special appeal class, and social tendency class, etc. The number of semantic categories can be set according to actual needs, for example, 4, 5, 10, 15, etc. The more semantic categories there are, the more accurate the classification of semantic features is.

[0072] In step S320, sample matching templates of each semantic category are determined respectively, so as to filter out corpus sample sets of each semantic category through the sample matching templates. After clustering the conversation samples, each semantic category contains a certain number of conversation samples, and the sample matching template of the semantic category can be determined through the samples contained in the semantic category. Exemplarily, the probability of occurrence of each word in the sample contained in the semantic category can be counted, and the word with the highest frequency of occurrence can be used as the sample matching template, or the words with the highest and lowest frequency of occurrence can be combined as the sample matching template; or, keyword extraction is performed on the sample, and the extracted keyword is used as the sample matching template. For example, semantic category A contains 10,000 conversation samples, and keyword extraction is performed on the 10,000 conversation samples to obtain keyword a, and a is the sample matching template of semantic category A. After obtaining the sample matching template, the corpus samples that can match the sample matching template can be filtered out from the corpus database by string matching to obtain a corpus sample set. The corpus database may include texts that actually appeared in the actual use of the language.

[0073] In step S330, the dialogue classification model is determined in combination with the corpus sample sets of each semantic category. The corpus sample set obtained by matching the sample matching template of the semantic category can be automatically labeled as the corresponding category, so there is no need to manually label the corpus sample set; that is, the labeling of the corpus sample set is the same as its corresponding semantic category; for example, if the semantic category is "basic information category", the labeling of the corpus sample set matched by the sample matching template of the basic information category is "basic information category". The obtained corpus sample set can be directly used as training data to train the dialogue classification model without manual labeling.

[0074] In this embodiment, semantic categories are determined through unsupervised clustering, and then the corpus sample sets corresponding to each semantic category are screened out through sample matching templates of the semantic categories. The obtained corpus sample sets can be directly automatically annotated using the corresponding semantic categories, which can avoid the large amount of manpower required for manual annotation and improve efficiency.

[0075] In an exemplary embodiment, the method for determining a sample matching template of a semantic category may include steps S410, S420, and S430. Figure 4 shown.

[0076] In step S410, keywords are extracted from each of the semantic categories to obtain keywords corresponding to each of the semantic categories. First, the text samples contained in the semantic categories need to be segmented, and then the frequency of occurrence of each word is counted. Words that appear frequently in the category but less frequently in other categories can be used as keywords. In addition, keywords for each category can also be obtained by other means, such as using the words with the highest frequency of occurrence in the semantic category as keywords, using words that do not appear or appear less frequently in the semantic category as keywords, etc., and then, for example, extracting keywords from samples within the category through a keyword extraction tool, such as extracting keywords through a TF-IDF model, etc. A semantic category can correspond to multiple keywords, and the keywords in each semantic category can be the same, for example, the keyword of semantic category A is a, and a is also the keyword of semantic category B.

[0077] In step S420, positive and negative samples of each semantic category are obtained from the multiple conversation samples through the keywords. After obtaining the keywords corresponding to each semantic category through the samples contained in each semantic category, the keywords can be used to recall the positive and negative samples of the semantic category from the entire conversation sample. Among them, the positive and negative samples include positive samples and negative samples. Positive samples refer to conversation samples recalled through keywords and included in the semantic category corresponding to the keyword. For example, the multiple conversation samples originally obtained are taken as sample set A, and semantic categories B, C, D, E, and F are obtained after unsupervised clustering. Each semantic category contains a part of the conversation samples in sample set A. The keyword of semantic category B is used to filter from sample set A to obtain conversation sample m, which is exactly the sample included in semantic category B. In other words, positive samples are samples recalled through keywords corresponding to a semantic category, and the samples match the classification of samples by unsupervised clustering. On the contrary, samples recalled through keywords corresponding to a semantic category that are not in the semantic category are negative samples. First, one of the multiple semantic categories is selected as the target category. The keywords corresponding to the target category are used to screen the conversation samples, and the semantic categories of the screened samples are verified. If the semantic category is the target category, it is used as a positive sample. If the semantic category is not the target category, it is used as a negative sample of the target category. Then, other semantic categories are processed in turn to obtain positive and negative samples for each semantic category.

[0078] In step S430, the positive sample matching template and the negative sample matching template of each semantic category are determined according to the positive and negative samples of each semantic category. For each semantic category, the positive sample matching template can be obtained through the positive sample of the semantic category, and the negative sample matching template can be obtained through the negative sample of the semantic category. Specifically, for the positive sample, the positive sample can be replaced with synonyms and wildcards, and the positive sample can be generalized to obtain the positive sample matching template. Alternatively, a matching template is preliminarily constructed through the positive sample, for example, the words contained in the positive sample are used as the matching template, and then the matching template is replaced with synonyms, wildcards, etc., and the matching template is generalized to obtain the final positive sample matching template. Similarly, for the negative sample, the negative sample matching template can also be obtained by replacing the synonyms or wildcards.

[0079] The sample matching template may include a positive sample matching template and a negative sample matching template, and the corpus samples of the semantic category can be screened out from the corpus through the positive sample matching template and the negative sample matching template. For example, for semantic category A, the matching samples can be first screened out through the positive sample matching template of A, and then the screened samples are filtered through the negative sample matching template to filter out the samples that match the negative sample matching template, and the final samples are saved in the corpus sample set of A. Through this implementation, the corpus sample set of each semantic category can be made more accurate, which is conducive to improving the accuracy of the dialogue classification model.

[0080] In this embodiment, the conversation data may include text data and voice data, so a conversation classification model may be determined for the text data and a conversation classification model may be determined for the voice data. The method of determining the conversation classification model through text information has been specifically introduced in the above embodiment. The conversation data of the text type can be classified through the conversation classification model to obtain text features. In order to directly classify the conversation data of the voice type to obtain voice features, it is necessary to train a voice classification model, and the conversation data of the voice type is classified through the voice classification model. Specifically, the method first obtains a speech sample set containing annotations. The speech sample set may include a certain number of speech samples, and each speech sample may be manually annotated in advance to mark the semantic category corresponding to the speech sample. In order to save manpower, only a small number of speech samples may be annotated. Then, the speech sample set containing annotations is subjected to data enhancement processing to obtain a processed target sample set. The samples in the speech sample set can be extended by using data enhancement technology, thereby increasing the number of samples containing annotations in the speech sample set, and the number of samples in the processed target sample set is greater than that in the speech sample set. Finally, the speech classification model is determined through the target sample set. For example, the speech detection technology is used to extract the speech part of the speech sample in the target sample set, and then the multi-label classification algorithm is used to analyze the characteristics of the speech part to obtain a speech classification model. The speech classification model can directly classify the conversation data of the speech type to obtain the speech features.

[0081] In an exemplary embodiment, a text classification model can be generated by knowledge distillation technology, and the semantic features of the conversation data can be determined by the text classification model. Among them, knowledge distillation technology refers to the process of first fitting the input and output with a complex model A; after training model A, recording the predicted results of model A as p; then fitting the input and p with a simple model B, and using the trained model B for practical applications. For example, the conversation classification model trained in the above embodiment can be processed using knowledge distillation technology, such as training the conversation classification model with the TextCNN algorithm, and after obtaining the conversation classification model, the semantic features predicted by the model for the conversation sample are used as the fitting target, and the conversation sample and the fitting target are input into FastText, and the final text classification model is obtained after training. By adopting the knowledge distillation method, the prediction speed of the model can be accelerated, thereby improving the prediction efficiency.

[0082] In step S120, log data of the client is obtained, and statistical features corresponding to statistical data in the log data are determined, wherein the statistical data is data that can be accumulated.

[0083] The client's log data may record the client's user operations, which may include, for example, user login information, chat information, game information, etc., and may also include other information, such as friend-making information, like information, report information, etc., but the present embodiment is not limited thereto. Taking a game application as an example, the game client's log data may record user team formation information, such as the number of team formations, teammate information, etc., and may also record game information, such as win-loss rate, game type, etc.

[0084] Log data contains statistical data that can be accumulated. By collecting statistics, the statistical features of the client can be obtained. For example, the number of texts sent, the number of friend requests sent, the number of gifts given, the number of games played, the number of team formations, etc. can be counted from the log data. The statistical results can then be used as statistical features, or the statistical features can be determined based on the thresholds met by the statistical results. For example, if the number of friend requests sent exceeds a certain threshold, the statistical features of the client can be determined to be "social tendency".

[0085] In step S130, the personality tag of the client is determined by combining the semantic feature and the statistical feature.

[0086] Among them, the personality label can be the same as the semantic category, and the client can include multiple personality labels, for example, the personality label can be "primary school student", "friendship demand", "game voice demand", etc. For example, the semantic feature can be directly used as the personality label of the client. For example, if the semantic feature of the conversation data is "expression style category", the semantic feature can be used as the personality label of the client. Alternatively, both the semantic feature and the statistical feature can be used as the personality label of the client. For example, if the semantic feature is "expression style category" and the statistical feature is "active player", the personality label of the client is "expression style category" and "active player". In addition, in this embodiment, a label classification model can be trained by samples, and the semantic features and statistical features are used as inputs of the label classification model, and the personality label of the client is determined by the label classification model. For example, the label classification model is a GBDT (Gradient Boosting Decision Tree, gradient boosting iterative decision tree) model, which can be classified by dimensions and thresholds. The features of each dimension of the conversation data are input into the model to obtain the personality label of the conversation data, thereby making the classification process easier to control without human participation and improving flexibility.

[0087] Furthermore, in this exemplary embodiment, a label determination device is also provided, which is used to execute the label determination method of the present disclosure. The device can be applied to a server or a terminal device.

[0088] refer to Figure 5 As shown, the label determination device 500 may include: a feature extraction module 510, a data statistics module 520 and a label determination module 530, wherein:

[0089] The feature extraction module is used to obtain the conversation data of the client and determine the semantic features of the client through the conversation data, wherein the conversation data includes text data and voice data.

[0090] The data statistics module is used to obtain the log data of the client and determine the statistical features corresponding to the statistical data in the log data, wherein the statistical data is data that can be accumulated.

[0091] The tag determination module determines the personalized tag of the client in combination with the semantic feature and the statistical feature.

[0092] In an exemplary embodiment of the present disclosure, the feature extraction module 510 specifically includes a sample acquisition unit and a feature classification unit, wherein:

[0093] The sample acquisition unit is used to acquire multiple dialogue samples.

[0094] A feature classification unit is used to determine a dialogue classification model through the multiple dialogue samples, so as to classify the dialogue data through the dialogue classification model to obtain the semantic feature.

[0095] In an exemplary embodiment of the present disclosure, the feature classification unit specifically includes a clustering unit, a sample screening unit, and a model determination unit, wherein:

[0096] The clustering unit is used to perform unsupervised clustering on the multiple dialogue samples to obtain multiple semantic categories.

[0097] The sample screening unit is used to determine the sample matching templates of each semantic category respectively, so as to screen out the corpus samples of each semantic category through the sample matching templates.

[0098] A model determination unit is used to determine the dialogue classification model in combination with the corpus sample sets of each semantic category.

[0099] In an exemplary embodiment of the present disclosure, the sample screening unit specifically includes a keyword extraction unit, a positive and negative sample extraction unit, and a matching template determination unit, wherein:

[0100] Keyword extraction is performed on each of the semantic categories to obtain keywords corresponding to each of the semantic categories.

[0101] Positive and negative samples of each semantic category are obtained from the multiple dialogue samples using the keywords.

[0102] A positive sample matching template and a negative sample matching template of each semantic category are determined according to the positive and negative samples of each semantic category.

[0103] In an exemplary embodiment of the present disclosure, the semantic feature includes a voice feature, and the feature extraction module 510 may be specifically configured to classify the conversation data through a voice classification model to determine the voice feature of the client.

[0104] In an exemplary embodiment of the present disclosure, the apparatus 500 further includes a speech sample acquisition module, a sample enhancement module, and a speech classification model determination module, wherein:

[0105] The speech sample acquisition module is used to obtain a speech sample set containing annotations.

[0106] The sample enhancement module is used to perform data enhancement processing on the speech sample set containing annotations to obtain a processed target sample set.

[0107] The speech classification model determination module is used to determine the speech classification model through the target sample set.

[0108] In an exemplary embodiment of the present disclosure, the feature extraction module 510 may be specifically used to generate a text classification model through knowledge distillation technology, so as to determine the semantic features of the conversation data through the text classification model.

[0109] Since the various functional modules of the label determination device of the exemplary embodiment of the present disclosure correspond to the steps of the exemplary embodiment of the label determination method described above, for details not disclosed in the embodiment of the device of the present disclosure, please refer to the embodiment of the label determination method described above in the present disclosure.

[0110] See also Figure 6 , Figure 6 A schematic diagram of a system architecture of an exemplary application environment in which a tag determination method and a tag determination device according to an embodiment of the present disclosure can be applied is shown.

[0111] like Figure 6 As shown, the system architecture 600 may include one or more of terminal devices 601, 602, 603, a network 604, and a server 605. The network 604 is used to provide a medium for communication links between the terminal devices 601, 602, 603 and the server 605. The network 604 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0112] The terminal devices 601, 602, and 603 may be various electronic devices with display screens, including but not limited to desktop computers, portable computers, smart phones, and tablet computers. It should be understood that Figure 6 The number of terminal devices, networks and servers in the embodiment is only for illustration. According to the implementation requirements, there may be any number of terminal devices, networks and servers. For example, the server 605 may be a server cluster composed of multiple servers.

[0113] The tag determination method provided in the embodiment of the present disclosure is generally executed by the server 605 , and accordingly, the tag determination device is generally disposed in the server 605 .

[0114] Figure 7 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present disclosure is shown.

[0115] It should be noted that Figure 7 The computer system 700 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0116] like Figure 7As shown, computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. Various programs and data required for system operation are also stored in RAM 703. CPU 701, ROM 702 and RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to bus 704.

[0117] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.

[0118] In particular, according to an embodiment of the present disclosure, the process described below with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part 709, and / or installed from a removable medium 711. When the computer program is executed by a central processing unit (CPU) 701, various functions defined in the method and apparatus of the present application are executed.

[0119] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0120] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0121] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, and the units described may also be arranged in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0122] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being installed in the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the following embodiment. For example, the electronic device may implement the following method. Figure 1 and Figure 2 The various steps shown, etc.

[0123] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0124] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0125] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A label determination method, characterized in that: include: Acquire conversation data of a game client, and classify the conversation data through a conversation classification model to obtain semantic features of the game client, wherein the conversation data includes text data and voice data; the conversation data includes friend requests and team formation requests; Obtaining log data of the game client, and determining statistical features corresponding to statistical data in the log data, wherein the statistical data is data that can be accumulated in quantity; the log data records team formation information and competition information of the game client; The semantic features and the statistical features are used as inputs of a tag classification model, and the personalized tag of the game client is determined through the tag classification model.

2. The method according to claim 1, characterized in that Determining the semantic features of the game client through the conversation data includes: Get multiple conversation samples; A dialogue classification model is determined through the multiple dialogue samples.

3. The method according to claim 2, characterized in that Determining the dialogue classification model through the multiple dialogue samples includes: performing unsupervised clustering on the multiple dialogue samples to obtain multiple semantic categories; Determine sample matching templates for each semantic category respectively, so as to filter out corpus sample sets of each semantic category through the sample matching templates; The dialogue classification model is determined by combining the corpus sample sets of each semantic category.

4. The method according to claim 3, characterized in that The sample matching templates for each semantic category are determined respectively, including: Perform keyword extraction on each of the semantic categories to obtain keywords corresponding to each of the semantic categories; Acquire positive and negative samples of each semantic category from the multiple dialogue samples by using the keywords; A positive sample matching template and a negative sample matching template of each semantic category are determined according to the positive and negative samples of each semantic category.

5. The method according to claim 1, characterized in that The semantic features include phonetic features; The classifying the dialogue data by using a dialogue classification model to obtain the semantic features of the game client includes: The conversation data is classified by a voice classification model to determine the voice features of the game client.

6. The method according to claim 5, characterized in that Before classifying the conversation data by using a speech classification model, the method further includes: Obtain a speech sample set containing annotations; Performing data enhancement processing on the annotated speech sample set to obtain a processed target sample set; The speech classification model is determined by the target sample set.

7. The method according to claim 1, characterized in that The classifying the dialogue data by using a dialogue classification model to obtain the semantic features of the game client includes: A text classification model is generated by using knowledge distillation technology to determine the semantic features of the conversation data by using the text classification model.

8. A label determination device, characterized in that: include: A feature extraction module is used to obtain the conversation data of the game client, and classify the conversation data through a conversation classification model to obtain the semantic features of the game client, wherein the conversation data includes text data and voice data; the conversation data includes friend requests and team requests; A data statistics module, used to obtain the log data of the game client, and determine the statistical features corresponding to the statistical data in the log data, wherein the statistical data is data that can be accumulated; the log data records the team information and competition information of the game client; The tag determination module uses the semantic features and the statistical features as inputs of a tag classification model, and determines the personalized tag of the game client through the tag classification model.

9. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

10. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 7 by executing the executable instructions.

Citation Information

Patent Citations

  • Voiceprint identification method and apparatus

    CN107507612A

  • Social relationship recommendation method and device in game and computer readable storage medium

    CN108579095A

  • User portrait generation method and device, computer equipment and storage medium

    CN108897734A

  • Information recommendation method and system in voice conversation process

    CN108960934A

  • A method and system for generating and using portrait tag

    CN109145204A