WO2018014341A1 - 展示候选项的方法和终端设备 - Google Patents
展示候选项的方法和终端设备 Download PDFInfo
- Publication number
- WO2018014341A1 WO2018014341A1 PCT/CN2016/091036 CN2016091036W WO2018014341A1 WO 2018014341 A1 WO2018014341 A1 WO 2018014341A1 CN 2016091036 W CN2016091036 W CN 2016091036W WO 2018014341 A1 WO2018014341 A1 WO 2018014341A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- candidate
- action
- information
- input method
- action type
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 339
- 230000009471 action Effects 0.000 claims abstract description 449
- 230000008569 process Effects 0.000 claims abstract description 32
- 230000001960 triggered effect Effects 0.000 claims abstract description 12
- 238000012795 verification Methods 0.000 claims description 64
- 230000004044 response Effects 0.000 claims description 14
- 230000033001 locomotion Effects 0.000 claims description 3
- 230000007613 environmental effect Effects 0.000 abstract 1
- 230000000875 corresponding effect Effects 0.000 description 180
- 238000012545 processing Methods 0.000 description 19
- 238000010586 diagram Methods 0.000 description 18
- 230000006870 function Effects 0.000 description 17
- 238000004891 communication Methods 0.000 description 7
- 239000000284 extract Substances 0.000 description 7
- 239000000872 buffer Substances 0.000 description 6
- 238000000605 extraction Methods 0.000 description 4
- 238000004590 computer program Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 239000008267 milk Substances 0.000 description 3
- 210000004080 milk Anatomy 0.000 description 3
- 235000013336 milk Nutrition 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 238000010801 machine learning Methods 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 241000699670 Mus sp. Species 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000003796 beauty Effects 0.000 description 1
- 230000003139 buffering effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000009194 climbing Effects 0.000 description 1
- 230000001276 controlling effect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000010006 flight Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000007477 logistic regression Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012706 support-vector machine Methods 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 239000011800 void material Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/274—Converting codes to words; Guess-ahead of partial word inputs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/205—Parsing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/232—Orthographic correction, e.g. spell checking or vowelisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/279—Recognition of textual entities
- G06F40/289—Phrasal analysis, e.g. finite state techniques or chunking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
Definitions
- Embodiments of the present invention relate to the field of input methods, and, more particularly, to a method and terminal device for presenting candidates.
- the input method is an essential condition for mobile phone text input and becomes an increasingly important tool in user communication.
- the current input method is basically based on the user's instant input, the corresponding text is retrieved by querying the built-in dictionary, and the N-gram (N Grammar, referred to as "N-gram") speech model is used to support the associative words.
- N-Gram is a commonly used language model in large vocabulary continuous speech recognition. The model is based on the assumption that the appearance of the Nth word is only related to the previous N-1 words, and is not related to any other words.
- the probability of a whole sentence is the product of the probability of occurrence of each word. These probabilities can be obtained by counting the number of simultaneous occurrences of N words directly from the corpus.
- the pinyin input method is taken as an example.
- the default “common words at the beginning” such as “we” and “today” are used by default. "As a candidate. After the user has submitted partial words, moving the cursor position may change the candidate word list before continuing to input pinyin.
- the default candidate words are static, remain unchanged under any circumstances, do not adapt to specific scenarios, and have low accuracy.
- the present application provides a method and a terminal device for displaying candidates, which can fully utilize the input environment information to determine a more abundant candidate that is more suitable for the current input scenario, and can improve the efficiency of the user inputting information through the input method.
- a method for presenting a candidate is provided, the method being applied to a scenario in which a user inputs information through an input method, the method comprising: determining that the input method is triggered to obtain the above information of a target application, the target application An application that is currently in an active process state; parsing the above information, determining an action type corresponding to the above information; determining, according to the action type, a candidate corresponding to the input method, the candidate including a candidate word and/or Candidate action; present the candidate to the user.
- the candidate words may include a single character or a plurality of characters.
- the language of the input method is Chinese
- the candidate words may include a single Chinese character, a plurality of Chinese characters, a plurality of Chinese characters, a plurality of Chinese characters, and a plurality of Chinese characters.
- the terminal device when the input method is triggered, can provide the user with the candidate when input according to the related information of the application currently in the active process state, thereby being able to fully utilize the input.
- the environment information determines the candidates that are more abundant and more suitable for the current input scene, and improves the efficiency of the user inputting information through the input method.
- the above information of the application may be information that enables the terminal device to determine the semantic environment in which the input method is currently located.
- the above information of the application may be the text content of the verification code short message, the text to be replied, The identification information of the application and the identification information of the text box of the application, the identification information of the application, and the identification information of the chat object.
- the above information of the application may also be candidate words determined by the application that need to be provided to the user by the input method.
- the input device of the operating system of the terminal device has an Application Program Interface (API), and the application in the terminal device transmits the above information of the application to the smart input in the terminal device through the API.
- API Application Program Interface
- the module, the smart input module caches the above information transmitted by the application, and then through a series of processes to obtain candidates corresponding to the above information of the application, and provides the candidate to the user.
- the parsing the foregoing information, determining an action type corresponding to the foregoing information includes: acquiring a keyword in the foregoing information; The keyword and the preset correspondence determine the action type corresponding to the above information, and the correspondence includes the corresponding relationship between the keyword and the action type.
- the correspondence between the keyword and the action type is pre-stored in the terminal device in advance, and after the terminal device parses the above information, the action type corresponding to the above information is directly determined according to the correspondence between the keyword and the action type.
- the terminal device may also match the above information by using a regular matching manner and/or a machine learning algorithm, including but not limited to: a support vector machine algorithm, a logistic regression algorithm, and a neural network algorithm.
- a regular matching manner including but not limited to: a support vector machine algorithm, a logistic regression algorithm, and a neural network algorithm.
- the correspondence between the regular expression and the action type may be preset, and the terminal device determines the correspondence between the regular expression and the action type after determining the regular expression corresponding to the above information of the application. Relationship, determine the type of action corresponding to the above information.
- the determining, according to the action type, the candidate corresponding to the input method includes: The action corresponding to the action type is executed; the information obtained by executing the action is determined as a candidate corresponding to the input method.
- the performing the action corresponding to the action type includes: presenting prompt information to the user, where the prompt information is used by the user Select whether to trigger the action; when it is determined that the user triggers the action, the action is performed.
- the presenting the prompt information to the user may be implemented in the form of a prompt box.
- the action of the user triggering the action may be: sliding the prompt box or clicking the prompt box, and setting a time threshold in advance, if it is within a preset time threshold. If the user does not trigger the action, the action is not executed.
- the prompt information includes two options of “Yes” and “No”.
- the user clicks “Yes” it is determined that the user triggers the action
- the user clicks “No” it is determined that the user does not trigger the action.
- the foregoing information includes a verification code, where the action type is a padding verification code; Determining a candidate corresponding to the input method according to the action type includes: determining the verification code as a candidate corresponding to the input method.
- the information is a text content of the verification code short message, and the text content includes a verification code.
- the verification code is displayed as a candidate to the user, so that the user can perform the verification code.
- the input can be adapted to any type of verification code used to fill the scene to enhance the user experience.
- the foregoing information includes a text to be replied, and the action type is called for ringing
- the application of the text should be replied to; wherein determining the candidate corresponding to the input method according to the action type comprises: determining the shortcut entry of the application for responding to the text to be replied as a candidate corresponding to the input method item.
- the foregoing information includes a text to be replied, and the action type is a fast reply reply template;
- the determining the candidate corresponding to the input method according to the action type includes: performing semantic analysis on the text to be replied, and determining a candidate lexicon, wherein the candidate vocabulary includes a common reply word;
- the preset number of words sorted by the top is determined as a candidate corresponding to the input method.
- the method further includes: determining whether the target word input by the user is in the In the candidate lexicon; when determining that the target word entered by the user is in the candidate vocabulary And increasing the ranking of the target word in the candidate lexicon; or, when determining that the target word input by the user is not in the candidate lexicon, adding the target word to the candidate lexicon.
- the frequency of the target word may be increased by one, and the ranking of the target word in the candidate lexicon is sequentially raised.
- the target word input by the user is not a word in the candidate lexicon, the target word is added to the candidate vocabulary, and the frequency of the target word is set to 1.
- the target application is a chat application, where the information includes a text to be replied,
- the action type is to extract the original content; wherein the action corresponding to the action type is performed; and the information obtained by executing the action is determined as a candidate corresponding to the input method, including: extracting a keyword in the text to be replied; The keyword is determined as a candidate corresponding to the input method.
- the rules for keyword extraction may be preset.
- a proper noun such as a person name, a place name, an organization name, a movie name, and a time word may be used as a keyword.
- the action type is a data query; wherein the action corresponding to the action type is performed; Determining, by the information obtained by the action, the candidate corresponding to the input method, comprising: performing a data query action, acquiring data corresponding to the above information; determining, by the data corresponding to the information, The candidate for the input method.
- the data query includes an offline data query and a cloud data query
- the offline data includes but is not limited to: a system level application and a statistics database
- the system level application may be, for example, a schedule, a clock, a memo, a contact, and the like.
- the statistical database can be, for example, a common reply, a contact nickname, a search history, and the like.
- Cloud data includes but is not limited to: geographic location information, weather information, hot film, TV drama query, match information, route information, flight information, encyclopedic information, preferential order information, travel route information, nearby business information, and the like.
- the foregoing information includes the identifier information of the target application and the identifier information of the search box in the target application
- the promotion is used.
- the ranking of the search term input by the user in the historical search record for example, the frequency of the search term input by the user may be increased by one, and when the search term input by the user is not a search term in the historical search record, the search term input by the user is input. Add to the historical search history and set the frequency of the search terms entered by the user to 1.
- the target application is a chat application
- the information includes the identification information of the target application and the chat
- the identification information of the object wherein the performing the data query action, acquiring the data corresponding to the information, includes: querying whether there is an address term corresponding to the identification information of the target application and the identification information of the chat object; When the term is used, the predicate number of the predicate in the appellation is obtained.
- the foregoing information further includes an address term corresponding to the identifier information of the chat object.
- the terminal device determines, according to the foregoing information, that the action to be performed is a data query
- the terminal device searches for whether the local application exists with the target application.
- the title information corresponding to the identification information of the chat object and the identification information of the chat object if yes, the frequency of the address term corresponding to the identification information of the target application and the identification information of the chat object is increased by one, and if not, the above information is saved.
- the above information may also be the input pinyin string and the text to be replied, and the text to be replied may be split into a sequence of words and converted into a correspondence between pinyin and phrase.
- the phrase corresponding to the Pinyin string input by the user is preferentially selected from the hidden candidate words as the candidate word.
- a method for presenting a candidate is provided, the method being applied to a scenario in which a user inputs information through an input method, the method comprising: displaying an application session interface; displaying an input method interface; displaying session information on the application session interface In response to the session information, a candidate is displayed in the input method candidate area, the candidate including candidate words and/or candidate operations; responding to the user's selection of the candidate.
- the method for presenting candidates of the present application by displaying the candidate in the input method candidate area in response to the session information displayed on the application session interface, it is possible to determine a candidate more suitable for the current input scene and provide it to the candidate. Users, improve the efficiency of users input information through input methods.
- the responding to the session information displaying the candidate in the input method candidate area, including: parsing the session information, determining an action type corresponding to the session information And determining a candidate corresponding to the input method according to the action type; displaying the candidate in the input method candidate area.
- the parsing the session information, determining an action type corresponding to the session information includes: acquiring the session information And determining, according to the keyword and the preset correspondence, an action type corresponding to the session information, where the correspondence includes a correspondence between the keyword and the action type.
- determining, according to the action type, a candidate corresponding to the input method including: performing An action corresponding to the action type; the information obtained by executing the action is determined as a candidate corresponding to the input method.
- the performing the action corresponding to the action type includes: displaying prompt information, where the prompt information is used by the user to select whether The action is triggered; when it is determined that the user triggers the action, the action is performed.
- the session information includes a verification code, where the action type is a padding verification code; Determining a candidate corresponding to the input method according to the action type includes determining the verification code as a candidate corresponding to the input method.
- the session information includes a text to be replied
- the action type is a call for responding to the Responding to the application of the text
- determining the candidate corresponding to the input method according to the action type comprises: determining the shortcut entry of the application for responding to the text to be replied as a candidate corresponding to the input method.
- the session information includes a text to be replied, and the action type is a fast reply template; Determining a candidate corresponding to the input method according to the action type, comprising: performing semantic analysis on the text to be replied, determining a candidate lexicon, wherein the candidate vocabulary includes common reply words; sorting the candidate lexicon The predetermined number of words in the front are determined as candidates corresponding to the input method.
- the method further includes: determining a target word input by the user Whether in the candidate lexicon; when determining that the target word input by the user is in the candidate lexicon, increasing the ranking of the target word in the candidate lexicon; or, when determining user input When the target word is not in the candidate lexicon, the target word is added to the candidate vocabulary.
- the target application is a chat application, where the session information includes a text to be replied, the action The type is the extracted original content; wherein the action corresponding to the action type is performed; and the information obtained by executing the action is determined as a candidate corresponding to the input method, including: extracting a keyword in the text to be replied; The keyword is determined as a candidate corresponding to the input method.
- the action type is a data query; wherein the action corresponding to the action type is performed;
- the information obtained by performing the action is determined to be a candidate corresponding to the input method, including: performing a data query action, acquiring data corresponding to the session information; determining the data corresponding to the session information as the input method Corresponding candidates.
- the session information includes the identifier information of the target application and the identifier information of the search box in the target application. And performing the data query action, and acquiring data corresponding to the session information, including: querying whether there is a historical search record corresponding to the identification information of the target application and the identification information of the search box in the target application; When the history search record is recorded, a preset number of historical search words in the historical search record are obtained.
- the target application is a chat application, where the session information includes the identification information of the target application and the chat object.
- the obtaining the data corresponding to the session information including: querying whether there is an address term corresponding to the identification information of the target application and the identification information of the chat object; When the address is used, the predicate number of the predicate in the title is obtained.
- a terminal device for performing the method of any of the above first aspect or any of the possible implementations of the first aspect.
- the terminal device comprises functional modules for performing the method of the first aspect or any of the possible implementations of the first aspect described above.
- a terminal device for performing the method in any of the above-mentioned second aspect or any possible implementation of the second aspect.
- the terminal device comprises functional modules for performing the method in any of the possible implementations of the second aspect or the second aspect described above.
- a fifth aspect provides a terminal device including a processor, a memory, and a display, the processor, the memory and the display being connected by a bus system, wherein the memory is configured to store an instruction, and the processor is configured to call the stored in the memory.
- the instructions control the display to display information such that the terminal device performs the method of any of the first aspect or the first aspect of the first aspect.
- a sixth aspect provides a terminal device including a processor, a memory, and a display, the processor, the memory and the display being connected by a bus system, the memory is configured to store an instruction, and the processor is configured to call the stored in the memory The instructions control the display to display information such that the terminal device performs the method of any of the second aspect or the second aspect of the second aspect.
- a seventh aspect a computer readable medium for storing a computer program, the computer program comprising instructions for performing the method of the first aspect or any of the possible implementations of the first aspect.
- a computer readable medium for storing a computer program comprising instructions for performing the method of the second aspect or any of the possible implementations of the second aspect.
- FIG. 1 is a schematic diagram of an application scenario of an embodiment of the present invention.
- FIGS. 2(a) and 2(b) are schematic diagrams showing a method for applying a Lenovo contact candidate to a short message in the prior art
- FIG. 3 is a schematic block diagram of a terminal device according to an embodiment of the present invention.
- FIG. 4 is a schematic block diagram of an intelligent input module in a terminal device according to an embodiment of the present invention.
- FIG. 5 is a schematic flowchart of a method for displaying a candidate according to an embodiment of the present invention
- FIG. 6(a)-(d) are schematic flowcharts of a method of presenting candidates according to another embodiment of the present invention.
- FIG. 7 is a schematic diagram of a method of presenting candidates in accordance with an embodiment of the present invention.
- FIG. 8 is a schematic diagram of a method of presenting candidates in accordance with another embodiment of the present invention.
- FIG. 9 is a schematic flow diagram of a method of presenting candidates in accordance with still another embodiment of the present invention.
- FIG. 10 is a schematic diagram of a method of presenting candidates in accordance with still another embodiment of the present invention.
- FIG. 11(a) and (b) are schematic diagrams showing a method of presenting candidates in accordance with still another embodiment of the present invention.
- FIG. 13(a)-(c) are schematic diagrams showing a method of presenting candidates in accordance with still another embodiment of the present invention.
- FIGS. 14(a)-(c) are schematic diagrams showing a method of presenting candidates in accordance with still another embodiment of the present invention.
- FIG. 15 is a schematic diagram of a method of presenting candidates in accordance with still another embodiment of the present invention.
- 16 is a schematic diagram of a method of presenting candidates in accordance with still another embodiment of the present invention.
- FIG. 17 is a schematic block diagram of a terminal device according to an embodiment of the present invention.
- FIG. 18 is a schematic block diagram of a terminal device according to another embodiment of the present invention.
- FIG. 19 is a schematic block diagram of a terminal device according to still another embodiment of the present invention.
- the words “exemplary” or “such as” are used to mean an example, illustration, or illustration. Any embodiment or design described as “exemplary” or “for example” in the embodiments of the invention should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of the words “exemplary” or “such as” is intended to present the concepts in a particular manner.
- the terminal device in the embodiment of the present invention includes an electronic product that can interact with a user through a keyboard, a remote controller, a touch panel, and a voice control device.
- the terminal device can be a computer, a smart phone, a game machine, a wearable device, or a tablet computer.
- PAD Portable Android Device
- IPTV Interactive Internet Television
- the operating system running on the terminal device may be a mobile version of Android (Android), Ubuntu (Ubuntu) mobile version, Tizen and other Linux kernel-based operating systems and desktop operating systems such as Windows, Mac OS, Linux, etc., but the invention is not limited thereto.
- the application may be referred to as an application (Application, abbreviated as “APP”), and the application may be an application that is provided by the operating system of the terminal device, and may be a third party installed in the operating system of the terminal device.
- APP Application, abbreviated as “APP”
- the invention is not limited thereto.
- FIG. 1 shows an application scenario according to an embodiment of the present invention.
- an application sms or WeChat
- the user triggers the input method.
- the display interface of the input method provides a candidate area to the user, and the user can directly select candidate words in the candidate area to reduce the manual input operation of the user.
- the candidate word area is provided to the user by default, which is a frequently used word. For example, as shown in FIG. 1 , when the mobile phone receives a short message, the content of the short message is displayed on the session interface, “Are you eating?”, after the user triggers the input method, the words “I” appear in the candidate word area. Common words or words such as "you", "this”, and regardless of the content of the text message, the candidate words in the candidate word area remain unchanged and cannot adapt to a specific scene.
- the method for displaying candidates in the embodiment of the present invention refers to the candidate word interface display candidate in the input method shown in FIG. 1, instead of being as shown in FIG. 2(a). Shown method of showing candidates.
- the mobile phone will associate the possible contacts with the number entered by the user and display it to the user for the user to select. For example, after the user inputs "13", the contact and phone number associated with "13" stored in the mobile phone address book are displayed to the user on the session interface.
- the interface of the mobile phone becomes The interface shown in Figure 2(b).
- a method for displaying candidates can be provided.
- the input method is triggered, according to the related information of the application currently in the active process state, a richer candidate that is more suitable for the current input scene is determined.
- the item is displayed to the user to improve the efficiency of the user inputting information through the input method.
- the input data may be read by reading data of other applications (applications not currently being used) according to other data that is read. item.
- the SMS application is in the active process state, and the input method is used to obtain the SMS application and the above is transmitted to the buffer of the input method.
- Information (as an example, the above information is "What is the phone number of Xiao Ming?”), the input method identifies the above information of the SMS application. The corresponding action type is to find a contact.
- the input method will share data externally through the Android system, for example, a content provider (ContentProvider), access the contact database, and read the phone number corresponding to Xiao Ming, and display it as a candidate.
- a content provider ContentProvider
- the user in which one of the interfaces that implements access, is of the form: content://com.android.contacts/raw_contacts.
- the method for inputting third-party data by the input method includes, but is not limited to, requesting access to the cloud interface through a HyperText Transfer Protocol ("HTTP"), and defining an Android interface definition language (Android Interface Definition Language, Referred to as "AIDL” for accessing the local shared interface, the third-party software development kit (Software Development Kits, referred to as "SDK”) open interface is used to read the data of the third-party software.
- HTTP HyperText Transfer Protocol
- SDK Software Development Kits
- FIG. 3 shows a schematic block diagram of a terminal device according to an embodiment of the present invention.
- the operating system of the terminal device 10 includes an Input Method Framework (IMF) 11, an application 12, and an intelligent input module 13.
- IMF Input Method Framework
- the input method framework mentioned in the embodiment of the present invention is the same as that in the prior art, and details are not described herein again.
- the form of the intelligent input module 13 includes, but is not limited to, soft keyboard input, and the input manner includes but is not limited to pinyin input, stroke input, handwriting input, and voice input.
- an application program interface (API) 14 is added to the IMF 11 of the operating system.
- the API 14 implements information transfer, and the application installed in the operating system applies the application through the API 14.
- the above information is passed to the smart input module 13, and then the IMF 11 of the operating system activates the smart input module 13, and the smart input module 13 obtains the above information of the application, and displays the candidate to the user after a series of processes.
- API 14 can be described as: Public Void SendMessageInfo (Bundle extras); Bundle extras represents the above information of the application, the above information exists in the form of a key-value pair, the above information of different types of applications It may be different, the number of key-value pairs may also be different. Taking the application as "WeChat" as an example, Bundle extras can be expressed as:
- the above information of the application may be a candidate word determined by the application to be provided to the user.
- a Boolean type field "isCandidate” may be added in "Bundle extras", when the "isCandidate” field is In the case of "Ture”, the above information indicating that the application is passed to the smart input module 13 is a candidate word that is ultimately required to be provided to the user.
- the application as "Amazone App” as an example, when the user clicks the category search box in the Amazone APP, the Amazone APP can deliver the recommended item of the classified search box to the smart input module 13 as a candidate, for example, the Bundle extras can be expressed as:
- the smart input module 13 in FIG. 3 includes an acquisition module 131, a motion recognition module 132, an action execution module 133, and a presentation module 134.
- the obtaining module 131 has a buffer area for buffering the above information that the application passes to the smart input module 13.
- FIG. 5 is a schematic flowchart of a method for displaying a candidate according to an embodiment of the present invention. As shown in FIG. 5, the method 1000 includes:
- S1100 Determine that the input method is triggered to obtain the above information of the target application, and the target should be an application that is currently in an active process state;
- the current target application is in an active process state
- the user triggers the system text space to prepare for content input
- the operating system of the terminal device invokes the input method framework 11
- the target application invokes the API 14 in the operating system to transmit the above information of the application.
- the input method framework 11 places the smart input module 13 in an active process state
- the acquisition module 131 in the smart input module 13 reads the above information in the cache.
- a switch item is added in the setting item of the input method, and the function of “determining the candidate according to the above information” is turned on or off.
- the input method is pulled up, the state of the current switch item is first determined, and if When the state is turned on, the operation of recognizing the action type is continued, and if it is the closed state, it is directly returned without giving any action type and related content.
- an application currently in an active process state can be understood as an application that is currently being used, for example, when a message is received through a WeChat application, at which time the WeChat application is in an active process. State of application.
- the user logs in to the Alipay application for online payment, the user needs to input the verification code in the Alipay application, and the background of the Alipay application sends the verification code short message to the user.
- the verification code SMS is received, the SMS application is in the active process state, and then The Alipay application is in an active process state.
- the action recognition module 132 performs matching processing on the above information read by the obtaining module 131, and determines an action type corresponding to the above information.
- the regular matching method, the keyword matching method, and the machine learning algorithm may be used.
- the related content of the action type may be identified, and the related content may be information that may be displayed as a candidate to the user after the action of the action type is performed by the terminal device, or the related content may be performed by the terminal device corresponding to the action type.
- the information needed for the action Table 1 shows the correspondence between a possible action type and related content of the application and the action type provided by the embodiment of the present invention. It can be understood that the types of actions given in Table 1 are merely exemplary enumerations, and more types may be included in the specific implementation.
- the action execution module 133 performs different actions to determine the candidate.
- a manual trigger and an automatic trigger mode may be adopted.
- the action type is the “filling verification code” shown in Table 1
- the action recognition module 133 adopts an automatic trigger mode.
- the verification code is directly determined to be passed to the presentation module 134 as a candidate.
- the action recognition module 132 can adopt a manual trigger mode, and the action execution module 133 can pop up a prompt box on the display screen of the terminal device, for example, FIG. 6(a) As shown in the figure, the content of the prompt box is “query current location”, waiting for the user to confirm whether to perform the location query action.
- Module 133 When the user clicks or slides the prompt box, the user is considered to trigger the “query current location” action, and the action is executed.
- Module 133 performs a current location query.
- the action execution module 133 may adopt an automatic trigger mode, and does not require the user to confirm, directly query the current location, and present the query result as a candidate to the user.
- the action execution module 133 displays the query result as a candidate to the user, and at the same time, the action execution module 133 can also display the common reply words as candidates to the user, for example, the common reply statement can be It is "at home", "at school", "in supermarket", etc.
- the display module 134 displays the candidate result to the user, and the display area corresponding to the display module 134 can be
- the candidate word area corresponding to the input method and the expanded candidate word list area, or other areas of the display screen of the terminal device, are the display areas as shown in FIGS. 6(a)-(d).
- FIG. 7 is a schematic flowchart of a method of displaying a candidate according to another embodiment of the present invention. As shown in Figure 7, method 2000 includes:
- the S2300 displays session information on the application session interface.
- the application session interface and the input method interface are as shown in FIG. 8.
- the session information sent by "Xiaoming" is received through the WeChat application
- the received session information is displayed on the application session interface, as shown in FIG. Shown "Is it free tomorrow?".
- the method for the terminal device to respond to the session information may be performed by referring to S1200 and S1300 in the method 1000, and details are not described herein again.
- the user's selection is displayed in the input area of the input method.
- the application session interface may not be displayed.
- the background of the Alipay application sends a verification code message to the user.
- the interface of the Alipay application can be displayed all the time without displaying the session interface of the short message application.
- the input method directly obtains the verification code from the above information of the short message application as a candidate, and displays the verification code in the candidate area of the input method.
- FIG. 9 illustrates a method of displaying candidates in a fill verification code scenario. As shown in FIG. 9, the method 3000 includes:
- the short message application receives a short message including a verification code
- the text content of the text message is: Verification code: 123456, please keep it safely, the sender is: 10088.
- the short message application transmits the above information of the short message application to the smart input module through the API;
- the smart input module determines, according to the foregoing information in the S3200, that the action type corresponding to the foregoing information is a padding verification code;
- the action recognition module 132 in the smart input module parses the above information to obtain a regular expression: a verification code + a punctuation + a number + a punctuation point, and a correspondence between a preset regular expression and an action type, that is, It can be determined that the action type corresponding to the obtained regular expression is a padding verification code, and Table 2 shows a correspondence between a possible regular expression and an action type provided by the embodiment of the present invention.
- the action type corresponding to the above information can be determined, for example, when the above information is "Do you want to drink milk or coffee?", motion recognition Module 132 parses the above information to obtain a regular expression: verb (drink) + noun (milk) + noun (coffee) + question mark (?), which can be determined by the correspondence between the regular expression and the action type.
- the action type corresponding to the above information is "original content extraction”.
- the action recognition module 132 recognizes that the above information includes the keyword “verification code”, and determines, according to the correspondence between the preset keyword and the action type, that the action type corresponding to the above information is the padding verification code, Table 3 A correspondence between a possible keyword and an action type provided by an embodiment of the present invention is shown.
- the intelligent input module fills the verification code into the candidate word area and presents it to the user.
- the action recognition module 132 identifies the verification code -123456 in the above information, and the action execution module 133 determines the verification code as a candidate and presents it to the user. The user directly clicks on the verification code in the candidate word area to complete the verification code input. . Specifically, as shown in Figure 10.
- the specific content and representation manner of the information sent by the short message application to the smart input module 13 is: ⁇ Boolean: True, candidate: 123456 ⁇
- the intelligent input module is based on the Boolean value. It can be determined that the action type corresponding to the above information is “preset candidate word padding”.
- the smart input module 13 fills the candidate words in the above information into the candidate word area and presents it to the user.
- the above information transmitted by the application to the smart input module 13 is the text to be replied, for example, the content of the text to be replied is "call to Xiao Ming", and the action recognition module 132 analyzes the above information to determine
- the action type corresponding to the above information is “application quick pull or operation”
- the action related to the action type is “display shortcut entry for making a call”
- FIG. 11( a ) the action execution module 133
- the shortcut entry for making a call is presented to the user as a candidate.
- the action execution module 133 can display the frequently used reply as a candidate to the user in the candidate word area, in addition to displaying the shortcut entry of the call to the user as a candidate.
- the information transmitted by the application to the intelligent input module 13 includes the identifier of the application and the text to be replied, for example, the above information is: ⁇ application package name: com.huawei.chat, Text content: remember to bring milk to me ⁇ , the action recognition module 132 determines that the action type corresponding to the above information is “call quick reply template” according to the analysis of the above information, and the action execution module 133 queries whether there is a common reply, if any Then, the preset number of common reply words with the highest frequency are displayed as candidates to the user. For example, as shown in FIG. 12( a ), the preset number may be four, and the frequently used reply is in the middle frequency.
- the four words are: "OK”, "OK”, “No", "No".
- the response entered by the user is a word in a common reply, such as "No”
- the frequency of the word Add 1 when the response entered by the user is not a word in the common reply for example, the response input by the user is “No”
- the reply input by the user is added to the common reply, and the frequency of the reply input by the user is set. Is 1.
- the common reply is different for different text content to be replied.
- the content of the text to be replied is “When will it come tomorrow?”, although the corresponding action type is "Invoke quick reply template", but action execution module 133 derives from the query
- the candidates are different.
- the candidates can be: "AM”, “PM”, “Even”, “8 o'clock”, etc., so the text content can be classified, and the different types are different.
- the commonly used reply vocabulary establishes a correspondence between the type of the text content and the commonly used reply vocabulary, and the action execution module 133 can determine the common reply vocabulary for querying according to the corresponding relationship.
- the above information transmitted by the application to the smart input module 13 is a text to be replied, and the action recognition module 132 determines the action type corresponding to the above information by parsing the above information.
- the content extraction module 133 extracts the keyword from the text to be replied as a candidate for display to the user.
- the rules for extracting keywords may be specified in advance, for example, a proper noun such as a number, a person's name, a place name, an institution name, a movie name, a time word, etc. may be extracted as a keyword, and the extracted keyword may be set in advance as a priority of the candidate.
- Levels can be set from high to low in order of priority: number, place name, person name, institution name, movie name, time word.
- the content of the text to be replied is: “Renew, please reply 1, unsubscribe, please reply 2”, and the action execution module 133 extracts “1” and “2” as candidate words for display to the user.
- the content of the text to be replied is: “Climb Mountain or Watch Movie”, as shown in FIG. 13( a ), the action execution module 133 extracts “climbing”, “watching movie”, and “tomorrow” as candidates to be displayed to the user. Further, as shown in FIG.
- the name of the mountain or the name of the movie can be displayed as a candidate to the user, and "V" in FIG. 13(b) indicates the expansion button of the candidate word area.
- the action execution module 133 may also display a prompt box of “query hot movie” to the user, and wait for the user to trigger the prompt box to query the hot movie. The query results are displayed to the user, and the user can complete the input by copying and pasting.
- candidates can be presented to the user through cloud data queries.
- the specific process is:
- the chat application receives a text message: "How do xx to xx go?",
- the chat application may include a short message application provided by the operating system of the terminal device and a third-party communication application installed in the operating system of the terminal device.
- the third-party communication application may be, for example, WeChat, QQ, Momo, and the like.
- the chat application transmits the text content of the short message to the smart input module 13;
- the buffer area in the smart input module 13 buffers the text content of the received short message, and then the obtaining module 131 acquires the text content of the short message from the buffer area.
- the action recognition module 132 determines that the action type corresponding to the text content of the short message is “cloud service data query” by parsing the text content of the short message, and specifically needs to be executed. The action is to query the route;
- the action execution module 133 determines the candidate according to the action type determined by the action recognition module 132, and displays it to the user through the display module 134.
- the action execution module 132 determines the candidate, the user may be provided with a prompt box, waiting for the user to determine whether to perform the query route action, and when determining that the user triggers the execution of the query route action, performing the query route action And display the results of the query to the user.
- the action execution module 132 directly performs a query route action, and displays the query result to the user.
- the first method acquires data by calling the SDK interface opened by the map app, and the second mode accesses the data through the cloud interface opened by the map service provider;
- the form of the data includes and is not limited to the Html 5 page.
- the action execution module 133 does not perform the route query action, but determines the shortcut entry of the related application as a candidate to be displayed to the user, for example, FIG. 14 (c) As shown, the user is presented with a shortcut entry for the "Baidu Maps" application, and the user can initiate a Baidu map to manually query the route through the shortcut portal.
- the actions corresponding to the action types determined by the action recognition module 132 are different, and therefore the actions that the action execution module 133 need to perform are also different, for example, the actions that the action execution module 133 needs to perform.
- a text message is received, and the text content of the short message is “Xiaoming’s phone number?”, and the action recognition module 132 recognizes that the corresponding action type is “offline application data query”, and the specific action is “query address book”.
- the phone number of the small and medium-sized user the action execution module 133 obtains the phone number of Xiao Ming by querying the address book, and presents it to the user as a candidate.
- the action recognition module 132 recognizes that the corresponding action type is "offline application data query", and the specific action is "query calendar or pending application data", action execution
- the module 133 determines a candidate by querying the data of the calendar or the to-do application. For example, if there is no to-do item corresponding to “tomorrow” or “date corresponding to tomorrow” in the data of the to-do application, the candidate presented to the user is displayed. Items are “Yes”, “Available”, “Yes, there are Is it something?
- the candidates displayed to the user are candidates such as “no” or "something tomorrow". Or show specific to-do items to the user.
- the above information passed to the smart input module 13 is the text box type of the application, the unique identifier of the application, and the unique identifier of the text box.
- the above information is: ⁇ text box type
- the action recognition module 132 determines, according to the analysis of the above information, the action type corresponding to the above information is “search history recommendation”, the action The execution module 133 queries whether there is a historical search record corresponding to "com.huawei.app" and "1111" in the local database, and if so, sorts the search keywords in the historical search record according to the search frequency, and searches The keyword is displayed to the user according to the sorted result.
- the frequency of the keyword selected by the user is increased by one; if not, the keyword input by the user is waited for, and the user is input.
- the keyword is stored in the local database, and the frequency of the keyword input by the user is set to 1.
- the above information transmitted by the application to the smart input module 13 includes a unique identifier of the application, a unique identifier of the chat object, and the title information mentioned in the chat with the chat object.
- the above information is: ⁇ app package name: "com.huawei.chat”, chat object: “Zhang San”, information sent to the chat object: "Zhang Zong, meeting at 3 o'clock in the afternoon” ⁇
- action recognition module 132 By parsing the above information, it is determined that the action type corresponding to the above information is “name statistics query”, and the action execution module 133 performs a query whether there is a title word corresponding to “Zhang San”, and if so, corresponding to “Zhang San” The frequency of the appellation word is increased by 1.
- the corresponding action type is “Title Statistics Query” and the application package name is “com.huawei.chat”.
- the chat object is “Zhang San”
- the title corresponding to “Zhang San” will be displayed as a candidate to the user.
- the short message is sent to the "Zhang San” by the short message application, and the terminal device locally stores the title corresponding to the "sms application” and "Zhang San", and the existing title is directly used according to the frequency of use. Show to the user.
- the action recognition module 132 determines and analyzes by analyzing the above information.
- the action type corresponding to the above information is “Find hidden candidate words”, and the action execution module 133 splits the text to be replied into a sequence of words, and converts the correspondence between the pinyin string and the phrase as a hidden candidate word.
- the text to be replied is “Mei and is "Home restaurant”
- the action execution module 133 uses words such as “Meimu and meimuji”, “is shi”, “home jia”, “restaurant canting” as hidden candidates, and when the user inputs "meimuji", the above preference occurs.
- the method in which the action recognition module 132 in all the above embodiments determines the action type corresponding to the above information of the application is the same as in the methods 100 and 200, and is not specifically described in the embodiment in order to avoid repetition.
- the foregoing embodiment relates to displaying a candidate word to the user, wherein after the candidate word that needs to be displayed to the user is determined by the application, the candidate information is transmitted to the smart input module as the application, and is displayed by the smart input module. user.
- the terminal device 20 includes:
- the obtaining module 21 is configured to determine that the input method is triggered to obtain the foregoing information of the target application, where the target application is an application that is currently in an active process state;
- the action recognition module 22 is configured to parse the above information, and determine an action type corresponding to the above information;
- the action execution module 23 is configured to determine, according to the action type, a candidate corresponding to the input method, where the candidate includes a candidate word and/or a candidate operation;
- the display module 24 is configured to present the candidate to the user.
- the terminal device can display the candidate at the time of input according to the related information of the application currently in the active process state, thereby making full use of the input environment information to determine that it is richer and more applicable.
- the candidate for the current input scene enhances the efficiency of the user inputting information through the input method.
- the action recognition module 22 is specifically configured to: obtain keywords in the above information; The keyword and the preset correspondence determine the action type corresponding to the above information, and the correspondence includes the corresponding relationship between the keyword and the action type.
- the action execution module 23 is specifically configured to: perform an action corresponding to the action type; The information obtained is determined as a candidate corresponding to the input method.
- the display module 24 is specifically configured to: present, to the user, prompt information, where the prompt information is used by the user to select whether the user performs the action corresponding to the action type. Trigger the action;
- the action execution module 23 is specifically configured to: when it is determined that the user triggers the action, perform the action.
- the above information includes a verification code, and the action type is a padding verification code;
- the action execution module 24 is specifically configured to: determine the verification code as a candidate corresponding to the input method.
- the above information includes a text to be replied, and the action type is an application for responding to the text to be replied;
- the action execution module 23 is specifically configured to determine, according to the action type, a candidate entry corresponding to the input method, the shortcut entry corresponding to the application for responding to the text to be replied as corresponding to the input method. Candidate.
- the above information includes a text to be replied, and the action type is to invoke a quick reply template
- the action execution module 23 is specifically configured to: perform semantic analysis on the text to be replied, and determine a candidate lexicon, where the candidate vocabulary includes a common reply, in terms of determining a candidate corresponding to the input method according to the action type. a word; determining a predetermined number of words in the candidate vocabulary that are ranked first is a candidate corresponding to the input method.
- the action execution module 23 is further configured to: determine whether the target word input by the user is in the candidate vocabulary; when determining the user input When the target word is in the candidate lexicon, the ranking of the target word in the candidate lexicon is improved; or, when it is determined that the target word input by the user is not in the candidate lexicon, the target word is added to the candidate word In the library.
- the target application is a chat application, and the information includes the text to be replied, and the action type is to extract the original content;
- the action execution module 23 is specifically configured to: extract the keyword in the text to be replied, and execute the action corresponding to the action type, and determine the information obtained by the action as the candidate corresponding to the input method.
- the keyword is determined as a candidate corresponding to the input method.
- the action type is a data query; wherein, the action corresponding to the action type is performed; and the information obtained by executing the action is determined as a candidate corresponding to the input method
- the action execution module 23 is specifically configured to: perform a data query action, obtain and The data corresponding to the above information; the data corresponding to the above information is determined as a candidate corresponding to the input method.
- the information includes the identifier information of the target application and the identifier information of the search box in the target application, where the data query action is performed, and the information corresponding to the information is acquired.
- the action execution module 23 is specifically configured to: query whether there is a historical search record corresponding to the identification information of the target application and the identification information of the search box in the target application; when it is determined that the historical search record exists, obtain The top-ranked number of historical search terms in the historical search record.
- the target application is a chat application
- the information includes the identification information of the target application and the identification information of the chat object.
- the action execution module 23 is specifically configured to: query whether there is an address term corresponding to the identifier information of the target application and the identifier information of the chat object, in performing a data query action to obtain data corresponding to the above information. When it is determined that the address term exists, the first predetermined number of the appellations in the address term are obtained.
- the terminal device 20 herein is embodied in the form of a functional module.
- module may refer to an application specific integrated circuit ("ASIC"), an electronic circuit, a processor for executing one or more software or firmware programs (eg, a shared processor, a proprietary A processor or group processor, etc.) and memory, merge logic, and/or other suitable components that support the functions described.
- ASIC application specific integrated circuit
- the terminal device 20 may be used to perform various processes and/or steps in the foregoing method embodiments. To avoid repetition, details are not described herein again.
- the terminal device 30 includes:
- a display module 31 configured to display an application session interface
- the display module 31 is further configured to display an input method interface
- the display module 31 is further configured to display session information on the application session interface
- the processing module 32 is configured to, in response to the session information, control the display module to display a candidate in the input method candidate area, where the candidate includes a candidate word and/or a candidate operation;
- the processing module 32 is further configured to respond to the user's selection of the display candidate.
- the terminal device can display the candidate in the input method candidate area by responding to the session information displayed on the application session interface, thereby being able to determine that the current input is more applicable.
- the candidates of the scene are displayed to the user to improve the efficiency of the user inputting information through the input method.
- the display module 31 in response to the session information, is configured to: in the input method candidate area display candidate, the processing module 32 is specifically configured to: parse the session information, and determine the session information. Corresponding action type; determining a candidate corresponding to the input method according to the action type; controlling the display module 31 to display the candidate in the input method candidate area.
- the processing module 32 is specifically configured to: acquire keywords in the session information; And determining, by the preset correspondence, an action type corresponding to the session information, where the correspondence includes a correspondence between the keyword and the action type.
- the processing module 32 is specifically configured to: perform an action corresponding to the action type; The information is determined as a candidate corresponding to the input method.
- the processing module 32 is specifically configured to: control the display screen to display prompt information, where the prompt information is used by the user to select whether to trigger the action; This action is executed when the user triggers the action.
- the session information includes a verification code
- the action type is a padding verification code.
- the processing module 32 is configured to determine a candidate corresponding to the input method according to the action type. Specifically, the verification code is determined as a candidate corresponding to the input method.
- the session information includes a text to be replied
- the action type is an application for responding to the text to be replied; wherein, according to the action type, determining, corresponding to the input method,
- the processing module 32 is specifically configured to: determine a shortcut entry for the application that responds to the text to be replied as a candidate corresponding to the input method.
- the session information includes a text to be replied
- the action type is a call quick reply template
- the process is The module 32 is specifically configured to: perform semantic analysis on the text to be replied, and determine a candidate vocabulary, where the candidate vocabulary includes common reply words; and determine a predetermined number of words in the candidate vocabulary to be the input The candidate corresponding to the law.
- the processing module is further configured to: determine whether the target word input by the user is in the candidate vocabulary; when determining the target word input by the user In the candidate lexicon, increasing the ranking of the target word in the candidate lexicon; or, when determining that the target word input by the user is not in the candidate vocabulary, adding the target vocabulary Added to the candidate vocabulary.
- the target application is a chat application
- the session information includes a text to be replied
- the action type is extracting original text content; wherein, the action corresponding to the action type is performed;
- the information obtained by the action is determined as a candidate corresponding to the input method, and the processing module 32 is specifically configured to: extract a keyword in the text to be replied; and determine the keyword as a candidate corresponding to the input method .
- the action type is a data query; wherein, the action corresponding to the action type is performed; and the information obtained by executing the action is determined as a candidate corresponding to the input method
- the processing module 32 is specifically configured to: execute a data query operation, acquire data corresponding to the session information; and determine the data corresponding to the session information as a candidate corresponding to the input method.
- the session information includes the identifier information of the target application and the identifier information of the search box in the target application, where the data query action is performed to acquire data corresponding to the session information.
- the processing module 32 is specifically configured to: query whether there is a historical search record corresponding to the identification information of the target application and the identification information of the search box in the target application; when it is determined that the historical search record exists, obtain the historical search The top-ranked number of historical search terms in the record.
- the target application is a chat application
- the session information includes the identification information of the target application and the identification information of the chat object
- the processing module 32 is specifically configured to: query whether there is an address term corresponding to the identifier information of the target application and the identifier information of the chat object; and when determining the existence of the address term, obtain the ranking in the address term The default number of interpretations in the front.
- the terminal device 30 herein is embodied in the form of a functional module.
- module may refer to an application specific integrated circuit ("ASIC"), an electronic circuit, a processor for executing one or more software or firmware programs (eg, a shared processor, a proprietary A processor or group processor, etc.) and memory, merge logic, and/or other suitable components that support the functions described.
- ASIC application specific integrated circuit
- the terminal device 30 may be used to perform various processes and/or steps in the foregoing method 2000. To avoid repetition, details are not described herein again.
- the embodiment of the present invention further provides a terminal device 40.
- the terminal device 40 may specifically include: a radio frequency (Radio Frequency, abbreviated as "RF") circuit. 41.
- RF Radio Frequency
- a memory 42 an input unit 43, a display unit 44, an audio unit 45, a processor 46, a power source 47, and an interface 48.
- the structure of the terminal device shown in FIG. 19 does not constitute a limitation on the terminal device, and the terminal device may specifically include more or less components than those shown in FIG. 19, or may combine certain components. Parts, or different parts, are distributed in different locations.
- the processor 46 is configured to determine that the input method is triggered to obtain the foregoing information of the target application, where the target application is an application that is currently in an active process state; parse the foregoing information, determine the a type of action corresponding to the text information; determining a candidate corresponding to the input method according to the action type, the candidate includes a candidate word and/or a candidate operation; the display unit 44 is configured to display the candidate to the user item.
- the terminal device can display the candidate at the time of input according to the related information of the application currently in the active process state, thereby making full use of the input environment information to determine that it is richer and more applicable.
- the candidate for the current input scene enhances the efficiency of the user inputting information through the input method.
- the display unit 44 is configured to display an application session interface; the display unit 44 is further configured to display an input method interface; the display unit 44 is further configured to display session information on the application session interface; the processor 46 is configured to: In response to the session information, an input method candidate area on the display unit displays a candidate, the candidate including a candidate word and/or a candidate operation; the processor 46 is further configured to respond to the user's selection of the candidate.
- the terminal device can display candidates in the input method candidate area by responding to the session information displayed on the application session interface, thereby being able to determine candidates that are more suitable for the current input scene, and display them to the user. Improve the efficiency of users entering information through input methods.
- the RF circuit 41 can be used for receiving and transmitting signals during the transmission and reception of information or a call, and in particular, after receiving the downlink signal, the processor 46 is processed; in addition, the uplink signal is sent. Go out.
- RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
- the RF circuit 41 can also communicate with the network and other devices through wireless communication.
- the wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile Communication (“GSM”), General Packet Radio Service ("GPRS”). , Code Division Multiple Access (“CDMA”), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (Long Term) Evolution, referred to as "LTE", e-mail, Short Messaging Service (“SMS”).
- GSM Global System of Mobile Communication
- GPRS General Packet Radio Service
- CDMA Code Division Multiple
- the memory 42 can be used to store software programs and modules, and the processor 46 executes various functional applications and signal processing of the terminal devices by running software programs and modules stored in the memory 42.
- the memory 42 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system of the smart phone, an application required for at least one function (such as an application required for inputting an information function, that is, an input method application, a sound playback) Function, image playback function, etc.); the storage data area can store data created according to the use of the smartphone (such as a thesaurus, audio data, image data, phone book, etc. created during the user's use of the input method).
- memory 42 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
- the input unit 43 can be configured to receive input digital or character information and to generate key signal inputs related to user settings and function control of the terminal device.
- the input unit 43 may include a touch screen 431 and other input devices 432.
- the touch screen 431 also referred to as a touch panel, can collect touch operations on or near the user (such as the operation of the user using a finger, a stylus, or the like on the touch screen 431 or near the touch screen 431), and The corresponding connecting device is driven according to a preset program.
- the touch screen 431 may include two parts of a touch detection device and a touch controller.
- the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
- the processor 46 is provided and can receive commands from the processor 46 and execute them.
- the touch screen 431 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
- Other input devices 432 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, power keys, etc.), trackballs, mice, joysticks, and the like.
- the display unit 44 can be used to display information input by the user or information provided to the user as well as various menus of the terminal device.
- the display unit 44 may include a display panel 441.
- the display unit may be configured in a form of a liquid crystal display (“LCD”) or an organic light-emitting diode (OLED).
- the touch screen 431 can cover the display panel 441, and when the touch screen 431 detects a touch operation thereon or nearby, it is transmitted to the processor 46 to determine the type of the touch event, and then the processor 46 displays the panel according to the type of the touch event. A corresponding visual output is provided on the 441.
- touch screen 431 and the display panel 441 are two independent components to implement the input and output functions of the smartphone, but in some embodiments, the touch screen 431 can be integrated with the display panel 441 to implement the input and output functions of the terminal device. .
- the audio unit 45 includes an audio circuit 451, a speaker 452, and a microphone 453.
- the audio unit 45 can provide an audio interface between the user and the terminal device.
- the audio circuit 451 can transmit the converted electrical data of the received audio data to the speaker 452, and convert it into a sound signal output by the speaker 452.
- the microphone 453 converts the collected sound signal into an electrical signal, and the audio circuit 451 After receiving, it is converted into audio data, and then the audio data is output to the RF circuit 41 for transmission to, for example, another terminal device, or the audio data is output to the memory 42 for further processing.
- the processor 46 is a control center of the terminal device, and connects various parts of the entire terminal device using various interfaces and lines, by executing or executing software programs and modules stored in the memory 42, and calling data stored in the memory 42, executing The various functions of the terminal device and the processing of data, thereby completing the corresponding functions of the terminal device.
- the processor 46 may include one or more processing units; preferably, the processor 46 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
- the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 46.
- the terminal device also includes a power source 47 (such as a battery) that supplies power to the various components.
- a power source 47 such as a battery
- the power source can be logically coupled to the processor 46 through the power management system to manage functions such as charging, discharging, and power management through the power management system.
- the interface 48 can be used to connect with other devices and transmit data between the terminal device and other devices.
- the terminal device may further include a Wireless Fidelity (“WiFi”) module, a Bluetooth module, and the like, which are not shown in FIG. 19, and details are not described herein again.
- WiFi Wireless Fidelity
- Bluetooth Wireless Fidelity
- the processor 46 is specifically configured to: acquire a keyword in the information above, in the aspect of parsing the information, and determining an action type corresponding to the information, according to the keyword; Corresponding relationship with the preset determines an action type corresponding to the above information, and the correspondence includes a correspondence between the keyword and the action type.
- the processor 46 in determining a candidate corresponding to the input method according to the action type, is specifically configured to: perform an action corresponding to the action type; and obtain information obtained by the action , determined as a candidate corresponding to the input method.
- the displaying unit 44 is configured to: present, to the user, prompt information, where the prompt information is used by the user to select whether to trigger the action, where the processor is 46 is specifically used to: when it is determined that the user triggers the action, the action is performed.
- the foregoing information includes a verification code, and the action type is a padding verification code;
- the processor 46 is specifically configured to: determine the verification code as a candidate corresponding to the input method, in determining a candidate corresponding to the input method according to the action type.
- the foregoing information includes a text to be replied, where the action type is an application for responding to the text to be replied;
- the processor 46 is specifically configured to determine, as a candidate corresponding to the input method, a shortcut entry for responding to the application of the text to be replied as a candidate corresponding to the input method. item.
- the foregoing information includes a text to be replied, and the action type is a quick reply template
- the processor 46 is specifically configured to perform semantic analysis on the text to be replied according to the type of the action, and determine a candidate vocabulary, where the candidate vocabulary includes common reply words. And determining, in the candidate vocabulary, a preset number of words ranked first in the candidate vocabulary as candidates corresponding to the input method.
- the processor 46 is further configured to: determine whether the target word input by the user is in the candidate vocabulary; when determining the target input by the user When the word is in the candidate lexicon, the ranking of the target word in the candidate lexicon is improved; or, when it is determined that the target word input by the user is not in the candidate lexicon, the target word is added to the candidate lexicon. .
- the target application is a chat application, where the information includes a text to be replied, and the action type is extracting the original content;
- the processor 46 is specifically configured to: extract the keyword in the text to be replied; the processor 46 is specifically configured to: extract the information in the text to be replied; The keyword is determined as a candidate corresponding to the input method.
- the action type is a data query; wherein, the action corresponding to the action type is performed; and the information obtained by executing the action is determined to be corresponding to the input method.
- the processor 46 is specifically configured to: execute a data query action, acquire data corresponding to the above information; and determine the data corresponding to the above information as a candidate corresponding to the input method.
- the foregoing information includes the identifier information of the target application and the identifier information of the search box in the target application;
- the processor 46 is specifically configured to: query whether there is identifier information corresponding to the target application and the identifier information of the search box in the target application, where the data query action is performed to obtain the data corresponding to the information.
- the historical search record when it is determined that the historical search record exists, the top predetermined number of historical search words in the historical search record are obtained.
- the target application is a chat application, where the information includes the identification information of the target application and the identification information of the chat object, where the data query action is performed, and the information is obtained.
- the processor 46 is specifically configured to: query whether there is an address term corresponding to the identifier information of the target application and the identifier information of the chat object; and when determining the existence of the address term, obtain the ranking in the address term The default number of interpretations in the front.
- terminal device 40 may correspond to the terminal device 20 or the terminal device 30 in the embodiment of the present invention, and may correspond to the terminal device in the method embodiment of the present invention. Let me repeat.
- the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention.
- the implementation process constitutes any limitation.
- RAM random access memory
- ROM read-only memory
- EPROM electrically programmable read-only memory
- EEPROM electrically erasable Electrically Erasable Programmable Read-Only Memory
- CD-ROM Compact Disc Read-Only Memory
- the disclosed systems, devices, and methods may be implemented in other manners.
- the device embodiments described above are merely illustrative.
- the division of the unit is only a logical function division.
- there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- User Interface Of Digital Computer (AREA)
- Input From Keyboards Or The Like (AREA)
- Telephone Function (AREA)
Abstract
Description
正则表达式 | 动作类型 |
验证码+标点+数字+标点 | 填充验证码 |
代词+时间词+在哪+问号 | 地理位置查询 |
动词+名词+名词+问号 | 原文内容摘取 |
地名+地名+怎么走+问号 | 云端服务数据查询 |
关键词 | 动作类型 |
验证码、数字 | 填充验证码 |
什么时候 | 调用快速回复模板 |
电话号码 | 离线应用数据查询 |
应用的包名、文本框ID | 搜索历史推荐 |
Claims (62)
- 一种展示候选项的方法,所述方法应用于用户通过输入法输入信息的场景中,其特征在于,所述方法包括:确定所述输入法被触发,获取目标应用的上文信息,所述目标应用为当前处于活动进程状态的应用;解析所述上文信息,确定与所述上文信息对应的动作类型;根据所述动作类型,确定与所述输入法对应的候选项,所述候选项包括候选词和/或候选操作;向用户展示所述候选项。
- 根据权利要求1所述的方法,其特征在于,所述解析所述上文信息,确定与所述上文信息对应的动作类型,包括:获取所述上文信息中的关键词;根据所述关键词和预设的对应关系,确定与所述上文信息对应的动作类型,所述对应关系包括所述关键词和所述动作类型的对应关系。
- 根据权利要求1或2所述的方法,其特征在于,所述根据所述动作类型,确定与所述输入法对应的候选项,包括:执行所述动作类型对应的动作;将执行所述动作获取到的信息,确定为与所述输入法对应的候选项。
- 根据权利要求3所述的方法,其特征在于,所述执行所述动作类型对应的动作,包括:向用户呈现提示信息,所述提示信息用于用户选择是否触发所述动作;当确定用户触发所述动作时,执行所述动作。
- 根据权利要求1或2所述的方法,其特征在于,所述上文信息中包括验证码,所述动作类型为填充验证码;其中,所述根据所述动作类型,确定与所述输入法对应的候选项,包括:将所述验证码确定为与所述输入法对应的候选项。
- 根据权利要求1或2所述的方法,其特征在于,所述上文信息中包括待回复文本,所述动作类型为调用用于响应所述待回复文本的应用;其中,所述根据所述动作类型,确定与所述输入法对应的候选项,包括:将所述用于响应所述待回复文本的应用的快捷入口确定为与所述输入法对应的候选项。
- 根据权利要求1或2所述的方法,其特征在于,所述上文信息中包括待回复文本,所述动作类型为调用快速回复模板;其中,所述根据所述动作类型,确定与所述输入法对应的候选项,包括:对所述待回复文本进行语义解析,确定候选词库,所述候选词库中包括常用回复词语;将所述候选词库中排序靠前的预设数量的词语确定为与所述输入法对应的候选项。
- 根据权利要求7所述的方法,其特征在于,在向用户呈现所述候选项之后,所述方法还包括:确定用户输入的目标词语是否在所述候选词库中;当确定用户输入的目标词语在所述候选词库中时,提高所述目标词语在所述候选词库中的排名;或,当确定用户输入的目标词语不在所述候选词库中时,将所述目标词语添加到所述候选词库中。
- 根据权利要求3或4所述的方法,其特征在于,所述目标应用为聊天类应用,所述上文信息中包括待回复文本,所述动作类型为提取原文内容;其中,所述执行所述动作类型对应的动作;将执行所述动作获取到的信息,确定为与所述输入法对应的候选项,包括:提取所述待回复文本中的关键词;将所述关键词确定为与所述输入法对应的候选项。
- 根据权利要求3或4所述的方法,其特征在于,所述动作类型为数据查询;其中,所述执行所述动作类型对应的动作;将执行所述动作获取到的信息,确定为与所述输入法对应的候选项,包括:执行数据查询动作,获取与所述上文信息对应的数据;将所述与所述上文信息对应的数据确定为与所述输入法对应的候选项。
- 根据权利要求10所述的方法,其特征在于,所述上文信息中包括所述目标应用的标识信息和所述目标应用中的搜索框的标识信息;其中,所述执行数据查询动作,获取与所述上文信息对应的数据,包括:查询是否存在与所述目标应用的标识信息和所述目标应用中的搜索框的标识信息对应的历史搜索记录;当确定存在所述历史搜索记录时,获取所述历史搜索记录中排名靠前的预设数量的历史搜索词。
- 根据权利要求10所述的方法,其特征在于,所述目标应用为聊天类应用,所述上文信息中包括所述目标应用的标识信息和聊天对象的标识信息;其中,所述执行数据查询动作,获取与所述上文信息相对应的数据,包括:查询是否存在与所述目标应用的标识信息和所述聊天对象的标识信息对应的称谓语;当确定存在所述称谓语时,获取所述称谓语中排名靠前的预设数量的称谓语。
- 一种展示候选项的终端设备,其特征在于,所述终端设备包括:获取模块,用于确定所述输入法被触发,获取目标应用的上文信息,所述目标应用为当前处于活动进程状态的应用;动作识别模块,用于解析所述上文信息,确定与所述上文信息对应的动作类型;动作执行模块,用于根据所述动作类型,确定与所述输入法对应的候选项,所述候选项包括候选词和/或候选操作;展示模块,用于向用户提供所述候选项。
- 根据权利要求13所述的终端设备,其特征在于,在解析所述上文信息,确定与所述上文信息对应的动作类型方面,所述动作识别模块具体用于:获取所述上文信息中的关键词;根据所述关键词和预设的对应关系,确定与所述上文信息对应的动作类型,所述对应关系包括所述关键词和所述动作类型的对应关系。
- 根据权利要求13或14所述的终端设备,其特征在于,在根据所述动作类型,确定与所述输入法对应的候选项方面,所述动作执行模块具体用于:执行所述动作类型对应的动作;将执行所述动作获取到的信息,确定为与所述输入法对应的候选项。
- 根据权利要求15所述的终端设备,其特征在于,在执行所述动作 类型对应的动作方面,所述展示模块具体用于:向用户呈现提示信息,所述提示信息用于用户选择是否触发所述动作;其中,所述动作执行模块具体用于:当确定用户触发所述动作时,执行所述动作。
- 根据权利要求13或14所述的终端设备,其特征在于,所述上文信息中包括验证码,所述动作类型为填充验证码;其中,在根据所述动作类型,确定与所述输入法对应的候选项方面,所述动作执行模块具体用于:将所述验证码确定为与所述输入法对应的候选项。
- 根据权利要求13或14所述的终端设备,其特征在于,所述上文信息中包括待回复文本,所述动作类型为调用用于响应所述待回复文本的应用;其中,在根据所述动作类型,确定与所述输入法对应的候选项方面,所述动作执行模块具体用于:将所述用于响应所述待回复文本的应用的快捷入口确定为与所述输入法对应的候选项。
- 根据权利要求13或14所述的终端设备,其特征在于,所述上文信息中包括待回复文本,所述动作类型为调用快速回复模板;其中,在根据所述动作类型,确定与所述输入法对应的候选项方面,所述动作执行模块具体用于:对所述待回复文本进行语义解析,确定候选词库,所述候选词库中包括常用回复词语;将所述候选词库中排序靠前的预设数量的词语确定为与所述输入法对应的候选项。
- 根据权利要求19所述的终端设备,其特征在于,在所述展示模块向用户呈现所述候选项之后,所述动作执行模块还用于:确定用户输入的目标词语是否在所述候选词库中;当确定用户输入的目标词语在所述候选词库中时,提高所述目标词语在所述候选词库中的排名;或,当确定用户输入的目标词语不在所述候选词库中时,将所述目标词语添加到所述候选词库中。
- 根据权利要求15或16所述的终端设备,其特征在于,所述目标应用为聊天类应用,所述上文信息中包括待回复文本,所述动作类型为提取原文内容;其中,在执行所述动作类型对应的动作;将执行所述动作获取到的信息,确定为与所述输入法对应的候选项方面,所述动作执行模块具体用于:提取所述待回复文本中的关键词;将所述关键词确定为与所述输入法对应的候选项。
- 根据权利要求15或16所述的终端设备,其特征在于,所述动作类型为数据查询;其中,在执行所述动作类型对应的动作;将执行所述动作获取到的信息,确定为与所述输入法对应的候选项方面,所述动作执行模块具体用于:执行数据查询动作,获取与所述上文信息对应的数据;将所述与所述上文信息对应的数据确定为与所述输入法对应的候选项。
- 根据权利要求22所述的终端设备,其特征在于,所述上文信息中包括所述目标应用的标识信息和所述目标应用中的搜索框的标识信息;其中,在执行数据查询动作,获取与所述上文信息对应的数据方面,所述动作执行模块具体用于:查询是否存在与所述目标应用的标识信息和所述目标应用中的搜索框的标识信息对应的历史搜索记录;当确定存在所述历史搜索记录时,获取所述历史搜索记录中排名靠前的预设数量的历史搜索词。
- 根据权利要求22所述的终端设备,其特征在于,所述目标应用为聊天类应用,所述上文信息中包括所述目标应用的标识信息和聊天对象的标识信息;其中,在执行数据查询动作,获取与所述上文信息相对应的数据方面,所述动作执行模块具体用于:查询是否存在与所述目标应用的标识信息和所述聊天对象的标识信息对应的称谓语;当确定存在所述称谓语时,获取所述称谓语中排名靠前的预设数量的称谓语。
- 一种终端设备,其特征在于,包括:处理器,用于确定所述输入法被触发,获取目标应用的上文信息,所述目标应用为当前处于活动进程状态的应用;所述处理器,还用于解析所述上文信息,确定与所述上文信息对应的动作类型;所述处理器,还用于根据所述动作类型,确定与所述输入法对应的候选项,所述候选项包括候选词和/或候选操作;显示屏,用于向用户展示所述候选项。
- 根据权利要求25所述的终端设备,其特征在于,在解析所述上文信息,确定与所述上文信息对应的动作类型方面,所述处理器具体用于:获取所述上文信息中的关键词;根据所述关键词和预设的对应关系,确定与所述上文信息对应的动作类型,所述对应关系包括所述关键词和所述动作类型的对应关系。
- 根据权利要求25或26所述的终端设备,其特征在于,在根据所述动作类型,确定与所述输入法对应的候选项方面,所述处理器具体用于:执行所述动作类型对应的动作;将执行所述动作获取到的信息,确定为与所述输入法对应的候选项。
- 根据权利要求27所述的终端设备,其特征在于,在执行所述动作类型对应的动作方面,所述处理器具体用于:向用户呈现提示信息,所述提示信息用于用户选择是否触发所述动作;当确定用户触发所述动作时,执行所述动作。
- 根据权利要求25或26所述的终端设备,其特征在于,所述上文信息中包括验证码,所述动作类型为填充验证码;其中,在根据所述动作类型,确定与所述输入法对应的候选项方面,所述处理器具体用于:将所述验证码确定为与所述输入法对应的候选项。
- 根据权利要求25或26所述的终端设备,其特征在于,所述上文信息中包括待回复文本,所述动作类型为调用用于响应所述待回复文本的应用;其中,在根据所述动作类型,确定与所述输入法对应的候选项方面,所述处理器具体用于:将所述用于响应所述待回复文本的应用的快捷入口确定为与所述输入 法对应的候选项。
- 根据权利要求25或26所述的终端设备,其特征在于,所述上文信息中包括待回复文本,所述动作类型为调用快速回复模板;其中,在根据所述动作类型,确定与所述输入法对应的候选项方面,所述处理器具体用于:对所述待回复文本进行语义解析,确定候选词库,所述候选词库中包括常用回复词语;将所述候选词库中排序靠前的预设数量的词语确定为与所述输入法对应的候选项。
- 根据权利要求31所述的终端设备,其特征在于,在所述显示屏向用户呈现所述候选项之后,所述处理器还用于:确定用户输入的目标词语是否在所述候选词库中;当确定用户输入的目标词语在所述候选词库中时,提高所述目标词语在所述候选词库中的排名;或,当确定用户输入的目标词语不在所述候选词库中时,将所述目标词语添加到所述候选词库中。
- 根据权利要求25或26所述的终端设备,其特征在于,所述目标应用为聊天类应用,所述上文信息中包括待回复文本,所述动作类型为提取原文内容;其中,在执行所述动作类型对应的动作;将执行所述动作获取到的信息,确定为与所述输入法对应的候选项方面,所述处理器具体用于:提取所述待回复文本中的关键词;将所述关键词确定为与所述输入法对应的候选项。
- 根据权利要求25或26所述的终端设备,其特征在于,所述动作类型为数据查询;其中,在执行所述动作类型对应的动作;将执行所述动作获取到的信息,确定为与所述输入法对应的候选项方面,所述处理器具体用于:执行数据查询动作,获取与所述上文信息对应的数据;将所述与所述上文信息对应的数据确定为与所述输入法对应的候选项。
- 根据权利要求34所述的终端设备,其特征在于,所述上文信息中包括所述目标应用的标识信息和所述目标应用中的搜索框的标识信息;其中,在执行数据查询动作,获取与所述上文信息对应的数据方面,所述处理器具体用于:查询是否存在与所述目标应用的标识信息和所述目标应用中的搜索框的标识信息对应的历史搜索记录;当确定存在所述历史搜索记录时,获取所述历史搜索记录中排名靠前的预设数量的历史搜索词。
- 根据权利要求34所述的终端设备,其特征在于,所述目标应用为聊天类应用,所述上文信息中包括所述目标应用的标识信息和聊天对象的标识信息;其中,在执行数据查询动作,获取与所述上文信息相对应的数据方面,所述处理器具体用于:查询是否存在与所述目标应用的标识信息和所述聊天对象的标识信息对应的称谓语;当确定存在所述称谓语时,获取所述称谓语中排名靠前的预设数量的称谓语。
- 一种展示候选项的方法,所述方法应用于用户通过输入法输入信息的场景中,其特征在于,所述方法包括:显示应用会话界面;显示输入法界面;在所述应用会话界面显示会话信息;响应所述会话信息,在输入法候选区显示候选项,所述候选项包括候选词和/或候选操作;响应用户对所述候选项的选择。
- 根据权利要求37所述的方法,其特征在于,所述响应所述会话信息,在输入法候选区显示候选项,包括:解析所述会话信息,确定与所述会话信息对应的动作类型;根据所述动作类型,确定与所述输入法对应的候选项;在输入法候选区显示所述候选项。
- 根据权利要求38所述的方法,其特征在于,所述解析所述会话信息,确定与所述会话信息对应的动作类型,包括:获取所述会话信息中的关键词;根据所述关键词和预设的对应关系,确定与所述会话信息对应的动作类型,所述对应关系包括所述关键词和所述动作类型的对应关系。
- 根据权利要求38或39所述的方法,其特征在于,所述根据所述动作类型,确定与所述输入法对应的候选项,包括:执行所述动作类型对应的动作;将执行所述动作获取到的信息,确定为与所述输入法对应的候选项。
- 根据权利要求40所述的方法,其特征在于,所述执行所述动作类型对应的动作,包括:显示提示信息,所述提示信息用于用户选择是否触发所述动作;当确定用户触发所述动作时,执行所述动作。
- 根据权利要求38或39所述的方法,其特征在于,所述会话信息中包括验证码,所述动作类型为填充验证码;其中,所述根据所述动作类型,确定与所述输入法对应的候选项,包括:将所述验证码确定为与所述输入法对应的候选项。
- 根据权利要求38或39所述的方法,其特征在于,所述会话信息中包括待回复文本,所述动作类型为调用用于响应所述待回复文本的应用;其中,所述根据所述动作类型,确定与所述输入法对应的候选项,包括:将所述用于响应所述待回复文本的应用的快捷入口确定为与所述输入法对应的候选项。
- 根据权利要求38或39所述的方法,其特征在于,所述会话信息中包括待回复文本,所述动作类型为调用快速回复模板;其中,所述根据所述动作类型,确定与所述输入法对应的候选项,包括:对所述待回复文本进行语义解析,确定候选词库,所述候选词库中包括常用回复词语;将所述候选词库中排序靠前的预设数量的词语确定为与所述输入法对应的候选项。
- 根据权利要求44所述的方法,其特征在于,在响应用户对所述显示候选项的选择之后,所述方法还包括:确定用户输入的目标词语是否在所述候选词库中;当确定用户输入的目标词语在所述候选词库中时,提高所述目标词语在所述候选词库中的排名;或,当确定用户输入的目标词语不在所述候选词库中时,将所述目标词语添加到所述候选词库中。
- 根据权利要求40或41所述的方法,其特征在于,所述目标应用为聊天类应用,所述会话信息中包括待回复文本,所述动作类型为提取原文内容;其中,所述执行所述动作类型对应的动作;将执行所述动作获取到的信息,确定为与所述输入法对应的候选项,包括:提取所述待回复文本中的关键词;将所述关键词确定为与所述输入法对应的候选项。
- 根据权利要求40或41所述的方法,其特征在于,所述动作类型为数据查询;其中,所述执行所述动作类型对应的动作;将执行所述动作获取到的信息,确定为与所述输入法对应的候选项,包括:执行数据查询动作,获取与所述会话信息对应的数据;将所述与所述会话信息对应的数据确定为与所述输入法对应的候选项。
- 根据权利要求47所述的方法,其特征在于,所述会话信息中包括所述目标应用的标识信息和所述目标应用中的搜索框的标识信息;其中,所述执行数据查询动作,获取与所述会话信息对应的数据,包括:查询是否存在与所述目标应用的标识信息和所述目标应用中的搜索框的标识信息对应的历史搜索记录;当确定存在所述历史搜索记录时,获取所述历史搜索记录中排名靠前的预设数量的历史搜索词。
- 根据权利要求47所述的方法,其特征在于,所述目标应用为聊天类应用,所述会话信息中包括所述目标应用的标识信息和聊天对象的标识信息;其中,所述执行数据查询动作,获取与所述会话信息相对应的数据,包括:查询是否存在与所述目标应用的标识信息和所述聊天对象的标识信息对应的称谓语;当确定存在所述称谓语时,获取所述称谓语中排名靠前的预设数量的称谓语。
- 一种终端设备,其特征在于,包括:显示屏,用于显示应用会话界面;所述显示屏,还用于显示输入法界面;所述显示屏,还用于在所述应用会话界面显示会话信息;处理器,用于响应所述会话信息,在所述显示屏上的输入法候选区显示候选项,所述候选项包括候选词和/或候选操作;所述处理器,还用于响应用户对所述候选项的选择。
- 根据权利要求50所述的终端设备,其特征在于,在响应所述会话信息,在所述显示屏的输入法候选区显示候选项方面,所述处理器具体用于:解析所述会话信息,确定与所述会话信息对应的动作类型;根据所述动作类型,确定与所述输入法对应的候选项;在所述显示屏上的输入法候选区显示所述候选项。
- 根据权利要求51所述的终端设备,其特征在于,在解析所述会话信息,确定与所述会话信息对应的动作类型方面,所述处理器具体用于:获取所述会话信息中的关键词;根据所述关键词和预设的对应关系,确定与所述会话信息对应的动作类型,所述对应关系包括所述关键词和所述动作类型的对应关系。
- 根据权利要求51或52所述的终端设备,其特征在于,在根据所述动作类型,确定与所述输入法对应的候选项方面,所述处理器具体用于:执行所述动作类型对应的动作;将执行所述动作获取到的信息,确定为与所述输入法对应的候选项。
- 根据权利要求53所述的终端设备,其特征在于,在执行所述动作类型对应的动作方面,所述处理器具体用于:控制所述显示屏显示提示信息,所述提示信息用于用户选择是否触发所述动作;当确定用户触发所述动作时,执行所述动作。
- 根据权利要求51或52所述的终端设备,其特征在于,所述会话信息中包括验证码,所述动作类型为填充验证码;其中,在根据所述动作类型,确定与所述输入法对应的候选项方面,所述处理器具体用于:将所述验证码确定为与所述输入法对应的候选项。
- 根据权利要求51或52所述的终端设备,其特征在于,所述会话信息中包括待回复文本,所述动作类型为调用用于响应所述待回复文本的应用;其中,在根据所述动作类型,确定与所述输入法对应的候选项方面,所述处理器具体用于:将所述用于响应所述待回复文本的应用的快捷入口确定为与所述输入法对应的候选项。
- 根据权利要求51或52所述的终端设备,其特征在于,所述会话信息中包括待回复文本,所述动作类型为调用快速回复模板;其中,在根据所述动作类型,确定与所述输入法对应的候选项方面,所述处理器具体用于:对所述待回复文本进行语义解析,确定候选词库,所述候选词库中包括常用回复词语;将所述候选词库中排序靠前的预设数量的词语确定为与所述输入法对应的候选项。
- 根据权利要求57所述的终端设备,其特征在于,在响应用户对所述候选项的选择之后,所述处理器还用于:确定用户输入的目标词语是否在所述候选词库中;当确定用户输入的目标词语在所述候选词库中时,提高所述目标词语在所述候选词库中的排名;或,当确定用户输入的目标词语不在所述候选词库中时,将所述目标词语添加到所述候选词库中。
- 根据权利要求53或54所述的终端设备,其特征在于,所述目标应用为聊天类应用,所述会话信息中包括待回复文本,所述动作类型为提取原文内容;其中,在执行所述动作类型对应的动作;将执行所述动作获取到的信息,确定为与所述输入法对应的候选项方面,所述处理器具体用于:提取所述待回复文本中的关键词;将所述关键词确定为与所述输入法对应的候选项。
- 根据权利要求53或54所述的终端设备,其特征在于,所述动作类型为数据查询;其中,在执行所述动作类型对应的动作;将执行所述动作获取到的信息,确定为与所述输入法对应的候选项方面,所述处理器具体用于:执行数据查询动作,获取与所述会话信息对应的数据;将所述与所述会话信息对应的数据确定为与所述输入法对应的候选项。
- 根据权利要求60所述的终端设备,其特征在于,所述会话信息中包括所述目标应用的标识信息和所述目标应用中的搜索框的标识信息;其中,在执行数据查询动作,获取与所述会话信息对应的数据方面,所述处理器具体用于:查询是否存在与所述目标应用的标识信息和所述目标应用中的搜索框的标识信息对应的历史搜索记录;当确定存在所述历史搜索记录时,获取所述历史搜索记录中排名靠前的预设数量的历史搜索词。
- 根据权利要求60所述的终端设备,其特征在于,所述目标应用为聊天类应用,所述会话信息中包括所述目标应用的标识信息和聊天对象的标识信息;其中,在执行数据查询动作,获取与所述会话信息相对应的数据方面,所述处理器具体用于:查询是否存在与所述目标应用的标识信息和所述聊天对象的标识信息对应的称谓语;当确定存在所述称谓语时,获取所述称谓语中排名靠前的预设数量的称谓语。
Priority Applications (5)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP16909268.1A EP3483745A4 (en) | 2016-07-22 | 2016-07-22 | METHOD AND TERMINAL DEVICE FOR PRESENTING A CANDIDATE ELEMENT |
PCT/CN2016/091036 WO2018014341A1 (zh) | 2016-07-22 | 2016-07-22 | 展示候选项的方法和终端设备 |
JP2019503462A JP2019532376A (ja) | 2016-07-22 | 2016-07-22 | 候補項目提示方法および端末デバイス |
US16/319,805 US20190332663A1 (en) | 2016-07-22 | 2016-07-22 | Candidate-item presentation method and terminal device |
CN201680084681.1A CN109074354B (zh) | 2016-07-22 | 2016-07-22 | 展示候选项的方法和终端设备 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2016/091036 WO2018014341A1 (zh) | 2016-07-22 | 2016-07-22 | 展示候选项的方法和终端设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018014341A1 true WO2018014341A1 (zh) | 2018-01-25 |
Family
ID=60993036
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/091036 WO2018014341A1 (zh) | 2016-07-22 | 2016-07-22 | 展示候选项的方法和终端设备 |
Country Status (5)
Country | Link |
---|---|
US (1) | US20190332663A1 (zh) |
EP (1) | EP3483745A4 (zh) |
JP (1) | JP2019532376A (zh) |
CN (1) | CN109074354B (zh) |
WO (1) | WO2018014341A1 (zh) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110008331A (zh) * | 2019-04-15 | 2019-07-12 | 三角兽(北京)科技有限公司 | 信息展示方法、装置、电子设备及计算机可读存储介质 |
EP3644177A1 (en) * | 2018-10-24 | 2020-04-29 | Beijing Xiaomi Mobile Software Co., Ltd. | Input method, device, apparatus, and storage medium |
CN113039513A (zh) * | 2019-03-12 | 2021-06-25 | 华为技术有限公司 | 一种输入法候选内容的推荐方法及电子设备 |
CN115905502A (zh) * | 2022-07-19 | 2023-04-04 | 北京中关村科金技术有限公司 | 一种话术挖掘与推荐方法、装置及存储介质 |
Families Citing this family (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107688398B (zh) * | 2016-08-03 | 2019-09-17 | 中国科学院计算技术研究所 | 确定候选输入的方法和装置及输入提示方法和装置 |
WO2018195783A1 (en) * | 2017-04-25 | 2018-11-01 | Microsoft Technology Licensing, Llc | Input method editor |
CN111381685B (zh) * | 2018-12-29 | 2024-03-22 | 北京搜狗科技发展有限公司 | 一种句联想方法和装置 |
CN111427459B (zh) * | 2019-01-08 | 2024-04-02 | 北京搜狗科技发展有限公司 | 一种在用户通信时输入优化的方法及相关装置 |
CN110888539B (zh) * | 2019-11-18 | 2024-03-26 | 腾讯科技(深圳)有限公司 | 输入法中的人名推荐方法、装置、设备及存储介质 |
CN113032034A (zh) * | 2019-12-06 | 2021-06-25 | 北京达佳互联信息技术有限公司 | 控制应用程序的方法、装置、服务器及存储介质 |
CN112214115B (zh) * | 2020-09-25 | 2024-04-30 | 汉海信息技术(上海)有限公司 | 输入方式的识别方法、装置、电子设备及存储介质 |
CN112328094A (zh) * | 2020-11-03 | 2021-02-05 | 北京字节跳动网络技术有限公司 | 信息输入方法、云端输入法***和客户端 |
EP4057259A1 (en) * | 2021-03-12 | 2022-09-14 | OMRON Corporation | Character input device, character input method, and character input program |
CN113138677A (zh) * | 2021-04-25 | 2021-07-20 | 北京字节跳动网络技术有限公司 | 输入法候选词的确定方法、装置、电子设备和存储介质 |
CN113126781A (zh) * | 2021-04-27 | 2021-07-16 | 深圳市艾酷通信软件有限公司 | 信息显示方法、装置、设备和存储介质 |
CN115373523A (zh) * | 2021-05-18 | 2022-11-22 | 北京搜狗科技发展有限公司 | 一种输入方法、装置和用于输入的装置 |
CN115494965A (zh) * | 2021-06-18 | 2022-12-20 | 北京搜狗科技发展有限公司 | 一种请求发送方法、装置和用于发送请求的装置 |
CN113360003B (zh) * | 2021-06-30 | 2023-12-05 | 北京海纳数聚科技有限公司 | 一种基于动态会话场景的智能文本输入法联想方法 |
CN113779427B (zh) * | 2021-08-11 | 2023-04-14 | 荣耀终端有限公司 | 日程地址识别方法、设备、存储介质和软件程序产品 |
CN113504836B (zh) * | 2021-09-06 | 2022-01-25 | 北京翰凌科技有限公司 | 一种信息输入方法和电子设备 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104268166A (zh) * | 2014-09-09 | 2015-01-07 | 北京搜狗科技发展有限公司 | 一种输入方法、装置和电子设备 |
CN104281649A (zh) * | 2014-09-09 | 2015-01-14 | 北京搜狗科技发展有限公司 | 一种输入方法、装置及电子设备 |
CN104917669A (zh) * | 2015-05-29 | 2015-09-16 | 北京搜狗科技发展有限公司 | 一种信息处理方法和装置 |
CN104951219A (zh) * | 2014-03-25 | 2015-09-30 | 华为技术有限公司 | 一种移动终端文本输入的方法及移动终端 |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103902630B (zh) * | 2012-12-31 | 2017-08-18 | 华为技术有限公司 | 处理消息的方法、终端和*** |
CN103076892B (zh) * | 2012-12-31 | 2016-09-28 | 百度在线网络技术(北京)有限公司 | 一种用于提供输入字符串所对应的输入候选项的方法与设备 |
US20150188861A1 (en) * | 2013-12-26 | 2015-07-02 | Aaren Esplin | Mechanism for facilitating dynamic generation and transmission of canned responses on computing devices |
US20150350118A1 (en) * | 2014-05-30 | 2015-12-03 | Apple Inc. | Canned answers in messages |
US9760559B2 (en) * | 2014-05-30 | 2017-09-12 | Apple Inc. | Predictive text input |
EP3226151A4 (en) * | 2014-11-26 | 2018-07-04 | Sony Corporation | Information processing device, information processing method, and program |
US10924444B2 (en) * | 2014-12-02 | 2021-02-16 | Facebook, Inc. | Device, method, and graphical user interface for managing customer relationships using a lightweight messaging platform |
-
2016
- 2016-07-22 US US16/319,805 patent/US20190332663A1/en not_active Abandoned
- 2016-07-22 EP EP16909268.1A patent/EP3483745A4/en not_active Withdrawn
- 2016-07-22 CN CN201680084681.1A patent/CN109074354B/zh active Active
- 2016-07-22 WO PCT/CN2016/091036 patent/WO2018014341A1/zh active Application Filing
- 2016-07-22 JP JP2019503462A patent/JP2019532376A/ja active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104951219A (zh) * | 2014-03-25 | 2015-09-30 | 华为技术有限公司 | 一种移动终端文本输入的方法及移动终端 |
CN104268166A (zh) * | 2014-09-09 | 2015-01-07 | 北京搜狗科技发展有限公司 | 一种输入方法、装置和电子设备 |
CN104281649A (zh) * | 2014-09-09 | 2015-01-14 | 北京搜狗科技发展有限公司 | 一种输入方法、装置及电子设备 |
CN104917669A (zh) * | 2015-05-29 | 2015-09-16 | 北京搜狗科技发展有限公司 | 一种信息处理方法和装置 |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3644177A1 (en) * | 2018-10-24 | 2020-04-29 | Beijing Xiaomi Mobile Software Co., Ltd. | Input method, device, apparatus, and storage medium |
US11335348B2 (en) | 2018-10-24 | 2022-05-17 | Beijing Xiaomi Mobile Software Co., Ltd. | Input method, device, apparatus, and storage medium |
CN113039513A (zh) * | 2019-03-12 | 2021-06-25 | 华为技术有限公司 | 一种输入法候选内容的推荐方法及电子设备 |
CN113039513B (zh) * | 2019-03-12 | 2023-03-03 | 华为技术有限公司 | 一种输入法候选内容的推荐方法及电子设备 |
CN110008331A (zh) * | 2019-04-15 | 2019-07-12 | 三角兽(北京)科技有限公司 | 信息展示方法、装置、电子设备及计算机可读存储介质 |
CN110008331B (zh) * | 2019-04-15 | 2021-09-14 | 腾讯科技(深圳)有限公司 | 信息展示方法、装置、电子设备及计算机可读存储介质 |
CN115905502A (zh) * | 2022-07-19 | 2023-04-04 | 北京中关村科金技术有限公司 | 一种话术挖掘与推荐方法、装置及存储介质 |
CN115905502B (zh) * | 2022-07-19 | 2024-01-05 | 北京中关村科金技术有限公司 | 一种话术挖掘与推荐方法、装置及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN109074354B (zh) | 2024-04-02 |
EP3483745A1 (en) | 2019-05-15 |
CN109074354A (zh) | 2018-12-21 |
US20190332663A1 (en) | 2019-10-31 |
JP2019532376A (ja) | 2019-11-07 |
EP3483745A4 (en) | 2019-07-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018014341A1 (zh) | 展示候选项的方法和终端设备 | |
US20210224477A1 (en) | Method and apparatus for displaying candidate word, and graphical user interface | |
US10079014B2 (en) | Name recognition system | |
US20170344224A1 (en) | Suggesting emojis to users for insertion into text-based messages | |
US9977779B2 (en) | Automatic supplementation of word correction dictionaries | |
US8370143B1 (en) | Selectively processing user input | |
US20170249309A1 (en) | Interpreting and Resolving Conditional Natural Language Queries | |
US20140035823A1 (en) | Dynamic Context-Based Language Determination | |
US9047271B1 (en) | Mining data for natural language system | |
US7650445B2 (en) | System and method for enabling a mobile device as a portable character input peripheral device | |
US20140184514A1 (en) | Input processing method and apparatus | |
CN105335398A (zh) | 一种服务推荐方法及终端 | |
US20140324426A1 (en) | Reminder setting method and apparatus | |
KR102581452B1 (ko) | 텍스트를 편집하는 방법 및 이를 지원하는 전자장치 | |
KR20150009336A (ko) | 휴대 단말기에서 음성 인식을 수행하는 방법 및 장치 | |
CN109543014B (zh) | 人机对话方法、装置、终端及服务器 | |
CN108595107B (zh) | 一种界面内容处理方法及移动终端 | |
CN111563151A (zh) | 一种信息采集的方法、会话配置的方法、装置及存储介质 | |
CN109783244B (zh) | 处理方法和装置、用于处理的装置 | |
EP3430532A1 (en) | Question and answer interface based on contextual information | |
US10630619B2 (en) | Electronic device and method for extracting and using semantic entity in text message of electronic device | |
CN112925878B (zh) | 数据处理方法和装置 | |
WO2019071607A1 (zh) | 一种语音信息处理方法、装置及终端 | |
US9129598B1 (en) | Increasing semantic coverage with semantically irrelevant insertions | |
CN110263347A (zh) | 一种同义词的构建方法及相关装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
WWE | Wipo information: entry into national phase |
Ref document number: 201680084681.1 Country of ref document: CN |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16909268 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2019503462 Country of ref document: JP Kind code of ref document: A |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
ENP | Entry into the national phase |
Ref document number: 2016909268 Country of ref document: EP Effective date: 20190205 |