A method, device and storage medium for generating a review based on content of an article

By obtaining the article's category and keywords, matching target articles are found and relevant comments are generated, solving the problem of automatically generated comments not matching the article content and improving the naturalness and user interactivity of the comment section.

CN115309973BActive Publication Date: 2026-02-06SHANGHAI LIANSHANG NETWORK TECHNOLOGY GROUP CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210489691.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-06
Publication Date
2026-02-06
Estimated Expiration
2042-05-06

AI Technical Summary

Technical Problem

Existing automatic commenting methods cannot match the article content, resulting in automatically generated comments that appear unnatural.

Method used

By acquiring the target information of the article, including its category and keywords, we can find matching target articles, filter comment materials, and generate target comments that are relevant to the article content.

Benefits of technology

It achieves matching between comments and article content, enriches the content of the comment section, and improves user interaction and retention rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115309973B_ABST
    Figure CN115309973B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a method, device and storage medium for generating a comment based on article content. In the embodiments, a server determines an article to be automatically filled with a comment, and generates a target comment for filling the article by using target information of the article and comment materials, so that the content of the target comment is associated with the content of the article to be automatically filled with the comment, thereby solving the problem that the automatically generated comment does not match the content of the article.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of Internet information technology, in particular to a method and device for generating a comment based on article content and a storage medium. BACKGROUND

[0002] Comments are the most common way of information interaction on major Internet platforms. The quality and quantity of comments often determine the overall activity of a product. In particular, high-quality comments can increase user stickiness, increase user interaction, create a good atmosphere, thereby enhancing product relationship retention and building social relationships. Therefore, automatic comments as an important method for increasing the number of comments in the early stage of a product have been the focus of attention.

[0003] However, existing automatic comment methods are mainly based on templates, which can easily generate a large number of comments, but cannot match the content of the article, making it easy for users to find that the comments are automatically generated. SUMMARY

[0004] The present application provides a method and device for generating a comment based on article content and a storage medium to solve the problem of mismatch between automatically generated comments and article content.

[0005] The technical solutions provided by the embodiments of the present application include:

[0006] A method for generating a comment based on article content, applied to a server of an application program, the method comprising:

[0007] Obtaining an article in the application program to be automatically filled with a comment, detecting target information of the article, the target information including an article category and an article keyword;

[0008] Finding a matching target article according to the target information, filtering comments of the target article, and obtaining comment materials corresponding to the target information found;

[0009] Generating a target comment according to the target information and the comment materials, and sending the target comment to a client of the application program, so that the client of the application program displays the target comment in a comment area of the article.

[0010] Optionally, the obtaining of the article in the application program to be automatically filled with a comment comprises:

[0011] Detecting an article displayed on the client of the application program, and determining an article with a comment number less than a threshold value as an article to be automatically filled with a comment; or

[0012] Detecting an article displayed on the client of the application program, and determining an article with an automatically filled comment field value as an article to be automatically filled with a comment; or,

[0013] receiving an external input article, and determining the article as an article to be automatically filled with a comment.

[0014] Optionally, the matched target article comprises:

[0015] an article whose article category matches an article category included in the target information and whose article content contains the article keyword.

[0016] Optionally, after the target comment is generated according to the target information and the comment material, the method further comprises:

[0017] if the review passes, determining to perform an operation of sending the target comment to a client of the application program, so that the client of the application program displays the target comment in a comment area of the article.

[0018] Optionally, after the target comment is reviewed, the method further comprises:

[0019] if the review does not pass, outputting information that the review does not pass.

[0020] Optionally, after the target comment is generated according to the target information and the comment material, the method further comprises:

[0021] obtaining a comment published in a comment area of another article of the application program, generating a combined comment according to the published comment and the target comment, and sending the combined comment to the client of the application program.

[0022] Optionally, generating the combined comment according to the published comment and the target comment comprises:

[0023] after the published comment and the target comment are obtained, re-editing the target comment, adding the published comment before a first character of the target comment to generate the combined comment; or

[0024] after the published comment and the target comment are obtained, re-editing the target comment, adding the published comment after a last character of the target comment to generate the combined comment.

[0025] Optionally, before the target comment is generated according to the target information and the comment material, the method further comprises:

[0026] if the user is in the blacklist, the operation of generating the target comment according to the target information and the comment material is not performed.

[0027] Optionally, after detecting whether the user publishing the article is in the blacklist, the method further comprises:

[0028] If the user is not in the blacklist, determining to perform an operation of generating a target comment according to the target information and the comment material.

[0029] Embodiments of the present application also provide a device for generating a comment based on article content, applied to a server of an application program, the device comprising:

[0030] An article acquisition unit, configured to acquire an article in the application program to be automatically filled with a comment, and detect target information of the article, the target information comprising an article category and an article keyword;

[0031] A comment material acquisition unit, configured to search for a target article matching the target information, and filter comments of the target article to obtain a comment material corresponding to the search for the target information;

[0032] A target comment generation unit, configured to generate a target comment according to the target information and the comment material, and send the target comment to a client of the application program, so that the client of the application program displays the target comment in a comment area of the article.

[0033] Optionally, the article acquisition unit acquires the article in the application program to be automatically filled with a comment, comprising:

[0034] detecting an article displayed on the client of the application program, and determining an article with a comment number less than a threshold value as the article to be automatically filled with a comment; or,

[0035] detecting an article displayed on the client of the application program, and determining an article with a value of an automatic comment filling field as the article to be automatically filled with a comment; or,

[0036] receiving an externally input article, and determining the article as the article to be automatically filled with a comment.

[0037] Optionally, the target article matching the comment material acquisition unit comprises:

[0038] an article whose article category matches the article category included in the target information and whose article content contains the article keyword.

[0039] Optionally, after the target comment generation unit generates a target comment according to the target information and the comment material, the device further comprises an auditing unit configured to audit the target comment.

[0040] If the review passes, it is determined to perform an operation of sending the target comment to a client of the application program, so that the client of the application program displays the target comment in a comment area of the article.

[0041] Optionally, after the review unit reviews the target comment, the method further includes:

[0042] If the review fails, information that the review fails is output.

[0043] Optionally, after the generating target comment unit generates the target comment according to the target information and the comment material, the method further includes:

[0044] The generating combined comment unit is configured to: acquire a comment published in a comment area of another article of the application program, generate a combined comment according to the published comment and the target comment, and send the combined comment to the client of the application program.

[0045] Optionally, the generating combined comment unit generates the combined comment according to the published comment and the target comment includes:

[0046] After the published comment and the target comment are acquired, the target comment is re-edited, the published comment is added before a first character of the target comment, so as to generate the combined comment; or

[0047] After the published comment and the target comment are acquired, the target comment is re-edited, the published comment is added after a last character of the target comment, so as to generate the combined comment.

[0048] Optionally, before the generating target comment unit generates the target comment according to the target information and the comment material, the method further includes:

[0049] If the user is in the blacklist, the operation of generating the target comment according to the target information and the comment material is not performed.

[0050] Optionally, after the detecting blacklist unit detects whether the user publishing the article is in the blacklist, the method further includes:

[0051] If the user is not in the blacklist, it is determined to perform the operation of generating the target comment according to the target information and the comment material.

[0052] Embodiments of the present application also provide an electronic device, which includes:

[0053] One or more processors;

[0054] A machine-readable storage medium storing one or more computer-readable instructions that, when executed by the one or more processors, cause the one or more processors to implement the method as described in the present application.

[0055] The embodiment of the present application further provides a machine readable storage medium, which has a program stored thereon, and the program is executed by a processor to implement the method as described in the present application.

[0056] It can be seen from the above technical solution that, in the present application, after the server determines an article to be automatically filled with comments, the server finds a target article matched by the category and the keyword of the article, and generates a target comment according to the comments of the target article to fill the article to be automatically filled with comments. The content of the target comment is associated with the content of the article to be automatically filled with comments, so as to realize the purpose of automatically enriching the comment area according to the article content, enriching the article content structure, and guiding the user to participate in interaction. BRIEF DESCRIPTION OF DRAWINGS

[0057] The accompanying drawings, which are incorporated herein and constitute part of the specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0058] Figure 1 A method flowchart provided by the embodiment of the present application;

[0059] Figure 2 A comment review flowchart provided by the embodiment of the present application;

[0060] Figure 3 A device structure diagram provided by the embodiment of the present application;

[0061] Figure 4 An electronic device structure diagram provided by the embodiment of the present application. DETAILED DESCRIPTION

[0062] The exemplary embodiments will be described in detail herein with reference to the attached drawings. The following description is with reference to the drawings, in which like numerals represent like elements, throughout the several views. The following exemplary embodiments are described in enough detail to provide those skilled in the art with a complete understanding of one or more embodiments consistent with the present application. Those skilled in the art will further appreciate that the exemplary embodiments described herein are illustrative only and are not intended to limit the scope of the present application in any way.

[0063] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the present application. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

[0064] In order for those skilled in the art to better understand the technical solutions provided by the embodiments of the present application, and in order for the above-mentioned purposes, characteristics and advantages of the embodiments of the present application to be more apparent and easy to understand, the technical solutions in the embodiments of the present application will be further described in detail below with reference to the drawings.

[0065] The present application provides a method for generating a comment based on article content, applied to a server of an application program, as shown in Figure 1 , Figure 1 The method flowchart provided by the embodiments of the present application.

[0066] As shown in Figure 1 , the flowchart can include the following steps:

[0067] S101, obtaining an article to be automatically filled with a comment in an application program, detecting target information of the article, the target information including an article category and an article keyword.

[0068] In the present embodiment, the article to be automatically filled with a comment can be an article that has been published in the application program, and the server filters the article to be automatically filled with a comment from the published articles through specific conditions. For example, the article can be set as a selected article or a normal article when it is published, and at this time, the selected article can be determined as the article to be automatically filled with a comment to extract the target information of the article.

[0069] In the present embodiment, the article category can be selected and set by a user when the article is published, for example, the server sets the article category as a required item, and the user or the background must select the article category before publishing successfully. The article keyword can be the most frequently appearing word group in the article, for example, the server obtains all strings composed of N continuous characters in the article and performs statistical sorting, and determines the string with the highest frequency as the article keyword.

[0070] It should be noted that the server can count strings of different lengths to more accurately count the strings with the highest frequency in the article, such as counting strings with N values of 1, 2, 3, 4, …, to obtain the string with the highest frequency in the article. Further, when performing the statistical sorting, some commonly used word groups such as "you, you, I, we, and" can be shielded first to prevent the number of these commonly used word groups from being too high and affecting the acquisition of the article keyword.

[0071] Optionally, the above obtaining an article to be automatically filled with a comment in an application program includes:

[0072] detecting an article displayed on the above-mentioned application program client, and determining an article with a comment number less than a threshold value as the article to be automatically filled with a comment; or

[0073] The article displayed on the application client is detected, and the article with the value of the comment field being Yes is determined as the article to be automatically filled with the comment; or

[0074] The article received from the outside is determined as the article to be automatically filled with the comment.

[0075] In the embodiment, a comment number threshold can be preset on the server side, and the server side determines the article with the comment number less than the comment number threshold as the article to be automatically filled with the comment after detecting the comment number of each article published on the client side.

[0076] In the embodiment, the comment field to be automatically filled can also be selected and set by the user when the article is published. For example, the server side sets the option of whether to start the automatic comment filling as a required item, and the user must select whether to start the automatic comment filling before successfully publishing the article.

[0077] In the embodiment, a function of uploading the article to be automatically filled with the comment can also be implemented on the background management page of the application. For example, a button of uploading the file is added, and the server side determines the article uploaded by the staff through the button as the article to be automatically filled with the comment.

[0078] S102, the target article matched according to the target information is searched, the comments of the target article are screened, and the comment material corresponding to the target information is obtained.

[0079] Optionally, the target article matched includes:

[0080] The article whose article category matches the article category included in the target information and whose article content contains the article keyword.

[0081] In the embodiment, the server side can take the multiple parameters in the target information as the search conditions, search on all mainstream websites and forums, and determine the article containing the multiple parameters as the target article.

[0082] For example, the article category (also referred to as the article label, the article type, etc.) in the target information is “home appliance”, and the article keyword is “refrigerator”. Then, the article whose article category contains “home appliance” and whose article content contains “refrigerator” is determined as the target article. When the article category and the article keyword contain multiple parameters, for example, the article category is “home appliance, electric appliance, kitchenware”, and the article keyword is “refrigerator, home appliance, refrigeration”. At this time, the article whose article category contains part of the words in “home appliance, electric appliance, kitchenware” and whose article content contains part of the article keyword can be selected as the target article, or the article containing all the article categories and all the article keywords can be selected as the target article.

[0083] Further, one parameter in the target information can also be used as a search condition. For example, when the article keyword is "refrigerator", the articles containing "refrigerator" found in the search are determined as target articles. When the article keyword contains multiple keywords, for example, the article keyword is "refrigerator, household appliances, refrigeration", at this time, the articles containing part of the article keyword can be selected as target articles, or the articles containing all the article keywords can be selected as target articles. Similarly, taking the article category, which can also be referred to as article label or article type, as an example, when the article category is "household appliances", the articles found in the search containing "household appliances" in the article category are determined as target articles. When the article category is "household appliances, electrical appliances, kitchenware", at this time, the articles containing part of the article category "household appliances, electrical appliances, kitchenware" can be selected as target articles, or the articles containing all the article category "household appliances, electrical appliances, kitchenware" can be selected as target articles. There are many ways to determine the target articles, and this embodiment only exemplifies one of them, which should not be regarded as a limitation of the present application.

[0084] It should be noted that when the article category is used as a search condition, for example, when the article category is "household appliances", the articles containing "household appliances" in the article content can also be determined as target articles, so as to avoid the situation that the article content is related to "household appliances", but the article cannot be determined as a target article because the article category of the article does not contain "household appliances".

[0085] In this embodiment, the comments of the target articles can be filtered according to the number of likes and the number of replies. For example, after finding multiple target articles matching the article keyword, all the comments in the multiple target articles are arranged in descending order according to the number of likes or the number of replies, and part of the text or the entire comment of the first N comments is extracted as comment material, where N is a positive integer.

[0086] Further, the target articles with more comments can also be monitored for subsequent continuous collection of the comments of the target articles as comment material.

[0087] It should be noted that after finding the target articles matching the target information and extracting the comment material according to the comments of the target articles, a table recording the correspondence between the target information and the comment material can be created in the database, and the table can be continuously supplemented and improved during use, so that when an article is published subsequently, the corresponding comment material can be found directly from the table.

[0088] S103, generating a target comment according to the above target information and the above comment material, and sending the target comment to the client of the application program, so that the client of the application program displays the target comment in the comment area of the article.

[0089] In the embodiment, the existing automatic sentence generation tool and template tool can be used to automatically generate comments according to the article category and the article keyword, and the automatically generated comments are combined with the comment materials and then sent to the client.

[0090] It should be noted that when the comment materials are confirmed, the comment materials can be audited to avoid selecting some comments irrelevant to the article content.

[0091] Optionally, after the target comment is generated according to the target information and the comment materials, the method further includes:

[0092] The published comments in the comment area of other articles of the application program are obtained, a combined comment is generated according to the published comments and the target comment, and the combined comment is sent to the client of the application program.

[0093] Optionally, the combined comment is generated according to the published comments and the target comment, and includes:

[0094] After the published comments and the target comment are obtained, the target comment is re-edited, the published comments are added before the first character of the target comment to generate the combined comment, or

[0095] After the published comments and the target comment are obtained, the target comment is re-edited, the published comments are added after the last character of the target comment to generate the combined comment.

[0096] In the embodiment, the published comments in the comment area of other articles can be some general comments or some encouraging statements such as “good article, the author worked hard” and the like, so that after the target comment is obtained by the server and the published comments in the comment area of other articles are added before or after the target comment, the content of the target comment is not affected, for example, the target comment is not contradictory.

[0097] Optionally, before the target comment is generated according to the target information and the comment materials, the method further includes: detecting whether a user publishing the article is in a blacklist.

[0098] If the user is in the blacklist, the operation of generating the target comment according to the target information and the comment materials is not performed.

[0099] Optionally, after it is detected whether the user publishing the article is in the blacklist, the method further includes:

[0100] If the user is not in the blacklist, it is determined that the operation of generating the target comment according to the target information and the comment materials is performed.

[0101] In the embodiment, some users with bad records can be added to a blacklist, and when the server subsequently obtains an article of the user as an article to be automatically filled with comments, the article of the user can not be automatically filled with comments by the blacklist function.

[0102] At this point, the process shown in Figure 1 is completed.

[0103] As can be seen from the process shown in Figure 1 , the embodiment generates a target comment for filling the article to be automatically filled with comments by using the target information of the article to be automatically filled with comments, so that the content of the target comment is associated with the content of the article to be automatically filled with comments, and the problem that the automatically generated comment does not match the content of the article is solved.

[0104] In another embodiment of the present application, the target comment can also be audited, and the specific process is as shown in Figure 2 .

[0105] S201, after generating the target comment according to the target information and the comment material, the target comment is audited.

[0106] In the embodiment, if the audit is passed, step S202 is performed; if the audit is not passed, step S203 is performed.

[0107] S202, the target comment is sent to the client of the application program, so that the client of the application program displays the target comment in the comment area of the article.

[0108] S203, information that the audit is not passed is output.

[0109] In the embodiment, there are many methods for auditing, for example, the format of the target comment can be audited, such as that the expression and special character do not meet the requirements, or the length of the target comment is limited. The target comment can also be audited for sensitive words, for example, a sensitive word library is first constructed, or a third-party sensitive word library is directly referenced, and when the target comment is obtained, the target comment is checked according to the sensitive word library. If it is found that the target comment contains sensitive words, it is judged that the detection is not passed, and information that the detection is not passed is prompted.

[0110] Further, the information that multiple target information audits are not passed can be packaged and sent to the administrator mailbox, and the number of target comments corresponding to the article that are not passed by the audit is written in detail in the information that the audit is not passed, so as to facilitate the administrator to count.

[0111] At this point, the process shown in Figure 2 is completed.

[0112] As can be seen from the process shown in Figure 2As shown in the flow, in the embodiment, the automatically generated target comment can be detected to avoid automatically generating some illegal information and publishing in the comment area of the article, thereby affecting the application program.

[0113] The method provided in the application is described above, and the device provided in the application is described below.

[0114] Referring to Figure 3 , Figure 3 The device for generating a comment based on article content provided in the embodiment of the application is applied to a server of an application program, as shown in the figure, the device can include: Figure 3

[0115] The article obtaining unit 301 is configured to obtain an article to be automatically filled with a comment in the application program, and detect target information of the article, wherein the target information includes an article category and an article keyword.

[0116] The comment material obtaining unit 302 is configured to search for a matching target article according to the target information, filter comments of the target article, and obtain a comment material corresponding to the search for the target information.

[0117] The target comment generating unit 303 is configured to generate a target comment according to the target information and the comment material, and send the target comment to a client of the application program, so that the client of the application program displays the target comment in a comment area of the article.

[0118] Optionally, the article obtaining unit obtaining the article to be automatically filled with a comment in the application program includes:

[0119] detecting an article displayed on the client of the application program, and determining an article with a comment number less than a threshold value as the article to be automatically filled with a comment; or

[0120] detecting an article displayed on the client of the application program, and determining an article with a value of an automatic comment filling field as the article to be automatically filled with a comment; or

[0121] receiving an externally input article, and determining the article as the article to be automatically filled with a comment.

[0122] Optionally, the matching target article in the comment material obtaining unit includes:

[0123] an article whose category matches the category included in the target information and whose content contains the article keyword.

[0124] ​Optionally, the generating a target comment unit generates a target comment according to the target information and the comment material, and further comprises an auditing unit 304 configured to audit the target comment.

[0125] If the auditing passes, it is determined to perform an operation of sending the target comment to a client of the application program, so that the client of the application program displays the target comment in a comment area of the article.

[0126] Optionally, the auditing unit further comprises, after auditing the target comment:

[0127] If the auditing does not pass, information that the auditing does not pass is output.

[0128] Optionally, the generating a target comment unit generates a target comment according to the target information and the comment material, and further comprises:

[0129] a generating a combined comment unit 305 configured to acquire a comment published in a comment area of another article of the application program, generate a combined comment according to the published comment and the target comment, and send the combined comment to the client of the application program.

[0130] Optionally, the generating a combined comment unit generates a combined comment according to the published comment and the target comment, and comprises:

[0131] after acquiring the published comment and the target comment, reediting the target comment, adding the published comment before a first character of the target comment to generate the combined comment; or

[0132] after acquiring the published comment and the target comment, reediting the target comment, adding the published comment after a last character of the target comment to generate the combined comment.

[0133] Optionally, before the generating a target comment according to the target information and the comment material, the method further comprises a detecting a blacklist unit 306 configured to detect whether a user publishing the article is in a blacklist.

[0134] If the user is in the blacklist, the operation of generating a target comment according to the target information and the comment material is not performed.

[0135] Optionally, after the detecting a blacklist unit detects whether the user publishing the article is in the blacklist, the method further comprises:

[0136] If the user is not in the blacklist, it is determined to perform the operation of generating a target comment according to the target information and the comment material.

[0137] The embodiments of the present application further provide Figure 3 The hardware structure of the device is shown in FIG. 1. Figure 4 , Figure 4 The hardware structure of the device is shown in FIG. 1. Figure 4 The hardware structure can include a processor and a machine readable storage medium storing machine executable instructions executable by the processor, and the processor is configured to execute the machine executable instructions to implement the method disclosed in the above examples of the present application.

[0138] Based on the same application concept as the above method, the embodiments of the present application further provide a machine readable storage medium, which stores computer instructions, and the computer instructions are executable by a processor to implement the method disclosed in the above examples of the present application.

[0139] For example, the machine readable storage medium can be RAM (Random Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard drive), solid state drive, any type of storage disk (such as optical disk, DVD, etc.), or similar storage medium, or combination thereof.

[0140] The system, device, module or unit illustrated in the above embodiments can be implemented by a computer chip or entity, or by a product with certain functions. A typical implementation device is a computer, and the specific form of the computer can be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0141] For the convenience of description, the above device is described as various units with functions respectively. Of course, the functions of the units can be implemented in one or more software and / or hardware in the implementation of the present application.

[0142] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system or a computer program product. Therefore, the present application can be in the form of a completely hardware embodiment, a completely software embodiment or an embodiment combining software and hardware. Moreover, the embodiments of the present application can be in the form of a computer program product implemented on one or more computer usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer usable program code.

[0143] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flowcharts and / or blocks Figure 1 means for functionally implementing the steps in one or more flowcharts and / or blocks

[0144] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flowcharts and / or blocks Figure 1 means for functionally implementing the steps in one or more flowcharts and / or blocks

[0145] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flowcharts and / or blocks Figure 1 means for functionally implementing the steps in one or more flowcharts and / or blocks

[0146] The embodiments of the present application described above are merely intended to illustrate the principles of the present application, and should not be used to limit the scope of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims

1. A method for generating comments based on article content, characterized in that, The method applied to a server of an application program comprises: obtaining an article in the application program to be automatically filled with a comment, detecting target information of the article, the target information comprising an article category and an article keyword; finding a matched target article according to the target information, screening comments of the target article to obtain a comment material corresponding to the target information; generating a target comment according to the target information and the comment material, and sending the target comment to a client of the application program, so that the client of the application program displays the target comment in a comment area of the article; after generating the target comment according to the target information and the comment material, the method further comprises: obtaining a published comment in a comment area of another article of the application program, generating a combined comment according to the published comment and the target comment, and sending the combined comment to the client of the application program.

2. The method of claim 1, wherein, The obtaining of the article in the application program to be automatically filled with a comment comprises: detecting an article displayed on the client of the application program, and determining an article with a comment number less than a threshold value as the article to be automatically filled with a comment; or detecting an article displayed on the client of the application program, and determining an article with a value of an automatic comment filling field as the article to be automatically filled with a comment; or receiving an externally input article, and determining the article as the article to be automatically filled with a comment.

3. The method of claim 1, wherein, The matched target article comprises: an article with a category matched with an article category included in the target information and an article content containing the article keyword.

4. The method of claim 1, wherein, After the generating of the target comment according to the target information and the comment material, the method further comprises: auditing the target comment; if the auditing is passed, determining to perform the operation of sending the target comment to the client of the application program, so that the client of the application program displays the target comment in the comment area of the article.

5. The method of claim 4, wherein, After the auditing of the target comment, the method further comprises: if the auditing is not passed, outputting information of the auditing not being passed.

6. The method of claim 1, wherein, The generating of the combined comment according to the published comment and the target comment comprises: after obtaining the published comment and the target comment, re-editing the target comment, and adding the published comment before a first character of the target comment to generate the combined comment; or after obtaining the published comment and the target comment, re-editing the target comment, and adding the published comment after a last character of the target comment to generate the combined comment.

7. The method of claim 1, wherein, Before the generating of the target comment according to the target information and the comment material, the method further comprises: detecting whether a user publishing the article is in a blacklist; if the user is in the blacklist, not performing the operation of generating the target comment according to the target information and the comment material.

8. The method according to claim 7, after the detecting whether the user publishing the article is in the blacklist, the method further comprises: if the user is not in the blacklist, determining to perform the operation of generating the target comment according to the target information and the comment material.

9. An electronic device, comprising: The electronic device comprises: one or more processors; A machine-readable storage medium for storing one or more computer-readable instructions that, when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-8.

10. A machine-readable storage medium, characterized in that, A machine-readable storage medium having stored thereon a program which, when executed by a processor, implements the method of generating a review based on content of an article of any one of claims 1-8.

Citation Information

Patent Citations

  • Comment content generation method and device

    CN111723184A