Note content processing method and device, electronic equipment and storage medium
By using a large language model to rewrite the notes in the sticky notes application of electronic devices, the problem of inefficient user efficiency when editing notes is solved, and more efficient editing and rewriting of note content is achieved.
Patent Information
- Application Number
- CN202411912049.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-04-15
AI Technical Summary
Users are not efficient when editing notes using electronic devices, and it is difficult for the prior art to provide convenient rewriting and correction tools.
By displaying the first editing interface in the note application, in response to the user's rewriting operation, the input note content is rewritten using a large language model to display the rewritten content.
It improves users' efficiency when editing notes, provides convenient rewriting and correction tools, and enhances the quality of notes.
Smart Images

Figure CN119830871A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic devices, and more specifically, to a method, device, electronic device and storage medium for processing note content. Background Art
[0002] With the rapid advancement of technology and living standards, electronic devices (such as smart phones, tablet computers, etc.) have become one of the commonly used electronic products in people's lives. Current electronic devices can provide a convenient way to record information, such as providing a note application for users to record notes, so as to record some useful data in daily life, study, and work. However, when users use electronic devices to create notes, it is still not convenient enough, resulting in low efficiency for users when editing notes. Summary of the invention
[0003] The present application proposes a method, device, electronic device and storage medium for processing note content, which can improve the efficiency of users when editing note content.
[0004] In a first aspect, an embodiment of the present application provides a method for processing note content, the method comprising: displaying a first editing interface of a note application, the first editing interface including input text note content; in response to a rewrite operation on first content in the text note content, displaying second content in the first editing interface, the second content being obtained by rewriting the first content through a large language model.
[0005] In a second aspect, an embodiment of the present application provides a device for processing note content, the device comprising: an interface display module and a note rewriting module, wherein the interface display module is used to display a first editing interface of a note application, the first editing interface including input text note content; the note rewriting module is used to display second content in the first editing interface in response to a rewriting operation on the first content in the text note content, the second content is obtained by rewriting the first content through a large language model.
[0006] In a third aspect, an embodiment of the present application provides an electronic device comprising: one or more processors; a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the note content processing method provided in the first aspect above.
[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored. The program code can be called by a processor to execute the method for processing note content provided in the first aspect above.
[0008] The solution provided by the present application displays a first editing interface of a sticky note application, the first editing interface includes input text note content, and in response to a rewrite operation on the first content in the text note content, displays second content in the first editing interface, the second content is obtained by rewriting the first content through a large language model. Thus, when editing the note content in the sticky note application, the input note content can be rewritten accordingly through a large language model, thereby improving the efficiency of users when editing the note content. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0010] Figure 1 A flowchart of a method for processing note content according to an embodiment of the present application is shown.
[0011] Figure 2 A flowchart of a method for processing note content according to another embodiment of the present application is shown.
[0012] Figure 3 A schematic diagram of an interface provided in an embodiment of the present application is shown.
[0013] Figure 4 A schematic diagram of an interface provided in an embodiment of the present application is shown.
[0014] Figure 5 A schematic diagram of an interface provided in an embodiment of the present application is shown.
[0015] Figure 6 A flowchart of a method for processing note content according to yet another embodiment of the present application is shown.
[0016] Figure 7 A flowchart of a method for processing note content according to another embodiment of the present application is shown.
[0017] Figure 8 A schematic diagram of an interface provided in an embodiment of the present application is shown.
[0018] Fig. 9A schematic diagram of an interface provided in an embodiment of the present application is shown.
[0019] Fig.10 A schematic diagram of an interface provided in an embodiment of the present application is shown.
[0020] Fig.11 A flowchart of a method for processing note content according to yet another embodiment of the present application is shown.
[0021] Fig.12 A schematic diagram of an interface provided in an embodiment of the present application is shown.
[0022] Fig.13 A schematic diagram of an interface provided in an embodiment of the present application is shown.
[0023] Fig.14 A schematic diagram of an interface provided in an embodiment of the present application is shown.
[0024] Fig.15 A schematic diagram of an interface provided in an embodiment of the present application is shown.
[0025] Fig.16 A schematic diagram of an interface provided in an embodiment of the present application is shown.
[0026] Fig.17 A schematic diagram of an interface provided in an embodiment of the present application is shown.
[0027] Fig.18 A flowchart of a method for processing note content according to yet another embodiment of the present application is shown.
[0028] Fig.19 A schematic diagram of an interface provided in an embodiment of the present application is shown.
[0029] Fig. 20 A schematic diagram of an interface provided in an embodiment of the present application is shown.
[0030] Fig.21 A schematic diagram of an interface provided in an embodiment of the present application is shown.
[0031] Fig. 22 A schematic diagram of an interface provided in an embodiment of the present application is shown.
[0032] Fig.23 A schematic diagram of an interface provided in an embodiment of the present application is shown.
[0033] Fig.24 A schematic diagram of an interface provided in an embodiment of the present application is shown.
[0034] Fig.25 A schematic diagram of the architecture of the note application provided in an embodiment of the present application is shown.
[0035] Fig.26 A schematic diagram showing the functional modules corresponding to the method for processing note content provided in an embodiment of the present application.
[0036] Fig. 27 A block diagram of a device for processing note content according to an embodiment of the present application is shown.
[0037] Fig.28 It is a block diagram of an electronic device according to an embodiment of the present application for executing a method for processing note content according to an embodiment of the present application.
[0038] Fig.29 It is a storage unit of an embodiment of the present application for storing or carrying program codes for implementing a method for processing note contents according to an embodiment of the present application. DETAILED DESCRIPTION
[0039] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0040] In daily life, study and work, people usually need to record some information to form notes. Compared with the paper-based note-taking method, electronic devices can provide a more convenient way to create notes. In the note-taking application of electronic devices, users can create notes. Users can manually input or voice input the information to be recorded, and users can insert pictures and doodle when creating notes. In the note-taking application, users can usually use it to record inspiration, work records, drafts, life records and other note contents.
[0041] In the related art, after people input note content in the note application, there is usually a need to check and modify the input note content, and this usually requires the user to carefully read the input content before modifying the note content. Therefore, the operation when editing the note content is not editable enough, and the user's efficiency in editing the note content is not high.
[0042] In response to the above problems, the inventors have proposed a method, device, electronic device, and storage medium for processing note content provided in the embodiments of the present application, which can realize that when editing note content in a note application, the input note content can be rewritten accordingly through a large language model, thereby improving the efficiency of users when editing note content. The specific method for processing note content is described in detail in the subsequent embodiments.
[0043] The following is a detailed introduction to the method for processing note content provided in the embodiment of the present application in conjunction with the accompanying drawings.
[0044] See also Figure 1 , Figure 1 FIG. 1 is a flow chart showing a method for processing note content provided by an embodiment of the present application. In a specific embodiment, the method for processing note content is applied to Fig.15 The device 700 for processing note contents and the electronic device 100 ( Fig.16 ). The following will take an electronic device as an example to illustrate the specific process of this embodiment. Of course, it can be understood that the electronic device used in this embodiment can be a smart phone, a tablet computer, an e-book, a laptop computer, etc., which is not limited here. Figure 1 The process shown is described in detail, and the method for processing the note content may specifically include the following steps:
[0045] Step S110: Displaying a first editing interface of the note application, wherein the first editing interface includes input text note content.
[0046] The first editing interface of the note application displayed by the electronic device may be any editing interface of the note application, in which the user may create notes and input note content in the editing interface. The note content that may be input in the editing interface may include text content, pictures, voice, graffiti, etc., and the specific input content may not be limited.
[0047] A note-taking app is a software that runs on electronic devices and is designed to help users quickly record, manage, and track information. The note-taking app allows users to create, edit, store, and delete notes. Each note can contain multiple types of information, such as text, images, and audio, and is used to record reminders, tasks to be done, inspirational ideas, etc.
[0048] In an embodiment of the present application, the above first editing interface displayed by the electronic device may include input text note content, that is, the note content in text form input by the user in the editing interface of the note application.
[0049] In some embodiments, when displaying the above first editing interface, the electronic device can display a virtual keyboard in response to operations in the editing area; according to the input operation in the virtual keyboard, the text content input by the user is obtained, and the input text content is displayed in the editing area of the above first editing interface. At this time, the text content input by the user through the virtual keyboard can be regarded as the input text note content.
[0050] In some embodiments, when displaying the above first editing interface, the electronic device can paste the copied text content into the editing area of the first editing interface in response to the user's operation. At this time, the text content pasted into the editing area can be regarded as the input text note content.
[0051] In some embodiments, when the electronic device displays the above first editing interface, it can respond to the user's voice input operation and detect the user's voice input; when the user's voice input is detected, the detected voice can be converted into text through automatic speech recognition technology (automatic speech recognition, ASR) to obtain text content, and the converted text content can be displayed in the editing area of the first editing interface. At this time, the text content obtained by voice conversion can be regarded as the input text note content.
[0052] Of course, in the embodiment of the present application, the specific method of inputting text note content in the editing interface of the note application may not be limited.
[0053] Step S120: In response to a rewriting operation on the first content in the text note content, a second content is displayed in the first editing interface, where the second content is obtained by rewriting the first content through a large language model.
[0054] In an embodiment of the present application, when the electronic device displays the above first editing interface, it can detect the operation in the interface. When a rewriting operation is detected for the first content in the above text note content, it can respond to the rewriting operation by rewriting the first content through a large language model (LLM), and display the second content obtained after the rewriting of the first content in the above first editing interface. Among them, the above first content can be part of the content or all of the content in the above text note content, which is not limited here; the large language model is a model based on deep learning and natural language processing technology, which is trained with a large amount of text data to learn the ability to understand and generate language. The large language model can handle complex natural language tasks, such as text classification, question and answer, dialogue, etc.
[0055] In some implementations, the rewriting process performed on the first content includes at least one of sentence correction, sentence polishing, typesetting, length expansion, length shortening, and text continuation.
[0056] Among them, sentence correction can refer to the process of detecting and correcting errors in sentences in a text, which usually includes: spelling correction, grammar correction and semantic correction. Spelling correction includes detecting and correcting spelling errors in the text to ensure that the vocabulary in the text is correct; grammar correction includes checking and correcting grammatical errors in sentences, such as sentence structure, tense, voice, etc., to ensure the grammatical correctness of the sentence; semantic correction is used to ensure that the meaning of the sentence is clear and accurate, without ambiguity or vagueness. When performing semantic correction, it may be necessary to adjust the structure of vocabulary, phrases or sentences.
[0057] Sentence polishing can be the process of optimizing and beautifying sentences in a text to enhance the expression and appeal of the text. Sentence polishing can include: vocabulary optimization, sentence structure adjustment and emotional color adjustment. Vocabulary optimization can be to choose more appropriate and vivid words to replace the words in the original text to enhance the expressiveness of the text. Sentence structure adjustment can be to make the sentence more fluent and rhythmic by changing the structure and word order of the sentence or adding modifiers. Emotional color adjustment can be to adjust the emotional color of the sentence according to the theme and purpose of the text to make it more in line with the emotional needs of the readers.
[0058] Typesetting can refer to the formatting of text to make it more beautiful and easy to read. Typesetting can include font selection, short circuit setting, inserting pictures and tables, alignment and typesetting rules. Font selection can be to choose the appropriate font, font size and color to match the theme and style of the text. Paragraph setting can be to reasonably set the length, spacing and indentation of paragraphs to make the text structure clear and well-organized. Inserting pictures and tables can be to insert appropriate pictures and tables to assist in explaining the content of the text and improve the readability and attractiveness of the text. Alignment and typesetting rules can be to ensure that the elements in the text (such as titles, paragraphs, pictures, etc.) are aligned and typeset according to consistent rules.
[0059] Expanding the text can mean making the text more detailed and rich by adding content without changing the theme and core meaning of the original text. Expanding the text can include adding details, adding examples, and expanding the discussion. Adding details can be adding specific details to the original text, such as character characteristics, events, etc., to make the text more vivid and specific. Adding examples can be adding relevant examples to further illustrate the viewpoints or arguments in the original text to enhance the persuasiveness of the text. Expanding the discussion can be a more in-depth exploration and discussion of a certain viewpoint or issue in the original text, making the text content richer and more comprehensive.
[0060] Shortening the length of a text can mean making the text more concise and clear by deleting redundant content, simplifying sentence structure, etc. Shortening the length of a text can include deleting redundant content, simplifying sentences, and refining the core. Deleting redundant content means deleting repeated, redundant, or unnecessary sentences and paragraphs in the text to make the text more compact. Simplifying sentences means making sentences more concise and clear by simplifying sentence structure, deleting unnecessary modifiers, etc. Refining the core means extracting the core ideas and arguments in the text, deleting irrelevant content, and making the text more prominent in the theme.
[0061] Text continuation can refer to automatically generating subsequent texts that match existing text content. Text continuation can include text parsing, semantic understanding, and generating subsequent texts. Text parsing can be pre-processing operations such as word segmentation and part-of-speech tagging of existing texts to extract key information. Semantic understanding can be the use of natural language processing technology to understand the deep semantic information of existing texts, such as the theme, sentiment, and intent. Generating subsequent texts can be based on the content and semantic information of existing texts, using deep learning algorithms to generate subsequent texts that match them.
[0062] In some embodiments, after detecting a selection operation on text content in the text note content in the first editing interface, the electronic device can respond to the selection operation and use the text content selected by the selection operation as the first content. That is, when rewriting the input text note content, the text content that needs to be rewritten can be selected from the input text note content according to the operation input by the user, thereby rewriting the text content that the user needs to rewrite.
[0063] In some embodiments, when rewriting the first content, the rewriting process performed on the first content may correspond to the above rewriting operation. That is, the above rewriting operation may indicate the rewriting process required for the first content, so that the first content may be rewritten accordingly according to the above rewriting operation and through the large language model.
[0064] In a possible implementation, the electronic device may perform a rewrite process corresponding to the above rewrite operation on the above first content through a large language model deployed in the server. The electronic device may generate a request for instructing the server to perform the above rewrite process on the first content based on the above first content, and send the generated request to the server; correspondingly, the server may receive the request, and in response to the request, rewrite the first content through the deployed large language model.
[0065] In a possible implementation, when the above rewriting process is performed by a large language model, the above first content and a prompt word (prompt) can be input into the large language model to obtain the rewritten second content output by the large language model. Among them, the prompt word refers to the input text or instruction provided to the model, which is used to guide the large language model to generate a specific type of response. The prompt word converts the natural language text into machine-readable intent and embedding vectors, so that the large model can understand and execute human instructions. Specifically, the prompt word can be a question, a description, a task description, or even a part of the conversation history record, etc. Its function is to guide the model to generate an expected response or complete a specific task. In this implementation, the prompt word can be used to prompt the large language model to perform the above rewriting process on the first input content. For example, it can be "polishing the input content".
[0066] The method for processing note content provided in the embodiment of the present application displays the first editing interface of the note application, the first editing interface includes the input text note content, and in response to the rewriting operation on the first content in the text note content, displays the second content in the first editing interface, the second content is obtained by rewriting the first content through the large language model. Therefore, when editing the note content in the note application, the input note content can be rewritten accordingly through the large language model, thereby improving the efficiency of the user when editing the note content.
[0067] See also Figure 2 , Figure 2 A flowchart of a method for processing note content provided by another embodiment of the present application is shown. The method for processing note content is applied to the above electronic device. Figure 2 The process shown is described in detail, and the method for processing the note content may specifically include the following steps:
[0068] Step S210: Displaying a first editing interface of the sticky note application, wherein the first editing interface includes input text note content.
[0069] In the embodiment of the present application, step S210 can refer to the contents of other embodiments and will not be repeated here.
[0070] Step S220: In response to a selection operation on a first content in the text note content, displaying at least one rewrite control in the first editing interface.
[0071] In an embodiment of the present application, when displaying the above-mentioned first editing interface, the electronic device can detect operations in the interface. When a selection operation is detected for the first content in the above-mentioned text note content, at least one rewrite control can be displayed in the first editing interface in response to the selection operation.
[0072] In some implementations, different rewriting controls correspond to different rewriting processes, that is, different rewriting controls are used to trigger the electronic device to perform different rewriting processes. For example, the first editing interface may display a rewriting control for triggering sentence correction, a rewriting control for triggering sentence polishing, a rewriting control for triggering typesetting, a rewriting control for triggering expansion of the length, a rewriting control for triggering shortening of the length, and a rewriting control for triggering text continuation.
[0073] In some embodiments, when the electronic device displays the rewrite control in the first editing interface in response to a selection operation on the first content, the electronic device may display an entry control for calling the rewrite control in the first editing interface after detecting the selection operation on the first content; then, when a trigger operation on the entry control is detected, at least one rewrite control may be displayed in the first editing interface in response to the trigger operation. The trigger operation on the entry control may be a click operation, a press operation, etc., and the specific operation type may not be limited. Through the above embodiments, after the user selects the first content, the user needs to trigger the entry control before the rewrite control is displayed, which can avoid accidentally triggering the electronic device to display the rewrite control in the interface.
[0074] In a possible implementation, when the electronic device displays the above rewrite control in response to a trigger operation on the above entry control, the electronic device may display a first card in the first editing interface, and the first card may include the above rewrite control. In this way, the entry control can be operated in the first interface to call up the interface effect of the toolbar for rewrite processing. In addition, the first card may also include a close control for closing the card. If the electronic device detects an operation on the close control, the electronic device may cancel the display of the above first card, that is, hide the above first card.
[0075] In a possible implementation, when the electronic device displays the above entry control in response to a selection operation for the above first content, it may also display other controls for operating the first content, such as a cut control for cutting the first content, a copy control for copying the first content, a select all control for selecting all text note content in the first editing interface, a share control for sharing the first content, etc.
[0076] For example, see Figure 3 After detecting the selection operation of the corresponding content in the first editing interface A1, the above entry control A2 can be displayed in the first editing interface A1. In addition, the above cut control A3, copy control A4, select all control A5, share control A6, etc. can also be displayed; please refer to Figure 4 After detecting a click operation on the entry control A2, in response to the click operation, rewriting controls corresponding to different rewriting processes may be displayed in the first editing interface A1, for example Figure 4 As shown in the figure, there is a rewrite control A7 for typesetting the trigger, a rewrite control A8 for triggering sentence correction, a rewrite control A9 for polishing the trigger, a rewrite control A10 for triggering continuation of writing, a rewrite control A11 for triggering expansion of the length, a rewrite control A12 for triggering shortening of the length, etc.
[0077] In some embodiments, when the electronic device displays a rewrite control in the first editing interface in response to a selection operation for the above first content, it may be based on the description ability portrait of the target user, and at least one rewrite control may be displayed in the first editing interface. Among them, the above target user may be the user corresponding to the electronic device, for example, it may be a user who has logged into an account in the electronic device; the above description ability portrait may be a portrait used to characterize the description ability of the target user. It can be understood that the description ability portrait can reflect the description ability of the user in different dimensions, based on which the dimensions in which the user's description ability is insufficient can be determined, and the corresponding rewrite control can be displayed in the first editing interface according to the determined dimensions. For example, if the description ability portrait reflects that the user's description fluency is insufficient, then a rewrite control for triggering sentence polishing can be displayed in the first editing interface. In this way, the displayed rewrite control can be matched with the user's actual description ability, which can better meet the user's usage needs and habits.
[0078] In some embodiments, when the electronic device displays the rewrite control in the first editing interface in response to the selection operation for the above first content, it can also determine the rewrite control whose historical usage times meet the number condition from multiple rewrite controls according to the historical usage times of each rewrite control in the historical records, and display the determined rewrite control in the first editing interface. Among them, the above number condition can be that the historical usage times are greater than the target usage times; the above number condition can also be that the historical usage times are greater than the usage times of other rewrite controls. For example, the historical usage times of multiple rewrite controls can be sorted from large to small, and the rewrite controls corresponding to the first N historical usage times are taken from the sorting results as the rewrite controls that need to be displayed, then the historical usage times corresponding to the N rewrite controls are greater than the historical usage times of other rewrite controls except the N rewrite controls in the multiple rewrite controls.
[0079] In a possible implementation, the above historical usage count may be the usage count in the last N days. In this way, the rewrite controls that the user is accustomed to using recently can be displayed based on the user's recent rewriting habits of the input text note content, which can better meet the user's usage habits and needs.
[0080] In some embodiments, when the electronic device displays at least one rewrite control in the above first editing interface, considering that there may be many types of rewrite processing that can be provided, all rewrite controls cannot be displayed in the first editing interface. Therefore, the electronic device may display some rewrite controls in the first editing interface, and may display a target control for triggering the display of other rewrite controls; after detecting the trigger operation for the target control, other rewrite controls that are not displayed may be displayed in the first editing interface, so that the user can select the required rewrite control.
[0081] Step S230: In response to a triggering operation on the rewrite control, a second content is displayed in the first editing interface, where the second content is obtained by rewriting the first content corresponding to the rewrite control using a large language model.
[0082] In an embodiment of the present application, after the electronic device displays the above rewrite control in the first editing interface, it can detect the operation in the first editing interface. When a trigger operation for any rewrite control is detected, such as a click operation, a press operation, etc., the electronic device can respond to the trigger operation of the rewrite control by performing a rewrite process corresponding to the rewrite control on the first content through the large language model, and display the second content obtained after the rewrite process of the first content in the above first editing interface. The rewrite process corresponding to the rewrite control is the rewrite process that the rewrite control is used to trigger. For example, if a trigger operation for a rewrite control used to trigger a sentence correction is detected, the sentence correction of the first content can be performed through the large language model.
[0083] In some implementations, after detecting a trigger operation on a rewrite control, the electronic device may display a prompt message in the first editing interface during the process of rewriting the first content corresponding to the rewrite control using the large language model to prompt that the rewrite process is being performed on the first content. Figure 5 In the first editing interface A1, a prompt card A13 may be displayed, and the prompt card A13 includes a prompt message of "generating".
[0084] In a possible implementation, the electronic device can also display the content obtained when the rewriting process is performed on the first content by means of streaming on the screen during the process of performing the rewriting process corresponding to the rewriting control on the first content by means of a large language model, that is, gradually displaying the obtained content in the first editing interface.
[0085] In a possible implementation, the electronic device displays a pause control in the first editing interface during the process of rewriting the first content corresponding to the rewriting control through the large language model. The pause control is used to trigger the pause of rewriting the first content. When the electronic device detects the triggering operation for the pause control, it pauses the rewriting of the first content. For example, see Figure 5 In the first editing interface A1, a prompt card A13 may be displayed, which includes not only a prompt message "generating" but also a pause control A14 for the user to control the electronic device to pause the rewriting process of the first content. Through the above implementation, the user can pause the rewriting process of the first content when the user mistakenly operates the rewriting control or selects the wrong rewriting control.
[0086] The method for processing note content provided in the embodiment of the present application can achieve corresponding rewriting processing of the input note content through a large language model when editing the note content in the note application, thereby improving the efficiency of the user when editing the note content; and, after detecting that the corresponding text content is selected, a rewrite control can be displayed, so that the user can select the corresponding rewrite control according to his needs, thereby completing the rewriting processing required by the user, and thus better meeting the user's usage needs.
[0087] See also Figure 6 , Figure 6 A flowchart of a method for processing note content provided by another embodiment of the present application is shown. The method for processing note content is applied to the above electronic device. Figure 6 The process shown is described in detail, and the method for processing the note content may specifically include the following steps:
[0088] Step S310: Displaying a first editing interface of the sticky note application, wherein the first editing interface includes input text note content.
[0089] In the embodiment of the present application, step S310 can refer to the contents of other embodiments and will not be repeated here.
[0090] Step S320: In response to a selection operation on the first content in the text note content, based on the description score of the first content, at least one rewrite control is displayed in the first editing interface, and the at least one rewrite control is determined based on the description score, and the description score is used to characterize the description quality of the first content.
[0091] In an embodiment of the present application, when the electronic device displays at least one rewrite control in the first editing interface in response to a selection operation for the first content, the electronic device may display at least one rewrite control in the first editing interface based on the description score of the first content, and the at least one rewrite control is determined based on the description score. The description score is used to characterize the description quality of the first content.
[0092] It is understandable that since there are many types of rewriting processes, if more rewriting controls are displayed, they may occupy too much display space in the display interface, thereby affecting the user's viewing of the content in the first editing interface. In addition, it is not convenient for the user to quickly see the rewriting controls that are really needed from the numerous rewriting controls. Therefore, the electronic device can display the rewriting controls in a targeted manner according to the actual description quality of the first content to be rewritten as needed, that is, according to the above description score, so that the rewriting controls displayed in the first editing interface will not be too many and can better match the needs of users.
[0093] In some embodiments, the number of rewrite controls displayed in the first editing interface may be negatively correlated with the above description score. The more rewrite controls there are, the lower the above description score is; the fewer rewrite controls there are, the higher the above description score is. It can be understood that when the description score is high, it means that the description quality of the above first content is high. In this case, the type of rewrite processing required for the first content is small, so fewer rewrite controls can be displayed; conversely, when the description score is low, it means that the description quality of the above first content is low. In this case, the type of rewrite processing required for the first content is large, so more rewrite controls corresponding to the rewrite processing can be displayed.
[0094] In some implementations, the description score for the first content may include multiple evaluation dimension sub-scores, and each evaluation dimension sub-score may correspond to a rewriting process. When the electronic device displays the rewriting control in the first editing interface, the corresponding rewriting control may be displayed according to the sub-score of each evaluation dimension.
[0095] In a possible implementation, the above multiple evaluation dimensions include evaluation dimensions corresponding to sentence correction, evaluation dimensions corresponding to sentence polishing, evaluation dimensions corresponding to typesetting, evaluation dimensions corresponding to expanding the length, evaluation dimensions corresponding to shortening the length, and evaluation dimensions corresponding to continuing the text. The sub-scores of the evaluation dimension corresponding to sentence correction can be scores for evaluating the first content from the perspectives of spelling accuracy, grammatical accuracy, and semantic accuracy; the sub-scores of the evaluation dimension corresponding to sentence polishing can be scores for evaluating the first content from the perspectives of sentence fluency, rhythm, expressiveness, and emotional color; the sub-scores of the evaluation dimension corresponding to typesetting can be scores for evaluating the first content from the perspectives of the font format of the text content and the theme and style of the text, the clarity of the text structure, and the hierarchy of the text structure; the evaluation score of the evaluation dimension corresponding to the expansion of the length can be scores for evaluating the first content from the perspectives of the number of words in the text content, the clarity of the detailed description, and the number of examples; the evaluation score of the evaluation dimension corresponding to the shortening of the length can be scores for evaluating the first content from the perspectives of the number of repeated, redundant, or unnecessary sentences and paragraphs in the text content, the number of unnecessary modifiers, etc.; the evaluation score of the evaluation dimension corresponding to the text continuation can be scores for evaluating the first content from the perspectives of the number of words and sentences in the text content. Of course, the determination method of the evaluation score of each evaluation dimension is not limited to this; in addition, the above multiple evaluation dimensions can also include evaluation dimensions corresponding to other rewriting processes.
[0096] In a possible implementation, when displaying the corresponding rewrite control according to the sub-score of each evaluation dimension, it is possible to determine for each evaluation dimension whether the sub-score of each evaluation dimension is less than or equal to the target threshold; if the sub-score of any evaluation dimension is less than or equal to the target threshold, then the rewrite control corresponding to the rewrite process corresponding to the evaluation dimension can be displayed in the first editing interface. For example, if the evaluation score of the evaluation dimension corresponding to the sentence correction is less than or equal to the target threshold, then the rewrite control corresponding to the sentence correction can be displayed, that is, the rewrite control for triggering the sentence correction can be displayed.
[0097] In a possible implementation, the sub-scores of the multiple evaluation dimensions can be weighted and summed according to the preset weights corresponding to each evaluation dimension to obtain a total score; based on the total score, the number N of rewrite controls that need to be displayed can be determined, where N is a positive integer; and the sub-scores of the multiple evaluation dimensions can be sorted in order from large to small to obtain a sorting result; then the first N sub-scores are obtained from the sorting result, and the rewrite processing corresponding to the evaluation dimensions corresponding to the N sub-scores is determined as the rewrite processing that needs to display the rewrite control, that is, the electronic device can display the rewrite controls corresponding to these rewrite processing in the first editing interface. Among them, the number N of rewrite controls above can be positively correlated with the above total score.
[0098] In some embodiments, when obtaining the description score of the first content, the first content can be input into a pre-trained description scoring model, and then the score output by the description scoring model is obtained as the description score. The description scoring model can be pre-trained based on an annotated data set containing text and description scores corresponding to the text, wherein the text in the annotated data set can be used as a sample text, and the description score corresponding to the text can be used as a label of the sample text; the description scoring model can be a regression model, such as a linear regression model, a decision tree regression model, a random forest regression model, a gradient boosting regression model, etc., or a deep learning model, such as a convolutional neural network (CNN), a Transformer (self-attention mechanism) model, etc., and the specific model type can be not limited.
[0099] In a possible implementation, when training the above description scoring model, the sample text can be input into the initial model to obtain the result output by the initial model; then, the loss value is determined based on the result output by the initial model and the label corresponding to the sample text; after obtaining the loss value, the initial model can be iteratively trained according to the loss value to obtain the final description scoring model.
[0100] Optionally, the initial model can be iteratively trained using the Adam optimizer according to the total loss value until the loss value of the output result of the initial model converges, and the model at this time is saved to obtain a trained description scoring model. Among them, the Adam optimizer combines the advantages of the two optimization algorithms AdaGra (Adaptive Gradient) and RMSProp (Root MeanSquare Rrop), comprehensively considers the first moment estimation (First Moment Estimation, i.e. the mean of the gradient) and the second moment estimation (Second Moment Estimation, i.e. the uncentered variance of the gradient), and calculates the update step size. Among them, the training end conditions of the iterative training may include: the number of iterative training reaches the target number; or the loss value of the output result of the initial model meets the set conditions.
[0101] It is worth noting that the training of the description scoring model can be carried out in advance based on the above-mentioned annotated data set. Subsequently, each time the description score of the text content needs to be identified, the trained description scoring model can be used, without the need to train the description scoring model each time the description score of the text content needs to be identified.
[0102] In a possible implementation, the above description scoring model can be stored in an electronic device. When the electronic device needs to identify a description score for text content, the description scoring model can be called, and the text content can be input into the description scoring model to obtain a description score for the text content. Of course, the description scoring model can also be stored in a server. When the electronic device needs to identify a description score for text content, it can interact with the server and identify the description score of the text content through the description scoring model in the server.
[0103] Step S330: In response to a triggering operation on the rewrite control, a second content is displayed in the first editing interface, where the second content is obtained by rewriting the first content corresponding to the rewrite control using a large language model.
[0104] In the embodiment of the present application, step S330 can refer to the contents of the aforementioned embodiment and will not be repeated here.
[0105] The method for processing note content provided in the embodiment of the present application can achieve that when editing note content in a note-taking application, the input note content can be rewritten accordingly through a large language model, thereby improving the efficiency of users when editing note content; and, after detecting that the corresponding text content is selected, a rewrite control that matches the description score of the selected content can be displayed, so that the rewrite control can be displayed in a targeted manner according to the actual description quality of the selected content, thereby preventing too many rewrite controls from being displayed in the interface and better matching the needs of users.
[0106] See also Figure 7 , Figure 7 A flowchart of a method for processing note content provided by another embodiment of the present application is shown. The method for processing note content is applied to the above electronic device. Figure 7 The process shown is described in detail, and the method for processing the note content may specifically include the following steps:
[0107] Step S410: Displaying a first editing interface of the note application, wherein the first editing interface includes input text note content.
[0108] Step S420: In response to a rewriting operation on the first content in the text note content, a second content is displayed in the first editing interface, where the second content is obtained by rewriting the first content through a large language model.
[0109] In the embodiment of the present application, step S410 and step S420 may refer to the contents of other embodiments and will not be described in detail here.
[0110] Step S430: In response to the first editing operation on the second content, the first content displayed in the first editing interface is replaced with the second content.
[0111] In an embodiment of the present application, when the electronic device displays the second content in the first editing interface, the second content may be displayed below the first content. After displaying the above second content, the electronic device may detect the operation in the first editing interface, and when the first editing operation for the second content is detected, the above first content displayed in the first editing interface may be replaced with the above second content in response to the first editing operation. The above first editing operation is an operation for triggering the replacement of the above first content. That is to say, after detecting the above first editing operation, the second content obtained after rewriting the first content may replace the first content in the original text note content, so that the rewriting process required by the user for the original text note content can be realized. In addition, the user may decide whether to replace the original first content only after viewing the second content obtained after the rewriting process, so as to avoid the second content being incorrect and directly replacing the original first content.
[0112] In some embodiments, when the electronic device displays the second content in the first editing interface in response to the rewriting operation on the first content, it can also display a replacement control in the first editing interface, and the replacement control is used to trigger the replacement of the first content in the above text note content with the second content. After the electronic device detects a triggering operation on the replacement control, such as a click operation or a press operation on the replacement control, it can replace the above first content displayed in the first editing interface with the above second content.
[0113] Step S440: In response to a second editing operation on the second content, insert the second content into a position after the position of the first content.
[0114] In an embodiment of the present application, after the electronic device displays the above second content in the first editing interface, the electronic device can detect the operation in the first editing interface. When the first editing operation for the second content is detected, the second content can be inserted into the position after the first content in response to the second editing operation. The above second editing operation is used to trigger the insertion of the second content after the first content. That is to say, after detecting the above second editing operation, the second content obtained after rewriting the first content can be inserted after the first content, thereby realizing the user's demand to insert the second content obtained after the rewriting process on the basis of the original first content. In addition, the user can also decide whether to insert it into the note content after viewing the second content obtained after the rewriting process, so as to avoid the second content being incorrect and directly replacing the original first content.
[0115] In some embodiments, when the electronic device displays the second content in the first editing interface in response to the rewriting operation on the first content, it can also display an insert control in the first editing interface, and the insert control is used to trigger the insertion of the second content into a position after the position of the first content. After detecting the triggering operation on the insert control, such as a click operation or a press operation on the insert control, the electronic device can insert the second content into a position after the position of the first content.
[0116] For example, see Figure 8 When the electronic device displays the second content A15 in the first editing interface A1, the electronic device may display an insert control A16 and a replace control A17 in the first editing interface A1. If the electronic device detects a trigger operation for the insert control A16, the second content A15 may be inserted into a position after the position of the first content; see Fig. 9 If the electronic device detects a trigger operation for replacing the control A17, the first content may be replaced with the second content A15, and the word count change of the second content A15 relative to the original first content may also be displayed, for example Fig. 9 It shows "Generation completed, word count reduced by 8 words".
[0117] In some embodiments, when the electronic device displays the second content in the first editing interface in response to the rewriting operation on the first content, it can also display a retry control in the first editing interface, and the retry control is used to trigger the rewriting of the first content. Fig. 9 A retry control A18 may also be displayed in the first editing interface A1. After the electronic device detects a trigger operation on the retry control, such as a click operation or a press operation, it may re-execute the above rewriting process on the first content through the large language model, and display the obtained second content in the first editing interface.
[0118] In some embodiments, when the electronic device displays the second content in the first editing interface in response to the rewriting operation on the first content, an adjustment control may be displayed in the first editing interface, and the adjustment control is used to trigger the display of the rewriting control. After the electronic device detects a triggering operation on the adjustment control, such as a click operation, a press operation, etc., the rewriting control for triggering the rewriting of the second content may be displayed in the first editing interface, so that the user can further perform the required rewriting on the obtained second content. For example, please refer to Fig. 9 In the first editing interface A1, an adjustment control A19 may also be displayed; see Fig.10After detecting the trigger operation for the adjustment space A19, a rewrite control A11 for expanding the length, a rewrite control A12 for shortening the length, a rewrite control A20 for triggering a more formal description of the content, a rewrite control A21 for triggering a more colloquial description of the content, etc. can be displayed in the first editing interface A1.
[0119] The method for processing note content provided in the embodiment of the present application can achieve that when editing note content in a note application, the input note content can be rewritten accordingly through a large language model, thereby improving the efficiency of the user when editing the note content; and after the content obtained after the rewriting processing through the large language model is displayed in the editing interface of the note application, the obtained content can be inserted after the original content, or replace the original content according to the user's operation, thereby meeting the user's needs for different editing processing of the original content.
[0120] See also Fig.11 , Fig.11 A flowchart of a method for processing note content provided by another embodiment of the present application is shown. The method for processing note content is applied to the above electronic device. Fig.11 The process shown is described in detail, and the method for processing the note content may specifically include the following steps:
[0121] Step S510: displaying a first editing interface of the note application, wherein the first editing interface includes original content obtained by converting the detected input voice into text.
[0122] In an embodiment of the present application, the text note content in the editing interface of the note application of the electronic device can be input by voice input, that is, the note application supports the user to input the note content by voice input. When the electronic device displays the first editing interface of the note application, it can display the original content obtained by voice-to-text conversion of the detected input voice.
[0123] In some embodiments, when the electronic device displays the first editing interface of the notes application, the first editing interface may include a voice input control, and the electronic device may begin to detect the user's voice input in response to the operation of the voice input control; for the detected input voice, speech-to-text conversion may be performed through automatic speech recognition technology to obtain the above original content.
[0124] For example, see Fig.12 The first editing interface A1 displayed by the electronic device may include a voice input control A22; see Fig.13After detecting the operation on the voice input control A22, the voice input by the user can be collected, and the collected voice can be converted into text synchronously, and the converted original content can be displayed in the first editing interface. In addition, the duration of the voice input, the control A23 for triggering the pause of the voice input, the control A24 for triggering the end of the voice input, etc. can also be displayed in the first editing interface A1; the electronic device can suspend the voice collection after detecting the operation on the control A23; it can also end the voice collection after detecting the operation on the control A24.
[0125] Further, after completing the voice collection, please refer to Fig.14 The electronic device can display the original content obtained after converting the input voice into text in the first editing interface A1. In addition, the audio card A25 can be displayed in the first editing interface A1. After detecting the operation on the audio card A25, the electronic device can play the input voice so that the user can check whether the original content obtained after conversion is accurate according to the played input voice.
[0126] Step S520: In response to the correction operation on the original content, the text note content is displayed in the first editing interface, and the text note content is obtained after the original content is corrected by the large language model.
[0127] In an embodiment of the present application, after displaying a first editing interface including the above original content, the electronic device can detect operations in the first editing interface. After detecting a correction operation on the above original content, it can respond to the correction operation, perform sentence correction on the above original content through a large language model, and display the text note content obtained after the sentence correction in the first editing interface.
[0128] In some embodiments, when the electronic device displays the above original content in the first editing interface, it can also display a correction control for triggering sentence correction of the original content in the first editing interface. After detecting an operation on the correction control, the electronic device can respond to the operation by correcting the sentence of the above original content through the large language model, and display the text note content obtained after the sentence correction in the first editing interface.
[0129] For example, please refer again to Fig.14 The first editing interface A1 displayed by the electronic device includes a correction control A26. After detecting a click operation on the correction control A26, the electronic device can perform sentence correction on the above original content through the large language model, and display the text note content obtained after the sentence correction in the first editing interface A1.
[0130] In a possible implementation, in the process of making sentence corrections to the above original content through a large language model, the content obtained when making sentence corrections to the above original content can be displayed in a streaming screen manner, that is, the obtained content can be gradually displayed in the first editing interface.
[0131] In a possible implementation, the electronic device may also display a pause control in the first editing interface during the process of correcting the original content using the large language model. The pause control is used to trigger the pause of correcting the original content. When the electronic device detects a trigger operation for the pause control, it pauses the correcting of the original content. Fig.15 In the first editing interface A1, a prompt card A13 may be displayed, which includes not only a prompt message "generating" but also a pause control A14 for the user to control the electronic device to pause the sentence correction of the original content.
[0132] In some embodiments, when the electronic device displays the text note content in the first editing interface, the text note content may be displayed below the original content. After displaying the above text note content, the electronic device may detect an operation in the first editing interface. If a replacement operation for the text note content is detected, the above original content displayed in the first editing interface may be replaced with the above text note content in response to the replacement operation; if an insert operation for the text note content is detected, the text note content may be inserted at a position after the position of the original content.
[0133] For example, see Fig.16 When the electronic device displays the text note content in the first editing interface A1, the insert control A16 and the replace control A17 may be displayed in the first editing interface A1. If the electronic device detects a trigger operation for the insert control A16, the text note content may be inserted to a position after the original content; see Fig.17 If the electronic device detects a trigger operation for replacing the control A17, the above original content can be replaced with the above text note content.
[0134] In some embodiments, a voice card may also be displayed in the first editing interface. After detecting a trigger operation for the voice card, the electronic device may respond to the trigger operation and display the original content in the first editing interface so that the user can view and check the text content converted from the input voice.
[0135] For example, please refer again to Fig.17The first editing interface A1 displayed by the electronic device may include a voice card A27, and the voice card A27 includes a text entry control A28. If the electronic device detects an operation on the text entry control A28, the above original content may be displayed in the first editing interface A1, for example, a content card may be displayed, and the above original content may be displayed in the content card.
[0136] Step S530: In response to a rewriting operation on the first content in the text note content, a second content is displayed in the first editing interface, where the second content is obtained by rewriting the first content through a large language model.
[0137] In the embodiment of the present application, step S530 can refer to the contents of the aforementioned embodiment and will not be described again here.
[0138] The method for processing note content provided in the embodiment of the present application can achieve that when editing note content in a note-taking application, the input note content can be rewritten accordingly through a large language model, thereby improving the efficiency of users when editing note content; and the note content can be input through voice input. After the note content is input through voice, the input content can be corrected in sentences, so that the voice-input note content can better meet the needs of users.
[0139] See also Fig.18 , Fig.18 A flowchart of a method for processing note content provided by yet another embodiment of the present application is shown. The method for processing note content is applied to the above electronic device. Fig.18 The process shown is described in detail, and the method for processing the note content may specifically include the following steps:
[0140] Step S610: Displaying a first editing interface of the note application, wherein the first editing interface includes input text note content.
[0141] Step S620: In response to a rewriting operation on the first content in the text note content, a second content is displayed in the first editing interface, where the second content is obtained by rewriting the first content through a large language model.
[0142] In the embodiment of the present application, step S610 and step S620 can refer to the contents of the aforementioned embodiment and will not be described again here.
[0143] Step S630: In response to an operation of adding the web page content in the interface to the note application, the note content corresponding to the web page content is added to the note application, the note content includes summary content corresponding to the web page content and a link corresponding to the web page content, and the summary content is obtained by extracting the text information in the web page content through a large language model.
[0144] In the embodiment of the present application, when the electronic device displays an interface of any web page content, it can detect the operation in the interface, and after detecting the adding operation of adding the web page content to the note application, it can respond to the adding operation, determine the summary content corresponding to the web page content and the link corresponding to the web page content, and generate the note content corresponding to the web page content accordingly, and add the note content corresponding to the web page content to the note application. The summary content is obtained by extracting the text information in the web page content through the large language model.
[0145] In some implementations, after detecting the above adding operation on the web page content, the electronic device may extract text information from the web page content, and then perform summary extraction on the extracted text information through a large language model to obtain the above summary content.
[0146] In some embodiments, after detecting the above adding operation on the web page content, the electronic device can determine whether the summary extraction function is in the turned-on state; if the summary extraction function is in the turned-on state, the text information in the web page content can be summarized and extracted through a large language model to obtain the above summary content, and then the note content corresponding to the web page content is obtained based on the summary content and the link to the web page content, and the note content is added to the note application; if the summary function is not in the turned-on state, a prompt message can be output to prompt the user to turn on the summary extraction function, and after detecting the turn-on operation of turning on the summary extraction function, the summary extraction function is controlled to be in the turned-on state; after the summary extraction function is in the turned-on state, the text information in the web page content can be summarized and extracted through a large language model to obtain the above summary content, and then the note content corresponding to the web page content is obtained based on the summary content and the link to the web page content, and the note content is added to the note application.
[0147] For example, see Fig.19 When the electronic device displays the web page interface B1, after detecting the sharing operation of the web page content in the web page interface B1, the electronic device can display the shareable methods in the web page interface B1, and the shareable methods include the sticky note application, that is, the web page interface B1 can display the application icon B2 corresponding to the sticky note application; please refer to Fig. 20After detecting the selection operation of the application icon B2, if the above summary extraction function is not in the turned-on state, a prompt card B3 may be displayed, wherein the prompt card B3 includes a prompt text for prompting the user to turn on the summary extraction function, and an opening control B4 for turning on the summary extraction function; after detecting the operation for the opening control B4, the summary extraction function may be controlled to be in the turned-on state, and the above summary content may be obtained by extracting the text information in the web page content through the large language model, and then the note content corresponding to the web page content may be obtained according to the summary content and the link of the web page content, and the note content may be added to the note application; please refer to Fig.21 After adding the note content corresponding to the web page content to the note application, a prompt message B5 can be displayed in the web page interface B1 to prompt the user that it has been added to the note application.
[0148] In one possible implementation, see Fig. 22 The electronic device may also display a setting interface C1, which includes a switch control C2 for the summary extraction function; the electronic device may control the summary extraction function to be in an on state or in an off state according to an operation on the switch control C2.
[0149] Step S640: In response to a viewing operation on the note content, a second editing interface of the note application is displayed, wherein the second editing interface includes the summary content and the link.
[0150] In an embodiment of the present application, after the electronic device adds the note content corresponding to the above web page content to the note application, it can also display a second editing interface of the note application when a viewing operation for the above note content is detected. The second editing interface includes summary content corresponding to the above web page content and links corresponding to the web page content. In this way, the above note content can be displayed in the note application according to the user operation, so that the user can view and edit the note content corresponding to the added web page content.
[0151] For example, please refer again to Fig.21 After adding the note content corresponding to the web page content to the note application, the electronic device displays a prompt message B5 in the web page interface B1 to prompt the user that it has been added to the note application, and can simultaneously display a viewing control B6 when displaying the prompt message B5; please refer to Fig.23 After detecting the operation on the viewing control B6, the displayed interface can be switched to the second editing interface D1 of the note application, and the summary content and links corresponding to the above web page content can be displayed in the second editing interface D1.
[0152] In some embodiments, when the electronic device extracts the summary of the text information in the webpage content through the large language model, if the above viewing operation is detected, the electronic device can display the generated summary content in a streaming manner when displaying the above second editing interface, that is, gradually display the generated summary content to the second editing interface. For example, refer to Fig.24 In the process of extracting the summary of the text information, the generated summary content can be displayed in the second editing interface D1. After the summary extraction of the web page content is completed, the generated summary content and the link to the web page content can be saved in the note at the same time, that is, the note content is added to a note of the note application.
[0153] In some embodiments, after displaying the second editing interface, the electronic device may also respond to the rewriting operation on the summary content by rewriting the summary content through the large language model, and display the rewritten content in the second editing interface. The rewriting process for the summary content may refer to the rewriting process for the first content in the above embodiment, and will not be described in detail here.
[0154] It should be noted that there is no limitation on the execution order between the above steps S610 and S620, and the above steps S630 and S640. In addition, the above first editing interface and the second editing interface can also be regarded as the same interface, that is, the summary content in the second editing interface can be regarded as the text note content entered in the first editing interface, and the summary content can be rewritten according to the user operation.
[0155] The method for processing note content provided in the embodiment of the present application can achieve that when editing note content in a note application, the input note content can be rewritten accordingly through a large language model, thereby improving the efficiency of users in editing note content; in addition, based on the user's operation of adding web page content to the note application, a summary of the web page content can be extracted to obtain the summary content, and note content can be formed based on the link between the summary content and the web page content and added to the note application, thereby effectively improving the efficiency of users in creating notes for web page content, and in this way, users can also efficiently view web page content.
[0156] The following is an introduction to the functional framework involved in the method for processing note content provided in the aforementioned embodiment.
[0157] The functional framework includes a cloud control server, a note application, an artificial intelligence (AI) unit, an AI central control platform, a server where a large language model is located, and a system sharing panel. Among them, the method for processing the note content provided in the above embodiment can be used as an implementation function of an AI note assistant. As the carrier of the AI note assistant, the sticky note application provides a functional entry for initiating the AI note assistant, performs pre-data collection, and displays and stores the generated result data, providing users with visual operation functions; the cloud control server provides the basic condition configuration for the operation of the AI note assistant function, such as the minimum and maximum number of words in the text content that can be rewritten, and the third-party application that can generate the note content corresponding to the web page content and add it to the sticky note application; the AI unit is the running host of the AI function terminal plug-in (AIPlugin), which is used for data input and output of the AI note assistant, and the AI central control platform communicates to transmit function data and function calls; the text extraction plug-in (TextExtract Plugin) is used to parse the text and image content in the article link and return it to the caller; the AI central control platform is used to configure the online scope of the AI function and detect content security; the server where the large language model is located is used to provide the online configuration of the AI function, content security verification of the input data, and the operation of the large language model; the system sharing panel is used to share the article link to the sticky note application. The above modules can communicate with each other through the operating system and Hypertext Transfer Protocol (HTTP) to avoid coupling between functional modules.
[0158] The following is an introduction to the architecture of the sticky note application provided in the aforementioned embodiment.
[0159] See also Fig.25The architecture of the note application includes the business call layer, business logic layer, business capability layer, basic library layer, database layer and external dependency SDK layer. Among them, the basic library common layer is used to provide basic capability implementations that are not related to the business; the database data layer is used to store and provide business data; the business capability layer domain layer is used as an encapsulation of independent business capabilities and provides capabilities to the outside through the Application Programming Interface (API). This layer can have independent implementations according to different brands, regions, etc. When the program is packaged, the corresponding implementation is selected according to the actual situation and written into the application package (Android application package, APK). The capabilities of this layer are not dependent on each other; the business feature layer is mainly for the encapsulation of capabilities that are strongly related to the business logic; the business call layer can be regarded as the shell of the application, calling each business feature layer, and finally packaged into a delivered APK file; the external dependency software development kit (Software Development Kit, SDK) layer is mainly dependent on external third-party capabilities.
[0160] The functional modules corresponding to the above-mentioned note content processing method are introduced below.
[0161] See also Fig.26 When implementing the note content processing method in the note application, it is implemented as an independent AI module (Module). AI capability availability judgment tool, AI configuration judgment tool and AI capability class are provided inside the module respectively. The AI capability availability judgment tool is used to query whether the AI capability is available, and the available status can be obtained through its public interface; the AI configuration judgment tool is used to pull the basic condition configuration information configured in the cloud from the cloud control server and store it locally, as well as to obtain the basic condition configuration information stored locally; the AI capability class is used to implement the actual call of the AI function, send the collected data to the server where the large language model is located, and receive the results returned by it, and, according to different AI functions, there are different specific implementation classes, such as Fig.26 As shown in, there is the AI summarization capability class for realizing summary extraction for web page content, the AI smoothing function class for sentence correction, the AI polishing function class for sentence polishing, the AI typesetting function class for typesetting, the AI continuation function class for continuation, the AI more formal function class for making text description more formal, the AI more colloquial function class for making text description more colloquial, the AI expansion function class for expanding the length, the AI abbreviation function class for shortening the length, etc.
[0162] See also Fig. 27, which shows a structural block diagram of a note content processing device 700 provided in an embodiment of the present application. The note content processing device 700 applies the above-mentioned electronic device, and the note content processing device 700 includes: an interface display module 710 and a note rewriting module 720. Among them, the interface display module 710 is used to display a first editing interface of the sticky note application, and the first editing interface includes the input text note content; the note rewriting module 720 is used to respond to the rewriting operation of the first content in the text note content, and display the second content in the first editing interface, and the second content is obtained by rewriting the first content through a large language model.
[0163] In some embodiments, the note rewriting module 720 can be specifically used to: display at least one rewrite control in the first editing interface in response to a selection operation on a first content in the text note content; display a second content in the first editing interface in response to a trigger operation on the rewrite control, wherein the second content is obtained by rewriting the first content corresponding to the rewrite control through a large language model.
[0164] In a possible implementation, the note rewriting module 720 may also be specifically used to display an entry control for calling the rewriting control in the first editing interface in response to a selection operation on the first content in the text note content; and to display at least one rewriting control in the first editing interface in response to a trigger operation on the entry control.
[0165] In a possible implementation, the note rewriting module 720 can also be specifically used for a selection operation of a first content in the text note content, and based on the description score of the first content, at least one rewriting control is displayed in the first editing interface, wherein the at least one rewriting control is determined based on the description score, and the description score is used to characterize the description quality of the first content.
[0166] In some embodiments, the note content processing device 700 may further include a content replacement module. The content replacement module is used to, after the second content is displayed in the first editing interface in response to the rewriting operation on the first content in the text note content, replace the first content displayed in the first editing interface with the second content in response to the first editing operation on the second content.
[0167] In some embodiments, the note content processing device 700 may also include a content insertion module, which may be used to insert the second content into a position after the position of the first content in response to a second editing operation on the second content after the second content is displayed in the first editing interface in response to a rewrite operation on the first content in the text note content.
[0168] In some implementations, the rewriting process includes at least one of sentence correction, sentence polishing, typesetting, expanding the length, shortening the length, and continuing the text.
[0169] In some embodiments, the interface display module 710 can be specifically used to: display a first editing interface of the note application, the first editing interface including original content obtained by converting the detected input voice into text; in response to a correction operation on the original content, display the text note content in the first editing interface, the text note content being obtained by sentence correction of the original content through a large language model.
[0170] In a possible implementation, the first editing interface includes a voice card, and the note content processing device 700 may further include an original content display module. The original content display module is used to display the original content in the first editing interface in response to a trigger operation on the voice card.
[0171] In some embodiments, the note content processing device 700 may further include a content collection module. The content collection module may be used to respond to an operation of adding web page content in the interface to the note application, and add note content corresponding to the web page content to the note application, wherein the note content includes summary content corresponding to the web page content and a link corresponding to the web page content, and the summary content is obtained by extracting the text information in the web page content through a large language model.
[0172] In a possible implementation, the note content processing device 700 may further include a note display module. The note display module is used to display a second editing interface of the note application in response to a viewing operation on the note content, after adding the note content corresponding to the web page content to the note application in response to the collection operation on the web page content in the interface, and the second editing interface includes the summary content and the link.
[0173] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0174] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.
[0175] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0176] In summary, the solution provided by the present application displays the first editing interface of the sticky note application, the first editing interface includes the input text note content, and in response to the rewriting operation on the first content in the text note content, displays the second content in the first editing interface, and the second content is obtained by rewriting the first content through the large language model. As a result, when editing the note content in the sticky note application, the input note content can be rewritten accordingly through the large language model, thereby improving the efficiency of users when editing the note content.
[0177] Please refer to Fig.28 , which shows a structural block diagram of an electronic device provided in an embodiment of the present application. The electronic device 100 may be an electronic device capable of running applications, such as a smart phone, a tablet computer, an e-book, a laptop computer, etc. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more applications are configured to execute the method described in the aforementioned method embodiment.
[0178] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.
[0179] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 100 during use.
[0180] Please refer to Fig.29 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 800 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
[0181] The computer readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 800 includes a non-transitory computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 that performs any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 810 can be compressed, for example, in an appropriate form.
[0182] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for processing note content, characterized in that: The method comprises: Displaying a first editing interface of the sticky note application, wherein the first editing interface includes input text note content; In response to a rewriting operation on the first content in the text note content, a second content is displayed in the first editing interface, and the second content is obtained by rewriting the first content through a large language model.
2. The method according to claim 1, characterized in that The step of displaying the second content in the first editing interface in response to the rewriting operation on the first content in the text note content includes: In response to a selection operation on a first content in the text note content, displaying at least one rewrite control in the first editing interface; In response to a triggering operation on the rewriting control, a second content is displayed in the first editing interface, where the second content is obtained by rewriting the first content corresponding to the rewriting control using a large language model.
3. The method according to claim 2, characterized in that The step of displaying at least one rewriting control in the first editing interface in response to a selection operation on the first content in the text note content includes: In response to a selection operation on a first content in the text note content, displaying an entry control for calling the rewrite control in the first editing interface; In response to a triggering operation on the entry control, at least one rewrite control is displayed in the first editing interface.
4. The method according to claim 2, characterized in that: The step of displaying at least one rewriting control in the first editing interface in response to a selection operation on the first content in the text note content includes: In response to a selection operation on the first content in the text note content, based on the description score of the first content, at least one rewrite control is displayed in the first editing interface, and the at least one rewrite control is determined based on the description score, and the description score is used to characterize the description quality of the first content.
5. The method according to claim 1, characterized in that After displaying the second content in the first editing interface in response to the rewriting operation on the first content in the text note content, the method further includes: In response to a first editing operation on the second content, the first content displayed in the first editing interface is replaced with the second content.
6. The method according to claim 1, characterized in that After displaying the second content in the first editing interface in response to the rewriting operation on the first content in the text note content, the method further includes: In response to a second editing operation on the second content, the second content is inserted into a position after a position where the first content is located.
7. The method according to claim 1, characterized in that The rewriting process includes at least one of sentence correction, sentence polishing, typesetting, expanding the length, shortening the length, and continuing the text.
8. The method according to any one of claims 1 to 7, characterized in that: The displaying of the first editing interface of the sticky note application includes: Displaying a first editing interface of the note application, wherein the first editing interface includes original content obtained by converting the detected input voice into text; In response to a correction operation on the original content, the text note content is displayed in the first editing interface, and the text note content is obtained after sentence correction of the original content is performed using a large language model.
9. The method according to claim 8, characterized in that The first editing interface includes a voice card. After displaying the text note content in the first editing interface in response to the correction operation on the text note content, the method further includes: In response to a triggering operation on the voice card, the original content is displayed in the first editing interface.
10. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: In response to an operation of adding web page content in the interface to the notes application, note content corresponding to the web page content is added to the notes application, and the note content includes summary content corresponding to the web page content and a link corresponding to the web page content. The summary content is obtained by summarizing the text information in the web page content through a large language model.
11. The method according to claim 10, characterized in that After adding the note content corresponding to the web page content to the note application in response to the collection operation on the web page content in the interface, the method further includes: In response to a viewing operation on the note content, a second editing interface of the note application is displayed, wherein the second editing interface includes the summary content and the link.
12. A device for processing note content, characterized in that: The device comprises: an interface display module and a note rewriting module, wherein: The interface display module is used to display a first editing interface of the note application, wherein the first editing interface includes input text note content; The note rewriting module is used to display second content in the first editing interface in response to a rewriting operation on the first content in the text note content, where the second content is obtained by rewriting the first content through a large language model.
13. An electronic device, characterized in that: include: one or more processors; Memory; One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 11.