Content quality identification method, device, equipment and readable storage medium
By identifying the intent of the comment data of the information flow content, the problem of detailed quality in user-generated content is solved, the accuracy and quality of content recommendation are improved, and the analysis workload is reduced.
Patent Information
- Application Number
- CN202111664299.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-24
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-11-24
AI Technical Summary
Existing technology is difficult to effectively identify and filter detailed quality problems in user-generated content, such as typos, discomfort caused by video images, and advertisements, resulting in low content quality and low recommendation accuracy in the recommendation pool.
By obtaining the comment data of the information flow content, intent recognition is performed, and the intent recognition results are used to determine the content quality, avoiding detailed analysis of specific content, and improving the content quality and recommendation accuracy of the recommendation pool.
It improves the quality of content in the recommendation pool and the accuracy of content recommendation, reduces the analysis workload, and enhances the effect of the model and the representation of semantic information.
Smart Images

Figure CN114547435B_ABST
Abstract
Description
[0001] This application is a divisional application of the Chinese application with application number 202011329266.2, application date November 24, 2020, and invention name “Method, device, equipment and readable storage medium for identifying content quality”. Technical Field
[0002] The embodiments of the present application relate to the field of machine learning, and in particular, to a method, apparatus, device and readable storage medium for identifying content quality. Background Art
[0003] In the field of artificial intelligence, before pushing user-generated content (UGC), it is first necessary to filter and process the UGC content, and deduplicate homogeneous content. If the UGC content meets the filtering conditions, the UGC content will be removed from the recommendation pool and not recommended.
[0004] In the related art, the title, body and other text contents of the UGC content are identified through machine learning and natural language processing (NLP) technology, so as to identify the UGC content involving the above-mentioned content to be filtered in the text content and filter it.
[0005] However, there are still a large number of detailed quality issues in UGC content, such as typos, video images that cause discomfort, advertisements, etc. The above method cannot identify the detailed quality issues, resulting in low quality of UGC content in the recommendation pool and low accuracy of content recommendations. Summary of the invention
[0006] The embodiments of the present application provide a method, device, equipment and readable storage medium for identifying content quality, which can improve the accuracy of content recommendation. The technical solution is as follows:
[0007] In one aspect, a method for identifying content quality is provided, the method comprising:
[0008] Acquire target information flow content, where the target information flow content is content to be quality identified;
[0009] Acquire comment data of the target information flow content, wherein the comment data is data generated when a comment account interacts with the target information flow content through commenting;
[0010] Performing intent recognition on the comment data to obtain a comment intent recognition result, wherein the comment intent recognition result is used to indicate a matching relationship between the comment data and a candidate quality recognition result, and the candidate quality recognition result is used to indicate the quality of the target information flow content;
[0011] Based on the comment intention recognition result, the quality result of the target information flow content is determined.
[0012] In another aspect, a device for identifying content quality is provided, the device comprising:
[0013] An acquisition module, used to acquire target information flow content, wherein the target information flow content is content to be quality identified;
[0014] The acquisition module is further used to acquire comment data of the target information flow content, wherein the comment data is data generated when a comment account interacts with the target information flow content through commenting;
[0015] An identification module, used for performing intent identification on the comment data to obtain a comment intent identification result, wherein the comment intent identification result is used to indicate a matching relationship between the comment data and a candidate quality identification result, and the candidate quality identification result is used to indicate the quality of the target information flow content;
[0016] A determination module is used to determine the quality result of the target information flow content based on the comment intention recognition result.
[0017] On the other hand, a computer device is provided, which includes a processor and a memory, wherein the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the content quality identification method as described in any of the above embodiments of the present application.
[0018] On the other hand, a computer-readable storage medium is provided, wherein at least one instruction is stored in the storage medium, and the at least one instruction is loaded and executed by a processor to implement the content quality identification method as described in any of the above embodiments of the present application.
[0019] On the other hand, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the content quality identification method described in any of the above embodiments.
[0020] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0021] By obtaining the comment data of the target information flow content and performing intent recognition on the comment data, the intent content expressed by the comment data is obtained, so as to identify whether there are quality problems in the target information flow content based on the intent content expressed by the comment data, and identify the segmented quality problems that may exist in the target information flow content. This avoids the problem of large analysis workload, low analysis accuracy, and low content quality of the overall recommended content due to the need to perform detailed analysis on the specific content of the target information flow content due to segmented quality problems. This improves the quality of the content in the recommendation pool and the accuracy of content recommendations. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0023] Figure 1 It is a schematic diagram of comments received by an exemplary embodiment of the present application for information flow content with refinement quality problems provided by an exemplary embodiment of the present application;
[0024] Figure 2 is a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application;
[0025] Figure 3 is a flow chart of a method for identifying content quality provided by an exemplary embodiment of the present application;
[0026] Figure 4 is based on Figure 3 A schematic diagram of the structure of the intent recognition model provided by the illustrated embodiment;
[0027] Figure 5 is a flow chart of a method for identifying content quality provided by another exemplary embodiment of the present application;
[0028] Figure 6 is a flow chart of a method for identifying content quality provided by another exemplary embodiment of the present application;
[0029] Figure 7 is a structural block diagram of a content quality identification system provided by an exemplary embodiment of the present application;
[0030] Figure 8 is a structural block diagram of a device for identifying content quality provided by an exemplary embodiment of the present application;
[0031] Fig. 9is a structural block diagram of a device for identifying content quality provided by another exemplary embodiment of the present application;
[0032] Fig.10 It is a structural block diagram of a server provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0033] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0034] First, a brief introduction is given to the terms involved in the embodiments of the present application:
[0035] Artificial Intelligence (AI): It is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines, so that machines have the functions of perception, reasoning and decision-making.
[0036] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics and other technologies. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0037] Machine Learning (ML): It is a multi-disciplinary interdisciplinary subject, involving probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and teaching learning.
[0038] Natural language processing (NLP) is an important direction in the fields of computer science and artificial intelligence. It studies various theories and methods that can achieve effective communication between people and computers using natural language. Natural language processing is a science that integrates linguistics, computer science, and mathematics. Therefore, research in this field will involve natural language, that is, the language people use in daily life, so it is closely related to the study of linguistics. Natural language processing technology usually includes text processing, semantic understanding, machine translation, robot question answering, knowledge graph and other technologies.
[0039] Professionally Generated Content (PGC): refers to content with personalized content and diversified perspectives. It is also called Professionally-Produced Content (PPC). Both UGC and PGC have multiple forms of content expression, such as text, video, and audio.
[0040] With the rapid development of the Internet, the entire media era is also changing rapidly. In the era of increasingly popular mobile applications, a new media era of mobile social networking has been born. In the new media, the platform where users can speak, share, and spread content is called a "self-media platform". These contents are usually displayed in the form of information flow and users can interact with these contents. After consuming the content, users can also comment on the content, like, forward, collect, and other interactive behaviors. The background can also recommend content. Through content recommendation strategies and methods, content with high click-through rates can get higher exposure opportunities. However, the generation of inappropriate content seriously affects the brand and quality of the product. Usually, before the content enters the recommendation pool, it will be filtered and processed through machine learning and NLP technology, and homogeneous content will be deduplicated. However, due to the complexity of the content itself and the diversity of content forms, especially the limitations of video content and its own semantic understanding ability, there are many content quality problems that require background knowledge processing. For example, there are a large number of subdivided quality types including: typos, discomfort, advertising, low-quality commentary videos, incomplete content, etc.
[0041] In view of the above problems, in the embodiment of the present application, a method for identifying content quality is provided, which mainly combines the comment data of the content to assist in identifying the quality of the content. The core idea is: use the intention recognition model to identify the intention of the comment content, obtain the intention recognition result, and determine the quality result of the content based on the intention recognition result.
[0042] Among them, during the training process of the intent recognition model, the colloquial comment content is targeted for sample cleaning and enhancement, and then a multi-subclass quality model is constructed through deep learning. The pre-trained model plus the attention mechanism on-machine multi-quality classification mechanism are used to subdivide the content quality categories. Pre-training the model on the comment task corpus can greatly improve the accuracy and well represent the semantic information, thereby improving the effect of the final model. Through the present invention, with the help of the intent recognition and classification of user comments, it is possible to timely discover content with unclear and difficult-to-define quality standards; at the same time, it can enrich the effective samples and convergence quality standards of the pre-review machine algorithm, solving the problem of difficulty in collecting pre-model samples; at the same time, through the colloquial cleaning and enhancement of the comment content, the various special semantic information contained in the comments can be well represented, effectively improving the effect of the model.
[0043] Intent recognition: It is a recognition method that understands the semantics of natural language to realize downstream functions. The understanding of natural semantics is one of the prerequisites for human-computer dialogue. For example, based on intent recognition, we can understand what business or chat the user wants. The current basic methods of intent recognition include: (1) rule classification based on dictionary templates; (2) based on past log matching; (3) intent recognition based on classification models. Among them, rule classification based on dictionary templates: including rule template parsing: it needs to be completed based on word segmentation, part-of-speech tagging, named entity recognition, dependency syntax analysis, and semantic analysis. The general techniques of rule intent recognition include a. Judging the domain: using the overall framework of entity-main domain-template to judge the recognition domain; b. Judging the intent: after hitting the main domain, the template uses intent verbs (download, query, etc.) or intent question words (how, why, etc.); c. Distinguishing between weak intent and strong intent, and providing targeted solutions; There are also machine learning and deep learning methods: Intent recognition can be regarded as a classification problem. According to the characteristics of vertical products, different query intent categories are defined. For the query statement entered by the user, the probability of each intent is calculated based on the statistical classification model, and finally the intent of the query is given.
[0044] It is understandable that in the specific implementation of this application, it involves data related to comment content, UGC content, etc. When the above embodiments of this application are applied to specific products or technologies, user permission, authorization or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0045] In combination with the above-mentioned noun introduction, the application scenarios involved in the embodiments of the present application are illustrated by way of example:
[0046] In the process of recommending information flow content, for content with a high click rate or high popularity, it is necessary to push the content to the recommendation pool and recommend it to users according to the recommendation allocation algorithm, so that it can be displayed as recommended content in the information flow in the user interface. However, due to the instability of content quality, the content needs to be quality filtered before being pushed to the recommendation pool.
[0047] In combination with the method provided in the present application, when a machine learning model is used to perform quality filtering on information flow content, it is also necessary to perform auxiliary filtering in combination with the comment data of the information flow content, that is, to perform intent recognition on the comment data of the information flow content, and to determine whether the intent expressed by the comment data conforms to the candidate quality recognition results in the refined quality problem, such as: the candidate quality recognition results include typos, discomfort, advertisements, low-quality commentary videos, incomplete content and other problems. When it is recognized that the intent of the comment indicates that the information flow content has a refined quality problem, the information flow content is reviewed.
[0048] For illustration, please refer to Figure 1 , which shows a schematic diagram of comments received on information flow content with refinement quality problems provided by an exemplary embodiment of the present application, such as Figure 1 As shown, a comment area 110 is displayed in the display interface 100 of the information flow content. The information flow content displayed in the current information flow content display interface 100 has the problem of clickbait, that is, the title is eye-catching, but the content does not match the actual meaning of the title. The comment displayed in the comment area 110 points out this problem, and the content is "The title written by the editor is too much."
[0049] In the above examples, the identification of information flow content quality is used as an example for explanation. The content quality identification method provided in the present application can also be applied to other scenarios for identifying the quality of information flow content, and the embodiments of the present application are not limited to this.
[0050] Figure 2 is a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application, such as Figure 2 As shown, the implementation environment includes a terminal 210 and a server 220 , wherein the terminal 210 and the server 220 are connected via a communication network 230 .
[0051] The terminal 210 is installed with an application capable of publishing and browsing information streams. The user logs in to the user account in the application and browses the information stream content published or forwarded by other accounts in the application based on the user account. The user can also forward, comment, collect, report and other interactive operations on the information stream content based on the user account.
[0052] In the embodiment of the present application, the terminal 210 publishes a comment on the target information stream content and sends the comment to the server 220 for response. After receiving the comment on the target information stream content, the server 220 responds to the comment and displays the comment in the comment area corresponding to the target information stream content. When the quality of the target information stream content is identified, the quality of the target information stream content is auxiliary identified based on the obtained comment data and the intention identification result of the comment data. Therefore, it is determined whether the target information stream content needs to be filtered and not added to the recommendation pool based on the identification result of the quality of the target information stream content.
[0053] It is worth noting that the above-mentioned servers can be independent physical servers, or they can be server clusters or distributed systems composed of multiple physical servers. They can also be cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), as well as big data and artificial intelligence platforms.
[0054] The terminal may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto. The terminal and the server may be directly or indirectly connected via wired or wireless communication, and this application does not limit this.
[0055] In combination with the above-mentioned noun introduction and application scenarios, the content quality identification method provided by this application is described, taking the application of this method in a server as an example. Figure 3 As shown, the method includes:
[0056] Step 301: Acquire target information flow content, where the target information flow content is content to be quality identified.
[0057] In the embodiment of the present application, the method of obtaining the target information flow content includes at least one of the following methods:
[0058] First, when the heat value of the information flow content reaches the required heat value, the information flow content is determined as the target information flow content for quality identification;
[0059] The heat value of the information flow content is determined by the number of times the information flow content participates in the interaction. In an illustrative manner, the heat value of the information flow content is determined according to at least one type of interaction number among the number of views, comments, likes, forwardings, and favorites of the information flow content. When the heat value is determined by multiple different types of interaction times, the multiple different types of interaction times are weighted and summed to obtain the heat value of the information flow content. For example, if the number of views of the information flow content is 12,000, the number of comments is 1,400, the number of likes is 5,000, the number of forwardings is 4,200, and the number of favorites is 200, the heat value of the information flow content is determined to be 2,320 by the number of views (weight 0.1), the number of comments (weight 0.5), and the number of likes (weight 0.3).
[0060] Second, when the information flow content is the content published by the designated user account, the information flow content is determined as the target information flow content for quality identification;
[0061] The designated user account is a user account that has been reported in the historical interaction process; or, the designated user account is a user account whose number of followers reaches the required threshold; or, the designated user account is a user account whose average popularity value of the information flow content released reaches the popularity threshold. The embodiment of the present application does not limit the selection criteria of the designated user account.
[0062] Third, when the information flow content is content marked with a specified tag, the information flow content is determined as the target information flow content for quality identification.
[0063] The designated tag is a pre-set tag that meets the popularity requirement, such as the designated tag is a tag that is in the top n positions of the popularity ranking list within the popularity time range.
[0064] The above-mentioned method for determining the target information flow content is only an illustrative example. In the embodiment of the present application, the target information flow content can also be determined by other methods, and the embodiment of the present application is not limited to this.
[0065] In some embodiments, the target information flow content is content to be pushed to the recommendation pool; or, the target information flow content is content to be published on the information flow platform after passing the quality review. That is, for the first case, the target information flow content is content with high popularity that needs to be recommended on the information flow platform; in the second case, the target information flow content is ordinary content published by the user account on the social platform, but needs to be published on a specific information flow platform after passing the quality review.
[0066] That is, the target information flow content is the information flow content that has been published by the user account and is to be recommended; or, the target information flow content is the content that is in the queue to be sent after the user account chooses to publish it.
[0067] Step 302, obtaining comment data of the target information flow content.
[0068] Comment data refers to the data generated when a comment account interacts with the target information flow content through comments. A comment account is an account that has comment permissions on the information flow platform; or an account that has comment permissions on the target information flow content and interacts with the target information flow content through comments.
[0069] Acquiring the comment data of the target information flow content refers to acquiring all the comment data received by the target information flow content, or acquiring the comment data received by the target information flow content that meets the comment requirements.
[0070] After all the comment data received by the target information flow content is obtained, the comment data is selectively filtered, or all the comment data is directly processed.
[0071] Step 303: perform intent recognition on the comment data to obtain a comment intent recognition result.
[0072] In some embodiments, the intent of the comment data is recognized through a pre-trained intent recognition model to obtain a comment intent recognition result, wherein the comment intent recognition result is used to indicate the matching relationship between the comment data and the candidate quality recognition result, and the candidate quality recognition result is used to indicate the quality of the target information flow content.
[0073] In an illustrative manner, the candidate quality recognition results are used to indicate the respective matching degrees of the target information flow content corresponding to the quality situations such as typos, discomfort, advertisements, low-quality commentary videos, incomplete content, etc.
[0074] Optionally, the comment data of the target information flow content is combined with the intention recognition results of all the comment data to obtain the comment intention recognition result of the target information flow content, wherein the matching degree of each comment data corresponding to each quality situation is accumulated, and the accumulated result is obtained as the comment intention recognition result corresponding to the target information flow content; or, the matching degree of each comment data corresponding to each quality situation is averaged to obtain the average matching degree as the comment intention recognition result corresponding to the target information flow content; or, the matching degree of each comment data corresponding to each quality situation is input into a preset function for calculation, and the calculation result is obtained as the comment intention recognition result corresponding to the target information flow content.
[0075] The above method of calculating the comment intention recognition result is only an illustrative example, and this embodiment does not limit the method of determining the comment intention recognition result.
[0076] In some embodiments, the comment data is input into an intent recognition model, the intent recognition is performed on the comment data through the intent recognition model, and the comment intent recognition result is output. The intent recognition model is a machine learning model obtained by pre-training with sample comment corpus.
[0077] In some embodiments, feature extraction and feature processing are performed on comment data through an intent recognition model to obtain comment data features, which are input into an activation function to output a matching degree between the candidate quality recognition result and the comment data as a comment intent recognition result.
[0078] Indicative, Figure 4 is a schematic diagram of the structure of an intention recognition model provided by an exemplary embodiment of the present application. Figure 4 As shown, the shared layer 410 extracts and processes the features of the vocabulary 400 in the comment data, and the specific task layer 420 classifies the features to obtain the matching degree of the comment data relative to each quality situation. For example, the probability of the comment data relative to the typo situation is 0.6, and the probability relative to the clickbait situation is 0.2.
[0079] In the embodiments of the present application, the intent recognition model is implemented as a bidirectional encoder representation from transformers (BERT) model as an example for explanation, and a 2-layer model is selected as an actual model as an example for explanation. With a small loss of accuracy, the reasoning speed is greatly improved, and it can be run on a central processing unit (CPU).
[0080] Step 304, based on the comment intention recognition result, determine the quality result of the target information flow content.
[0081] Optionally, when the comment intention recognition result is used to indicate that the target information flow content meets a certain quality condition, that is, there is a quality problem, the target information flow content is filtered; or, the target information flow content is reviewed and added to a review queue.
[0082] When the comment intent recognition result is used to indicate that the target information flow does not meet any quality conditions, the target information flow content is further processed.
[0083] In some embodiments, in response to the comment intent recognition result indicating that the matching degree of the candidate quality recognition results reaches the required matching degree, the target information flow content is marked for review, and based on the review mark, the target information flow content is pushed to the review queue for review to obtain the quality result of the target information flow content; in response to the comment intent recognition result indicating that the matching degrees of the candidate quality recognition results are all less than the required matching degree, the target information flow content is determined to be content that meets the quality requirements.
[0084] In an illustrative manner, when the comment intent recognition result indicates that the match degree of the target information flow content corresponding to the typo is 0.8, which reaches the required match degree (0.75), the target information flow content is marked for review, and the target information flow content is added to the review queue, waiting for review.
[0085] To summarize, the method provided in this embodiment obtains the comment data of the target information flow content and performs intent recognition on the comment data to obtain the intent content expressed by the comment data, thereby identifying whether there are quality problems with the target information flow content based on the intent content expressed by the comment data, and identifying the segmented quality problems that may exist in the target information flow content, thereby avoiding the problem of large analysis workload, low analysis accuracy, and low content quality of the overall recommended content caused by the need to perform detailed analysis on the specific content of the target information flow content due to segmented quality problems, thereby improving the quality of the content in the recommendation pool and improving the accuracy of content recommendations.
[0086] In an optional embodiment, the training process of the above-mentioned intent recognition model is achieved through sample comments published in the information flow content platform. Figure 5 Another exemplary embodiment of the present application provides a method for identifying content quality, which mainly involves a training method for an intent recognition model. The method is applied to a server as an example for explanation. Figure 5 As shown, the method includes:
[0087] Step 501, obtaining sample comment data, wherein the sample comment data includes content posted by an account in an information flow content platform for commenting on information flow content.
[0088] In some embodiments, the method for obtaining the sample comment data includes at least one of the following methods:
[0089] First, the sample comment data is a collection of content posted by any account in the information flow content platform to comment on the information flow content;
[0090] Second, the sample comment data is a collection of content published by a designated account in the information flow content platform for commenting on the information flow content;
[0091] Third, the sample comment data is a collection of comments posted by accounts that receive specified information flow content in the information flow content platform;
[0092] Fourth, the sample comment data is a collection of comments posted by accounts received from the information flow content released within a preset time period in the information flow content platform.
[0093] It is worth noting that the above four methods are only illustrative examples, and the embodiments of the present application do not limit the method for obtaining sample comment data.
[0094] Step 502: pre-process the sample comment data to obtain sample data.
[0095] Optionally, preprocessing of the sample comment data includes at least one of cleaning and enhancement.
[0096] Step 503: Train the intent recognition model based on the sample data until the convergence effect of the intent recognition model meets the convergence requirement.
[0097] Optionally, when using a deep neural network for NLP model training, you first need to convert the text to be processed into word vectors as neural network input. The effect of the word vector will affect the final model effect. The effect of the word vector mainly depends on the size of the training corpus. In many NLP tasks, the limited annotated corpus is not enough to train a good enough word vector. Usually, a large-scale unannotated corpus that is not related to the current task is used for word vector pre-training. Therefore, another benefit of pre-training is that it can enhance the generalization ability of the model.
[0098] In the embodiment of the present application, the key of the pre-training model includes: first, Masked Language Model (MLM) for all words; second, Next Sentence Prediction (NSP) for removing the next sentence prediction task. The following describes the above two tasks respectively:
[0099] First, for the whole word mask
[0100] By randomly masking some words (replacing them with a unified marker [MASK]), the bidirectional language model is trained by predicting these masked words, and the representation of each word is referenced to the context information. This will result in two disadvantages: (1) it will cause inconsistency between pre-training and model parameter fine-tuning, because the masked [MASK] part is invisible during fine-tuning; (2) since only some words in each batch are usually predicted, the convergence speed of the model is slower than that of a unidirectional language model, and the training time will be longer. In this embodiment, the whole word that needs to be replaced with [MASK] is replaced, such as: in the complete sentence "I like the TV series starring A star", "like", "A star", "star", "TV series" together constitute the whole word of this sentence; a small part of the whole word is randomly replaced with other words, and the others are retained. Since the encoder does not know which word needs to be predicted and which word is randomly replaced, it forces the expression of each word to refer to the context information.
[0101] Second, remove the next sentence prediction task
[0102] In order to train a model that understands the relationship between sentences, a next sentence prediction task is introduced. The training corpus for this task can be generated by extracting sentence pairs from the corpus, including two sentences A and B, where there is a 50% probability that B is the next sentence of A, and a 50% probability that B is a random sentence in the corpus. The NSP task predicts whether B is the next sentence of A. In the scenario of this embodiment, it is found during the pre-training process that the model effect does not decrease or even improves after removing the NSP task, so the strategy of removing the next sentence prediction task is adopted in this embodiment.
[0103] In some embodiments, a multi-classification model is used to output the final result and possible probability. A classification function (SoftMax function) is used as the activation function after the fully connected layer. The function of the SoftMax function is to normalize the output components corresponding to each category so that the sum of each component is 1. It can be understood that any input value can be converted into a probability. The SoftMax function is shown in the following formula 1:
[0104] Formula 1:
[0105] Where j represents the jth input vector, n represents the number of elements in the input vector, and i represents the i-th classification. represents e raised to the power of the element of the jth input vector, represents the power of e with respect to the element of the i-th input vector. Finally, we get s(x i ) represents the probability of the i-th category.
[0106] To summarize, the method provided in this embodiment obtains the comment data of the target information flow content and performs intent recognition on the comment data to obtain the intent content expressed by the comment data, thereby identifying whether there are quality problems with the target information flow content based on the intent content expressed by the comment data, and identifying the segmented quality problems that may exist in the target information flow content, thereby avoiding the problem of large analysis workload, low analysis accuracy, and low content quality of the overall recommended content caused by the need to perform detailed analysis on the specific content of the target information flow content due to segmented quality problems, thereby improving the quality of the content in the recommendation pool and improving the accuracy of content recommendations.
[0107] The method provided in this embodiment trains the intent recognition model based on the comment data posted by the account in the information flow platform as sample comment data when training the intent recognition model. Since the comments posted in the information flow platform are genuine comments posted by the account, the training accuracy and efficiency of the intent recognition model are improved.
[0108] In an optional embodiment, the sample comment data is cleaned and enhanced to obtain sample data, and the intent recognition model is trained based on the sample data. Figure 6 is a flowchart of a method for identifying content quality provided by another exemplary embodiment of the present application, and particularly relates to a method for training an intent recognition model, such as Figure 6 As shown, the method is applied to a server as an example for description, and the method includes:
[0109] Step 601, obtaining sample comment data, wherein the sample comment data includes content posted by an account in an information flow content platform for commenting on the information flow content.
[0110] Step 602: perform sample cleaning on the sample comment data based on preset cleaning rules to obtain cleaned sample data.
[0111] Optionally, the preset cleaning rules include at least one of the following rules:
[0112] First, filter the sample comment data whose first specified number of characters is less than the required number or required ratio;
[0113] Illustratively, the first specified number of characters is used to indicate the number of Chinese characters, that is, when the number of Chinese characters is less than the required number, or the number of Chinese characters is less than the required ratio, the sample comment data is filtered.
[0114] Second, filter the sample comment data that appear in the first character type and replace the second character type;
[0115] Illustratively, the first character type is used to indicate emoticons, and the second character type is used to indicate Chinese characters, then sample comment data in which emoticons and Chinese characters are replaced are filtered; or, the first character type is used to indicate simplified Chinese characters, and the second character type is used to indicate traditional Chinese characters, then sample comment data in which simplified Chinese characters and traditional Chinese characters are replaced are filtered.
[0116] Third, filter out sample comment data that contains content that is repeated more than a preset number of times;
[0117] Illustratively, when a certain word appears more than three times in the sample comment data, the sample comment data is filtered.
[0118] Fourth, filter the sample comment data whose second specified character number is greater than the limit number or the limit ratio;
[0119] Illustratively, the second designated character is used to indicate a non-Chinese character. When the number of non-Chinese characters exceeds a limit, or the proportion of non-Chinese characters exceeds a limit, the sample comment data is filtered.
[0120] Fifth, filter the sample comment data with the same first character in the content;
[0121] Indicatively, the first letter of each word in the sample comment data is extracted, and when the first letters are the same, the sample comment data is filtered.
[0122] Sixth, filter out sample comment data whose content meaning cannot be identified.
[0123] Illustratively, semantic recognition is performed on the sample comment data, and when no semantic information can be recognized, the sample comment data is filtered.
[0124] For illustration, please refer to the following table 1 for sample cleaning rules.
[0125] Table 1
[0126]
[0127] Step 603: Perform sample enhancement on the sample comment data based on preset enhancement rules to obtain sample enhanced data.
[0128] Optionally, the preset enhancement rule includes at least one of the following rules:
[0129] First, modify and adjust the sample comment data based on the preset modification method;
[0130] Indicatively, some words in the sample comment data are repeated; the order of some words is shuffled between short sentences; some stop words are added to the sample comment data; some words in the sample comment data are randomly deleted, thereby obtaining newly added sample comment data.
[0131] Second, the sample review data belonging to the first language is translated into the second language and then translated back into the first language;
[0132] Indicatively, the sample comment data in Chinese is translated into English and then translated back from English into Chinese to obtain newly added sample comment data.
[0133] Third, replace the words in the sample comment data based on the preset replacement method.
[0134] In an illustrative manner, synonyms are selected from a synonym list to replace words in the sample comment data to obtain newly added sample comment data; the words in the sample comment data are replaced with word vectors to obtain newly added sample comment data; random words in the sample comment data are replaced with unified markers to obtain newly added sample comment data.
[0135] For example, the sample enhancement rules are shown in Table 2 below.
[0136] Table 2
[0137]
[0138] Step 604: obtaining sample data based on the cleaned sample data and the enhanced sample data.
[0139] In some embodiments, only sample cleaning or only sample enhancement may be performed. In this embodiment, both sample cleaning and sample enhancement are performed as an example for explanation, and sample cleaning may be performed first, and sample enhancement may be performed on the cleaned sample data after sample cleaning; or, sample enhancement may be performed first, and sample cleaning may be performed on the enhanced sample data after sample enhancement.
[0140] Step 605: Train the intent recognition model based on the sample data until the convergence effect of the intent recognition model meets the convergence requirement.
[0141] In the embodiment of the present application, the key points of the pre-training model include: first, full-word masking; second, removing the next sentence prediction task.
[0142] To sum up, the method provided in this embodiment, when training the intent recognition model, uses the comment data posted by the account in the information flow platform as sample comment data to train the intent recognition model. Since the comments posted in the information flow platform are real comments posted by the account, the training accuracy and efficiency of the intent recognition model are improved.
[0143] Indicative, Figure 7 is a structural block diagram of a content quality identification system provided by an exemplary embodiment of the present application, such as Figure 7As shown, the functions of each functional module are described as follows.
[0144] 1. Content production end 710 and content consumption end 720: i.e. user terminal, PGC or UGC, multi-channel network (MCN) or professional user generated content (PUGC) content producer, through the mobile terminal or back-end application programming interface (API) system, provides local or photographed text and image content, video or album content, which are the main content sources of distributed content; through communication with the upstream and downstream content interface service, first obtain the upload server interface address, and then upload the local file, and can choose the matching music, filter template and text and image beautification function during the shooting process; as a consumer, communicate with the upstream and downstream content interface server 730, obtain the index information for accessing text and image or video files, and then download the corresponding streaming media file and play it through the local player; report the user's playback behavior data, freeze, loading time, playback clicks and other data during the upload and download process to the server; the interactive information of the consumer end consuming content, such as: commenting on UGC short text content, likes, forwarding, collection and other interactive information is reported through the UGC interaction and statistical reporting interface.
[0145] 2. Uplink and downlink content interface server 730: communicates directly with the content production end 710, and the content submitted from the front end directly enters the service end through the server, such as: the title of the content, publisher, summary, cover image, release time, or photographed pictures and texts, so as to store the files in the content database 740; writes the meta information of the picture and text content, such as the picture and text file size, cover image link, bit rate, file format, title, release time, author and other information into the content database; submits the uploaded files to the scheduling center server 750 for subsequent content processing and circulation.
[0146] 3. Content database 740: The core database of content. The meta information of all content released by producers is stored in the content database 740. The meta information includes file size, cover image link, bit rate, file format, title, release time, author, video file size, video format, whether it is original or first released, and also includes the classification of content during the manual review process (including first-, second-, and third-level classification and label information. For example, for an article explaining mobile phones, the first-level classification is technology, the second-level classification is smart phones, the third-level classification is domestic mobile phones, and the label information is the brand and model of the mobile phone); the information in the content database 740 will be read during the manual review process, and the results and status of the manual review will also be transmitted back to the content database 740; the dispatch center 750 will write the processing results of the content into the content database 740, and completely repeated content will not be manually processed twice; the meta information of the content will be read from the content database 740 when the label is extracted later.
[0147] 4. Scheduling center 750: responsible for the entire scheduling process of content flow, receiving content added to the library through the upstream and downstream content interface servers 730, and then obtaining the metadata of the content from the content database 740; scheduling the manual review system 760 and the machine processing system to control the order and priority of scheduling; the content is enabled through the manual review system 760, and then the page is directly displayed to the terminal content consumer 720 through the content distribution export service 713 (usually a recommendation engine or search engine or operation), that is, the content index information obtained by the consumer end.
[0148] 5. Manual review system 760: It needs to read the original information of the graphic content itself in the content database. It is usually a complex system developed based on a web database. It performs a preliminary filtering of the characteristics of the graphic content manually; based on the preliminary review, it conducts a secondary review of the content, mainly to classify and label or confirm the content; it receives the review tasks synchronized by the scheduling center 750 and also receives the low-quality content screened out by the review queue service 714 through the comment intention recognition service 711. After the review of this part of the content is passed, it will be directly removed from the shelves, and then the similar content enabled online will be directly removed from the shelves by calling the duplicate similar content recall service.
[0149] 6. Content deduplication service 770: Provides deduplication services for text, video and atlas. It vectorizes text, video and atlas, creates vector indexes, and determines the degree of similarity by comparing the distances between vectors. For text and image content, the text and image are usually vectorized using BERT or SimHash algorithm. Before all main text deduplication tasks, the title short text is deduplicated.
[0150] 7. UGC interaction and statistical reporting interface 780: communicates with content consumption end 720, receives reported content comment UGC short text, likes, reposts, favorites and other interactive information, and writes them into interactive content database 790 as a basic data source for subsequent sample processing and cleaning, and enhancement; accepts comments generated by terminal users, transmits the content to intent recognition service 711, performs intent recognition on the comment content through intent recognition service 711, and performs fine-grained prediction of the quality dimension of the original content of the comment content.
[0151] 8. Interactive content database 790 and comment sample database 700: Save the original comment data generated by the terminal users, including the unique mark of the content corresponding to the comment, the time when the comment was posted, the user identification (Identity, ID) of the comment, and the actual content of the comment; perform original processing on the comment data according to the sample cleaning and sample enhancement methods, and save the samples used for training after processing in the comment sample database 700, providing the original sample data service for training the user comment intention recognition model.
[0152] 9. Intent recognition service 711: Service-oriented intent recognition model 712 receives comment information synchronized with the UGC interaction and statistical reporting interface, and then determines the detailed sub-category of the quality of the corresponding content through the sentiment tendency of the intent recognition service 711; pushes the low-quality content that meets the threshold condition to the review queue service 714 or directly filters and removes the corresponding low-quality content.
[0153] 10. Intent recognition model 712: read the sample data in the comment sample database 700, and build a corresponding comment intent recognition model according to the algorithm model.
[0154] Figure 8 is a structural block diagram of a content quality identification device provided by an exemplary embodiment of the present application, such as Figure 8 As shown, the device comprises:
[0155] An acquisition module 810 is used to acquire target information flow content, where the target information flow content is content to be quality identified;
[0156] The acquisition module 810 is further used to acquire comment data of the target information flow content, wherein the comment data is data generated when a comment account interacts with the target information flow content through commenting;
[0157] An identification module 820 is used to perform intent identification on the comment data to obtain a comment intent identification result, wherein the comment intent identification result is used to indicate a matching relationship between the comment data and a candidate quality identification result, and the candidate quality identification result is used to indicate the quality of the target information flow content;
[0158] The determination module 830 is used to determine the quality result of the target information flow content based on the comment intention recognition result.
[0159] In an optional embodiment, if Fig. 9 As shown, the identification module 820 includes:
[0160] An input unit 821, used for inputting the comment data into an intention recognition model;
[0161] The output unit 822 is used to perform intent recognition on the comment data through the intent recognition model, and output the comment intent recognition result. The intent recognition model is a machine learning model obtained by pre-training with sample comment corpus.
[0162] In an optional embodiment, the output unit 822 is also used to perform feature extraction and feature processing on the comment data through the intention recognition model to obtain comment data features; input the comment data features into an activation function, and output the matching degree between the candidate quality recognition result and the comment data as the comment intention recognition result.
[0163] In an optional embodiment, the acquisition module 810 is further used to acquire sample comment data, wherein the sample comment data includes content posted by an account in the information flow content platform for commenting on the information flow content;
[0164] The processing module 840 is used to pre-process the sample comment data to obtain sample data;
[0165] The training module 850 is used to train the intention recognition model based on the sample data until the convergence effect of the intention recognition model meets the convergence requirement.
[0166] In an optional embodiment, the processing module 840 is further used to perform sample cleaning on the sample comment data based on a preset cleaning rule to obtain cleaned sample data;
[0167] The processing module 840 is further used to perform sample enhancement on the sample comment data based on a preset enhancement rule to obtain enhanced sample data;
[0168] The processing module 840 is further configured to obtain the sample data based on the cleaned sample data and the enhanced sample data.
[0169] In an optional embodiment, the preset cleaning rule includes at least one of the following rules:
[0170] Filter the sample comment data whose first specified character number is less than the required number or required ratio;
[0171] Filter the sample comment data that appears with the first character type and replace it with the second character type;
[0172] Filter sample comment data that contains content that is repeated more than a preset number of times;
[0173] Filter the sample comment data whose second specified character number is greater than a limited number or a limited ratio;
[0174] Filter sample comment data with the same first character in the content;
[0175] Filter sample comment data whose content cannot be identified.
[0176] In an optional embodiment, the preset enhancement rule includes at least one of the following rules:
[0177] Modify and adjust the sample comment data based on a preset modification method;
[0178] After translating the sample review data belonging to the first language into the second language, the sample review data is translated back into the first language;
[0179] The words in the sample comment data are replaced based on a preset replacement method.
[0180] In an optional embodiment, the determination module 830 is also used to mark the target information flow content for review in response to the comment intention recognition result indicating that there are candidate quality recognition results whose matching degree reaches the required matching degree; based on the review mark, the target information flow content is pushed to the review queue for review to obtain the quality result of the target information flow content.
[0181] In an optional embodiment, the determination module 830 is further used to determine that the target information flow content is content that meets the quality requirements in response to the comment intention recognition result indicating that the matching degrees of the candidate quality recognition results are all less than the required matching degree.
[0182] To summarize, the device provided in this embodiment obtains comment data of the target information stream content and performs intent recognition on the comment data to obtain the intent content expressed by the comment data, thereby identifying whether there are quality problems with the target information stream content based on the intent content expressed by the comment data, and identifying segmented quality problems that may exist in the target information stream content, thereby avoiding the problem of large analysis workload, low analysis accuracy, and low content quality of the overall recommended content caused by the need to perform detailed analysis of the specific content of the target information stream due to segmented quality problems, thereby improving the quality of the content in the recommendation pool and improving the accuracy of content recommendations.
[0183] It should be noted that the content quality identification device provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the content quality identification device provided in the above embodiment and the content quality identification method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0184] Fig.10 The following is a schematic diagram showing the structure of a server provided by an exemplary embodiment of the present application. Specifically:
[0185] The server 1000 includes a central processing unit (CPU) 1001, a system memory 1004 including a random access memory (RAM) 1002 and a read only memory (ROM) 1003, and a system bus 1005 connecting the system memory 1004 and the central processing unit 1001. The server 1000 also includes a mass storage device 1006 for storing an operating system 1013, application programs 1014, and other program modules 1015.
[0186] The mass storage device 1006 is connected to the central processing unit 1001 through a mass storage controller (not shown) connected to the system bus 1005. The mass storage device 1006 and its associated computer readable media provide non-volatile storage for the server 1000. That is, the mass storage device 1006 may include a computer readable medium (not shown) such as a hard disk or a compact disc read only memory (CD-ROM) drive.
[0187] Without loss of generality, computer-readable media may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, Erasable Programmable Read Only Memory (EPROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other solid-state storage technologies, CD-ROM, Digital Versatile Disc (DVD) or other optical storage, cassettes, tapes, disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media are not limited to the above. The above-mentioned system memory 1004 and mass storage device 1006 can be collectively referred to as memory.
[0188] According to various embodiments of the present application, the server 1000 can also be connected to a remote computer on the network through a network such as the Internet. That is, the server 1000 can be connected to the network 1012 through the network interface unit 1011 connected to the system bus 1005, or the network interface unit 1011 can be used to connect to other types of networks or remote computer systems (not shown).
[0189] The above-mentioned memory also includes one or more programs, and the one or more programs are stored in the memory and configured to be executed by the CPU.
[0190] An embodiment of the present application also provides a computer device, which includes a processor and a memory, in which at least one instruction, at least one program, a code set or an instruction set is stored, and the at least one instruction, at least one program, a code set or an instruction set is loaded and executed by the processor to implement the content quality identification method provided by the above-mentioned method embodiments.
[0191] An embodiment of the present application also provides a computer-readable storage medium, on which is stored at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the content quality identification method provided by the above-mentioned method embodiments.
[0192] The embodiments of the present application also provide a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the content quality identification method described in any of the above embodiments.
[0193] Optionally, the computer readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a solid state drive (SSD), or an optical disk. Among them, the random access memory may include a resistance random access memory (ReRAM) and a dynamic random access memory (DRAM). The serial numbers of the above embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.
[0194] Those skilled in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or by a program to instruct the relevant hardware to complete, and the program can be stored in a computer-readable storage medium, and the above-mentioned storage medium can be a read-only memory, a disk or an optical disk, etc. The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for identifying content quality, characterized in that: The method comprises: Acquire target information flow content, where the target information flow content is content to be quality identified; Performing preliminary review and filtering of the characteristics of the target information flow content based on a manual review system; Based on the preliminary review, obtaining comment data of the target information flow content, wherein the comment data is data generated when the comment account interacts with the target information flow content through commenting; The comment data is input into an intention recognition model, and for each comment data, the intention of the comment data is recognized through the intention recognition model to obtain the intention recognition result of the comment data; the matching degree of each quality situation corresponding to each comment data is accumulated, and the accumulated result is obtained as the comment intention recognition result corresponding to the target information flow content; or, the matching degree of each quality situation corresponding to each comment data is averaged, and the average matching degree is obtained as the comment intention recognition result corresponding to the target information flow content; or, the matching degree of each quality situation corresponding to each comment data is input into a preset function for calculation, and the calculation result is obtained as the comment intention recognition result corresponding to the target information flow content; the comment intention recognition result is obtained through the output of the intention recognition model; The intention recognition model is a machine learning model obtained by pre-training with sample comment corpus, the comment intention recognition result is used to indicate the matching relationship between the comment data and the candidate quality recognition result, and the candidate quality recognition result is used to indicate the matching degree of the target information flow content corresponding to at least one of the following quality conditions: typos, discomfort, advertisements, low-quality commentary videos, and incomplete content; wherein, in the process of pre-training the intention recognition model, some words in the full words corresponding to the sample comment corpus input into the intention recognition model are randomly replaced with other words; In response to the comment intention recognition result indicating that there is a candidate quality recognition result whose matching degree reaches the required matching degree, it is determined that the target information flow content meets the quality situation corresponding to the matching degree, and the target information flow content is marked for review; based on the review mark, the target information flow content is pushed to the review queue for review by the manual review system to determine the quality result of the target information flow content; when the manual review system has reviewed and passed the target information flow content, the target information flow content is removed from the shelves, and similar content enabled online is removed from the shelves by calling a duplicate similar content recall service; The sample data used to train the intention recognition model is obtained by processing the sample comment data according to the preset cleaning rules and the preset enhancement rules; The preset cleaning rules include at least one of the following rules: Filtering sample review data whose first specified number of characters is less than a required number or a required ratio, wherein the first specified number of characters is used to indicate the number of Chinese characters; Filter the sample comment data that appears by replacing the first character type with the second character type; the first character type is used to indicate emoticons, and the second character type is used to indicate Chinese characters; or the first character type is used to indicate simplified Chinese characters, and the second character type is used to indicate traditional Chinese characters; Filter sample comment data that contains content that is repeated more than a preset number of times; Filtering sample comment data in which the number of second designated characters is greater than a limited number or a limited ratio, wherein the second designated characters are used to indicate non-Chinese characters; Filter the sample comment data with the same first character in the content; Filter sample comment data whose content cannot be identified; The preset enhancement rule includes at least one of the following rules: Modifying and adjusting the sample comment data based on a preset modification method, wherein the preset modification method includes at least one of the following: repeating some words in the sample comment data, shuffling the order of some words between short sentences, adding some stop words to the sample comment data, and randomly deleting some words in the sample comment data; After translating the sample review data belonging to the first language into the second language, the sample review data is translated back into the first language; The vocabulary in the sample comment data is replaced based on a preset replacement method, and the preset replacement method includes at least one of the following: selecting synonyms from a synonym table to replace the vocabulary in the sample comment data, replacing the vocabulary in the sample comment data with word vectors, and replacing random vocabulary in the sample comment data with unified markers.
2. The method according to claim 1, characterized in that The method further comprises: Extracting and processing features of the comment data using the intention recognition model to obtain comment data features; The comment data features are input into an activation function, and the matching degree between the candidate quality recognition result and the comment data is output as the comment intention recognition result.
3. The method according to claim 1, characterized in that The method further comprises: Acquire the sample comment data, wherein the sample comment data includes content posted by an account in the information flow content platform for commenting on the information flow content; Preprocessing the sample comment data to obtain the sample data; The intent recognition model is trained based on the sample data until the convergence effect of the intent recognition model meets the convergence requirement.
4. The method according to claim 3, characterized in that The preprocessing of the sample comment data to obtain the sample data includes: Performing sample cleaning on the sample comment data based on the preset cleaning rule to obtain cleaned sample data; Performing sample enhancement on the sample comment data based on the preset enhancement rule to obtain enhanced sample data; The sample data is obtained based on the cleaned sample data and the enhanced sample data.
5. The method according to claim 1, characterized in that The method further comprises: In response to the comment intention recognition result indicating that the matching degrees of the candidate quality recognition results are all less than the required matching degree, the target information flow content is determined to be content that meets the quality requirements.
6. A device for identifying content quality, characterized in that: The device comprises: An acquisition module, used to acquire target information flow content, wherein the target information flow content is content to be quality identified; A module for performing the following steps: preliminary review and filtering of the characteristics of the target information flow content based on a manual review system; The acquisition module is further used to acquire comment data of the target information flow content based on the preliminary review, wherein the comment data is data generated when the comment account interacts with the target information flow content through commenting; An input unit, used for inputting the comment data into an intention recognition model; An output unit is used to perform intent recognition on each comment data through the intention recognition model to obtain the intention recognition result of the comment data; accumulate the matching degree of each quality situation corresponding to each comment data, and obtain the accumulated result as the comment intention recognition result corresponding to the target information flow content; or, average the matching degree of each quality situation corresponding to each comment data, and obtain the average matching degree as the comment intention recognition result corresponding to the target information flow content; or, input a preset function to calculate the matching degree of each quality situation corresponding to each comment data, and obtain the calculation result as the comment intention recognition result corresponding to the target information flow content; the comment intention recognition result is obtained by outputting the intention recognition model; The intention recognition model is a machine learning model obtained by pre-training with sample comment corpus, the comment intention recognition result is used to indicate the matching relationship between the comment data and the candidate quality recognition result, and the candidate quality recognition result is used to indicate the matching degree of the target information flow content corresponding to at least one of the following quality conditions: typos, discomfort, advertisements, low-quality commentary videos, and incomplete content; wherein, in the process of pre-training the intention recognition model, some words in the full words corresponding to the sample comment corpus input into the intention recognition model are randomly replaced with other words; A determination module is used to determine that the target information flow content meets the quality situation corresponding to the matching degree in response to the comment intention recognition result indicating that there is a candidate quality recognition result whose matching degree reaches the required matching degree, and to mark the target information flow content for review; based on the review mark, the target information flow content is pushed to the review queue for review by the manual review system to determine the quality result of the target information flow content; when the manual review system has reviewed and passed the target information flow content, the target information flow content is removed from the shelves, and similar content enabled online is removed from the shelves by calling a duplicate similar content recall service; The sample data used to train the intention recognition model is obtained by processing the sample comment data according to the preset cleaning rules and the preset enhancement rules; The preset cleaning rules include at least one of the following rules: Filtering sample review data whose first specified number of characters is less than a required number or a required ratio, wherein the first specified number of characters is used to indicate the number of Chinese characters; Filter the sample comment data that appears by replacing the first character type with the second character type; the first character type is used to indicate emoticons, and the second character type is used to indicate Chinese characters; or the first character type is used to indicate simplified Chinese characters, and the second character type is used to indicate traditional Chinese characters; Filter sample comment data that contains content that is repeated more than a preset number of times; Filtering sample comment data in which the number of second designated characters is greater than a limited number or a limited ratio, wherein the second designated characters are used to indicate non-Chinese characters; Filter the sample comment data with the same first character in the content; Filter sample comment data whose content cannot be identified; The preset enhancement rule includes at least one of the following rules: Modifying and adjusting the sample comment data based on a preset modification method, wherein the preset modification method includes at least one of the following: repeating some words in the sample comment data, shuffling the order of some words between short sentences, adding some stop words to the sample comment data, and randomly deleting some words in the sample comment data; After translating the sample review data belonging to the first language into the second language, the sample review data is translated back into the first language; The vocabulary in the sample comment data is replaced based on a preset replacement method, and the preset replacement method includes at least one of the following: selecting synonyms from a synonym table to replace the vocabulary in the sample comment data, replacing the vocabulary in the sample comment data with word vectors, and replacing random vocabulary in the sample comment data with unified markers.
7. The device according to claim 6, characterized in that The output unit is further used to extract and process the comment data through the intention recognition model to obtain comment data features; The comment data features are input into an activation function, and the matching degree between the candidate quality recognition result and the comment data is output as the comment intention recognition result.
8. The device according to claim 6, characterized in that The device also includes: The acquisition module is further used to acquire the sample comment data, wherein the sample comment data includes content posted by an account in the information flow content platform for commenting on the information flow content; A processing module, used for preprocessing the sample comment data to obtain the sample data; A training module is used to train the intent recognition model based on the sample data until the convergence effect of the intent recognition model meets the convergence requirement.
9. The device according to claim 8, characterized in that The processing module is further used for: Performing sample cleaning on the sample comment data based on the preset cleaning rule to obtain cleaned sample data; Performing sample enhancement on the sample comment data based on the preset enhancement rule to obtain enhanced sample data; The sample data is obtained based on the cleaned sample data and the enhanced sample data.
10. The device according to claim 6, characterized in that The determining module is further used for: In response to the comment intention recognition result indicating that the matching degrees of the candidate quality recognition results are all less than the required matching degree, the target information flow content is determined to be content that meets the quality requirements.
11. A computer device, characterized in that: The computer device includes a processor and a memory, wherein the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the content quality identification method according to any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the content quality identification method as claimed in any one of claims 1 to 5.
13. A computer program product, characterized in that The invention comprises a computer program or an instruction, which, when executed by a processor, implements the method for identifying content quality as claimed in any one of claims 1 to 5.
Citation Information
Patent Citations
Recommended content processing method and device and emotion attribute determining method and device
CN110795944A
Game comment processing method and related equipment
CN111104512A
Text processing method and device, electronic equipment and computer readable storage medium
CN111291551A
Store food quality information collection method and device and electronic equipment
CN111738541A
Content distribution method and device, electronic equipment and storage medium
CN111885399A
