Article feature generation method, device, equipment and storage medium
By analyzing the article comment data and using the feature classifier of the feature evaluation dimension to determine the distribution of comments and expand the article features, the problem of incomplete description of article portraits in the existing technology is solved, and a more accurate and comprehensive description of article features is achieved.
Patent Information
- Application Number
- CN202011422696.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-08
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2040-12-08
AI Technical Summary
The existing technology is difficult to comprehensively depict the portrait of an article, and the features extracted only by relying on the content of the article are insufficient and cannot accurately reflect the multi-faceted characteristics of the article.
By analyzing the comment data of the article, the feature classifier of the feature evaluation dimension is used to determine the distribution of comments and expand the article features to describe the article portrait more comprehensively.
It achieves a more accurate reflection of article characteristics from the user's perspective, makes up for the problem of insufficient feature extraction based only on article content, and improves the accuracy and comprehensiveness of article portraits, especially when there is little graphic information in the article.
Smart Images

Figure CN114626356B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method, device, equipment and storage medium for generating article features. Background Art
[0002] Article portrait refers to the characteristic description of an article. Based on the article portrait, operations such as article recommendation and recall can be achieved.
[0003] At present, the features of an article are mainly obtained by extracting features from the content of the article. For example, the features of an article can be determined by analyzing the topic, classification, and keywords of the article. However, the content of the article only describes the article portrait from one aspect. In order to more comprehensively portray the article portrait, it is necessary to determine the article features from other aspects. Summary of the invention
[0004] In view of this, the present application provides an article feature generation method, device, equipment and storage medium, which can extract article features of an article based on the comment data of the article, thereby expanding the article features used to describe the article portrait.
[0005] To achieve the above objectives, this application provides the following technical solutions:
[0006] On the one hand, the present application provides a method for generating article features, comprising:
[0007] Get comments on the article;
[0008] Input the comments into the feature classifier of at least one feature evaluation dimension respectively, and obtain the feature type of the comments in each feature evaluation dimension respectively, wherein each feature evaluation dimension includes multiple different feature types, and the feature classifier of each feature evaluation dimension is obtained by training with multiple article review samples annotated with the feature type in the feature evaluation dimension;
[0009] For each feature evaluation dimension, based on at least one existing comment on the article and the feature type of each comment on each feature evaluation dimension, determine the distribution of comments on the article on each feature type of the feature evaluation dimension;
[0010] The distribution of the comments on the article in the at least one feature evaluation dimension is stored as the article feature of the article.
[0011] In a possible implementation, storing the distribution of comments on the article in the at least one feature evaluation dimension as the article feature of the article includes:
[0012] For each feature type of each feature evaluation dimension, determine a confidence interval corresponding to the distribution of comments on the article on the feature type based on the total number of at least one existing comment on the article and the distribution of comments on the article on the feature type of the feature evaluation dimension, and determine the lower limit of the confidence interval as the distribution score of the article on the feature type;
[0013] The distribution scores of the feature types corresponding to the article in the at least one feature evaluation dimension are stored as article features of the article.
[0014] In yet another possible implementation, storing the distribution scores of each feature type corresponding to the article on the at least one feature evaluation dimension as the article feature of the article includes:
[0015] For each feature type of each feature evaluation dimension, standardize the distribution score of the article on the feature type to obtain the standardized distribution score of the article on the feature type;
[0016] The standardized distribution scores of the feature types corresponding to the article in the at least one feature evaluation dimension are stored as article features of the article.
[0017] On the other hand, the present application also provides an article feature generation device, comprising:
[0018] A comment obtaining unit, used to obtain comments on articles;
[0019] A comment analysis unit, used to input the comments into a feature classifier of at least one feature evaluation dimension, respectively, to obtain the feature type of the comments in each feature evaluation dimension, wherein each feature evaluation dimension includes a plurality of different feature types, and the feature classifier of each feature evaluation dimension is trained using a plurality of article comment samples annotated with the feature type in the feature evaluation dimension;
[0020] A distribution determination unit, for determining, for each feature evaluation dimension, a distribution of comments on the article on each feature type of the feature evaluation dimension according to at least one existing comment on the article and the feature type of each comment on each feature evaluation dimension;
[0021] The feature generating unit is used to store the distribution of the comments of the article in the at least one feature evaluation dimension as the article feature of the article.
[0022] On the other hand, the present application also provides a computer device, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the article feature generation method as described above.
[0023] On the other hand, the present application also provides a computer-readable storage medium, which stores 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 article feature generation method as described in any of the above items.
[0024] From the above content, it can be seen that after obtaining the comments of the article, this application will determine the feature type of the comment in at least one feature evaluation dimension. On this basis, combined with the feature types of the existing comments of the article in each feature evaluation dimension, the distribution of comments on the article in each feature type corresponding to each feature evaluation dimension can be obtained, and the distribution of comments corresponding to the article in this feature evaluation dimension can objectively reflect the characteristics of the article in this feature evaluation dimension from the user's perspective. Therefore, the distribution of comments on each feature type in the feature evaluation dimension of the article can characterize the characteristics of the article, thereby realizing the determination of the article's characteristics in combination with the comments of the article, which is conducive to expanding the article features in the article portrait. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] 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 merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0026] Figure 1 A schematic diagram of a system architecture applicable to the present application is shown;
[0027] Figure 2 A schematic diagram showing a flow chart of an embodiment of a method for generating article features provided by the present application;
[0028] Figure 3 A schematic diagram showing the distribution of comments on articles in this application on various feature types of a feature evaluation dimension;
[0029] Figure 4 The metadata and feature evaluation dimensions involved in analyzing the features of the comments in this application are shown;
[0030] Figure 5A schematic diagram showing a flow chart of another embodiment of the article feature generation method provided by the present application;
[0031] Figure 6 A schematic diagram showing the comparison between the distribution scores and standardized scores of different articles on a certain feature type;
[0032] Figure 7 A schematic diagram of the process of generating article features of the present application in an application scenario;
[0033] Figure 8 A schematic diagram showing the distribution of the proportion of articles in the feature types of each feature evaluation dimension;
[0034] Fig. 9 A schematic diagram showing a composition structure of the article feature generating device of the present application is shown;
[0035] Fig.10 A schematic diagram of the composition structure of a computer device provided by the present application is shown. DETAILED DESCRIPTION
[0036] The solution of this application is applicable to determining the article portrait of an article in scenarios such as article recommendation and recall. In this application, article features describing the article portrait are determined based on the comments of the article, which is conducive to combining the article content and article comments to more comprehensively and accurately portray the article portrait of the article.
[0037] The solution of the present application can be applied to a computer device, which can be a server in an article service platform for article management such as article push or recall, or a single computer device other than the server, or a computer device in a data processing platform. The data processing platform can be a cluster composed of multiple servers or a cloud platform, etc.
[0038] To facilitate understanding, the following first introduces a system architecture of a scenario to which the solution of the present application is applicable.
[0039] like Figure 1 As shown, it shows a schematic diagram of the composition structure of a system architecture applicable to the present application.
[0040] exist Figure 1 The system architecture includes: an article service platform 10 and at least one client 20.
[0041] The article service platform 10 may be any platform that can provide article access services, for example, the article service platform may be a reading platform, a paper management platform or an online media platform.
[0042] The article service platform 10 may include at least one server 101 and at least one data processing device 102 .
[0043] In this scenario, the client 20 may send an article acquisition request to the server 101 , such as requesting to access (eg, read or browse) a certain article, or requesting to download a certain article.
[0044] The server 101 may receive an article acquisition request sent by a client and return the article data to the client.
[0045] At the same time, the server can obtain the comments made by the client on the article. At the same time, the server can also transmit the obtained comments on the article to the data processing device 102.
[0046] The data processing device 102 may determine article features of the article based on the obtained comments of the article.
[0047] In an embodiment of the present application, the data processing device can combine artificial intelligence technology to perform data analysis during the process of processing article comments.
[0048] Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.
[0049] 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.
[0050] The artificial intelligence technology collected and used in this application may involve at least one or two of natural language processing and machine learning.
[0051] Among them, 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.
[0052] Machine Learning (ML) is a multi-disciplinary subject that involves 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 self-learning.
[0053] The specific content of the data processing device determining the article features of the article in combination with artificial intelligence technology will be described in detail later in conjunction with the embodiments.
[0054] It is understandable that after the data processing device determines the article features based on the comments of the article, the article features can also be transmitted to the server so that the server can perform one or more operations such as article recommendation and article recall based on the article features.
[0055] It should be noted that this embodiment is described by taking the computing device of a separate device of the data processing device in the article service platform as an example. In practical applications, the data processing device can also be a computer device or a computing node in the data processing device that is set outside the article service platform and can provide article feature analysis for different platforms. In this case, the data processing device can obtain the comment data of the article provided by the server or database of the article service platform through the network, and return the determined article features to the server of the article service platform. The principle is similar and will not be repeated here.
[0056] Based on the above, the article feature generation method of this application is introduced below in conjunction with the flowchart.
[0057] like Figure 2 As shown, it shows a flow chart of an embodiment of an article feature generation method of the present application, and this embodiment can be applied to a computer device or a data processing platform.
[0058] The method of this embodiment may include:
[0059] S201, obtain comments on the article.
[0060] Article comments refer to the evaluation content expressed by users on the article. The specific form of article comments can be one or more of text, image or multi-frame image group.
[0061] For example, a user accesses an article through a browser or application and comments on the article.
[0062] For example, after the user displays the article through the browser, the comment of the article can be text or emoticons entered by the user in the specific comment area corresponding to the article. For example, the comment of the article can be "This article is well written", "This article is not true" or "I don't like it" and so on.
[0063] Correspondingly, the article publishing platform, such as the aforementioned article service platform, obtains the comments input by the user on the article and provides them to the computer device or data processing platform.
[0064] S202, inputting the comments into at least one feature classifier of different feature evaluation dimensions respectively, and obtaining the feature type of the comments in each feature evaluation dimension respectively.
[0065] In this application, for each comment on the article, it is necessary to analyze the comment from at least one different feature evaluation dimension. Each feature evaluation dimension is a dimension for evaluating the characteristics of the article. Each feature evaluation dimension can be divided into multiple feature types. By analyzing the specific feature type of the comment on the feature evaluation dimension, the feature status of the article reflected by the comment on the feature evaluation dimension can be obtained.
[0066] For example, the feature evaluation dimension may be an evaluation dimension set from the perspective of whether the article is a low-quality article, whether there is negative feedback, or the user's emotional inclination towards the article.
[0067] Accordingly, in a possible implementation, the at least one feature evaluation dimension of the present application may include any one or more of the following:
[0068] At least one feature evaluation dimension that belongs to analyzing low-quality features;
[0069] At least one characteristic evaluation dimension that is used to analyze emotional tendency characteristics;
[0070] At least one characteristic evaluation dimension that belongs to the analysis of negative feedback characteristics.
[0071] Among them, low-quality features refer to the characteristics of low-quality articles exhibited by the article.
[0072] It is understandable that there are multiple angles to analyze whether an article is a low-quality article. Therefore, there are also multiple feature evaluation dimensions for analyzing low-quality features. For example, whether an article is a low-quality article can be expressed from dimensions such as whether the article contains or contains advertisements, abusive content, vulgar content, or fraudulent likes. Accordingly, the low-quality features that need to be analyzed for article comments can be analyzed from multiple feature evaluation dimensions such as advertisement identification, abusive identification, vulgar identification, and fraudulent likes identification.
[0073] Correspondingly, the sentiment tendency feature can be analyzed by multiple feature evaluation dimensions, such as the sentiment tendency expressed by the comment, the attitude tendency towards the article, and the attitude tendency of the comment as a child comment towards its parent comment. Among them, the sentiment tendency can be divided into: positive, negative and neutral. The attitude tendency can be divided into like and dislike tendencies. The attitude tendency of the child comment towards the parent comment can be: the like or dislike tendency expressed by the child comment towards the parent comment.
[0074] Negative feedback features can be used as a feature evaluation dimension, which can be divided into: whether there is negative feedback, negative feedback on the article, negative feedback on the author, and other negative feedback.
[0075] In this application, for each feature evaluation dimension, a feature classifier corresponding to the feature evaluation dimension is pre-trained, and the feature classifier is used to determine which feature type of the comment belongs to the feature evaluation dimension. For each feature evaluation dimension, the feature classifier of the feature evaluation dimension can be trained using multiple article comment samples labeled with the feature type on the feature evaluation dimension. Among them, the article comment samples are comments on article samples used as training samples, and there can be multiple articles and comments on the articles as samples.
[0076] For example, with respect to the feature evaluation dimension of sentiment tendency, since sentiment tendency is divided into three feature types: positive, negative, and neutral, the article comment samples required to train the feature classifier of the sentiment tendency may include article comment samples labeled positively, article comment samples labeled negatively, and article comment samples labeled neutrally.
[0077] In an embodiment of the present application, for each feature evaluation dimension, the feature classifier can be trained by a neural network model or a machine learning model, etc., without limitation. As an optional method, in order to more accurately analyze and evaluate the feature type in the feature evaluation dimension, the feature classification model of the present application can be composed of a bidirectional encoder representation (Bidirectional Encoder Representations from Transformers, BERT) model based on a transformer and a classification layer. The classification layer can realize the output of the feature type, such as the classification layer can be composed of a fully connected network and a normalized function softmax layer.
[0078] S203, for each feature evaluation dimension, based on at least one existing comment on the article and the feature type of each comment on each feature evaluation dimension, determine the distribution of comments on the article on each feature type of the feature evaluation dimension.
[0079] The at least one comment on the article is a comment currently obtained on the article.
[0080] It is understandable that for each comment of the article, the comment distribution of the comment on each feature type of the feature evaluation dimension has been determined through the above step S202. On this basis, for each feature evaluation dimension, the distribution of at least one comment of the article on each feature type of the feature evaluation dimension, i.e., the comment distribution, can be counted.
[0081] It can be understood that, for any feature evaluation dimension, the comment distribution can reflect the proportion of comments on the article in each feature type of the feature evaluation dimension.
[0082] In practical applications, the comment distribution can be the proportion of comments corresponding to each feature type; or it can include: the total number of comments on the article and the number of comments on each feature type, so as to reflect the corresponding comment proportion based on the total number and the number of comments on each feature type.
[0083] For example, assuming that there are 1,000 comments on an article, and for the characteristic evaluation dimension of sentiment tendency, there are 200 comments with positive sentiment tendencies, 600 comments with negative sentiment tendencies, and 200 comments with neutral sentiment tendencies. Then, in the characteristic evaluation dimension of sentiment tendency, the proportion of comments with positive sentiment tendencies is 0.2, the proportion of comments with negative sentiment tendencies is 0.6, and the proportion of comments with neutral sentiment tendencies is 0.2.
[0084] S204, storing the distribution of comments on the article in different feature evaluation dimensions as article features of the article.
[0085] For example, the distribution of comments on each feature evaluation dimension can be stored as a dimensional feature in the article portrait of the article.
[0086] It is understandable that in order to allow users to more intuitively see the distribution of comments on each article in the article service platform on different feature evaluation dimensions, the present application can also construct a comment distribution map corresponding to each feature evaluation dimension based on the distribution of comments on each feature type of the article in the feature evaluation dimension.
[0087] For example, taking the characteristic evaluation dimension of sentiment tendency as an example, after determining the proportion of positive, negative and neutral comments on the article, we can use Figure 3 The pie chart and other graphic forms shown show the proportion of each feature type of the article in the sentiment tendency. Figure 3 You can intuitively see the proportion of positive, neutral and negative comments on the article and their relationship.
[0088] Correspondingly, the comment distribution graph of the article in each feature evaluation dimension can be stored as the article feature of the article.
[0089] As an optional method, the present application can also determine the content features of the article based on the content of the article. On this basis, the content features of the article and the distribution of comments on each feature evaluation dimension can be stored as article features that describe the article portrait.
[0090] It is understandable that the distribution of comments on each feature evaluation dimension of an article is the characteristic performance of the article on the feature evaluation dimension analyzed from the perspective of the article comments. Therefore, the distribution of comments on each feature evaluation dimension of an article as the article feature can effectively make up for the defect that the article features are incomplete or inaccurate due to determining the article features based solely on the article content. In particular, when there is less text and image information in an article, combining the comments of the article can more accurately obtain information reflecting the characteristics of the article quality.
[0091] At the same time, by determining the article features based on the comments on the article, the article features can be described from the user's perspective, so that the article features integrate the public opinion tendencies of the article comments, which is more conducive to the article service platform to accurately recall some low-quality or user-disgusted articles.
[0092] It is understandable that after step S204, the present application may also determine whether the article meets the recall conditions in combination with the article features, and if so, the article will be recalled.
[0093] It is understandable that in this embodiment, after the article is published, there may be continuous users reading and commenting on the article. Therefore, in order to determine the features of the article in a timely manner and reduce the amount of data processing, the present application can analyze the comments of the article from the multiple feature evaluation dimensions after obtaining the comments of the article, that is, execute step S102. At the same time, the present application can perform the above S103 and S104 processing on all the comments of the article currently obtained at a set time interval, such as one hour, to continuously update the article features of the article.
[0094] From the above content, it can be seen that after obtaining the comments of the article, this application will determine the feature type of the comment in at least one feature evaluation dimension. On this basis, combined with the feature types of the existing comments of the article in each feature evaluation dimension, the distribution of comments on the article in each feature type corresponding to each feature evaluation dimension can be obtained, and the distribution of comments corresponding to the article in this feature evaluation dimension can objectively reflect the characteristics of the article in this feature evaluation dimension from the user's perspective. Therefore, the distribution of comments on each feature type in the feature evaluation dimension of the article can characterize the characteristics of the article, thereby realizing the determination of the article's characteristics in combination with the comments of the article, which is conducive to expanding the article features in the article portrait.
[0095] It is understandable that the length of the comments on the article and the relationship between the comments can also be used as a characteristic of the article. Accordingly, after obtaining the comments on the article, the application can also obtain the basic attribute information of the article comments, and the basic attribute information can comment on the attribute information associated with the comments, such as the basic attribute information may include the length of the comment, the source of the comment, the user who posted the comment, and the characteristics of the user, etc.
[0096] Furthermore, for the obtained comment, the present application can also construct a comment relationship containing the comment based on the comment and other existing comments on the article, wherein the comment relationship at least includes the parent comment of the comment. Wherein, if a comment is an evaluation made on another comment, then the comment is a child comment of the other comment, and the other comment is the parent comment of the comment. For example, comment B is made on comment A, and a related evaluation is made on comment B to generate comment C, comment B is a child comment of comment A, and comment B is the parent comment of comment C.
[0097] It is understandable that by constructing a comment relationship for each comment, a comment relationship tree containing parent-child relationships between multiple comments can be obtained. The comment relationship tree where the comment is located and the basic attributes of the comment can provide a more sufficient basis for article recall personnel to recall the article.
[0098] It is understandable that when evaluating the expression tendency of a child comment of a comment towards a parent comment, the parent-child relationship between different comments can also be used to determine the parent comment of the comment.
[0099] In this case, the present application may also store the basic attribute information of the comments and the comment relationships corresponding to the comments as article features of the article.
[0100] like Figure 4 As shown, it shows the categories of feature analysis performed by this application on the comments of the article.
[0101] Depend on Figure 4 It can be seen that in addition to analyzing the comments of the article from the various evaluation feature dimensions involved in the three major categories of low-quality features, sentiment features and negative feedback features of the comments, this application will also construct the basic attributes of the comments and the comment relationship tree that reflect the characteristics of the article from the perspective of the metadata of the comments.
[0102] It is understandable that in actual applications, the number of comments on different articles varies greatly, and for articles with fewer comment data and articles with more comments, it is found that the distribution of the corresponding proportion of comments on each feature evaluation dimension is quite different. For example, for a certain feature evaluation dimension, the ratio of the model hits corresponding to a certain feature category on the feature evaluation dimension to the total number of comments on the article for articles with less than 10 comments is distributed between 0.0 and 1.0; while for articles with more than 100 comments, this ratio generally does not exceed 0.2, which reflects the difference in confidence in the number of samples. In other words, due to the small number of comments on some articles, the evaluation distribution of different articles on different feature dimensions may be poorly comparable, or even meaningless.
[0103] For example, suppose there are two articles. One article has 1,000 comments, 500 of which are identified as abusive comments, and the second article has 10 comments, 5 of which are identified as abusive comments. Although the proportion of abusive comments in both articles is 0.5, we can conclude that the proportion of abusive comments in the comment section of the first article is high and the comments are very aggressive; however, since the number of comments in the second article is small, it is difficult for us to conclude that the comments section of the second article is very aggressive.
[0104] It can be seen that the smaller the number of comments, the wider the confidence interval.
[0105] In order to better measure the distribution characteristics reflected by different feature evaluation dimensions in the article portrait and smooth the impact of the number of comments, this application can also smooth the distribution of comments for each feature type on each feature evaluation dimension.
[0106] like Figure 5 As shown, it shows a flow chart of another embodiment of a method for generating article features of the present application. The method of this embodiment may include:
[0107] S501, obtaining comments on the article.
[0108] S502, input the comments into a feature classifier of at least one feature evaluation dimension to obtain the feature type of the comments in each feature evaluation dimension.
[0109] Each feature evaluation dimension includes a plurality of different feature types, and a feature classifier for each feature evaluation dimension is obtained by training using a plurality of article review samples annotated with the feature type on the feature evaluation dimension.
[0110] S503, for each feature evaluation dimension, based on at least one existing comment on the article and the feature type of each comment on each feature evaluation dimension, determine the distribution of comments on the article on each feature type of the feature evaluation dimension.
[0111] The above steps can be referred to the related introduction of the previous embodiment, which will not be repeated here.
[0112] S504, for each feature type of each feature evaluation dimension, determine the confidence interval corresponding to the distribution of comments on the article on the feature type based on the total number of at least one comment on the article and the distribution of comments on the article on the feature type of the feature evaluation dimension, and determine the lower limit of the confidence interval as the distribution score of the article on the feature type.
[0113] In the present application, there may be multiple ways to determine the confidence interval, and the present application does not impose any limitation thereto.
[0114] In a possible implementation, in order to further improve the comparability between the features corresponding to different articles, the present application may also use the Wilson interval algorithm to calculate the lower limit of the confidence interval.
[0115] Specifically, for each feature type of each feature evaluation dimension of the article, after determining the proportion of comments on the article on that feature type of the feature evaluation dimension, the lower limit of the confidence interval corresponding to the proportion of comments on the article in that feature type can be calculated based on the total number of at least one comment on the article and using the Wilson interval algorithm. Accordingly, the calculated lower limit of the confidence interval can be directly determined as the distribution score of the article on that feature type.
[0116] For example, for a feature type of a feature evaluation dimension, the lower limit score of the confidence interval corresponding to the comment ratio of the feature type can be calculated by the calculation formula of the Wilson interval algorithm in Formula 2 below:
[0117]
[0118] Where n is the total number of comments on the article, p is the percentage of comments on the article on the feature type, and z is a constant that adjusts the degree of correction. The lower limit of the confidence interval is the minimum value of the confidence interval.
[0119] In this embodiment, the distribution scores of each feature type corresponding to the article in different feature evaluation dimensions may be stored as the article features of the article.
[0120] It can be understood that, for each feature evaluation dimension, this embodiment converts the proportion of comments on each feature type of the article in the feature evaluation dimension into a distribution score, so that articles with different numbers of comments can be comparable in the distribution of comments on the feature type.
[0121] It is understandable that in actual applications, for each feature type in each feature comment dimension, the distribution score of the article in this feature type may be between 0.0 and 0.2, so that the numerical difference of the distribution score of this feature type in different articles on the same feature evaluation dimension is small and the discrimination is small.
[0122] As an optional method, in order to more intuitively see the differences in distribution scores of different articles in the same feature row, the present application can also standardize the distribution scores, that is, specifically perform the operations of the following steps S505 and S506.
[0123] S505, for each feature type of each feature evaluation dimension, standardize the distribution score of the article on the feature type to obtain the standardized distribution score of the article on the feature type.
[0124] There are many possible ways to standardize the distribution scores.
[0125] In a possible implementation, the present application may use the following formula 2 to standardize the distribution score of an article in a certain feature type to obtain a standardized distribution score score':
[0126] score'=(score-1) 5 +1 (Formula 2);
[0127] Of course, Formula 2 is just a standardized formula. In practical applications, there may be other possibilities.
[0128] S506: Store the standardized distribution scores of the feature types corresponding to the article in different feature evaluation dimensions as article features.
[0129] To intuitively see the benefits of standardizing the distribution scores of a certain feature type of article comments, see Figure 6 .exist Figure 6 The distribution comparison diagram of multiple articles to be compared on a feature type of a feature evaluation dimension is shown. The horizontal axis is the score representing the distribution of comments, and the vertical axis is the number of comments.
[0130] exist Figure 6 In the figure, the white vertical bar is the distribution score of the article on this feature type before standardization, and the black bar represents the standardized distribution score. Comparing the white vertical bar with the black vertical bar, it can be seen that the distribution of the black vertical bar is more even and the difference is more obvious. In other words, the standardized distribution scores of these multiple articles on this feature type are easier to distinguish from each other.
[0131] For ease of understanding, the following example uses the scenario of identifying low-quality articles in the article recall scenario combined with the article rating as an example. For ease of description, the article features are determined from the feature evaluation dimension of advertisement identification in the low-quality feature analysis of the article comments, and the feature classifier is composed of the BERT model and the classification layer as an example.
[0132] like Figure 7 As shown, it shows a flow chart of the article feature generation method of the present application applied to the article recall scenario. Meanwhile, this embodiment takes the example of a computer device determining the article feature of an article and providing it to a server of an article service platform.
[0133] This embodiment may include:
[0134] S701, obtain comments on the article.
[0135] S702, with respect to the feature evaluation dimension of advertisement identification, the comment is input into an advertisement feature classifier for identifying advertisements to obtain an advertisement identification result of the comment.
[0136] Among them, the advertising recognition results of the comments include advertising and non-advertising. The advertising recognition results indicate whether the comment evaluates that the article is an advertisement. For example, if the advertising recognition result output by the advertising feature classifier is an advertisement, it means that the comment evaluates that the article is an advertisement. If the output result is non-advertising, it means that the comment evaluates that the article is not an advertisement.
[0137] Among them, the advertising feature classifier is a BERT model trained using multiple article comment samples labeled with advertising labels and multiple article comment samples labeled with non-advertising labels, and the BERT model is connected to a fully connected network and a normalization function layer.
[0138] It is understandable that before the comment is input into the BERT model, the comment can be mapped into a string recognizable by the BRET model, which can be a sequence number. Of course, before the comment is converted into a character string recognizable by the BRET model, the comment can also be pre-processed to handle some repeated characters, or to map characters with incorrect formats, etc.
[0139] It can be understood that this embodiment only takes the feature evaluation dimension of advertisement recognition as an example. If there are feature evaluation dimensions such as emotional tendency and slow recognition, it is only necessary to input the comments into the corresponding feature classifiers to obtain the feature categories on the corresponding feature evaluation dimensions. This will not be elaborated.
[0140] S703, for advertisement identification, according to the existing multiple comments of the article and the advertisement identification result corresponding to each comment, determine a first proportion of the multiple comments of the article in advertisements and a second proportion of the multiple comments in non-advertisements.
[0141] S704, for the feature category of advertisement in advertisement identification, based on the total number of existing comments on the article and the first proportion of multiple comments on the article on advertisements, and using the Wilson interval algorithm, calculate the lower limit of the confidence interval corresponding to the first proportion, and determine the lower limit of the confidence interval as the first distribution score of the article on advertisements.
[0142] S705, normalizing the first distribution score to obtain a first normalized distribution score indicating that the comment on the article indicates that the article is an advertisement.
[0143] S706, for the feature category of non-advertisement in advertisement identification, based on the total number of existing comments on the article and the second proportion of the multiple comments on the article on non-advertisement, and using the Wilson interval algorithm, calculate the lower limit of the confidence interval corresponding to the second proportion, and determine the lower limit of the confidence interval as the second distribution score of the article on non-advertisement.
[0144] S707, normalize the second distribution score to obtain a second normalized distribution score indicating that the comments on the article represent that the article is non-advertisement.
[0145] S708, sending a first standardized distribution score of the comments on the article indicating that the article is an advertisement and a second standardized distribution score of the comments on the article indicating that the article is not an advertisement to the server, so that the server recalls the article when it determines that the article is an advertisement, which is a low-quality article, based on the first standardized score and the second standardized score.
[0146] It is understandable that after determining the comment distribution of each article in different feature evaluation dimensions, this application can also be a display page showing the score distribution, so that users on the computer device side can determine whether each article needs to be recalled, etc.
[0147] For ease of understanding, the process of recalling articles in this application based on the distribution of comments on different feature evaluation dimensions of the articles is as follows: Figure 8 Provide explanation. Figure 8 The figure shows the distribution diagram of the proportion of articles in feature types of each feature evaluation dimension.
[0148] like Figure 8 As shown, this application identifies the specific feature type of each comment in the article based on the six feature evaluation dimensions of cyber violence, low speed, fraudulent likes, advertising, low nutrition, and negative feedback, and analyzes the proportion of comments in the article.
[0149] exist Figure 8 In the column corresponding to each feature evaluation dimension, the black part is the proportion of comments with the first feature type in the feature evaluation dimension, and the white part is the proportion of comments with the second feature type. The first feature type of the feature evaluation dimension is the feature type that characterizes the article as low quality in the feature evaluation dimension, and the second feature type is the feature type that characterizes the article as high quality in the feature evaluation dimension.
[0150] For example, taking cyber violence as an example, cyber violence is the first characteristic type, and not cyber violence is the second characteristic type. Among the comments on the article, the comments that indicate that the article has cyber violence account for 16.9%, while the comments that indicate that the article does not have cyber violence account for 81.1%.
[0151] Similarly, in the evaluation dimension of vulgarity, vulgarity is the first characteristic type and non-vulgarity is the second characteristic type. Figure 8 From the bar chart corresponding to the feature evaluation dimension of medium and low vulgarity, we can see that the comments corresponding to the article are vulgar accounting for 1.2%, while the comments that are not vulgar account for 98.8%. The characteristics of the other feature evaluation dimensions are similar.
[0152] In order to avoid the comparability of the proportion of comments on different feature evaluation dimensions of the article due to the small number of comments. This application also shows the standardized score of the first feature type of the article on each feature evaluation dimension below the bar chart. That is, for the first feature type of each feature evaluation dimension, combined with the proportion of comments on the article on the first feature type, the Wilson interval algorithm is used to determine the distribution score of the article on the first feature type, and the distribution score is standardized to obtain the standardized score.
[0153] like Figure 8 As shown in the figure, for the dimension of cyber violence, the comments that indicate that the article has cyber violence account for 16.9% of the comments, and the standardized score obtained after standardization is 81.24. Similarly, the comments that indicate that the article is a low-speed article account for 1.2%, and the standardized score corresponding to this comment ratio is 7.95. The other characteristic evaluation dimensions are similar.
[0154] Combination Figure 8 The standardized scores of the first feature type in each feature evaluation dimension can intuitively show the performance of the article in each feature evaluation dimension. Combining the standardized scores on each feature evaluation dimension can be used to recall the article.
[0155] For example, although the negative feedback on the article accounts for only 29.8%, the standardized score is 96.23, which means that the negative feedback on the article is relatively high. On this basis, it can be determined that the negative feedback presented by users on the article is relatively high, and the article can be recalled.
[0156] Corresponding to an article feature generation method of the present application, the present application also provides an article feature generation device. Fig. 9 As shown, it shows a schematic diagram of a composition structure of an article feature generation device of the present application, and the device may include:
[0157] A comment obtaining unit 901 is used to obtain comments on the article;
[0158] The comment analysis unit 902 is used to input the comment into a feature classifier of at least one feature evaluation dimension to obtain the feature type of the comment in each feature evaluation dimension, wherein each feature evaluation dimension includes multiple different feature types, and the feature classifier of each feature evaluation dimension is trained using multiple article comment samples annotated with the feature type in the feature evaluation dimension;
[0159] A distribution determination unit 903 is used to determine the distribution of comments on the article in each feature type of the feature evaluation dimension according to at least one existing comment on the article and the feature type of each comment in each feature evaluation dimension for each feature evaluation dimension;
[0160] The feature generating unit 904 is used to store the distribution of comments of the article in at least one feature evaluation dimension as the article feature of the article.
[0161] In a possible implementation, the feature generation unit includes:
[0162] A first score determination unit is used to determine, for each feature type of each feature evaluation dimension, a confidence interval corresponding to the distribution of comments on the article on the feature type according to the total number of at least one comment on the article and the distribution of comments on the article on the feature type of the feature evaluation dimension, and determine the lower limit of the confidence interval as the distribution score of the article on the feature type;
[0163] The first feature generating unit is used to store the distribution scores of each feature type corresponding to the article in the at least one feature evaluation dimension as the article feature of the article.
[0164] As an optional manner, the distribution determination unit determines the distribution of comments on the article on each feature type of the feature evaluation dimension as follows: the proportion of comments on the article on each feature type of the feature evaluation dimension;
[0165] The first score determination unit is specifically used to calculate, for each feature type of each feature evaluation dimension, the lower limit of the confidence interval corresponding to the proportion of comments on the article in this feature type based on the total number of at least one comment on the article and using the Wilson interval algorithm, and determine the lower limit of the confidence interval as the distribution score of the article on this feature type.
[0166] In yet another possible implementation, the first feature generating unit includes:
[0167] A second score determination unit is used to standardize the distribution score of the article on each feature type of each feature evaluation dimension to obtain a standardized distribution score of the article on the feature type;
[0168] The second feature generating unit is used to store the standardized distribution scores of each feature type corresponding to the article in the at least one feature evaluation dimension as the article feature of the article.
[0169] In yet another possible implementation, the feature generating unit includes:
[0170] A distribution graph generating unit, for constructing a comment distribution graph corresponding to each feature evaluation dimension based on the distribution of comments on each feature type of the article in the feature evaluation dimension;
[0171] The graph storage unit is used to store the comment distribution graph of the article in the at least one feature evaluation dimension as the article feature of the article.
[0172] In yet another possible implementation, the device further includes:
[0173] An attribute determination unit, used for obtaining basic attribute information of the comment after the comment obtaining unit obtains the comment;
[0174] A comment relationship determination unit, used to construct a comment relationship including the comment based on the comment and other existing comments on the article, the comment relationship at least including the parent comment of the comment;
[0175] The attribute relationship storage unit is used to store the basic attribute information of the comment and the comment relationship as the article feature of the article.
[0176] In another aspect, the present application also provides a computer device, which may be the aforementioned independent computer device, a data processing device in the article service platform, or a computing node in the data processing platform. Fig.10 , which shows a schematic diagram of the composition architecture of a computer device provided by the present application. Fig.10 In the embodiment, the computer device 1000 may include: a processor 1001 and a memory 1002.
[0177] Optionally, the computer device may further include: a communication interface 1003 , an input unit 1004 , a display 1005 and a communication bus 1006 .
[0178] The processor 1001 , the memory 1002 , the communication interface 1003 , the input unit 1004 and the display 1005 all communicate with each other via the communication bus 1006 .
[0179] In the embodiment of the present application, the processor 1001 may be a central processing unit, a specific application integrated circuit, etc.
[0180] The memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement the article feature generation method mentioned in the above embodiment.
[0181] In a possible implementation, the memory 1002 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, the programs mentioned above, etc.; the data storage area may store data created during the use of the computer device.
[0182] The communication interface 1003 may be an interface of a communication module.
[0183] The present application may further include an input unit 1004, which may include a touch sensing unit, a keyboard, and the like.
[0184] The display 1005 includes a display panel, such as a touch display panel.
[0185] certainly, Fig.10The computer device structure shown does not constitute a limitation on the computer device in the embodiment of the present application. In actual applications, the computer device may include Fig.10 More or fewer components than shown, or combinations of certain components.
[0186] On the other hand, the present application also provides a storage medium, which stores computer executable instructions. When the computer executable instructions are loaded and executed by a processor, the article feature generation method in any of the above embodiments is implemented.
[0187] The present application also proposes a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in various optional implementations of the article feature generation method or the article feature generation device. The specific implementation process can refer to the description of the corresponding embodiment above, and will not be repeated here.
[0188] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referred to each other. At the same time, the features recorded in each embodiment in this specification can be replaced or combined with each other, so that professionals in the field can implement or use this application. For device embodiments, since they are basically similar to method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0189] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0190] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0191] The above are only preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for generating article features, characterized in that: include: Get comments on the article; Obtaining basic attribute information of the comment; The basic attribute information of the comment includes the comment length, comment source, user who made the comment and the characteristics of the user; Based on the comment and other existing comments on the article, construct a comment relationship tree including parent-child relationships between multiple comments; Input the comments into feature classifiers of multiple feature evaluation dimensions respectively, and obtain the feature types of the comments in each feature evaluation dimension respectively, wherein each feature evaluation dimension includes multiple different feature types, and the feature classifier of each feature evaluation dimension is trained using multiple article comment samples annotated with the feature type in the feature evaluation dimension; For each feature evaluation dimension, based on at least one existing comment on the article and the feature type of each comment on each feature evaluation dimension, determine the distribution of comments on the article on each feature type of the feature evaluation dimension; storing the distribution of the comments on the article in the multiple feature evaluation dimensions as article features of the article; storing the basic attribute information of the comment and the comment relationship tree as article features of the article; Among them, the multiple feature evaluation dimensions include: It is a feature evaluation dimension for analyzing low-quality features, including: advertisement recognition, abuse recognition, vulgarity recognition, and fraudulent likes recognition; The feature evaluation dimension that analyzes the emotional tendency characteristics includes: the emotional tendency expressed by the comments, the attitude towards the article, and the attitude of the child comments towards the parent comments; The characteristic evaluation dimension that belongs to the analysis of negative feedback characteristics specifically includes: negative feedback on the article and negative feedback on the author.
2. The method according to claim 1, characterized in that The storing the distribution of the comments of the article on the multiple feature evaluation dimensions as the article features of the article includes: For each feature type of each feature evaluation dimension, determine a confidence interval corresponding to the distribution of comments on the article on the feature type based on the total number of at least one existing comment on the article and the distribution of comments on the article on the feature type of the feature evaluation dimension, and determine the lower limit of the confidence interval as the distribution score of the article on the feature type; The distribution scores of the feature types corresponding to the article in the multiple feature evaluation dimensions are stored as article features of the article.
3. The method according to claim 2, characterized in that Determining the distribution of comments on the article on each feature type of the feature evaluation dimension includes: Determine the proportion of comments on the article in each feature type of the feature evaluation dimension; The step of determining a confidence interval corresponding to the distribution of comments on the article on the feature type based on the total number of at least one comment on the article and the distribution of comments on the article on the feature type of the feature evaluation dimension, and determining the lower limit of the confidence interval as the distribution score of the article on the feature type, includes: Based on the total number of at least one comment on the article and using the Wilson interval algorithm, the lower limit of the confidence interval corresponding to the proportion of comments on the article in the feature type is calculated, and the lower limit of the confidence interval is determined as the distribution score of the article in the feature type.
4. The method according to claim 2 or 3, characterized in that: The step of storing the distribution scores of each feature type corresponding to each of the plurality of feature evaluation dimensions of the article as article features of the article includes: For each feature type of each feature evaluation dimension, standardize the distribution score of the article on the feature type to obtain the standardized distribution score of the article on the feature type; The standardized distribution scores of the feature types corresponding to the article in the multiple feature evaluation dimensions are stored as article features of the article.
5. The method according to claim 1, characterized in that The storing the distribution of the comments of the article on the multiple feature evaluation dimensions as the article features of the article includes: For each feature evaluation dimension, based on the distribution of comments on the article on each feature type of the feature evaluation dimension, construct a comment distribution graph corresponding to the feature evaluation dimension; The comment distribution graph of the article in the multiple feature evaluation dimensions is stored as the article feature of the article.
6. An article feature generation device, characterized in that: include: A comment obtaining unit, used to obtain comments on articles; An attribute determination unit, used to obtain basic attribute information of the comment; The basic attribute information of the comment includes the comment length, comment source, user who made the comment and the characteristics of the user; A comment relationship determination unit, used to construct a comment relationship tree including parent-child relationships between multiple comments based on the comment and other existing comments on the article; A comment analysis unit, used to input the comments into feature classifiers of multiple feature evaluation dimensions respectively, to obtain feature types of the comments in each feature evaluation dimension respectively, wherein each feature evaluation dimension includes multiple different feature types, and the feature classifier of each feature evaluation dimension is trained using multiple article comment samples annotated with the feature type in the feature evaluation dimension; A distribution determination unit, for determining, for each feature evaluation dimension, a distribution of comments on the article on each feature type of the feature evaluation dimension according to at least one existing comment on the article and the feature type of each comment on each feature evaluation dimension; A feature generating unit, configured to store the distribution of the comments on the article in the plurality of feature evaluation dimensions as article features of the article; An attribute relationship storage unit, used to store the basic attribute information of the comment and the comment relationship tree as article features of the article; Among them, the multiple feature evaluation dimensions include: It is a feature evaluation dimension for analyzing low-quality features, including: advertisement recognition, abuse recognition, vulgarity recognition, and fraudulent likes recognition; The feature evaluation dimension that analyzes the emotional tendency characteristics includes: the emotional tendency expressed by the comments, the attitude towards the article, and the attitude of the child comments towards the parent comments; The characteristic evaluation dimension that belongs to the analysis of negative feedback characteristics specifically includes: negative feedback on the article and negative feedback on the author.
7. The device according to claim 6, characterized in that The feature generation unit comprises: A first score determination unit is used to determine, for each feature type of each feature evaluation dimension, a confidence interval corresponding to the distribution of comments on the article on the feature type according to the total number of at least one comment on the article and the distribution of comments on the article on the feature type of the feature evaluation dimension, and determine the lower limit of the confidence interval as the distribution score of the article on the feature type; The first feature generating unit is used to store the distribution scores of each feature type corresponding to the article in the plurality of feature evaluation dimensions as article features of the article.
8. The device according to claim 7, characterized in that The distribution of comments on the article on each feature type of the feature evaluation dimension determined by the distribution determination unit is: the proportion of comments on the article on each feature type of the feature evaluation dimension; The first score determination unit is specifically used to calculate the lower limit of the confidence interval corresponding to the proportion of comments on the article of the feature type based on the total number of at least one comment on the article and using the Wilson interval algorithm, and determine the lower limit of the confidence interval as the distribution score of the article on the feature type.
9. The device according to claim 7 or 8, characterized in that The first feature generating unit comprises: A second score determination unit is used to standardize the distribution score of the article on each feature type of each feature evaluation dimension to obtain a standardized distribution score of the article on the feature type; The second feature generating unit is used to store the standardized distribution scores of each feature type corresponding to the article in the plurality of feature evaluation dimensions as article features of the article.
10. The device according to claim 6, characterized in that The feature generation unit comprises: A distribution graph generating unit, for constructing, for each feature evaluation dimension, a comment distribution graph corresponding to the feature evaluation dimension based on the distribution of comments on the article on each feature type of the feature evaluation dimension; The graph storage unit is used to store the comment distribution graph of the article in the multiple feature evaluation dimensions as the article feature of the article.
11. A computer device, characterized in that: The computer device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the article feature generation method as described in any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the article feature generation method as described in any one of claims 1 to 5.
13. A computer program product, characterized in that The computer program product includes computer instructions, which 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 executes the article feature generation method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Emotional tendency analysis-based article assessment method and system
CN107301200A
Data query method and device, and readable medium
CN108733766A
Comment text processing method and device, storage medium and computer device
CN110866398A
