Article generation method and device, storage medium and terminal
By acquiring user input, the system automatically determines article features and material templates, solving the problem of quickly generating high-quality personalized articles and achieving efficient and personalized article generation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING QIHOOD TECHNOLOGY CO LTD
- Filing Date
- 2024-12-03
- Publication Date
- 2026-06-05
AI Technical Summary
Existing technologies struggle to quickly generate high-quality articles that meet users' personalized needs, requiring extensive manual editing and formatting, resulting in high time costs.
By acquiring user input, determining article characteristics, selecting article materials and templates, and automatically generating target articles, the system also provides editing and downloading tools to meet personalized needs.
It reduces the time spent on manual editing and typesetting, ensures that the generated articles meet user needs, and improves the efficiency and quality of article generation.
Smart Images

Figure CN122154633A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, storage medium, and terminal for generating articles. Background Technology
[0002] With the rapid development of information technology and the widespread adoption of the internet, content creation has become an important part of the digital age. In the field of article creation, the development of automated content generation technology allows users to generate articles that meet specific requirements, achieving personalized content customization. Thanks to improvements in computer hardware performance and continuous algorithm optimization, natural language processing and template-based content generation technologies have also developed rapidly in recent years. Therefore, there is a need for an article generation method to better meet users' demands for quickly generating personalized, high-quality articles. Summary of the Invention
[0003] This application provides an article generation method, apparatus, storage medium, and terminal to support users' new demand for rapidly generating high-quality articles.
[0004] In a first aspect, embodiments of this application provide an article generation method, the method comprising:
[0005] In response to a user-triggered article generation request, the system obtains the user's input for the article to be generated and determines the article features corresponding to the article to be generated based on the input.
[0006] Based on article features, determine the article material corresponding to the article to be generated and determine the target article template;
[0007] The target article is obtained by formatting the article material according to the target article template and then displayed in the article display area of the terminal display interface.
[0008] Secondly, embodiments of this application provide an article generation apparatus, the apparatus comprising:
[0009] The feature determination module is used to respond to the article generation request triggered by the user, obtain the user's input content for the article to be generated, and determine the article features corresponding to the article to be generated based on the input content;
[0010] The element determination module is used to determine the article material corresponding to the article to be generated and to determine the target article template based on the article characteristics.
[0011] The article generation module is used to format the article material according to the target article template to obtain the target article, and then display the target article in the article display area of the terminal display interface.
[0012] Thirdly, embodiments of this application provide a computer storage medium storing a plurality of instructions adapted for loading by a processor and executing the steps of the method described above.
[0013] Fourthly, embodiments of this application provide a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is adapted to be loaded by the processor and to execute the steps of the above-described method.
[0014] The beneficial effects of the technical solutions provided in some embodiments of this application include at least the following:
[0015] This application provides an article generation method. In response to a user-triggered article generation request, the method acquires the user's input content for the article to be generated, determines the article features corresponding to the article to be generated based on the input content, determines the corresponding article materials and a target article template based on the article features, typesets the article materials according to the target article template to obtain the target article, and displays the target article in the article display area of the terminal display interface. When a user enters content in the input box and triggers an article generation request, this method can quickly determine the article features of the article to be generated by acquiring and automatically processing the user's input content, and generate corresponding article materials and select a target article template accordingly. Then, it integrates the article materials and the target article template to obtain the target article. This not only reduces the need for manual editing and typesetting, greatly shortening the article generation time, but also enables targeted generation of article features based on the user's input content, thereby ensuring that the generated article meets the user's personalized needs and provides the user with satisfactory article output. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 An exemplary system architecture diagram of an article generation method provided in this application embodiment;
[0018] Figure 2 A flowchart illustrating an article generation method provided in an embodiment of this application;
[0019] Figure 3 A schematic diagram of the content input interface in an article generation method provided in this application embodiment;
[0020] Figure 4A schematic diagram of the interface for displaying results in an article generation method provided in an embodiment of this application;
[0021] Figure 5 A flowchart illustrating an article generation method provided in an embodiment of this application;
[0022] Figure 6 A flowchart illustrating an article generation method provided in an embodiment of this application;
[0023] Figure 7 A structural block diagram of an article generation device provided in an embodiment of this application;
[0024] Figure 8 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application. Detailed Implementation
[0025] To make the features and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0026] In the following description, when referring to the accompanying drawings, the same numbers in different drawings denote the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0027] Please see Figure 1 , Figure 1 This is an exemplary system architecture diagram of an article generation method provided in an embodiment of this application.
[0028] like Figure 1 As shown, the system architecture may include a terminal 101, a network 102, and a server 103. The network 102 serves as the medium for providing a communication link between the terminal 101 and the server 103. The network 102 may include various types of wired or wireless communication links, such as wired communication links including fiber optic cables, twisted-pair cables, or coaxial cables, and wireless communication links including Bluetooth communication links, Wireless-Fidelity (Wi-Fi) communication links, or microwave communication links, etc.
[0029] Terminal 101 can interact with server 103 via network 102 to receive messages from or send messages to server 103. Alternatively, terminal 101 can interact with server 103 via network 102 to receive messages or data sent to server 103 by other users. Terminal 101 can be hardware or software. When terminal 101 is hardware, it can be various electronic devices, including but not limited to smartphones, tablets, laptops, and desktop computers. When terminal 101 is software, it can be installed in the aforementioned electronic devices and can be implemented as multiple software programs or software modules (e.g., to provide distributed services) or as a single software program or software module; no specific limitation is made here.
[0030] In this embodiment, terminal 101 first responds to the article generation request triggered by the user, obtains the user's input content for the article to be generated, and determines the article features corresponding to the article to be generated based on the input content; then terminal 101 determines the article material corresponding to the article to be generated and determines the target article template based on the article features; finally, terminal 101 typesets the article material according to the target article template to obtain the target article, and displays the target article in the article display area of the terminal display interface.
[0031] Server 103 can be a business server providing various services. It should be noted that server 103 can be either hardware or software. When server 103 is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When server 103 is software, it can be implemented as multiple software programs or software modules (e.g., used to provide distributed services), or as a single software program or software module; no specific limitations are made here.
[0032] Alternatively, the system architecture may not include server 103. In other words, server 103 may be an optional device in the embodiments of this specification. That is, the method provided in the embodiments of this specification can be applied to a system structure that only includes terminal 101. The embodiments of this application do not limit this.
[0033] It should be understood that Figure 1 The number of terminals, networks, and servers shown is only illustrative; the number can be any number of terminals, networks, and servers depending on the implementation requirements.
[0034] Please see Figure 2 , Figure 2This is a flowchart illustrating an article generation method provided in an embodiment of this application. The execution entity in this embodiment can be a terminal executing the article generation, a processor within the terminal executing the article generation method, or an article generation service within the terminal executing the article generation method. For ease of description, the following example uses a processor within the terminal as the execution entity to illustrate the specific execution process of the article generation method.
[0035] like Figure 2 As shown, article generation methods can include at least:
[0036] S202. In response to the user-triggered article generation request, obtain the user's input content for the article to be generated, and determine the article features corresponding to the article to be generated based on the input content.
[0037] Optionally, article generation requires constructing the content and structure of the article based on certain information. Furthermore, each user has personalized needs when generating an article, including their purpose, theme, style, and application scenario. Therefore, it's necessary to provide users with an information input channel and guide them to input sufficient information to express their needs, thus helping to form the initial concept of the article the user wants to generate. When a user inputs relevant content through this information input channel and triggers the article generation request, the subsequent article generation task can proceed based on the user's input.
[0038] Optionally, with the continuous development of technologies such as natural language processing and image recognition, the ability to understand and process user input is constantly improving. Therefore, user input can take various forms, such as text descriptions, voice input, image extraction, or video uploads. For example, teachers can generate teaching articles by uploading teaching videos or images; journalists can quickly write news reports using voice input. Diverse input methods can meet the input preferences of different users and improve user convenience. Similarly, users can also trigger article generation requests in various ways, such as clicking the "Generate Article" button on the terminal display interface or activating it through voice commands.
[0039] For example, such as Figure 3The diagram shown illustrates the interface for content input in an article generation method provided in this application embodiment. When a user wants to generate an article, they can select or input the corresponding information in the input bar on the left, and then trigger the article generation request by clicking the "Generate Illustrated Article with Images and Text in One Click" button below. At this time, the article generation assistant will perform in-depth analysis on the content just entered by the user to extract key features such as the theme, subject matter, word count, main viewpoints, audience, and emotional tone of the article to be generated, which will be used as the article features for subsequent article generation processes. In addition, the user's historical article generation records and preference data can be considered to more accurately adjust the article features to better meet the user's personalized needs. For example, if the input content is "Write a 500-word popular science article about environmental protection for teenagers," the article generation assistant can identify the article theme as "environmental protection," the subject matter as "popular science article," the word count as "500 words," the audience as "teens," and may further infer that the article should contain a positive and uplifting emotional tone.
[0040] S204. Determine the article material corresponding to the article to be generated and the target article template based on the article characteristics.
[0041] Optionally, since a complete article consists of two parts—content and format—and article features directly influence the content and format layout, after determining the article features based on the user's input, it's necessary to further determine the article content (i.e., article materials) and format (i.e., article template) based on these features. Specifically, key information such as the theme, subject matter, and viewpoint within the article features directly determines the content and type of materials required for the article. For example, if the article's theme is about environmental protection, then the materials should be related to environmental protection, such as environmental policies, environmental actions, and environmental data. Simultaneously, article features also directly affect the article's structure, layout, and other formatting information; different themes and subjects may require different article templates. For instance, news reports typically need to follow certain news writing conventions, while marketing articles may require a more flexible and creative layout.
[0042] Optionally, when determining article materials and templates, the system can also consider the user's historical article generation records and preference data, and intelligently recommend relevant article materials and templates accordingly. For example, for companies or brands that need to publish a series of analytical reports, a unified template can be used when generating articles to ensure that all published articles are visually and stylistically consistent, enhancing brand recognition while facilitating audience reading. Furthermore, users can upload their own article materials or customize details such as title styles, paragraph spacing, and image insertion methods for the templates they need. They can even create their own templates and save them for later use. This flexible setting mechanism can improve the user experience and help users generate the required articles faster, improving the quality of article generation.
[0043] S206. Arrange the article materials according to the target article template to obtain the target article, and display the target article in the article display area of the terminal display interface.
[0044] Optionally, once the article materials and template are finalized, the article materials can be integrated and formatted according to the structure and style requirements of the template. This includes automatically adjusting elements such as text paragraphs, image positions, and heading levels to ensure a visually appealing overall layout and clear, accurate information delivery. This generates the article the user needs and automatically displays it in the article display area of the terminal interface, allowing users to quickly browse the content. For example, such as... Figure 4 The diagram shown is an interface illustration of the result display in an article generation method provided in this application embodiment. It is the effect of the article generated and displayed after the user inputs the requirement to "write a 500-word travel guide about Wuhan during the National Day holiday".
[0045] This application provides an article generation method that, in response to a user-triggered article generation request, acquires the user's input content for the article to be generated, and determines the article features corresponding to the article to be generated based on the input content; determines the corresponding article materials and a target article template based on the article features; typeset the article materials according to the target article template to obtain the target article, and displays the target article in the article display area of the terminal display interface. When a user enters content in the input box and triggers an article generation request, this method can quickly determine the article features of the article to be generated by acquiring and automatically processing the user's input content, and generate corresponding article materials and select a target article template accordingly, and then integrate the article materials and the target article template to obtain the target article. This not only reduces the need for manual editing and typesetting, greatly shortening the article generation time, but also enables targeted generation of article features based on the user's input content, thereby ensuring that the generated article meets the user's personalized needs and provides the user with satisfactory article output.
[0046] Please see Figure 5 , Figure 5 This is a flowchart illustrating an article generation method provided in an embodiment of this application.
[0047] like Figure 5 As shown, article generation methods can include at least:
[0048] S502. Determine at least one preset article topic that meets the preset popularity conditions, pre-generate articles corresponding to each preset article topic, and display each preset article topic on the terminal display interface.
[0049] Alternatively, in this era of information overload, users have increasingly higher demands for the immediacy of information. Moreover, in fields such as news dissemination and social media where timeliness is paramount, speed often determines success or failure. Therefore, in the field of article generation, if the speed of article generation can be improved, or if articles can be predicted to generate relevant content in advance based on user interests, a company can gain a competitive edge and attract more user attention and traffic.
[0050] Optionally, a series of popularity criteria can be set. These criteria can be comprehensively evaluated in real time based on data such as user search volume, click volume, share volume, comment volume, and page view volume. Through data analysis, popular topics or trends that are likely to receive more user attention in the current or future period can be identified. Then, based on the set popularity criteria, some preset article topics that meet the criteria are automatically filtered out. These topics can be current events, industry trends, cutting-edge technologies, and common sense, covering a wide range of areas that users may be interested in. Next, corresponding pre-generated articles are automatically generated based on the selected preset article topics, and recommended to users on the terminal display interface so that users can directly generate and browse corresponding articles based on the article generation assistant's recommended topics.
[0051] Still with Figure 3 Taking the content input interface diagram of an article generation method provided in this application embodiment as an example, the "Drinking tea appropriately is good for health" below the left input bar is a popular topic generated and recommended in the current content input interface. When a user opens the article generation page and wants to learn about the topic, there is no need to re-enter the relevant content. They can directly click the "Generate an article with pictures and text with one click" button below to trigger the article generation request for the topic, and the pre-generated article can be quickly displayed to the user.
[0052] S504. When a user requests the generation of an article for a target preset article topic, the pre-generated article corresponding to the target preset article topic is displayed in the article display area of the terminal display interface.
[0053] Optionally, when a user opens the article generation page, preset article topics are intelligently recommended. If the user is interested in a recommended topic and triggers an article generation request for that topic, the article generation assistant will display the pre-generated article. This method of pre-generating articles on popular topics reduces the time cost for users to generate articles. Simultaneously, by updating the preset article topics and pre-generated articles in real time based on popularity criteria, it ensures that the recommended content remains synchronized with current trends and user needs, stimulating users' inspiration and enthusiasm for article generation and further enhancing the user experience.
[0054] S506. Predefine at least one preset article topic and generate a corresponding preset article template based on each preset article topic.
[0055] Optionally, while the content of articles on different themes may vary, there may be specific requirements for structure and format. For example, lyrical essays need an introduction, body, and conclusion to express the author's emotions; advertising copy usually needs a concise and accurate headline to attract the reader's attention, and in addition to the main text introducing product features, it also needs an advertising slogan that conveys the product's core value; while rigorous analytical reports require an introduction, methodology, conclusions, and reference data sources. Therefore, standardizing the article creation process could be considered.
[0056] Optionally, based on common article needs, some article topics that users might use are predefined, including marketing articles, news reports, analysis reports, advertising copy, technology reviews, essays, travel guides, and other topics. Each topic reflects different writing styles and structural requirements. Then, for each preset article topic, one or more preset article templates are designed. Each template has clear tags and attributes for subsequent matching with article characteristics. These templates not only include the basic framework of the article (such as introduction, body, and conclusion) but also incorporate elements and formatting requirements specific to that topic. For example, a news report template might emphasize a clear presentation of timelines, locations, people, and events; while a technology review template might focus on discussions of technical principles, application prospects, and industry impact. By pre-setting article templates for articles on the same topic with similar formatting requirements, when generating an article, users only need to select or adjust from the preset templates according to the selected topic to quickly generate the basic framework of the article. This avoids repetitive formatting and content layout each time an article is generated, greatly shortening the article generation time. Meanwhile, pre-set article templates are usually set based on professional writing standards, which can ensure that the article meets the requirements of a specific subject in terms of structure, language and style, which helps to improve the professionalism and readability of the article.
[0057] S508. In response to the article generation request triggered by the user, obtain the user's input content for the article to be generated, and determine the article features corresponding to the article to be generated based on the input content.
[0058] For details regarding step S508, please refer to the description in step S202; it will not be repeated here.
[0059] S510. Based on article features, determine article material including at least one article image and at least one text fragment, determine the relationship between each article image and each text fragment, and determine the target article template corresponding to the article theme from each preset article template based on the article theme in the article features.
[0060] Optionally, since text and images each have their own unique advantages in information transmission and expression, text can convey information accurately and in detail, ensuring that readers can accurately understand the author's intentions; images have a strong visual impact, which can intuitively and vividly display information, thereby attracting readers' attention and helping them to understand the content of the article more quickly. The two can complement each other and jointly enhance the overall effect of the article. Therefore, the article materials used to generate the article can include two parts: text fragments and article images.
[0061] Optionally, after determining the article features to be generated based on the user's input, the article materials can be further determined based on the determined article features. Specifically, text fragments and article images that meet the article requirements can be generated by searching in a preset text library and image library or by using natural language processing, image generation, and other technologies. The text fragments can cover specific content of each part such as the introduction, body paragraphs, and conclusion, and the images may include background images, icons, photos of people, flowcharts, etc., related to the topic.
[0062] Optionally, as a whole, an article needs to maintain a certain logical connection and coherence between its various parts. Images and text fragments, as the two major components of an article's content, directly affect the overall structure and reading fluency of the article. If the images and text lack connection or are improperly linked, the reader's experience may be negatively impacted. For example, a text fragment describing natural scenery might be well-suited to a tranquil landscape painting, but placing it alongside images of urban cultural activities like lion dances or opera performances would detract from the article's expressive effect. Therefore, when selecting article materials, it's necessary to clarify the relationship between text fragments and their corresponding images based on factors such as the article's logic, emotional tone, or visual aesthetics. By determining this relationship and grouping the most strongly related text and images together, the article can be visually and content-wise presented in an orderly and coherent manner, enabling readers to more smoothly understand the article's theme and key points, thereby enhancing the reader's reading experience.
[0063] Optionally, while determining the article content, it is also necessary to use key technologies such as natural language processing, deep learning, and template engines to match a target article template suitable for the topic of the article to be generated from the preset article templates, based on the results of the article feature analysis, so as to associate and format the article material with the corresponding article template in the future.
[0064] S512. According to the target article template and the relationship, associate and arrange each article image with the corresponding text fragment to obtain the target article, and display the target article in the article display area of the terminal display interface.
[0065] Optionally, after determining the article template, article materials, and their internal relationships, the article materials can be formatted according to the article template. Specifically, based on the layout rules and style requirements defined in the article template, each article image is associated with its corresponding text fragment, ensuring that the position, size, color, and other attributes of the images and text are consistent with the article template. It is also necessary to ensure that the relationships between the article images and text fragments are correctly reflected in the article. After formatting, the target article required by the user is generated and displayed in the article display area of the terminal display interface. The user can preview the generated article in this area and perform further editing and downloading as needed.
[0066] This application provides an article generation method that pre-generates corresponding articles based on preset popular article topics. This allows the method to recommend relevant popular topics to users on the terminal display interface, enabling users to directly generate and browse corresponding articles based on the recommended topics, thus enhancing the convenience of using the article generation method. Simultaneously, by pre-defining article templates corresponding to various article themes, once the article characteristics to be generated are determined, a suitable template can be directly matched based on the parsed article theme, reducing the tediousness and repetition of template generation and shortening the article generation time. Furthermore, by clarifying the relationship between article images and text fragments while determining the article materials, it is helpful to directly associate corresponding images and text based on this relationship when formatting the article materials according to the article template. This results in a well-organized, clear, and logical target article displayed to the user, facilitating reading.
[0067] Please see Figure 6 , Figure 6 This is a flowchart illustrating an article generation method provided in an embodiment of this application.
[0068] like Figure 6 As shown, article generation methods can include at least:
[0069] S602. Generate at least one article editing tool in the article display area, and generate a download tool in the article display area.
[0070] Optionally, while the target article is generated based on the parsed user input and its corresponding features, thus better meeting the user's needs, each user has their own unique expression style and aesthetic preferences. Automatically generated articles often cannot fully match each user's personalized needs. Therefore, the article display area provides article editing tools. Users can adjust and edit the generated article according to their preferences and specific needs, such as correcting grammatical errors, adjusting paragraph order, optimizing sentence structure, adding or deleting text and images, thereby achieving more personalized article output and improving the overall quality of the article.
[0071] For example, still in Figure 4Taking the illustrated interface diagram of an article generation method provided in this application as an example, a set of editing tools is set above the current article display area. These include text editing, image management, and undo / redo tools. The text editing tool allows users to directly modify the text content in the article, such as bolding, italics, underlining, changing font size and color, etc.; the image management tool supports uploading, replacing, scaling, rotating, and adding filters to images; the undo / redo tool ensures that users can view the modification effects in real time during the editing process and undo or redo the operation at any time. It should be noted that the specific functions of the article editing tools can be adjusted and improved according to user needs. In addition to the tools listed above, other tools such as layout adjustment and article template switching may also be included. This application embodiment does not specifically limit the functions of the article editing tools.
[0072] Optionally, when users are satisfied with the generated or edited articles, they may want to download and save them. To meet this need, a download tool can be generated in an appropriate location in the article display area (such as the upper right corner or bottom). When a user triggers this download tool, the target article can be downloaded to their local device for personalized use.
[0073] S604. In response to the user-triggered article generation request, obtain the user's input content for the article to be generated, and determine the article features corresponding to the article to be generated based on the input content; determine the article material corresponding to the article to be generated and determine the target article template based on the article features; format the article material according to the target article template to obtain the target article, and display the target article in the article display area of the terminal display interface.
[0074] For step S604, please refer to Figure 2 The detailed descriptions in the illustrated embodiments will not be repeated here.
[0075] S606. In response to the user's triggered operation on the article editing tool, edit the target content selected by the user according to the preset editing logic of the article editing tool, and display the editing result in the article display area.
[0076] Optionally, after the article is generated and displayed in the article display area, if the user wants to edit or modify the generated article, they can trigger the article editing tools by using corresponding buttons or shortcut keys. These article editing tools are usually equipped with preset editing logic to make real-time and accurate editing of the target content selected by the user, and then update and display the editing results in the article display area to provide the user with an intuitive preview of the editing effect.
[0077] S608. In response to the user's triggered operation on the download tool, determine the user's download permission level and the user's download settings information; determine the target watermark style based on the download permission level and download settings information.
[0078] Optionally, after the user triggers the download tool displayed on the terminal interface, the terminal can determine the user's download request. To protect the copyright of the article content and prevent users from abusing the download function, when a user's download request is received, a strict request verification is first performed to obtain the user's download permission level. This permission level can be set based on the user's registration information, payment status, membership level (such as ordinary user, member, etc.), historical behavior records (such as whether there are any illegal download records), or other custom rules to ensure that the request comes from a legitimate and authenticated user, and to differentiate downloads according to different permission levels, so that users with different permission levels can enjoy different download permissions and service quality. For example, ordinary users may only have the permission to download low-resolution versions of articles, while paid members can download high-resolution or original versions of articles.
[0079] Optionally, in addition to confirming the download permission level, the system can further query and analyze the user's personalized download settings. This information may include, but is not limited to, download format preferences (such as PDF, Word, etc.), download quality (high definition, standard), watermark activation status, and whether specific format or size conversions of downloaded content are allowed (such as changing image size). These settings allow users to personalize the downloaded articles according to their own needs.
[0080] Optionally, if it is detected that a user has enabled the watermarking function, the desired target watermark style will be determined based on the user's download permission level and download settings. This includes the watermark style (such as a text watermark, image watermark, or a combination of both), the watermark text content (such as user ID, copyright statement, download date, etc.), the watermark position, and transparency. For example, for high-privilege users, only a light or transparent copyright information watermark may be added; while for low-privilege or unauthorized users, a more prominent watermark may be applied, or even include detailed text content such as the user ID, as a means of copyright tracking and protection.
[0081] S610. Add a watermark to the target download content selected by the user according to the target watermark style, download the target download content, and save the download result to the preset or user-specified storage space.
[0082] Optionally, after determining the target watermark style, the target download content (which may be the entire article or a portion thereof) requested by the user will be processed. This typically includes loading the target download content, adding the watermark at a specified location according to the watermark style, and possibly performing necessary article fusion processing to ensure that the watermark's transparency, position, size, and other parameters meet preset standards and blend perfectly with the original content, achieving copyright protection without affecting the reading experience. In one feasible implementation, a quality check is also performed after adding the watermark to ensure that the addition of the watermark does not introduce any visible flaws or errors, and the target download content is formatted and optimized according to the user's download settings to ensure that the quality of the downloaded file meets the user's specific needs. This includes steps such as adjusting file size, compressing images, and optimizing text layout, aiming to improve the readability and transmission efficiency of the target download content.
[0083] Optionally, the processed target content can be downloaded. Download steps include generating a download link, initiating a file transfer protocol (such as HTTP download), or directly sending the file to the user's specified storage location (such as a cloud storage service). Once the entire download process is complete, relevant operation logs will be uploaded and stored in the cloud, including download time, downloaded content, and user information. Simultaneously, a notification of successful download or a confirmation of the download link will be displayed to the user on the terminal, improving the user experience.
[0084] This application provides an article generation method that offers an article editing tool in the article display area, allowing users to adjust and edit the generated article according to their preferences and specific needs, thus achieving more personalized article output. Simultaneously, by generating a download tool in the article display area and combining it with the user's download permission level and download settings, a convenient, secure, and personalized article download service is provided. This not only improves user convenience and satisfaction but also helps protect copyright information while promoting content sharing.
[0085] Please see Figure 7 , Figure 7 This is a structural block diagram of an article generation device provided in an embodiment of this application.
[0086] like Figure 7 As shown, the article generation device 700 includes:
[0087] The feature determination module 710 is used to respond to the article generation request triggered by the user, obtain the user's input content for the article to be generated, and determine the article features corresponding to the article to be generated based on the input content;
[0088] The element determination module 720 is used to determine the article material corresponding to the article to be generated and to determine the target article template based on the article features.
[0089] The article generation module 730 is used to format the article materials according to the target article template to obtain the target article, and then display the target article in the article display area of the terminal display interface.
[0090] Optionally, the article features include at least the article topic, and the article generation device 700 further includes: a predefined article template module, used to predefine at least one preset article topic and generate a corresponding preset article template according to each preset article topic before the feature determination module responds to the article generation request triggered by the user; and an element determination module 720, used to determine the article material corresponding to the article to be generated based on the article features, and to determine the target article template corresponding to the article topic from each preset article template based on the article topic in the article features.
[0091] Optionally, the article generation device 700 further includes: a pre-generated popular article module, used to determine at least one preset article topic that meets preset popularity conditions, pre-generate pre-generated articles corresponding to each preset article topic, and display each preset article topic on the terminal display interface; when a user's article generation request for a target preset article topic is received, the pre-generated article corresponding to the target preset article topic is displayed in the article display area of the terminal display interface.
[0092] Optionally, the element determination module 720 is further configured to determine, based on article features, article material including at least one article image and at least one text fragment, and to determine the association between each article image and each text fragment, and to determine the target article template; the article generation module 730 is further configured to associate and arrange each article image with the corresponding text fragment according to the target article template and the association relationship, to obtain the target article.
[0093] Optionally, the article generation device 700 further includes: an article editing module, used to generate at least one article editing tool in the article display area; the article generation device 700 is also used to respond to the user's trigger operation on the article editing tool after the article generation module 730 displays the target article in the article display area of the terminal display interface, edit the target editing content selected by the user according to the preset editing logic corresponding to the article editing tool, and display the editing result in the article display area.
[0094] Optionally, the article generation device 700 further includes: an article download module, used to generate a download tool in the article display area; the article generation device 700 is also used to respond to the user's trigger operation on the download tool after the article generation module 730 displays the target article in the article display area of the terminal display interface, determine the user's download permission level and the user's download settings information; determine the target watermark style according to the download permission level and download settings information; add a watermark to the target download content selected by the user according to the target watermark style, download the target download content, and save the download result to a preset or user-specified storage space.
[0095] Optionally, the article features include at least one of the following: article topic, article subject matter, article word count, and article viewpoint.
[0096] In this embodiment, an article generation device is provided. The device includes a feature determination module, configured to respond to a user-triggered article generation request, acquire user input for the article to be generated, and determine the article features corresponding to the article to be generated based on the input; an element determination module, configured to determine the article material corresponding to the article to be generated and determine the target article template based on the article features; and an article generation module, configured to format the article material according to the target article template to obtain the target article, and display the target article in the article display area of the terminal display interface. Once a user requests article generation, the feature determination module responds promptly, acquiring the user's input and extracting the article features to be generated. This helps to more accurately understand key information such as the theme, style, and target audience of the article, providing guidance for subsequent article generation. Then, the element determination module selects or generates corresponding article materials and target article templates based on the identified features, thus essentially determining the required content and format. Finally, the article generation module typeset the article materials according to the target article template. Since target article templates typically have professional layout and design, they make the article more visually appealing, improving the reader's experience. The typeset article is then displayed on the terminal's interface, allowing users to view and edit it immediately.
[0097] This application also provides a computer storage medium that can store multiple instructions adapted for loading by a processor and executing the steps of any of the methods described in the above embodiments.
[0098] Please see Figure 8 , Figure 8 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application. Figure 8As shown, terminal 800 may include: at least one terminal processor 801, at least one network interface 804, user interface 803, memory 805, and at least one communication bus 802.
[0099] The communication bus 802 is used to enable communication between these components.
[0100] The user interface 803 may include a display screen and a camera. Optionally, the user interface 803 may also include a standard wired interface and a wireless interface.
[0101] The network interface 804 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).
[0102] The terminal processor 801 may include one or more processing cores. The terminal processor 801 connects to various parts within the terminal 800 using various interfaces and lines. It executes various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 805, and by calling data stored in the memory 805. Optionally, the terminal processor 801 may be implemented using at least one of the following hardware forms: Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The terminal processor 801 may integrate one or more of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content to be displayed on the screen; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip without being integrated into the terminal processor 801.
[0103] The memory 805 may include random access memory (RAM) or read-only memory (ROM). Optionally, the memory 805 may include a non-transitory computer-readable storage medium. The memory 805 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 805 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 805 may also be at least one storage device located remotely from the aforementioned terminal processor 801. Figure 8 As shown, the memory 805, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and an article generation program.
[0104] exist Figure 8 In the terminal 800 shown, the user interface 803 is mainly used to provide an input interface for the user and to obtain the user's input data; while the terminal processor 801 can be used to call the article generation program stored in the memory 805 and specifically perform the following operations:
[0105] In response to a user-triggered article generation request, the system obtains the user's input for the article to be generated and determines the article features corresponding to the article to be generated based on the input.
[0106] Based on article features, determine the article material corresponding to the article to be generated and determine the target article template;
[0107] The target article is obtained by formatting the article material according to the target article template and then displayed in the article display area of the terminal display interface.
[0108] In some embodiments, the article features include at least an article topic. Before executing the response to the user-triggered article generation request, the terminal processor 801 further performs the following steps: predefines at least one preset article topic and generates a corresponding preset article template based on each preset article topic; when the terminal processor 801 executes the determination of the article material corresponding to the article to be generated based on the article features and the determination of the target article template, it further performs the following steps: determines the article material corresponding to the article to be generated based on the article features, and determines the target article template corresponding to the article topic from each preset article template based on the article topic in the article features.
[0109] In some embodiments, the terminal processor 801 further performs the following steps: determining at least one preset article topic that meets preset popularity conditions, pre-generating pre-generated articles corresponding to each preset article topic, and displaying each preset article topic on the terminal display interface; when receiving a user's article generation request for a target preset article topic, displaying the pre-generated article corresponding to the target preset article topic in the article display area of the terminal display interface.
[0110] In some embodiments, when the terminal processor 801 performs the following steps when determining the article material corresponding to the article to be generated based on article features and determining the target article template: determining the article material including at least one article image and at least one text fragment based on article features, determining the association relationship between each article image and each text fragment, and determining the target article template; when the terminal processor 801 performs the following steps when it performs the following steps when it performs the following steps when it performs the following steps when it performs the following steps when it performs the following steps when it performs the following steps: associating and arranging each article image with the corresponding text fragment according to the target article template and the association relationship, to obtain the target article.
[0111] In some embodiments, the terminal processor 801 further performs the following steps: generating at least one article editing tool in the article display area; after displaying the target article in the article display area of the terminal display interface, the terminal processor 801 further performs the following steps: in response to the user's trigger operation on the article editing tool, editing the target editing content selected by the user according to the preset editing logic corresponding to the article editing tool, and displaying the editing result in the article display area.
[0112] In some embodiments, the terminal processor 801 further performs the following steps: generating a download tool in the article display area; after displaying the target article in the article display area of the terminal display interface, the terminal processor 801 further performs the following steps: in response to the user's trigger operation on the download tool, determining the user's download permission level and the user's download settings information; determining the target watermark style according to the download permission level and download settings information; adding a watermark to the target download content selected by the user according to the target watermark style, downloading the target download content, and saving the download result to a preset or user-specified storage space.
[0113] In some embodiments, article features include at least one of article topic, article subject matter, article word count, and article viewpoint.
[0114] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.
[0115] The modules described as separate components may or may not be physically separate. Similarly, the components shown as modules may or may not be physical modules; they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0116] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When these computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this specification are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in or transmitted through a computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The aforementioned available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., Digital Versatile Discs (DVDs)), or semiconductor media (e.g., Solid State Disks (SSDs)).
[0117] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0118] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0119] The above is a description of an article generation method, apparatus, storage medium, and terminal provided in this application. For those skilled in the art, based on the ideas of the embodiments of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for generating articles, characterized in that, The method includes: In response to a user-triggered article generation request, the system obtains the user's input content for the article to be generated and determines the article features corresponding to the article to be generated based on the input content. Based on the article features, determine the article material corresponding to the article to be generated and determine the target article template; The article material is formatted according to the target article template to obtain the target article, and the target article is displayed in the article display area of the terminal display interface.
2. The method according to claim 1, characterized in that, The article features include at least an article topic, and the method further includes, prior to responding to a user-triggered article generation request: Define at least one preset article topic and generate a corresponding preset article template based on each preset article topic; The step of determining the article material corresponding to the article to be generated and determining the target article template based on the article features includes: Based on the article features, determine the article material corresponding to the article to be generated, and based on the article theme in the article features, determine the target article template corresponding to the article theme from each preset article template.
3. The method according to claim 1, characterized in that, The method further includes: Determine at least one preset article topic that meets the preset popularity conditions, pre-generate articles corresponding to each preset article topic, and display each preset article topic on the terminal display interface; When a user requests the generation of an article on a target preset article topic, the pre-generated article corresponding to the target preset article topic is displayed in the article display area of the terminal display interface.
4. The method according to claim 1, characterized in that, The step of determining the article material corresponding to the article to be generated and determining the target article template based on the article features includes: Based on the article features, determine the article material including at least one article image and at least one text fragment, determine the association between each article image and each text fragment, and determine the target article template; The step of formatting the article material according to the target article template to obtain the target article includes: According to the target article template and the associated relationships, each article image is associated and formatted with its corresponding text fragment to obtain the target article.
5. The method according to claim 1, characterized in that, The method further includes: At least one article editing tool is generated in the article display area; After displaying the target article in the article display area of the terminal display interface, the method further includes: In response to the user's trigger operation on the article editing tool, the target content selected by the user is edited according to the preset editing logic corresponding to the article editing tool, and the editing result is displayed in the article display area.
6. The method according to claim 1, characterized in that, The method further includes: Generate a download tool in the article display area; After displaying the target article in the article display area of the terminal display interface, the method further includes: In response to the user's triggered operation on the download tool, determine the user's download permission level and the user's download settings information; The target watermark style is determined based on the download permission level and the download settings information; Add a watermark to the target download content selected by the user according to the target watermark style, download the target download content, and save the download result to a preset or user-specified storage space.
7. The method according to claim 1, characterized in that, The article features include at least one of the following: article theme, article subject matter, article word count, and article viewpoint.
8. An article generation device, characterized in that, The device includes: The feature determination module is used to respond to the article generation request triggered by the user, obtain the user's input content for the article to be generated, and determine the article features corresponding to the article to be generated based on the input content; The element determination module is used to determine the article material corresponding to the article to be generated and the target article template based on the article features. The article generation module is used to format the article material according to the target article template to obtain the target article, and to display the target article in the article display area of the terminal display interface.
9. A computer storage medium, characterized in that, The computer storage medium stores a plurality of instructions adapted for loading by a processor and executing the steps of the method as described in any one of claims 1 to 7.
10. A terminal, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the method as described in any one of claims 1 to 7.