Input content processing method, device, electronic device and storage medium
By obtaining the user input content and optimizing the wording based on the scene information, the problem of inappropriate user wording in the prior art is solved, the wording and scene adaptation is achieved, and the user experience and dialogue efficiency are improved.
Patent Information
- Application Number
- CN202110431270.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-21
- Publication Date
- 2025-05-23
- Estimated Expiration
- 2041-04-21
AI Technical Summary
Existing applications with communication capabilities cannot optimize user wording, resulting in inappropriate wording in different scenarios.
By obtaining the user input content and, when it is determined that it needs to be optimized, obtaining the scene information, and optimizing the user input content based on the scene information, obtaining the optimized content.
It realizes that the wording of users when using electronic devices for communication can be optimized to adapt to the scene, improves the user experience, reduces improper wording, and improves dialogue efficiency.
Smart Images

Figure CN113128183B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computer technology, and specifically relates to an input content processing method, device, electronic device and storage medium. Background Art
[0002] As electronic devices become more popular, their functions become more and more complete. Currently, users can use applications with communication functions on electronic devices to communicate with target contacts. When users use the application to chat with target contacts, they usually need to enter text information in an input box on the application interface as a message to be sent to the target contact.
[0003] At present, many users often encounter inappropriate wording when chatting with target contacts using applications. In different scenarios, the requirements for wording are also different. For example, when reporting work to the boss, the expression is not professional and rigorous enough; clerical work often requires sending short reports, which have certain word limits and the expression is not concise enough. The current communication applications cannot optimize the user's wording. Summary of the invention
[0004] The embodiments of the present application provide an input content processing method, device, electronic device and storage medium, which can optimize user wording.
[0005] In a first aspect, an embodiment of the present application provides an input content processing method, the method comprising:
[0006] Get user input;
[0007] When it is determined that the user input content needs to be optimized, acquiring scene information;
[0008] The wording of the user input content is optimized according to the scenario information to obtain optimized content.
[0009] In a second aspect, an embodiment of the present application provides an input content processing device, the device comprising:
[0010] A first acquisition unit, used to acquire user input content;
[0011] A second acquisition unit, configured to acquire scene information when it is determined that the user input content needs to be optimized;
[0012] The wording optimization unit is used to optimize the wording of the user input content according to the scenario information to obtain optimized content.
[0013] 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 input content processing method described in the first aspect.
[0014] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the input content processing method described in the first aspect are implemented.
[0015] 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 input content processing method as described in the first aspect.
[0016] The input content processing method, device, electronic device and storage medium provided in the embodiments of the present application obtain user input content, obtain scenario information when determining that the user input content needs to be optimized, optimize the wording of the user input content according to the scenario information, and obtain optimized content, so that the wording of the user when communicating with the target contact using an application with a communication function on the electronic device can be optimized to adapt to the scenario. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 One of the flowcharts of the input content processing method provided in the embodiment of the present application;
[0018] Figure 2 Schematic diagram of display wording optimization function options provided in an embodiment of the present application
[0019] Figure 3 A schematic diagram of display scene options provided in an embodiment of the present application;
[0020] Figure 4 A schematic diagram of an output optimization statement provided in an embodiment of the present application;
[0021] Figure 5 A schematic diagram of the structure of an input content processing device provided in an embodiment of the present application;
[0022] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0023] Figure 7 A schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of this application.
[0025] 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.
[0026] It should be understood that the reference to "one embodiment" or "an embodiment" in the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present invention. Therefore, the "in one embodiment" or "in an embodiment" appearing in various places throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner.
[0027] In the embodiments of the present application, the term "plurality" refers to two or more than two, and other quantifiers are similar.
[0028] The following is a detailed description of the input content processing method provided by the embodiment of the present application through some embodiments and their application scenarios in conjunction with the accompanying drawings. The input content processing method provided by the embodiment of the present application is executed by an electronic device, and the electronic device mentioned in the embodiment of the present application includes but is not limited to a mobile phone, a tablet computer, a computer, a wearable device, etc.
[0029] Figure 1 This is one of the flow charts of the input content processing method provided in the embodiment of the present application, and the input content processing method includes:
[0030] Step 100: Obtain user input content;
[0031] The purpose of the embodiment of the present application is to optimize the wording of the user input content, so it is necessary to first obtain the user input content.
[0032] It should be noted that the user input content is the content input by the user in the input box on the application interface of the electronic device to be sent to the target contact, wherein the application interface corresponds to the target contact.
[0033] Step 101: When it is determined that the user input content needs to be optimized, scene information is obtained;
[0034] It can be understood that after the electronic device obtains the user input content, it determines whether the obtained user input content needs to be optimized.
[0035] For example, the user input content is automatically detected, and whether the user input content needs to be optimized is determined based on the detection result.
[0036] For example, a wording optimization function button is displayed, and when a user clicks on the wording optimization function button, it is determined that the user input content needs to be optimized.
[0037] When it is determined that the user input content needs to be optimized, the electronic device obtains scene information.
[0038] Optionally, scene information refers to information such as the context, occasion or usage environment corresponding to the user input content or optimized content, for example, seriousness, humor, work reporting, work social interaction, imitating celebrity speech, etc.
[0039] Step 102: Optimize the wording of the user input content according to the scenario information to obtain optimized content.
[0040] When determining that the user input content needs to be optimized, the electronic device optimizes the wording of the user input content according to the scene information to obtain optimized content, so that the user input content is optimized to suit the scene.
[0041] In an embodiment of the present application, user input content is obtained; when it is determined that the user input content needs to be optimized, scenario information is obtained, and the wording of the user input content is optimized according to the scenario information to obtain optimized content, so that when the user uses an application with communication function on an electronic device to communicate with a target contact, the wording can be optimized to adapt to the scenario.
[0042] Optionally, determining that the user input content needs to be optimized includes:
[0043] When a first preset condition is met, displaying a first function option;
[0044] receiving a first input of the first function option, and determining that the user input content needs to be optimized;
[0045] The first preset condition includes at least one of the following:
[0046] The historical chat records between the user and the recipient of the user input content are worded in an optimized manner;
[0047] The user input content contains items to be optimized;
[0048] The historical chat record between the user and the recipient of the user input content contains the first type of reply content of the recipient;
[0049] The first function option is used to indicate that the current device supports the wording optimization function or to indicate the item to be optimized.
[0050] It is understandable that the wording optimization function provided in the embodiment of the present application can be automatically started.
[0051] Optionally, after the electronic device obtains the user input content, it determines whether the historical chat records between the user and the recipient of the user input content have been optimized in wording, wherein the recipient of the user input content is the target contact, that is, it is determined whether the historical chat records between the user and the target contact have been optimized in wording, and if so, the first function option is automatically displayed. Here, the first function option is used to indicate that the current device supports the wording optimization function. The user receives a first input to the first function option, wherein the first input can be a click or selection operation on the first function option, and then it is determined that the user input content needs to be optimized.
[0052] Optionally, after the electronic device obtains the user input content, it detects the user input content, and if it is detected that there are items to be optimized in the user input content, the first function option is automatically displayed. Here, the first function option is used to indicate the items to be optimized. For example, the user input content is detected, and if it is detected that the user input content has unclear semantics, the number of words needs to be simplified, the wording is unreasonable, etc., then the "Wording to be optimized" function option is displayed above the input method. Receive the user's first input to the first function option, where the first input can be a click operation on the first function option, and then determine that the user input content needs to be optimized.
[0053] For example, a user enters what he wants to express in the input box: "When you get home from get off work today, please buy me half a watermelon. If you see someone selling steamed buns, buy two"; "Optimization item: unclear semantics" appears above the input method; the user clicks optimize, and the sentence will be optimized to: "When you get home from get off work today, please buy me half a watermelon. If you see someone selling steamed buns, buy two more steamed buns."
[0054] Optionally, after the electronic device obtains the user input content, it determines whether there is a first type of reply content of the receiving object in the historical chat record between the user and the receiving object of the user input content. The first type of reply content may be an unfriendly reply content of the receiving object due to problems with the user's wording. If it exists, the first function option is automatically displayed. Here, the first function option is used to indicate that the current device supports the wording optimization function. The user's first input to the first function option is received, wherein the first input may be a click or selection operation on the first function option, and it is determined that the user input content needs to be optimized.
[0055] In the embodiment of the present application, by displaying the first function option when the first preset condition is met; receiving the first input of the user to the first function option, and determining that the user input content needs to be optimized, the wording optimization function is automatically triggered, so that the user's wording can be optimized when communicating with the target contact using an application with a communication function on an electronic device, which can effectively improve the user experience.
[0056] Based on the above embodiment, optionally, displaying the first function option when the first preset condition is met includes:
[0057] Determining whether the historical chat records between the user and the recipient of the user input content have been worded optimized;
[0058] In the case where the historical chat record has been worded optimized, a first function option is displayed, where the first function option is used to indicate that the current device supports a wording optimization function; or,
[0059] If the historical chat record has not been worded optimized and there are items to be optimized in the user input content, display a first function option, where the first function option is used to indicate the item to be optimized; or,
[0060] When the historical chat record has not been optimized in wording, there are no items to be optimized in the user input content, and the first type of reply content of the receiving object exists in the historical chat record, a first function option is displayed, and the first function option is used to indicate that the current device supports the wording optimization function.
[0061] Optionally, after obtaining the user input content, first determine whether the historical chat record between the user and the recipient of the user input content has been optimized in wording. If the historical chat record has been optimized in wording, display a first function option. Here, the first function option is used to indicate that the current device supports the wording optimization function. When the user's first input to the first function option is received, it is determined that the user input content needs to be optimized.
[0062] If the wording of the historical chat record has not been optimized, the electronic device detects the user input content, and displays a first function option if there are items to be optimized in the user input content. Here, the first function option is used to indicate the items to be optimized. When receiving the first input of the user to the first function option, it is determined that the user input content needs to be optimized.
[0063] If the historical chat record has not been wording optimized, and the user input content does not contain any items to be optimized, determine whether the historical chat record between the user and the recipient of the user input content contains the first type of reply content of the recipient, and if so, display a first function option, the first function option is used to indicate that the current device supports the wording optimization function, and when receiving the first input of the user to the first function option, determine that the user input content needs to be optimized. Otherwise, if it does not exist, the wording optimization function will not be triggered, and the first function option will not be displayed.
[0064] In an embodiment of the present application, it is first determined whether the historical chat record has been optimized in wording. If the historical chat record has not been optimized in wording, it is continued to detect whether there are items to be optimized in the user input content. If there are no items to be optimized in the user input content, it is continued to determine whether there is the first type of reply content of the receiving object in the historical chat record, thereby realizing the automatic triggering of the wording optimization function, so that the user's wording can be optimized when communicating with the target contact using an application with a communication function on an electronic device, which can effectively improve the user experience.
[0065] In another optional implementation, determining that the user input content needs to be optimized includes:
[0066] Receiving a second input of the user input content, and obtaining content selected by the user;
[0067] In response to the second input, displaying a first function option;
[0068] receiving a first input of the first function option, and determining that the content selected by the user needs to be optimized;
[0069] The first function option is used to indicate that the current device supports the wording optimization function.
[0070] It is understandable that the wording optimization function provided by the embodiment of the present application can be actively started by the user.
[0071] Optionally, the electronic device receives a second input from the user on the user input content, and obtains the content selected by the user; wherein the second input is a selection operation, which may be a selection of all or part of the user input content.
[0072] In response to the second input, the electronic device displays a first function option, wherein the first function option is used to indicate that the current device supports the wording optimization function.
[0073] The electronic device receives a first input for the first function option, and determines that the content selected by the user needs to be optimized; wherein the first input may be a click operation.
[0074] Figure 2 A schematic diagram of display wording optimization function options provided in an embodiment of the present application. Figure 2 As shown, after the user has input a paragraph and selected the text that needs to be optimized, a "Wording Optimization" function option will appear above the input method. The user clicks on the "Wording Optimization" function option to confirm that the content selected by the user needs to be optimized and turn on the "Wording Optimization" function.
[0075] In the embodiment of the present application, the wording optimization function is triggered by the user, so that the wording of the user when communicating with the target contact using an application with a communication function on the electronic device can be optimized, which can effectively improve the user experience.
[0076] Optionally, when it is determined that the user input content needs to be optimized, acquiring scene information includes:
[0077] In response to the first input, displaying scene options;
[0078] A third input of the scene option is received, and scene information selected by the user is obtained.
[0079] It is understandable that the electronic device receives the first input of the user for the first function option or the second function option, determines that the user input content needs to be optimized, starts to optimize the wording, and then displays the scene options in response to the first input. The scene options can be a plurality of pre-set fixed scenes, such as serious, humorous, reporting work, imitating celebrities' speech, etc. The scene options can also be automatically generated based on the user input content. For example, the user input content and the context of the user input content are analyzed to determine the context, occasion or usage environment corresponding to the user input content, and generate the scene options.
[0080] Then, the electronic device receives a third input of the user on the scene option and obtains the scene selected by the user.
[0081] Figure 3Schematic diagram of display scene options provided in an embodiment of the present application. Figure 3 As shown, the optimized contents obtained in different scenarios are different.
[0082] Optionally, optimizing the wording of the user input content according to the scenario information to obtain optimized content includes:
[0083] According to the scenario selected by the user, the wording of the content to be optimized in the content input by the user is optimized, and an optimized sentence is output;
[0084] receiving a fourth input of the optimization statement from the user, and acquiring the optimization statement selected by the user;
[0085] In response to the fourth input, the content to be optimized is replaced with the optimization statement selected by the user to obtain optimized content.
[0086] The content to be optimized in the user input content may be automatically generated according to the scene selected by the user, or may be the content to be optimized selected by the user.
[0087] The electronic device outputs an optimization statement for the user to select, receives a fourth input of the optimization statement from the user, and obtains the optimization statement selected by the user. Figure 4 A schematic diagram of an output optimization statement provided in an embodiment of the present application, such as Figure 4 As shown, the user can select an optimization statement from the optimization statements.
[0088] A fourth input of the user on the optimization statement is received, and the optimization statement selected by the user is obtained; in response to the fourth input, the electronic device replaces the content to be optimized with the optimization statement selected by the user to obtain the optimized content.
[0089] In an embodiment of the present application, the content to be optimized in the user input content is optimized based on the scenario, so that the wording of the user when communicating with the target contact using an application with a communication function on an electronic device can be optimized to adapt to the scenario, which can effectively improve the user experience during the chat process, reduce inappropriate wording, and improve conversation efficiency.
[0090] Optionally, in response to the first input, displaying scene options includes:
[0091] In response to the first input, obtaining a context of the user input content;
[0092] According to the context of the user input content, obtaining scene options that match the context;
[0093] Displays the described scene options.
[0094] It is understandable that in one embodiment, the scene options are automatically generated according to the context of the user input content. In response to the first input, the electronic device obtains the context of the user input content, and then analyzes the context, context, occasion or usage environment of the user input content according to the context of the user input content to obtain scene options that meet the context; and displays the scene options.
[0095] Optionally, optimizing the wording of the content to be optimized in the content input by the user according to the scenario selected by the user and outputting an optimized sentence includes:
[0096] According to the scenario selected by the user, the wording of the content to be optimized in the content input by the user is optimized by using the data model, and an optimized sentence is output;
[0097] The content to be optimized is determined according to the scene information selected by the user or is selected by the user.
[0098] It is understandable that the data model is a pre-acquired model that can achieve wording optimization. The electronic device optimizes the wording of the content to be optimized in the user input content using the data model according to the scenario selected by the user, and outputs an optimized sentence.
[0099] For example, the user enters what he wants to express in the input box: "Leader, my work this month should be almost done. The main things are as follows: function a has only been done a little bit, function b is basically completed, and function c is not yet ready because it relies on other people's things"; select the scene of the current conversation: report; the electronic device matches according to the scene selected by the user, and automatically selects the wording that may need to be optimized. The user can also add, delete or select all according to the selection matched by the system, and the content to be optimized can also be selected by the user; based on the scene selected by the user, multiple optimized entries are generated through the data model. Each entry will have different focuses, including word count reduction, formal occasions, adding honorifics, etc. Each entry includes the results of beautifying sentences and correcting typos, for example: 1. The leader's key issues this month are mainly xxx 2. I xxx this month 3. This month's key issues xxx focus on xxx; click the best entry to replace the text in the input box, or restore it to the original with one click.
[0100] In an embodiment of the present application, a data model is used to optimize the content to be optimized in the user input content based on the scenario, so that the wording of the user when communicating with the target contact using an application with a communication function on an electronic device can be optimized to adapt to the scenario, which can effectively improve the user experience during the chat process, reduce inappropriate wording, and improve conversation efficiency.
[0101] It should be noted that the input content processing method provided in the embodiment of the present application can be executed by an input content processing device, or a control module in the input content processing device for executing and loading the input content processing method. In the embodiment of the present application, the input content processing device executing the input content processing method is taken as an example to illustrate the input content processing device provided in the embodiment of the present application.
[0102] Figure 5 A schematic diagram of the structure of the input content processing device provided in the embodiment of the present application, such as Figure 5 As shown, the device includes: a first acquisition unit 510, a second acquisition unit 520 and a wording optimization unit 530, wherein:
[0103] A first acquisition unit 510 is used to acquire user input content;
[0104] A second acquisition unit 520 is used to acquire scene information when it is determined that the user input content needs to be optimized;
[0105] The wording optimization unit 530 is used to optimize the wording of the user input content according to the scenario information to obtain optimized content.
[0106] In an embodiment of the present application, user input content is obtained; when it is determined that the user input content needs to be optimized, scenario information is obtained, and the wording of the user input content is optimized according to the scenario information to obtain optimized content, so that when the user uses an application with communication function on an electronic device to communicate with a target contact, the wording can be optimized to adapt to the scenario.
[0107] Optionally, determining that the user input content needs to be optimized includes:
[0108] When a first preset condition is met, displaying a first function option;
[0109] receiving a first input of the first function option, and determining that the user input content needs to be optimized;
[0110] The first preset condition includes at least one of the following:
[0111] The historical chat records between the user and the recipient of the user input content are worded in an optimized manner;
[0112] The user input content contains items to be optimized;
[0113] The historical chat record between the user and the recipient of the user input content contains the first type of reply content of the recipient;
[0114] The first function option is used to indicate that the current device supports the wording optimization function or to indicate the item to be optimized.
[0115] Optionally, displaying the first function option or the second function option when the first preset condition is met includes:
[0116] When a first preset condition is met, displaying a first function option;
[0117] receiving a first input of the first function option, and determining that the user input content needs to be optimized;
[0118] The first preset condition includes at least one of the following:
[0119] The historical chat records between the user and the recipient of the user input content are worded in an optimized manner;
[0120] The user input content contains items to be optimized;
[0121] The historical chat record between the user and the recipient of the user input content contains the first type of reply content of the recipient;
[0122] The first function option is used to indicate that the current device supports the wording optimization function or to indicate the item to be optimized.
[0123] Optionally, the second acquiring unit is used to:
[0124] In response to the first input, displaying scene options;
[0125] receiving a third input of the scene option, and obtaining scene information selected by the user;
[0126] The wording optimization unit is used to:
[0127] According to the scenario information selected by the user, the wording of the content to be optimized in the content input by the user is optimized, and an optimized sentence is output;
[0128] receiving a fourth input of the optimization statement from the user, and acquiring the optimization statement selected by the user;
[0129] In response to the fourth input, the content to be optimized is replaced with the optimization statement selected by the user to obtain optimized content.
[0130] Optionally, in response to the first input, displaying scene options includes:
[0131] In response to the first input, obtaining a context of the user input content;
[0132] According to the context of the user input content, obtaining scene options that match the context;
[0133] Displays the described scene options.
[0134] Optionally, optimizing the wording of the content to be optimized in the content input by the user according to the scenario selected by the user and outputting an optimized sentence includes:
[0135] According to the scenario selected by the user, the wording of the content to be optimized in the content input by the user is optimized by using the data model, and an optimized sentence is output;
[0136] The content to be optimized is determined according to the scene information selected by the user or is selected by the user.
[0137] The input content processing device in the embodiment of the present application can be a device or electronic device with an operating system, or a component, integrated circuit, or chip in a terminal. The electronic device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can 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 can be a server, 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 embodiment of the present application.
[0138] The input content processing device provided in the embodiment of the present application can achieve Figures 1 to 4 In the method embodiment, the various processes implemented by the input content processing device are not repeated here to avoid repetition.
[0139] The input content processing device provided in the embodiment of the present application optimizes the content to be optimized in the user input content based on the scenario, so that the wording of the user when communicating with the target contact using an application with a communication function on the electronic device can be optimized to adapt to the scenario, which can effectively improve the user experience during the chat process, reduce inappropriate wording, and improve conversation efficiency.
[0140] Optionally, the embodiment of the present application further provides an electronic device 600, such as Figure 6As shown, the electronic device includes a processor 601, a memory 602, and a program or instruction stored in the memory 602 and executable on the processor 601. When the program or instruction is executed by the processor 601, each process of the input content processing method embodiment described above is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0141] 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.
[0142] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0143] The electronic device 700 includes but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and at least some of the components of a processor 710.
[0144] Those skilled in the art will appreciate that the electronic device 700 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 710 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 7 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.
[0145] It should be understood that in the embodiment of the present application, the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, and the graphics processor 7041 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 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include two parts: a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0146] In the embodiment of the present application, the radio frequency unit 701 obtains information and then sends it to the processor 710 for processing. Generally, the radio frequency unit 701 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
[0147] The memory 709 can be used to store software programs or instructions and various data. The memory 709 can mainly include a program or instruction storage area and a data storage area, wherein the program or instruction storage area can store an operating system, an application program or instruction required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 709 can include a high-speed random access memory, and can also include a non-volatile memory, wherein the non-volatile memory can be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or a flash memory. For example, at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
[0148] The processor 710 may include one or more processing units; optionally, the processor 710 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs or instructions, etc., and the modem processor mainly processes wireless communications, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 710.
[0149] The processor 710 is used to obtain user input content;
[0150] When it is determined that the user input content needs to be optimized, acquiring scene information;
[0151] The wording of the user input content is optimized according to the scenario information to obtain optimized content.
[0152] The electronic device provided in the embodiment of the present application obtains user input content; when it is determined that the user input content needs to be optimized, obtains scene information, optimizes the wording of the user input content according to the scene information, and obtains optimized content, so that when the user uses an application with communication function on the electronic device to communicate with a target contact, the wording can be optimized to adapt to the scene.
[0153] Optionally, the processor 710 is further configured to:
[0154] When a first preset condition is met, displaying a first function option;
[0155] Optionally, the user input unit 707 is used to receive a first input for the first function option, and the processor 710 is further used to determine that the user input content needs to be optimized;
[0156] The first preset condition includes at least one of the following:
[0157] The historical chat records between the user and the recipient of the user input content are worded in an optimized manner;
[0158] The user input content contains items to be optimized;
[0159] The historical chat record between the user and the recipient of the user input content contains the first type of reply content of the recipient;
[0160] The first function option is used to indicate that the current device supports the wording optimization function or to indicate the item to be optimized.
[0161] Optionally, the processor 710 is further configured to:
[0162] Determining whether the historical chat records between the user and the recipient of the user input content have been worded optimized;
[0163] In the case where the historical chat record has been worded optimized, a first function option is displayed, where the first function option is used to indicate that the current device supports a wording optimization function; or,
[0164] If the historical chat record has not been worded optimized and there are items to be optimized in the user input content, display a first function option, where the first function option is used to indicate the item to be optimized; or,
[0165] When the historical chat record has not been optimized in wording, there are no items to be optimized in the user input content, and the first type of reply content of the receiving object exists in the historical chat record, a first function option is displayed, and the first function option is used to indicate that the current device supports the wording optimization function.
[0166] Optionally, the user input unit 707 is further configured to receive a second input of the user input content, and obtain the content selected by the user;
[0167] Optionally, the processor 710 is further configured to: display a first function option in response to the second input;
[0168] Optionally, the user input unit 707 is further configured to receive a first input to the first function option, and the processor 710 is further configured to determine that the content selected by the user needs to be optimized; wherein the first function option is used to indicate that the current device supports a wording optimization function.
[0169] Optionally, the processor 710 is further configured to: display scene options in response to the first input;
[0170] The user input unit 707 is further used to receive a third input of the scene option to obtain the scene selected by the user;
[0171] The processor 710 is further configured to optimize the wording of the content to be optimized in the user input content according to the scene selected by the user, and output an optimized sentence;
[0172] The user input unit 707 is also used to receive a fourth input of the user on the optimization statement, and obtain the optimization statement selected by the user;
[0173] The processor 710 is further configured to, in response to the fourth input, replace the content to be optimized with the optimization statement selected by the user to obtain optimized content.
[0174] Optionally, the processor 710 is further configured to:
[0175] In response to the first input, obtaining a context of the user input content;
[0176] According to the context of the user input content, obtaining scene options that match the context;
[0177] Displays the described scene options.
[0178] Optionally, the processor 710 is further configured to:
[0179] According to the scenario selected by the user, the wording of the content to be optimized in the content input by the user is optimized by using the data model, and an optimized sentence is output;
[0180] The content to be optimized is determined according to the scene information selected by the user or is selected by the user.
[0181] The 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, each process of the above-mentioned input content processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0182] 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.
[0183] 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 input content processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0184] 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.
[0185] 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 a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of additional elements in the process, method, article or device including the element. In addition, it should be noted that the scope of the method and device in the embodiment of the present application is not limited to performing functions in the order shown or discussed, and may also include performing 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.
[0186] 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 disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0187] 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 input content processing method, characterized in that, it includes: Obtain the user input content; When the first preset condition is met, display the first function option; Receive the first input to the first function option, and determine that the user input content needs to be optimized; When it is determined that the user input content needs to be optimized, in response to the first input, obtain the context of the user input content; According to the context of the user input content, obtain scenario options that conform to the context; Display the scenario options; Receive the third input to the scenario options, and obtain the scenario information selected by the user; Perform diction optimization on the user input content according to the scenario information to obtain the optimized content; Wherein, the first preset condition includes at least one of the following: The historical chat record between the user and the recipient of the user input content has been optimized in terms of diction; There is a first type of reply content of the recipient in the historical chat record between the user and the recipient of the user input content; the first type of reply content is an unfriendly reply content of the recipient caused by the user's diction problem; The first function option is used to indicate that the current device supports the diction optimization function or is used to indicate that there are items to be optimized in the user input content.
2. The input content processing method according to claim 1, characterized in that, The first preset condition further includes: There are items to be optimized in the user input content.
3. The input content processing method according to claim 2, characterized in that, The step of displaying the first function option when the first preset condition is met includes: Determine whether the historical chat record between the user and the recipient of the user input content has been optimized in terms of diction; When the historical chat record has been optimized in terms of diction, display the first function option, and the first function option is used to indicate that the current device supports the diction optimization function; or, When the historical chat record has not been optimized in terms of diction and there are items to be optimized in the user input content, display the first function option, and the first function option is used to indicate the items to be optimized; or, When the historical chat record has not been optimized in terms of diction, there are no items to be optimized in the user input content, and there is the first type of reply content of the recipient in the historical chat record, display the first function option, and the first function option is used to indicate that the current device supports the diction optimization function.
4. The input content processing method according to any one of claims 2-3, characterized in that, The step of performing diction optimization on the user input content according to the scenario information to obtain the optimized content includes: According to the scenario information selected by the user, perform diction optimization on the content to be optimized in the user input content, and output the optimized statement; Receive the fourth input to the optimized statement by the user, and obtain the optimized statement selected by the user; In response to the fourth input, use the optimized statement selected by the user to replace the content to be optimized to obtain the optimized content.
5. The input content processing method according to claim 4, It is characterized in that The step of optimizing the wording of the content to be optimized in the content input by the user according to the scene information selected by the user and outputting an optimized sentence includes: According to the scenario information selected by the user, the wording of the content to be optimized in the content input by the user is optimized by using a data model, and an optimized sentence is output; The content to be optimized is determined according to the scene information selected by the user or is selected by the user.
6. An input content processing device, It is characterized in that include: A first acquisition unit, used to acquire user input content; A second acquisition unit is configured to display a first function option when a first preset condition is met; receive a first input for the first function option, and determine that the user input content needs to be optimized; when it is determined that the user input content needs to be optimized, in response to the first input, acquire a context of the user input content; and obtain a scenario option that meets the context according to the context of the user input content; Displaying the scene options; receiving a third input of the scene options, and obtaining scene information selected by the user; A wording optimization unit, configured to optimize the wording of the user input content according to the scenario information to obtain optimized content; The first preset condition includes at least one of the following: The historical chat records between the user and the recipient of the user input content are worded in an optimized manner; The historical chat records between the user and the recipient of the user input content contain the first type of reply content from the recipient; the first type of reply content is unfriendly reply content from the recipient due to problems with the user's wording; The first function option is used to indicate that the current device supports a wording optimization function or to indicate that there are items to be optimized in the user input content.
7. The input content processing device according to claim 6, It is characterized in that The first preset condition also includes: The user input content contains items to be optimized.
8. The input content processing device according to claim 7, It is characterized in that The displaying of the first function option when the first preset condition is met includes: Determining whether the historical chat records between the user and the recipient of the user input content have been worded optimized; In the case where the historical chat record has been worded optimized, a first function option is displayed, where the first function option is used to indicate that the current device supports a wording optimization function; or, If the historical chat record has not been worded optimized and there are items to be optimized in the user input content, display a first function option, where the first function option is used to indicate the item to be optimized; or, When the historical chat record has not been optimized in wording, there are no items to be optimized in the user input content, and the first type of reply content of the receiving object exists in the historical chat record, a first function option is displayed, and the first function option is used to indicate that the current device supports the wording optimization function.
9. The input content processing device according to claim 7 or 8, It is characterized in that The wording optimization unit is used to: According to the scenario information selected by the user, the wording of the content to be optimized in the content input by the user is optimized, and an optimized sentence is output; receiving a fourth input of the optimization statement from the user, and acquiring the optimization statement selected by the user; In response to the fourth input, the content to be optimized is replaced with the optimization statement selected by the user to obtain optimized content.
10. An electronic device, It is 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 input content processing method as described in any one of claims 1 to 5.
11. A readable storage medium, It is 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 input content processing method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Information inputting method and device
CN106325537A
Information recommendation method and device and electronic equipment
CN111831132A
Information processing method and device and electronic equipment
CN112578975A
Message content input method and device and electronic equipment
CN112596617A