Auxiliary writing method and device and electronic equipment

By receiving initial text information in electronic devices and generating dynamic creative text by combining the creation environment and content characteristics, the problem of user dissatisfaction caused by static templates is solved, and more accurate creative results are achieved.

CN121328478APending Publication Date: 2026-01-13VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511392030.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-26
Publication Date
2026-01-13

AI Technical Summary

Technical Problem

Existing electronic writing systems rely on static templates or rules, leading to user dissatisfaction with the writing results and the need for manual modification.

Method used

By receiving initial text information input by the user, and combining it with the characteristics of the creation environment and the characteristics of the creation content, dynamic first alternative creation text information is generated, including user profile information and application interface information. The creation task is dynamically adjusted to adapt to different scenarios and user preferences.

Benefits of technology

It improves the accuracy of the creative text provided by electronic device-assisted writing systems and reduces the need for users to modify the creative results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121328478A_ABST
    Figure CN121328478A_ABST
Patent Text Reader

Abstract

The invention discloses an auxiliary writing method and device, electronic equipment and a medium, and belongs to the technical field of electronics. The method comprises the following steps: receiving initial text information input by a user; at least one item of first alternative creation text information is displayed, and the first alternative creation text information is obtained based on creation environment feature information and creation content feature information corresponding to the initial text information, the creation environment feature information and the creation content feature information are obtained based on creation task reference information corresponding to the initial text information, and the creation task reference information comprises user portrait information and application interface information; the application interface information is information of a program interface of an application program displayed on a display screen.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of artificial intelligence technology, specifically relating to a writing assistance method, device, and electronic device. Background Technology

[0002] With the rapid development of artificial intelligence technology, AI (Artificial Intelligence) assistive tools are gradually becoming important aids for users in their daily work and life. Currently, most electronic devices have writing assistance functions, which can provide diverse creative functions such as text polishing, rewriting, expansion, and summarizing based on user input and user instructions, thereby improving users' writing efficiency and experience.

[0003] In related technologies, assisted writing systems in electronic devices can use general writing rules for creation, that is, they mainly rely on static templates or rules when creating text. However, because static templates or rules are too rigid, users are dissatisfied with the results created by the assisted writing system and thus have to manually change the creation results. Summary of the Invention

[0004] The purpose of this application is to provide an auxiliary writing method, apparatus, and electronic device that can improve the accuracy of the creative text provided by the auxiliary writing system in the electronic device.

[0005] In a first aspect, embodiments of this application provide an assisted writing method, the method comprising: receiving initial text information input by a user; displaying at least one first alternative creative text information, wherein the first alternative creative text information is obtained based on creative environment feature information and creative content feature information corresponding to the initial text information, wherein the creative environment feature information and the creative content feature information are obtained based on creative task reference information corresponding to the initial text information, wherein the creative task reference information includes: user profile information and application interface information; wherein the application interface information is information of the program interface of an application displayed on a screen.

[0006] In some embodiments of this application, the above-mentioned creative environment feature information is used to characterize the text type created by the creative task corresponding to the above-mentioned initial text information in the creative scenario corresponding to the above-mentioned program interface; the above-mentioned creative content feature information is used to characterize at least one of the following creative content features: text style, text emotion, text structure, text genre, text object, and text word count.

[0007] In some embodiments of this application, the above-mentioned creative scenarios include at least one of the following: email scenario, office scenario, article scenario, chat scenario, news scenario, comment scenario, blessing scenario, summary scenario, note scenario, poetry scenario, and social copywriting scenario; the above-mentioned text types include at least one of the following: email type, office type, article type, chat type, news type, comment type, blessing type, summary type, note type, poetry type, and social copywriting type.

[0008] In some embodiments of this application, the application interface information includes at least one of the following: the interface content of the program interface and the application attribute information of the application; wherein, the application attribute information includes at least one of the following: application name and application type.

[0009] In some embodiments of this application, the program interface includes at least one auxiliary creation control, and different auxiliary creation controls are used to trigger the execution of different creation tasks. Based on this, before displaying at least one first alternative creative text information, the method further includes: receiving a first input to one of the at least one auxiliary creation control. Displaying at least one first alternative creative text information includes: in response to the first input, displaying at least one first alternative creative text information. Wherein, the creation task corresponding to the initial text information is the creation task indicated by the auxiliary creation control selected by the first input.

[0010] In some embodiments of this application, the above-mentioned at least one auxiliary creation control includes at least one of the following: text summary control, text polishing control, text continuation control, text abbreviation control, text expansion control, grammar correction control, intelligent typesetting control, text translation control, WeChat Moments caption control, and short video caption control. The creation task indicated by the above-mentioned text summary control is to summarize the above-mentioned initial text information; the creation task indicated by the above-mentioned text polishing control is to polish the above-mentioned initial text information; the creation task indicated by the above-mentioned text continuation control is to continue writing the above-mentioned initial text information; the creation task indicated by the above-mentioned text abbreviation control is to abbreviate the above-mentioned initial text information; the creation task indicated by the above-mentioned text expansion control is to expand the above-mentioned initial text information; the creation task indicated by the above-mentioned grammar correction control is to correct the grammar of the above-mentioned initial text information; the creation task indicated by the above-mentioned intelligent typesetting control is to intelligently typeset the above-mentioned initial text information; the creation task indicated by the above-mentioned text translation control is to translate the above-mentioned initial text information; the creation task indicated by the above-mentioned WeChat Moments caption control is to create WeChat Moments caption from the above-mentioned initial text information; and the creation task indicated by the above-mentioned short video caption control is to create short video caption from the above-mentioned initial text information.

[0011] In some embodiments of this application, the aforementioned creation task reference information further includes at least one piece of historical dialogue information. One piece of historical dialogue information includes the following information from a single creation dialogue process: user profile information corresponding to a historical writing instruction, creation environment feature information corresponding to historical creation text information adopted by the user, and creation content feature information. Based on this, before displaying at least one first candidate creation text information, the method further includes: based on the aforementioned at least one piece of historical dialogue information, counting the number of N texts among M historical creation text information items that have the same user profile information, the same creation environment feature information, and the same creation content feature information, where M and N are both positive integers; determining the creation content feature information of the historical creation text information corresponding to the maximum value among the aforementioned N texts as the creation content feature information corresponding to the aforementioned initial text information, and determining the creation environment feature information of the historical creation text information corresponding to the maximum value as the creation environment feature information corresponding to the aforementioned initial text information.

[0012] In some embodiments of this application, before displaying at least one first alternative creative text information, the method further includes: determining the creative environment feature information corresponding to the initial text information based on the application interface information; and obtaining the creative content feature information corresponding to the initial text information based on the user profile information, the mapping relationship between the creative environment feature information and the creative content feature information, the user's user profile information, and the creative environment feature information.

[0013] In some embodiments of this application, before displaying at least one first alternative creative text information, the method further includes: obtaining initial creative content feature information and creative environment feature information corresponding to the initial text information based on the application interface information; and performing feature expansion on the initial creative content feature information based on the user profile information of the user to obtain creative content feature information corresponding to the initial text information.

[0014] In some embodiments of this application, before displaying at least one first alternative creative text information, the method further includes: constructing creative task prompt words corresponding to the creative task based on the user profile information of the user, the creative environment feature information and creative content feature information corresponding to the initial text information; inputting the creative task prompt words into the text creation model, and outputting at least one first alternative creative text information through the text creation model.

[0015] In some embodiments of this application, the aforementioned creation task reference information further includes at least one piece of historical dialogue information. One piece of historical dialogue information includes the following information from a single creation dialogue process: user profile information corresponding to a historical writing instruction, creation environment feature information corresponding to historical creation text information adopted by the user, and creation content feature information. Based on this, the method further includes: based on the creation environment feature information and creation content feature information corresponding to the aforementioned initial text information, selecting at least one piece of historical creation text information from the historical creation text information corresponding to the aforementioned at least one piece of historical dialogue information that has the most matches between the creation features and the creation features corresponding to the aforementioned initial text information. The aforementioned creation features include text type and attribute features represented by the creation environment feature information, and the aforementioned attribute features include attribute features corresponding to each creation content feature represented by the aforementioned creation content feature information. The aforementioned construction of creation task prompt words corresponding to the aforementioned creation task based on the user's user profile information, the creation environment feature information and creation content feature information corresponding to the aforementioned initial text information, and the aforementioned at least one piece of historical creation text information, includes: constructing creation task prompt words corresponding to the aforementioned creation task based on the user's user profile information, the creation environment feature information and creation content feature information corresponding to the aforementioned initial text information, and the aforementioned at least one piece of historical creation text information.

[0016] In some embodiments of this application, the program interface further includes at least one creative content feature control, wherein the display content of a creative content feature control is an attribute name corresponding to a creative content feature. After displaying at least one first candidate creative text information, the method further includes: receiving a second input to one of the at least one creative content feature controls; in response to the second input, updating the first attribute name displayed on the creative content feature control selected by the second input to a second attribute name, and updating the at least one first candidate creative text information to at least one second candidate creative text information corresponding to the second attribute.

[0017] Wherein, the first attribute name is the content displayed on the creation content feature control selected by the second input before receiving the second input, and the second attribute name is the attribute name selected by the second input.

[0018] In some embodiments of this application, the above-mentioned content creation feature controls include at least one of the following: text style control, text emotion control, text structure control, text genre control, text object control, and text word count control.

[0019] In some embodiments of this application, the aforementioned at least one second alternative creative text information includes any one of the following: second alternative creative text information generated in real time in response to the aforementioned second input; or second alternative creative text information pre-cached.

[0020] In some embodiments of this application, after receiving the initial text information input by the user, the method further includes: displaying the initial text information in a text input box. Displaying at least one first alternative creative text information includes: displaying Q items of first alternative creative text information, where Q is an integer greater than 1. After displaying the Q items of first alternative creative text information, the method further includes: receiving a third input for one of the Q items of first alternative creative text information; and in response to the third input, updating the initial text information displayed in the text input box to the first alternative creative text information selected by the third input.

[0021] In some embodiments of this application, the program interface further includes a regeneration control. After displaying at least one first alternative creative text information, the method further includes: receiving a fourth input from the user to the regeneration control; and updating the at least one first alternative creative text information to at least one third alternative creative text information in response to the fourth input. The at least one third alternative creative text information is regenerated based on the creative environment feature information and creative content feature information corresponding to the initial text information.

[0022] In some embodiments of this application, the program interface further includes a text creation cancellation control. After displaying at least one first alternative text creation information, the method further includes: receiving a fifth input from the user to the text creation cancellation control; and in response to the fifth input, canceling the display of the at least one first alternative text creation information.

[0023] Secondly, embodiments of this application provide an auxiliary writing device, comprising: a receiving module for receiving initial text information input by a user; and a display module for displaying at least one first alternative creative text information, wherein the first alternative creative text information is obtained based on creative environment feature information and creative content feature information corresponding to the initial text information input by the user received by the receiving module; wherein the creative environment feature information and the creative content feature information are obtained based on creative task reference information corresponding to the initial text information, and the creative task reference information includes: user profile information and application interface information; the application interface information is information of the program interface of an application displayed on the screen.

[0024] In some embodiments of this application, the aforementioned creation environment feature information is used to characterize the text type created by the creation task corresponding to the aforementioned initial text information in the creation scenario corresponding to the aforementioned program interface; the aforementioned creation content feature information is used to characterize at least one of the following creation content features: text style, text emotion, text structure, text genre, text object, and text word count. In some embodiments of this application, the aforementioned creation scenario includes at least one of the following: email scenario, office scenario, article scenario, chat scenario, news scenario, comment scenario, blessing scenario, summary scenario, note scenario, poetry scenario, and social copywriting scenario. The aforementioned text type includes at least one of the following: email type, office type, article type, chat type, news type, comment type, blessing type, summary type, note type, poetry type, and social copywriting type.

[0025] In some embodiments of this application, the application interface information includes at least one of the following: the interface content of the program interface and the application attribute information of the application. It should be noted that the application attribute information includes at least one of the following: application name and application type.

[0026] In some embodiments of this application, the program interface includes at least one auxiliary creation control; different auxiliary creation controls are used to trigger the execution of different creation tasks. Based on this, the receiving module is further configured to: receive a first input to one of the at least one auxiliary creation controls; the display module is specifically configured to: display at least one first alternative creation text information in response to the first input received by the receiving module. It should be noted that the creation task corresponding to the initial text information is the creation task indicated by the auxiliary creation control selected by the first input.

[0027] In some embodiments of this application, the above-mentioned at least one auxiliary creation control includes at least one of the following: text summary control, text polishing control, text continuation control, text abbreviation control, text expansion control, grammar correction control, intelligent typesetting control, text translation control, WeChat Moments caption control, and short video caption control. The creation task indicated by the above-mentioned text summary control is to summarize the above-mentioned initial text information; the creation task indicated by the above-mentioned text polishing control is to polish the above-mentioned initial text information; the creation task indicated by the above-mentioned text continuation control is to continue writing the above-mentioned initial text information; the creation task indicated by the above-mentioned text abbreviation control is to abbreviate the above-mentioned initial text information; the creation task indicated by the above-mentioned text expansion control is to expand the above-mentioned initial text information; the creation task indicated by the above-mentioned grammar correction control is to correct the grammar of the above-mentioned initial text information; the creation task indicated by the above-mentioned intelligent typesetting control is to intelligently typeset the above-mentioned initial text information; the creation task indicated by the above-mentioned text translation control is to translate the above-mentioned initial text information; the creation task indicated by the above-mentioned WeChat Moments caption control is to create WeChat Moments caption from the above-mentioned initial text information; and the creation task indicated by the above-mentioned short video caption control is to create short video caption from the above-mentioned initial text information.

[0028] In some embodiments of this application, the aforementioned creation task reference information further includes at least one piece of historical dialogue information; one piece of historical dialogue information includes the following information during a creation dialogue process: user profile information corresponding to a historical writing instruction, creation environment feature information and creation content feature information corresponding to historical creation text information adopted by the user. The aforementioned device further includes a statistics module, which is used to: based on the aforementioned at least one piece of historical dialogue information, count the number of N texts of M historical creation text information that have the same user profile information, the same creation environment feature information, and the same creation content feature information, where M and N are both positive integers; determine the creation content feature information of the historical creation text information corresponding to the maximum value among the aforementioned N texts as the creation content feature information corresponding to the aforementioned initial text information, and determine the creation environment feature information of the historical creation text information corresponding to the aforementioned maximum value as the creation environment feature information corresponding to the aforementioned initial text information.

[0029] In some embodiments of this application, the above-described apparatus further includes an acquisition module. The acquisition module is configured to: determine the creation environment feature information corresponding to the initial text information based on the application interface information; and acquire the creation content feature information corresponding to the initial text information based on user profile information, the mapping relationship between creation environment feature information and creation content feature information, the user's user profile information, and the creation environment feature information.

[0030] In some embodiments of this application, the above-mentioned device further includes an extension module, which is used to: obtain initial creative content feature information and creation environment feature information corresponding to the initial text information based on the application interface information; and perform feature expansion on the initial creative content feature information based on the user profile information of the user to obtain creative content feature information corresponding to the initial text information.

[0031] In some embodiments of this application, the above-mentioned device further includes an output module. The output module is configured to: construct creation task prompt words corresponding to the creation task based on the user profile information of the user, the creation environment feature information and creation content feature information corresponding to the initial text information; input the creation task prompt words into the text creation model, and output at least one first alternative creation text information to the display module through the text creation model.

[0032] In some embodiments of this application, the aforementioned creation task reference information further includes at least one piece of historical dialogue information; one piece of historical dialogue information includes the following information during a creation dialogue process: user profile information corresponding to a historical writing instruction, creation environment feature information corresponding to historical creation text information adopted by the user, and creation content feature information. Based on this, the aforementioned device further includes a filtering module, which is used to: based on the creation environment feature information and creation content feature information corresponding to the aforementioned initial text information, filter out at least one piece of historical creation text information from the historical creation text information corresponding to the aforementioned at least one piece of historical dialogue information that has the most matching numbers of creation features with the creation features corresponding to the aforementioned initial text information. It should be noted that the aforementioned creation features include text type and attribute features represented by the creation environment feature information, and the aforementioned attribute features include attribute features corresponding to each piece of creation content feature information represented by the aforementioned creation content feature information. The aforementioned construction of creation task prompt words corresponding to the aforementioned creation task based on the aforementioned user profile information, the aforementioned creation environment feature information and creation content feature information corresponding to the aforementioned initial text information, and the aforementioned at least one piece of historical creation text information, includes: constructing creation task prompt words corresponding to the aforementioned creation task based on the aforementioned user profile information, the aforementioned creation environment feature information and creation content feature information corresponding to the aforementioned initial text information, and the aforementioned at least one piece of historical creation text information.

[0033] In some embodiments of this application, the program interface further includes at least one creative content feature control, wherein the displayed content of a creative content feature control is an attribute name corresponding to a creative content feature. Based on this, the receiving module is further configured to: receive a second input to one of the at least one creative content feature controls. The display module is further configured to: in response to the second input received by the receiving module, update the first attribute name displayed on the creative content feature control selected by the second input to a second attribute name, and update the at least one first alternative creative text information to at least one second alternative creative text information corresponding to the second attribute. It should be noted that the first attribute name is the content displayed on the creative content feature control selected by the second input before receiving the second input, and the second attribute name is the attribute name selected by the second input.

[0034] In some embodiments of this application, the above-mentioned content creation feature controls include at least one of the following: text style control, text emotion control, text structure control, text genre control, text object control, and text word count control.

[0035] In some embodiments of this application, the aforementioned at least one second alternative creative text information includes any one of the following: second alternative creative text information generated in real time in response to the aforementioned second input; or second alternative creative text information pre-cached.

[0036] In some embodiments of this application, the display module is further configured to: display the initial text information in the text input box. Specifically, the display module is configured to: display Q items of first alternative creative text information; where Q is an integer greater than 1. The receiving module is further configured to: receive a third input of one of the first alternative creative text information items in the Q items. The display module is further configured to: update the initial text information displayed in the text input box to the first alternative creative text information selected by the third input in response to the third input.

[0037] In some embodiments of this application, the program interface further includes a regenerated control. The receiving module is also configured to: receive a fourth input from the user regarding the regenerated control. The display module is also configured to: update the at least one first alternative creative text information to at least one third alternative creative text information in response to the fourth input received by the receiving module. It should be noted that the at least one third alternative creative text information is regenerated based on the creative environment feature information and creative content feature information corresponding to the initial text information.

[0038] In some embodiments of this application, the program interface further includes a text creation cancellation control. The receiving module is also configured to: receive a fifth input from the user to the text creation cancellation control. The display module is also configured to: cancel the display of at least one of the first alternative text creation information in response to the fifth input received by the receiving module.

[0039] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.

[0040] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0041] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.

[0042] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.

[0043] In this embodiment, the electronic device first receives initial text information input by the user, and then displays at least one first alternative creative text information obtained based on the creative environment feature information and creative content feature information corresponding to the initial text information. The creative environment feature information and the creative content feature information are obtained based on creative task reference information corresponding to the initial text information. This creative task reference information includes user profile information and application interface information, where the application interface information is the program interface information of the application displayed on the screen. In this solution, after receiving writing instructions input by the user in the application interface, the electronic device can combine the user profile information and the application interface information to determine the creative environment feature information representing the current creative scenario and the creative content feature information representing the user's preferences. This allows the electronic device to create creative text that better suits the current creative scenario and the user's preferences based on the creative environment feature information and the creative content feature information, thus eliminating the need for manual modification by the user and improving the accuracy of the creative text provided by the electronic device's assisted writing system. Attached Figure Description

[0044] Figure 1This is a flowchart illustrating an auxiliary writing method provided in some embodiments of this application;

[0045] Figure 2 This is a schematic diagram of a chat interface for an auxiliary writing method provided in some embodiments of this application;

[0046] Figure 3 These are schematic diagrams of a short video app interface illustrating the writing assistance method provided in some embodiments of this application;

[0047] Figure 4 This is a schematic diagram of a chat interface displaying an AI writing panel in some embodiments of the writing assistance method provided in this application;

[0048] Figure 5 This is a schematic diagram of a chat interface displaying text creation results in some embodiments of the writing assistance method provided in this application;

[0049] Figure 6 This is a schematic diagram of a short video app interface displaying an AI writing panel in some embodiments of the writing assistance method provided in this application;

[0050] Figure 7 This is a schematic diagram of a short video app interface displaying text creation results in some embodiments of the writing assistance method provided in this application;

[0051] Figure 8 This is a schematic diagram of the chat interface when inputting content feature controls in the writing assistance method provided in some embodiments of this application;

[0052] Figure 9 This is a schematic diagram of the chat interface after inputting the creative content feature control in some embodiments of the writing assistance method provided in this application;

[0053] Figure 10 This is a schematic diagram of a short video app interface when inputting content feature controls in the writing assistance method provided in some embodiments of this application;

[0054] Figure 11 This is a schematic diagram of a short video app interface after inputting content feature controls in some embodiments of the writing assistance method provided in this application;

[0055] Figure 12 This is a schematic diagram of the chat interface after inputting an operation to replace the selected control in the auxiliary writing method provided in some embodiments of this application;

[0056] Figure 13 This is a flowchart illustrating some embodiments of the writing assistance method provided in this application;

[0057] Figure 14 These are schematic diagrams of writing aids provided in some embodiments of this application;

[0058] Figure 15 These are schematic diagrams of electronic devices provided in some embodiments of this application;

[0059] Figure 16 These are schematic diagrams of the hardware structure of electronic devices provided in some embodiments of this application. Detailed Implementation

[0060] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0061] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0062] The terms "at least one," "at least one of," etc., used in the specification and claims of this application refer to any one, any two, or a combination of two or more of the included items. For example, at least one of a, b, and c can mean: "a," "b," "c," "a and b," "a and c," "b and c," and "a, b, and c," where a, b, and c can be single or multiple. Similarly, "at least two" refers to two or more items, and its meaning is similar to that of "at least one."

[0063] The technical terms involved in the technical solutions provided in the embodiments of this application will be explained below.

[0064] The term "identifier" in this application refers to text, symbols, images, etc., used to indicate information. It can be a carrier for displaying information in the form of an identifier or other container, including but not limited to text identifiers, image identifiers, symbol identifiers, etc.

[0065] An application (APP) is a computer program designed to perform one or more specific tasks. It runs in user mode, can interact with the user, and has a visual user interface.

[0066] An interface (interface) refers to the visual operational layer through which users interact with electronic devices, such as mobile phones. It serves as the medium for information presentation and input / output within a hardware or software system. Electronic devices can display an interface on a screen, allowing users to interact with the device through touch, clicks, or gestures. The interface can include elements such as icons, buttons, menus, text, and labels.

[0067] A control is an element in a graphical user interface that receives user input to perform corresponding processing or display relevant data. Controls can include, but are not limited to, virtual buttons, sliders, progress bars, and checkboxes.

[0068] Artificial Intelligence (AI) is a key driving force behind the new round of technological revolution and industrial transformation. It is a new technological science that studies and develops theories, methods, technologies, and application systems to simulate, extend, and expand human intelligence. AI is an important component of the discipline of intelligence; it attempts to understand the essence of intelligence and produce a new kind of intelligent machine that can react in a way similar to human intelligence. AI is a very broad science, encompassing robotics, speech recognition, image recognition, natural language processing, expert systems, machine learning, computer vision, and more.

[0069] Large Language Models (LLMs) typically use word embeddings or deep learning models to convert text into numerical vector matrices that computers can understand. This representation allows models to better capture the semantic information of the text. For example, a deep learning model could be a Transformer model. LLMs are large models that predict text tokens using multi-layer transformers. They can take text as input and output text, and are currently widely used in various natural language processing tasks, such as dialogue systems, machine translation, and document writing.

[0070] Dynamic prompts, typically referring to the model's prompts or templates used during large-scale model training, serve as an input method. They restrict the model's input to a specific range, allowing for better control over the output and ensuring the model performs tasks as required. A prompt is a text or question provided to the model, instructing it to generate a specific answer or continue generating text. The prompt should clearly indicate the task the model must perform and the text parameters that the output answer or text must meet. These text parameters may include at least one of the following: word count range, sentiment tendency, etc. The tasks mentioned above can include at least one of the following: answering questions, generating text, translating, extracting summaries, classification, etc.

[0071] The auxiliary writing method provided by the embodiments of this application will be described in detail below with reference to the accompanying drawings, through specific examples and application scenarios.

[0072] The assisted writing method provided in this application can be applied to text creation scenarios. These text creation scenarios may include, but are not limited to: text generation, text polishing, text expansion, text summarization, text abbreviation, grammar correction, intelligent text typesetting, text translation, short video copywriting creation, and WeChat Moments copywriting creation.

[0073] In a specific application scenario, the assisted writing method provided in this application can be applied to the scenario of refining input text in a chat session. For example, in scenario 1, in a chat between user 1 and user 2, user 1's phone displays a chat interface with user 2. When user 1's phone receives a conversation message sent by user 2, such as "Today is my birthday," user 1 can enter information in the input box of the chat interface with user 2, such as "Happy birthday to you, may you have many more birthdays to come." Subsequently, user 1 can use the built-in assisted writing function on their phone to refine the information so as to send the refined recommended text to user 2.

[0074] Another specific application scenario is that the assisted writing method provided in this application can be applied to short video script generation. For example, in scenario 2, if user 3 opens the "Short Video" app on their phone and wants to add a script to a short video, user 3 will enter the text "The beach is so beautiful" in the short video script editing interface. Subsequently, user 2 can use the built-in assisted writing function on their phone to control the phone to automatically generate a short video script corresponding to that text.

[0075] The execution subject of the writing assistance method provided in this application can be an interface display device. For example, the interface display device can be an electronic device such as a mobile phone, tablet computer, laptop computer, PDA, or in-vehicle electronic device, or a functional module or processing module within that electronic device; this application does not limit this. Some embodiments of this application use a mobile phone as the execution subject to illustrate the writing assistance method provided in this application.

[0076] This application provides an auxiliary writing method. Figure 1 A flowchart illustrating an auxiliary writing method provided in an embodiment of this application is shown. Figure 1 As shown, the writing assistance method provided in this application embodiment is executed by an electronic device, and the method may include the following steps 201 to 202.

[0077] Step 201: The electronic device receives the initial text information input by the user.

[0078] In some embodiments of this application, the user can input the initial text information in the application's program interface displayed on the screen.

[0079] In some embodiments of this application, the application displayed on the screen can be any application installed on the mobile phone, including but not limited to chat applications, shopping applications, map navigation applications, short video apps, browser applications, artificial intelligence applications, reading applications, food delivery applications, or other applications. This application does not limit this.

[0080] In some embodiments of this application, the aforementioned initial text information is the original text information of the first alternative creative text information subsequently displayed.

[0081] In some embodiments of this application, users can input the aforementioned initial text information in dialog boxes, search boxes, editing areas of the application interface, or other areas where text input is possible.

[0082] Step 202: The electronic device displays at least one first alternative creative text information, which is obtained based on the creative environment feature information and creative content feature information corresponding to the initial text information.

[0083] In some embodiments of this application, the aforementioned creation environment feature information and the aforementioned creation content feature information are obtained based on creation task reference information corresponding to the aforementioned initial text information. The aforementioned creation task reference information includes: user profile information and application interface information; the aforementioned application interface information is the program interface information of the application displayed on the screen.

[0084] In some embodiments of this application, the aforementioned creative task reference information may further include at least one piece of historical dialogue information; one piece of historical dialogue information includes the following information during a creative dialogue process: a piece of historical writing instruction information, and historical creative text information adopted by the user.

[0085] In some embodiments of this application, the aforementioned historical writing instruction information is used to describe the historical creation task corresponding to each piece of historical dialogue information.

[0086] For example, the above historical instruction information could be: "Write a primary school student diary entry of 100 words, in a lively style", "Help me write a birthday blessing poem in the form of 4 lines", or "Help me write a blessing message".

[0087] In some embodiments of this application, the electronic device first generates first candidate creative text information based on the creative environment feature information and creative content feature information corresponding to the above-mentioned initial text information.

[0088] In some embodiments of this application, the electronic device can send the creation environment feature information and creation content feature information corresponding to the above-mentioned initial text information to the cloud server. The cloud server generates first candidate creation text information based on the received creation environment feature information and creation content feature information, and sends part or all of the first candidate creation text information to the electronic device.

[0089] In some embodiments of this application, the electronic device can cache the first alternative creative text information sent by the cloud server to the electronic device, and display part or all of the first alternative creative text information received from the cloud server.

[0090] In some embodiments of this application, the creative content feature information corresponding to the initial text information may include one or more creative content feature information that represent the same creative content feature. Each creative content feature information represents an attribute feature of the same creative content feature, and the attribute features represented by different creative content feature information are different.

[0091] In some embodiments of this application, a first candidate creative text information corresponds to a creative environment feature information, and among the creative content feature information corresponding to a first candidate creative text information, there is one creative content feature information that represents the same creative content feature.

[0092] In some embodiments of this application, when there are multiple creative content feature information representing the same creative content feature among the creative content feature information corresponding to the above-mentioned initial text information, the creative content feature information corresponding to any two of the above-mentioned first candidate creative text information can be completely the same or partially the same.

[0093] In some embodiments of this application, the creative environment feature information corresponding to the above-mentioned at least one first alternative creative text information displayed by the electronic device is the earliest creative environment feature information obtained by the electronic device.

[0094] In some embodiments of this application, among the creative content feature information corresponding to at least one first alternative creative text information displayed by the electronic device, the creative content feature represented by the creative content feature information corresponding to one text feature is the earliest creative content feature obtained by the electronic device.

[0095] In some embodiments of this application, the electronic device displays at least one of the aforementioned first alternative creative text information in a program interface, or the electronic device displays at least one of the first alternative creative text information in an AI writing panel of the program interface. Of course, the electronic device may also display the aforementioned at least one of the first alternative creative text information in other interfaces, and this application embodiment does not limit this.

[0096] In some embodiments of this application, the aforementioned creative environment feature information is used to characterize the text type created by the creative task corresponding to the aforementioned initial text information in the creative scenario corresponding to the aforementioned program interface.

[0097] In some embodiments of this application, the above-mentioned creative scenarios include at least one of the following: email scenario, office scenario, article scenario, chat scenario, news scenario, comment scenario, blessing scenario, summary scenario, note scenario, poetry scenario, social copywriting scenario, or other scenarios. This application does not limit these scenarios.

[0098] In some embodiments of this application, the above-mentioned text types include at least one of the following: email type, office type, article type, chat type, news type, comment type, greeting type, summary type, note type, poem type, social copywriting type, or other types, and this application embodiment does not limit them.

[0099] In some embodiments of this application, the electronic device uses the creation task reference information as the reference text of the first model, and combines it with the definition of different creation environment characteristic information to determine the above-mentioned creation environment characteristic information through the first model.

[0100] In some embodiments of this application, the input of the first model is creative task reference information, or the input of the first model is the interface content of the program interface in the creative task reference information, and the output of the first model is creative environment feature information corresponding to the initial text information.

[0101] In some embodiments of this application, the first model described above can be an AI large model, a neural network model, or other types of models, and this application does not limit this.

[0102] In some embodiments of this application, the electronic device instructs the first model to output the aforementioned creative environment feature information by using a first statement.

[0103] In some embodiments of this application, the first statement mentioned above includes instruction information for input / output control of the first model.

[0104] In some embodiments of this application, the electronic device pre-stores definitions of different creative environment feature information, or the electronic device can obtain the definitions of different creative environment feature information from a server.

[0105] Based on Scenario 1, the first statement of the creation environment characteristic information corresponding to the initial text information "Happy Birthday to You, May You Have Many More Birthdays to Come" output by the first model on the mobile phone is as follows:

[0106]

[0107]

[0108] In this context, the phrase "character setting" defines the purpose of the current task. Understandably, in the example above, the current task is to classify the creative scenarios of the reference text; the phrase "requirements" specifies the concrete content of the current task and defines the output requirements of the first model; and the phrase "examples" allows the model to learn the logic and output of examples used to judge the characteristics of the creative environment. Therefore, the creative environment characteristic information corresponding to the initial text information output by the first model is: "scene": "blessing".

[0109] Based on scenario 2, the first statement of the creation environment characteristic information corresponding to the initial text information "The seaside is so beautiful" output by the mobile phone to the first model is as follows:

[0110]

[0111]

[0112] When the electronic device corresponding to scenario 2 above obtains the creation environment characteristic information of the reference text, the relevant paragraphs of the first sentence of the first model can be referred to in the similar description of the first sentence of scenario 1 above for specific explanation. To avoid repetition, they will not be repeated here.

[0113] It is understandable that the text type created by the creation task corresponding to the initial text information is different in different creation scenarios. Therefore, the text type represented by the creation environment feature information is also different in different creation scenarios. Thus, the text type of the first alternative creation text information obtained based on the creation environment feature information corresponding to the initial text information can be adapted to different creation scenarios corresponding to different program interfaces.

[0114] In some embodiments of this application, the above-mentioned creative content feature information is used to characterize at least one of the following creative content features: text style, text emotion, text structure, text genre, text object, text word count, or other creative content features. This application does not limit these features.

[0115] In some embodiments of this application, an initial text information may have one creative content feature or multiple creative content features.

[0116] In some embodiments of this application, each of the above-mentioned creative content features has corresponding attribute features, and the above-mentioned creative content feature information includes information used to characterize the attribute features corresponding to at least one creative content feature.

[0117] For example, the attribute features corresponding to the above text style include at least one of the following: concise style, lyrical style, professional style, humorous style, or other styles, and this application embodiment does not limit this.

[0118] The attribute features corresponding to the above-mentioned text sentiment include at least one of the following: positive sentiment, negative sentiment, neutral sentiment, or other sentiments. This application embodiment does not limit this.

[0119] The attribute features corresponding to the above text structure include at least one of the following: general-specific-general structure, linear structure, parallel structure, or other structure. This application embodiment does not limit this.

[0120] The attribute features corresponding to the above-mentioned text genres include at least one of the following: narrative text, expository text, argumentative text, poetry, short sentences, or other genres, which are not limited in the embodiments of this application.

[0121] The attribute characteristics corresponding to the above-mentioned text object include at least one of the following: general object, specific target object, specific group object, or other object. This application embodiment does not limit this.

[0122] In some embodiments of this application, when the creative content feature does not have an attribute feature, the attribute feature corresponding to the creative content feature is none.

[0123] In some embodiments of this application, an attribute feature corresponding to a creative content feature of the initial text information may have one or more attribute features. When a creative content feature corresponding to the initial text information has multiple attribute features, the electronic device can sort the creative content feature information corresponding to the multiple attribute features.

[0124] In some embodiments of this application, the electronic device may sort the creative content feature information corresponding to the above-mentioned multiple attribute features of the same creative content feature from front to back according to the acquisition time; or, sort the creative content feature information corresponding to the above-mentioned multiple attribute features of the same creative content feature from high to low according to user preference; or, randomly sort the creative content feature information corresponding to the above-mentioned multiple attribute features of the same creative content feature; or, sort the creative content feature information corresponding to the above-mentioned multiple attribute features of the same creative content feature in other ways. The embodiments of this application do not limit this.

[0125] In some embodiments of this application, the electronic device uses the creation task reference information as the reference text of the second model, and combines it with the definition of the feature information of different creation content to determine the above-mentioned creation environment characteristic information through the first model.

[0126] In some embodiments of this application, the first model and the second model described above may be the same model or different models, and this application does not limit this.

[0127] In some embodiments of this application, the input of the second model is creative task reference information, or the input of the second model is the interface content of the program interface in the creative task reference information, and the output of the second model is creative content feature information corresponding to the initial text information.

[0128] In some embodiments of this application, the second model described above can be an AI large model, a neural network model, or other types of models, and this application does not limit this.

[0129] In some embodiments of this application, the electronic device instructs the second model to output the aforementioned creative content feature information by using a second statement.

[0130] In some embodiments of this application, the second statement mentioned above includes instruction information for input / output control of the second model.

[0131] In some embodiments of this application, the electronic device pre-stores definitions of different creative content feature information, or the electronic device can obtain definitions of different creative content feature information from a server.

[0132] Based on Scenario 1, the second statement of the creative content characteristic information corresponding to the initial text information "Happy Birthday to You, May You Have Many More Birthdays to Come" output by the second model on the mobile phone is as follows:

[0133]

[0134] In this context, the phrase "character design" defines the purpose of the current task to construct the second model. Understandably, in the example above, the current task is text classification; the phrase "requirements" specifies the concrete content of the current task and defines the output requirements of the second model; the phrase "examples" allows the second model to learn the logic and output of examples used to judge the creative content features; and the phrase "Query" represents the initial text information. Thus, the second model obtains the following creative content features from the reference text: the text style is lyrical, the text emotion is positive, the text structure is nonexistent, the text genre is poetry, the text object is general, and the text word count is unlimited.

[0135] Based on the first and second models mentioned above, the mobile phone obtains the following creation environment feature information and creation content feature information corresponding to the initial text information "Happy Birthday to You, May You Have Many More Birthdays to Come".

[0136] {

[0137] “scene”: “Blessing”

[0138] "style": "lyrical",

[0139] “emotion”: “positive”

[0140] “structure”: None

[0141] "type": "poetry"

[0142] "object": "generic"

[0143] “num”: None.

[0144] }

[0145] Among them, “scene”: “Blessing” is obtained through the first model, and the rest of the output results are obtained through the second model.

[0146] Based on scenario 2, the second statement of the creative content characteristic information corresponding to the initial text information "The seaside is so beautiful" is as follows:

[0147]

[0148] In Scenario 2, when the mobile phone obtains the creation environment characteristics information of the reference text, the explanation of the relevant segments of the second sentence input to the second model can be found in the similar description of the relevant segments of the second sentence in Scenario 1 above. To avoid repetition, it will not be repeated here.

[0149] Based on the first and second models mentioned above, the mobile phone obtains the following creation environment feature information and creation content feature information corresponding to the initial text information "The seaside is so beautiful":

[0150] {

[0151] “scene”: “social media copywriting”

[0152] "style": "humor"

[0153] “emotion”: “positive”

[0154] “structure”: None

[0155] "type": "short sentence"

[0156] "object": "friend"

[0157] “num”: None.

[0158] }

[0159] In some embodiments of this application, after receiving initial text information input by a user, the electronic device displays first alternative creative text information. This first alternative creative text information is obtained based on creative environment feature information and creative content feature information. The aforementioned creative environment feature information represents the text type created by the corresponding creative task in the creative scene corresponding to the initial text information program interface. The aforementioned creative content feature information represents the creative content features of different text attributes such as text style and text emotion.

[0160] In this way, the text type and content characteristics of the first candidate text can be adapted to the text type and content characteristics required by the user in the creation scenario corresponding to the program interface.

[0161] In some embodiments of this application, the aforementioned user profile information may be: locally stored user profile information, or cloud-based user profile information, or authorized user profile information in an electronic device, or other user profile information. This application does not limit this.

[0162] In some embodiments of this application, the user profile information of the aforementioned user includes at least one of the following: the user's age, the user's occupation, the user's gender, the user's reading preferences, or other user-related information. This application does not limit this information.

[0163] For example, the age of the user mentioned above can be: 12 years old, 26 years old, 35 years old, or any other age number.

[0164] The occupations of the aforementioned users may include at least one of the following: white-collar worker, primary school student, doctor, teacher, writer, singer, worker, or other identity.

[0165] The gender of the users mentioned above can include: female or male.

[0166] The reading preferences of the aforementioned users may include at least one of the following: fantasy novels, lyrical essays, entertainment magazines, science and technology journals, and fairy tales.

[0167] Understandably, since different user profiles have different requirements for the creation of text, electronic devices can determine the text that users prefer by obtaining user profile information.

[0168] In some embodiments of this application, the application interface information includes at least one of the following: the interface content of the program interface and the application attribute information of the application.

[0169] In some embodiments of this application, the interface content of the above-mentioned program interface includes at least one of the following: title, body text, dialogue text, text annotation, text format, salutation, emoticons, language style of the program interface, or other interface content. This application does not limit this aspect.

[0170] In some embodiments of this application, the above-mentioned application attribute information includes at least one of the following: the application name of the application, and the application type of the application.

[0171] For example, the application name of the above application can be the package name of the application, such as com.vivo.email, com.tencent.mm, com.xingin.xhs; or, the application name of the above application can also be the application name corresponding to the internal module of the electronic device, such as email, document, recorder, atomic note.

[0172] For example, the application type of the above application may include any of the following: social, office, shopping, navigation, or other types, and this application embodiment does not limit this.

[0173] In some embodiments of this application, when the application attribute information only includes the application package name, the electronic device can determine the application type of the program interface based on the mapping relationship between the application package name and the application type.

[0174] Combining Scenario 1 and Appendix Figure 2 , attached Figure 2The following is a schematic diagram of the chat interface in Scenario 1. Assume the application's package name is "com.tencent.mm", and User 1's user profile is a white-collar worker, male. Simultaneously, the phone detects that User 2's chat content in this interface is "Today is my birthday." Combining this with User 1's historical conversation information within the chat application, the phone obtains the following creation task reference information:

[0175]

[0176] Among them, the background_app field is the application's package name, and the corresponding string type is str;

[0177] The above-mentioned quote field is the citation information of the program interface. If the program interface also includes a title and body text, the creation task reference information also includes the "body" field and the "title" field. The "body" field represents the body text information, and the "title" field represents the title information.

[0178] The above field `query` is the initial text information entered by the user in the dialog box of the application interface, and its string type is `str`.

[0179] The "user" field mentioned above is used to represent user profile information;

[0180] The above-mentioned "history" field contains historical dialogue information in JSON format. The "user" field contains historical writing instructions, and the "content" field contains historical creative text information accepted by the user.

[0181] Combining Scenario 2 and Appendix Figure 3 Appendix Figure 3 The diagram below illustrates the interface of a short video app in scenario 2. Assume the application package name of the short video app is "com.xingin.xhs", user 3's user profile is a primary school student, and the phone also detects that the title of the edited content in the short video app interface is "the sea". Combining this with user 3's historical conversation information in the chat application, the phone obtains the following creation task reference information:

[0182]

[0183] For explanations of the relevant segments of the creative task reference information obtained by the mobile phone in Scenario 2, please refer to the explanations of the segments of the creative task reference information in Scenario 1. To avoid repetition, they will not be repeated here.

[0184] It is understood that in the technical solution of this application, the electronic device can perform feature expansion based on the interface content, application attribute information and initial text information input by the user, and combined with user profile information. That is, it can perform feature expansion on the creation environment feature information and / or creation content feature information by combining user profile information, thereby enabling differentiated expression of the same user instruction in different scenarios.

[0185] In some embodiments of this application, the electronic device can display first alternative creative text information to the user based on creative environment feature information and creative content feature information corresponding to the initial text. The aforementioned creative content feature information and creative content feature information are obtained based on creative task reference information, which includes the interface content of the program interface and the application attribute information of the aforementioned application.

[0186] In this way, by analyzing the scene and screen content, the displayed alternative creative text information can be adapted to the interface content of the program interface and the application attributes of the application, ensuring that the generated creative text information is highly consistent with the user's current situation. Whether in terms of format, style or content focus, it can accurately meet the user's immediate needs and significantly improve the relevance of the content and the fit of the context.

[0187] In some embodiments of this application, the program interface includes at least one auxiliary creation control; different auxiliary creation controls are used to trigger the execution of different creation tasks. Based on this, before displaying at least one first alternative creative text information, the assisted writing method provided by this application further includes step 201a, and step 202 can be specifically implemented through the following step 202a:

[0188] Step 201a: The electronic device receives a first input to one of the at least one auxiliary authoring controls.

[0189] Step 202a: In response to the first input, the electronic device displays at least one first alternative creative text information.

[0190] In some embodiments of this application, the creation task corresponding to the initial text information is the creation task indicated by the auxiliary creation control selected by the first input.

[0191] In some embodiments of this application, the first input is used to trigger the electronic device to perform text creation on the initial text information according to the creation task corresponding to the initial text.

[0192] In some embodiments of this application, the aforementioned first input may include, but is not limited to, any of the following: touch input by the user through a touch device such as a finger or stylus to the auxiliary creation control, or a voice command input by the user, or a specific gesture input by the user, or other feasible input. The specific input can be determined according to actual usage needs, and this application does not impose any limitations.

[0193] In some embodiments of this application, the first input mentioned above is the input received by the electronic device after receiving initial text information from the user.

[0194] In some embodiments of this application, the above-mentioned program interface displays an AI writing panel, and the above-mentioned auxiliary creation controls are displayed in the AI ​​writing panel of the program interface.

[0195] In some embodiments of this application, when a user clicks a dialog box or search box on the application interface, the program interface of the electronic device can pop up an input keyboard panel. The input keyboard panel may include an AI writing panel pull-up control. The user can input on the AI ​​writing panel pull-up control, and the electronic device can respond to the input and display the AI ​​writing panel.

[0196] Combining Scenario 1 and Appendix Figure 2 , 4 5, Appendix Figure 2 This is a schematic diagram of the chat interface in Scenario 1, as shown below. Figure 2 As shown, after User 1 enters "Happy Birthday to you, may you have many more birthdays to come" in the input box of the chat interface, they can click on the AI ​​writing panel to bring up control 11. (Attached) Figure 4 This is an illustration of a chat interface displaying an AI writing panel in Scene 1, as shown below. Figure 4 As shown, the phone responds to the click operation by displaying the AI ​​writing panel. When the user clicks an auxiliary creation button 12 on the AI ​​writing panel, additional... Figure 5 This is a schematic diagram of the chat interface displaying the text creation results in Scene 1, such as... Figure 5 As shown, in response to the click operation, the mobile phone performs the creation task corresponding to the auxiliary creation button 12 on the message "Happy Birthday to you, may you have many more birthdays to come". It then obtains and displays three blessing messages, namely the first alternative creation text mentioned above.

[0197] Combining Scenario 2 and Appendix Figure 3 , 6 7, Appendix Figure 3 This is a schematic diagram of the short video app interface in Scenario 1, such as... Figure 3 As shown, after User 3 types "The sea is so beautiful" on the "Short Video" app interface, the user can click on the AI ​​writing panel to bring up control 11. (Attached) Figure 6This is a schematic diagram of a short video app interface displaying an AI writing panel, as shown in Scenario 2. Figure 6 As shown, the phone responds to the click operation by displaying the AI ​​writing panel after the user clicks button 13, an auxiliary creation control on the AI ​​writing panel. (Attached) Figure 7 The image shown in Scene 2 illustrates a short video app interface displaying text creation results, such as... Figure 7 As shown, in response to the click operation, the mobile phone performs the creation task corresponding to the auxiliary creation control 13 on "The sea is so beautiful", and obtains and displays three short video texts about the sea, namely, the first alternative creation text mentioned above.

[0198] In some embodiments of this application, after receiving a first input from a user to one of the auxiliary creation controls, the electronic device can perform a creation task on the initial text information input by the user, as indicated by the auxiliary creation control selected by the first input, thereby displaying the first alternative creation text information obtained through creation.

[0199] Thus, by enabling the creation of text based on the user's desired creative task, the user satisfaction with the displayed first alternative creative text information is improved.

[0200] In some embodiments of this application, the above-mentioned auxiliary creation control may include at least one of the following controls: summary control, polishing control, abbreviation control, expansion control, grammar correction control, intelligent typesetting control, translation control, WeChat Moments copywriting control, dedicated app copywriting control, or other controls. This application embodiment does not limit the scope of these controls.

[0201] In some embodiments of this application, the creation task indicated by the above-mentioned text summary control is to summarize the above-mentioned initial text information.

[0202] In some embodiments of this application, the creation task indicated by the above-mentioned text polishing control is to polish the above-mentioned initial text information.

[0203] In some embodiments of this application, the creation task indicated by the above-mentioned text continuation control is to continue writing the above-mentioned initial text information.

[0204] In some embodiments of this application, the creation task indicated by the above-mentioned text abbreviation control is to abbreviate the above-mentioned initial text information.

[0205] In some embodiments of this application, the creation task indicated by the above-mentioned text expansion control is to expand the above-mentioned initial text information.

[0206] In some embodiments of this application, the creation task indicated by the above-mentioned grammar correction control is to perform grammar correction on the above-mentioned initial text information.

[0207] In some embodiments of this application, the creation task indicated by the above-mentioned intelligent typesetting control is to perform intelligent typesetting on the above-mentioned initial text information.

[0208] In some embodiments of this application, the creation task indicated by the above-mentioned text translation control is to translate the above-mentioned initial text information.

[0209] In some embodiments of this application, the creation task indicated by the aforementioned WeChat Moments caption control is to create WeChat Moments captions from the aforementioned initial text information.

[0210] In some embodiments of this application, the creation task indicated by the above-mentioned short video text control is to create short video text from the above-mentioned initial text information.

[0211] Combining Scenario 1 and Appendix Figure 4-5 The auxiliary creation control 12 clicked by the user is a text polishing control, with... Figure 5 The birthday wishes were obtained by refining the initial text "Happy Birthday to you, may you have many more birthdays to come."

[0212] Combining Scenario 2 and Appendix Figure 6-7 The auxiliary creation control 13 clicked by the user is a short video text control, attached... Figure 7 The short video script was created by adapting the initial text "The sea is so beautiful" into a short video script.

[0213] In some embodiments of this application, after receiving a user's first input to one of a plurality of auxiliary creation controls, the electronic device can execute a creation task on the initial text information input by the user, which is indicated by the auxiliary creation control selected by the first input, and the creation tasks triggered by different auxiliary controls are different.

[0214] This allows users to select the desired creation task from different options to create text for the initial text, thus improving user satisfaction with the first alternative text information displayed.

[0215] In some embodiments of this application, the aforementioned creation task reference information may further include at least one piece of historical dialogue information. One piece of historical dialogue information includes the following information from a single creation dialogue process: user profile information corresponding to a historical writing instruction, creation environment characteristic information corresponding to historical creation text information adopted by the user, and creation content characteristic information. Based on this, prior to step 202, the assisted writing method provided by this application further includes the following steps 203a and 203b:

[0216] Step 203a: Based on at least one of the above historical dialogue information, the electronic device counts the number of N texts of M historical creation text information that have the same user profile information, the same creation environment feature information, and the same creation content feature information, where M and N are both positive integers;

[0217] Step 203b: The electronic device determines the creation content feature information of the historical creation text information corresponding to the maximum value among the above N text quantities as the creation content feature information corresponding to the above initial text information, and determines the creation environment feature information of the historical creation text information corresponding to the maximum value as the creation environment feature information corresponding to the above initial text information.

[0218] In some embodiments of this application, the aforementioned historical dialogue information refers to the dialogue information between the user and the electronic device during the creation process of the electronic device before the electronic device receives the aforementioned initial text information.

[0219] In some embodiments of this application, the users of the aforementioned electronic devices correspond to user profile information, which may be the same as or different from the user profile information in the creation task reference information.

[0220] In some embodiments of this application, the aforementioned historical creation text information refers to the creation text information adopted by the user during the creation process of the electronic device before receiving the aforementioned initial text information; the aforementioned historical creation environment feature information refers to the creation environment feature information corresponding to the creation text information adopted by the user before the electronic device received the aforementioned initial text information; and the aforementioned historical creation content feature information refers to the creation content feature information corresponding to the creation text information adopted by the user before the electronic device received the aforementioned initial text information.

[0221] In some embodiments of this application, the electronic device counts the historical dialogue information in at least one item where the user profile information is the same as the user profile information in the creation task reference information, to obtain the number of N texts in M ​​items of historical creation text information, where M and N are both positive integers. It should be noted that M above is the total number of texts in the historical dialogue information where the user profile information is the same as the user profile information in the creation task reference information.

[0222] In some embodiments of this application, each of the aforementioned N text quantities corresponds to specific creation environment feature information and creation content feature information. The creation environment feature information and creation content feature information corresponding to different text quantities are not entirely the same. For example, the creation environment feature information and creation content feature information corresponding to different text quantities are both different; or, the creation environment feature information corresponding to different text quantities is the same, but the creation content feature information is different; or, the creation environment feature information corresponding to different text quantities is different, but the creation content feature information is the same; or, the creation environment feature information corresponding to different text quantities is the same, but some information in the creation content feature information is different.

[0223] In some embodiments of this application, the electronic device may statistically analyze the historical creative content feature information corresponding to one of the creative content features in the historical creative content feature information, or it may statistically analyze the historical creative content feature information corresponding to all creative content features. This application does not limit this.

[0224] Further optionally, in some embodiments of this application, the electronic device can sort the above N text quantities from largest to smallest, and determine the creation environment feature information of the top X historical creation text information as the creation environment feature information corresponding to the initial text information, where X is a positive integer. For example, the value of X can be 3.

[0225] In some embodiments of this application, the electronic device uses the historical dialogue information corresponding to the historical creation text information corresponding to the maximum value among the above N text quantities as few-shot learning data, or the electronic device uses the historical dialogue information corresponding to the above-ranked top X historical creation text information as few-shot learning data.

[0226] In some embodiments of this application, the aforementioned historical dialogue information may be locally cached historical dialogue information, cloud cached historical dialogue information, or cached historical dialogue information obtained through other means. This application does not limit this.

[0227] In some embodiments of this application, each time a dialogue for creating the first alternative text occurs in the electronic device, the electronic device caches the dialogue as historical dialogue information in the subsequent text creation process.

[0228] It is understandable that by caching the aforementioned historical dialogue information and constructing few-shot learning data, the first alternative creative text information obtained based on the historical dialogue information can better match the user's preferences, thereby making the user use the writing assistance method more frequently and the first alternative creative text information obtained more closely match the user's preferences.

[0229] In some substantive examples of this application, during a historical dialogue, the user first inputs historical writing instructions into the electronic device, and the electronic device, in response to the writing instructions, displays at least one alternative historical text to the user. Then, the user can select one or more historical texts from the alternative historical texts.

[0230] In some embodiments of this application, the aforementioned historical writing instruction information is information input by the user into the electronic device to describe the historical creation task. The electronic device can respond to the historical writing instruction input by the user and create alternative historical creation text information based on the historical creation task described by the historical instruction information.

[0231] In some embodiments of this application, the historical creative text information adopted by the user is the historical creative text information selected by the user from at least one of the above-mentioned alternative historical creative text information.

[0232] In some embodiments of this application, a historical creative text information has corresponding creative environment feature information and creative content feature information.

[0233] It is understandable that during a creative dialogue, an electronic device may display multiple alternative historical creative text information to the user, among which there may be historical creative text information that the user is not satisfied with. Since the historical creative text information in this application is the historical creative text information adopted by the user, the electronic device can obtain the user's preferred creative environment feature information and creative content feature information based on the historical creative text information adopted by the user. As a result, when creating text based on the creative environment feature information and creative content feature information, the text creation result obtained is more in line with the user's preferences.

[0234] Based on Scenario 1, User 1's user profile is that of a white-collar male. Therefore, the mobile phone retrieves historical conversation information where the user profile is that of a white-collar male from historical conversation data. It then counts the number of historically created text messages where the user profile is that of a white-collar male, and which share similar creative environment and content characteristics. The statistical results are shown in Table 1.

[0235] Table 1

[0236]

[0237] Among them, the above-mentioned "User Profile" column contains the user profile information of the current user, the above-mentioned "Query" column contains the historical writing instruction information, the above-mentioned "Features" column contains the historical created text information, which includes the creation environment feature information Scene, the creation content feature information, and the creation content feature information. The above-mentioned "Cnt" column contains the number of created texts with the same user profile information (white-collar male), the same creation environment feature information, and the same text feature information in the historical created texts corresponding to the historical instruction information.

[0238] Based on Table 1, the mobile phone determines that the maximum number of texts in Table 1 is 1000. Based on this, the mobile phone can use the creation environment feature information "blessing" corresponding to this number of texts as the creation environment feature information corresponding to the initial text information "Happy Birthday to You, May You Have This Day Every Year". The mobile phone can also use the creation content feature information "text word count is 300, text style is lively" corresponding to this number of texts as the creation content feature information corresponding to the initial text information "Happy Birthday to You, May You Have This Day Every Year".

[0239] Based on scenario 2, user 3's user profile information is that of a primary school student. Therefore, the mobile phone retrieves historical conversation information where the user profile information is that of a primary school student from historical conversation information, and counts the number of historical text messages where the user profile information is that of a primary school student, and which share the same creative environment characteristics and creative content characteristics. The statistical results are shown in Table 2.

[0240] Table 2

[0241]

[0242]

[0243] The parameters in the different columns of Table 2 can be referred to in a similar description as in Table 1. To avoid repetition, they will not be repeated here.

[0244] Based on Table 2, the mobile phone determines that the maximum number of texts in Table 2 is 10,000. Based on this, the mobile phone can use the creation environment feature information "article" corresponding to this number of texts as the creation environment feature information corresponding to the initial text information "the seaside is so beautiful", and use the creation content feature information "the number of words in the text is 300" corresponding to this number of texts as the creation content feature information corresponding to the initial text information "the seaside is so beautiful".

[0245] In some embodiments of this application, the electronic device can obtain N groups of historical creation text information from the historical dialogue information, where the total amount of text is M, and the user profile information is the user profile information in the creation task reference information.

[0246] In some embodiments of this application, the electronic device can calculate the probability of each group of historical creative text information in the above N groups of historical creative text information in the M items of historical creative text information, sort the N probabilities from largest to smallest, and then use the creative environment feature information and creative content feature information corresponding to the probabilities ranked in the top X as the creative environment feature information and creative content feature information corresponding to the initial text information.

[0247] For example, suppose the current user's user profile information is u, the creation environment feature information corresponding to the historical writing instructions is s, the creation content feature information corresponding to the historical writing instructions is f, and the total number of creation texts with the current user's user profile information in the historical writing instructions is cnt_total, then:

[0248]

[0249] Among them, parameters The probability of a text with user profile information u, creation environment feature s, and text feature information f in the historical instruction information corresponding to the creation text is that the text with user profile information u is the proportion of the text with user profile information u. The parameter cnt(q(s,f)) is the number of texts with user profile information u, creation environment feature s, and text feature information f in the historical instruction information corresponding to the creation text. cnt_total is the total number of texts with user profile information u in the historical instruction information corresponding to the creation text.

[0250] In some embodiments of this application, after receiving initial text information input by the user, the electronic device counts the number of historical text information with the same user profile information, the same creative environment feature information, and the same creative content feature information from the historical dialogue information that has been adopted by the user, obtains N text counts, and selects the historical creative environment feature information and historical creative content feature information corresponding to the maximum number of texts, and uses them as the creative environment feature information and creative content feature information corresponding to the initial text information.

[0251] In this way, by combining user profile information and historical successful interaction data to determine the characteristics of the creative environment and the characteristics of the creative content, the first candidate creative text information can be obtained by taking into account the user's language habits, so that the first candidate creative text information has a strong personal touch, which greatly reduces the user's secondary editing work and enhances the personality and usability of the content.

[0252] In some embodiments of this application, prior to step 202 above, the auxiliary writing method provided by this application further includes the following steps 203c and 203d:

[0253] 203c: The electronic device determines the creation environment feature information corresponding to the above initial text information based on the above application interface information.

[0254] 203d: Based on the mapping relationship between user profile information, creation environment feature information and creation content feature information, the user profile information of the user mentioned above and the creation environment feature information mentioned above, the electronic device obtains the creation content feature information corresponding to the initial text information mentioned above.

[0255] In some embodiments of this application, the creative content feature information in the above mapping relationship is any set of creative content feature information, and a set of creative content feature information represents a user profile information and a creative content feature information corresponding to a creative scenario.

[0256] In some embodiments of this application, the creative content feature information acquired by the electronic device is a set of creative content feature information corresponding to the initial text information from any of the above-mentioned sets of creative content feature information.

[0257] In some implementations of this application, electronic devices can obtain the creation environment feature information corresponding to the initial text information through the first model described above.

[0258] Assuming that in a mobile phone-assisted writing system, the mapping relationship between different user profile information, different creative environment characteristics, and creative content characteristics can be determined through Table 3:

[0259] Table 3

[0260]

[0261]

[0262] Based on scenario 1, the mobile phone determines that user 1's user profile is a white-collar male, and based on the first model, the mobile phone determines that the creation environment feature information corresponding to the initial text information "Happy Birthday to You, May You Have Many More Birthdays to You" is "Blessing". Based on this, the mobile phone can obtain the creation content feature information corresponding to the initial text information "Happy Birthday to You, May You Have Many More Birthdays to You" from the mapping relationship in Table 3, which is:

[0263] {

[0264] “num”: “100”

[0265] "style": "formal"

[0266] “emotion”: “positive”

[0267] “structure”: “poetry”, “short sentence”

[0268] "object": None.

[0269] }

[0270] Based on scenario 2, the phone determines that user 3's user profile information is a primary school student, and the phone determines the creative environment feature information corresponding to the initial text information "The seaside is so beautiful" as "social copywriting" based on the first model. Based on this, the phone can obtain the creative content feature information corresponding to the initial text information "The seaside is so beautiful" from the mapping relationship in Table 3 as follows:

[0271] {

[0272] “num”: “100-300”

[0273] "style": "vivid",

[0274] “emotion”: “neutral”

[0275] “structure”: None

[0276] "object": None.

[0277] }

[0278] It is understandable that, since the creative content features are different under different user profile information and different creative environment feature information, electronic devices can obtain the creative content feature information corresponding to the user profile information and creative environment feature information through the above mapping relationship after determining the user profile information and creative environment feature information.

[0279] In some embodiments of this application, after obtaining the information of the application interface and the user profile information, the electronic device first obtains the creation environment feature information corresponding to the initial text information based on the information of the application interface, and then obtains the creation content feature information corresponding to the initial text information based on the creation environment feature information and the user profile information.

[0280] In this way, the creative content feature information obtained by electronic devices can be adapted to user preferences and creative scenarios in the creative environment, thereby improving the accuracy of the subsequently generated creative text and user satisfaction.

[0281] In some embodiments of this application, prior to step 202 above, the auxiliary writing method provided by this application further includes the following steps 203e and 203f:

[0282] Step 203c: Based on the application interface information mentioned above, the electronic device obtains the initial content feature information and the creation environment feature information corresponding to the initial text information.

[0283] Step 203d: Based on the user profile information of the user mentioned above, the electronic device performs feature expansion on the initial creative content feature information to obtain the creative content feature information corresponding to the initial text information.

[0284] In some embodiments of this application, the aforementioned initial creative content feature information is the creative content feature information corresponding to the initial text information initially obtained by the electronic device after receiving the initial text information input by the user.

[0285] In some embodiments of this application, the aforementioned initial creative content feature information may be the creative content feature information obtained from the second model, or the creative content feature information obtained from steps 203a and 203b, or the creative content features obtained from steps 203c and 203d.

[0286] In some embodiments of this application, different user profile information has corresponding creative content feature information. The electronic device can add creative content feature information that is different from the initial creative content feature information in the creative content feature information corresponding to the user profile information to the initial creative content feature information to extend the features of the initial creative content feature information.

[0287] In some embodiments of this application, the electronic device adds the aforementioned creative content feature information, which differs from the initial creative content feature information, to the initial creative content feature information in the following specific manner: a first attribute feature is added to a second attribute feature. The first attribute feature is information in the creative content feature information corresponding to the user profile information that characterizes the first creative content feature. The second attribute feature is information in the initial creative content feature information that characterizes the second creative content feature. Furthermore, the first and second creative content features are the same type of creative content feature, but the first and second attribute features are different.

[0288] In some embodiments of this application, the electronic device can obtain the creation environment feature information corresponding to the initial text information through the first model described above, and obtain the initial creation content feature information through the second model described above.

[0289] In some embodiments of this application, the relevant descriptions of obtaining the creation environment feature information corresponding to the initial text information through the first model described above can be found in the above descriptions of inputting the first statement into the first model to output the creation environment feature information. To avoid repetition, these descriptions will not be repeated here.

[0290] In some embodiments of this application, the specific process of obtaining the initial creative content feature information through the above-mentioned second model can be found in the above description of inputting the second sentence into the second model to output the creative content feature information. To avoid repetition, it will not be repeated here.

[0291] In some embodiments of this application, after obtaining the initial content feature information and the creation environment feature information corresponding to the initial text information, the electronic device can combine user profile information to extend the initial content feature information to obtain the extended creation content feature information corresponding to the initial text information.

[0292] In some embodiments of this application, the electronic device uses creation task reference information as reference text, and determines the creation content characteristic information corresponding to the initial text information through a third model based on the reference text, user profile information, and the definition of different initial creation content characteristic information.

[0293] In some embodiments of this application, the input of the third model includes creation task reference information and user profile information, or the input of the third model includes the interface content of the program interface and user profile information in the creation task reference information; the output of the third model is the expanded creation content feature information and the creation environment feature information corresponding to the initial text information.

[0294] In some embodiments of this application, the creative content feature information corresponding to the initial text information described above can be the extended creative content feature information described above.

[0295] In some embodiments of this application, the third model may include the second model and / or the first model.

[0296] In some embodiments of this application, the third model mentioned above can be an AI large model, a neural network model, or other models, and this application does not limit this.

[0297] In some embodiments of this application, the electronic device instructs the third model to output the creation environment feature information and creation content feature information corresponding to the initial text information by using a third statement.

[0298] In some embodiments of this application, the aforementioned third statement includes instruction information for input / output control of the third model.

[0299] Based on Scenario 1, the mobile phone instructs the third model to output the third statement corresponding to the creation content characteristics and creation environment features of the initial text information, as follows:

[0300]

[0301] In this context, the phrase "character design" defines the purpose of the current task in order to construct the third model. Understandably, in the example above, the current task is text classification; the phrase "requirements" specifies the concrete content of the current task and defines the output requirements of the third model; the phrase "examples" allows the model to learn the logic and output of examples used to judge the features of the created content; and the phrase "Query" represents the initial text information.

[0302] Assuming the user profile is a white-collar male, the corresponding content creation features for this user profile include a formal text style and a short sentence text type. Based on this, and combining the initial content creation features output by the second model in Scenario 1, the third model adds a "formal" text style to the "lyrical" style obtained by the second model, and adds a "short sentence" text type to the existing "poetry" text type. Therefore, the output of the third model in Scenario 1 is as follows:

[0303] {

[0304] “scene”: “Blessing”

[0305] "style": ["lyrical", "formal"],

[0306] “emotion”: “positive”

[0307] “structure”: None

[0308] "type": ["poetry", "short sentence"]

[0309] "object": "generic"

[0310] “num”: None

[0311] }

[0312] Of course, when expanding the feature information of the creative content in Scenario 1, it can also be expanded by combining the feature information of the creative content obtained in Table 1 or Table 3. To avoid repetition, it will not be elaborated here.

[0313] Combining Scenario 2 and Table 3, the third statement corresponding to Scenario 2 can be found in a similar description of the third statement corresponding to Scenario 1. Assuming the user profile information is elementary school students, the corresponding creative content feature information shows a lively text style and neutral text sentiment. Based on this, and combining the initial creative content feature information output by the second model in Scenario 2, the third model adds "lively" to the text style of the obtained reference text, which is already "humorous," and adds "neutral" to the existing "positive" text sentiment. Therefore, the output of the third model in Scenario 2 is:

[0314] {

[0315] “scene”: “social media copywriting”

[0316] "style": ["humorous", "lively"],

[0317] “emotion”: [“positive”, “neutral”],

[0318] “structure”: None

[0319] "type": "short sentence"

[0320] "object": "friend"

[0321] “num”: None.

[0322] }

[0323] Of course, when expanding the feature information of the creative content in Scenario 2, it is also possible to combine the feature information of the creative content obtained in Table 2 or Table 3 for expansion. To avoid repetition, it will not be elaborated here.

[0324] In some embodiments of this application, after obtaining application interface information and user profile information, the electronic device first obtains initial creative content feature information and creative environment feature information based on the application interface information, and then expands the initial creative content feature information based on the user profile information to obtain the creative content feature information corresponding to the writing instruction information.

[0325] In this way, the creative content feature information obtained by the electronic device can be adapted to the creative content features required by the creative task in the creative environment of the application interface preferred by the user, thereby improving the accuracy of the subsequently generated creative text and user satisfaction.

[0326] In some embodiments of this application, prior to step 202 above, the auxiliary writing method provided by this application further includes the following steps 204a and 204b:

[0327] Step 204a: Based on the user profile information of the user, the creation environment feature information and creation content feature information corresponding to the initial text information, the electronic device constructs the creation task prompt words corresponding to the creation task.

[0328] Step 204b: The electronic device inputs the above-mentioned creation task prompts into the text creation model, and outputs at least one first alternative creation text information through the text creation model.

[0329] In some embodiments of this application, the above-mentioned creation task prompts are dynamic prompts obtained after information integration.

[0330] In some embodiments of this application, the electronic device may integrate at least one of the following to obtain a creation task prompt: initial text information, creation environment feature information corresponding to the initial text information, and creation content feature information corresponding to the initial text information. Then, the electronic device sends the creation task prompt to the text creation model.

[0331] In some embodiments of this application, when the creative content feature information corresponding to the above-mentioned initial text information represents a creative content feature with multiple attribute features, the electronic device integrates the creative content feature information corresponding to the first attribute feature among the multiple attribute features into the above-mentioned creative task prompt word.

[0332] In some embodiments of this application, the above-mentioned creation task prompts are used to integrate information based on the structure of the creation task prompts.

[0333] The structure of a typical creative task prompt word is shown below:

[0334]

[0335]

[0336] In some embodiments of this application, when a creative content feature has multiple attribute features, the electronic device integrates the creative content feature information ranked first among the creative content feature information corresponding to the multiple attribute features into the creative task prompt word; or, it integrates the creative content feature information ranked in the top Y among the creative content feature information corresponding to the multiple attribute features into the creative task prompt word, where Y is a positive integer.

[0337] In some embodiments of this application, the above-mentioned text creation model may be an AI large model, a neural network model, a large language model, or other models, and this application does not limit this.

[0338] In some embodiments of this application, the text creation model described above may be a model in the aforementioned electronic device, a model in other electronic devices, or a model in a cloud server. This application does not limit this aspect.

[0339] Based on Scenario 1 and the structural example of the creation task prompts above, since the text styles in the obtained content feature information are lyrical and formal in order, the phone will use the first text style, lyrical, as the text style in the creation task prompts. Similarly, since the text genres in the obtained content feature information are poetry and short sentences in order, the phone will use the first text genre, poetry, as the text genre in the creation task prompts. Therefore, the creation task prompts for Scenario 1 are:

[0340]

[0341] After receiving the aforementioned creation task prompt, the mobile phone inputs the prompt into the text creation model. Based on the prompt, the model outputs at least one first alternative text message and displays it on the phone's chat interface. Figure 5 The phone's chat interface displays three recommended first-choice creative text messages for the user.

[0342] Based on Scenario 2 and the structural example of the creation task prompts above, since the text style in the obtained content feature information is humorous and lively in order, the phone will use the first text style, lively, as the text style in the creation task prompts. Similarly, since the text sentiment in the obtained content feature information is positive and neutral in order, the phone will use the first text sentiment, positive, as the text sentiment in the creation task prompts. Therefore, the creation task prompts for Scenario 2 are:

[0343]

[0344]

[0345] After receiving the aforementioned creation task prompt, the mobile phone inputs the prompt into the text creation model. Based on the prompt, the model outputs at least one first alternative text message and displays it on the phone's chat interface. Figure 7 The app shows three recommended first-choice creative text messages for the user on the mobile phone's short video app interface.

[0346] In some embodiments of this application, after receiving initial text information, the electronic device first constructs creation task prompt words corresponding to the creation task based on user profile information, creation environment feature information and creation content feature information corresponding to the initial text information, and then inputs the creation task prompts into the text creation model so as to output at least one first alternative creation text information through the text creation model.

[0347] In this way, while improving the user interaction experience, it also enhances the intelligence level and autonomous decision-making ability of the writing assistance method.

[0348] In some embodiments of this application, the aforementioned creation task reference information further includes at least one of the following historical dialogue information: Historical dialogue information includes the following information from a single creation dialogue process: user profile information corresponding to a historical writing instruction, creation environment feature information corresponding to historical creation text information adopted by the user, and creation content feature information. Based on this, combined with steps 204a and 204b above, the assisted writing method provided by this application further includes the following step 205, and step 204a can be specifically implemented through the following step 204a1:

[0349] Step 205: Based on the creation environment feature information and creation content feature information corresponding to the above initial text information, select at least one historical creation text information from the historical creation text information corresponding to at least one of the above historical dialogue information that has the most matching creation features with the creation features corresponding to the above initial text information.

[0350] Step 204a1: Based on the user profile information of the user, the creation environment feature information and creation content feature information corresponding to the initial text information, and at least one historical creation text information, construct the creation task prompt words corresponding to the creation task.

[0351] In some implementations of this application, the aforementioned creative features include text type and attribute features represented by creative environment feature information, and the aforementioned attribute features include attribute features corresponding to each creative content feature represented by the aforementioned creative content feature information.

[0352] In some embodiments of this application, the number of matching creation features between the creation features and the creation features corresponding to the initial text information in the aforementioned historical creation text information refers to the number of items with the same creation environment feature information and the same attribute features between a historical text information and the aforementioned initial text.

[0353] For example, suppose the historical text information is: "May you rise steadily in your career, with every effort bringing rich rewards, projects progressing smoothly, and performance soaring; may joy always accompany you in your life, may you find relaxation and comfort in your leisure time, may your days be fulfilling and pleasant, and may every day be filled with sunshine and energy." The creative characteristics corresponding to this historical text information are:

[0354]

[0355] Based on scenario 1, the creation features of the initial text information output by the second model in scenario 1 are as follows:

[0356]

[0357] Therefore, we can conclude that the historical text information and the initial text information share the following three creative characteristics:

[0358] "scene": "blessing"

[0359] “emotion”: “positive”

[0360] "object": "general".

[0361] Therefore, the number of matching creation features between the aforementioned historical creative text information and the creation features corresponding to the initial text information is 3.

[0362] In some embodiments of this application, the electronic device sorts the matching counts corresponding to the different historical creative text information from largest to smallest. The historical creative text information with the largest number of matching counts between the creative feature and the creative feature corresponding to the initial text information includes: the historical creative text information corresponding to the top W matching counts, where W is a positive integer.

[0363] In some embodiments of this application, the number of texts in the at least one historical creation text information selected above may be one or more.

[0364] For example, the electronic device may use the historical created text information corresponding to the maximum number of matches as the filtered at least one historical created text information; or, the electronic device may use the historical created text information ranked among the top three in terms of the number of matches as the filtered at least one historical created text information.

[0365] In some embodiments of this application, the first alternative creative text information is generated through a few-shot learning mechanism, and at least one historical creative text information is used as the feature information of the few-shot learning.

[0366] It is understandable that electronic devices can use at least one of the aforementioned historical creative text information as feature information for few-shot learning. In the subsequent process of performing creative tasks based on few-shot learning data, the first alternative creative text information obtained later will be more in line with the user's historical usage habits and preferences, thereby improving the usability and user satisfaction of the first alternative creative text information.

[0367] In some embodiments of this application, when constructing the creation task prompt words corresponding to the above-mentioned creation task, the electronic device also bases its work on the historical writing instruction information corresponding to at least one of the above-mentioned historical creation text information that has been filtered out.

[0368] In some embodiments of this application, the electronic device integrates each historical creation text information and the historical writing instruction information corresponding to each historical creation text information from at least one selected historical creation text information into the above-mentioned creation task prompt words to construct the creation task prompt words.

[0369] Based on the structural example of the creation task prompt words given above, the structural example of the creation task prompt words when integrating the selected historical creation text information and the corresponding historical writing instructions into the creation task prompt words is as follows:

[0370]

[0371] Combining scenario 1 or scenario 2, after obtaining the creative features corresponding to the initial text information, the mobile phone statistically analyzes the creative features corresponding to each historical creative text information in the mobile phone cache and compares them with the creative features corresponding to the initial text information. The statistical results are shown in Table 4.

[0372] Table 4

[0373]

[0374]

[0375] It should be noted that the "Historical Dialogue" column in Table 4 includes historical creation instruction information and historical creation text information corresponding to the historical writing instruction information. The historical writing instruction information is represented by the field "user", and the historical creation text information is represented by the field "content". The "Match Count" column is the number of times the creation features corresponding to different historical creation text information match the creation features corresponding to the initial text information.

[0376] According to Table 4, the maximum number of matches in the "Match Count" column is 5, and the corresponding historical dialogue is {user: "Help me write a 4-line birthday blessing poem"}, {content: "Birthday Greetings: Candlelight flickers, reflecting smiling faces; New Year's Scenery Adds Blessings. Tomorrow, we'll meet again across mountains and rivers, with spring breezes accompanying the full moon."}. Based on this, the electronic device uses this historical dialogue information as historical creative text information for creating creative task prompts.

[0377] Based on the historical dialogue information selected from Scenario 1 and Table 4, the creation task prompts for Scenario 1 are:

[0378]

[0379] Based on the historical dialogue information filtered from Scenario 2 and Table 4, the creation task prompts for Scenario 2 are:

[0380]

[0381]

[0382] In some embodiments of this application, when constructing creation task prompts, the electronic device not only bases its work on user profile information, creation environment feature information corresponding to the initial text information, and creation content feature information, but also on at least one historical creation text information. The at least one historical creation text information is the historical creation text information corresponding to the historical dialogue information, which is the historical creation text information with the largest number of matching creation features with the creation features corresponding to the initial text information.

[0383] In this way, electronic devices can dynamically adjust the characteristics of the content and the environment of the creation by combining the user's current input, user profile information, and historical text information adopted by the user, so as to achieve truly personalized output that is "personalized for each user". This allows the writing assistance system to "learn" the user's language habits, and the generated text has a strong personal touch, greatly reducing the user's secondary editing work and improving the personality and usability of the content.

[0384] In some embodiments of this application, the program interface further includes at least one content creation feature control, wherein the display content of a content creation feature control is an attribute name corresponding to a content creation feature. Based on this, after step 202, the assisted writing method of this application further includes:

[0385] Step 201b: The electronic device receives a second input to one of the above-mentioned content creation feature controls.

[0386] Step 202b: In response to the second input, the electronic device updates the first attribute name displayed on the creative content feature control selected by the second input to the second attribute name, and updates the at least one first alternative creative text information to at least one second alternative creative text information corresponding to the second attribute.

[0387] In some embodiments of this application, the first attribute name is the content displayed on the creation content feature control selected by the second input before receiving the second input, and the second attribute name is the attribute name selected by the second input.

[0388] In some embodiments of this application, the second input is used to switch the attribute features of a creative content feature.

[0389] In some embodiments of this application, the second input may include, but is not limited to, any of the following: touch input by the user using a touch device such as a finger or stylus to control the content creation features, or a voice command input by the user, or a specific gesture input by the user, or other feasible input. The specific input can be determined according to actual usage needs, and this application does not impose any limitations.

[0390] Based on scenario 1, in the creative content feature information obtained by the mobile phone in step 202, the text genres are, in order, poetry and short sentences. However, when the mobile phone initially generated the creative text, it treated the text "Happy Birthday to You, May You Have Many More Birthdays to Come" as a poetry genre for polishing. After generating the creative text, as... Figure 5 As shown, the attribute name displayed on the text genre control 14 is "Poetry", as... Figure 8 As shown, when the user clicks the "Short Sentence" option on the dropdown menu of the text style control 14 in the chat interface, that is, when the user makes a second input to the aforementioned text style control, in response to this click operation, such as... Figure 9 As shown, the mobile phone will update the birthday wishes displayed in the form of poems to birthday wishes in the form of short sentences, which is the second alternative creative text information mentioned above.

[0391] In conjunction with scenario 2, the text style in the creative content feature information obtained by the mobile phone in step 202 is humorous and lively, respectively. However, when the mobile phone initially generated the creative text, the generated short video script was humorous. After generating the creative text, as shown... Figure 6 As shown, the attribute name displayed on the text style control is "Humorous". When the user clicks the drop-down option "Lively" on the text style control 15 in the short video app interface, that is, when the user makes a second input to the text style control 15, in response to the click operation, as follows: Figure 11As shown, the phone will update the humorous short video script to a lively short video script, which is the second alternative creative text information mentioned above.

[0392] In some embodiments of this application, when the initial text information corresponds to a creative content feature with multiple attribute features, since the attribute feature of the creative content feature corresponding to the first alternative creative text information displayed by the electronic device is only one of the multiple attribute features, when the user wants to obtain a text creation result that conforms to other attribute features, the second input to the creative content feature control described above can be used to switch the attribute feature of the creative content feature to other attribute features among the multiple attribute features, thereby obtaining the second alternative creative text information corresponding to other attribute features.

[0393] This improves the ease with which users can adjust their creative results.

[0394] In some embodiments of this application, the above-mentioned content creation feature controls include at least one of the following: text style control, text emotion control, text structure control, text genre control, text object control, and text word count control.

[0395] In some embodiments of this application, different creative content feature controls correspond to different creative content features. A creative content feature control is used to set the attribute features of a creative content feature, and one attribute feature corresponds to one attribute name.

[0396] Understandably, by setting at least one of the above-mentioned content creation feature controls in the program interface, users can set the synchronous content creation features of their preferred text creations separately through different content creation feature controls, thereby improving the user experience of text creation.

[0397] In some embodiments of this application, different creative content feature controls correspond to different creative content features. A creative content feature control is used to set the attribute features of a creative content feature, and one attribute feature corresponds to one attribute name.

[0398] In some embodiments of this application, a content creation feature control in the above-mentioned program interface is a control corresponding to a content creation feature with multiple attribute features, and the multiple attribute features of the content creation feature are attribute features of a content creation feature corresponding to the initial text information.

[0399] In some embodiments of this application, the aforementioned first attribute name corresponds to the attribute feature of the creative content feature corresponding to the displayed first alternative creative text information.

[0400] In some embodiments of this application, the attribute features corresponding to the second attribute name are different from the attribute features corresponding to the creative content features of the first alternative creative text information displayed.

[0401] For example, when the above-mentioned content creation feature control is a text style control, the first attribute name or the second attribute name can be any of the following: concise, lyrical, professional, humorous, or other style names. This application embodiment does not limit this.

[0402] When the aforementioned content creation feature control is a text emotion control, the aforementioned first attribute name or the aforementioned second attribute name can be any of the following: positive, negative, neutral, or other emotion names. This application embodiment does not limit this.

[0403] When the above-mentioned content creation feature control is a text structure control, the above-mentioned first attribute name or the above-mentioned second attribute name can be any of the following: general-specific-general, linear, parallel, or other structure names. This application embodiment does not limit this.

[0404] When the above-mentioned content creation feature control is a text genre control, the first attribute name or the second attribute name can be any of the following: narrative, description, argumentation, or other genre names. This application embodiment does not limit this.

[0405] When the aforementioned content creation feature control is a text object control, the aforementioned first attribute name or the aforementioned second attribute name can be any of the following: general, specific target, specific group, or other object name, and this application embodiment does not limit this. In some embodiments of this application, the aforementioned second input may include a first sub-input and a second sub-input, wherein the aforementioned first sub-input is the input of the content displayed on the content creation feature control.

[0406] In some embodiments of this application, the electronic device displays a drop-down option of the content creation feature control in response to a first sub-input to the content displayed on the content creation feature control, wherein the second sub-input is input to the drop-down option.

[0407] In some embodiments of this application, the aforementioned second sub-input is used to select an attribute name from a plurality of attribute names in a drop-down option of an authoring content feature control.

[0408] In some embodiments of this application, there are one or more drop-down options, each option is an attribute name, and the second attribute name is one of the drop-down options.

[0409] In some embodiments of this application, the first alternative creative text information mentioned above corresponds to the first attribute, which is the attribute feature corresponding to the first attribute name mentioned above.

[0410] In some embodiments of this application, the second attribute is an attribute feature corresponding to the second attribute name.

[0411] In some embodiments of this application, the electronic device updates the first alternative creative text information to at least one second alternative creative text information in the following specific way: cancel the display of at least one first alternative creative text information and display at least one second alternative creative text information.

[0412] Combining Scenario 1 and Appendix Figure 8 , attached Figure 8 This is a schematic diagram of the short video app interface when inputting content creation feature controls in Scenario 1. For example... Figure 8 As shown, the chat interface displays a text style control 16 and a text genre control 14. Users can not only make a second input to the text genre control 14 to adjust the attributes of the text genre, but also make a second input to the text style control 16 to adjust the attributes of the text style.

[0413] Combining Scenario 2 and Appendix Figure 10 , attached Figure 10 This is a schematic diagram of the short video app interface when inputting content creation feature controls in Scenario 2. For example... Figure 10 As shown, the short video app interface displays a text style control 15 and a text emotion control 17. Users can not only make a second input to the text style control 15 to adjust the attribute characteristics of the text genre, but also make a second input to the text emotion control 17 to adjust the attribute characteristics of the text emotion.

[0414] In some embodiments of this application, the electronic device may display different creative content feature controls so that the user can adjust the creative content features corresponding to the different creative content feature controls to obtain a second alternative creative text information corresponding to the adjusted creative content features.

[0415] This improves the ease with which users can adjust their creative results.

[0416] In some embodiments of this application, the aforementioned at least one second alternative creative text information includes any one of the following: second alternative creative text information generated in real time in response to the aforementioned second input; or second alternative creative text information pre-cached.

[0417] In some embodiments of this application, the electronic device can update the creation content feature information corresponding to the first attribute in the creation task prompt to the creation task prompt corresponding to the second attribute, and input the updated creation task prompt into the text creation model, thereby outputting at least one second alternative creation text information through the text creation model.

[0418] In some embodiments of this application, when generating at least one first alternative creative text information, the electronic device also generates at least one second alternative creative text information. While displaying at least one first alternative creative text information, the electronic device caches the at least one second alternative creative text information.

[0419] Combining Scenario 1 and Appendix Figure 8-9 , attached Figure 9 This is a schematic diagram of the chat interface after the user inputs the content creation feature controls in Scenario 1. When the user clicks the attachment... Figure 8 In the chat interface, after the "Short Sentence" text style control 14, such as... Figure 9 As shown, the mobile phone modifies the original text genre "poetry" in the creation task prompt to "short sentence", inputs the modified creation task prompt into the text creation model, and generates and displays a birthday greeting in the form of a short sentence, which is the second alternative creation text information mentioned above.

[0420] Combining Scenario 2 and Appendix Figure 10-11 , attached Figure 11 This is a schematic diagram of the chat interface after the user inputs the content creation feature controls in Scenario 2. When the user clicks the attachment... Figure 10 When the text style control 15 on the short video app interface is set to "lively", such as... Figure 11 As shown, the phone searches the cache for a short video script with a "lively" style that corresponds to the initial text message "The beach is so beautiful," which is the second alternative creative text message mentioned above, and updates and displays it on the phone.

[0421] In some embodiments of this application, the electronic device can either generate and display the second alternative creative text information in real time in response to the second input, or directly display the cached second alternative creative text information in response to the second input.

[0422] This increases the diversity of data sources for the second alternative text information.

[0423] In some embodiments of this application, after step 201 described above, the auxiliary writing method provided by this application further includes step 202c. Based on this, step 202 can also be implemented by step 202d. Furthermore, after step 202d, the auxiliary writing method provided by this application further includes steps 201c and 202c1.

[0424] Step 202c: The electronic device displays the above initial text information in the text input box.

[0425] Step 202d: The electronic device displays the first candidate creative text information for item Q, where Q is an integer greater than 1.

[0426] Step 201c: The electronic device receives a third input for one of the first alternative creative text information items in the above Q items of first alternative creative text information.

[0427] Step 202c1: In response to the above third input, the electronic device updates the initial text information displayed in the above text input box to the first alternative creative text information selected by the third input.

[0428] In some embodiments of the present application, the above third input may include, but is not limited to, any one of the following: a touch input by the user on an auxiliary creation control through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs. Specifically, it can be determined according to actual usage requirements, and the embodiments of the present application do not make limitations.

[0429] In some embodiments of the present application, the above third input is used to select the creative text information to be input into the text input box from the Q items of first alternative creative text information.

[0430] In some embodiments of the present application, the electronic device displays the above Q items of first alternative creative text in the alternative text display area.

[0431] In some embodiments of the present application, while the electronic device updates the initial text information to the first alternative creative text information selected by the third input, it cancels the display of the above selected first alternative creative text information in the alternative text display area.

[0432] In some embodiments of the present application, while the electronic device updates the initial text information to the first alternative creative text information selected by the third input, it may cancel the display of the initial text information, or display the initial text information in the above alternative text display area.

[0433] Combined with Scenario 1 and Appendix Figure 8 、 12 ,Appendix Figure 12 is a schematic diagram of the chat interface after an input operation is performed on the replacement selection control in Scenario 1. When the user clicks on the text box 22 where "As the years quietly add new lines, it's like ivy winding around old marks. And take the moon at the bottom of the cup tonight and turn it into warmth all over in the days to come." is located among the three first alternative creative texts in Appendix Figure 8 , that is, after the user performs a third input on one of the first alternative creative text information items, as Figure 12 shown, the mobile phone displays "As the years quietly add new lines, it's like ivy winding around old marks. And take the moon at the bottom of the cup tonight and turn it into warmth all over" in the text input box 18, and at the same time displays the initial text information in the text box 22 where the selected first alternative creative text is located.

[0434] In combination with Scenario 2, when the user clicks on the text box containing "The sea breeze said: Today's KPI is to mess up my hair" among the three first alternative creative text inputs, that is, after the user makes a third input to one of the first alternative creative text inputs, the mobile phone displays "The sea breeze said: Today's KPI is to mess up my hair" in the main body of the short video copy, and at the same time displays the initial text information "The seaside is really beautiful" in the text box where the selected first alternative creative text is located.

[0435] In some embodiments of the present application, after the electronic device updates the initial text information displayed in the text input box to the first alternative creative text information selected by the third input, it can subsequently select other first alternative creative text information or the initial creative text information based on the same input operation as the third input, so as to update the first alternative creative text information in the text input box to other first alternative creative text information or the initial creative text information.

[0436] In some embodiments of the present application, the above three inputs include a third sub-input and a fourth sub-input, and the above step 202c1 specifically includes the following steps 202c2 and step 202c3:

[0437] Step 202c2: The electronic device controls the first text box to be in a selected state in response to the third sub-input to the first text box;

[0438] Step 202c3: The electronic device updates the initial text information displayed in the text input box to the first alternative creative text information displayed in the first text box in response to the fourth sub-input to the displayed replacement selection control.

[0439] In some embodiments of the present application, the above alternative text display area includes at least one text box, and one first alternative creative text information is displayed in one text box, and the above at least one text box includes a first text box.

[0440] In combination with Scenario 1 and Attachment Figure 12 , when the user clicks on text box 22 containing "As the years quietly add new lines, just like ivy winding around old marks. And take the moon at the bottom of the cup tonight and turn it into warmth all over in the days to come." among the three first alternative creative text inputs in the attachment Figure 8 , that is, after the user makes a third sub-input to the above text box 22, and then clicks on the "Replace Selection" control 19, that is, makes a fourth sub-input to the "Replace Selection" control 19, as shown in Figure 12 , the mobile phone displays "As the years quietly add new lines, just like ivy winding around old marks. And take the moon at the bottom of the cup tonight and turn it into warmth all over" in the text input box 18, and at the same time displays the initial text information in the text box 22 where the selected first alternative creative text is located.

[0441] In scenario 2, when a user clicks on the text box containing "The sea breeze says: Today's KPI is to mess up my hair" among the three first-option creative texts (i.e., after making the third sub-input to the text box), and then clicks the "Replace Selected" control (i.e., making the fourth sub-input to the "Replace Selected" control), the phone will display "The sea breeze says: Today's KPI is to mess up my hair" in the body of the short video text, and at the same time display the initial text information "The seaside is so beautiful" in the text box containing the selected first-option creative text.

[0442] In some embodiments of this application, after receiving initial text information, the electronic device not only displays the initial text information, but also displays at least one first alternative creative text information. Then, in response to a third input, the electronic device updates the initial text information to the first alternative creative text information selected by the third input.

[0443] This allows users to choose which first alternative text to enter into the text input box based on their preferences, thus improving the user experience.

[0444] In some embodiments of this application, the above-mentioned program interface further includes regenerating controls. After step 202, the auxiliary writing method provided by this application further includes the following steps 201d and 202e:

[0445] Step 201d: The electronic device receives the user's fourth input on the regenerated control.

[0446] Step 202e: In response to the fourth input mentioned above, the electronic device updates at least one first alternative creative text information to at least one third alternative creative text information.

[0447] In some embodiments of this application, at least one of the above-mentioned third alternative creative text information is regenerated based on the creative environment feature information and creative content feature information corresponding to the initial text information.

[0448] In some embodiments of this application, the aforementioned fourth input may include, but is not limited to, any of the following: touch input by the user through a touch device such as a finger or stylus to the auxiliary creation control, or voice commands input by the user, or specific gestures input by the user, or other feasible inputs. The specific input can be determined according to actual usage needs, and this application does not impose any limitations.

[0449] In some embodiments of this application, the fourth input is used to trigger an electronic device to generate at least one third alternative creative text information.

[0450] In some embodiments of this application, the creation environment feature information and creation content feature information corresponding to the first alternative creative text information and the third alternative creative text information are the same, while the first alternative creative text information and the third alternative creative text information are different.

[0451] Combining Scenario 1 and Appendix Figure 12 When the user clicks on the attachment Figure 12 After the regenerated control 20 is activated, the mobile phone responds to the click operation. That is, after the user makes a fourth input to the regenerated control 20, a new birthday greeting is generated and displayed.

[0452] In conjunction with scenario 2, when the user clicks on the attached... Figure 11 After the user makes a fourth input to the regenerated control 20, the mobile phone responds to the click operation, generates and displays a new short video text.

[0453] In some embodiments of this application, after receiving initial text information, the electronic device displays at least one first alternative creative text information obtained based on the creative environment feature information and creative content feature information corresponding to the initial text information, and in response to the user's fourth input to the regeneration control, regenerates a third alternative creative text information based on the creative environment feature information and creative content feature information corresponding to the initial text information, and updates the displayed first alternative creative text information to the regenerated third alternative creative text information.

[0454] This increases the richness of the text creation results and enhances the user experience.

[0455] In some embodiments of this application, the above-mentioned program interface also includes a text creation cancellation control. After step 202, the assisted writing method provided by this application further includes the following steps 201e and 202f:

[0456] Step 201e: The electronic device receives a fifth input from the user to the text creation cancellation control.

[0457] Step 202f: In response to the fifth input above, the electronic device cancels the display of at least one of the first alternative creative text information.

[0458] In some embodiments of this application, the aforementioned fifth input may include, but is not limited to, any of the following: touch input by the user through a touch device such as a finger or stylus to the auxiliary creation control, or a voice command input by the user, or a specific gesture input by the user, or other feasible input. The specific input can be determined according to actual usage needs, and this application does not impose any limitations.

[0459] In some embodiments of this application, the fifth input is used to trigger the electronic device to cancel the display of at least one first alternative creative text information.

[0460] Combining Scenario 1 and Appendix Figure 12 When the user clicks Figure 12 After the "Cancel" control 21 is entered, that is, after the user makes the fifth input to the text cancellation control, the phone will cancel the display of the recommended birthday wishes.

[0461] Combining Scenario 2 and Appendix Figure 12 When the user clicks Figure 11 After the "Cancel" control 21 is entered, that is, after the user makes the fifth input to the text cancellation control, the phone will cancel the display of the recommended short video text.

[0462] In some embodiments of this application, after receiving initial text information input by a user, the electronic device displays at least one first alternative creative text information obtained based on the creative environment feature information and creative content feature information corresponding to the initial text information, and cancels the display of the first alternative creative text information in response to the user's fifth input to the text creation cancellation control.

[0463] In this way, when users are not satisfied with the text creation results, the initial text information can be directly used as the final text information selected by the user, thus improving the user's interactive experience.

[0464] In some embodiments of this application, the auxiliary writing method provided in this application is executed by an electronic device in a chat application as an example, and is combined with the appendix. Figure 13 The writing assistance method of this application will be described by way of example. The writing assistance method of this application may include the following steps 101 to 108.

[0465] Step 101: After receiving the initial text information entered by the user in the chat application interface, the electronic device responds to the user's click operation on the AI ​​writing control and opens the small V writing panel.

[0466] Step 102: In response to the click, obtain reference information for the creation task;

[0467] Step 103: Based on the creation task reference information, obtain the creation environment feature information and creation content feature information corresponding to the initial text information;

[0468] Step 104: Combine the current user profile information to expand the feature information of the created content, and obtain the expanded feature information of the created content;

[0469] Step 105: Obtain and create the most relevant historical dialogues for content feature information;

[0470] Step 106: Construct dynamic prompts by integrating creation task reference information, creation environment feature information, creation content feature information, and the most relevant historical dialogues into dynamic prompts;

[0471] Step 107: Use the dynamic prompt words as input to the large language model, output and display the created text, and simultaneously display the creation content feature control corresponding to the creation content features that have been feature-expanded.

[0472] Step 108: Determine whether the user clicked the drop-down option of the creation task feature control to switch the attribute features of the creation content features. If yes, return to step 106; otherwise, end the process.

[0473] In this embodiment, the electronic device first receives initial text information input by the user, and then displays at least one first alternative creative text information obtained based on the creative environment feature information and creative content feature information corresponding to the initial text information. The creative environment feature information and the creative content feature information are obtained based on creative task reference information corresponding to the initial text information. This creative task reference information includes user profile information and application interface information, where the application interface information is the program interface information of the application displayed on the screen. In this solution, after receiving writing instructions input by the user in the application interface, the electronic device can combine the user profile information and the application interface information to determine the creative environment feature information representing the current creative scenario and the creative content feature information representing the user's preferences. This allows the electronic device to create creative text that better suits the current creative scenario and the user's preferences based on the creative environment feature information and the creative content feature information, thus eliminating the need for manual modification by the user and improving the accuracy of the creative text provided by the electronic device's assisted writing system.

[0474] It should be noted that each of the above method embodiments, or various possible implementations of each method embodiment, can be executed individually or in combination of any two or more. The specific implementation can be determined according to actual usage requirements, and this application embodiment does not impose any restrictions on this.

[0475] The writing assistance method provided in this application can be executed by a writing assistance device. This application uses a writing assistance device executing the writing assistance method as an example to illustrate the apparatus of the writing assistance method provided in this application.

[0476] Appendix Figure 14 A schematic diagram of a possible structure of the writing aid involved in an embodiment of this application is shown. For example... Figure 14 As shown, the writing aid 800 may include a receiving module 801 and a display module 802.

[0477] The receiving module 801 is used to receive initial text information input by the user;

[0478] Display module 802 is used to display at least one first alternative creative text information, wherein the first alternative creative text information is obtained based on the creative environment feature information and creative content feature information corresponding to the user input initial text information received by the receiving module 801.

[0479] The aforementioned creation environment feature information and creation content feature information are obtained based on creation task reference information corresponding to the aforementioned initial text information. The aforementioned creation task reference information includes: user profile information and application interface information; the aforementioned application interface information is the program interface information of the application displayed on the screen.

[0480] In some embodiments of this application, the aforementioned creation environment feature information is used to characterize the text type created by the creation task corresponding to the aforementioned initial text information in the creation scenario corresponding to the aforementioned program interface; the aforementioned creation content feature information is used to characterize at least one of the following creation content features: text style, text emotion, text structure, text genre, text object, and text word count. In some embodiments of this application, the aforementioned creation scenario includes at least one of the following: email scenario, office scenario, article scenario, chat scenario, news scenario, comment scenario, blessing scenario, summary scenario, note scenario, poetry scenario, and social copywriting scenario. The aforementioned text type includes at least one of the following: email type, office type, article type, chat type, news type, comment type, blessing type, summary type, note type, poetry type, and social copywriting type.

[0481] In some embodiments of this application, the application interface information includes at least one of the following: the interface content of the program interface and the application attribute information of the application. It should be noted that the application attribute information includes at least one of the following: application name and application type.

[0482] In some embodiments of this application, the program interface includes at least one auxiliary creation control; different auxiliary creation controls are used to trigger the execution of different creation tasks. Based on this, the receiving module 801 is further configured to: receive a first input to one of the at least one auxiliary creation controls; the display module 802 is specifically configured to: display at least one first alternative creation text information in response to the first input received by the receiving module 801. It should be noted that the creation task corresponding to the initial text information is the creation task indicated by the auxiliary creation control selected by the first input.

[0483] In some embodiments of this application, the above-mentioned at least one auxiliary creation control includes at least one of the following: text summary control, text polishing control, text continuation control, text abbreviation control, text expansion control, grammar correction control, intelligent typesetting control, text translation control, WeChat Moments copywriting control, and short video copywriting control;

[0484] The creation task indicated by the above text summary control is to summarize the above initial text information;

[0485] The creation task indicated by the above text polishing control is to polish the above initial text information;

[0486] The creation task indicated by the above text continuation control is to continue writing the above initial text information;

[0487] The creation task indicated by the aforementioned text abbreviation control is to abbreviate the initial text information mentioned above;

[0488] The creation task indicated by the above text expansion control is to expand the above initial text information;

[0489] The creation task indicated by the above-mentioned grammar correction control is to perform grammar correction on the above-mentioned initial text information;

[0490] The creation task indicated by the aforementioned intelligent typesetting control is to perform intelligent typesetting on the aforementioned initial text information;

[0491] The creation task indicated by the aforementioned text translation control is to translate the initial text information described above;

[0492] The creation task indicated by the aforementioned WeChat Moments post control is to create a WeChat Moments post from the initial text information.

[0493] The creation task indicated by the aforementioned short video text control is to create short video text from the initial text information.

[0494] In some embodiments of this application, the aforementioned creative task reference information further includes at least one piece of historical dialogue information; one piece of historical dialogue information includes the following information during a creative dialogue process: user profile information corresponding to a historical writing instruction, creative environment feature information and creative content feature information corresponding to historical creative text information adopted by the user. The aforementioned device 800 further includes a statistics module 803, which is used to: based on the aforementioned at least one piece of historical dialogue information, count the number of N texts of M historical creative text information that have the same user profile information, the same creative environment feature information, and the same creative content feature information, where M and N are both positive integers; determine the creative content feature information of the historical creative text information corresponding to the maximum value among the aforementioned N texts as the creative content feature information corresponding to the aforementioned initial text information, and determine the creative environment feature information of the historical creative text information corresponding to the aforementioned maximum value as the creative environment feature information corresponding to the aforementioned initial text information.

[0495] In some embodiments of this application, the device 800 further includes an acquisition module 804. The acquisition module 804 is configured to: determine the creation environment feature information corresponding to the initial text information based on the application interface information; and acquire the creation content feature information corresponding to the initial text information based on the user profile information, the mapping relationship between the creation environment feature information and the creation content feature information, the user profile information of the user, and the creation environment feature information.

[0496] In some embodiments of this application, the above-mentioned device 800 further includes an extension module 805, which is used to: obtain initial creative content feature information and creation environment feature information corresponding to the initial text information based on the application interface information; and perform feature expansion on the initial creative content feature information based on the user profile information of the user to obtain creative content feature information corresponding to the initial text information.

[0497] In some embodiments of this application, the device 800 further includes an output module 806. The output module 806 is configured to: construct creation task prompts corresponding to the creation task based on the user profile information of the user, the creation environment feature information and creation content feature information corresponding to the initial text information; input the creation task prompts into a text creation model; and output at least one first alternative creation text information to the display module 802 through the text creation model.

[0498] In some embodiments of this application, the aforementioned creative task reference information further includes at least one piece of historical dialogue information; one piece of historical dialogue information includes the following information during a creative dialogue process: user profile information corresponding to a historical writing instruction, creative environment feature information and creative content feature information corresponding to historical creative text information adopted by the user. Based on this, the aforementioned device 800 further includes a filtering module 807, which is used to: based on the creative environment feature information and creative content feature information corresponding to the aforementioned initial text information, filter out at least one piece of historical creative text information from the historical creative text information corresponding to the aforementioned at least one piece of historical dialogue information that has the most matching numbers of creative features with the creative features corresponding to the aforementioned initial text information. It should be noted that the aforementioned creative features include the text type and attribute features represented by the creative environment feature information, and the aforementioned attribute features include the attribute features corresponding to each piece of creative content feature information represented by the aforementioned creative content feature information. Based on the user profile information of the user, the creation environment feature information and creation content feature information corresponding to the initial text information, the creation task prompt words corresponding to the creation task are constructed, including: based on the user profile information of the user, the creation environment feature information and creation content feature information corresponding to the initial text information, and at least one historical creation text information, the creation task prompt words corresponding to the creation task are constructed.

[0499] In some embodiments of this application, the program interface further includes at least one creative content feature control, wherein the displayed content of a creative content feature control is an attribute name corresponding to a creative content feature. Based on this, the receiving module 801 is further configured to: receive a second input to one of the at least one creative content feature controls. The display module 802 is further configured to: in response to the second input received by the receiving module 801, update the first attribute name displayed on the creative content feature control selected by the second input to a second attribute name, and update the at least one first alternative creative text information to at least one second alternative creative text information corresponding to the second attribute. It should be noted that the first attribute name is the content displayed on the creative content feature control selected by the second input before receiving the second input, and the second attribute name is the attribute name selected by the second input.

[0500] In some embodiments of this application, the above-mentioned content creation feature controls include at least one of the following: text style control, text emotion control, text structure control, text genre control, text object control, and text word count control.

[0501] In some embodiments of this application, the aforementioned at least one second alternative creative text information includes any one of the following: second alternative creative text information generated in real time in response to the aforementioned second input; or second alternative creative text information pre-cached.

[0502] In some embodiments of this application, the display module 802 is further configured to: display the initial text information in the text input box. Specifically, the display module 802 is configured to: display Q items of first alternative creative text information; where Q is an integer greater than 1. The receiving module 801 is further configured to: receive a third input of one of the first alternative creative text information items in the Q items. The display module is further configured to: update the initial text information displayed in the text input box to the first alternative creative text information selected by the third input in response to the third input.

[0503] In some embodiments of this application, the above-mentioned program interface further includes a regenerated control. The receiving module 801 is further configured to: receive a fourth input from the user regarding the regenerated control. The display module 802 is further configured to: update the at least one first alternative creative text information to at least one third alternative creative text information in response to the fourth input received by the receiving module 801. It should be noted that the at least one third alternative creative text information is regenerated based on the creative environment feature information and creative content feature information corresponding to the initial text information.

[0504] In some embodiments of this application, the program interface further includes a text creation cancellation control. The receiving module 801 is further configured to: receive a fifth input from the user to the text creation cancellation control. The display module 802 is further configured to: cancel the display of at least one of the first alternative text creation information in response to the fifth input received by the receiving module 801.

[0505] In this embodiment, the assisted writing device first receives initial text information input by the user, and then displays at least one first alternative creative text information obtained based on the creative environment feature information and creative content feature information corresponding to the initial text information. The creative environment feature information and the creative content feature information are obtained based on creative task reference information corresponding to the initial text information. This creative task reference information includes user profile information and application interface information, where the application interface information is the program interface information of the application displayed on the screen. In this solution, after receiving writing instructions input by the user in the application interface, the assisted writing device can combine the user profile information and the application interface information to determine the creative environment feature information representing the current creative scenario and the creative content feature information representing the user's preferences. This allows the assisted writing device to create creative text that better suits the current creative scenario and the user's preferences based on the creative environment feature information and the creative content feature information, thus eliminating the need for manual modification by the user and improving the accuracy of the creative text provided by the assisted writing device.

[0506] The writing aid in this application can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or any other device besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application does not impose specific limitations.

[0507] The writing aid in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.

[0508] The writing aid provided in this application embodiment can achieve... Figures 1 to 13The various processes implemented in the method implementation examples will not be described again here to avoid repetition.

[0509] Optionally, such as Figure 15 As shown, this application embodiment also provides an electronic device 900, including a processor 901 and a memory 902. The memory 902 stores a program or instructions that can run on the processor 901. When the program or instructions are executed by the processor 901, they implement the various steps of the above-described auxiliary writing method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0510] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0511] Figure 16 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.

[0512] The electronic device 100 includes, but is not limited to, components such as: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.

[0513] Those skilled in the art will understand that the electronic device 100 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 16 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0514] The user input unit 107 is used to receive initial text information input by the user.

[0515] Display unit 106 is used to display at least one first alternative creative text information, the first alternative creative text information being obtained based on the creative environment feature information and creative content feature information corresponding to the initial user input text information received by user input unit 107.

[0516] The aforementioned creation environment feature information and creation content feature information are obtained based on creation task reference information corresponding to the aforementioned initial text information. The aforementioned creation task reference information includes: user profile information and application interface information; the aforementioned application interface information is the program interface information of the application displayed on the screen.

[0517] In some embodiments of this application, the aforementioned creation environment feature information is used to characterize the text type created by the creation task corresponding to the aforementioned initial text information in the creation scenario corresponding to the aforementioned program interface; the aforementioned creation content feature information is used to characterize at least one of the following creation content features: text style, text emotion, text structure, text genre, text object, and text word count. In some embodiments of this application, the aforementioned creation scenario includes at least one of the following: email scenario, office scenario, article scenario, chat scenario, news scenario, comment scenario, blessing scenario, summary scenario, note scenario, poetry scenario, and social copywriting scenario. The aforementioned text type includes at least one of the following: email type, office type, article type, chat type, news type, comment type, blessing type, summary type, note type, poetry type, and social copywriting type.

[0518] In some embodiments of this application, the application interface information includes at least one of the following: the interface content of the program interface and the application attribute information of the application. It should be noted that the application attribute information includes at least one of the following: application name and application type.

[0519] In some embodiments of this application, the program interface includes at least one auxiliary creation control; different auxiliary creation controls are used to trigger the execution of different creation tasks. Based on this, the user input unit 107 is further configured to: receive a first input to one of the at least one auxiliary creation controls; the display unit 106 is specifically configured to: display the at least one first alternative creation text information in response to the first input received by the user input unit 107. It should be noted that the creation task corresponding to the initial text information is the creation task indicated by the auxiliary creation control selected by the first input.

[0520] In some embodiments of this application, the above-mentioned at least one auxiliary creation control includes at least one of the following: text summary control, text polishing control, text continuation control, text abbreviation control, text expansion control, grammar correction control, intelligent typesetting control, text translation control, WeChat Moments copywriting control, and short video copywriting control;

[0521] The creation task indicated by the above text summary control is to summarize the above initial text information;

[0522] The creation task indicated by the above text polishing control is to polish the above initial text information;

[0523] The creation task indicated by the above text continuation control is to continue writing the above initial text information;

[0524] The creation task indicated by the aforementioned text abbreviation control is to abbreviate the initial text information mentioned above;

[0525] The creation task indicated by the above text expansion control is to expand the above initial text information;

[0526] The creation task indicated by the above-mentioned grammar correction control is to perform grammar correction on the above-mentioned initial text information;

[0527] The creation task indicated by the aforementioned intelligent typesetting control is to perform intelligent typesetting on the aforementioned initial text information;

[0528] The creation task indicated by the aforementioned text translation control is to translate the initial text information described above;

[0529] The creation task indicated by the aforementioned WeChat Moments post control is to create a WeChat Moments post from the initial text information.

[0530] The creation task indicated by the aforementioned short video text control is to create short video text from the initial text information.

[0531] In some embodiments of this application, the aforementioned creation task reference information further includes at least one piece of historical dialogue information; one piece of historical dialogue information includes the following information during a creation dialogue process: user profile information corresponding to a historical writing instruction, creation environment feature information and creation content feature information corresponding to historical creation text information adopted by the user. The aforementioned electronic device 100 further includes a processor 110, which is configured to: based on the aforementioned at least one piece of historical dialogue information, count the number of N texts of M historical creation text information that have the same user profile information, the same creation environment feature information, and the same creation content feature information, where M and N are both positive integers; determine the creation content feature information of the historical creation text information corresponding to the maximum value among the aforementioned N texts as the creation content feature information corresponding to the aforementioned initial text information, and determine the creation environment feature information of the historical creation text information corresponding to the aforementioned maximum value as the creation environment feature information corresponding to the aforementioned initial text information.

[0532] In some embodiments of this application, the electronic device 100 further includes a processor 110. The processor 110 is configured to: determine the creation environment feature information corresponding to the initial text information based on the application interface information; and obtain the creation content feature information corresponding to the initial text information based on the user profile information, the mapping relationship between the creation environment feature information and the creation content feature information, the user's user profile information, and the creation environment feature information.

[0533] In some embodiments of this application, the electronic device 100 further includes a processor 110, which is configured to: obtain initial creative content feature information and creative environment feature information corresponding to the initial text information based on the application interface information; and perform feature expansion on the initial creative content feature information based on the user profile information of the user to obtain creative content feature information corresponding to the initial text information.

[0534] In some embodiments of this application, the electronic device 100 further includes a processor 110. The processor 110 is configured to: construct creation task prompts corresponding to the creation task based on the user profile information of the user, the creation environment feature information and creation content feature information corresponding to the initial text information; input the creation task prompts into a text creation model; and output at least one first alternative creation text information to the display unit 106 through the text creation model.

[0535] In some embodiments of this application, the aforementioned creation task reference information further includes at least one piece of historical dialogue information; one piece of historical dialogue information includes the following information during a creation dialogue process: user profile information corresponding to a historical writing instruction, creation environment feature information corresponding to historical creation text information adopted by the user, and creation content feature information. Based on this, the aforementioned electronic device 100 further includes a processor 110, which is configured to: based on the creation environment feature information and creation content feature information corresponding to the aforementioned initial text information, filter out at least one piece of historical creation text information from the historical creation text information corresponding to the aforementioned at least one piece of historical dialogue information that has the highest number of matching creation features with the creation features corresponding to the aforementioned initial text information. It should be noted that the aforementioned creation features include text type and attribute features represented by the creation environment feature information, and the aforementioned attribute features include attribute features corresponding to each piece of creation content feature information represented by the aforementioned creation content feature information. Based on the user profile information of the user, the creation environment feature information and creation content feature information corresponding to the initial text information, the creation task prompt words corresponding to the creation task are constructed, including: based on the user profile information of the user, the creation environment feature information and creation content feature information corresponding to the initial text information, and at least one historical creation text information, the creation task prompt words corresponding to the creation task are constructed.

[0536] In some embodiments of this application, the program interface further includes at least one creative content feature control, wherein the displayed content of a creative content feature control is an attribute name corresponding to a creative content feature. Based on this, the user input unit 107 is further configured to: receive a second input to one of the at least one creative content feature controls. The display unit 106 is further configured to: in response to the second input received by the user input unit 107, update the first attribute name displayed on the creative content feature control selected by the second input to a second attribute name, and update the at least one first alternative creative text information to at least one second alternative creative text information corresponding to the second attribute. It should be noted that the first attribute name is the content displayed on the creative content feature control selected by the second input before receiving the second input, and the second attribute name is the attribute name selected by the second input.

[0537] In some embodiments of this application, the above-mentioned content creation feature controls include at least one of the following: text style control, text emotion control, text structure control, text genre control, text object control, and text word count control.

[0538] In some embodiments of this application, the aforementioned at least one second alternative creative text information includes any one of the following: second alternative creative text information generated in real time in response to the aforementioned second input; or second alternative creative text information pre-cached.

[0539] In some embodiments of this application, the display unit 106 is further configured to: display the initial text information in the text input box. Specifically, the display unit 106 is configured to: display Q items of first alternative creative text information; where Q is an integer greater than 1. The user input unit 107 is further configured to: receive a fourth input of one of the first alternative creative text information items in the Q items. The display unit is further configured to: update the initial text information displayed in the text input box to the first alternative creative text information selected by the fourth input in response to the fourth input.

[0540] In some embodiments of this application, the program interface further includes a regenerated control. The user input unit 107 is also configured to: receive a fifth input from the user regarding the regenerated control. The display unit 106 is also configured to: update the at least one first alternative creative text information to at least one third alternative creative text information in response to the fifth input received by the user input unit 107. It should be noted that the at least one third alternative creative text information is regenerated based on the creative environment feature information and creative content feature information corresponding to the initial text information.

[0541] In some embodiments of this application, the program interface further includes a text creation cancellation control. The user input unit 107 is also configured to: receive a fifth input from the user to the text creation cancellation control. The display unit 106 is also configured to: cancel the display of at least one of the first alternative text creation information in response to the fifth input received by the user input unit 107.

[0542] In this embodiment, the electronic device first receives initial text information input by the user, and then displays at least one first alternative creative text information obtained based on the creative environment feature information and creative content feature information corresponding to the initial text information. The creative environment feature information and the creative content feature information are obtained based on creative task reference information corresponding to the initial text information. This creative task reference information includes user profile information and application interface information, where the application interface information is the program interface information of the application displayed on the screen. In this solution, after receiving writing instructions input by the user in the application interface, the electronic device can combine the user profile information and the application interface information to determine the creative environment feature information representing the current creative scenario and the creative content feature information representing the user's preferences. This allows the electronic device to create creative text that better suits the current creative scenario and the user's preferences based on the creative environment feature information and the creative content feature information, thus eliminating the need for manual modification by the user and improving the accuracy of the creative text provided by the electronic device's assisted writing system.

[0543] It should be understood that, in this embodiment, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here.

[0544] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 109 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 109 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.

[0545] Processor 110 may include one or more processing units; optionally, processor 110 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 110.

[0546] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described auxiliary writing method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0547] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0548] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described auxiliary writing method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0549] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0550] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above-described assisted writing method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0551] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0552] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0553] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A writing aid method, characterized in that, The method includes: Receive initial text information input by the user; Display at least one first alternative creative text information, which is obtained based on the creative environment feature information and creative content feature information corresponding to the initial text information; The creation environment feature information and the creation content feature information are obtained based on the creation task reference information corresponding to the initial text information. The creation task reference information includes: user profile information and application interface information; the application interface information is the program interface information of the application displayed on the screen.

2. The method according to claim 1, characterized in that, The creation environment feature information is used to characterize the type of text created by the creation task corresponding to the initial text information in the creation scene corresponding to the program interface. The creative content feature information is used to characterize at least one of the following creative content features: text style, text emotion, text structure, text genre, text object, and text word count.

3. The method according to claim 2, characterized in that, The creation scenarios include at least one of the following: email scenario, office scenario, article scenario, chat scenario, news scenario, comment scenario, blessing scenario, summary scenario, note scenario, poetry scenario, and social copywriting scenario; The text types include at least one of the following: email type, office type, article type, chat type, news type, comment type, greeting type, summary type, note type, poem type, and social copywriting type.

4. The method according to claim 1, characterized in that, The application interface information includes at least one of the following: the interface content of the program interface, and the application attribute information of the application. The application attribute information includes at least one of the following: application name and application type.

5. The method according to claim 1, characterized in that, The program interface includes at least one auxiliary creation control; different auxiliary creation controls are used to trigger the execution of different creation tasks. Before displaying at least one first alternative creative text information, the method further includes: Receive a first input to one of the at least one auxiliary authoring controls; The display of at least one first alternative creative text information includes: In response to the first input, at least one first alternative creative text information is displayed; The creation task corresponding to the initial text information is the creation task indicated by the auxiliary creation control selected by the first input.

6. The method according to claim 5, characterized in that, The at least one auxiliary creation control includes at least one of the following: text summary control, text polishing control, text continuation control, text abbreviation control, text expansion control, grammar correction control, intelligent typesetting control, text translation control, WeChat Moments caption control, and short video caption control; The creation task indicated by the text summary control is to summarize the initial text information; The text polishing control indicates that the creation task is to polish the initial text information; The creation task indicated by the text continuation control is to continue writing the initial text information; The text abbreviation control indicates that the creation task is to abbreviate the initial text information; The creation task indicated by the text expansion control is to expand the initial text information; The creation task indicated by the grammar correction control is to correct the grammar of the initial text information; The creation task indicated by the intelligent typesetting control is to intelligently typeset the initial text information; The creation task indicated by the text translation control is to translate the initial text information; The creation task indicated by the Moments post control is to create a Moments post from the initial text information; The creation task indicated by the short video text control is to create short video text from the initial text information.

7. The method according to claim 1, characterized in that, The creation task reference information also includes at least one piece of historical dialogue information; one piece of historical dialogue information includes the following information in a creation dialogue process: user profile information corresponding to a historical writing instruction, creation environment feature information and creation content feature information corresponding to the historical creation text information adopted by the user; Before displaying at least one first alternative creative text information, the method further includes: Based on the at least one piece of historical dialogue information, count the number of N texts of M historical creation text information that have the same user profile information, the same creation environment characteristics information, and the same creation content characteristics information, where M and N are both positive integers; The creative content feature information of the historical creative text information corresponding to the maximum value among the N text quantities is determined as the creative content feature information corresponding to the initial text information, and the creative environment feature information of the historical creative text information corresponding to the maximum value is determined as the creative environment feature information corresponding to the initial text information.

8. The method according to claim 1, characterized in that, Before displaying at least one first alternative creative text information, the method further includes: Based on the application interface information, determine the creation environment feature information corresponding to the initial text information; Based on the mapping relationship between user profile information, creation environment feature information and creation content feature information, the user's user profile information and the creation environment feature information, the creation content feature information corresponding to the initial text information is obtained.

9. The method according to claim 1, characterized in that, Before displaying at least one first alternative creative text information, the method further includes: Based on the application interface information, obtain the initial creation content feature information and the creation environment feature information corresponding to the initial text information; Based on the user profile information of the user, the feature information of the initial creative content is extended to obtain the creative content feature information corresponding to the initial text information.

10. The method according to claim 2, characterized in that, Before displaying at least one first alternative creative text information, the method further includes: Based on the user's user profile information, the creation environment feature information and creation content feature information corresponding to the initial text information, the creation task prompt words corresponding to the creation task are constructed. The creation task prompt is input into the text creation model, and the text creation model outputs at least one first alternative creation text information.

11. The method according to claim 10, characterized in that, The creation task reference information also includes at least one piece of historical dialogue information; one piece of historical dialogue information includes the following information in a creation dialogue process: user profile information corresponding to a historical writing instruction, creation environment feature information and creation content feature information corresponding to the historical creation text information adopted by the user; The method further includes: Based on the creation environment feature information and creation content feature information corresponding to the initial text information, at least one historical creation text information with the most matching creation features with the creation features corresponding to the initial text information is selected from the historical creation text information corresponding to the at least one historical dialogue information; the creation features include text type and attribute features represented by the creation environment feature information, and the attribute features include attribute features corresponding to each creation content feature represented by the creation content feature information. The process of constructing creation task prompts based on the user's profile information, the creation environment feature information corresponding to the initial text information, and the creation content feature information includes: Based on the user's user profile information, the creation environment feature information and creation content feature information corresponding to the initial text information, and the at least one historical creation text information, the creation task prompt words corresponding to the creation task are constructed.

12. The method according to claim 1, characterized in that, The program interface also includes at least one content creation feature control, and the display content of a content creation feature control is an attribute name corresponding to a content creation feature. After displaying at least one first alternative creative text information, the method further includes: Receive a second input to one of the at least one content creation feature controls; In response to the second input, the first attribute name displayed on the creative content feature control selected by the second input is updated to the second attribute name, and the at least one first alternative creative text information is updated to at least one second alternative creative text information corresponding to the second attribute; Wherein, the first attribute name is the content displayed on the creation content feature control selected by the second input before receiving the second input, and the second attribute name is the attribute name selected by the second input.

13. The method according to claim 12, characterized in that, The content creation feature controls include at least one of the following: text style control, text emotion control, text structure control, text genre control, text object control, and text word count control.

14. The apparatus according to claim 12, characterized in that, The at least one second alternative creative text information includes any one of the following: The second alternative creative text information is generated in real time in response to the second input; Pre-cached second alternative creative text information.

15. The method according to claim 1, characterized in that, After receiving the initial text information input by the user, the method further includes: The initial text information is displayed in the text input box; The display of at least one first alternative creative text information includes: Displays the first candidate text information for item Q; where Q is an integer greater than 1; After displaying the first candidate creative text information for item Q, the method further includes: Receive a third input for one of the first candidate creative text information in the Q item; In response to the third input, the initial text information displayed in the text input box is updated to the first alternative creative text information selected by the third input.

16. The method according to claim 1, characterized in that, The program interface also includes regenerating controls; After displaying at least one first alternative creative text information, the method further includes: Receive a fourth input from the user regarding the regenerated control; In response to the fourth input, the at least one first alternative creative text information is updated to at least one third alternative creative text information; The at least one third alternative creative text information is regenerated based on the creative environment feature information and creative content feature information corresponding to the initial text information.

17. The method according to claim 1, characterized in that, The program interface also includes a text creation cancellation control; After displaying at least one first alternative creative text information, the method further includes: Receive the user's fifth input regarding the text creation cancellation control; In response to the fifth input, the display of at least one first alternative creative text information is cancelled.

18. A writing aid, characterized in that, include: The receiving module is used to receive initial text information input by the user; The display module is used to display at least one first alternative creative text information, wherein the first alternative creative text information is obtained based on the creative environment feature information and creative content feature information corresponding to the user input initial text information received by the receiving module; The creation environment feature information and the creation content feature information are obtained based on the creation task reference information corresponding to the initial text information. The creation task reference information includes: user profile information and application interface information; the application interface information is the program interface information of the application displayed on the screen.

19. The apparatus according to claim 18, characterized in that, The creation environment feature information is used to characterize the type of text created by the creation task corresponding to the initial text information in the creation scene corresponding to the program interface. The creative content feature information is used to characterize at least one of the following creative content features: text style, text emotion, text structure, text genre, text object, and text word count.

20. The apparatus according to claim 18, characterized in that, The application interface information includes at least one of the following: the interface content of the program interface, and the application attribute information of the application. The application attribute information includes at least one of the following: application name and application type.

21. The apparatus according to claim 18, characterized in that, The program interface includes at least one auxiliary creation control; different auxiliary creation controls are used to trigger the execution of different creation tasks. The receiving module is also used for: Receive a first input to one of the at least one auxiliary authoring controls; The display module is specifically used for: In response to the first input received by the receiving module, at least one first alternative creative text information is displayed; The creation task corresponding to the initial text information is the creation task indicated by the auxiliary creation control selected by the first input.

22. The apparatus according to claim 18, characterized in that, The creation task reference information also includes at least one piece of historical dialogue information; one piece of historical dialogue information includes the following information during a creation dialogue process: user profile information corresponding to a historical writing instruction, creation environment characteristic information and creation content characteristic information corresponding to historical creation text information adopted by the user; the device also includes a statistics module, the statistics module being used for: Based on the at least one piece of historical dialogue information, count the number of N texts of M historical creation text information that have the same user profile information, the same creation environment characteristics information, and the same creation content characteristics information, where M and N are both positive integers; The creative content feature information of the historical creative text information corresponding to the maximum value among the N text quantities is determined as the creative content feature information corresponding to the initial text information, and the creative environment feature information of the historical creative text information corresponding to the maximum value is determined as the creative environment feature information corresponding to the initial text information.

23. The apparatus according to claim 18, characterized in that, The device further includes an acquisition module, the acquisition module being configured to: Based on the application interface information, determine the creation environment feature information corresponding to the initial text information; Based on the mapping relationship between user profile information, creation environment feature information and creation content feature information, the user's user profile information and the creation environment feature information, the creation content feature information corresponding to the initial text information is obtained.

24. The apparatus according to claim 18, characterized in that, The device further includes an expansion module, the expansion module being used for: Based on the application interface information, obtain the initial creation content feature information and the creation environment feature information corresponding to the initial text information; Based on the user profile information of the user, the feature information of the initial creative content is extended to obtain the creative content feature information corresponding to the initial text information.

25. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the writing assistance method as described in any one of claims 1-17.