Information processing method, device and electronic equipment
The method improves communication efficiency in chat applications by using context information to clarify ambiguous text messages, ensuring accurate understanding of sender intentions.
Patent Information
- Application Number
- CN202011589616.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-29
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2040-12-29
AI Technical Summary
Current chat applications experience low communication efficiency due to unclear text meanings in sender messages, making it difficult for recipients to understand the intended meaning.
An information processing method that acquires context information of a text message, adjusts it to eliminate ambiguity, and sends a clarified message to the recipient, using techniques like semantic analysis and LSTM models to improve message clarity.
Enhances communication efficiency by ensuring that the recipient accurately understands the sender's intended meaning, reducing ambiguity in text messages.
Smart Images

Figure CN112699644B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to an information processing method, device and electronic equipment. Background Art
[0002] Currently, when users use chat applications such as short messages to communicate, especially text communication, the text information input by the sender has unclear meanings, which makes it difficult for the receiving user to accurately understand what the sender wants to express, thereby affecting communication efficiency.
[0003] It can be seen that in the related art, there is a problem of low communication efficiency when transmitting information at the sending end. Summary of the invention
[0004] The embodiments of the present application provide an information processing method, an information processing device, and an electronic device to solve the problem of low communication efficiency in information transmission at the sending end in the related art.
[0005] In order to solve the above technical problems, this application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides an information processing method, including:
[0007] When the display interface displays the first text information, receiving a first input;
[0008] In response to the first input, acquiring context information of the first text information;
[0009] Adjusting the first text information based on the context information to obtain second text information;
[0010] The second text information is sent to a receiving end.
[0011] In a second aspect, an embodiment of the present application provides an information processing device, including:
[0012] A receiving module, configured to receive a first input when the display interface displays the first text information;
[0013] an acquisition module, configured to acquire context information of the first text information in response to the first input;
[0014] an adjustment module, configured to adjust the first text information based on the context information to obtain second text information;
[0015] The sending module is used to send the second text information to a receiving end.
[0016] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.
[0017] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0018] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0019] In an embodiment of the present application, by obtaining context information of a first text message and adjusting the first text message based on the context information, ambiguity in the first text message is eliminated so as to obtain a second text message, and the second text message is sent to a receiving end, so that the second text message displayed on the receiving end can accurately convey the meaning that the user of the sending end wants to express, thereby effectively avoiding the sending of ambiguous text messages and improving communication efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 is a flow chart of an information processing method provided by an embodiment of the present application;
[0021] Figure 2a It is one of the display schematic diagrams of the display interface provided in the embodiment of the present application;
[0022] Figure 2b This is the second display schematic diagram of the display interface provided in the embodiment of the present application;
[0023] Figure 2c This is the third display schematic diagram of the display interface provided in the embodiment of the present application;
[0024] Figure 2d This is the fourth display schematic diagram of the display interface provided in the embodiment of the present application;
[0025] Figure 2e This is the fifth display schematic diagram of the display interface provided in the embodiment of the present application;
[0026] Figure 3 is a structural diagram of an information processing device provided in an embodiment of the present application;
[0027] Figure 4 It is one of the structural diagrams of the electronic device provided in the embodiment of the present application;
[0028] Figure 5 This is the second structural diagram of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0030] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, the "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.
[0031] The information processing method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0032] See also Figure 1 , Figure 1 is a flowchart of an information processing method provided in an embodiment of the present application. The information processing method provided in an embodiment of the present application can be applied to a sending end, such as Figure 1 As shown, the following steps are included:
[0033] Step 101: When a display interface displays first text information, receive a first input.
[0034] In this step, the display interface may be a chat interface or an information editing interface, and the first text information may be information displayed in a text input box on the display interface. The first input may be an operation of the user on the first text information, an operation of the user on the display interface, or an operation of the user on the text input box.
[0035] Among them, the first input can be a pressing operation, a long pressing operation, a voice input, etc.
[0036] It should be noted that, when the first text message is edited, the sending end can perform semantic analysis on the first text message to determine whether there is a need to disambiguate the first text message, that is, to determine whether the first text message is ambiguous; if it is detected that the first text message is ambiguous, a reminder message can be displayed on the display interface to prompt the user that the first text message input is ambiguous and needs to be disambiguated; the user can perform a disambiguation operation based on the reminder message displayed on the display interface.
[0037] The first input in step 101 may be an input operation of a user performing a disambiguation operation.
[0038] In addition, after the receiving end receives the first text message sent by the sending end, if the user of the receiving end cannot understand the meaning of the first text message, that is, the user of the receiving end feels that the first text message is ambiguous, the receiving end will initiate a disambiguation request to the sending end so that the sending end can send an unambiguous text message.
[0039] Among them, after the sending end receives the disambiguation request sent by the receiving end (the disambiguation request is used to remind or prompt the user of the sending end that there is ambiguity in the first text message sent), the display parameters of the first text message can be updated, such as font size, font color, background color and other display parameters to remind the user of the sending end to perform a disambiguation operation.
[0040] Step 102: In response to the first input, obtain context information of the first text information.
[0041] In this step, the context information of the first text information may be obtained by obtaining the context information of the first text information.
[0042] For example, word vectors can be constructed using Word2Vec, and words in the first text information can be extracted to better understand the relationship between words. At the same time, the sentence structure of the first text information can be analyzed to determine whether it is a "subject-verb-object" structure or a "subject-predicate-object" structure, so as to obtain the sentence structure of the first text information.
[0043] In addition, the semantic environment can also be constructed through the LSTM (Long Short-Term Memory) time series model. For example, the context information can be integrated into the LSTM model for training to improve the prediction ability and accuracy of the LSTM model, that is, to improve the accuracy of the context information of the first text information obtained.
[0044] Step 103: Adjust the first text information based on the context information to obtain second text information.
[0045] In this step, the first text information can be adjusted based on the context information. The adjustment method can be to add punctuation marks, adjust the order of words, add at least one of modal particles or conjunctions, and obtain the second text information, that is, the second text information after disambiguation processing.
[0046] Optionally, adjusting the first text information based on the context information includes at least one of the following: reorganizing the text in the first text information based on the context information; correcting the text in the first text information based on the context information; adding text information to the first text information based on the context information; deleting text information in the first text information based on the context information; editing punctuation marks in the first text information based on the context information.
[0047] By adjusting the first text information in the above manner, ambiguity in the first text information can be eliminated and the semantic accuracy of the second text information can be improved.
[0048] The first text information may also be adjusted according to other situations in the first text information according to actual conditions; for example, redundant spaces and redundant lines may be deleted to make the text in the first text information more compact and reduce ambiguity.
[0049] Step 104: Send the second text information to a receiving end.
[0050] In this step, by sending a second text message to the receiving end, that is, sending the text message after disambiguation processing, so that the second text message displayed on the receiving end can accurately convey the meaning that the user of the sending end wants to express, the sending of ambiguous text messages is effectively avoided and the efficiency of information communication is improved.
[0051] In this way, when the first text message needs to be disambiguated, the context information of the first text message is obtained, and the first text message is adjusted based on the context information to eliminate the ambiguity in the first text message, so as to obtain the second text message, and send the second text message to the receiving end, so that the second text message displayed on the receiving end can accurately convey the meaning that the user of the sending end wants to express, effectively avoiding the sending of ambiguous text messages and improving the efficiency of information communication.
[0052] Optionally, in response to the first input, acquiring context information of the first text information includes:
[0053] In response to the first input, context information associated with a target expression is generated, wherein the first input is input for the target expression.
[0054] In this embodiment, by selecting a target expression and generating context information associated with the target expression, the generated context information includes expression information that can express the mood of the user at the sending end, so that the second text information obtained after adjustment based on the context information is more in line with what the user wants to express, further improving the accuracy of the context information and the accuracy of the adjustment of the first text information.
[0055] like Figure 2a As shown, when a first input associated with a first text message is received, an emoticon icon can be displayed in a first area 22 associated with the first text message 21 in the display interface 20. The emoticon icon can be text, such as happy, disappointed, happy, etc.; the emoticon icon can also be an icon, such as an icon expressing a smile, etc.
[0056] The following is an example of the first text message "Dad is sad because he can't get first place and won't wait for you to come back."
[0057] When the selected target expression is "none", that is, the user has not selected an expression for expressing his mood, the first text information is adjusted directly based on the context information obtained from the context information, that is, "I can't get the first place, my dad is sad and won't wait for you to come back", and the following is obtained: Figure 2b The second text message 23 shown is “Dad is sad because he can’t get the first place and won’t wait for you to come back”.
[0058] When the selected target expression is "happy", the first text information is adjusted based on the context information generated by the expression "happy", and the following is obtained: Figure 2c The second text message 24 shown is “Dad is not sad even if you can’t get first place. I will wait for you to come back!”.
[0059] When the selected target expression is "smile", the first text information is adjusted based on the context information generated by the expression "smile", and the following is obtained: Figure 2d The second text message 25 shown is “Dad is sad because you can’t get first place. I will wait for you to come back!”.
[0060] When the selected target expression is "sad", the first text information is adjusted based on the context information generated by the expression "sad", and the following is obtained: Figure 2e The second text message 26 shown is “Dad is sad because you can’t get first place and won’t wait for you to come back!”.
[0061] It should be noted that in the process of selecting the target expression, that is, when the target expression is selected, the display parameters of the target expression will change, such as the background box of the target expression changes color, or the color of the target expression itself changes. Moreover, when the target expression is selected, the text information displayed in the input box will automatically adjust to the second text information. In addition, when the target expression changes, the text information displayed in the input box will also be updated and updated to the text information corresponding to the target expression finally selected.
[0062] Optionally, before receiving the first input, the method further includes:
[0063] When receiving the target information sent by the receiving end, updating the display parameter of the first text information to a first state based on the target information;
[0064] After adjusting the first text information in response to the first input and obtaining the second text information, and before sending the second text information to the receiving end, the method further includes:
[0065] The display parameter of the second text information is updated to a second state, where the second state is different from the first state.
[0066] In this embodiment, the display parameters of the first text message are updated to prompt the user of the sending end to perform disambiguation processing on the first text message; and after the disambiguation processing is completed, the display parameters of the obtained second text message are updated to prompt the user that the disambiguation processing is completed, so as to send the disambiguated second text message to the receiving end. In this way, by updating the display parameters of the text message before and after the disambiguation, the user of the sending end can intuitively feel whether the text information on the display interface is ambiguous, thereby improving the interaction effect between the user and the device.
[0067] The target information includes a disambiguation request and other response messages initiated by the receiving end. The disambiguation request is a request initiated when the user at the receiving end cannot understand the text message sent by the sending end and needs the sending end to resend the unambiguous text message.
[0068] In addition, it should be noted that, for the text information displayed on the receiving end, if the displayed text information is ambiguous, and when the user's request for disambiguation of the text information displayed on the receiving end is received, the display parameters of the text information displayed on the receiving end will also change to remind the user that the text information is still ambiguous; after receiving the second text information sent by the sending end after disambiguation, the ambiguous text information is replaced by the second text information, and the display parameters of the second text information are updated at the same time to remind the user of the receiving end that the currently displayed information is the disambiguated information, so that the user can read the information.
[0069] In one embodiment, the display parameter includes at least one of background color, font color, font size, and font style.
[0070] At the sending end, text information that needs to be disambiguated can be displayed in red, and text information that has been disambiguated can be displayed in green.
[0071] At the receiving end, the text information that needs to be disambiguated can be displayed in red, and the text information that has been disambiguated can be displayed in green.
[0072] The information processing method of the embodiment of the present application receives a first input while displaying a first text message on a display interface; obtains context information of the first text message in response to the first input; adjusts the first text message based on the context information to obtain a second text message; and sends the second text message to a receiving end. This can avoid sending ambiguous text messages and improve information communication efficiency.
[0073] It should be noted that the information processing method provided in the embodiment of the present application can be executed by an information processing device or a control module in the information processing device for executing the information processing method. In the embodiment of the present application, the information processing device provided in the embodiment of the present application is described by taking the information processing device executing the information processing method as an example.
[0074] See also Figure 3 , Figure 3 is a structural diagram of an information processing device provided by an embodiment of the present application, such as Figure 3 As shown, the information processing device 300 includes:
[0075] The receiving module 301 is used to receive a first input when the display interface displays the first text information;
[0076] An acquisition module 302, configured to acquire context information of the first text information in response to the first input;
[0077] An adjustment module 303, configured to adjust the first text information based on the context information to obtain second text information;
[0078] The sending module 304 is configured to send the second text information to a receiving end.
[0079] Optionally, the acquisition module 302 is used to generate context information associated with a target expression in response to the first input, wherein the first input is an input for the target expression.
[0080] Optionally, the adjustment module 303 is configured to perform at least one of the following:
[0081] reorganizing the words in the first text information based on the context information;
[0082] Modifying the text in the first text information based on the context information;
[0083] adding text information to the first text information based on the context information;
[0084] deleting text information in the first text information based on the context information;
[0085] The punctuation marks in the first text information are edited based on the context information.
[0086] Optionally, the information processing device 300 further includes:
[0087] A first updating module, configured to update the display parameter of the first text information to a first state based on the target information when receiving the target information sent by the receiving end;
[0088] The second updating module is used to update the display parameter of the second text information to a second state, and the second state is different from the first state.
[0089] Optionally, the display parameter includes at least one of background color, font color, font size, and font style.
[0090] The information processing device in the embodiments of the present application may be a device, or a component, integrated circuit, or chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device may be a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc., which is not specifically limited in the embodiments of the present application.
[0091] The information processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0092] The information processing device provided in the embodiment of the present application can realize Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0093] Optional, such as Figure 4 As shown, an embodiment of the present application also provides an electronic device 400, including a processor 401, a memory 402, and a program or instruction stored in the memory 402 and executable on the processor 401. When the program or instruction is executed by the processor 401, each process of the above-mentioned information processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0094] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0095] See also Figure 5 , Figure 5 is a structural diagram of an electronic device provided by an embodiment of the present application, such as Figure 5 As shown, the electronic device 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, and a processor 510 and other components.
[0096] Those skilled in the art will appreciate that the electronic device 500 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 510 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 5 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0097] Among them, the user input unit 507 is used to receive a first input when the display interface displays the first text information; the processor 510 is used to obtain context information of the first text information in response to the first input; the processor 510 is used to adjust the first text information based on the context information to obtain the second text information; the processor 510 is used to send the second text information to the receiving end.
[0098] Optionally, the processor 510 is configured to generate context information associated with a target expression in response to the first input, wherein the first input is an input for the target expression.
[0099] Optionally, the processor 510 is configured to perform at least one of the following:
[0100] reorganizing the words in the first text information based on the context information;
[0101] Modifying the text in the first text information based on the context information;
[0102] adding text information to the first text information based on the context information;
[0103] deleting text information in the first text information based on the context information;
[0104] The punctuation marks in the first text information are edited based on the context information.
[0105] Optionally, the display unit 506 is used to update the display parameters of the first text information to a first state based on the target information sent by the receiving end when the target information is received; the display unit 506 is used to update the display parameters of the second text information to a second state, and the second state is different from the first state.
[0106] Optionally, the display parameter includes at least one of background color, font color, font size, and font style.
[0107] It should be understood that in the embodiment of the present application, the input unit 504 may include a graphics processor (Graphics Processing Unit, GPU) 5041 and a microphone 5042, and the graphics processor 5041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 507 includes a touch panel 5071 and other input devices 5072. The touch panel 5071 is also called a touch screen. The touch panel 5071 may include two parts: a touch detection device and a touch controller. Other input devices 5072 may include but are not limited to a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 509 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 510 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the user interface, and the application program, etc., and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 510.
[0108] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned information processing method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0109] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0110] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned information processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0111] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0112] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0113] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0114] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. An information processing method, characterized in that: include: When the display interface displays the first text information, receiving a first input; In response to the first input, acquiring context information of the first text information; Adjusting the first text information based on the context information to obtain second text information; Sending the second text information to a receiving end; The acquiring, in response to the first input, context information of the first text information includes: In response to the first input, context information associated with a target expression is generated, wherein the first input is input for the target expression.
2. The method according to claim 1, characterized in that The adjusting the first text information based on the context information includes at least one of the following: reorganizing the words in the first text information based on the context information; Modifying the text in the first text information based on the context information; adding text information to the first text information based on the context information; deleting text information in the first text information based on the context information; The punctuation marks in the first text information are edited based on the context information.
3. The method according to any one of claims 1 to 2, characterized in that Before receiving the first input, the method further includes: When receiving the target information sent by the receiving end, updating the display parameter of the first text information to a first state based on the target information; After adjusting the first text information in response to the first input and obtaining the second text information, and before sending the second text information to the receiving end, the method further includes: The display parameter of the second text information is updated to a second state, where the second state is different from the first state.
4. The method according to claim 3, characterized in that The display parameters include at least one of background color, font color, font size, and font style.
5. An information processing device, characterized in that: include: A receiving module, configured to receive a first input when the display interface displays the first text information; an acquisition module, configured to acquire context information of the first text information in response to the first input; an adjustment module, configured to adjust the first text information based on the context information to obtain second text information; A sending module, used for sending the second text information to a receiving end; The acquisition module is used to generate context information associated with a target expression in response to the first input, wherein the first input is input for the target expression.
6. The information processing device according to claim 5, characterized in that: The adjustment module is used to perform at least one of the following: reorganizing the words in the first text information based on the context information; Modifying the text in the first text information based on the context information; adding text information to the first text information based on the context information; deleting text information in the first text information based on the context information; The punctuation marks in the first text information are edited based on the context information.
7. The information processing device according to any one of claims 5 to 6, characterized in that: The information processing device further includes: A first updating module, configured to update the display parameter of the first text information to a first state based on the target information when receiving the target information sent by the receiving end; The second updating module is used to update the display parameter of the second text information to a second state, and the second state is different from the first state.
8. The information processing device according to claim 7, characterized in that: The display parameters include at least one of background color, font color, font size, and font style.
9. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the information processing method as claimed in any one of claims 1 to 4.
10. A readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by the processor, the steps of the information processing method according to any one of claims 1 to 4 are implemented.