Article generation method and device, equipment and storage medium

By obtaining industry types, pushing article information, performing information extraction and sentiment analysis, and generating article templates, it solves the problem of timeliness and representativeness of large model generation reports, achieves efficient and accurate article generation, and reduces the creative burden.

CN118607502APending Publication Date: 2024-09-06CHINA MERCHANTS BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410794079.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

When the existing technology uses large models to generate industry research reports, it is difficult to ensure the timeliness of the article and the representation of the author's views, resulting in low writing efficiency and the need for frequent revisions.

Method used

By obtaining the industry types that target users pay attention to, push relevant article information, perform information extraction, sentiment analysis and train article generation models, generate article templates, and generate target articles based on the latest historical article information and user-selected article information, so as to Ensure timeliness and representativeness.

Benefits of technology

It improves the timeliness and representativeness of article generation, reduces the time cost of manual summarization, improves writing efficiency, and reduces the creative burden.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118607502A
    Figure CN118607502A
Patent Text Reader

Abstract

The invention discloses an article generation method and device, equipment and a storage medium, and relates to the technical field of information processing, and the article generation method comprises the steps: obtaining an industry type concerned by a target user; pushing first article information corresponding to the industry type to the target user to obtain second article information; the second article information is input into an article generation model, an article template output by the article generation model is obtained, and the article generation model is obtained by conducting iterative training according to historical article information within preset time; and generating a target article based on the second article information and the article template. According to the method, the article template which is generated according to the article selected by the target user and is consistent with the idea of the target user is output through the large model, so that the target article is prevented from being separated from the viewpoint of an author himself, meanwhile, the time cost of manually summarizing texts is saved by adding the large model, the writing efficiency is quickly improved, and the creation burden is relieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information processing technology, and in particular to an article generation method, device, equipment and storage medium. Background Art

[0002] Industry research reports are highly professional and timely articles. Traditional manual writing requires the author to consult a large number of peer articles, data, various policies and news, and put forward his own views based on a full summary of the viewpoints of other articles. It is usually necessary to collect a lot of data and draw professional graphs and tables to support his own views. This requires a lot of time and energy to write articles, resulting in low writing efficiency.

[0003] Since the release of the ChatGPT model, it has been widely used in the generation of various articles with its powerful text generation and summarization capabilities. However, although the writing efficiency has been improved by directly using the big model to generate industry research reports, the writing quality is not very good. This is because some industries have very high requirements for the timeliness of data, such as the financial industry. The data information of the general big model is often too backward, and the generated articles are often outdated. At the same time, due to the complexity of the training data, the views of the output article cannot represent the author's own views, and the author may need to make multiple revisions. Summary of the invention

[0004] The main purpose of this application is to provide an article generation method, device, equipment and storage medium, aiming to prevent the target article from deviating from the author's own point of view, while saving the time cost of manually summarizing the text, thereby quickly improving writing efficiency and reducing the burden of creation.

[0005] To achieve the above purpose, the present application proposes a method for generating an article, wherein the method comprises:

[0006] Get the industry types that target users are interested in;

[0007] Pushing the first article information corresponding to the industry type to the target user to obtain the second article information;

[0008] Inputting the second article information into an article generation model to obtain an article template output by the article generation model, wherein the article generation model is obtained by iterative training based on historical article information within a preset time;

[0009] A target article is generated based on the second article information and the article template.

[0010] In one embodiment, before obtaining the industry type that the target user is interested in, the method further includes:

[0011] Get historical article information within a preset time;

[0012] Performing information extraction and analysis on the historical article information to obtain article related information, article chart snapshots, and article interpretation minutes;

[0013] Performing sentiment analysis on the historical article information to determine positive and negative evaluations of the historical article information;

[0014] An article generation model is trained based on the article related information, the article chart snapshots, the article interpretation minutes and the positive and negative comments.

[0015] In one embodiment, the performing sentiment analysis on the historical article information to determine the positive and negative evaluations of the historical article information includes:

[0016] Performing text segmentation on the historical article information to obtain a number of words;

[0017] Calculate the total weight value of each word;

[0018] Based on the total weight value, a positive or negative evaluation of the historical article information is determined.

[0019] In one embodiment, generating a target article based on the second article information and the article template includes:

[0020] Pushing the second article information to the target user to obtain the second article information selected by the target user;

[0021] Based on the second article information, obtaining a summary of article viewpoints and a chart arrangement setting of an article chart snapshot corresponding to the third article information;

[0022] The target article is generated based on the article viewpoint summary, the chart arrangement settings of the article chart snapshot, and the article template.

[0023] In one embodiment, the step of obtaining the article viewpoint summary and the chart arrangement setting of the article chart snapshot corresponding to the third article information based on the second article information includes:

[0024] Performing similarity matching between the second article information and a preset article database to obtain the third article information;

[0025] Inputting the third article information into the article summary generation model to obtain the article viewpoint summary output by the article summary generation model;

[0026] The article chart snapshot in the third article information is pushed to the target user to determine the chart layout setting of the article chart snapshot.

[0027] In one embodiment, generating the target article based on the article viewpoint summary, the chart arrangement setting of the article chart snapshot, and the article template includes:

[0028] Associating and combining the article viewpoint summary and the article template to generate article content;

[0029] According to the chart arrangement setting, the article chart snapshot is set in the article content to generate an initial article;

[0030] The initial article is displayed to the target user so that the target user can make adjustments to obtain the target article.

[0031] In one embodiment, after generating the target article based on the second article information and the article template, the method further includes:

[0032] Obtaining the file settings selected by the target user;

[0033] Based on the file settings, export the target article;

[0034] Pushing the exported target article to the target user; and / or,

[0035] The exported target article will be published for industry personnel to review.

[0036] In addition, to achieve the above purpose, the present application also proposes an article generation device, the article generation device comprising:

[0037] The acquisition module is used to obtain the industry types that the target users are interested in;

[0038] A push module, used for pushing the first article information corresponding to the industry type to the target user to obtain the second article information;

[0039] An output module, used for inputting the second article information into an article generation model to obtain an article template output by the article generation model, wherein the article generation model is obtained by iterative training based on historical article information within a preset time;

[0040] A generating module is used to generate a target article based on the second article information and the article template.

[0041] In addition, to achieve the above-mentioned purpose, the present application also proposes an article generation device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the article generation method as described above.

[0042] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the article generation method described above are implemented.

[0043] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the article generation method described above are implemented.

[0044] The present application provides an article generation method, apparatus, device and storage medium. The article generation method obtains the industry type that the target user is interested in, and then pushes the first article information corresponding to the industry type to the target user to obtain the second article information, and then inputs the second article information into an article generation model to obtain an article template output by the article generation model, wherein the article generation model is obtained by iterative training based on historical article information within a preset time, and then generates a target article based on the second article information and the article template, thereby preventing the target article from deviating from the author's own point of view, and at the same time saving the time cost of manually summarizing the text by adding a large model, thereby quickly improving the writing efficiency and reducing the creation burden. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0046] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0047] Figure 1 A schematic diagram of a process flow provided for Example 1 of the method for generating an article of this application;

[0048] Figure 2 A schematic diagram of the process provided for Example 2 of the method for generating an article of this application;

[0049] Figure 3 A brief process sequence diagram of the method for generating the article in this application;

[0050] Figure 4 This is a schematic diagram of the module structure of the article generation device according to the embodiment of the present application;

[0051] Figure 5Schematic diagram of the device structure of the hardware operating environment involved in the article generation method in the embodiment of the present application.

[0052] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0053] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0054] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0055] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a big data service platform, an article generation system, etc. The following takes the article generation system as an example to illustrate this embodiment and the following embodiments.

[0056] Based on this, the first embodiment of the present application provides an article generation method, referring to Figure 1 , Figure 1 A flowchart diagram of the first embodiment of the method for generating an article of this application is provided.

[0057] In this embodiment, the article generation method includes steps S11 to S14:

[0058] Step S11, obtaining the industry type that the target user is interested in;

[0059] It should be noted that the target users refer to users who need to write articles, such as practitioners in the financial industry, editors of public account tweets, etc., and there is no restriction here.

[0060] It should be further explained that industry types include finance, communications, computer industry, etc., and can be further refined according to the general industry types. For example, the computer industry includes artificial intelligence, traditional languages, front-end, etc., and there is no restriction here.

[0061] Specifically, the industry type that the target user is interested in can be determined by obtaining the interface options selected or checked by the target user, or by the chat content between the target user and a voice chat robot (such as ChatGPT, etc.), or by querying the article types that the target user usually views more frequently in the article generation system. This can be set according to actual conditions and is not restricted here.

[0062] Step S12, pushing the first article information corresponding to the industry type to the target user to obtain the second article information;

[0063] It should be noted that the first article information refers to the article matching the industry type and the information of the article, which contains information corresponding to one or more articles, including article content, article-related information, article chart snapshots, positive and negative comments, and article interpretation minutes.

[0064] It should be further explained that the second article information refers to the article in the first article information that meets the needs of the target user and the information of the article. For example, if the first article information contains article A, article B, and article C, and the target user selects article B, then the second article information is article B and the information of article B.

[0065] Specifically, according to the industry type, the first article information corresponding to the industry type is queried and obtained, wherein the query can be performed through a preset database, and then the first article information is pushed to the target user. For example, the first article information is pushed to the target user in reverse order according to the article release time, and can also be pushed in reverse order according to the number of article likes. There is no restriction on the push method here, and it can be set according to actual conditions, so that the target user can view the first article information, wherein the user can directly click on the article link to jump to the original text for viewing, or directly view the article interpretation minutes and other article information, so that customers can quickly understand the basic viewpoints, industry epitomes, data sources and publishing authors contained in each article in the first article information, and then select the second article information that meets the needs from the first article information.

[0066] Step S13, inputting the second article information into an article generation model to obtain an article template output by the article generation model, wherein the article generation model is obtained by iterative training based on historical article information within a preset time;

[0067] It should be noted that the article generation model refers to a large model for generating articles, which can be a model trained by various methods such as deep learning and machine learning. The article template refers to an article structure or article framework, including titles, paragraphs, citation formats, image locations, fonts and styles, etc., in order to provide a standard writing basis for writing articles.

[0068] It should be further explained that the preset time can be set according to the actual situation. For example, the preset time can be set to the last three days, the last week, the last month, etc., to obtain the latest professional articles, thereby improving the timeliness of the generated articles. Historical article information refers to historically published articles and information about the articles, including article content, article related information, article chart snapshots, positive and negative comments, and article interpretation minutes.

[0069] Step S14: Generate a target article based on the second article information and the article template.

[0070] It should be noted that the target article refers to an article that meets the needs of the target user and is jointly created by the big model and the target user, including the article content and related charts.

[0071] Specifically, the second article information is pushed to the target user to obtain the second article information selected by the target user, and then based on the second article information, the article viewpoint summary and the chart layout settings of the article chart snapshot corresponding to the third article information are obtained, thereby generating the target article based on the article viewpoint summary, the chart layout settings of the article chart snapshot and the article template.

[0072] The embodiment of the present invention obtains the industry type that the target user is interested in, and then pushes the first article information corresponding to the industry type to the target user to obtain the second article information, and then inputs the second article information into the article generation model to obtain the article template output by the article generation model, wherein the article generation model is obtained by iterative training based on the historical article information within a preset time, and then generates the target article based on the second article information and the article template, so as to prevent the target article from deviating from the author's own point of view, and at the same time saves the time cost of manually summarizing the text by adding a large model, thereby quickly improving the writing efficiency and reducing the creation burden.

[0073] Based on this, Example 2 of the present application provides an article generation method, referring to Figure 2 , Figure 2 A flow chart of the second embodiment of the method for generating articles of this application is provided.

[0074] In a feasible implementation manner, before obtaining the industry type that the target user is interested in, the method further includes:

[0075] Step S21, obtaining historical article information within a preset time;

[0076] It should be noted that the preset time can be set according to actual conditions. For example, the preset time can be set to the last day, the last three days, the last week, etc., to obtain the latest articles in the industry, improve the timeliness of generated articles, and provide authors with the latest views for reference.

[0077] Specifically, historical article information within a preset time period, such as the latest published industry research reports and professional articles, can be obtained through manual import, connection to external interfaces, and data crawlers (a data crawler is a program that automatically grabs data from the Internet and can automatically crawl the required data according to preset rules and algorithms). There is no restriction here.

[0078] Step S22, extracting and analyzing the historical article information to obtain article-related information, article chart snapshots, and article interpretation minutes;

[0079] It should be noted that article-related information refers to information related to the article, including article title, author information, publication time, article source, article content, etc. Article chart snapshots refer to snapshots of non-text content such as pictures or tables contained in the article and chart-related information, including chart title, chart type, chart snapshot, and chart source, etc.

[0080] It should be further explained that the article interpretation minutes refer to the minutes obtained by interpreting and analyzing the viewpoints and other information in the article content, including article overview, interpretation of key points, argument evaluation, data analysis (analysis of the data and evidence provided in the article, explanation of their significance and impact), conclusion evaluation (evaluation and reflection on the conclusion of the article, discussion of its implications and impact on related fields) and the views of the original author.

[0081] Specifically, information extraction and analysis is performed on the historical article information. For example, the keywords and key sentences in the historical article information are extracted, and based on a preset semantic analysis algorithm, the correlation between the keywords and key sentences is determined to obtain article-related information, article chart snapshots, and article interpretation minutes. For another example, the historical article information is preprocessed, and then the text content is extracted through a large model, and the industry to which the article belongs, the companies included, and other information are identified to obtain article-related information. At the same time, pictures, tables, etc. in the article are extracted to generate article chart snapshots, and a text interpretation minutes is generated based on the text content. No limitation is made here.

[0082] Step S23, performing sentiment analysis on the historical article information to determine positive and negative evaluations of the historical article information;

[0083] It should be noted that positive and negative comments refer to the emotional value orientation in an article, which aims to reflect whether the original author's evaluation of a certain argument is positive, negative, or neutral, so that users can quickly understand the original author's point of view.

[0084] Specifically, the historical article information is segmented to obtain a number of words, and then the total weight value of each of the words is calculated, so as to determine the positive or negative evaluation of the historical article information based on the total weight value.

[0085] Step S24, training an article generation model based on the article related information, the article chart snapshot, the article interpretation minutes and the positive and negative comments.

[0086] It should be noted that before training the article generation model, the article-related information, the article chart snapshot, the article interpretation minutes, and the positive and negative comments are vectorized. For example, the article-related information, the article chart snapshot, the article interpretation minutes, and the positive and negative comments are preprocessed and then vectorized through the embedding function of OpenAI, so that the vectorized article-related information, article chart snapshot, article interpretation minutes, and positive and negative comments are stored in the local database to ensure that the latest and most relevant historical article information is obtained, and the historical article information is deeply processed and analyzed to help users better understand and evaluate the content of the article, save time and improve the efficiency of obtaining information, which can further improve the timeliness, accuracy and quality of article generation, and enhance user experience and satisfaction.

[0087] Specifically, the training process of the article generation model is: obtaining historical article information within a preset time, and then performing data preprocessing on the historical article information, such as data cleaning, normalization, etc., so as to input the historical article information and the sample labels corresponding to the historical article information into the initial article generation model, and obtain the predicted value output by the initial article generation model. For example, the article-related information, article chart snapshots, article interpretation minutes, and positive and negative evaluations in the historical article information are input into the initial article generation model to obtain the article generation model through diversified data training, and then based on the predicted value and the sample label, the model loss value is calculated using the loss function. In this embodiment, the loss function can be set according to actual needs and is not specifically limited here. After the model loss value is calculated, the training process ends, and the error back propagation algorithm is used to update the model parameters in the initial article generation model, and then the next training is performed. During the training process, it is determined whether the updated initial article generation model meets the preset training end condition. If it meets the condition, the updated initial article generation model is used as the article generation model. If it does not meet the condition, the model training continues, wherein the preset training end condition includes loss convergence and reaching the maximum iteration number threshold.

[0088] Furthermore, in order to maintain the high timeliness of generated articles, the historical article information for model training needs to be continuously updated, wherein the updated historical article information can be added to the original model for iterative training, or a new round of model training can be directly performed based on the updated historical article information, without any restriction here.

[0089] In addition, the article generation model can be continuously optimized by combining user feedback and automatic evaluation mechanisms. By regularly evaluating indicators such as the quality of generated articles and user satisfaction, the model can adjust and optimize itself based on these feedbacks, gradually improving the effect and quality of article generation.

[0090] This embodiment obtains historical articles within a preset time, and then performs information extraction and analysis on the historical article information to obtain article related information, article chart snapshots, and article interpretation minutes, thereby performing sentiment analysis on the historical article information, determining positive and negative evaluations of the historical article information, and then training an article generation model based on the article related information, the article chart snapshots, the article interpretation minutes, and the positive and negative evaluations, thereby ensuring through multi-dimensional data that the content output by the article generation model is accurate, comprehensive, and in-depth, while maintaining the timeliness and professionalism of the article.

[0091] In a feasible implementation manner, performing sentiment analysis on the historical article information to determine the positive and negative evaluations of the historical article information includes:

[0092] Step S31, performing text segmentation on the historical article information to obtain a number of words;

[0093] It should be noted that text segmentation refers to the process of dividing continuous natural language text into a series of meaningful terms.

[0094] Specifically, a hybrid model of dictionary methods, statistical methods and deep learning methods can be used to perform text segmentation on the historical article information to obtain a number of words. Word embedding models (such as Word2Vec, GloVe) and Transformer-based models (such as BERT—Bidirectional Encoder Representations from Transformers) can also be used for text segmentation, etc., without limitation here.

[0095] In addition, before using the model for text segmentation, when training the large model, it is necessary to select the corresponding professional vocabulary according to the industry type. For example, when the industry type is the financial industry, use the professional vocabulary and knowledge base corresponding to the financial industry to train the large model to increase the accuracy and professionalism of text segmentation.

[0096] Step S32, calculating and obtaining the total weight value of each of the words;

[0097] It should be noted that the total weight value refers to the total value obtained after calculating the weight values ​​corresponding to the words in an article.

[0098] Specifically, the weight value of any word is determined, and then the total weight value of each word can be obtained by direct addition, or by weighted calculation, etc. The calculation method is not limited here and can be set according to actual conditions.

[0099] Step S32: determining the positive or negative evaluation of the historical article information based on the total weight value.

[0100] Specifically, in one embodiment, the total weight value is input into a functional interface in pycharm to determine the positive and negative evaluations of the historical article information returned by pycharm; in another embodiment, the total weight value can also be matched with a preset weight range to determine the positive and negative evaluations of the historical article information.

[0101] This embodiment performs text segmentation on the historical article information to obtain a number of words, and then calculates the total weight value of each of the words, thereby determining the positive and negative evaluation of the historical article information based on the total weight value, thereby making the sentiment analysis of the historical article information more accurate and objective, helping to more comprehensively understand the views and sentiment tendencies of the article, and providing more valuable references for subsequent article generation. At the same time, performing sentiment analysis in an automated manner can greatly improve processing efficiency and reduce the cost and error of manual analysis.

[0102] In a feasible implementation manner, generating a target article based on the second article information and the article template includes:

[0103] Step S41, based on the second article information, obtaining the article viewpoint summary and the chart arrangement settings of the article chart snapshot corresponding to the third article information;

[0104] It should be noted that the third article information refers to an article with a high degree of similarity to the second article information and the information of the article, which contains information corresponding to one or more articles, including article content, article-related information, article chart snapshots, positive and negative comments, and article interpretation minutes.

[0105] It should be further explained that the article viewpoint summary refers to the content obtained by summarizing the viewpoints of the article content, which can be described in the form of a whole paragraph or in the form of a point summary, without limitation. In addition, the chart layout setting refers to the setting of the charts that need to be interspersed in the article content, such as zooming in and out, rotating and cropping, and the layout position in the article.

[0106] Specifically, the second article information is matched with a preset article database for similarity to obtain the third article information, and then the third article information is input into an article summary generation model to obtain an article viewpoint summary output by the article summary generation model, thereby pushing the article chart snapshot in the third article information to the target user to determine the chart layout settings of the article chart snapshot.

[0107] Step S42, generating the target article based on the article viewpoint summary, the chart arrangement settings of the article chart snapshot, and the article template.

[0108] Specifically, the article viewpoint summary and the article template are associated and combined to generate article content, and then according to the chart layout setting, the article chart snapshot is set in the article content to generate an initial article, and the initial article is displayed to the target user for the target user to adjust and obtain the target article.

[0109] This embodiment obtains the article viewpoint summary and the chart layout settings of the article chart snapshot corresponding to the third article information based on the second article information, and then generates the target article based on the article viewpoint summary, the chart layout settings of the article chart snapshot and the article template, thereby ensuring that the generated target article meets the expectations and requirements of the target user while making full use of the viewpoints of existing articles, thereby effectively improving the quality and efficiency of article generation.

[0110] In a feasible implementation manner, the step of obtaining the article viewpoint summary and the chart arrangement setting of the article chart snapshot corresponding to the third article information based on the second article information includes:

[0111] Step S51, performing similarity matching between the second article information and a preset article database to obtain the third article information;

[0112] It should be noted that the preset article database refers to the storage of recently published article information that matches the industry type, which can be stored through direct content. In order to improve the efficiency of similarity matching, the article information to be stored can also be converted into vectors and then stored. There is no restriction here. At the same time, ensure that the articles in the database are classified and indexed to facilitate fast retrieval and similarity matching.

[0113] Specifically, the second article information is matched with a preset article database for similarity, such as by selecting a similarity calculation algorithm to evaluate the similarity between the second article and the articles in the database, such as cosine similarity, Jaccard similarity or edit distance, etc., which are not limited here, to obtain the third article information.

[0114] Step S52, inputting the third article information into an article summary generation model to obtain an article viewpoint summary output by the article summary generation model;

[0115] It should be noted that the article summary generation model aims to automatically extract key information from long articles and generate concise summaries. It usually uses natural language processing (NLP) technology to analyze the content, structure, and language features of the article, including text analysis, machine learning, and deep learning algorithms, so as to automatically identify and extract main ideas, arguments, and key information.

[0116] Specifically, the third article information is input into the article summary generation model to obtain the article viewpoint summary output by the article summary generation model, wherein the training process of the article summary generation model includes: obtaining historical article information, and then performing data preprocessing on the historical article information, such as data cleaning, normalization, etc., so as to input the historical article information and the sample label corresponding to the historical article information into the initial article summary generation model, obtain the predicted value output by the initial article summary generation model, and then based on the predicted value and the sample label, use the loss function to calculate the model loss value. In this embodiment, the loss function can be set according to actual needs and is not specifically limited here. After calculating the model loss value, the training process ends, and then the error back propagation algorithm is used to update the model parameters in the initial article summary generation model, and then the next training is performed. During the training process, it is determined whether the updated initial article summary generation model meets the preset training end condition. If it meets the condition, the updated initial article summary generation model is used as the article summary generation model. If it does not meet the condition, the model training continues, wherein the preset training end condition includes loss convergence and reaching the maximum number of iterations.

[0117] Step S53: Push the article chart snapshot in the third article information to the target user to determine the chart layout setting of the article chart snapshot.

[0118] Specifically, the article chart snapshot in the third article information is pushed to the target user, wherein the pushing can be performed through interface display and the like to determine the chart layout settings corresponding to the article chart snapshot that meets the needs of the target user, wherein each chart in the article chart snapshot can be set individually or in batches, and there is no limitation here.

[0119] In this embodiment, the third article information is obtained by performing similarity matching between the second article information and a preset article database, and then the third article information is input into an article summary generation model to obtain an article viewpoint summary output by the article summary generation model, thereby pushing the article chart snapshot in the third article information to the target user to determine the chart layout settings of the article chart snapshot, and then automatically extracting the core viewpoints and summaries of articles similar to the author's viewpoints, thereby reducing the pressure on users to write articles and avoiding the tediousness of manually summarizing large amounts of text. At the same time, the target user can adjust the chart layout settings of the article chart snapshot according to their own needs and preferences, so that the generated target article is more in line with personal style and reading habits, thereby improving the efficiency and quality of article generation.

[0120] In a feasible implementation manner, generating the target article based on the article viewpoint summary, the chart arrangement setting of the article chart snapshot, and the article template includes:

[0121] Step S61, associating and combining the article viewpoint summary and the article template to generate article content;

[0122] It should be noted that the article content refers to the text content including information such as the article title, article subtitle, article body and article author.

[0123] Specifically, the article summary and the article template can be associated and combined through a semantic analysis model or preset association rules to generate article content. For example, a natural language processing (NLP) model can be used to map each main argument in the article summary with the corresponding part in the article template to ensure that the generated content matches the arguments in the opinion summary and meets the structural requirements of the template.

[0124] Furthermore, since there are some transitional paragraphs or article styles included in the article template, and there is no similar content in the article summary, the article content needs to be filled and adjusted. The large model can refer to the article content of the second article information and the third article information to fill in the blank parts in the article template. At the same time, the article content can also be adjusted to adapt to the format and style requirements of the template, such as adjusting the paragraph length, using the specified title format, etc.

[0125] In addition, after generating the article content, it is also necessary to check the coherence and consistency of the article content, such as checking whether the generated article content is logically coherent, whether the arguments are consistent, etc., to prevent the formation of specious article viewpoints.

[0126] Step S62, according to the chart arrangement setting, setting the article chart snapshot in the article content to generate an initial article;

[0127] It should be noted that the initial article refers to the initial article that is quickly generated and conforms to the user's point of view through the inductive and summarizing capabilities of the large model.

[0128] Specifically, the chart layout setting selected by the target user is read, and the article chart snapshot is set in the article content to generate an initial article. For example, if the chart layout setting selected by the target user is to be enlarged 0.25 times and placed after the third paragraph of the article body, the article chart snapshot is set in the article content according to the chart layout setting.

[0129] In addition, the quality of the initial article may be evaluated, for example, by using natural language processing technology to detect the grammar, semantics, etc. of the article, or by scoring and rating the article through manual review.

[0130] During the quality assessment process, if the target article is found to have quality problems, such as typos, incoherent sentences, etc., such quality problems will be collected so that the system can correct and optimize the article based on the quality problems, thereby ensuring that the quality of the article meets the preset standards, thereby effectively improving user experience and satisfaction.

[0131] Step S63, displaying the initial article to the target user, so that the target user can adjust and obtain the target article.

[0132] Specifically, the initial article can be displayed to the target user through the article editing mode in the APP, so that the target user can adjust it to obtain the target article. Among them, a variety of editing methods can be provided to the target user, such as rich text layout (Rich Text Layout, including font size, style (such as bold, italic), color, line spacing, paragraph indentation, alignment and other format settings) and addition, deletion, modification and removal of article content and article graphics, etc., which are not limited here and can be set according to actual conditions.

[0133] This embodiment generates article content by associating and combining the article viewpoint summary and the article template, and then sets the article chart snapshot in the article content according to the chart layout setting to generate an initial article, thereby displaying the initial article to the target user for the target user to adjust and obtain the target article, so that the target user only needs to make simple adjustments and improvements to obtain the final target article, further meeting the personalized needs of the target user, thereby effectively improving the writing quality and efficiency of the article, increasing the readability and professionalism of the article, and achieving high-quality article creation.

[0134] In a feasible implementation manner, after generating the target article based on the second article information and the article template, the method further includes:

[0135] Step S71, obtaining the file settings selected by the target user;

[0136] It should be noted that file settings refer to the settings for the file containing the target article, including file format settings (such as PDF format, doc format, JPG format, etc.), file encryption settings (such as password encryption, document encryption, etc.) and file watermark settings, etc., and are not restricted here.

[0137] Specifically, file setting options can be provided through interface buttons, menu items or other controls so that the target user can select the desired file settings, thereby obtaining the file settings selected by the target user. There is no restriction on the acquisition method, which can be set according to actual conditions.

[0138] Step S72, exporting the target article based on the file settings;

[0139] Specifically, the target article is set according to the file settings selected by the target user. For example, if the file setting is a PDF file format with a "Company A" watermark, the target article is set according to the file format and watermark. At the same time, the interface of the set target article can also be previewed for the target user to view the effect of the current file settings, so as to prevent the target user from finding that the file settings do not meet the requirements after exporting the file and need to reset and export, thereby effectively improving the export efficiency. Further, the set target article is exported.

[0140] Step S73, pushing the exported target article to the target user; and / or,

[0141] Specifically, the push can be performed through a variety of methods such as chat tools, public accounts, websites, emails, APPs, and mini-programs, and can be set according to actual conditions so that the target user can save files.

[0142] In addition, the target user can also share the target article through the interface button, etc., which is not restricted here.

[0143] Step S74, publishing the exported target article for industry personnel to review.

[0144] Specifically, the publishing platform selected by the user is obtained, and then the publishing interface of the publishing platform is connected, so that the target article is published through the publishing interface for viewing by industry personnel.

[0145] This embodiment obtains the file settings selected by the target user, and then exports the target article based on the file settings, thereby pushing the exported target article to the target user. In addition, the exported target article is published for industry personnel to view, thereby providing flexible file setting options, so that the target user can personalize the article according to personal needs. At the same time, it can expand the influence of the target article, increase the dissemination of the article within the industry, and improve the value of the article, thereby effectively improving the user experience.

[0146] For example, to help understand the implementation process of the article generation method, please refer to Figure 3 , Figure 3 A brief flow chart of the method for generating articles in this application is provided.

[0147] It should be noted that the examples in the figure are only used to understand the present application and do not constitute a limitation on the method for generating articles in the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0148] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0149] This application also provides an article generation device, please refer to Figure 4 , the article generating device comprises:

[0150] An acquisition module 41 is used to acquire the industry type that the target user is interested in;

[0151] A push module 42, configured to push the first article information corresponding to the industry type to the target user to obtain the second article information;

[0152] An output module 43, used for inputting the second article information into an article generation model to obtain an article template output by the article generation model, wherein the article generation model is obtained by iterative training based on historical article information within a preset time;

[0153] The generating module 44 is used to generate a target article based on the second article information and the article template.

[0154] The article generation device is also used to:

[0155] Get historical articles within a preset time;

[0156] Performing information extraction and analysis on the historical article information to obtain article related information, article chart snapshots, and article interpretation minutes;

[0157] Performing sentiment analysis on the historical article information to determine positive and negative evaluations of the historical article information;

[0158] An article generation model is trained based on the article related information, the article chart snapshots, the article interpretation minutes and the positive and negative comments.

[0159] The article generation device is also used to:

[0160] Performing text segmentation on the historical article information to obtain a number of words;

[0161] Calculate the total weight value of each word;

[0162] Based on the total weight value, a positive or negative evaluation of the historical article information is determined.

[0163] The article generation device is also used to:

[0164] Pushing the second article information to the target user to obtain the second article information selected by the target user;

[0165] Based on the second article information, obtaining a summary of article viewpoints and a chart arrangement setting of an article chart snapshot corresponding to the third article information;

[0166] The target article is generated based on the article viewpoint summary, the chart arrangement settings of the article chart snapshot, and the article template.

[0167] The article generation device is also used to:

[0168] Performing similarity matching between the second article information and a preset article database to obtain the third article information;

[0169] Inputting the third article information into the article summary generation model to obtain the article viewpoint summary output by the article summary generation model;

[0170] The article chart snapshot in the third article information is pushed to the target user to determine the chart layout setting of the article chart snapshot.

[0171] The article generation device is also used to:

[0172] Associating and combining the article viewpoint summary and the article template to generate article content;

[0173] According to the chart arrangement setting, the article chart snapshot is set in the article content to generate an initial article;

[0174] The initial article is displayed to the target user so that the target user can make adjustments to obtain the target article.

[0175] The article generation device is also used to:

[0176] Obtaining the file settings selected by the target user;

[0177] Based on the file settings, export the target article;

[0178] Pushing the exported target article to the target user; and / or,

[0179] The exported target article will be published for industry personnel to review.

[0180] The article generation device provided by the present application adopts the article generation method in the above embodiment, which can solve the technical problems corresponding to those in the background technology. Compared with the prior art, the beneficial effects of the article generation device provided by the present application are the same as the beneficial effects of the article generation method provided by the above embodiment, and the other technical features in the article generation device are the same as the features disclosed in the above embodiment method, which will not be described in detail here.

[0181] The present application provides an article generation device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the article generation method in the above-mentioned embodiment one.

[0182] Reference below Figure 5, which shows a schematic diagram of the structure of an article generation device suitable for implementing the embodiment of the present application. The article generation device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The article generation device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0183] like Figure 5 As shown, the article generating device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the article generating device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the article generation device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows an article generation device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.

[0184] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0185] The article generation device provided by the present application adopts the article generation method in the above embodiment, which can solve the technical problems corresponding to those in the background technology. Compared with the prior art, the beneficial effects of the article generation device provided by the present application are the same as the beneficial effects of the article generation method provided by the above embodiment, and the other technical features in the article generation device are the same as the features disclosed in the method of the previous embodiment, which will not be described in detail here.

[0186] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0187] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0188] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the article generation method in the above-mentioned embodiment.

[0189] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0190] The computer-readable storage medium may be included in the article generating device; or may exist independently without being assembled into the article generating device.

[0191] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the article generating device, the article generating device:

[0192] Get the industry types that target users are interested in;

[0193] Pushing the first article information corresponding to the industry type to the target user to obtain the second article information;

[0194] Inputting the second article information into an article generation model to obtain an article template output by the article generation model, wherein the article generation model is obtained by iterative training based on historical article information within a preset time;

[0195] A target article is generated based on the second article information and the article template.

[0196] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

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

[0198] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0199] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned article generation method, and can solve the technical problems corresponding to those in the background technology. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the article generation method provided in the above-mentioned embodiment, and will not be described in detail here.

[0200] An embodiment of the present application provides a computer program product, including a computer program, which implements the steps of the article generation method as described above when executed by a processor.

[0201] The computer program product provided in this application can solve the technical problems corresponding to those in the background technology. Compared with the prior art, the beneficial effects of the computer program product provided in the embodiment of this application are the same as the beneficial effects of the article generation method provided in the above embodiment, which will not be repeated here.

[0202] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A method for generating an article, characterized in that: include: Get the industry types that target users are interested in; Pushing the first article information corresponding to the industry type to the target user to obtain the second article information; Inputting the second article information into an article generation model to obtain an article template output by the article generation model, wherein the article generation model is obtained by iterative training based on historical article information within a preset time; A target article is generated based on the second article information and the article template.

2. The article generation method according to claim 1, characterized in that: Before obtaining the industry types that the target users are interested in, the following steps are also included: Get historical article information within a preset time; Performing information extraction and analysis on the historical article information to obtain article related information, article chart snapshots, and article interpretation minutes; Performing sentiment analysis on the historical article information to determine positive and negative evaluations of the historical article information; An article generation model is trained based on the article related information, the article chart snapshots, the article interpretation minutes and the positive and negative comments.

3. The article generation method according to claim 2, characterized in that: The performing sentiment analysis on the historical article information to determine the positive and negative evaluations of the historical article information includes: Performing text segmentation on the historical article information to obtain a number of words; Calculate the total weight value of each word; Based on the total weight value, a positive or negative evaluation of the historical article information is determined.

4. The article generation method according to claim 1, characterized in that: The generating a target article based on the second article information and the article template includes: Based on the second article information, obtaining a summary of article viewpoints and a chart arrangement setting of an article chart snapshot corresponding to the third article information; The target article is generated based on the article viewpoint summary, the chart arrangement settings of the article chart snapshot, and the article template.

5. The article generation method according to claim 4, characterized in that: The step of obtaining the article viewpoint summary and the chart arrangement setting of the article chart snapshot corresponding to the third article information based on the second article information includes: Performing similarity matching between the second article information and a preset article database to obtain the third article information; Inputting the third article information into the article summary generation model to obtain the article viewpoint summary output by the article summary generation model; The article chart snapshot in the third article information is pushed to the target user to determine the chart layout setting of the article chart snapshot.

6. The article generation method according to claim 4, characterized in that: The generating the target article based on the article viewpoint summary, the chart arrangement setting of the article chart snapshot and the article template comprises: Associating and combining the article viewpoint summary and the article template to generate article content; According to the chart arrangement setting, the article chart snapshot is set in the article content to generate an initial article; The initial article is displayed to the target user so that the target user can make adjustments to obtain the target article.

7. The article generation method according to claim 1, characterized in that: After generating the target article based on the second article information and the article template, the method further includes: Obtaining the file settings selected by the target user; Based on the file settings, export the target article; Pushing the exported target article to the target user; and / or, The exported target article will be published for industry personnel to review.

8. An article generating device, characterized in that: include: The acquisition module is used to obtain the industry types that the target users are interested in; A push module, used for pushing the first article information corresponding to the industry type to the target user to obtain the second article information; An output module, used for inputting the second article information into an article generation model to obtain an article template output by the article generation model, wherein the article generation model is obtained by iterative training based on historical article information within a preset time; A generating module is used to generate a target article based on the second article information and the article template.

9. An article generating device, characterized in that: The article generating device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the article generating method according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the article generation method according to any one of claims 1 to 7 are implemented.