CN117436406A - Text processing method, device, equipment and storage medium - Google Patents

Text processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN117436406A
CN117436406A CN202311175712.2A CN202311175712A CN117436406A CN 117436406 A CN117436406 A CN 117436406A CN 202311175712 A CN202311175712 A CN 202311175712A CN 117436406 A CN117436406 A CN 117436406A
Authority
CN
China
Prior art keywords
adjustment
content
text
list
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311175712.2A
Other languages
Chinese (zh)
Inventor
高亮军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202311175712.2A priority Critical patent/CN117436406A/en
Publication of CN117436406A publication Critical patent/CN117436406A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Signal Processing (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present disclosure relates to a text processing method, apparatus, device and storage medium, the method displaying a text adjustment list by responding to a text adjustment instruction of content to be transmitted; the acceptability of each adjustment text contained in the text adjustment list on the text expression level is higher than that of the content to be transmitted; and displaying target adjustment content for transmission, wherein the target adjustment content is determined based on one or more adjustment texts selected from the text adjustment list, so that the information transmission efficiency and accuracy are improved, and the waste of information transmission resources is avoided.

Description

Text processing method, device, equipment and storage medium
Technical Field
The disclosure relates to the field of computer technology, and in particular, to a text processing method, a text processing device, a text processing equipment and a storage medium.
Background
In daily life and work, people frequently conduct text communication, such as private chat, work software chat, live chat, comment reply and the like.
However, under the condition of lacking in language expression ability or unstable emotion, the communication object can easily send some misleading or embarrassing language in communication, and the information transmission efficiency and accuracy are reduced.
Disclosure of Invention
The present disclosure provides a text processing method, apparatus, device and storage medium, so as to at least solve at least one technical problem in the related art. The technical scheme of the present disclosure is as follows:
according to a first aspect of an embodiment of the present disclosure, there is provided a text processing method, including:
responding to a text adjustment instruction of the content to be transmitted, and displaying a text adjustment list; the acceptable degree of each adjustment text contained in the text adjustment list on the text expression level is higher than that of the content to be sent;
target trim content for transmission is presented, the target trim content being determined based on one or more trim texts selected from the text trim list.
In an alternative embodiment, the text adjustment instruction is triggered based on a transmission operation of the content to be transmitted.
In an alternative embodiment, the presentation text adjustment list includes:
and switching and displaying the text adjustment list in the area of the content input panel corresponding to the content to be sent.
In an alternative embodiment, the text adjustment list includes adjustment prompt information and at least one adjustment text;
Or the text adjustment list comprises adjustment prompt information, at least one group of adjustment texts and adjustment types corresponding to each group of adjustment texts respectively, wherein each adjustment text in each group of adjustment texts belongs to the adjustment type of the same text expression intention.
In an optional implementation manner, the displaying the text adjustment list in response to the text adjustment instruction of the content to be sent includes:
responding to a text adjustment instruction of the content to be sent, and displaying an expression intention selection page; the expression intent selection page comprises one or more expression intent trigger elements;
responding to triggering operation of a target intention triggering element, and displaying a text adjustment list corresponding to the target intention triggering element; the target intent trigger element is one or more of the one or more expressed intent trigger elements.
In an alternative embodiment, the intent type and/or the number of elements indicated by the one or more expressed intent trigger elements are related to the interactive scene corresponding to the content to be sent.
In an alternative embodiment, the presenting the target adjustment content for transmission includes:
and responding to the selection operation of one or more adjustment texts in the text adjustment list, and displaying the selected adjustment text as the target adjustment content for transmission in an input box corresponding to the content to be transmitted.
In an alternative embodiment, the presenting the target adjustment content for transmission includes:
responding to the selection operation of one or more adjustment texts in the text adjustment list, and displaying first adjustment content in an input box corresponding to the content to be sent, wherein the first adjustment content is determined at least based on the selected adjustment texts;
responding to the editing operation of the first adjustment content, and displaying second adjustment content serving as the target adjustment content for transmission in an input box corresponding to the content to be transmitted; the second adjustment content is adjustment content after editing operation is performed on the first adjustment content.
In an optional implementation manner, the displaying the first adjustment content in the input box corresponding to the content to be sent includes:
fusing the selected adjustment text and target content in the content to be sent;
the fused adjustment content is used as the first adjustment content and is displayed in an input frame corresponding to the content to be sent;
the target content comprises one or more of non-text content in the content to be sent and text content except text fragments needing to be adjusted in the content to be sent.
In an alternative embodiment, after the text adjustment list is displayed, the method further includes:
adding the text adjustment list to a new window in a content input panel corresponding to the content to be sent, wherein the new window is used for displaying or hiding the text adjustment list in the content input panel;
or adding an icon corresponding to the text adjustment list into an input box corresponding to the content to be sent, wherein the icon is used for triggering to show or hide the text adjustment list.
In an alternative embodiment, after the presenting the target adjustment content for transmission, the method further includes:
transmitting the target adjustment content in response to a transmission operation instruction;
displaying the target adjustment content in an interaction area;
the interaction area comprises any one of a comment area, a message area, a single chat area of two members and a group chat area of three or more members.
According to a second aspect of embodiments of the present disclosure, there is provided a text processing apparatus including:
a first presentation module configured to execute a presentation of a text adjustment list in response to a text adjustment instruction for content to be transmitted; the acceptable degree of each adjustment text contained in the text adjustment list on the text expression level is higher than that of the content to be sent;
A second presentation module configured to perform presentation of target adjustment content for transmission; the target trim content is determined based on one or more trim texts selected from the text trim list.
In an alternative embodiment, the text adjustment instruction is triggered based on a transmission operation of the content to be transmitted.
In an alternative embodiment, the first display module is specifically configured to perform:
and switching and displaying the text adjustment list in the area of the content input panel corresponding to the content to be sent.
In an alternative embodiment, the text adjustment list includes adjustment prompt information and at least one adjustment text;
or the text adjustment list comprises adjustment prompt information, at least one group of adjustment texts and adjustment types corresponding to each group of adjustment texts respectively, wherein each adjustment text in each group of adjustment texts belongs to the adjustment type of the same text expression intention.
In an alternative embodiment, the first display module is specifically configured to perform:
responding to a text adjustment instruction of the content to be sent, and displaying an expression intention selection page; the expression intent selection page comprises one or more expression intent trigger elements;
Responding to triggering operation of a target intention triggering element, and displaying a text adjustment list corresponding to the target intention triggering element; the target intent trigger element is one or more of the one or more expressed intent trigger elements.
In an alternative embodiment, the intent type and/or the number of elements indicated by the one or more expressed intent trigger elements are related to the interactive scene corresponding to the content to be sent.
In an alternative embodiment, the second display module is specifically configured to perform:
and responding to the selection operation of one or more adjustment texts in the text adjustment list, and displaying the selected adjustment text as the target adjustment content for transmission in an input box corresponding to the content to be transmitted.
In an alternative embodiment, the first display module specifically includes:
a first display sub-module configured to perform a selection operation in response to one or more adjustment texts in the text adjustment list, and display first adjustment content in an input box corresponding to the content to be transmitted, where the first adjustment content is determined at least based on the selected adjustment text;
a second display sub-module configured to perform an editing operation in response to the first adjustment content, and display a second adjustment content as the target adjustment content for transmission in an input box corresponding to the content to be transmitted; the second adjustment content is adjustment content after editing operation is performed on the first adjustment content.
In an alternative embodiment, the first presentation sub-module is configured to perform:
fusing the selected adjustment text and target content in the content to be sent;
the fused adjustment content is used as the first adjustment content and is displayed in an input frame corresponding to the content to be sent;
the target content comprises one or more of non-text content in the content to be sent and text content except text fragments needing to be adjusted in the content to be sent.
In an alternative embodiment, the apparatus further comprises:
a first adding module configured to perform adding the text adjustment list to a new window in a content input panel corresponding to the content to be transmitted, where the new window is used to display or hide the text adjustment list in the content input panel;
and the second adding module is configured to execute adding the icon corresponding to the text adjustment list into the input box corresponding to the content to be sent, wherein the icon is used for triggering to show or hide the text adjustment list.
In an alternative embodiment, the apparatus further comprises:
a transmission module configured to perform transmission of the target adjustment content in response to a transmission operation instruction;
A third presentation module configured to perform presentation of the target adjustment content in an interactive area;
the interaction area comprises any one of a comment area, a message area, a single chat area of two members and a group chat area of three or more members.
According to a third aspect of embodiments of the present disclosure, there is provided a computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the text processing method as described in any one of the above embodiments.
According to a fourth aspect of embodiments of the present disclosure, there is provided an electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the text processing method according to any of the above embodiments.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the text processing method provided in any of the above-described implementations.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
The embodiment of the disclosure displays a text adjustment list by responding to a text adjustment instruction of the content to be transmitted; the acceptability of each adjustment text contained in the text adjustment list on the text expression level is higher than that of the content to be transmitted; target trim content for transmission is presented, the target trim content being determined based on one or more trim texts selected from a text trim list. Therefore, the initial content to be sent is subjected to text adjustment, so that the target adjustment content for sending is determined based on one or more adjustment texts with higher acceptability selected from the text adjustment list, the problem that communication objects send misunderstanding or embarrassing words very easily in communication is avoided by selecting a better expression mode, communication efficiency is improved, information transmission efficiency and accuracy are improved, and waste of information transmission resources is avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this disclosure, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
Fig. 1 is an architecture diagram illustrating a system for applying text processing methods according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating a text processing method according to an exemplary embodiment.
FIG. 3 is an interface diagram illustrating a text processing process according to an exemplary embodiment.
FIG. 4 is an interface diagram illustrating a text adjustment list according to an exemplary embodiment.
FIG. 5 is an interface diagram illustrating generation of targeted adjustment content according to an example embodiment.
FIG. 6 is an interface diagram illustrating another text processing process according to an exemplary embodiment.
Fig. 7 is a flowchart illustrating another text processing method according to an exemplary embodiment.
Fig. 8 is an interface diagram illustrating an application scenario of a text processing method according to an exemplary embodiment.
Fig. 9 is a block diagram of a text processing device, according to an exemplary embodiment.
Fig. 10 is a block diagram of an electronic device, according to an example embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
Fig. 1 is an architecture diagram of a system for applying a text processing method, which may include a terminal 10, a server 20, and a terminal 30, according to an exemplary embodiment, referring to fig. 1.
The terminals 10 and 30 may be, but are not limited to, one or more of a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart wearable device, a digital assistant, an augmented reality device, a virtual reality device, or an application running in a physical device. Applications with intelligent communication assistant functions, such as clients, applets, etc., are installed on the terminals 10 and 30, and an operating system supporting the running of the applications is also installed.
The server 20 may be, but not limited to, a stand-alone server, a server cluster or a distributed system formed by a plurality of physical servers, or one or more cloud servers providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, basic cloud computing services such as big data and artificial intelligence platforms, and the like. The terminals 10, 30 and the server 20 may be directly or indirectly connected through wired or wireless communication, and the embodiments of the present disclosure are not limited herein. Through communication among the terminal 10, the terminal 30, and the server 20, the server 20 may provide background support for text processing for the terminal 10 and the terminal 20 to implement a text processing procedure.
The text processing method provided by the embodiment of the disclosure may be executed by a text processing device, and the text processing device may be integrated in electronic equipment such as a terminal in a hardware form or a software form, may be executed by the terminal alone, or may be executed by the terminal and a server cooperatively.
It should be noted that, when the following embodiments of the present disclosure are applied to specific products or technologies, user license authorization or consent needs to be obtained, and the collection, use and processing of the relevant data need to comply with relevant laws and regulations and standards of relevant countries and regions.
Fig. 2 is a flowchart of a text processing method according to an exemplary embodiment, and as shown in fig. 2, the text processing method may be applied to an electronic device, and the electronic device is taken as an example of a terminal in the above implementation environment schematic diagram, and includes the following steps.
In step S201, a text adjustment list is presented in response to a text adjustment instruction of the content to be transmitted; each adjustment text included in the text adjustment list is more acceptable at the text expression level than the content to be transmitted.
Wherein the content to be transmitted may be input by the first object and an initial content for transmission is required. The input mode includes, but is not limited to, one or more of keyboard input, touch screen input, voice input, gesture input. The content to be transmitted may include, but is not limited to, one or more combinations of words, symbols, expressions, pictures, etc. The picture can be selected or uploaded by the input party, or can be currently quoted or replied by the input party.
The text adjustment instruction is an instruction for adjusting the content to be transmitted in the text dimension. The adjustment here differs from conventional text correction or text complement, but is at the text expression level, for example, adjustment of text expression for different intentions, adjustment of text expression for different emotional trends, adjustment of meaning of text expression, and the like.
The text adjustment list is presented based on the text adjustment instructions and includes at least one or more adjustment texts. Generally, the text adjustment list includes a plurality of adjustment texts. Each adjustment text included in the text adjustment list is more acceptable at the text expression level than the content to be transmitted. The high acceptability refers to the high or low expression level of the expression that is more easily accepted by the browsed object. The higher the acceptable degree, the better the expression mode representing the corresponding text content, such as more accurate expression, more graceful expression, more definite expression intention, etc., so as to avoid inaccurate communication or unnecessary misunderstanding.
The text adjustment list is generated based on the content to be transmitted and the associated information corresponding to the content to be transmitted. That is, each adjustment text in the text adjustment list is related to both the content to be transmitted and the associated information corresponding to the content to be transmitted. The associated information corresponding to the content to be transmitted may be information related to the text to be transmitted, and in different scenes, the associated information corresponding to the content to be transmitted is different. For example, in a chat scenario, the associated information may be one or more of contextual content in the current chat interface, participation roles of chat members, and the like. Chat scenarios may include, but are not limited to, private letter chat, work software chat, live chat, and the like, among others. For another example, in a comment scenario, the associated information may be one or more of content, description information, title, object information of a resource posting object, and the like of the media resource being commented on.
Alternatively, the text adjustment list may be generated by a large language model based on the content to be transmitted and associated information corresponding to the content to be transmitted. The large language model may perform text adjustment on the content to be transmitted based on the content to be transmitted and a context analysis result of associated information corresponding to the content to be transmitted, to generate a content adjustment list including adjustment contents. The large language model can be obtained by performing context learning on the pre-training language model, or can be obtained by performing fine tuning training on the pre-training language model. Illustratively, the pre-training language model may include, but is not limited to, a pre-training model (Generative Pre Training, GPT), a pre-training language model (Pre trained Language Model, PLM), a large scale pre-training language model (LargeLanguage Model, LLM), and the like. Therefore, through the large language model, a targeted adjustment text list can be generated aiming at different communication scenes, the coping requirement of complex and changeable communication scenes can be met, the personalized requirement of a user object can be flexibly met, the emotion tendency and intention of the user can be better met, and the accuracy and diversity of adjustment text are improved.
Alternatively, the text adjustment list may be generated by predicting, through a preset adjustment policy and a text adjustment template, the content to be transmitted and associated information corresponding to the content to be transmitted. The adjustment strategy is used for representing adjustment rules of the text, and the text adjustment template is used for representing a text template required by text adjustment.
Specifically, as shown in fig. 3, an adjustment trigger control related to the text adjustment instruction may be presented in the application interface of the content 330 to be sent, where the adjustment trigger control is used to trigger generation of the text adjustment instruction. The presentation location of the adjustment trigger control illustrated in fig. 3 is by way of example only, and the adjustment trigger control may be presented elsewhere in the current interface. After the content to be sent 330 is input, the content input party may actively trigger the adjustment triggering control to generate a text adjustment instruction of the content to be sent in a case that adjustment needs to be performed on the content to be sent. Next, in response to the text adjustment instruction, a text adjustment list 340 is presented for the content input party to select one or more adjustment texts in the text adjustment list, such as adjustment text 1, adjustment text 2, adjustment text 3, adjustment text 4, shown in fig. 3.
In an alternative embodiment, the text adjustment instruction is triggered based on a transmission operation of the content to be transmitted. Accordingly, the above-mentioned presentation text adjustment list may be executed in response to a trigger operation for the content to be transmitted, that is, in response to a trigger operation for the content to be transmitted, the presentation text adjustment list.
Optionally, before presenting the text adjustment list in response to the text adjustment instruction of the content to be transmitted, the method further comprises:
and responding to the sending operation of the content to be sent, and triggering to generate a text adjustment instruction.
Specifically, the content input side may perform a transmission operation for the content to be transmitted, such as clicking a transmission button, performing a gesture of transmission, or the like, after inputting the content to be transmitted. And the terminal responds to the sending operation and triggers the generation of a text adjustment instruction. Next, in response to the text adjustment instruction, a text adjustment list is presented for the content input party to select one or more adjustment texts in the text adjustment list. The text adjustment instruction is triggered based on a send operation of the text to be sent, unlike the generation Cheng Wenben adjustment instruction by actively triggering the adjustment control described above, where the text adjustment instruction is passively triggered if the send operation is performed on the text to be sent.
According to the embodiment, the sending operation and the text adjustment are bound, so that a non-perception text adjustment mode is provided, the content input party is prevented from neglecting the active triggering operation step, the content input party is passively reminded to carry out corresponding text adjustment, the text adjustment function is enhanced, a better expression mode is selected through one-key mode, and the information transmission efficiency is further improved.
In an alternative embodiment, the text adjustment list includes adjustment prompts and at least one adjustment text.
The adjustment prompt information is used for representing the proposed use of each provided adjustment text. The adjustment prompt information may include at least one form of prompt content such as text, pictures, animation, video, special effects, and the like. Illustratively, the adjustment hint information may be "you can also say: the text prompt content of the following expression mode can be selected by 'you', and the text prompt content can also be the picture prompt content of 'try to say' so as to prompt the content input party to select the adjustment text in the displayed text adjustment list. The adjustment prompt information can be displayed before each adjustment text as the title of the text adjustment list, or can be displayed on the text adjustment list in a prompt message mode and then hidden. Therefore, by adding the adjustment prompt information in the text adjustment list, the user object is guided to execute corresponding operation, the display effectiveness and the interaction of the text adjustment list are improved, and the information transmission efficiency is further improved.
In another alternative embodiment, the text adjustment list includes adjustment prompt information, at least one set of adjustment texts, and adjustment types corresponding to each set of adjustment texts, where each adjustment text in each set of adjustment texts belongs to an adjustment type of the same text expression intent.
The adjustment prompt information is used for representing the proposed use of each provided adjustment text. The adjustment prompt information may include at least one form of prompt content such as text, pictures, animation, video, special effects, and the like. Illustratively, as shown in fig. 4, the adjustment prompt may be "you can also say: "text prompt 441. In another example, the adjustment prompt may also be a "try to say" picture prompt. The prompt message is adjusted to prompt the content input party to select the adjustment text in the displayed text adjustment list. The adjustment prompt information may be displayed as a title of the text adjustment list 440 before each adjustment text, or may be displayed on the text adjustment list by way of a prompt message and then hidden.
The adjustment type is used for representing the suggestion type corresponding to each group of adjustment text. The adjustment type can also be displayed in at least one form of words, pictures, animation, video, special effects and the like. As further shown in fig. 4, the adjustment type may be an adjustment type a, an adjustment type b, etc., and accordingly, the adjustment type a corresponds to one set of adjustment texts 442 of { adjustment text 1, adjustment text 2}, the adjustment type b corresponds to another set of adjustment texts 443 of { adjustment text 3, adjustment text 4 }. The adjustment type may be in the form of words such as "worry and anger", "intense responsibility", or in the form of an expression picture corresponding to "worry and anger" or an expression picture of "intense responsibility", for example. The text adjustment list may include one or more adjustment types, each of which may be followed by a corresponding set of adjustment text, the number of adjustment text in each set of adjustment text may be one or more, such as 2, 3, etc. Each adjustment text in each set of adjustment texts belongs to the adjustment type of the same text expression intent, for example, for the adjustment type of "worry and anger", it corresponds to "this too is too unpredictable a bar, how to allow such danger to occur", "simply let the person feel angry", so that not only the danger, but also the adjustment text is unchanged for other people, etc.
It should be noted that, multiple sets of adjustment texts may be displayed in one window, and if the currently displayed window is insufficient to display all the sets of adjustment texts, the adjustment texts may be displayed in the form of a drop-down list, a sliding button, multiple sub-windows, and the like.
According to the embodiment, the adjustment prompt information, the adjustment texts displayed in groups and the corresponding adjustment types are added in the text adjustment list, so that the display accuracy and the effectiveness of the adjustment texts are improved, the selection time length for the adjustment texts is saved, and the information transmission efficiency is improved.
In an optional embodiment, the displaying the text adjustment list includes:
and switching and displaying a text adjustment list in the area of the content input panel corresponding to the content to be transmitted.
The content input panel is an operation panel for inputting content to be transmitted, and comprises input keyboard, symbols, expressions and other contents.
Specifically, as shown in fig. 3, in the case of obtaining a text adjustment list in response to a text adjustment instruction of a content to be transmitted, the text adjustment list 340 may be displayed in a region where the content input panel 320 corresponding to the content 330 to be transmitted is located, so as to replace the content displayed by the content input panel 330. Therefore, the text adjustment list is displayed in the area where the content input panel is located in a switching mode, a new display area is not required to be established again, shielding of effective information of a current interface is avoided, and the utilization rate and the display effect of the page space are improved.
Alternatively, the text adjustment list may be displayed on the interactive page corresponding to the content to be sent in a pop-up manner, or the text adjustment list may be displayed on a new page in a skip manner.
In an optional embodiment, the displaying the text adjustment list in response to the text adjustment instruction of the content to be sent includes:
responding to a text adjustment instruction of the content to be sent, and displaying an expression intention selection page; the expressed intent selection page includes one or more expressed intent trigger elements;
responding to the triggering operation of the target intention triggering element, and displaying a text adjustment list corresponding to the target intention triggering element; the target intent trigger element is one or more of one or more expressed intent trigger elements.
Wherein the expressed intent trigger element is used to characterize the types of suggestions that are also covered in the generated text adjustment list. Different expressions intend to trigger different suggestion types corresponding to elements. The suggestion type may represent an intent or emotional tendency of the user object.
Alternatively, the express intent trigger element may be presented in the form of a tab, control, or the like. The individual intent-to-express trigger elements presented in the intent-to-express selection page may include, but are not limited to, a matrix arrangement, side-by-side, etc.
Specifically, as shown in fig. 6, the terminal presents an expression intent selection page 620 in a target area in response to a text adjustment instruction of the content 610 to be transmitted; the expressed intent selection page 620 includes one or more expressed intent trigger elements 621. In response to a triggering operation for expressing one or more intention triggering elements 621 in the intention selection page 620, a selected target intention triggering element is determined, a text adjustment list corresponding to the target intention triggering element is screened out, and only the text adjustment column 630 corresponding to the target intention triggering element is displayed in the target area without displaying the adjustment text corresponding to other expression intention triggering elements. Optionally, the target area may be an area where an input panel of the content to be sent is located, or may be a popup area or an area where a new adjustment page is located. The number of the expression intention trigger elements in the target intention trigger elements is a plurality of, and the intention types corresponding to the expression intention trigger elements can be the same or different.
According to the embodiment, the expression intention selection page is displayed for the user object to select one or more expression intention trigger elements, so that the target intention trigger elements are obtained, and the text adjustment list meeting different situations or different requirements is displayed for selection according to the target intention trigger elements, so that the information transmission efficiency and accuracy are greatly improved, and the accuracy of information communication through texts is improved.
In an alternative embodiment, the intent type and/or the number of elements indicated by the one or more expressed intent trigger elements are related to the interactive scenario corresponding to the content to be sent.
Wherein the intent type may correspond to a suggestion type of the text adjustment category. The interactive scene refers to a scene constructed by a sender and a receiver of the content to be sent, such as a work chat scene, a living chat scene, a comment scene, a reply scene, a mail scene, and the like.
The one or more expressed intent trigger elements may indicate different types of intent and/or numbers of elements for different interaction scenarios.
Alternatively, the intent types may be multi-level types, as further illustrated in FIG. 6, including at least a first level type (e.g., first level type 1, first level type 2, first level type 3, etc.) and a second level type (e.g., second level type 1-1, second level type 1-2, second level type 2-1, second level type 2-2, second level type 3-1, second level type 3-2, etc.), where the first level type represents a subject direction in which the intent is expressed, e.g., reject type, collaboration type, negotiation type, etc. The second level type represents a form of expression intent to achieve the subject direction, such as reflecting rejection intent by a graceful but firm manner, reflecting intention of collaboration by expression of a dishonest expression manner, and so forth. The number of elements may refer to the number of hierarchical types indicated in the intent type, such as the number of first level types, the number of second level types, and so forth. Illustratively, taking a working chat scenario as an example, the first level type and the second level type may be as shown in the following table:
The text corresponding to each intention type in the table is a triggerable tag (tab), and different tags are clicked according to different situations of the interaction scene or different requirements to check the reply modes meeting different requirements.
As an example, if the user object clicks on the "graceful but firm" tab below "reject class", the following may be displayed:
"I understand your mind, but I are currently not well accepted. "
"this idea is interesting, but i want to consider other choices temporarily. "
For another example, if the user object clicks on the "expression thank you" and reject "this tab below" reject class ", the following may be displayed:
"very thank you for invitations, but i have another arrangement …. "
"i really feel your help but i cannot accept this proposal because of …. "
For another example, if the user object clicks on the tab "transfer responsibility" below "reject class", the following may be displayed:
"I feel that this decision should be made by a professional team. "
"I suggest you and related departments discuss, they get a better understanding of this problem. "
As another example, if the user object clicks on the tab "negotiation trade-off" below "negotiation class", the following may be displayed:
"I can consider partially accepting your advice but also need you to understand my concern. "
"I might be more willing to support if we can make changes in some way. "
For another example, if the user clicks on the tab "worry about" below "negotiation class", the following may be displayed:
"I worry about doing so would create some potential problems. "
"we need more time to evaluate the risk and possible consequences. "
For another example, if the user clicks on the "reservation decision right" tab below "negotiation class", the following may be displayed:
"I need more information to make the decision, which is currently uncertain. "
"I consider, but the final decision may depend on other factors. "
According to the embodiment, the intention type and/or the element number indicated by one or more expression intention trigger elements are related to the interaction scene corresponding to the content to be sent, so that under various interaction scenes, the provided intention type and element number of the expression intention trigger elements are different, a targeted expression mode can be provided for the user object, the expression requirement of the user object under different scenes is met, the communication confidence and success rate are enhanced, and the accuracy and efficiency of information communication are further improved.
In step S203, target adjustment content for transmission is presented; the target trim content is determined based on one or more trim texts selected from the text trim list.
The target adjustment content is content after text adjustment is carried out on the content to be transmitted through the text adjustment list. The target adjustment content is determined based on one or more adjustment texts selected from the text adjustment list, and the target adjustment content may be the selected one or more adjustment texts or may be content obtained by adjusting the selected one or more adjustment texts again.
Optionally, the target adjustment content is different from the presentation location of the text adjustment list. For example, the text adjustment list may be displayed in a first area in the interactive interface corresponding to the content to be sent, and the target adjustment content may be displayed in a second area in the interactive interface, where the first area and the second area may be any different area positions in the interactive interface. Also for example, the text adjustment list may be displayed on a trigger page adjusted from an interactive interface corresponding to the content to be transmitted, and the target adjustment content may be displayed on the interactive interface.
In an alternative embodiment, presenting the targeted adjustment content for transmission includes:
and responding to the selection operation of one or more adjustment texts in the text adjustment list, and displaying the selected adjustment text as target adjustment content for transmission in an input box corresponding to the content to be transmitted.
Specifically, continuing to refer to fig. 3, in response to a selection operation of one or more adjustment texts in the text adjustment list 340, the selected adjustment text is obtained. If the selected adjustment text is one, the selected adjustment text may be directly used as the target adjustment content 350 for transmission and displayed in the input box 310 corresponding to the content to be transmitted. If the number of the adjustment texts is multiple, the multiple adjustment texts can be combined, and the combined adjustment texts are used as target adjustment contents for transmission and displayed in an input box corresponding to the contents to be transmitted. Therefore, the selected adjustment text is used as the target adjustment content to be displayed in the input box of the content to be transmitted in a replacement mode, and additional input operation and deletion operation of the user object on the selected adjustment text and the content to be transmitted are not needed, so that information processing efficiency is improved.
In another alternative embodiment, presenting the targeted adjustment content for transmission includes:
responding to the selection operation of one or more adjustment texts in the text adjustment list, displaying first adjustment content in an input box corresponding to the content to be transmitted, wherein the first adjustment content is determined at least based on the selected adjustment texts;
responding to the editing operation of the first adjustment content, and displaying the second adjustment content serving as target adjustment content for transmission in an input box corresponding to the content to be transmitted; the second adjustment content is adjustment content after editing operation is performed on the first adjustment content.
Specifically, as shown in fig. 5, in response to a selection operation of one or more adjustment texts in the text adjustment list, acquiring the selected adjustment text; and displaying first adjustment content 510 in an input box corresponding to the content to be transmitted, wherein the first adjustment content is determined based on the selected adjustment text. The first adjustment content may be a selected adjustment text or a combination of a selected plurality of adjustment texts. Acquiring second adjustment content when the editing operation of the first adjustment content is detected; the editing operation may include, but is not limited to, literal editing of the first adjustment content, adding expressions, adding @ objects, adding reference content, and so forth. Next, the second adjustment content is displayed in an input box corresponding to the content to be transmitted as the target adjustment content 520 for transmission. Therefore, the first adjustment content displayed in the input box is edited, so that the selected adjustment text can be adjusted again according to actual requirements, the target adjustment content which is personalized and meets the expression requirements is generated, and the accuracy of information transmission is further improved.
In an optional embodiment, displaying the first adjustment content in the input box corresponding to the content to be sent includes:
fusing the selected adjustment text and target content in the content to be sent;
and displaying the fused adjustment content serving as first adjustment content in an input frame corresponding to the content to be sent.
The target content comprises one or more of non-text content in the content to be sent and text content in the content to be sent except for text fragments needing to be adjusted.
Optionally, in the case (a), if the content to be sent includes, in addition to text, non-text content such as expression, @ object, content (e.g. picture, message of chat interface, etc.) cited or replied to, the selected adjustment text may be replaced by text in the content to be sent, and the selected adjustment text may be fused with the non-text content other than text in the content to be sent, to obtain the fused adjustment text; and then taking the fused adjustment text as first adjustment content, and displaying the first adjustment content in an input box corresponding to the content to be sent. Therefore, only the text in the content to be transmitted is adjusted, the information of the non-text content in the content to be transmitted is kept unchanged, the subsequent repeated editing operation on the adjusted text is reduced, the text processing time is shortened, and the information transmission efficiency is further improved.
In the other case (b), if the content to be sent includes more text content, one or more text segments to be adjusted in the content to be sent can be replaced by the selected adjustment text, and the selected adjustment text is fused with other text content in the content to be sent to obtain a fused adjustment text; and then taking the fused adjustment text as first adjustment content, and displaying the first adjustment content in an input box corresponding to the content to be sent. Therefore, only partial text fragments in the content to be transmitted are adjusted, other text contents in the content to be transmitted are kept unchanged, the text processing time is shortened, and the information transmission efficiency is further improved.
Optionally, in the case that the number of text segments to be adjusted is multiple, different text segments may correspond to different text adjustment lists, and the corresponding text adjustment list may be displayed by triggering a corresponding certain text segment on the content to be sent. In addition, if a certain adjustment text is selected in the text adjustment list, the corresponding text segment can be replaced by the adjustment text, and if no adjustment text is selected in the text adjustment list, the original content corresponding to the text segment can be kept unchanged.
The above case (a) and case (b) may be executed separately or simultaneously.
In an alternative embodiment, after the text adjustment list is displayed, the method further includes:
and adding the text adjustment list into a new window in the content input panel corresponding to the content to be transmitted, wherein the new window is used for displaying or hiding the text adjustment list in the content input panel.
Specifically, after the text adjustment list is displayed, the text adjustment list may be added to a new window in the content input panel corresponding to the content to be transmitted, that is, the window corresponding to the text adjustment list is used as an embedded window in the content input panel, similar to a keyboard input window, an expression input window and a voice input window in the content input panel. The text adjustment list corresponding to the new window is displayed by triggering the new window in the content input panel, and the text adjustment list corresponding to the new window is hidden by triggering other windows in the content input panel. Alternatively, the number of newly created windows may match the number of text adjustment lists. Therefore, the text adjustment list is added into the new window in the content input panel, so that when the text needs to be selected or reselected and adjusted, the corresponding text adjustment list can be displayed quickly by triggering the new window, the corresponding text adjustment list is not required to be generated by re-triggering, the calculated amount of the text processing process is reduced, the operation convenience and the text processing efficiency are improved, and the information transmission efficiency and the information transmission accuracy are further improved.
In another alternative embodiment, an icon corresponding to the text adjustment list is added to an input box corresponding to the content to be sent, and the icon is used for triggering to show or hide the text adjustment list.
Specifically, after the text adjustment list is displayed, an icon corresponding to the text adjustment list may be added to an input box corresponding to the content to be sent, for example, to a lower right corner position in the input box 310 in fig. 3, that is, a position where an icon of @, a picture and an expression is located, and by triggering the icon, the text adjustment list may be displayed or hidden. Therefore, the icon corresponding to the text adjustment list is added into the input box corresponding to the content to be sent, so that when the adjustment text is required to be selected or reselected, the corresponding text adjustment list can be displayed quickly by triggering the icon, the corresponding text adjustment list is not required to be generated by triggering again, the calculated amount of the text processing process is reduced, the operation convenience and the text processing efficiency are improved, and the information transmission efficiency and the information transmission accuracy are further improved.
In an alternative embodiment, as shown in fig. 7, after the target adjustment content for transmission is displayed, the method further includes:
in step S701, in response to a transmission operation instruction, a target adjustment content is transmitted;
In step S703, target adjustment content is displayed in the interactive area.
The interaction area comprises any one of a comment area, a message area, a single chat area of two members and a group chat area of three or more members.
Optionally, the terminal responds to the sending operation instruction, sends the target adjustment content to be sent, and displays the target adjustment content in the interaction area. The send operation instruction may be generated based on a trigger of clicking a send button, sending a gesture, sending voice, etc. in the interface. Therefore, the target adjustment content can be used for replacing the content to be transmitted for transmission by triggering the transmission operation aiming at the target adjustment content, and the target adjustment content is adaptively displayed in the interaction areas of different interaction scenes, so that misunderstanding or improper content caused by transmission is avoided, and the information transmission efficiency and the expression accuracy are improved.
In an optional embodiment, the revocation control and/or the update control are displayed in a window corresponding to the text adjustment list.
Wherein the revocation control is used to revoke the text adjustment operation. The target adjustment content displayed can be canceled by triggering the cancel control, the original content to be sent is returned to be displayed, the display content before the adjustment operation is conveniently returned quickly, the user object is prevented from inputting the content again, and the operation convenience and the text processing efficiency are improved.
The update control is used for updating the adjustment text in the currently displayed content adjustment list. When the user object is not satisfied with the currently displayed adjustment text, a new adjustment text can be acquired by triggering an update revocation control to update the text adjustment list, so that the diversity of the text adjustment list display is improved, the personalized expression requirement is met, and the information transmission efficiency and accuracy are further improved.
The embodiment shows a text adjustment list by responding to a text adjustment instruction of the content to be sent; the acceptability of each adjustment text contained in the text adjustment list on the text expression level is higher than that of the content to be transmitted; target trim content for transmission is presented, the target trim content being determined based on one or more trim texts selected from a text trim list. Therefore, the initial content to be sent is subjected to text adjustment, so that the target adjustment content for sending is determined based on one or more adjustment texts with higher acceptability selected from the text adjustment list, the problem that communication objects send misunderstanding or embarrassing words very easily in communication is avoided by selecting a better expression mode, communication efficiency is improved, information transmission efficiency and accuracy are improved, and waste of information transmission resources is avoided. In addition, the selection right of the user object to the adjustment text is reserved, so that the user object can express the user object better under different scenes.
For ease of understanding, the text processing method of the present disclosure is described below by taking a large language model-based intelligent communication assistant as an example.
First, the workflow of the intelligent communication assistant simply introduced includes: 1) The user enters text: the user object inputs text in the scenes of private letter chat, working software chat, live chat, comment reply and the like. 2) Contextual analysis: the intelligent communication assistant performs context analysis on the text input by the user, including context content, emotion tendencies and the like, under the condition of determining the sending operation for the input text. 3) Large language model interactions: and inputting the analyzed text into the large language model by calling an interface of the large language model to request the large language model to provide a better expression mode. 4) Suggestion generation: the large language model generates graceful, firm, reasonable and other expression suggestions, and the text adjustment list is obtained by reasonably combining the context. 5) Advice presentation: the generated text adjustment list is presented to the user object, who may select one or more adjustment texts from the given text adjustment list as the appropriate expression. 6) User object selection: and the user object selects one or more adjustment texts from the text adjustment list according to actual needs to obtain target adjustment content, and the target adjustment content is used as communication content finally used for transmission.
Optionally, the system corresponding to the intelligent communication assistant may be further optimized: a) Context memory: the system can better understand the current context from the previous dialog history, thereby generating more accurate adjustment text. b) Personalized customization: based on the user's preferences and expression habits, the system may learn to generate suggestions that more closely match the personal style. c) Real-time learning: the system can learn in real time according to the selection and feedback of the user, and the text adjustment quality of the system is improved.
Secondly, a few application scenarios of the application intelligent communication assistant are listed, as follows:
scene 1: comment scene
As shown in fig. 8, the content presented by the small a browses a media resource: a child keeps off the elevator door and the like all the time, and the door is pulled off forcefully after the door is closed, so that the elevator fails.
For this piece of media assets, the comment content entered by the small a is "what the parents get to, which is more dangerous" (as shown in (a) of fig. 8). Clicking the send button in small a triggers the intelligent communication assistant to display a content adjustment list including adjustment prompt information of "you can also say so" and display content expressing intent different from "anger", "strong blame", etc. (as shown in (b) of fig. 8). The first show in "worry and anger" in small A was chosen "child is standing in front of the elevator door, so too is counseling the bar-! How can parents allow such dangerous behavior to exist? ", the first piece of presentation content of the selection is presented in the input box instead (as shown in fig. 8 (c)). Then, the first selected presentation content can be sent by clicking the send button by small A. Therefore, the comment content is adjusted through the intelligent communication assistant, and comments are published by a more proper method to express the attitude of the user, so that the information transmission efficiency and accuracy are improved.
It should be noted that, in the following scenario 2 and scenario 3, similar to scenario 1, when content is transmitted, a text adjustment list is displayed, and a user object selects one or more adjustment texts to obtain a target adjustment text, and then the target adjustment text is transmitted.
Scene 2: scene of communication through communication software inside company
Original dialogue content:
small B: what is we need some data support in the project, can help provide?
Small C: with sorry, our team is currently resource intense and temporarily unable to assist your.
Small B: this data is critical to our project progress, can we want to deploy?
Small C: with sorry, I have passed through the team groove, which is not the case.
Small B: good bars, if possible later, can consider supporting us?
Small C: we will evaluate according to the actual situation but it does not appear to be practical at present.
If after the smart communication assistant function is used by the small B, the dialogue content with the small C is adjusted as follows:
small B: in the meanwhile, we need some data support in the project, i know that your is also busy, but can consider if it is possible to provide help?
Small C: very thank you for understanding that our team is currently relatively resource intensive and difficult to make additional support.
Small B: i understand your situation and if possible, we would like to coordinate positively to better coordinate with the completed project.
Small C: your understanding that we are very motivated, we will evaluate according to the actual situation, and there are some difficulties at present.
Small B: good, thank you for your patience, if there is an opportunity in the future, can you discuss your worry anymore?
Small C: of course, we will continue to pay attention to the project progress, if possible, with assistance as much as possible.
In the scene, the intelligent communication assistant function is embedded into communication software in the company, so that communication expression can be improved, a well-consistent communication atmosphere is constructed, a foundation is built for next internal cooperation, and information transmission efficiency and accuracy are improved.
Scene 3: scene of communication with customer
Original dialogue content:
small D: he, xiao Li, i have problems. What is the function?
Small E: is a block of code with which you can do something.
Small D: is the ability to specify a point?
Small E: the couple is that you say you want to do a calculation, and add two numbers, we use a function.
Small D: i are not well aware of how to use the function.
Small E: i say that you want to do something to write as a function and then call. You see the document prayer you see.
Small D: the document is seen little, or not known to write.
Small E: the writing is writing, the function name, the parameter and the return value are not understood to be hundred degrees, and I do not know how to say.
It can be seen here that, the small E knows what the function is, but the small E uses text expression, so that other people can better understand the function, after using the intelligent communication assistant, the small E can analyze the core information to be expressed according to the context, the intelligent communication assistant understands and expands, and rewrites the core information into an expression mode which is easily accepted by other people, so that the small E uses the updated dialogue content after using the intelligent communication assistant:
small D: he, xiao Li, i have problems. What is the function?
Small E: hi, there is no problem. The function is just a small toolbox you write, you can put the operation that needs to be used repeatedly in, and then use a name to represent the operation. For example, you have a cooking operation, which can be put into a tool box of "cook" and then taken out directly when you want to cook.
Small D: and (2) is understood. What is there inside this toolbox?
Small E: good questions-! There may be many different tools within the tool box, each of which may do different things. For example, you can put a tool called "add" inside the toolbox, which can add two numbers; a tool called "multiplication" can also be put, which can multiply two numbers, and so on.
Small D: as such, i understand. How does i use these tools?
Small E: simply, when you need to use a certain tool in the tool box, you only need to tell the name of the tool in the tool box, then give the tool box what needs to be operated (such as numbers), the tool box will help you perform this operation, and then give the result to you.
Small D: to which I know-! Thank you for your explanation.
Small E: no passenger is in possession of the air, and there are problems with the air.
In the scene, through embedding the intelligent communication assistant function into external communication software, the intelligent communication assistant understands and expands, rewrites into an expression mode which is easily accepted by other people, provides more proper reply advice for users, and improves information transmission efficiency and accuracy.
Fig. 9 is a block diagram of a text processing device, according to an exemplary embodiment. Referring to fig. 9, the apparatus may be applied to a client, including:
a first presentation module 910 configured to execute a presentation of a text adjustment list in response to a text adjustment instruction for content to be transmitted; the acceptable degree of each adjustment text contained in the text adjustment list on the text expression level is higher than that of the content to be sent;
a second presentation module 920 configured to perform presentation of target adjustment content for transmission; the target trim content is determined based on one or more trim texts selected from the text trim list.
In an alternative embodiment, the text adjustment instruction is triggered based on a transmission operation of the content to be transmitted.
In an alternative embodiment, the first display module is specifically configured to perform:
and switching and displaying the text adjustment list in the area of the content input panel corresponding to the content to be sent.
In an alternative embodiment, the text adjustment list includes adjustment prompt information and at least one adjustment text;
or the text adjustment list comprises adjustment prompt information, at least one group of adjustment texts and adjustment types corresponding to each group of adjustment texts respectively, wherein each adjustment text in each group of adjustment texts belongs to the adjustment type of the same text expression intention.
In an alternative embodiment, the first display module is specifically configured to perform:
responding to a text adjustment instruction of the content to be sent, and displaying an expression intention selection page; the expression intent selection page comprises one or more expression intent trigger elements;
responding to triggering operation of a target intention triggering element, and displaying a text adjustment list corresponding to the target intention triggering element; the target intent trigger element is one or more of the one or more expressed intent trigger elements.
In an alternative embodiment, the intent type and/or the number of elements indicated by the one or more expressed intent trigger elements are related to the interactive scene corresponding to the content to be sent.
In an alternative embodiment, the second display module is specifically configured to perform:
and responding to the selection operation of one or more adjustment texts in the text adjustment list, and displaying the selected adjustment text as the target adjustment content for transmission in an input box corresponding to the content to be transmitted.
In an alternative embodiment, the first display module specifically includes:
a first display sub-module configured to perform a selection operation in response to one or more adjustment texts in the text adjustment list, and display first adjustment content in an input box corresponding to the content to be transmitted, where the first adjustment content is determined at least based on the selected adjustment text;
A second display sub-module configured to perform an editing operation in response to the first adjustment content, and display a second adjustment content as the target adjustment content for transmission in an input box corresponding to the content to be transmitted; the second adjustment content is adjustment content after editing operation is performed on the first adjustment content.
In an alternative embodiment, the first presentation sub-module is configured to perform:
fusing the selected adjustment text and target content in the content to be sent;
the fused adjustment content is used as the first adjustment content and is displayed in an input frame corresponding to the content to be sent;
the target content comprises one or more of non-text content in the content to be sent and text content except text fragments needing to be adjusted in the content to be sent.
In an alternative embodiment, the apparatus further comprises:
a first adding module configured to perform adding the text adjustment list to a new window in a content input panel corresponding to the content to be transmitted, where the new window is used to display or hide the text adjustment list in the content input panel;
And the second adding module is configured to execute adding the icon corresponding to the text adjustment list into the input box corresponding to the content to be sent, wherein the icon is used for triggering to show or hide the text adjustment list.
In an alternative embodiment, the apparatus further comprises:
a transmission module configured to perform transmission of the target adjustment content in response to a transmission operation instruction;
a third presentation module configured to perform presentation of the target adjustment content in an interactive area;
the interaction area comprises any one of a comment area, a message area, a single chat area of two members and a group chat area of three or more members.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 10 is a block diagram of an electronic device, according to an example embodiment. Referring to fig. 10, the electronic device includes a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the steps of any of the text processing methods of the above embodiments when executing instructions stored on the memory.
The electronic device may be a terminal, a server or a similar computing device, taking the electronic device as an example of a terminal, fig. 10 is a block diagram of an electronic device for text processing, specifically:
the terminal can include RF (Radio Frequency) circuitry 1110, memory 1120 including one or more computer-readable storage media, input unit 1130, display unit 1140, sensor 1150, audio circuit 1160, wiFi (wireless fidelity ) module 1170, processor 1180 including one or more processing cores, and power supply 1190. It will be appreciated by those skilled in the art that the terminal structure shown in fig. 10 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
the RF circuit 1110 may be used for receiving and transmitting signals during a message or a call, and in particular, after receiving downlink information of a base station, the downlink information is processed by one or more processors 1180; in addition, data relating to uplink is transmitted to the base station. Typically, RF circuitry 1110 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier ), a duplexer, and the like. In addition, the RF circuit 1110 may also communicate with networks and other terminals through wireless communication. The wireless communication may use any communication standard or protocol including, but not limited to, GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service ), CDMA (Code Division Multiple Access, code division multiple access), WCDMA (Wideband Code Division Multiple Access ), LTE (Long Term Evolution, long term evolution), email, SMS (Short Messaging Service, short message service), and the like.
The memory 1120 may be used to store software programs and modules, and the processor 1180 may perform various functional applications and data processing by executing the software programs and modules stored in the memory 1120. The memory 1120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required for functions, and the like; the storage data area may store data created according to the use of the terminal, etc. In addition, memory 1120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 1120 may also include a memory controller to provide access to the memory 1120 by the processor 1180 and the input unit 1130.
The input unit 1130 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 1130 may include a touch-sensitive surface 1131 and other input devices 1132. The touch-sensitive surface 1131, also referred to as a touch display screen or touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch-sensitive surface 1131 or thereabout using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 1131 may include two portions, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device and converts it into touch point coordinates, which are then sent to the processor 1180, and can receive commands from the processor 1180 and execute them. In addition, the touch-sensitive surface 1131 may be implemented using various types of resistive, capacitive, infrared, surface acoustic waves, and the like. In addition to the touch-sensitive surface 1131, the input unit 1130 may also include other input devices 1132. In particular, other input devices 1132 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 1140 may be used to display information input by a user or information provided to the user and various graphical user interfaces of the terminal, which may be composed of graphics, text, icons, video, and any combination thereof. The display unit 1140 may include a display panel 1141, and optionally, the display panel 1141 may be configured in the form of an LCD (Liquid Crystal Display ), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 1131 may overlay the display panel 1141, and upon detection of a touch operation thereon or thereabout by the touch-sensitive surface 1131, the touch-sensitive surface is passed to the processor 1180 to determine the type of touch event, and the processor 1180 then provides a corresponding visual output on the display panel 1141 in accordance with the type of touch event. Wherein the touch-sensitive surface 1131 and the display panel 1141 may be two separate components to implement the input and input functions, but in some embodiments the touch-sensitive surface 1131 may be integrated with the display panel 1141 to implement the input and output functions.
The terminal may also include at least one sensor 1150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 1141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 1141 and/or the backlight when the terminal moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the device is stationary, and the device can be used for applications of recognizing the gesture of a terminal (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may be configured for the terminal are not described in detail herein.
Audio circuitry 1160, a speaker 1161, and a microphone 1162 may provide an audio interface between a user and the terminal. The audio circuit 1160 may transmit the received electrical signal converted from audio data to the speaker 1161, and may be converted into a sound signal by the speaker 1161 to be output; on the other hand, the microphone 1162 converts the collected sound signals into electrical signals, which are received by the audio circuit 1160 and converted into audio data, which are processed by the audio data output processor 1180 for transmission to, for example, another terminal via the RF circuit 1110, or which are output to the memory 1120 for further processing. Audio circuit 1160 may also include an ear bud jack to provide for communication of a peripheral ear bud with the terminal.
WiFi belongs to a short-distance wireless transmission technology, and the terminal can help a user to send and receive e-mails, browse web pages, access streaming media and the like through the WiFi module 1170, so that wireless broadband Internet access is provided for the user. Although fig. 10 shows a WiFi module 1170, it is understood that it does not belong to the essential constitution of the terminal, and can be omitted entirely as required within the scope of not changing the essence of the invention.
The processor 1180 is a control center of the terminal, and connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by running or executing software programs and/or modules stored in the memory 1120 and calling data stored in the memory 1120, thereby performing overall monitoring of the terminal. Optionally, the processor 1180 may include one or more processing cores; preferably, the processor 1180 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, applications, etc., and the modem processor primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1180.
The terminal also includes a power supply 1190 (e.g., a battery) for powering the various components, which may be logically connected to the processor 1180 via a power management system so as to provide for the management of charge, discharge, and power consumption by the power management system. The power supply 1190 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, etc., which will not be described herein. In particular, in this embodiment, the terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors. The one or more programs include instructions for performing the virtual resource retrieval method provided by the method embodiments described above.
In an exemplary embodiment, a computer storage medium is also provided, which, when executed by a processor of an electronic device, enables the electronic device to perform the steps of the method provided in any one of the implementations described above.
In an exemplary embodiment, a computer program product is also provided, comprising a computer program/instruction which, when executed by a processor, implements the method provided in any of the above-mentioned implementations. Optionally, the computer program is stored in a computer readable storage medium. The processor of the electronic device reads the computer program from the computer-readable storage medium, and the processor executes the computer program so that the electronic device performs the method provided in any one of the above embodiments.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (14)

1. A text processing method, comprising:
responding to a text adjustment instruction of the content to be transmitted, and displaying a text adjustment list; the acceptable degree of each adjustment text contained in the text adjustment list on the text expression level is higher than that of the content to be sent;
target trim content for transmission is presented, the target trim content being determined based on one or more trim texts selected from the text trim list.
2. The method of claim 1, wherein the text adjustment instruction is triggered based on a transmission operation of the content to be transmitted.
3. The method of claim 1, wherein the presenting the text adjustment list comprises:
and switching and displaying the text adjustment list in the area of the content input panel corresponding to the content to be sent.
4. The method of claim 1, wherein the text adjustment list includes adjustment prompt information and at least one adjustment text;
or the text adjustment list comprises adjustment prompt information, at least one group of adjustment texts and adjustment types corresponding to each group of adjustment texts respectively, wherein each adjustment text in each group of adjustment texts belongs to the adjustment type of the same text expression intention.
5. The method of claim 1, wherein the presenting the text adjustment list in response to the text adjustment instruction for the content to be transmitted comprises:
responding to a text adjustment instruction of the content to be sent, and displaying an expression intention selection page; the expression intent selection page comprises one or more expression intent trigger elements;
responding to triggering operation of a target intention triggering element, and displaying a text adjustment list corresponding to the target intention triggering element; the target intent trigger element is one or more of the one or more expressed intent trigger elements.
6. The method of claim 5, wherein the one or more expressed intent trigger elements indicate an intent type and/or number of elements associated with the interactive scene corresponding to the content to be transmitted.
7. The method of any of claims 1-6, wherein the presenting the targeted adjustment content for transmission comprises:
and responding to the selection operation of one or more adjustment texts in the text adjustment list, and displaying the selected adjustment text as the target adjustment content for transmission in an input box corresponding to the content to be transmitted.
8. The method of any of claims 1-6, wherein the presenting the targeted adjustment content for transmission comprises:
responding to the selection operation of one or more adjustment texts in the text adjustment list, and displaying first adjustment content in an input box corresponding to the content to be sent, wherein the first adjustment content is determined at least based on the selected adjustment texts;
responding to the editing operation of the first adjustment content, and displaying second adjustment content serving as the target adjustment content for transmission in an input box corresponding to the content to be transmitted; the second adjustment content is adjustment content after editing operation is performed on the first adjustment content.
9. The method of claim 8, wherein the presenting the first adjustment content in the input box corresponding to the content to be sent comprises:
fusing the selected adjustment text and target content in the content to be sent;
the fused adjustment content is used as the first adjustment content and is displayed in an input frame corresponding to the content to be sent;
the target content comprises one or more of non-text content in the content to be sent and text content except text fragments needing to be adjusted in the content to be sent.
10. The method of any of claims 1-6, wherein after the presenting the text adjustment list, the method further comprises:
adding the text adjustment list to a new window in a content input panel corresponding to the content to be sent, wherein the new window is used for displaying or hiding the text adjustment list in the content input panel;
or adding an icon corresponding to the text adjustment list into an input box corresponding to the content to be sent, wherein the icon is used for triggering to show or hide the text adjustment list.
11. The method of any of claims 1-6, wherein after the presenting the targeted modification content for transmission, the method further comprises:
Transmitting the target adjustment content in response to a transmission operation instruction;
displaying the target adjustment content in an interaction area;
the interaction area comprises any one of a comment area, a message area, a single chat area of two members and a group chat area of three or more members.
12. A text processing apparatus, comprising:
a first presentation module configured to execute a presentation of a text adjustment list in response to a text adjustment instruction for content to be transmitted; the acceptable degree of each adjustment text contained in the text adjustment list on the text expression level is higher than that of the content to be sent;
a second presentation module configured to perform presentation of target adjustment content for transmission; the target trim content is determined based on one or more trim texts selected from the text trim list.
13. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the text processing method of any of claims 1 to 11.
14. A computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the text processing method of any of claims 1 to 11.
CN202311175712.2A 2023-09-12 2023-09-12 Text processing method, device, equipment and storage medium Pending CN117436406A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311175712.2A CN117436406A (en) 2023-09-12 2023-09-12 Text processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311175712.2A CN117436406A (en) 2023-09-12 2023-09-12 Text processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117436406A true CN117436406A (en) 2024-01-23

Family

ID=89546983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311175712.2A Pending CN117436406A (en) 2023-09-12 2023-09-12 Text processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117436406A (en)

Similar Documents

Publication Publication Date Title
CN108370347B (en) Predictive response method and system for incoming communications
CN105453082A (en) System and method for processing web-browsing information
CN111178012A (en) Form rendering method, device and equipment and storage medium
CN111368180B (en) Page display method and device and electronic equipment
CN111565143B (en) Instant messaging method, equipment and computer readable storage medium
CN107678823A (en) Control method, device and the storage medium and mobile terminal of mobile terminal application
CN112445970A (en) Information recommendation method and device, electronic equipment and storage medium
CN115917512A (en) Artificial intelligence request and suggestion card
CN104636410A (en) Methods and arrangements for managing one or more electronic messages
CN111125544A (en) User recommendation method and device
CN115017340A (en) Multimedia resource generation method and device, electronic equipment and storage medium
CN113138702B (en) Information processing method, device, electronic equipment and storage medium
CN117436406A (en) Text processing method, device, equipment and storage medium
CN107431732B (en) Computer-implemented method, system for providing scanning options and storage medium
CN116205686A (en) Method, device, equipment and storage medium for recommending multimedia resources
CN108897774B (en) Method, device and storage medium for acquiring news hotspots
CN113220954A (en) Information display method and device and projection equipment
CN114764362A (en) Virtual resource obtaining method and device, electronic equipment and storage medium
CN112953813A (en) Message sending method and device, electronic equipment and readable storage medium
CN117252730B (en) Service subscription processing system, service subscription information processing method and device
US11902223B2 (en) Intelligent assistant content generation
CN112446720B (en) Advertisement display method and device
US20240029117A1 (en) Systems, methods, and devices for a dynamically manageable qr driven information platform
US20240143081A1 (en) Method and device for haptic feedback
CN110610417B (en) Information display method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination