CN112199035A - Information recommendation method and device and electronic equipment - Google Patents

Information recommendation method and device and electronic equipment Download PDF

Info

Publication number
CN112199035A
CN112199035A CN202011066511.5A CN202011066511A CN112199035A CN 112199035 A CN112199035 A CN 112199035A CN 202011066511 A CN202011066511 A CN 202011066511A CN 112199035 A CN112199035 A CN 112199035A
Authority
CN
China
Prior art keywords
information
input
recommendation
user
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011066511.5A
Other languages
Chinese (zh)
Inventor
高海
鲁剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN202011066511.5A priority Critical patent/CN112199035A/en
Publication of CN112199035A publication Critical patent/CN112199035A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0489Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using dedicated keyboard keys or combinations thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0238Programmable keyboards
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The embodiment of the invention provides an information recommendation method, an information recommendation device and electronic equipment, wherein the method is applied to an input method, the input method is deployed in the electronic equipment, and the electronic equipment is connected with a keyboard, and the method comprises the following steps: receiving a trigger instruction aiming at a preset information recommendation key in a keyboard, and displaying an information recommendation interface in a preset panel of the input method; and determining target information to be recommended, and displaying the target information on the information recommendation interface. In the embodiment of the invention, in the process of using the keyboard to input information, a user can use the information recommendation function of the input method by triggering the information recommendation key in the keyboard, without switching from the keyboard to the mouse, and using the mouse to trigger the information recommendation function; the operation of using the information recommendation function in the input method by the user is simplified, and the efficiency of using the information recommendation function is improved; and user experience can also be improved.

Description

Information recommendation method and device and electronic equipment
Technical Field
The invention relates to the technical field of input methods, in particular to an information recommendation method, an information recommendation device and electronic equipment.
Background
With the development of computer technology, electronic devices such as mobile phones and tablet computers are more and more popular, and great convenience is brought to life, study and work of people. These electronic devices are typically installed with an input method application (abbreviated as input method) so that a user can input information using the input method.
The input method in a PC (Personal Computer) supports not only a user to input information in an input box through a keyboard, but also various functions such as starting expressions, information, voice input, screenshot and the like in a toolbox of the input method through a mouse; so as to realize the input of expressions, the viewing of information, the input of voice, the screenshot and the like. When the user uses the keyboard to input, the user needs to switch the keyboard to the mouse to use the functions, which is cumbersome to operate.
Disclosure of Invention
The embodiment of the invention provides an information recommendation method, which is used for simplifying the operation of using an information recommendation function in an input method by a user and improving the efficiency of using the information recommendation function.
Correspondingly, the embodiment of the invention also provides an information recommendation device and electronic equipment, which are used for ensuring the realization and application of the method.
In order to solve the above problems, an embodiment of the present invention discloses an information recommendation method, which is applied to an input method, where the input method is deployed in an electronic device, and the electronic device is connected to a keyboard, and the method specifically includes: receiving a trigger instruction aiming at a preset information recommendation key in a keyboard, and displaying an information recommendation interface in a preset panel of the input method; and determining target information to be recommended, and displaying the target information on the information recommendation interface.
Optionally, the determining target information to be recommended includes: if a trigger instruction aiming at an information recommendation key in a keyboard is received when the preset panel is in a closed state, information and user behavior information corresponding to the information are obtained, and target information is selected from the obtained information according to the user behavior information corresponding to the information.
Optionally, the determining target information to be recommended includes: if a trigger instruction aiming at the information recommendation key in the keyboard is received when the preset panel is in a closed state, acquiring input associated information, and determining target information according to the input associated information.
Optionally, the method further comprises: before the triggering instruction for the information recommendation key in the keyboard is received, if the preset panel is in an open state and an information recommendation interface is displayed in the preset panel, positioning a cursor to an input frame of the information recommendation interface.
Optionally, the determining target information to be recommended includes: if a triggering instruction aiming at an information recommendation key in a keyboard is received after a user inputs the information in an input frame of the information recommendation interface, acquiring input information, and determining target information according to the input information;
the input information includes: and inputting information input by the user in an input box of the information recommendation interface and/or inputting associated information.
Optionally, the determining target information to be recommended includes: before receiving the trigger instruction for the information recommendation key in the keyboard, if the preset panel is in an open state and the information recommendation interface is displayed in the preset panel, if the trigger instruction for the information recommendation key in the keyboard is received after the information selected by the user in the application program, the information selected by the user is obtained, and the target information is determined according to the information selected by the user.
Optionally, determining target information to be recommended according to the input information by at least one of the following methods, including: searching weather information matched with the input information; searching input statistical information matched with the input information; searching hot words associated with the input information; and searching hot news related to the input information.
Optionally, the method further comprises: receiving a selection instruction; and displaying the target information corresponding to the selection instruction on a screen.
Optionally, the method further comprises: receiving a browsing instruction; and displaying a detail page of the target information corresponding to the browsing instruction.
The embodiment of the invention also discloses an information recommendation device, which is applied to an input method, wherein the input method is deployed in electronic equipment, and the electronic equipment is connected with a keyboard, and the information recommendation device specifically comprises the following steps:
the starting module is used for receiving a triggering instruction aiming at an information recommendation key preset in a keyboard and displaying an information recommendation interface in a preset panel of the input method;
and the recommendation module is used for determining target information to be recommended and displaying the target information on the information recommendation interface.
Optionally, the recommendation module includes: the first information determining submodule is used for acquiring information and user behavior information corresponding to the information if a triggering instruction aiming at an information recommending key in a keyboard is received when the preset panel is in a closed state, and selecting target information from the acquired information according to the user behavior information corresponding to the information.
Optionally, the recommendation module includes: and the second information determining submodule is used for acquiring input associated information and determining target information according to the input associated information if a triggering instruction aiming at an information recommending key in the keyboard is received when the preset panel is in a closed state.
Optionally, the apparatus further comprises: and the positioning module is used for positioning a cursor to an input frame of the information recommendation interface if the preset panel is in an open state and the information recommendation interface is displayed before the triggering instruction for the information recommendation key in the keyboard is received.
Optionally, the recommendation module includes: the third information determining submodule is used for acquiring input information and determining target information according to the input information if a triggering instruction for an information recommendation key in a keyboard is received after a user inputs the information in an input frame of the information recommendation interface; the input information includes: and inputting information input by the user in an input box of the information recommendation interface and/or inputting associated information.
Optionally, the recommendation module includes: and the fourth information determining submodule is used for acquiring the information selected by the user and determining the target information according to the information selected by the user if the preset panel is in an open state and the information recommending interface is displayed before the triggering instruction for the information recommending key in the keyboard is received and the triggering instruction for the information recommending key in the keyboard is received after the information selected by the user in the application program.
Optionally, the fourth information determining sub-module is configured to search for weather information matching the input information; and/or searching input statistical information matched with the input information; and/or searching hot words related to the input information; and/or searching hot news related to the input information.
Optionally, the apparatus further comprises: the screen-loading module is used for receiving a selection instruction; and displaying the target information corresponding to the selection instruction on a screen.
Optionally, the apparatus further comprises: the browsing module is used for receiving a browsing instruction; and displaying a detail page of the target information corresponding to the browsing instruction.
The embodiment of the invention also discloses a readable storage medium, and when instructions in the storage medium are executed by a processor of the electronic equipment, the electronic equipment can execute the information recommendation method in any one of the embodiments of the invention.
An embodiment of the present invention also discloses an electronic device, including a memory, and one or more programs, where the one or more programs are stored in the memory, and configured to be executed by one or more processors, and the one or more programs include instructions for: receiving a trigger instruction aiming at a preset information recommendation key in a keyboard, and displaying an information recommendation interface in a preset panel of the input method; and determining target information to be recommended, and displaying the target information on the information recommendation interface.
Optionally, the determining target information to be recommended includes: if a trigger instruction aiming at an information recommendation key in a keyboard is received when the preset panel is in a closed state, information and user behavior information corresponding to the information are obtained, and target information is selected from the obtained information according to the user behavior information corresponding to the information.
Optionally, the determining target information to be recommended includes: if a trigger instruction aiming at the information recommendation key in the keyboard is received when the preset panel is in a closed state, acquiring input associated information, and determining target information according to the input associated information.
Optionally, further comprising instructions for: before the triggering instruction for the information recommendation key in the keyboard is received, if the preset panel is in an open state and an information recommendation interface is displayed in the preset panel, positioning a cursor to an input frame of the information recommendation interface.
Optionally, the determining target information to be recommended includes: if a triggering instruction aiming at an information recommendation key in a keyboard is received after a user inputs the information in an input frame of the information recommendation interface, acquiring input information, and determining target information according to the input information;
the input information includes: and inputting information input by the user in an input box of the information recommendation interface and/or inputting associated information.
Optionally, the determining target information to be recommended includes: before receiving the trigger instruction for the information recommendation key in the keyboard, if the preset panel is in an open state and the information recommendation interface is displayed in the preset panel, if the trigger instruction for the information recommendation key in the keyboard is received after the information selected by the user in the application program, the information selected by the user is obtained, and the target information is determined according to the information selected by the user.
Optionally, determining target information to be recommended according to the input information by at least one of the following methods, including: searching weather information matched with the input information; searching input statistical information matched with the input information; searching hot words associated with the input information; and searching hot news related to the input information.
Optionally, further comprising instructions for: receiving a selection instruction; and displaying the target information corresponding to the selection instruction on a screen.
Optionally, further comprising instructions for: receiving a browsing instruction; and displaying a detail page of the target information corresponding to the browsing instruction.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, after receiving a trigger instruction aiming at the preset information key in the keyboard, an information recommendation interface can be displayed in a preset panel of the input method; determining target information to be recommended, and displaying the target information on the information recommendation interface, so that a user can use an information recommendation function of an input method by triggering an information recommendation key in a keyboard in the process of using the keyboard to input information, the keyboard does not need to be switched to a mouse, and the mouse is used for triggering the information recommendation function; the operation of using the information recommendation function in the input method by the user is simplified, and the efficiency of using the information recommendation function is improved; and user experience can also be improved.
Drawings
FIG. 1 is a flow chart of the steps of one data processing method embodiment of the present invention;
FIG. 2 is a flow chart of the steps of an alternative embodiment of a data processing method of the present invention;
FIG. 3 is a flow chart of the steps of another alternative embodiment of a data processing method of the present invention;
FIG. 4 is a flow chart of the steps of yet another alternative embodiment of a data processing method of the present invention;
FIG. 5 is a flow chart of the steps of yet another alternative embodiment of a data processing method of the present invention;
FIG. 6 is a flow chart of the steps of yet another alternative embodiment of a data processing method of the present invention;
FIG. 7 is a flow chart of steps in yet another data processing method embodiment of the present invention;
FIG. 8 is a flow chart of the steps of yet another alternative embodiment of a data processing method of the present invention;
FIG. 9 is a flowchart illustrating steps of an embodiment of an expression recommendation method of the present invention;
FIG. 10 is a flowchart illustrating steps in an alternative embodiment of an expression recommendation method of the present invention;
FIG. 11 is a flowchart illustrating steps in an alternative embodiment of a method for emoticon recommendation in accordance with the present invention;
FIG. 12 is a flowchart illustrating steps in an alternative embodiment of a method for emotient recommendation in accordance with the present invention;
FIG. 13 is a flowchart illustrating steps in an alternative embodiment of a method for emoticon recommendation in accordance with the present invention;
FIG. 14 is a flowchart illustrating steps of a method for recommending information according to an embodiment of the present invention;
FIG. 15 is a flowchart illustrating steps in an alternative embodiment of a method for recommending information in accordance with the present invention;
FIG. 16 is a flowchart illustrating steps of an alternative embodiment of an information recommendation method according to the present invention;
FIG. 17 is a flowchart illustrating steps in an alternative embodiment of a method for recommending information in accordance with the present invention;
FIG. 18 is a flowchart illustrating steps in an alternative embodiment of a method for recommending information in accordance with the present invention;
FIG. 19 is a flow chart of the steps of one embodiment of a method of speech input of the present invention;
FIG. 20 is a flowchart illustrating the steps of an alternative embodiment of a speech input method of the present invention;
FIG. 21 is a flow chart of the steps of another alternative embodiment of the speech input method of the present invention;
FIG. 22 is a flow chart of the steps of yet another alternative embodiment of the speech input method of the present invention;
FIG. 23 is a block diagram of an embodiment of an information recommendation device;
FIG. 24 is a block diagram of an alternative embodiment of an information recommendation device of the present invention;
FIG. 25 is a block diagram illustrating an electronic device for information recommendation, in accordance with an exemplary embodiment;
fig. 26 is a schematic structural diagram of an electronic device for information recommendation according to another exemplary embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The embodiment of the invention can be applied to an input method, wherein the input method is provided with an intelligent assistant; the function entry of the intelligent assistant can be arranged in a status bar of the input method. Of course, the user may hide and restore the function entry of the intelligent assistant from the status bar of the input method, which is not limited in the embodiment of the present invention.
The intelligent assistant has multiple functions, such as an information recommendation function, a screen capture function, an expression recommendation function, an information recommendation function, a voice function and the like. Wherein:
the information recommendation function can be used for recommending various types of information, such as expressions, phrases, sentences, information and the like; the method can be specifically set according to requirements.
The screen capture function may be used to capture an image of a screen.
The expression recommendation function may be used to recommend various expressions.
The information recommending function may be used to recommend various information, which may be information that a user can bring value to himself in a relatively short time because he obtains it in time and utilizes it, such as news, weather information, etc.
The voice function may be used to execute instructions for voice input, as well as information for on-screen voice input.
In one embodiment of the invention, the input method may be provided in an electronic device, and the electronic device is connected with an external device such as a keyboard. The functions of the intelligent assistant for the input method can be associated with the keys in the keyboard, so that the user can use the functions in the input method by triggering the keys in the keyboard; furthermore, in the process that a user inputs information by using the keyboard, the function of the input method is used without directly switching between the keyboard and the mouse, so that the operation of using the function in the input method by the user is simplified; and user experience can also be improved.
In the embodiment of the invention, the preset keys used for being associated with the functions in the intelligent assistant can be selected from the keyboard as required. In one example, the key that is used less frequently by the user in inputting information using the keyboard may be selected as the preset key, and may be associated with a function in the intelligent assistant, such as the F1 key, the F2 key, the F3 key, the F4 key, a voice key, and the like.
In one example of the present invention, in order to distinguish preset keys associated with different functions of the intelligent assistant in the keyboard, the preset keys associated with the information recommendation function may be referred to as information recommendation keys; a preset key associated with the screen capture function is called as a screen capture key; a preset key associated with the expression recommendation function is called an expression recommendation key; the preset key related to the information recommendation function is called as an information recommendation key; the preset key associated with the voice function is referred to as a voice input key.
In one example, the preset key associated with each function in the intelligent assistant may be a key in a keyboard.
For example, the information recommendation key may be the F1 key in the keyboard;
a screen capture key, which may be the F2 key in a keyboard;
an expression recommendation key which can be an F3 key in a keyboard;
the information recommendation key can be an F4 key in a keyboard;
the voice input key can be a voice key in a keyboard.
In one example, the preset keys associated with each function in the intelligent assistant may be a combination of at least two keys in the keyboard.
For example: the information recommendation key can be an Fn key + F1 key in the keyboard;
a screen capture key which can be an Fn key + F2 key in the keyboard;
the expression recommendation key can be an Fn key + F3 key in the keyboard;
the information recommendation key can be Fn key + F4 key in the keyboard;
the voice input key can be Fn key + voice key in the keyboard.
Another example is: the information recommendation key can be a Ctrl key + Alt key + F1 key in the keyboard;
a screen capture key which can be a Ctrl key + Alt key + F2 key in the keyboard;
the expression recommendation key can be a Ctrl key + Alt key + F3 key in a keyboard;
the information recommendation key can be a Ctrl key + Alt key + F4 key in a keyboard;
the voice key can be Ctrl key + Alt key + voice key in the keyboard.
When the preset keys associated with the functions in the intelligent assistant are the combination of at least two preset keys in the keyboard, the user can use the corresponding functions by triggering the at least two preset keys simultaneously.
On the basis of the above embodiments, the embodiments of the present invention provide a data processing method, which can start different functions of an input method according to different preset keys triggered by a user. The method comprises the following specific steps:
referring to fig. 1, a flowchart illustrating steps of an embodiment of a data processing method according to the present invention is shown, which may specifically include the following steps:
and 102, receiving a trigger instruction aiming at a preset key in the keyboard, and starting a function related to the preset key in an input method.
In the embodiment of the invention, when a user needs to use a certain function in the input method, the preset key corresponding to the function in the keyboard can be triggered. For example, when the user needs to use the information recommendation function of the input method, an information recommendation key such as the F1 key may be triggered; when a user needs to use the screen capturing function of the input method, a screen capturing key such as an F2 key can be triggered; when the user needs to use the expression recommendation function of the input method, an expression recommendation key such as an F3 key can be triggered; when the user needs to use the information recommendation function of the input method, an information recommendation key such as an F4 key can be triggered; when the user needs to use the voice input function of the input method, the voice input key such as a voice key is triggered.
After the user triggers the preset key, the intelligent assistant can receive a trigger instruction aiming at the preset key and then start a function related to the preset key in the input method. For example, when the intelligent assistant receives a trigger instruction for the information recommendation function, the information recommendation function may be started; when the intelligent assistant receives a trigger instruction aiming at the screen capturing function, the screen capturing function can be started; the intelligent assistant can start the expression recommendation function when receiving a trigger instruction for the expression recommendation function; when the intelligent assistant receives a trigger instruction aiming at the information recommendation function, the information recommendation function can be started; when the intelligent assistant receives a trigger instruction aiming at the voice input function, the voice input function can be started; and so on.
In summary, in the embodiments of the present invention, after receiving a trigger instruction for a preset key in the keyboard, a function associated with the preset key in an input method may be started; and then different functions of the input method can be started according to different preset keys triggered by the user.
When the preset key is an information recommendation key, an information recommendation function in an input method can be started to recommend various types of information for a user; the following may be used:
referring to fig. 2, a flowchart illustrating steps of an alternative embodiment of the data processing method of the present invention is shown, which may specifically include the following steps:
step 202, receiving a trigger instruction for an information recommendation key in a keyboard, and displaying an information recommendation interface in a preset panel of the input method.
And 204, determining target recommendation information, and displaying the target recommendation information on the information recommendation interface.
In the embodiment of the invention, when a user needs to use an intelligent assistant to recommend various types of information, an information recommendation key in a keyboard, such as an F1 key, can be triggered. Correspondingly, the intelligent assistant can receive a trigger instruction aiming at the information recommendation key; if the preset panel of the input method is in a closed state, the preset panel can be started, and an information recommendation interface is displayed in the preset panel. Wherein the preset panel may be an intelligent assistant panel. And if the preset panel of the input method is in an open state, the information recommendation interface can be directly displayed in the preset panel.
In the embodiment of the invention, the target recommendation information can be determined while the information recommendation interface is displayed, and the target recommendation information is displayed on the information recommendation interface. That is to say, the embodiment of the present invention does not limit the displaying of the information recommendation interface in the preset panel of the input method in step 202 and the determining of the execution sequence of the target recommendation information in step 204; the step 204 of determining the target recommendation information may be performed after the information recommendation interface is displayed in the preset panel of the input method in the step 202, or may be performed simultaneously with the step 202 of displaying the information recommendation interface in the preset panel of the input method.
The target recommendation information may include multiple categories, such as expressions, phrases, sentences, information, and the like; the type of the recommendation information may be set by an input method or may be set by a user through self-definition, which is not limited in the embodiment of the present invention.
The subsequent user can select the required target recommendation information from the target recommendation information displayed in the information recommendation interface according to the requirement; furthermore, in the process of inputting information by using a keyboard, a user can use the information recommendation function of the input method by triggering the information recommendation key in the keyboard, the keyboard does not need to be switched to a mouse, and the mouse is adopted to trigger the information recommendation function; the operation of the information recommendation function in the input method used by the user is simplified; and user experience can also be improved.
In summary, in the embodiment of the present invention, after receiving a trigger instruction for an information recommendation key in a keyboard, an information recommendation interface may be displayed in a preset panel of the input method; determining target recommendation information, and displaying the target recommendation information on the information recommendation interface, so that a user can use an information recommendation function of an input method by triggering an information recommendation key in a keyboard in the process of using the keyboard to input information, without switching from the keyboard to a mouse, and using the information recommendation function of the mouse; the operation of using the information recommendation function in the input method by the user is simplified, and the efficiency of using the information recommendation function is improved; and user experience can also be improved.
Referring to fig. 3, a flowchart illustrating steps of another alternative embodiment of the information recommendation method of the present invention is shown, which may specifically include the following steps:
step 302, receiving a trigger instruction for an information recommendation key in a keyboard when the preset panel is in a closed state, starting the preset panel of the input method, and displaying an information recommendation interface in the preset panel.
In an example of the present invention, when the preset panel of the input method is in the closed state, if the user needs to use the information recommendation function of the input method, an information recommendation key in the keyboard may be triggered, for example, an F1 key in the keyboard is pressed, so as to enable the information recommendation function of the input method. After the user presses the F1 key in the keyboard, the intelligent assistant may receive a trigger instruction for an information recommendation key in the keyboard, and may then launch the intelligent assistant panel and present an information recommendation interface in the intelligent assistant panel.
And step 304, acquiring the recommendation information and user behavior information corresponding to the recommendation information.
In the embodiment of the present invention, the recommendation information and the user behavior information corresponding to the recommendation information may be obtained from a local database, or the recommendation information and the user behavior information corresponding to the recommendation information may be obtained from a server, which is not limited in this embodiment of the present invention.
And step 306, selecting target recommendation information from the acquired recommendation information according to the user behavior information corresponding to the recommendation information.
Wherein the recommendation information of each category may include at least one recommendation information. For each category of recommendation information, the user behavior information of each recommendation information in the category may be analyzed to determine the popularity corresponding to each recommendation information in the category. Then, sorting each piece of recommendation information in the category according to the popularity of each piece of recommendation information in the category; and according to the sorting result, selecting the top N1 pieces of recommendation information with the highest heat as target recommendation information. N1 is a positive integer, which may be set as required, and this is not limited in this embodiment of the present invention.
The recommendation information may include a plurality of categories, such as expressions, phrases, sentences, information, and the like. For expressions, phrases, sentences, the corresponding user behavior information may include frequency of use; the usage frequency may be a usage frequency of a network-wide user. In one example, for expressions, phrases, or sentences, the frequency of usage may be taken as the corresponding degree of hotness; further, N1 emotions, N1 phrases, and N1 sentences that are used most frequently may be used as the target recommendation information.
For the information, the corresponding user behavior information may include browsing frequency, and the using frequency may be browsing frequency of the network-wide user. In one example, for the information, the browsing frequency can be used as the corresponding heat; further, the N1 pieces of information with the highest browsing frequency can be used as the target recommendation information.
And 308, displaying the target recommendation information on the information recommendation interface.
In one example, various types of target recommendation information may be sequentially presented in the information recommendation interface according to the types of the target recommendation information. The display mode of various types of target recommendation information in the information recommendation interface may be set by an input method or may be set by a user through self-definition, which is not limited in the embodiment of the present invention.
When the display modes of various types of target recommendation information on the information recommendation interface are set by the input method, multiple display modes can be set. For example, various types of target recommendation information can be set and displayed in a descending order according to the total heat; and for example, setting various types of target recommendation information, displaying according to the sequence of the update time, and the like. The total popularity of the target recommendation information of each category can be determined according to the popularity of each target recommendation information in the category; for example, for each category of target recommendation information, the corresponding total heat may be the sum of the heat of each target recommendation information in the category, or the average of the heat, etc.; the embodiments of the present invention are not limited in this regard.
In summary, in the embodiment of the present invention, recommendation information and user behavior information corresponding to the recommendation information may be obtained, and then target recommendation information is selected from the obtained recommendation information according to the user behavior information of the recommendation information; information recommendation can be directly carried out on the user after the user triggers the information recommendation key; no other operations need to be performed by the user.
Referring to fig. 4, a flowchart illustrating steps of another alternative embodiment of the data processing method of the present invention is shown, which may specifically include the following steps:
step 402, receiving a trigger instruction for an information recommendation key in a keyboard when the preset panel is in a closed state, starting the preset panel of the input method, and displaying an information recommendation interface in the preset panel.
Step 404, obtaining input associated information.
In the embodiment of the invention, after the preset panel is started and the information recommendation interface is opened in the preset panel, the intelligent assistant can acquire the input associated information. The input associated information may include various types, such as interaction information in a chat scene, usage information of other application programs, weather information, location information, and the like, which is not limited in this embodiment of the present invention. The other application may refer to an application other than the input method.
And step 406, determining target recommendation information according to the input association information.
Wherein, the input associated information can be analyzed firstly; and then searching recommendation information with high correlation degree with the input correlation information from a local database or a server based on the analysis result to be used as target recommendation information. The recommendation information may include multiple categories, such as expressions, phrases, sentences, information, and the like; from the recommendation information of each category, the top N2 recommendation information with the highest degree of association with the input association information may be searched for as the target recommendation information. N2 is a positive integer, which may be set as required, and this is not limited in this embodiment of the present invention.
And 408, displaying the target recommendation information on the information recommendation interface.
In one example, the target recommendation information of each category may be sequentially presented in the information recommendation interface according to the association degree between the target recommendation information of each category and the input association information. For example, the target recommendation information of each category may be sequentially presented in the information recommendation interface in the order from high to low according to the degree of association between the target recommendation information of each category and the input association information. The association degree between the target recommendation information of each category and the input association information may be determined according to the association degree between each target recommendation information of the category and the input association information. For example, the association degree between the target recommendation information and the input association information for each category may be the sum of the association degrees between each target recommendation information and the input association information in the category, or an average value of the association degrees; the embodiments of the present invention are not limited in this regard.
In summary, in the embodiments of the present invention, input associated information may be obtained, and then target recommendation information is determined according to the input associated information; and further, information recommendation can be directly performed for the user after the user triggers the information recommendation key, and the user does not need to perform other operations. And information associated with the user can be recommended for the user, so that the personalized requirements of the user are met.
In addition, after the preset panel is started and the information recommendation interface is displayed in the preset panel, the user behavior information of the input associated information and the recommendation information can be acquired at the same time; the target recommendation information may then be determined in conjunction with the input association information and the user behavior information. For example, the target recommendation information may be determined according to the user behavior information, and then the input association information is adopted to filter the target recommendation information. For another example, the user behavior information and the input association information may be used as information of two dimensions to jointly determine the target recommendation information; the embodiment of the invention is not limited to this, so as to improve the accuracy of information recommendation.
Referring to fig. 5, a flowchart illustrating steps of another alternative embodiment of the data processing method of the present invention is shown, which may specifically include the following steps:
step 502, if the preset panel is in an open state and an information recommendation interface is displayed, positioning a cursor to an input box of the information recommendation interface.
In an embodiment of the present invention, the information recommendation interface may be provided with an input box. After a preset panel of the input method is in an open state and an information recommendation interface is displayed in the preset panel, a user can input information in an input frame of the information recommendation interface so as to search recommendation information meeting the requirements of the user.
In one embodiment of the invention, after a preset panel of the input method is in an open state and an information recommendation interface is displayed in the preset panel, a cursor can be positioned in an input frame of the information recommendation interface; and then the user can directly use the keyboard to input information in the input box of the information recommendation interface without executing other operations of switching the cursor to the input box of the information recommendation interface.
Step 504, after the user inputs in the input box of the information recommendation interface, receiving a trigger instruction for an information recommendation key in a keyboard.
Step 506, input information is acquired.
In the embodiment of the invention, after the user finishes information input in the input frame of the information recommendation interface, the information recommendation key in the keyboard can be triggered to search recommendation information matched with the information input in the input frame of the information recommendation interface. Correspondingly, the intelligent assistant may receive a triggering instruction for an information recommendation key in a keyboard, then acquire information input by a user in an input box of the information recommendation interface, use the information input by the user in the input box of the information recommendation interface as input information, and then perform steps 508-510. Of course, after receiving the triggering instruction for the information recommendation key in the keyboard, the intelligent assistant may also obtain the input associated information, use the input associated information as the input information, and then perform steps 508-510.
In addition, in the embodiment of the invention, after receiving the trigger instruction for the information recommendation key in the keyboard, the intelligent assistant can also acquire the information input by the user in the input box of the information recommendation interface and input associated information; then, the information input by the user in the input box of the information recommendation interface and the input associated information are used as input information, and then the steps 508 to 510 are executed.
And step 508, determining target recommendation information according to the input information.
In an embodiment of the present invention, a method for determining target recommendation information according to the input information may be: and searching the expression matched with the input information. The input information can be matched with the keywords and/or the subject words and/or the labels of the expressions, the keywords and/or the subject words and/or the labels can be searched, and the expressions matched with the input information can be searched. The expression may include at least one of: picture expressions, emoji expressions, and text-to-face.
In addition, in the embodiment of the present invention, the input information may be input into a pre-trained expression generation model to generate an expression matching the input information.
In an embodiment of the present invention, a method for determining target recommendation information according to the input information may be: and beautifying the input information to obtain a beautified sentence. Wherein, the sentence containing the input information can be searched from a local database or a server; and the sentence containing the input information is used as a beautifying sentence. And also can search the statement with the same meaning as the input information expression from the local database or the server; and the sentence with the same meaning as the input information expression is used as a beautifying sentence. And the beautification sentence can also be generated by performing the expansion writing based on the input information.
In an embodiment of the present invention, a method for determining target recommendation information according to the input information may be: and associating based on the input information to obtain an association sentence. The association can be performed based on the input information, and the associated sentences can be obtained by associating poems, lyrics, hot sentences and the like matched with the input information.
In an embodiment of the present invention, a method for determining target recommendation information according to the input information may be: and translating the input information to obtain text translation information. The input information can be translated into text translation information corresponding to at least one language.
In an embodiment of the present invention, a method for determining target recommendation information according to the input information may be: and searching information related to the input information. The information may include at least one of: hot news, hot words, input statistical information and weather information; of course, other information may also be included, and the embodiment of the present invention is not limited thereto. In addition, information that may not be associated with the input information may also be searched.
In an embodiment of the present invention, a method for determining target recommendation information according to the input information may be: and searching encyclopedic information of the input information.
In an embodiment of the present invention, a method for determining target recommendation information according to the input information may be: and searching phonetic notation information of the input information. When the input information is Chinese, the pinyin corresponding to the input information can be searched; when the input information is in other languages, phonetic symbols corresponding to the languages can be searched.
And then generating target recommendation information according to one or more of expressions, beautifying sentences, association sentences, text translation information, information, encyclopedia information and phonetic notation information.
Of course, other target recommendation information may also be determined in other ways, which is not limited in this embodiment of the present invention.
In the embodiment of the invention, when the input information comprises the information input by the user in the input box of the information recommendation interface and the input associated information, the target recommendation information can be determined by combining the information input by the user in the input box and the input associated information. For example, the target recommendation information may be determined based on information input by the user in the input box; and then screening the target recommendation information based on the input association information. For another example, the information input in the input box of the information recommendation interface and the input associated information may be used as information of two dimensions to jointly determine the target recommendation information; the embodiment of the invention is not limited to this, so as to improve the accuracy of information recommendation.
And 510, displaying the target recommendation information on the information recommendation interface.
This step 510 is similar to the step 308 or the step 408, and is not described herein again.
In summary, in the embodiment of the present invention, when the preset panel of the input method is in the open state and the information recommendation interface is displayed therein, the cursor may be positioned in the input box of the information recommendation interface; and then the information can be input in the input box of the information recommendation interface without the user executing other operations, so that the user operation is simplified, and the input efficiency can be improved.
Secondly, in the embodiment of the invention, after the user inputs information in the input box of the information recommendation interface and triggers the information recommendation key, the intelligent assistant can receive a trigger instruction aiming at the information recommendation key in the keyboard and acquire the input information; then determining target recommendation information according to the input information; therefore, the user can conveniently search the information meeting the self requirement, and the accuracy of information recommendation is improved.
Referring to fig. 6, a flowchart illustrating steps of an alternative embodiment of a data processing method according to the present invention is shown, which may specifically include the following steps:
step 602, if the preset panel is in an open state and the information recommendation interface is displayed therein, receiving a trigger instruction for an information recommendation key in a keyboard after a user selects information in an application program.
In an optional embodiment of the present invention, if the preset panel is in an open state and an information recommendation interface is displayed therein; the user can directly stroke words in the application program interface (namely, the selection operation is carried out on the text (the selection operation can be realized by a keyboard, a mouse or touch control in a screen), and the information is selected.
And step 604, acquiring the information selected by the user, and determining target recommendation information according to the information selected by the user.
After the user performs the word-dividing operation in the application program, the intelligent assistant may obtain the information selected by the user, and then determine the target recommendation information based on the information selected by the user (refer to step 508). Thereby facilitating the user to search the information meeting the self requirement; the user does not need to input information in an input box of the information recommendation interface, so that the user operation is simplified, and the input efficiency and the searching efficiency are improved.
And 606, displaying the target recommendation information on the information recommendation interface.
This step 606 is similar to the step 308 described above and will not be described herein again.
In summary, in the embodiment of the present invention, when the preset panel of the input method is in the open state and the information recommendation interface is displayed in the preset panel, the user may select information in the application program; after the user selects information from other application programs and triggers the information recommendation key, the intelligent assistant can receive a trigger instruction aiming at the information recommendation key in the keyboard and acquire the information selected by the user; then, determining target recommendation information according to the user selection; therefore, the user can conveniently search the information meeting the self requirement, and the accuracy of information recommendation is improved. And the user does not need to input information in an input box of the information recommendation interface, so that the user operation is simplified, and the input efficiency and the search efficiency are improved.
In an alternative embodiment of the present invention, after the steps 302 to 308 or 402 to 408 are performed, the steps 502 to 510 or 602 to 606 may be performed. And after step 508 or step 606, the target recommendation information presented in the information recommendation interface of step 308 or step 408 may be updated based on the target recommendation information determined in step 508 or step 606.
In an optional embodiment of the present invention, the target recommendation information may include at least one of: expressions, beautification sentences, association sentences, text translation information, information, encyclopedia information and phonetic notation information. No matter which kind of recommendation information the target recommendation information is, the target recommendation information can be displayed on the screen. The method further comprises the following steps: after target recommendation information is displayed on an information recommendation interface, a selection instruction is received; and displaying the target recommendation information corresponding to the selection instruction on a screen. And then not only can improve the efficiency of user's input recommendation information, can also increase input taste.
In an optional embodiment of the present invention, when the target recommendation information is encyclopedia information or information, browsing the target recommendation information may also be performed. The method further comprises the following steps: and receiving a browsing instruction, and displaying a detail page of the target recommendation information corresponding to the browsing instruction. The input method comprises the steps of inputting target recommendation information, wherein a browser is arranged in the input method, the browser arranged in the input method can be called, and a detail page of the target recommendation information corresponding to the browsing instruction is opened in a preset panel. The third-party browser may also jump to open a detailed page of the target recommendation information corresponding to the browsing instruction, which is not limited in the embodiment of the present invention.
When the preset key is a screen capture key, a screen capture function in the input method can be started to capture the screen. Further, on the basis of the above embodiment, the embodiment of the present invention further discloses a data processing method, which can realize fast screen capture.
Referring to fig. 7, a flowchart illustrating steps of another embodiment of a data processing method according to the present invention is shown, which may specifically include the following steps:
step 702, receiving a trigger instruction for a preset screen capture key in a keyboard, and starting a screen capture function of the input method.
Step 704, determining a target area to be subjected to screen capturing, and capturing a target image corresponding to the target area.
In the embodiment of the invention, when a user needs to use the intelligent assistant to capture a screen, a screen capture key in a keyboard, such as an F2 key, can be triggered; correspondingly, the intelligent assistant can receive a triggering instruction for the screen capturing key and then can start the screen capturing function.
After the screen capturing function of the intelligent assistant is started, a target area to be captured can be automatically determined; the area to be shot can also be determined according to the operation of the user; for convenience of the following description, the region to be screenshot may be referred to as a target region. And then intercepting a target image corresponding to the target area. Therefore, a user can start the screen capturing function of the input method by triggering the keys of the keyboard, and quick screen capturing is realized.
In summary, in the embodiment of the present invention, after receiving a trigger instruction for a preset screen capture key in a keyboard, a screen capture function of the input method may be started; then determining a target area to be subjected to screen capture, and capturing a target image corresponding to the target area; therefore, the user can quickly capture the screen in the process of using the keyboard for input; the screen capture operation of the user is simplified, the screen capture efficiency is improved, and the user experience can also be improved.
In the embodiment of the present invention, the time for the user to trigger the screen capture button in the keyboard may include multiple times, and correspondingly, the mode for the intelligent assistant to determine the target area to be captured may also include multiple times, which may be as follows:
after the user selects information such as texts and pictures in the application program, screen capture keys in the keyboard are triggered; in this case, one way to determine the target area to be screenshot may be: if the user receives a trigger instruction aiming at a preset screen capture key in a keyboard after selecting information in an application program, determining an area corresponding to the information selected by the user as a target area to be captured. The application program may include an input method, and may also include other application programs besides the input method, which is not limited in this embodiment of the present invention.
When the user does not select information in the application, one way to determine the target area to be screenshot may be: and determining the area corresponding to the full screen as a target area to be subjected to screen capturing. Of course, other preset areas in the screen, such as the left half area, the right half area, the middle area, etc., may also be determined as the target area to be captured.
When the user does not select information in the application, one way to determine the target area to be screenshot may be: determining an application program where a cursor is located; and determining the display area corresponding to the application program as a target area to be subjected to screen capturing.
When the user does not select information in the application program, the user can select a screen capture area in a self-defined manner after the screen capture function of the input method is started; correspondingly, one way to determine the target area to be screenshot may be: receiving a screen capture area selection instruction; and determining a target area to be subjected to screen capturing according to the screen capturing area selection instruction.
In an optional embodiment of the present invention, after determining the target area, the user may further adjust the target area. If the user needs to adjust the target area, the user can perform adjustment operation aiming at the target area; correspondingly, the intelligent assistant can receive an adjusting instruction aiming at the target area; and updating the target area according to the adjusting instruction.
In the embodiment of the present invention, the intelligent assistant may further include an image recognition function, and the image recognition function may be used to perform text recognition on the intercepted screen image. In one example, a screen capture key may be associated with an image recognition function, and after a user triggers the screen capture key, not only screen capture but also text recognition may be performed on a captured screen image.
Referring to fig. 8, a flowchart illustrating steps of another alternative embodiment of the data processing method of the present invention is shown, which may specifically include the following steps:
step 802, receiving a trigger instruction for a preset screen capture key in a keyboard, and starting a screen capture function of the input method.
For example, during text entry using a keyboard, a user may press the F2 key in the keyboard to enable the screen capture function of the input method. After the user presses the F2 key in the keyboard, the intelligent assistant may receive a trigger instruction for a preset screen capture key in the keyboard, and start a screen capture function therein.
And step 804, determining a target area to be subjected to screen capturing.
The following description takes the user-defined selection of the screenshot area as an example.
In one example, a user can select an area of a screen that needs to be captured by operating a mouse. Correspondingly, the intelligent assistant can determine the area selected by the user according to the mouse signal; and then determining the area selected by the user as a target area.
In one example, the user can select the area of the screen needing screen capture by operating the keyboard. Correspondingly, the intelligent assistant can determine the area selected by the user according to the keyboard signal; and then determining the area selected by the user as a target area.
In one example, a user can select an area of a screen that needs to be captured by touching the screen. Correspondingly, the intelligent assistant can determine the area selected by the user according to the screen touch signal; and then determining the area selected by the user as a target area.
In the embodiment of the invention, after the target area to be subjected to screen capturing is determined, a plurality of options such as a screen capturing option, a cancel option and a text recognition option can be displayed. The user can intercept a target image in the target area by triggering a screen capture option; the screen capturing function of the intelligent assistant is closed by triggering a cancel option; and intercepting a target image in the target area and performing text recognition on the target image by triggering the text recognition option.
The user can trigger any one of a screen capture option, a cancel option and a text recognition option through the keyboard; any one of a screen capture option, a cancel option and a text recognition option can be triggered by the mouse; any one of a screen capture option, a cancel option and a text recognition option can be triggered by touch in the screen; the embodiments of the present invention are not limited in this regard.
Step 806, if a screen capture instruction is received after the target area to be captured is determined, capturing a target image corresponding to the target area, and copying the target image.
After the user triggers the screen capture option, the intelligent assistant may receive a corresponding screen capture instruction, then may capture a target image corresponding to the target area, and copy the target image.
After the user executes the paste operation, the method further comprises the following steps: receiving a pasting instruction; and pasting the target image to an input frame where a cursor is located. If the user does not switch the input frame where the cursor is located after triggering the screen capture option, the target image can be pasted to the input frame where the cursor is located before the screen capture function is started. If the user switches the input frame where the cursor is located after triggering the screen capture option, the target image can be pasted to the input frame after the cursor is switched.
Step 808, if a text recognition instruction is received after the target area to be screenshot is determined, intercepting a target image corresponding to the target area, and performing text recognition on the target image to obtain image text information corresponding to the target image and display the image text information in a preset panel of an input method.
After the user triggers the text recognition option, the intelligent assistant can receive a corresponding text recognition instruction and then can intercept a target image corresponding to the target area; and performing text recognition on the target image to obtain image text information corresponding to the target image and displaying the image text information in a preset panel of an input method. In one example, an OCR (Optical Character Recognition) technique may be adopted to perform text Recognition on the target image, so as to obtain corresponding image text information. The preset panel may be an intelligent assistant panel.
In one example of the present invention, the image text information of the target image may be presented in a preset panel in the same or similar layout as the image text information in the image.
In the embodiment of the invention, after the image text information of the target image is displayed in the preset panel, a plurality of options such as a copy option and a download option can be displayed. The user can copy the image text information by triggering the copy option; the image text information may be downloaded by triggering a download option.
The user can trigger any option of the copying option and the downloading option through the keyboard; any one of the option of copying option and option of downloading option can be triggered by the mouse; any one of the copying option and the downloading option can be triggered by touch control in the screen; the embodiments of the present invention are not limited in this regard.
After the user triggers the copy option, the intelligent assistant can receive a copy instruction and copy the image text information. The subsequent user can paste the image text information into an input box for inputting the desired target text information.
The method further comprises the following steps: receiving a pasting instruction; and pasting the image text information to an input box where a cursor is positioned. If the user does not switch the input box where the cursor is located after triggering the text recognition option, the image text information can be pasted to the input box where the cursor is located before the intelligent assistant screen capturing function is started. If the user switches the input box where the cursor is located after triggering the text recognition option, the image text information can be pasted to the input box after the cursor is switched.
In an example of the present invention, after the target image corresponding to the target area is intercepted in step 808, the target image may also be copied; and then screen capture and image recognition are simultaneously realized. And before the user does not trigger the copy option, the latest piece of copy information in the clipboard is the target image. The method further comprises the following steps: receiving a pasting instruction; and pasting the target image to an input frame where a cursor is located.
After the user triggers the download option, the intelligent assistant can receive a download instruction and download the image text information.
Step 810, if a cancel instruction is received after the target area to be screenshot is determined, closing the screenshot function of the input method.
After the user triggers the cancel option, the intelligent assistant may receive a corresponding cancel instruction, and at this time, the screen capture function of the input method may be closed to cancel the screen capture of this time. When the user needs to screen again or text recognition, the screen capture button can be triggered again.
In summary, in the embodiment of the present invention, if a text recognition instruction is received after the target area to be screenshot is determined, after the target image corresponding to the target area is captured, the step of performing text recognition on the target image to obtain and display image text information corresponding to the target image is executed; the user can directly perform text recognition on the screen-captured image after starting the screen-capturing function without using other tools or other application programs to perform text recognition on the screen-captured image; the operation of user text recognition is simplified, the text recognition efficiency is improved, and the user experience can also be improved.
In an optional embodiment of the invention, preset keys other than keys associated with other functions in the intelligent assistant may be associated with the image recognition function; that is, the preset key associated with the screen capture function and the preset key associated with the image recognition function are not the same key. And then the intelligent assistant receives a trigger instruction aiming at a preset key associated with a screen capturing function in the keyboard, starts the screen capturing function of the input method, determines a target area to be captured, and captures a target image corresponding to the target area. When the intelligent assistant receives a trigger instruction aiming at a preset key associated with an image recognition function in a keyboard, starting the image recognition function of the intelligent assistant, determining a target area to be subjected to screen capturing, and capturing a target image corresponding to the target area; and performing text recognition on the target image to obtain image text information corresponding to the target image and displaying the image text information in a preset panel of an input method. And further, the user does not need to secondarily select whether to perform screen capture or text recognition on the image. Of course, if the intelligent assistant receives a trigger instruction for a preset key associated with an image recognition function in the keyboard, the target image corresponding to the target area may be captured and copied.
When the preset key is an expression recommendation key, an expression recommendation function in the input method can be started to recommend various expressions for the user.
On the basis of the above embodiments, the embodiment of the invention provides an expression recommendation method, which can recommend various expressions for a user. The method comprises the following specific steps:
referring to fig. 9, a flowchart illustrating steps of an embodiment of an expression recommendation method according to the present invention is shown, which may specifically include the following steps:
step 902, receiving a trigger instruction for a preset expression recommendation key in a keyboard, and displaying an expression recommendation interface in a preset panel of the input method.
Step 904, determining a target expression to be recommended, and displaying the target expression in the expression recommendation interface.
In the embodiment of the invention, when a user needs to use an intelligent assistant to recommend the expression, the expression recommendation key in the keyboard, such as the F3 key, can be triggered. Correspondingly, the intelligent assistant can receive a trigger instruction aiming at the expression recommendation key; if the preset panel of the input method is in a closed state, the preset panel can be started, and the expression recommendation interface is displayed in the preset panel. Wherein the preset panel may be an intelligent assistant panel. And if the preset panel of the input method is in an open state, the expression recommendation interface can be directly displayed in the preset panel.
In the embodiment of the invention, the target expression to be recommended can be determined while the expression recommendation interface is displayed, and the target expression is displayed on the expression recommendation interface. That is to say, the embodiment of the present invention does not limit displaying an expression recommendation interface in the preset panel of the input method in step 902, and determining the execution sequence of the target expression to be recommended in step 904; the determination of the target expression to be recommended in step 904 may be performed after the expression recommendation interface is displayed in the preset panel of the input method in step 902, or may be performed simultaneously with the display of the expression recommendation interface in the preset panel of the input method in step 902.
Wherein the target expression may include at least one of: picture expressions, emoji, and text.
The subsequent user can select the required target expression from the target expressions displayed in the expression recommendation interface according to the requirement; furthermore, when a user uses the keyboard to input information, the expression recommendation function of the input method can be used by triggering the expression recommendation key in the keyboard, the keyboard does not need to be switched to the mouse, and the mouse is adopted to trigger the expression recommendation function; the operation of the expression recommendation function in the input method used by the user is simplified; and user experience can also be improved.
In summary, in the embodiment of the present invention, after receiving a trigger instruction for an expression key preset in a keyboard, an expression recommendation interface may be displayed in a preset panel of the input method; determining a target expression to be recommended, and displaying the target expression on the expression recommendation interface, so that a user can use an expression recommendation function of an input method by triggering an expression recommendation key in a keyboard in the process of using the keyboard to input information, without switching from the keyboard to a mouse, and using the expression recommendation function by triggering the mouse; the operation of the expression recommendation function in the input method used by the user is simplified, and the efficiency of using the expression recommendation function is improved; and user experience can also be improved.
Referring to fig. 10, a flowchart illustrating steps of an alternative embodiment of an expression recommendation method according to the present invention is shown, which may specifically include the following steps:
step 1002, receiving a trigger instruction for a preset expression recommendation key in a keyboard when the preset panel is in a closed state, starting the preset panel of the input method, and displaying an expression recommendation interface in the preset panel.
For example, during the process of inputting information by using the keyboard, the user can press the F3 key in the keyboard to enable the expression recommendation function of the input method. After the user presses the F3 key in the keyboard, the intelligent assistant may receive a trigger instruction for an expression recommendation key preset in the keyboard, and may then start the intelligent assistant panel and display an expression recommendation interface in the intelligent assistant panel.
And step 1004, obtaining the expressions and user behavior information corresponding to the expressions.
In the embodiment of the present invention, the expression and the user behavior information corresponding to the expression may be obtained from a local database, and the expression and the user behavior information corresponding to the expression may also be obtained from a server.
Step 1006, selecting a target expression to be recommended from the acquired expressions according to the user behavior information corresponding to the recommended expression.
Wherein each kind of expression may include at least one expression. For each category of target expressions, analysis may be performed based on user behavior information of each expression in the category, and a heat corresponding to each expression in the category is determined. Then, according to the heat degree of each expression in the category, sequencing each expression in the category; and according to the sorting result, selecting the top N3 expressions with the highest heat as target expressions. N3 is a positive integer, which may be set as required, and this is not limited in this embodiment of the present invention.
Wherein the user behavior information may include a frequency of use; the usage frequency may be a usage frequency of a network-wide user. In one example, the frequency of use may be used as the heat corresponding to each expression; further, the N3 expressions with the highest frequency of use may be used as the target expressions.
And step 1008, displaying the target expression on the expression recommendation interface.
In one example, target expressions of various types may be sequentially presented in the expression recommendation interface according to the types of the target expressions. The display mode of various target expressions on the expression recommendation interface can be set by an input method or by user definition, which is not limited in the embodiment of the present invention.
When the display modes of various target expressions on the expression recommendation interface are set by the input method, multiple display modes can be set. For example, various target expressions can be set and displayed in descending order according to the total heat; and setting various target expressions, displaying according to the sequence of the updated time, and the like. The total heat of the target expression of each category can be determined according to the heat of each target expression in the category; for example, for each category of target expressions, the corresponding total heat may be the sum of the heat of each target expression in the category, or the average of the heat, etc.; the embodiments of the present invention are not limited in this regard.
In summary, in the embodiment of the present invention, user behavior information corresponding to expressions and expressions may be acquired, and then a target expression is selected from the acquired expressions according to the user behavior information of the expressions; and furthermore, after the user triggers the expression recommendation key, expression recommendation can be directly performed for the user without executing other operations by the user.
Referring to fig. 11, a flowchart illustrating steps of another alternative embodiment of an expression recommendation method according to the present invention is shown, which may specifically include the following steps:
step 1102, receiving a trigger instruction for a preset expression recommendation key in a keyboard when the preset panel is in a closed state, starting the preset panel of the input method, and displaying an expression recommendation interface in the preset panel.
And step 1104, acquiring input associated information.
In the embodiment of the invention, after the preset panel of the input method is started and the expression recommendation interface is opened in the preset panel, the intelligent assistant can acquire input associated information. The input associated information may include various types, such as interaction information in a chat scene, usage information of other application programs, weather information, location information, and the like, which is not limited in this embodiment of the present invention.
Step 1106, determining the target expression according to the input associated information.
Wherein, the input associated information can be analyzed firstly; and then, based on the analysis result, searching the expression with high correlation degree with the input correlation information from a local database or a server to be used as a target expression. Among them, the top N4 expressions with the highest degree of association with the input association information can be searched from the expressions of each category as the target expression. N4 is a positive integer, which may be set as required, and this is not limited in this embodiment of the present invention.
And 1108, displaying the target expression on the expression recommendation interface.
In an example, the target expressions of various types may be sequentially displayed in the expression recommendation interface according to the association degrees between the target expressions of various types and the input association information. For example, the target expressions of the various types may be sequentially presented in the expression recommendation interface in the order from high to low according to the association degrees between the target expressions of the various types and the input association information. The association degree between the target expression of each category and the input association information may be determined according to the association degree between each target expression in the category and the input association information. For example, the association degree between the target expression of each category and the input association information may be the sum of the association degrees between the target expressions of the category and the input association information, or an average value of the association degrees; the embodiments of the present invention are not limited in this regard.
In summary, in the embodiments of the present invention, input associated information may be acquired, and then a target expression is determined according to the input associated information; and furthermore, after the user triggers the expression recommendation key, expression recommendation can be directly performed for the user without executing other operations by the user. And information associated with the user can be recommended for the user, so that the personalized requirements of the user are met.
In addition, after a preset panel of the input method is started and an expression recommendation interface is displayed in the preset panel, input associated information and user behavior information of expressions can be acquired simultaneously; the target expression may then be determined in conjunction with the input association information and the user behavior information. For example, the target expression may be determined according to the user behavior information, and then the target expression may be screened by inputting the associated information. For another example, the user behavior information and the input associated information may be used as information of two dimensions to jointly determine the target expression; the embodiment of the invention does not limit the method, so as to improve the accuracy of the expression recommendation.
Referring to fig. 12, a flowchart illustrating steps of another alternative embodiment of the expression recommendation method according to the present invention is shown, and specifically, the method may include the following steps:
step 1202, if the preset panel is in an open state and an expression recommendation interface is displayed in the preset panel, positioning a cursor to an input box of the expression recommendation interface.
In an embodiment of the invention, the expression recommendation interface may be provided with an input box. If the preset panel of the input method is in the open state and the expression recommendation interface is displayed in the preset panel, the user can input information in the input frame of the expression recommendation interface so as to search for the expression meeting the self requirement.
In one embodiment of the invention, after a preset panel of the input method is in an open state and an expression recommendation interface is displayed in the preset panel, a cursor can be positioned in an input frame of the expression recommendation interface; and then the user can directly use the keyboard to input information in the input box of the expression recommendation interface without executing other operations of switching the cursor to the input box of the expression recommendation interface.
Step 1204, receiving a trigger instruction for an expression recommendation key preset in the keyboard after the user inputs the expression recommendation key in the input box of the expression recommendation interface.
And step 1206, acquiring the input information.
In the embodiment of the invention, after the user finishes information input in the input box of the expression recommendation interface, the expression recommendation key in the keyboard can be triggered to search the expression matched with the information input in the input box of the expression recommendation interface. Correspondingly, the intelligent assistant may receive a trigger instruction for an expression recommendation key preset in the keyboard, then acquire information input by the user in an input box of the expression recommendation interface, use the information input by the user in the input box of the expression recommendation interface as input information, and then execute steps 1208-1210. Of course, after receiving the triggering instruction for the emotion recommendation key in the keyboard, the intelligent assistant may also obtain the input associated information, use the input associated information as the input information, and then execute steps 1208-1210.
In addition, in the embodiment of the invention, after receiving the trigger instruction for the expression recommendation key in the keyboard, the intelligent assistant can also acquire the information and input associated information input by the user in the input box of the expression recommendation interface; then, the information input by the user in the input box of the expression recommendation interface and the input associated information are used as input information, and then the steps 1208 to 1210 are executed.
And 1208, determining the target expression according to the input information.
In an embodiment of the present invention, a method for determining a target expression according to the input information may be: and matching the input information with the keywords and/or the subject terms and/or the labels of the expressions, searching the keywords and/or the subject terms and/or the labels, and obtaining the target expression matched with the input information.
In addition, in the embodiment of the present invention, the input information may be input into a pre-trained expression generation model to generate a target expression matched with the input information.
Of course, the target expression may also be determined in other ways, which is not limited in this embodiment of the present invention.
In the embodiment of the invention, when the input information comprises the information input by the user in the input box of the expression recommendation interface and the input associated information, the target expression can be determined by combining the information input by the user in the input box and the input associated information. The target expression may be determined, for example, based on information entered by the user in the input box; and then screening the target expression based on the input associated information. For another example, the information input in the input box of the expression recommendation interface and the input association information may be used as information of two dimensions to jointly determine the target expression; the embodiment of the invention does not limit the method, so as to improve the accuracy of the expression recommendation.
And step 1210, displaying the target expression on the expression recommendation interface.
This step 1210 is similar to the above step 1008 or step 1108, and will not be described herein again.
In summary, in the embodiment of the present invention, after the preset panel of the input method is in the open state and the expression recommendation interface is displayed in the preset panel, the cursor may be positioned in the input frame of the expression recommendation interface; and then, information can be input in the input box of the expression recommendation interface without the need of a user to perform other operations, so that the user operation is simplified, and the input efficiency can be improved.
Secondly, in the embodiment of the invention, after a user inputs information in an input box of the expression recommendation interface and triggers the expression recommendation key, the intelligent assistant can receive a trigger instruction aiming at the expression recommendation key preset in the keyboard and acquire the input information; then determining a target expression according to the input information; therefore, the user can conveniently find the expression meeting the self requirement, and the accuracy of the expression recommendation is improved.
Referring to fig. 13, a flowchart illustrating steps of another alternative embodiment of an expression recommendation method according to the present invention is shown, which may specifically include the following steps:
step 1302, if the preset panel is in an open state and the expression recommendation interface is displayed therein, receiving a trigger instruction for an expression recommendation key in a keyboard after the information selected by the user in the application program.
In an optional embodiment of the present invention, if the preset panel is in an open state and an expression recommendation interface is displayed therein; the user can directly stroke words in the application program interface (namely, the selection operation is carried out on the text (the selection operation can be realized by a keyboard, a mouse or touch control in a screen), and the information is selected.
And 1304, acquiring the information selected by the user, and determining the target expression according to the information selected by the user.
After the user performs the word-stroke operation in the application program, the intelligent assistant may obtain the information selected by the user, and then determine the target expression based on the information selected by the user (refer to step 1208). The user can conveniently search the expression meeting the self requirement; the user does not need to input information in an input box of the expression recommendation interface, user operation is simplified, and input efficiency and searching efficiency are improved.
Step 1306, displaying the target expression on the expression recommendation interface.
This step 1306 is similar to the above step 1008 or step 1108, and will not be described herein again.
In summary, in the embodiment of the present invention, when the preset panel of the input method is in the open state and the expression recommendation interface is displayed in the preset panel, the user may select information in the application program; after the user selects information in other application programs and triggers the expression recommendation key, the intelligent assistant can receive a triggering instruction aiming at the expression recommendation key in the keyboard and acquire the information selected by the user; then determining a target expression according to the user selection; therefore, the user can conveniently find the expression meeting the self requirement, and the accuracy of the expression recommendation is improved. And the user does not need to input information in an input box of the expression recommendation interface, so that the user operation is simplified, and the input efficiency and the searching efficiency are improved.
In an optional embodiment of the present invention, after steps 1002 to 1008 or steps 1102 to 1108 are performed, steps 1202 to 1210 or steps 1302 to 1306 may be performed; and after step 1210 or step 1306, updating the target expression displayed in the expression recommendation interface of step 1008 or step 1108 based on the target expression determined in step 1210 or step 1306.
In an optional embodiment of the present invention, the method further comprises: receiving a selection instruction after the target expression is displayed on the expression recommendation interface; and displaying the target expression corresponding to the selection instruction on a screen. And then not only can improve the efficiency of user's input expression, can also increase input taste.
When the preset key is the information recommendation key, an information recommendation function in the input method can be started to recommend various information for the user.
On the basis of the above embodiments, the embodiments of the present invention provide an information recommendation method, which can recommend various information for a user. The method comprises the following specific steps:
referring to fig. 14, a flowchart illustrating steps of an embodiment of an information recommendation method according to the present invention is shown, which may specifically include the following steps:
step 1402, receiving a trigger instruction for a preset information recommendation key in a keyboard, and displaying an information recommendation interface in a preset panel of the input method.
Step 1404, determining target information to be recommended, and displaying the target information in the information recommendation interface.
In the embodiment of the invention, when a user needs to use the intelligent assistant to recommend information, an information recommendation key in a keyboard, such as a key F4, can be triggered. Correspondingly, the intelligent assistant can receive a trigger instruction aiming at the information recommendation key, and if the preset panel of the input method is in a closed state, the preset panel can be started, and the information recommendation interface is displayed in the preset panel. Wherein the preset panel may be an intelligent assistant panel. If the preset panel of the input method is in the open state, the information recommendation interface can be directly displayed in the preset panel.
In the embodiment of the invention, the target information to be recommended can be determined while the information recommendation interface is opened, and the target information is displayed on the information recommendation interface. That is, the embodiment of the present invention does not limit the information recommendation interface displayed in the preset panel of the input method in step 1402 and the execution sequence of the target information determined in step 1404; the step 1404 of determining the target information may be performed after the information recommendation interface is displayed in the preset panel of the input method in the step 1402, or may be performed simultaneously with the step 1402 of displaying the information recommendation interface in the preset panel of the input method.
Wherein, the target information may include at least one of the following: weather information, input statistical information, hot words, hot news, and the like.
The subsequent user can select the required target information from the target information displayed in the information recommendation interface according to the requirement; furthermore, in the process of inputting information by using the keyboard, a user can use the information recommendation function of the input method by triggering the information recommendation key in the keyboard, the keyboard does not need to be switched to the mouse, and the mouse is adopted to trigger the information recommendation function; the operation of the user using the information recommendation function in the input method is simplified; and user experience can also be improved.
In summary, in the embodiment of the present invention, after receiving a trigger instruction for an information key preset in a keyboard, an information recommendation interface may be displayed in a preset panel of the input method; determining target information to be recommended, and displaying the target information on the information recommendation interface, so that a user can use an information recommendation function of an input method by triggering an information recommendation key in a keyboard in the process of using the keyboard to input information, the keyboard does not need to be switched to a mouse, and the mouse is used for triggering the information recommendation function; the operation of using the information recommendation function in the input method by the user is simplified, and the efficiency of using the information recommendation function is improved; and user experience can also be improved.
Referring to fig. 15, a flowchart illustrating steps of an alternative embodiment of the information recommendation method of the present invention is shown, which may specifically include the following steps:
step 1502, receiving a trigger instruction for a preset information recommendation key in a keyboard when the preset panel is in a closed state, starting the preset panel of the input method, and displaying an information recommendation interface in the preset panel.
For example, during the process of inputting information by using the keyboard, the user can press the F4 key of the keyboard to activate the information recommendation function of the input method. After the user presses the F4 key of the keyboard, the intelligent assistant may receive a trigger instruction for a preset information recommendation key of the keyboard, and may then start the intelligent assistant panel and present an information recommendation interface in the intelligent assistant panel.
Step 1504, obtaining the information and the user behavior information corresponding to the information.
In the embodiment of the present invention, the information and the user behavior information corresponding to the information may be obtained from a local database, or the information and the user behavior information corresponding to the information may be obtained from a server, which is not limited in this embodiment of the present invention.
And 1506, selecting target information to be recommended from the acquired information according to the user behavior information corresponding to the recommended information.
Wherein each kind of information may include at least one piece of information. For each type of target information, the user behavior information of each information in the type can be analyzed to determine the corresponding heat of each information in the type. Then, according to the heat degree of each information in the category, each information in the category can be sorted; and according to the sorting result, the top N5 information with the highest heat degree are selected as the target information. N5 is a positive integer, which may be set as required, and this is not limited in this embodiment of the present invention.
Wherein the user behavior information may include browsing frequency; the browsing frequency may be a browsing frequency of a full-network user. In one example, the browsing frequency can be used as the corresponding heat of each information; further, the N5 information with the highest browsing frequency can be used as the target information.
Step 1508, displaying the target information on the information recommendation interface.
In one example, various types of target information may be sequentially presented in the information recommendation interface according to the types of the target information. The display mode of various types of target information in the information recommendation interface can be set by an input method or by user definition, which is not limited in the embodiment of the invention.
When the display modes of various types of target information on the information recommendation interface are set by the input method, various display modes can be set. For example, various kinds of target information can be set and displayed in descending order according to the total heat; and for example, setting various kinds of target information, displaying according to the sequence of the updating time, and the like. Wherein, the total heat of the target information of each category can be determined according to the heat of each target information in the category; for example, for each type of target information, the corresponding total heat may be the sum of the heat of each item of target information in the type, or the average heat; the embodiments of the present invention are not limited in this regard.
In summary, in the embodiment of the present invention, information and user behavior information corresponding to the information can be obtained, and then target information is selected from the obtained information according to the user behavior information of the information; and further, information recommendation can be directly performed for the user after the user triggers the information recommendation key, and the user does not need to perform other operations.
Referring to fig. 16, a flowchart illustrating steps of another alternative embodiment of the information recommendation method of the present invention is shown, which may specifically include the following steps:
step 1602, receiving a trigger instruction for a preset information recommendation key in a keyboard when the preset panel is in a closed state, starting the preset panel of the input method, and displaying an information recommendation interface in the preset panel.
Step 1604, obtaining input associated information.
In the embodiment of the invention, after the preset panel of the input method is started and the information recommendation interface is opened in the preset panel, the intelligent assistant can acquire input associated information. The input associated information may include various types, such as interaction information in a chat scene, usage information of other application programs, weather information, location information, and the like, which is not limited in this embodiment of the present invention.
Step 1606, determining the target information according to the input associated information.
Wherein, the input associated information can be analyzed firstly; then, based on the analysis result, the information with high correlation degree with the input correlation information is searched from the local database or the server to be used as the target information. Among them, the top N6 information items with the highest relevance to the input related information can be searched from each kind of information as the target information. N6 is a positive integer, which may be set as required, and this is not limited in this embodiment of the present invention.
Step 1608, displaying the target information on the information recommendation interface.
In one example, various types of target information may be sequentially presented in the information recommendation interface according to the relevance between the various types of target information and the input relevance information. For example, the various types of target information may be sequentially presented in the information recommendation interface in order from high to low according to the degree of association between the various types of target information and the input association information. The degree of association between the target information of each category and the input associated information can be determined according to the degree of association between each target information of the category and the input associated information. For example, the relevance between the target information and the input relevant information for each category may be the sum of the relevance between each target information and the input relevant information in the category, or the average value of the relevance; the embodiments of the present invention are not limited in this regard.
In summary, in the embodiments of the present invention, input associated information may be obtained, and then target information is determined according to the input associated information; and further, information recommendation can be directly performed for the user after the user triggers the information recommendation key, and the user does not need to perform other operations. And information associated with the user can be recommended for the user, so that the personalized requirements of the user are met.
In addition, after a preset panel of the input method is started and an information recommendation interface is displayed in the preset panel, user behavior information of input associated information and information can be acquired at the same time; the target information may then be determined in conjunction with the input association information and the user behavior information. For example, the target information may be determined according to the user behavior information, and then the input associated information is used to screen the target information. For another example, the user behavior information and the input related information may be used as information of two dimensions to jointly determine the target information; the embodiment of the invention is not limited to this, so as to improve the accuracy of information recommendation.
Referring to fig. 17, a flowchart illustrating steps of another alternative embodiment of the information recommendation method of the present invention is shown, which may specifically include the following steps:
step 1702, if the preset panel is in an open state and the information recommendation interface is displayed therein, positioning a cursor to an input box of the information recommendation interface.
In an embodiment of the present invention, the information recommendation interface may be provided with an input box. After a preset panel of the input method is in an open state and an information recommendation interface is displayed in the preset panel, a user can input information in an input frame of the information recommendation interface so as to search information meeting the self requirement.
In one embodiment of the invention, after a preset panel of the input method is in an open state and an information recommendation interface is displayed in the preset panel, a cursor can be positioned in an input frame of the information recommendation interface; and then the user can directly use the keyboard to input information in the input box of the information recommendation interface without executing other operations of switching the cursor to the input box of the information recommendation interface.
Step 1704, after the user inputs in the input frame of the information recommendation interface, receiving a trigger instruction for an information recommendation key preset in the keyboard.
Step 1706, the input information is obtained.
In the embodiment of the invention, after the user finishes information input in the input frame of the information recommendation interface, the information recommendation key in the keyboard can be triggered again to search the information matched with the information input in the input frame of the information recommendation interface. Correspondingly, the intelligent assistant may receive a trigger instruction for an information recommendation key preset in the keyboard, then acquire information input by the user in an input box of the information recommendation interface, use the information input by the user in the input box of the information recommendation interface as input information, and then execute steps 1708-1710. Of course, after receiving the trigger command for the information recommendation key in the keyboard, the intelligent assistant may also obtain the input associated information, use the input associated information as the input information, and then perform steps 1708-1710.
In addition, in the embodiment of the invention, after receiving the trigger instruction for the information recommendation key in the keyboard, the intelligent assistant can also acquire the information input by the user in the input box of the information recommendation interface and input associated information; then, the information input by the user in the input box of the information recommendation interface and the input associated information are used as input information, and then steps 1708-1710 are executed.
Step 1708, determining target information according to the input information.
In an embodiment of the present invention, a method for determining the target information according to the input information may be: matching the input information with the keywords and/or the subject words and/or the labels of the information, searching the keywords and/or the subject words and/or the labels, and obtaining the target information matched with the input information.
Of course, the target information may also be determined in other ways, which is not limited in the embodiment of the present invention.
In the embodiment of the invention, when the input information comprises the information input by the user in the input box of the information recommendation interface and the input associated information, the target information can be determined by combining the information input by the user in the input box and the input associated information. For example, the target information can be determined based on the information input by the user in the input box; and then screening the target information based on the input associated information. For another example, the information input in the input box of the information recommendation interface and the input associated information can be used as information of two dimensions to jointly determine the target information; the embodiment of the invention is not limited to this, so as to improve the accuracy of information recommendation.
And step 1710, displaying the target information on the information recommendation interface.
This step 1710 is similar to step 1608 or step 1508 described above and will not be described further herein.
In summary, in the embodiment of the present invention, after the preset panel of the input method is in the open state and the information recommendation interface is displayed in the preset panel, the cursor may be positioned in the input frame of the information recommendation interface; and then the information can be input in the input box of the information recommendation interface without the user executing other operations, so that the user operation is simplified, and the input efficiency can be improved.
Secondly, in the embodiment of the invention, after the user inputs information in the input box of the information recommendation interface and triggers the information recommendation key, the intelligent assistant can receive a trigger instruction aiming at the preset information recommendation key in the keyboard and acquire the input information; then, determining target information according to the input information; therefore, the user can conveniently search the information meeting the self requirement, and the accuracy of information recommendation is improved.
Referring to fig. 18, a flowchart illustrating steps of another alternative embodiment of the information recommendation method of the present invention is shown, which may specifically include the following steps:
step 1802, if the preset panel is in the open state and the information recommendation interface is displayed in the preset panel, receiving a trigger instruction for an information recommendation key in the keyboard after the information selected by the user in the application program.
In an optional embodiment of the present invention, if the preset panel is in the open state and the information recommendation interface is displayed therein; the user can directly stroke words in the application program interface (namely, the selection operation is carried out on the text (the selection operation can be realized by a keyboard, a mouse or touch control in a screen), and the information is selected.
Step 1804, obtaining the information selected by the user, and determining the target information according to the information selected by the user.
After the user performs the word segmentation operation in the application program, the intelligent assistant may obtain the information selected by the user, and then determine the target information based on the information selected by the user (refer to step 1708). Thereby facilitating the user to search the information meeting the self requirement; the user does not need to input information in an input box of the information recommendation interface, so that the user operation is simplified, and the input efficiency and the searching efficiency are improved.
Step 1806, displaying the target information on the information recommendation interface.
This step 1806 is similar to step 1608 or step 1508, and will not be described again here.
In summary, in the embodiment of the present invention, when the preset panel of the input method is in the open state and the information recommendation interface is displayed in the preset panel, the user may select information in the application program; after the user selects information in other application programs and triggers the information recommendation key, the intelligent assistant can receive a trigger instruction aiming at the information recommendation key in the keyboard and acquire the information selected by the user; then, determining target information according to the user selection; therefore, the user can conveniently search the information meeting the self requirement, and the accuracy of information recommendation is improved. And the user does not need to input information in an input box of the information recommendation interface, so that the user operation is simplified, and the input efficiency and the searching efficiency are improved.
In an optional embodiment of the present invention, after steps 1502 to 1508 or steps 1602 to 1608 are performed, steps 1702 to 1710 or steps 1802 to 1806 are performed; and after step 1710 or step 1806, the target information displayed in the information recommendation interface of step 1508 or step 1608 may be updated based on the target information determined in step 1710 or step 1806.
In an optional embodiment of the present invention, the method further comprises: and receiving a browsing instruction, and displaying a detail page of the target information corresponding to the browsing instruction. The input method is provided with a browser, the browser built in the input method can be called, and a detail page of the target information corresponding to the browsing instruction is opened on a preset panel. The third-party browser may also jump to open the detail page of the target information corresponding to the browsing instruction, which is not limited in the embodiment of the present invention.
When the preset key is a voice input key, a voice input function in the input method can be started to perform voice input.
On the basis of the above embodiment, the embodiment of the present invention further provides a voice input method to implement voice input; the following may be used:
referring to fig. 19, a flowchart illustrating steps of an embodiment of a speech input method according to the present invention is shown, which may specifically include the following steps:
step 1902, receiving a trigger instruction for a preset voice input key in the keyboard, and starting a voice input function of the input method.
Step 1904, obtaining voice data and performing voice recognition on the voice data.
And 1906, performing corresponding operation according to the voice recognition result.
In the embodiment of the invention, when a user needs to use the intelligent assistant to perform voice input (such as a voice input instruction, a voice input text and the like), a voice input key in a keyboard can be triggered, such as a voice key; correspondingly, the intelligent assistant can receive a triggering instruction for the voice input key and then can start the voice input function.
After a user triggers a voice input key in the keyboard, voice input can be carried out; in the process of inputting voice by a user, the intelligent assistant can acquire voice data input by the user, then can perform voice recognition on the voice data, determine a corresponding voice recognition result, and execute an operation corresponding to the voice recognition result. For example, the voice recognition result may be a voice instruction, and an operation corresponding to the voice instruction may be executed; also for example, the speech recognition result may be speech text information, the speech text information may be displayed on a screen, and so on.
In summary, in the embodiments of the present invention, after receiving a trigger instruction for a preset voice input key in a keyboard, a voice input function of an input method can be started; then acquiring voice data, performing voice recognition on the voice data, and performing corresponding operation according to a voice recognition result; furthermore, when a user uses the keyboard to input information, the voice input function of the input method can be used by triggering the voice input key in the keyboard to input voice, the keyboard does not need to be switched to the mouse, and the mouse is adopted to trigger the voice input function; the operation of the voice input function of the user using the input method is simplified, and the efficiency of using the voice input function is improved; and user experience can also be improved.
In the embodiment of the invention, after the voice input function of the input method is started, a user can be allowed to input a voice instruction so as to control other application programs or other input functions; voice input of text information may also be allowed.
In one example, after the intelligent assistant acquires the voice data, the voice data may be subjected to instruction recognition and text recognition. If the voice data is successfully identified as the corresponding voice command, corresponding prompt information can be generated and displayed; to prompt the user whether to enter a voice command or text. In one example, the prompt message may be presented in a pop-up window. The manner of displaying the prompt message by the pop-up window includes various manners, such as displaying the text message of "whether to input an instruction" and displaying two options of "yes" and "no". As another example, two options, "enter instruction" and "on screen text" are presented directly. Also for example, it shows "whether to enter an instruction or to screen text", and shows two options of "instruction" and "text".
When the user determines to input the voice command, the corresponding option can be triggered; correspondingly, the input method may receive first execution information, where the first execution information may be confirmation information for executing an operation corresponding to the voice command. At this time, the intelligent assistant may perform an operation corresponding to the voice instruction.
When the user determines to input the text, the corresponding option can be triggered; correspondingly, the input method may receive second execution information, where the second execution information may be confirmation information for executing the on-screen text information; and displaying the voice text information corresponding to the voice data on a screen. At this time, the intelligent assistant may screen the voice text information corresponding to the voice data.
Wherein, the user can trigger the option through the keyboard; the option can also be triggered by a mouse; the options can also be triggered through touch in the screen; the embodiments of the present invention are not limited in this regard.
Certainly, in order to avoid making the user perform the secondary selection, in the embodiment of the present invention, at least two triggering manners may be set for the voice input key in advance, wherein at least one triggering manner is used for inputting the voice instruction; and the other at least one trigger mode is used for inputting text information. For convenience of subsequent description, the triggering mode for inputting the voice instruction may be referred to as a first triggering mode; the trigger mode for inputting text information is referred to as a second trigger mode.
When a user needs to input a voice command, a first triggering mode can be adopted to trigger the voice input key; correspondingly, the triggering instruction received by the intelligent assistant for the preset voice input key in the keyboard may be a first preset instruction. When a user needs to input text information, a second triggering mode can be adopted to trigger the voice input key; correspondingly, the triggering instruction received by the intelligent assistant for the preset voice input key in the keyboard may be a second preset instruction.
The following description will take the example of triggering the voice input key by the first triggering method.
Referring to fig. 20, a flowchart illustrating steps of an alternative embodiment of the voice input method of the present invention is shown, which may specifically include the following steps:
step 2002, receiving a trigger instruction for a preset voice input key in a keyboard, and starting a voice input function of an input method; the trigger instruction is a first preset instruction.
When the user needs to input the voice command, the voice input key can be triggered by adopting a first triggering mode. The first trigger mode may be set as required, for example, a long press of a voice input key, and the like, which is not limited in this embodiment of the present invention.
After the user triggers the voice input key by adopting the first triggering mode, the intelligent assistant can receive the first preset instruction and then can start the voice input function.
In an example of the present invention, while the voice input function is started, the preset panel may be started and a voice instruction input interface may be displayed in the preset panel to prompt a user that a voice instruction input may be performed.
In one example of the invention, when the voice input function is started, the voice instruction input floating window can also be started; and furthermore, the interference of the user to use other application programs is reduced while the user is prompted to input the voice command.
And step 2004, acquiring voice data and performing instruction recognition on the voice data to obtain a voice instruction.
The user can input voice data in the process of long pressing the voice input key; during the process of inputting voice data by a user, the intelligent assistant can acquire the voice data and then perform instruction recognition on the voice data to determine a corresponding voice instruction.
The voice data can be subjected to voice enhancement, and then command recognition is carried out on the basis of the voice data subjected to voice enhancement; to improve the accuracy of instruction recognition. In one example, the voice-enhanced voice data may be input into the instruction recognition model, resulting in a voice instruction output by the instruction recognition model.
The voice command may include a command for controlling the other application, such as a start command of the other application, a close command of the other application, and the like. Instructions for operating in other applications, such as opening instructions for web pages, search instructions, may also be included. The method can also comprise instructions for the user to operate in the input method, such as a screen-up instruction of preset content, an instruction for switching Chinese/English input, an instruction for switching Chinese/English symbols, an instruction for starting an information recommendation function, an instruction for starting a screen capture function, an instruction for starting an expression recommendation function, an instruction for starting an information recommendation function, and the like.
Preset contents can be preset, and voice instructions corresponding to the preset contents on the screen can be set; for example, the preset content "if a life is just as a beginner, what autumn wind sads and draws fan", and the corresponding voice command may be "if a life is just as a beginner". If the preset content "do not like things like.
And step 2006, executing the operation corresponding to the voice instruction.
And then the operation corresponding to the voice instruction can be executed.
For example, if the voice data is "open browser", the intelligent assistant recognizes that the voice command is: the starting instruction of the browser can start a default browser of a user.
For another example, if the voice data is "open a document", the intelligent assistant recognizes that the voice command is: and starting the document according to the starting instruction of the document.
For another example, the voice data is "search x web page", and the intelligent assistant may recognize that the voice command is: opening instruction of the web page. If a browser in an open state currently exists, the intelligent assistant may open a web page in the browser. If no browser in the open state exists currently, the intelligent assistant may start the default browser and open a web page in the browser. In addition, the input method is provided with a browser, the browser built in the input method can be called, and a web page is opened in a preset panel.
For another example, the voice data is "Yueyanglouji", and the intelligent assistant can recognize that the voice command is: and the screen-loading instruction of 'not fond things but not sorrow' loads the corresponding preset content 'not fond things but not sorrow' on the screen.
For another example, the voice data is "recommended expressions," and the intelligent assistant may recognize that the voice command is: and the starting instruction of the expression recommendation function can open an expression recommendation interface in a preset panel.
In summary, in the embodiment of the present invention, after receiving a first preset instruction for a preset voice input key in a keyboard, a voice input function of an input method may be started, and then voice data is obtained and instruction recognition is performed on the voice data, so as to obtain a voice instruction and execute an operation corresponding to the voice instruction; thereby realizing the voice input instruction.
Secondly, the voice instruction comprises at least one of the following: starting instructions of other application programs, closing instructions of other application programs, opening instructions of a webpage, searching instructions, screen-up instructions of preset content, starting instructions of an information recommendation function, starting instructions of a screen capture function, starting instructions of an expression recommendation function and starting instructions of an information recommendation function; and furthermore, the voice can be controlled for other application programs, and the voice can be operated in other application programs and input methods.
The following description will take the example of triggering the voice input key by using the second triggering method.
Referring to fig. 21, a flowchart illustrating steps of another alternative embodiment of the voice input method of the present invention is shown, which may specifically include the following steps:
step 2102, receiving a trigger instruction aiming at a preset voice input key in a keyboard, and starting a voice input function of an input method; the trigger instruction is a second preset instruction.
When the user needs to input text by voice, the voice input key can be triggered by adopting a second triggering mode. The second triggering mode may be set as required, such as double-clicking a voice input key, and the like, which is not limited in this embodiment of the present invention.
After the user triggers the voice input key by adopting the second triggering mode, the intelligent assistant can receive a second preset instruction and then can start the voice input function.
In one example of the present invention, while the voice input function is enabled, the preset panel may be enabled and the voice text input interface may be displayed in the preset panel to prompt the user that a voice input text may be made.
In one example of the invention, the voice text input floating window can be started at the same time of starting the voice input function; and further, the user is prompted to input the text in a voice mode, and meanwhile interference of the user in using other application programs is reduced.
Step 2104, voice data is obtained and text recognition is carried out on the voice data to obtain voice text information.
Wherein, the user can input voice data after double-clicking the voice input key; during the process of inputting voice data by a user, the intelligent assistant can acquire the voice data, and then perform text recognition on the voice data to determine corresponding voice text information.
The voice data can be subjected to voice enhancement, and then text recognition is carried out based on the voice data subjected to voice enhancement; to improve the accuracy of instruction recognition. In one example, the speech-enhanced speech data may be input into a text recognition model, resulting in speech text information that is output by the command recognition model.
In an example, a user may set a language of voice data to be input in a voice text input interface, and the intelligent assistant may perform text recognition on the voice data input by the user according to the language set by the user to obtain voice text information corresponding to the language set by the user.
Step 2106, displaying the voice text information.
Then, the recognized voice text information can be displayed on the screen in the input box where the cursor is located; thereby realizing the text input by voice.
In summary, in the embodiment of the present invention, after receiving a second preset instruction for a preset voice input key in a keyboard, a voice input function of an input method may be started, and then voice data is obtained and text recognition is performed on the voice data, so as to obtain voice text information and screen the voice text information; and then the voice input is realized while the voice input text is displayed on the screen.
Referring to fig. 22, a flowchart illustrating steps of another alternative embodiment of the voice input method of the present invention is shown, which may specifically include the following steps:
step 2202, receiving a trigger instruction for a preset voice input key in a keyboard, and starting a voice input function of an input method; the trigger instruction is a second preset instruction.
Step 2204, acquiring voice data and performing text recognition on the voice data to obtain voice text information.
Steps 2202 to 2204 are similar to steps 2102 to 2104 described above, and will not be described herein again.
Step 2206, translating the voice text information obtained by text recognition to obtain voice translation information.
In the embodiment of the invention, after the voice data is subjected to text recognition to obtain the voice text information, the voice text information can be translated to obtain the voice translation information.
In one example, the intelligent assistant may determine the top M languages that the user uses most frequently; the speech text information obtained by text recognition can be translated into speech translation information corresponding to other M-1 (or M) languages besides the language corresponding to the speech text information. Where M is a positive integer, and may be set as required, which is not limited in this embodiment of the present invention.
In one example, a user may set a target language in a voice text input interface, and the intelligent assistant may translate the voice text information into voice translation information corresponding to the target language; the target language may be one or more, and the embodiment of the present invention is not limited thereto.
And step 2208, displaying the voice translation information on a screen.
In summary, in the embodiment of the present invention, after receiving a second preset instruction for a preset voice input key in a keyboard, a voice input function of an input method may be started, and then voice data is obtained and text recognition is performed on the voice data to obtain voice text information; translating the voice text information to obtain voice translation information and displaying the voice translation information on a screen; and then the translation text corresponding to the voice input text is displayed on the screen while the voice input is realized.
Certainly, in the embodiment of the present invention, more other functions, such as a search function, may also be set in the input method intelligent assistant as required, and preset keys in the keyboard may be associated for the set other functions; the user can use the other functions quickly by triggering the preset keys in the keyboard; the embodiments of the present invention are not limited in this regard.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 23, a block diagram of an embodiment of an information recommendation apparatus according to the present invention is shown, which may specifically include the following modules:
the starting module 2302 is used for receiving a trigger instruction for an information recommendation key preset in a keyboard and displaying an information recommendation interface in a preset panel of the input method;
the recommending module 2304 is configured to determine target information to be recommended, and display the target information on the information recommending interface.
Referring to FIG. 24, a block diagram of an alternative embodiment of an information recommendation device of the present invention is shown.
In an alternative embodiment of the present invention, the recommending module 2304 includes:
the first information determining sub-module 23042 is configured to, if a trigger instruction for an information recommendation key in a keyboard is received when the preset panel is in a closed state, acquire information and user behavior information corresponding to the information, and select target information from the acquired information according to the user behavior information corresponding to the information.
In an alternative embodiment of the present invention, the recommending module 2304 includes:
the second information determining sub-module 23044 is configured to, if a trigger instruction for an information recommendation key in the keyboard is received when the preset panel is in a closed state, acquire input associated information, and determine target information according to the input associated information.
In an optional embodiment of the present invention, the apparatus further comprises:
the positioning module 2306 is configured to, before the trigger instruction for the information recommendation key in the keyboard is received, position the cursor to an input box of the information recommendation interface if the preset panel is in the open state and the information recommendation interface is displayed in the preset panel.
In an alternative embodiment of the present invention, the recommending module 2304 includes:
a third information determining sub-module 23046, configured to, if a trigger instruction for an information recommendation key in a keyboard is received after a user inputs in an input box of the information recommendation interface, obtain input information, and determine target information according to the input information;
the input information includes: and inputting information input by the user in an input box of the information recommendation interface and/or inputting associated information.
In an alternative embodiment of the present invention, the recommending module 2304 includes:
a fourth information determining sub-module 23048, configured to, before the receiving the trigger instruction for the information recommendation key in the keyboard, if the preset panel is in an open state and the information recommendation interface is displayed therein, obtain the information selected by the user if the trigger instruction for the information recommendation key in the keyboard is received after the information selected by the user in the application program, and determine the target information according to the information selected by the user.
In an optional embodiment of the present invention, the fourth information determining sub-module 23048 is configured to search for weather information matching the input information; and/or searching input statistical information matched with the input information; and/or searching hot words related to the input information; and/or searching hot news related to the input information.
In an optional embodiment of the present invention, the apparatus further comprises:
a screen-up module 2308 for receiving a selection instruction; and displaying the target information corresponding to the selection instruction on a screen.
In an optional embodiment of the present invention, the apparatus further comprises:
a browsing module 2310 for receiving a browsing instruction; and displaying a detail page of the target information corresponding to the browsing instruction.
In summary, in the embodiment of the present invention, after receiving a trigger instruction for an information key preset in a keyboard, an information recommendation interface may be displayed in a preset panel of the input method; determining target information to be recommended, and displaying the target information on the information recommendation interface, so that a user can use an information recommendation function of an input method by triggering an information recommendation key in a keyboard in the process of using the keyboard to input information, the keyboard does not need to be switched to a mouse, and the mouse is used for triggering the information recommendation function; the operation of using the information recommendation function in the input method by the user is simplified, and the efficiency of using the information recommendation function is improved; and user experience can also be improved.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
FIG. 25 is a block diagram illustrating an electronic device 2500 for information recommendation, according to an example embodiment. For example, the electronic device 2500 may be a mobile telephone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, an exercise device, a personal digital assistant, and so forth.
Referring to fig. 25, electronic device 2500 may include one or more of the following components: a processing component 2502, a memory 2504, a power component 2506, a multimedia component 2508, an audio component 2510, an input/output (I/O) interface 2512, a sensor component 2514, and a communications component 2516.
The processing component 2502 generally controls overall operation of the electronic device 2500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 2502 may include one or more processors 2520 to execute instructions to perform all or some of the steps of the methods described above. Further, the processing component 2502 may include one or more modules that facilitate interaction between the processing component 2502 and other components. For example, the processing component 2502 can include a multimedia module to facilitate interaction between the multimedia component 2508 and the processing component 2502.
The memory 2504 is configured to store various types of data to support operations at the electronic device 2500. Examples of such data include instructions for any application or method operating on the electronic device 2500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 2504 may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power components 2506 provide power to the various components of the electronic device 2500. The power components 2506 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 2500.
The multimedia component 2508 includes a screen providing an output interface between the electronic device 2500 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 2508 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 2500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 2510 is configured to output and/or input audio signals. For example, audio component 2510 can include a Microphone (MIC) configured to receive external audio signals when electronic device 2500 is in an operating mode, such as a call mode, a record mode, and a voice recognition mode. The received audio signals may further be stored in memory 2504 or transmitted via communications component 2516. In some embodiments, audio component 2510 also includes a speaker for outputting audio signals.
I/O interface 2512 provides an interface between processing component 2502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 2514 includes one or more sensors for providing various aspects of status assessment for the electronic device 2500. For example, the sensor component 2514 may detect the open/closed state of the electronic device 2500, the relative positioning of components, such as a display and keypad of the electronic device 2500, the sensor component 2514 may also detect a change in the position of the electronic device 2500 or a component of the electronic device 2500, the presence or absence of user contact with the electronic device 2500, orientation or acceleration/deceleration of the electronic device 2500, and a change in the temperature of the electronic device 2500. The sensor component 2514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 2514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 2514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 2516 is configured to facilitate communications between the electronic device 2500 and other devices in a wired or wireless manner. The electronic device 2500 may access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication part 2514 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 2514 further comprises a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 2500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 2504 comprising instructions, executable by the processor 2520 of the electronic device 2500 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of an electronic device, enable the electronic device to perform a method of information recommendation, the method comprising:
receiving a trigger instruction aiming at a preset information recommendation key in a keyboard, and displaying an information recommendation interface in a preset panel of the input method; and determining target information to be recommended, and displaying the target information on the information recommendation interface.
Optionally, the determining target information to be recommended includes: if a trigger instruction aiming at an information recommendation key in a keyboard is received when the preset panel is in a closed state, information and user behavior information corresponding to the information are obtained, and target information is selected from the obtained information according to the user behavior information corresponding to the information.
Optionally, the determining target information to be recommended includes: if a trigger instruction aiming at the information recommendation key in the keyboard is received when the preset panel is in a closed state, acquiring input associated information, and determining target information according to the input associated information.
Optionally, the method further comprises: before the triggering instruction for the information recommendation key in the keyboard is received, if the preset panel is in an open state and an information recommendation interface is displayed in the preset panel, positioning a cursor to an input frame of the information recommendation interface.
Optionally, the determining target information to be recommended includes: if a triggering instruction aiming at an information recommendation key in a keyboard is received after a user inputs the information in an input frame of the information recommendation interface, acquiring input information, and determining target information according to the input information;
the input information includes: and inputting information input by the user in an input box of the information recommendation interface and/or inputting associated information.
Optionally, the determining target information to be recommended includes: before receiving the trigger instruction for the information recommendation key in the keyboard, if the preset panel is in an open state and the information recommendation interface is displayed in the preset panel, if the trigger instruction for the information recommendation key in the keyboard is received after the information selected by the user in the application program, the information selected by the user is obtained, and the target information is determined according to the information selected by the user.
Optionally, determining target information to be recommended according to the input information by at least one of the following methods, including: searching weather information matched with the input information; searching input statistical information matched with the input information; searching hot words associated with the input information; and searching hot news related to the input information.
Optionally, the method further comprises: receiving a selection instruction; and displaying the target information corresponding to the selection instruction on a screen.
Optionally, the method further comprises: receiving a browsing instruction; and displaying a detail page of the target information corresponding to the browsing instruction.
Fig. 26 is a schematic structural diagram illustrating an electronic device 2600 for information recommendation according to another exemplary embodiment of the invention. The electronic device 2600 may be a server, which may vary widely due to configuration or performance, and may include one or more Central Processing Units (CPUs) 2622 (e.g., one or more processors) and memory 2632, one or more storage media 2630 (e.g., one or more mass storage devices) that store applications 2642 or data 2644. The memory 2632 and the storage medium 2630 may be, among other things, transient storage or persistent storage. The program stored on the storage medium 2630 may include one or more modules (not shown), each of which may include a series of instruction operations on a server. Still further, the central processor 2622 may be configured to communicate with the storage medium 2630 and execute a series of instruction operations in the storage medium 2630 on the server.
The server may also include one or more power supplies 2626, one or more wired or wireless network interfaces 2650, one or more input-output interfaces 2658, one or more keyboards 2656, and/or one or more operating systems 2641, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
In an exemplary embodiment, the server is configured to execute the one or more programs by the one or more central processors 2622 including instructions for: receiving a trigger instruction aiming at a preset information recommendation key in a keyboard, and displaying an information recommendation interface in a preset panel of the input method; and determining target information to be recommended, and displaying the target information on the information recommendation interface.
Optionally, the determining target information to be recommended includes: if a trigger instruction aiming at an information recommendation key in a keyboard is received when the preset panel is in a closed state, information and user behavior information corresponding to the information are obtained, and target information is selected from the obtained information according to the user behavior information corresponding to the information.
Optionally, the determining target information to be recommended includes: if a trigger instruction aiming at the information recommendation key in the keyboard is received when the preset panel is in a closed state, acquiring input associated information, and determining target information according to the input associated information.
Optionally, further comprising instructions for: before the triggering instruction for the information recommendation key in the keyboard is received, if the preset panel is in an open state and an information recommendation interface is displayed in the preset panel, positioning a cursor to an input frame of the information recommendation interface.
Optionally, the determining target information to be recommended includes: if a triggering instruction aiming at an information recommendation key in a keyboard is received after a user inputs the information in an input frame of the information recommendation interface, acquiring input information, and determining target information according to the input information;
the input information includes: and inputting information input by the user in an input box of the information recommendation interface and/or inputting associated information.
Optionally, the determining target information to be recommended includes: before receiving the trigger instruction for the information recommendation key in the keyboard, if the preset panel is in an open state and the information recommendation interface is displayed in the preset panel, if the trigger instruction for the information recommendation key in the keyboard is received after the information selected by the user in the application program, the information selected by the user is obtained, and the target information is determined according to the information selected by the user.
Optionally, determining target information to be recommended according to the input information by at least one of the following methods, including: searching weather information matched with the input information; searching input statistical information matched with the input information; searching hot words associated with the input information; and searching hot news related to the input information.
Optionally, further comprising instructions for: receiving a selection instruction; and displaying the target information corresponding to the selection instruction on a screen.
Optionally, further comprising instructions for: receiving a browsing instruction; and displaying a detail page of the target information corresponding to the browsing instruction.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The information recommendation method, the information recommendation device and the electronic device provided by the invention are introduced in detail, and specific examples are applied in the text to explain the principle and the implementation of the invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. An information recommendation method is applied to an input method, the input method is deployed in an electronic device, and the electronic device is connected with a keyboard, and the method comprises the following steps:
receiving a trigger instruction aiming at a preset information recommendation key in a keyboard, and displaying an information recommendation interface in a preset panel of the input method;
and determining target information to be recommended, and displaying the target information on the information recommendation interface.
2. The method of claim 1, wherein the determining the target information to be recommended comprises:
if a trigger instruction aiming at an information recommendation key in a keyboard is received when the preset panel is in a closed state, information and user behavior information corresponding to the information are obtained, and target information is selected from the obtained information according to the user behavior information corresponding to the information.
3. The method of claim 1, wherein the determining the target information to be recommended comprises:
if a trigger instruction aiming at the information recommendation key in the keyboard is received when the preset panel is in a closed state, acquiring input associated information, and determining target information according to the input associated information.
4. The method of claim 1, further comprising:
before the triggering instruction for the information recommendation key in the keyboard is received, if the preset panel is in an open state and an information recommendation interface is displayed in the preset panel, positioning a cursor to an input frame of the information recommendation interface.
5. The method of claim 4, wherein the determining the target information to be recommended comprises:
if a triggering instruction aiming at an information recommendation key in a keyboard is received after a user inputs the information in an input frame of the information recommendation interface, acquiring input information, and determining target information according to the input information;
the input information includes: and inputting information input by the user in an input box of the information recommendation interface and/or inputting associated information.
6. The method of claim 1, wherein the determining the target information to be recommended comprises:
before receiving the trigger instruction for the information recommendation key in the keyboard, if the preset panel is in an open state and the information recommendation interface is displayed in the preset panel, if the trigger instruction for the information recommendation key in the keyboard is received after the information selected by the user in the application program, the information selected by the user is obtained, and the target information is determined according to the information selected by the user.
7. The method of claim 5, wherein determining the target information to be recommended according to the input information by at least one of:
searching weather information matched with the input information;
searching input statistical information matched with the input information;
searching hot words associated with the input information;
and searching hot news related to the input information.
8. An information recommendation device, applied to an input method, the input method being deployed in an electronic device, the electronic device being connected to a keyboard, the device comprising:
the starting module is used for receiving a triggering instruction aiming at an information recommendation key preset in a keyboard and displaying an information recommendation interface in a preset panel of the input method;
and the recommendation module is used for determining target information to be recommended and displaying the target information on the information recommendation interface.
9. An electronic device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors the one or more programs including instructions for:
receiving a trigger instruction aiming at a preset information recommendation key in a keyboard, and displaying an information recommendation interface in a preset panel of the input method;
and determining target information to be recommended, and displaying the target information on the information recommendation interface.
10. A readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the information recommendation method of any of method claims 1-7.
CN202011066511.5A 2020-09-30 2020-09-30 Information recommendation method and device and electronic equipment Pending CN112199035A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011066511.5A CN112199035A (en) 2020-09-30 2020-09-30 Information recommendation method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011066511.5A CN112199035A (en) 2020-09-30 2020-09-30 Information recommendation method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112199035A true CN112199035A (en) 2021-01-08

Family

ID=74014117

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011066511.5A Pending CN112199035A (en) 2020-09-30 2020-09-30 Information recommendation method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112199035A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101388032A (en) * 2008-10-06 2009-03-18 魏新成 Directly on-line searching method in Chinese input Cue window
CN102014199A (en) * 2010-09-16 2011-04-13 宇龙计算机通信科技(深圳)有限公司 Information display method and terminal
CN102663016A (en) * 2012-03-21 2012-09-12 上海汉翔信息技术有限公司 System and method for implementing input information extension on input candidate box on electronic device
US20130346872A1 (en) * 2012-06-25 2013-12-26 Microsoft Corporation Input method editor application platform
CN106611065A (en) * 2017-01-03 2017-05-03 北京百度网讯科技有限公司 Search method and device
CN107273457A (en) * 2017-06-01 2017-10-20 珠海市魅族科技有限公司 A kind of searching method and device, computer installation and computer-readable recording medium
CN108139866A (en) * 2016-02-29 2018-06-08 谷歌有限责任公司 Computing device and its operating method with dynamically configurable user input apparatus
CN110989847A (en) * 2019-11-22 2020-04-10 维沃移动通信有限公司 Information recommendation method and device, terminal equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101388032A (en) * 2008-10-06 2009-03-18 魏新成 Directly on-line searching method in Chinese input Cue window
CN102014199A (en) * 2010-09-16 2011-04-13 宇龙计算机通信科技(深圳)有限公司 Information display method and terminal
CN102663016A (en) * 2012-03-21 2012-09-12 上海汉翔信息技术有限公司 System and method for implementing input information extension on input candidate box on electronic device
US20130346872A1 (en) * 2012-06-25 2013-12-26 Microsoft Corporation Input method editor application platform
CN108139866A (en) * 2016-02-29 2018-06-08 谷歌有限责任公司 Computing device and its operating method with dynamically configurable user input apparatus
CN106611065A (en) * 2017-01-03 2017-05-03 北京百度网讯科技有限公司 Search method and device
CN107273457A (en) * 2017-06-01 2017-10-20 珠海市魅族科技有限公司 A kind of searching method and device, computer installation and computer-readable recording medium
CN110989847A (en) * 2019-11-22 2020-04-10 维沃移动通信有限公司 Information recommendation method and device, terminal equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
九天科技张丹: "《巧学活用 全图解速学五笔打字与拼音输入》", 31 October 2019 *

Similar Documents

Publication Publication Date Title
CN108829686B (en) Translation information display method, device, equipment and storage medium
CN109144285B (en) Input method and device
CN112199032A (en) Expression recommendation method and device and electronic equipment
CN107291260B (en) Information input method and device for inputting information
CN111046210A (en) Information recommendation method and device and electronic equipment
CN108628461B (en) Input method and device and method and device for updating word stock
CN110110207B (en) Information recommendation method and device and electronic equipment
CN108241614B (en) Information processing method and device, and device for information processing
CN108536653B (en) Input method, input device and input device
CN108073293B (en) Method and device for determining target phrase
CN111679746A (en) Input method and device and electronic equipment
CN108073294B (en) Intelligent word forming method and device for intelligent word forming
CN112199033B (en) Voice input method and device and electronic equipment
CN112199143A (en) Data processing method and device and electronic equipment
CN112199035A (en) Information recommendation method and device and electronic equipment
CN112199034A (en) Data processing method and device and electronic equipment
CN113033163A (en) Data processing method and device and electronic equipment
CN109426359B (en) Input method, device and machine readable medium
CN109725736B (en) Candidate sorting method and device and electronic equipment
CN109558017B (en) Input method and device and electronic equipment
CN113589949A (en) Input method and device and electronic equipment
CN113515618A (en) Voice processing method, apparatus and medium
CN112148132A (en) Information setting method and device and electronic equipment
CN110232325A (en) A kind of data processing method, device and electronic equipment
CN110858100B (en) Method and device for generating association candidate words

Legal Events

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