Method and device for generating copywriting outline, medium and program product
By generating a copy outline based on copy type tags and user input content, the problem of multiple adjustments to prompt words in the existing technology is solved, which improves the consistency of user creation experience and copy outline, and improves the content communication effect.
Patent Information
- Application Number
- CN202411230837.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2024-12-03
AI Technical Summary
When using artificial intelligence to assist in generating copywriting outlines, the prior art needs to adjust the prompt words multiple times to obtain the content and structure to meet the needs, resulting in poor user creative experience.
The outline template is determined based on the copy type tag, and the copy outline is generated based on the user input content, which is provided to the user to improve the creative experience.
It simplifies user operations, improves the degree of fit between the generated copywriting outline and user needs, ensures a high degree of consistency between the copywriting and the content of the outline, thereby better conveying the theme and improving readers' understanding and acceptance.
Smart Images

Figure CN119066192A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates generally to the field of computers, and more particularly to a method, an electronic device, a computer-readable storage medium, and a computer program product for generating a copywriting outline. Background Art
[0002] The copywriting outline is a preliminary design plan for the systematic planning and structural layout of the copywriting content, aiming to clarify the core information, logical structure and expression form of the copywriting. The copywriting outline can help the creator to create in an orderly manner, ensure the high consistency between the copywriting and the outline content, so as to better convey the theme and make it easier for readers to understand and accept the copywriting content.
[0003] Artificial intelligence (AI)'s ability to generate text plays a role in various application fields and can produce various types of applied text content. Using artificial intelligence to assist copywriters in generating copywriting outlines is very meaningful for improving the author's creative experience. Summary of the invention
[0004] According to an exemplary embodiment of the present disclosure, a method for generating a copywriting outline, an electronic device, a computer storage medium, and a computer program product are provided.
[0005] In a first aspect of the present disclosure, a method for generating a copywriting outline is provided, comprising: determining an outline template for the copywriting based on a type label of the copywriting, wherein the outline template includes an outline module corresponding to the type label; and generating a copywriting outline for the copywriting based on the determined outline template and user input content.
[0006] In a second aspect of the present disclosure, an electronic device is provided, comprising: at least one processing unit; and at least one memory, wherein the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit, and the instructions, when executed by the at least one processing unit, enable the electronic device to execute the method described in the first aspect of the present disclosure.
[0007] In a third aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the device implements the method described in the first aspect of the present disclosure.
[0008] According to a fourth aspect of the present disclosure, a computer program product is provided, on which a computer program is stored. When the computer program is executed by a processor, the method described in the first aspect of the present disclosure is implemented.
[0009] The invention summary is provided to introduce a series of concepts in a simplified form, which will be further described in the specific embodiments below. The invention summary is not intended to identify the key features or essential features of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easy to understand through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:
[0011] Figure 1 A schematic diagram of a system for generating a copywriting outline according to an embodiment of the present disclosure is shown;
[0012] Figure 2 A flow chart showing a method for generating a copywriting outline according to an embodiment of the present disclosure is shown;
[0013] Figure 3 A schematic diagram showing a process of generating a novel outline according to an embodiment of the present disclosure is shown;
[0014] Figures 4A-4D A schematic diagram of an interactive interface in the process of generating a novel outline according to a method for generating a novel outline according to an embodiment of the present disclosure is shown in FIG.
[0015] Figure 5A-5B A schematic diagram showing an exemplary process of displaying the contents of one or more summaries to a user according to a method for generating a novel outline according to an embodiment of the present disclosure;
[0016] Figure 6 A flowchart illustrating an exemplary training method of a model according to some embodiments of the present disclosure is shown;
[0017] Figure 7 A schematic block diagram showing an example apparatus according to some embodiments of the present disclosure; and
[0018] Figure 8 A block diagram of an example device that may be used to implement embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0019] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for illustrative purposes and are not intended to limit the scope of protection of the present disclosure.
[0020] The copywriting outline is a preliminary design plan for the systematic planning and structural layout of the copywriting content, aiming to clarify the core information, logical structure and expression form of the copywriting. The copywriting outline can help the creator to create in an orderly manner, ensure the high consistency between the copywriting and the outline content, so as to better convey the theme and make it easier for readers to understand and accept the copywriting content.
[0021] Currently, artificial intelligence technology is applied in various application scenarios. With the continuous development of models and the emergence of large-scale data sets, artificial intelligence technology has also made great progress in generating multimedia content (such as text, images, audio, etc.), and has brought many conveniences and innovations to people's work and life. Using artificial intelligence to assist in copywriting generation usually requires multiple adjustments to prompt words to obtain a copywriting outline that meets the requirements in terms of content and structure.
[0022] In view of this, an embodiment of the present disclosure provides a method for generating a copywriting outline. The method may include: determining an outline template for the copywriting based on a type label of the copywriting, and generating a copywriting outline for the copywriting based on the determined outline template and user input content. The method of the embodiment of the present disclosure can provide a copywriting outline for a user when the user is creating a copywriting, thereby improving the user's creation experience.
[0023] The embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings. Figure 1 FIG. 1 is a schematic diagram of a system for generating a copywriting outline according to an embodiment of the present disclosure. Figure 1 As shown, the model 120 is usually deployed in one or more computer devices, and can generate output related to the input content according to the input of the model. The computing device may include but is not limited to a personal computer, a server computer, a handheld or laptop device, a mobile device (such as a mobile phone, a personal digital assistant (PDA), a media player, etc.), a multi-processor system, consumer electronics, wearable electronic devices, smart home devices, a minicomputer, a mainframe computer, an edge computing device, a distributed computing system including any of the above systems or devices, etc. Figure 1 In the example of , the model 120 can generate a copy outline for the copy according to the type label of the copy and the user input content.
[0024] In some embodiments, an application (e.g., a client program, a web application, etc.) capable of calling the model 120 can be installed or accessed on one computing device, and the model 120 can be deployed on another computing device, and the two computing devices can communicate through a network. An application in one computing device can generate a copy outline of a copy based on the type label of the copy and the user input content through the model 120 in another computing device. In some embodiments, the model 120 can be split into multiple sub-models according to actual needs, and each sub-model can be deployed in a corresponding computing device to achieve distributed deployment to support large-scale models. A computing device can generate a copy outline of a copy based on the type label of the copy and the user input content through a distributedly deployed model 120 through an application. In some embodiments, as the model 120 is lightweight, the model 120 can be deployed locally on the computing device where the application is installed or accessed, so that the user's request can be responded to more quickly and the response information can be generated.
[0025] In some embodiments, the copywriting can be used to express one or more paragraphs of information, such as, but not limited to, advertising, news planning, novel stories, etc. The architecture of different types of copywriting will be different. For example, fantasy novels present an imaginative story by constructing a unique fictional world and rich character relationships, as well as fantastic plots and events. Urban emotional novels, on the other hand, pay more attention to the depiction of real life, reflecting the challenges and problems in real life through real characters and complex plot structures. Therefore, fantasy novels and urban emotional novels differ in plot arrangement, character creation, and background setting. Specifically: The structural characteristics of fantasy novels include setting a unique worldview, constructing a self-proclaimed fictional world, constructing rich character relationships, including good and evil forces, family disputes, etc., forming a complex network of characters, and creating fantastic plots and events, including elements such as adventure, fighting, and growth, forming an ups and downs storyline. The structural features of urban emotional novels include creating real characters, depicting realistic characters, including their occupations, family backgrounds, etc., constructing complex plot structures, promoting the development of the story through a series of events, showing the growth and changes of the characters, highlighting the reflection and discussion of real problems, such as social problems, interpersonal relationships, etc., and increasing the practical significance and social value of the novel. Therefore, in some embodiments, the computing device can determine the outline template 130 of the copy based on the type label 111 of the copy through the model 120. The outline template 130 includes an outline module corresponding to the type label 111, so that the outline modules generated based on different type labels can have different structural characteristics and can be more in line with the copy type defined by the type label 111. In some embodiments, the model 120 can be a large language model, which can generate various text contents after training, such as, but not limited to, outline templates and copy outlines. The type label 111 can include, but is not limited to, tags for describing the type of the theme, characters or plot of the copy (such as a label with the text "urban emotion").
[0026] In some embodiments, the computing device may generate a copywriting outline 140 of the copywriting based on the determined outline template 130 and the user input content 112. The copywriting outline 140 can describe at least one of the core information, logical structure, and expression form of the copywriting. If the user is satisfied with the generated copywriting outline 140, the computing device may also save the generated copywriting.
[0027] The system of the method for generating a copywriting outline according to the embodiment of the present disclosure can provide a copywriting outline to a user when the user is creating a copywriting, thereby improving the user's creation experience.
[0028] Combine the following Figure 2 The method flow of generating a copywriting outline according to an embodiment of the present disclosure is described. Figure 2The flowchart of the method 200 for generating a copywriting outline according to an embodiment of the present disclosure is shown. The method 200 can be executed at any suitable computing device. It should be understood that the numbers in the flowchart of the method 200 do not represent the order in which these steps are executed. Some or all of these steps can be executed in parallel, or the order of execution can be interchanged, and the present disclosure does not limit this. In addition, Figure 2 The method 200 in FIG. 2 may also include additional steps not shown and / or may omit steps shown, and the scope of the present disclosure is not limited in this respect.
[0029] like Figure 2 As shown, in box 202, the computing device can generate an outline template of the copy through a model based on the type label of the copy. In some embodiments, the outline template includes an outline module corresponding to the type label, and different outline templates can be generated based on different type labels to meet the structural characteristics of the copy defined by the type label. In box 204, the computing device generates a copy outline of the copy through the model based on the outline template generated in box 202 and the user input content. The copy can be used to express one or more paragraphs of information, such as, but not limited to advertising, news planning, novel stories, etc. The copy outline can describe at least one of the core information, logical structure and expression form of the copy. Therefore, the generated copy outline can help the creator to create in an orderly manner, ensure the high consistency of the copy and the outline content, so as to better convey the theme, and make it easier for readers to understand and accept the copy content. In some embodiments, the computing device can install or access an application that can call the model, so as to automatically generate a copy outline of the copy for the user based on the label of the copy and the user input content. It can simplify user operations while improving the fit between the generated copy outline and user needs.
[0030] In box 202, the user can define the type of the copy (for example, fantasy or urban emotion) through the type label of the copy, and the computing device can call the model to generate an outline template based on the type label of the copy. In some embodiments, the computing device can display multiple type labels in the interface of the application for the user to select, and determine one or more type labels of the copy in the displayed type labels according to the user selection. In some embodiments, the computing device can generate a first prompt word for the model based on the type label of the copy, and generate an outline template of the copy through the model based on the first prompt word.
[0031] In box 204, the computing device may generate a copywriting outline of the copywriting based on the outline template determined in box 202 and the user input content. In some embodiments, the computing device may generate a second prompt word for the model based on the outline template and the user input content, and generate the copywriting outline of the copywriting through the model based on the second prompt word. In some embodiments, the computing device extracts keywords of the user input content, and generates the second prompt word based on the extracted keywords and the outline template. In some embodiments, the computing device may also generate the second prompt word based on the keywords extracted from the copywriting, the user input content, and the type tag of the copywriting.
[0032] Therefore, according to the method for generating a copywriting outline according to the embodiment of the present disclosure, it is possible to generate a copywriting outline for a copywriting based on the copywriting tags and user input content, thereby providing a copywriting outline to the user when the user is creating the copywriting, thereby improving the user experience.
[0033] The following will be combined with the attached Figure 3 and FIG. 4 describe the process of the method for generating a novel outline. Figure 3 FIG. 4 is a schematic diagram showing a process of generating a novel outline according to an embodiment of the present disclosure. Figure 4A-4D FIG. 4 is a schematic diagram showing an interactive interface 400 of an application installed on a computing device for calling the model 120 during the generation of a copywriting outline according to an embodiment of the present disclosure. It can be understood that Figure 4A-4D The interactive interface in is only illustrative. Depending on the type of computing device, the interactive interface 400 can be adapted to the corresponding type and displayed accordingly. Figure 3 and Figure 4A-4D The process of the method for generating a novel outline is shown, but this is only exemplary, and the method can support the generation of copywriting outlines for different types of copywriting.
[0034] like Figure 3 As shown, the generation process of the novel outline of the embodiment of the present disclosure includes four stages. In box 310, the user selects the type label of the copy and enters a description of the copy. The stage represented by box 321 is not visible in the interactive interface 400 and is represented by a dotted box. In box 321, the model generates an outline template of the copy for the user according to the type label selected by the user in box 310. In box 322, the model generates one or more summaries for the user according to the type label selected by the user in box 310 and the user input content, and the user selects a target summary from the generated summaries. In box 330, the model generates a copy outline for the user according to the outline template generated in box 321 and the target summary selected in box 322. If the user is satisfied with the generated outline, the generated outline is saved. In box 340, after the outline is saved for the user, the saved outline is fully displayed to the user.
[0035] Figure 4A Shown corresponding to Figure 3 A schematic diagram of the interface of box 310 in FIG. Figure 4A The interface 400 in may include a label area 410, a text input box 420, and a button 431. A plurality of type labels are displayed in the label area 410, such as label 410-1, label 410-2, label 410-3...410-N, etc., where N represents the number of labels displayed. Each label can be associated with a type of novel, and the label in the label area 410 can be selected to indicate that the user wants the novel to have the type characteristics corresponding to the label. In some embodiments, the user only selects a label in the label area 410. Alternatively or additionally, the user can also select multiple labels in the label area 410 at the same time. In some embodiments, the type label can be set to multiple levels, for example, three levels. Specifically, the first-level type label is the highest-level type label, which can be used to define the top-level structure of the outline template, and corresponding to different first-level type labels, a second-level type label can be set to define the middle-level structure of the outline template, and corresponding to different second-level type labels, a third-level type label can also be set to define the bottom-level structure of the outline template. The outline template generated based on the type tag may include a first-level outline module corresponding to the first-level type tag, and the first-level outline module may also include a second-level outline module corresponding to the second-level tag under the corresponding first-level type tag, and the second-level outline module may also include a third-level outline module corresponding to the third-level tag under the corresponding second-level tag. Thus, the user can complete the definition of the outline template from the top to the bottom structure by selecting a hierarchical type tag. For example, the first-level outline module may include, but is not limited to, at least one of world view information, character information, and plot information. The main content of the world view information, character information, and plot information of the novel outline template can be limited by the selected first-level type tag (for example, urban emotion, fantasy cultivation, etc.). By selecting a second-level type tag (for example, the second-level tag of urban emotion, plunder, campus text, highway text, etc.), the world background and background world of the world view information, the protagonist information, supporting role information, and villain information of the character information, the main plot, branch plot, contradictions and conflicts, and chapter information of the plot information can be further limited. By selecting a third-level type label (for example, the third-level labels for campus literature are loyal dog, cat-like, sickly, useless, etc.), the name, gender, personality, appearance, character introduction and task relationship of the protagonist, supporting role and villain information are limited, and the chapter name, chapter introduction, one or more chapter stories of the chapter information are limited. If the user finds no label suitable in the label area 410, the user can also create a custom type label by adding a label, and the added custom label is displayed in the label area 410.
[0036] The text input box 420 can be used to receive and display the user's text input, or the text input box 420 can also receive the user's voice and convert it into text input for display. The user can enter any description of the novel through the text input box 420. Button 431 is used to trigger the computing device to enter the stages of box 321 and box 322. In box 321, the computing device generates a corresponding outline template based on the tag selected in the tag area 410. In box 322, the computing device generates multiple novel plots based on the tag selected in the tag area 410 and the user input content of the text input box 410. In box 321, the computing device generates a first prompt word for the model based on the tag selected in the tag area 410, uses the generated first prompt word as the input of the model, calls the model, and obtains the outline template of the copy.
[0037] Figure 4B Shown corresponding to Figure 3 Schematic diagram of the interface of box 321 in . In box 321, the computing device can obtain the selected label in the label area 410 and the user input content in the text input box 420, generate a second prompt word for the model 120, use the generated second prompt word as the input of the model 120, call the model 120, and obtain multiple summaries. The computing device presents the summary generated by the model 120 in the interface 400. In order to generate a novel plot that better meets the user's needs, the model 120 can randomly generate multiple different summaries for the user, and the generated summaries have differences in the aspects that are not limited by the selected label and the user input content. Figure 4B As shown, the interface 400 includes a summary area 440, a button 432, and a button 433. The summary area 440 includes a plurality of text boxes for displaying the generated summaries, such as a text box 440-1 and a text box 440-2. Each text box displays the content of a summary, and the text box in the summary area 410 can be selected to indicate that the user selects the summary displayed in the text box. If the user is not satisfied with the summaries displayed in the text boxes in the summary area 440, the computing device can be triggered by button 433 to regenerate the summary based on the label selected in the box 310 and the user input content. In response to the triggering of button 433, the computing device generates a new second prompt word for the model based on the label selected in the box 310 and the user input content, uses the generated second prompt word as the input of the model, calls the model, obtains one or more new summaries, and updates the generated new summaries to be displayed in the text box in the summary area. If the user selects a satisfactory target summary in the summary area, the computing device may be triggered to enter the stage of frame 330 through button 432. In frame 330, the computing device generates a novel outline for the user based on the summary selected in summary area 440.
[0038] Figure 4C Shown corresponding to Figure 3In response to the triggering of button 432, the computing device obtains the selected summary in summary area 440, generates a third prompt word for the model, uses the generated third prompt word as the input of the model, calls the model, obtains the novel outline, and the computing device presents the generated novel outline in interface 400. The novel outline may include the novel's world view information, character information, and plot information. Figure 4C As shown, the interface 400 includes a world view area 451, a character area 452, a plot area 453, buttons 434, buttons 435, and buttons 436. The world view area 451 includes a text box for displaying the world view information of the novel outline, the character area 452 includes a text box for displaying the character information, and the plot area includes a text box for displaying the plot information. The world view information may include, but is not limited to, at least one of the world background and background events, the character information may include, but is not limited to, at least one of the protagonist information, the supporting role information, and the villain information, and the plot information may include, but is not limited to, at least one of the main plot, the branch plot, the conflict, and the chapter information. Among them, the protagonist information, the supporting role information, and the villain information may include, but are not limited to, at least one of the name, gender, personality, appearance, character introduction, and task relationship. The chapter information may include, but is not limited to, at least one of the chapter name, chapter introduction, and one or more story introductions. The user can browse and edit the content in each text box. If the user is not satisfied with the generated novel outline, the user can trigger the computing device to generate a new novel outline for the user based on the target summary selected in box 320 through button 436. In response to the triggering of button 436, the computing device generates a new third prompt word for the model based on the target summary selected in box 320, uses the generated third prompt word as the input of the model, calls the model, and obtains a new novel outline. If the user is satisfied with the generated novel outline, the computing device can be triggered by button 434 to enter the box 340 stage. In the box 340 stage, the computing device saves the generated novel outline for the user. When writing a novel, the user can call out the saved novel outline to guide the novel writing, ensure the high consistency between the copy and the outline content, so as to better convey the theme and make it easier for readers to understand and accept the copy content. The user can also trigger the computing device to generate a novel beginning based on the generated novel outline by button 435, helping the user to quickly enter the novel writing stage. In response to the triggering of button 435, the computing device generates a fourth prompt word for the model based on the generated novel outline, uses the generated fourth prompt word as the input of the model, calls the model, and obtains the novel beginning corresponding to the novel outline. In response to the triggering of button 434, the computing device enters the stage of box 340, in which the computing device saves the generated novel outline and displays the complete content of the novel outline to the user.
[0039] Figure 4DShown corresponding to Figure 3 In response to the saving of the generated novel outline, the computing device presents the entire content of the saved novel outline in interface 400. Figure 4D As shown, the novel outline of a fantasy novel may include world view, characters, and plot outline. The world view includes world background, cheat codes, and background events. The world background describes the basic history, customs, and practices of the world. The cheat codes describe the abilities or traits of the protagonist, which can promote the plot and resolve conflicts and crises. Background events describe major events in the full text that do not happen directly to the protagonist at the moment, but play an important role in the subsequent plot. The characters include one or more protagonists, one or more supporting roles, and one or more villains. The information of each character includes name, gender, personality, appearance, character profile, character relationships, etc. The plot outline includes main line, branch line, conflicts, and chapter information. The main line describes the main goal of the protagonist, the cause, process, and result of the main story. The branch line describes the secondary goal of the protagonist, the cause, process, and result of the branch story. The conflict describes the contradictions throughout the text. The chapter information describes the volume design of the novel. For each volume, the volume name, the volume content summarized in one sentence (for example, who does what in what place), and one or more stories are described. It can be understood that Figure 4D The novel outline content shown is exemplary. For different types of copywriting, the method can support the generation of copywriting outlines with different structures. Users do not need to input and adjust prompt words multiple times to obtain a copywriting outline with a structure that highly matches the copywriting type.
[0040] The above describes the interactive interface in the process of generating a novel outline according to the embodiment of the present disclosure in combination with the accompanying drawings. It can be understood that the above interactive interface is only schematic, and the corresponding interactive interface can be set according to the needs, and the present disclosure does not limit this.
[0041] Exemplary user interactions with respect to multiple summaries will be described below with reference to the accompanying drawings. Figure 5A-Figure 5B A schematic diagram showing an exemplary process of displaying the contents of one or more summaries to a user according to a method for generating a novel outline according to an embodiment of the present disclosure. Figure 5A-Figure 5B As shown, the summary area 540 of the interface 500 includes four text boxes for displaying the generated summaries, text box 540-1 is used to display the content of the first summary, and text boxes 540-2, 540-3 and 540-4 are used to display the content of the remaining summaries among the four summaries. Figure 5A As shown, in response to the generation of multiple summaries, text box 540-1 gradually displays the content of the first summary in a streaming output manner, and at this time, the remaining text boxes each load the content of the remaining summaries to be displayed. Figure 5BAs shown, in response to the content of the first summary being fully displayed in text box 540-1, the remaining text boxes each display the content of the corresponding remaining summaries that have been loaded. Therefore, the computing device only uses a streaming output method to gradually display the content of the first summary to the user, which can respond to the user's operation in a shorter time and reduce the user's waiting. At the same time, when the user browses the content of the first summary, the content of the remaining summaries is loaded. When the content of the first summary is fully displayed, the entire content of the remaining summaries is displayed at once, so that the loading of the remaining summaries is not easily perceived by the user, thereby improving the user experience.
[0042] The following will schematically describe an exemplary training process of the copywriting outline model of an embodiment of the present disclosure in conjunction with the accompanying drawings.
[0043] like Figure 6 As shown, in box 602, an outline template of the copy is generated by the model based on the sample type label. In some embodiments of the present disclosure, multiple groups of samples are usually prepared, and each group of samples includes a sample type label, sample input content, a marked outline template, and a marked copy outline. Among them, the marked outline template corresponds to the sample type label annotation, and the marked copy outline corresponds to the marked outline template and the sample input content annotation. In some embodiments, the marked outline template and the marked copy outline that conform to the sample type label description are written manually based on the description of the sample type label and the sample input content.
[0044] In block 604, a copywriting outline of the copywriting is generated by the model based on the outline template, the sample type label, and the sample input content generated in block 602. In some embodiments of the present disclosure, a summary can be randomly generated by the model based on the sample type label and the sample input content, and then a copywriting outline of the copywriting is generated by the model based on the randomly generated summary and the outline template generated in block 602.
[0045] In box 606, the model is trained based on the generated outline template, the generated copy outline, the annotated outline template and the annotated copy outline, and the loss value is calculated by comparing the difference between the annotated outline template and the generated outline template and the difference between the annotated copy outline and the generated copy outline.
[0046] In box 608, it is determined whether the model has reached the convergence condition based on the calculated loss value. If the convergence condition has not been reached, the model is adjusted in box 612, and after the adjustment is completed, the training is continued in box 602. If the convergence condition has been reached, the model training is completed in box 612.
[0047] Figure 7 1 shows a schematic block diagram of an example device 700 according to some embodiments of the present disclosure. The device 700 may be implemented in software, hardware, or a combination of both. Figure 7 As shown, the device 700 includes an outline template generating module 710 and a document outline generating module 720 .
[0048] In some embodiments, the outline template generation module 710 can determine the outline template of the copy based on the type label of the copy. The copy outline generation module 720 can generate the copy outline of the copy based on the determined outline template and the user input content. In some embodiments, the copy is a novel, and the outline template includes an outline module corresponding to the type label, for example, at least one of world view information, character information, and plot information.
[0049] Figure 7 The device 700 can be used to achieve the above combination Figures 1 to 6 For the sake of brevity, the process will not be described in detail here.
[0050] The division of modules or units in the embodiments of the present disclosure is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in the disclosed embodiments may be integrated into one unit, or may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0051] Figure 8 800 is a block diagram of an example device 800 that can be used to implement embodiments of the present disclosure. It should be understood that Figure 8 The device 800 shown is merely an example and should not constitute any limitation on the functionality and scope of the implementation described herein. Figure 1 The model 620 described above can be used to perform the Figures 1 to 6 The process described.
[0052] like Figure 8 As shown, the device 800 is in the form of a general-purpose computing device. The components of the computing device 800 may include, but are not limited to, one or more processors or processing units 810, a memory 820, a storage device 830, one or more communication units 840, one or more input devices 850, and one or more output devices 860. The processing unit 810 may be an actual or virtual processor and is capable of performing various processes according to a program stored in the memory 820. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to increase the parallel processing capabilities of the computing device 800.
[0053] The computing device 800 typically includes a plurality of computer storage media. Such media may be any available media accessible to the computing device 800, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 820 may be a volatile memory (e.g., registers, caches, random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 830 may be a removable or non-removable medium, and may include a machine-readable medium, such as a flash drive, a disk, or any other medium, which may be capable of being used to store information and / or data (e.g., training data for training) and may be accessed within the computing device 800.
[0054] The computing device 800 may further include additional removable / non-removable, volatile / non-volatile storage media. Figure 8 As shown in , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a "floppy disk") and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to the bus (not shown) by one or more data media interfaces. The memory 820 may include a computer program product 825 having one or more program modules that are configured to perform various methods or actions of various implementations of the present disclosure.
[0055] The communication unit 840 implements communication with other computing devices through a communication medium. Additionally, the functions of the components of the computing device 800 can be implemented in a single computing cluster or multiple computing machines that can communicate through a communication connection. Therefore, the computing device 800 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.
[0056] The input device 850 may be one or more input devices, such as a mouse, a keyboard, a tracking ball, etc. The output device 860 may be one or more output devices, such as a display, a speaker, a printer, etc. The computing device 800 may also communicate with one or more external devices (not shown) through the communication unit 840 as needed, such as a storage device, a display device, etc., communicate with one or more devices that allow a user to interact with the computing device 800, or communicate with any device that allows the computing device 800 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).
[0057] According to an example implementation of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an example implementation of the present disclosure, a computer program product is also provided, the computer program product is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above. According to an example implementation of the present disclosure, a computer program product is provided, on which a computer program is stored, and when the program is executed by a processor, the method described above is implemented.
[0058] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices, equipment, and computer program products implemented according to the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0059] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0060] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable data processing apparatus, or other device implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0061] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple implementations of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some implementations as replacements, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse 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 realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.
[0062] The above descriptions of various implementations of the present disclosure are illustrative, non-exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The selection of terms used herein is intended to best explain the principles of the implementations, practical applications, or improvements to the technology in the marketplace, or to enable other persons of ordinary skill in the art to understand the various implementations disclosed herein.
Claims
1. A method for generating a copywriting outline, comprising: Determining an outline template of the copy based on the type tag of the copy, wherein the outline template includes a module of the outline corresponding to the type tag; as well as Based on the determined outline template and user input content, a copywriting outline of the copywriting is generated.
2. The method according to claim 1, wherein the type tag comprises at least one of a primary type tag, a secondary type tag corresponding to the primary type tag, and a tertiary type tag corresponding to the secondary type tag, and the outline template comprises at least one of a primary outline module corresponding to the primary type tag, a secondary outline module corresponding to the primary outline module, and a tertiary outline module corresponding to the tertiary outline; Based on the type label of the copy, the outline template of the copy includes: Based on the primary type tag, determining a primary outline module of the outline template; Based on the secondary type tag of the primary type tag, determining the secondary outline module of the primary outline module determined by the primary type tag; and Based on the tertiary type tag of the secondary type tag, a tertiary outline module of the secondary outline module determined by the secondary type tag is determined.
3. The method according to claim 2, wherein the text is a novel, the first-level outline module includes at least one of the novel's world view information, character information and plot information, the second-level outline module includes at least one of the world background and background events of the world view information, at least one of the protagonist information, supporting role information and villain information of the character information, at least one of the main plot, branch plot, conflict and chapter information of the plot information, the tertiary outline module includes at least one of the name, gender, personality, appearance, character introduction and character relationship of the protagonist information, the supporting role information and the villain information, and at least one of the chapter name, chapter introduction and one or more story introductions of the chapter information.
4. The method according to any one of claims 1 to 3, wherein determining the outline template of the copy based on the type label of the copy comprises: Displaying a plurality of type tags, the plurality of type tags comprising at least one of a primary type tag, a secondary type tag, and a tertiary type tag; According to the user's selection, determining one or more type tags of the document from the multiple type tags; as well as Based on the determined one or more type tags, the outline template is generated by a model.
5. The method according to claim 4, wherein generating a copywriting outline of the copywriting based on the determined outline template and user input content comprises: Based on the one or more type tags and the user input content, generating one or more summaries of the copy by the model; determining a target summary from the one or more summaries based on a user selection; as well as Based on the outline template and the target summary, a copywriting outline of the copywriting is generated through the model.
6. The method according to claim 5, wherein generating one or more summaries of the copy by the model based on the one or more type tags and the user input content comprises: progressively displaying to the user the content of a first summary of the plurality of summaries; as well as In response to the content of the first abstract being fully displayed, the entire contents of the remaining abstracts in the plurality of abstracts are displayed.
7. The method according to claim 5, wherein generating one or more summaries of the copy by the model based on the one or more type tags and the user input content comprises: In response to a user operation of regenerating a summary, one or more new summaries of the document are regenerated based on the type tag and the user input content.
8. The method according to claim 5, wherein generating the outline template by a model based on the one or more type tags comprises: Based on the one or more type tags, generating a first prompt word for the model; as well as Based on the first prompt word, generating an outline template of the copy by using the model; The one or more type tags and the user input content, and the one or more summaries of the copy generated by the model include: Based on the one or more type tags and the user input content, generate a second prompt word for the model; and Based on the second prompt word, generating one or more summaries of the copy by using the model; And wherein based on the outline template and the target summary, generating the copywriting outline of the copywriting through the model includes: Based on the outline template and the target summary, generating a third prompt word for the model; and Based on the third prompt word, a copywriting outline of the copywriting is generated through the model.
9. The method according to claim 8, wherein the training of the model comprises: Based on the sample type label, generating an outline template of the copywriting through the model, the sample type label having a corresponding annotated outline template; Based on the generated outline template, the sample type label and the sample input content, generating a copywriting outline of the copywriting through the model, the annotated outline template and the sample input content having a corresponding annotated copywriting outline; as well as The model is trained based on the generated outline template, the generated copy outline, the annotated outline template and the annotated copy outline.
10. The method according to claim 1, further comprising: Presenting the generated outline of the copywriting; as well as In response to a saving operation by the user, the generated document outline is saved.
11. The method according to claim 1 or 10, further comprising: Based on the generated copy outline, the beginning part of the copy is generated.
12. An electronic device comprising: at least one processing unit; At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the electronic device to perform the method according to any one of claims 1 to 11.
13. A computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the method according to any one of claims 1 to 11 when executed by a processor.
14. A computer program product having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Long text generation method and device based on large language model, equipment and storage medium
CN116796728A
Powerpoint generation method and device, electronic equipment and storage medium
CN117436417A
Long text generation method and device
CN117743567A
Cited By
Novel generation method and device based on reverse cue word, electronic equipment and medium
CN120277225A
Novel Generation Method, Device, Electronic Device and Medium Based on Reverse Prompt Words
CN120277225B
