WO2018014341A1 - 展示候选项的方法和终端设备 - Google Patents

展示候选项的方法和终端设备 Download PDF

Info

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
Application number
PCT/CN2016/091036
Other languages
English (en)
French (fr)
Inventor
张跃
郑伟滨
李大伟
贺真
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP16909268.1A priority Critical patent/EP3483745A4/en
Priority to PCT/CN2016/091036 priority patent/WO2018014341A1/zh
Priority to JP2019503462A priority patent/JP2019532376A/ja
Priority to US16/319,805 priority patent/US20190332663A1/en
Priority to CN201680084681.1A priority patent/CN109074354B/zh
Publication of WO2018014341A1 publication Critical patent/WO2018014341A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/274Converting codes to words; Guess-ahead of partial word inputs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/232Orthographic correction, e.g. spell checking or vowelisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/289Phrasal analysis, e.g. finite state techniques or chunking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-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

展示候选项的方法和终端设备 技术领域
本发明实施例涉及输入法技术领域,并且更具体地,涉及展示候选项的方法和终端设备。
背景技术
输入法作为手机文字输入的必备条件,在用户沟通中成为越来越重要的工具。而当下的输入法基本上都是基于用户的即时输入,通过查询内置字典检索出对应文字,利用N元语法(N Grammar,简称为“N-gram”)语音模型支持联想词。N-Gram是大词汇连续语音识别中常用的一种语言模型,该模型基于这样一种假设,第N个词的出现只与前面N-1个词相关,而与其它任何词都不相关,整句的概率就是各个词出现概率的乘积。这些概率可以通过直接从语料中统计N个词同时出现的次数得到。
现有的输入技术中,以拼音输入法为例,当输入法被触发后,在用户没有输入任何信息的情况下,默认使用频次较高的“开头常用词”,例如“我们”、“今天”作为候选词。在用户已经提交了部分词之后,在没有继续输入拼音之前,移动光标位置可以改变候选词列表。这种输入方法,默认的候选词是静态的,在任何情况下都保持不变,不适应特定场景,准确性较低。
发明内容
本申请提供一种展示候选项的方法和终端设备,能够充分利用输入环境信息,确定出更为丰富的、更适用当前输入场景的候选项,能够提升用户通过输入法输入信息的效率。
第一方面,提供了一种展示候选项的方法,该方法应用于用户通过输入法输入信息的场景中,该方法包括:确定该输入法被触发,获取目标应用的上文信息,该目标应用为当前处于活动进程状态的应用;解析该上文信息,确定与该上文信息对应的动作类型;根据该动作类型,确定与该输入法对应的候选项,该候选项包括候选词和/或候选操作;向用户展示该候选项。
其中,候选词可以包括单个字符或多个字符。例如输入法的语言是汉语,候选词可以包括单个汉字、多个汉字组成的词语、多个汉字组成的短语,以及多个汉字组成的句子等,本发明实施例对此不作限定。
因此,根据本申请实施例的展示候选项的方法,在输入法被触发时,终端设备能够根据当前处于活动进程状态的应用的相关信息为用户提供输入时的候选项,由此能够充分利用输入环境信息,确定出更为丰富的、更适用当前输入场景的候选项,提升用户通过输入法输入信息的效率。
可以理解的是,应用的上文信息可以为使得终端设备能够判断出输入法当前所处的语义环境的信息,例如,应用的上文信息可以为验证码短信的文本内容、待回复的文本、应用的标识信息和应用的文本框的标识信息、应用的标识信息和聊天对象的标识信息等。应用的上文信息还可以为由应用确定的需要由输入法提供给用户的候选词。
可选地,终端设备的操作***的输入框架内具有应用程序接口(Application Program Interface,简称为“API”),终端设备中的应用通过API将应用的上文信息传递至终端设备中的智能输入模块,智能输入模块缓存应用传输过来的上文信息,之后经过一系列的处理得到与应用的上文信息对应的候选项,并将候选项提供给用户。
结合第一方面,在第一方面的第一种可能的实现方式中,该解析该上文信息,确定与该上文信息对应的动作类型,包括:获取该上文信息中的关键词;根据该关键词和预设的对应关系,确定与该上文信息对应的动作类型,该对应关系包括该关键词和该动作类型的对应关系。
可选地,事先在终端设备内部预存关键词和动作类型的对应关系,在终端设备对上文信息进行解析后,直接根据关键词和动作类型的对应关系,确定与上文信息对应的动作类型。
可选地,终端设备还可以采用正则匹配的方式和/或机器学习算法匹配上文信息,机器学习算法包括但不限于:支持向量机算法、逻辑回归算法和神经网络算法。当采用正则匹配的方式匹配上文信息时,可以预先设置正则表达式与动作类型的对应关系,终端设备在确定应用的上文信息对应的正则表达式后,根据正则表达式与动作类型的对应关系,确定与上文信息对应的动作类型。
结合第一方面,或第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,该根据该动作类型,确定与该输入法对应的候选项,包括:执行该动作类型对应的动作;将执行该动作获取到的信息,确定为与该输入法对应的候选项。
结合第一方面的第二种可能的实现方式,在第一方面的第三种可能的实现方式中,该执行该动作类型对应的动作,包括:向用户呈现提示信息,该提示信息用于用户选择是否触发该动作;当确定用户触发该动作时,执行该动作。
可选地,向用户呈现提示信息可以是以提示框的形式实现,用户触发动作的动作可以是滑动该提示框或者点击该提示框,并且可以预先设置时间阈值,如果在预先设置的时间阈值内用户没有触发该动作,则不执行该动作。
或者,提示信息中包括“是”和“否”两个选项,当用户点击“是”时,确定用户触发动作,当用户点击“否”时,确定用户没有触发动作。
结合第一方面,或第一方面的第一种可能的实现方式,在第一方面的第四种可能的实现方式中,该上文信息中包括验证码,该动作类型为填充验证码;其中,该根据该动作类型,确定与该输入法对应的候选项,包括:将该验证码确定为与该输入法对应的候选项。
可选地,上文信息为验证码短信的文本内容,文本内容中包括验证码,当终端设备确定出动作类型为填充验证码时,将验证码作为候选项展示给用户,方便用户进行验证码的输入,并可以适配任何类型用于的验证码填充场景,提升用户的体验。
结合第一方面,或第一方面的第一种可能的实现方式,在第一方面的第五种可能的实现方式中,该上文信息中包括待回复文本,该动作类型为调用用于响应该待回复文本的应用;其中,该根据该动作类型,确定与该输入法对应的候选项,包括:将该用于响应该待回复文本的应用的快捷入口确定为与该输入法对应的候选项。
结合第一方面,或第一方面第一种可能的实现方式,在第一方面的第六种可能的实现方式中,该上文信息中包括待回复文本,该动作类型为调用快速回复模板;其中,该根据该动作类型,确定与该输入法对应的候选项,包括:对该待回复文本进行语义解析,确定候选词库,该候选词库中包括常用回复词语;将该候选词库中排序靠前的预设数量的词语确定为与该输入法对应的候选项。
结合第一方面的第六种可能的实现方式,在第一方面的第七种可能的实现方式中,在向用户呈现该候选项之后,该方法还包括:确定用户输入的目标词语是否在该候选词库中;当确定用户输入的目标词语在该候选词库中 时,提高该目标词语在该候选词库中的排名;或,当确定用户输入的目标词语不在该候选词库中时,将该目标词语添加到该候选词库中。
可选地,当用户输入的目标词语是候选词库中的词语时,可以将目标词语的频度加1,依次提升目标词语在候选词库中的排名。当用户输入的目标词语不是候选词库中的词语时,将目标词语加入候选词库,并将该目标词语的频度设置为1。
结合第一方面的第二种或第三种可能的实现方式,在第一方面的第八种可能的实现方式中,该目标应用为聊天类应用,该上文信息中包括待回复文本,该动作类型为提取原文内容;其中,该执行该动作类型对应的动作;将执行该动作获取到的信息,确定为与该输入法对应的候选项,包括:提取该待回复文本中的关键词;将该关键词确定为与该输入法对应的候选项。
可选地,可以预设关键词提取的规则,例如,可以将人名、地名、机构名、电影名、时间词等专有名词作为关键词。
结合第一方面的第三种或第四种可能的实现方式,在第一方面的第九种可能的实现方式中,该动作类型为数据查询;其中,该执行该动作类型对应的动作;将执行该动作获取到的信息,确定为与该输入法对应的候选项,包括:执行数据查询动作,获取与该上文信息对应的数据;将该与该上文信息对应的数据确定为与该输入法对应的候选项。
可选地,数据查询包括离线数据查询和云端数据查询,离线数据包括但不限于:***级应用和统计数据库,***级应用例如可以是:日程、时钟、备忘录、联系人等。统计数据库例如可以是:常用回复、联系人昵称、搜索历史记录等。云端数据包括但不限于:地理位置信息、天气信息、热映电影、电视剧查询、比赛信息、路线信息、航班信息、百科信息、优惠订餐信息、旅游路线信息、附近商家信息等。
结合第一方面的第九种可能的实现方式,在第一方面的第十种可能的实现方式中,该上文信息中包括该目标应用的标识信息和该目标应用中的搜索框的标识信息;其中,该执行数据查询动作,获取与该上文信息对应的数据,包括:查询是否存在与该目标应用的标识信息和该目标应用中的搜索框的标识信息对应的历史搜索记录;当确定存在该历史搜索记录时,获取该历史搜索记录中排名靠前的预设数量的历史搜索词。
可选地,当用户输入的搜索词是历史搜索记录中一个搜索词时,提升用 户输入的搜索词在历史搜索记录中的排名,例如可以将用户输入的搜索词的频度加1,当用户输入的搜索词不是历史搜索记录中的一个搜索词时,将用户输入的搜索词加入到历史搜索记录中,并将用户输入的搜索词的频度置为1。
结合第一方面的第九种可能的实现方式,在第一方面的第十一种可能的实现方式中,该目标应用为聊天类应用,该上文信息中包括该目标应用的标识信息和聊天对象的标识信息;其中,该执行数据查询动作,获取与该上文信息相对应的数据,包括:查询是否存在与该目标应用的标识信息和该聊天对象的标识信息对应的称谓语;当确定存在该称谓语时,获取该称谓语中排名靠前的预设数量的称谓语。
可选地,上文信息中还包括与聊天对象的标识信息对应的称谓词,当终端设备根据上文信息判断出待执行的动作为数据查询时,终端设备会查找本地是否存在与目标应用的标识信息和聊天对象的标识信息相对应的称谓词,如果有,则将与目标应用的标识信息和聊天对象的标识信息相对应的称谓词的频度加1,如果没有,则保存上文信息中的称谓词,并将保存的上文信息中的称谓词频度置1。
在上述可能的实现方式中,在用户手动输入部分文本后,上文信息还可以为已输入的拼音串和待回复文本,可以将待回复文本拆成词语序列,并转成拼音与词组的对应关系作为隐候选词,待用户再次输入拼音串时,优先从隐候选词中选取与用户输入的拼音串相对应的词组作为候选词。
第二方面,提供了一种展示候选项的方法,该方法应用于用户通过输入法输入信息的场景中,该方法包括:显示应用会话界面;显示输入法界面;在该应用会话界面显示会话信息;响应该会话信息,在输入法候选区显示候选项,该候选项包括候选词和/或候选操作;响应用户对该候选项的选择。
因此,根据本申请的展示候选项的方法,通过响应在应用会话界面上显示的会话信息,在输入法候选区显示候选项,由此能够确定出更适合当前输入场景的候选项,并提供给用户,提升用户通过输入法输入信息的效率。
结合第二方面,在第二方面的第一种可能的实现方式中,该响应该会话信息,在输入法候选区显示候选项,包括:解析该会话信息,确定与该会话信息对应的动作类型;根据该动作类型,确定与该输入法对应的候选项;在输入法候选区显示该候选项。
结合第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,该解析该会话信息,确定与该会话信息对应的动作类型,包括:获取该会话信息中的关键词;根据该关键词和预设的对应关系,确定与该会话信息对应的动作类型,该对应关系包括该关键词和该动作类型的对应关系。
结合第二方面的第一种或第二种可能的实现方式,在第二方面的第三种可能的实现方式中,该根据该动作类型,确定与该输入法对应的候选项,包括:执行该动作类型对应的动作;将执行该动作获取到的信息,确定为与该输入法对应的候选项。
结合第二方面的第三种可能的实现方式,在第二方面的第四种可能的实现方式中,该执行该动作类型对应的动作,包括:显示提示信息,该提示信息用于用户选择是否触发该动作;当确定用户触发该动作时,执行该动作。
结合第二方面的第一种或第二种可能的实现方式,在第二方面的第五种可能的实现方式中,该会话信息中包括验证码,该动作类型为填充验证码;其中,该根据该动作类型,确定与该输入法对应的候选项,包括:将该验证码确定为与该输入法对应的候选项。
结合第二方面的第一种或第二种可能的实现方式,在第二方面的第六种可能的实现方式中,该会话信息中包括待回复文本,该动作类型为调用用于响应该待回复文本的应用;其中,该根据该动作类型,确定与该输入法对应的候选项,包括:将该用于响应该待回复文本的应用的快捷入口确定为与该输入法对应的候选项。
结合第二方面的第一种或第二种可能的实现方式,在第二方面的第七种可能的实现方式中,该会话信息中包括待回复文本,该动作类型为调用快速回复模板;其中,该根据该动作类型,确定与该输入法对应的候选项,包括:对该待回复文本进行语义解析,确定候选词库,该候选词库中包括常用回复词语;将该候选词库中排序靠前的预设数量的词语确定为与该输入法对应的候选项。
结合第二方面的第七种可能的实现方式,在第二方面的第八种可能的实现方式中,在响应用户对该显示候选项的选择之后,该方法还包括:确定用户输入的目标词语是否在该候选词库中;当确定用户输入的目标词语在该候选词库中时,提高该目标词语在该候选词库中的排名;或,当确定用户输入 的目标词语不在该候选词库中时,将该目标词语添加到该候选词库中。
结合第二方面的第三种或第四种可能的实现方式,在第二方面的第九种可能的实现方式中,该目标应用为聊天类应用,该会话信息中包括待回复文本,该动作类型为提取原文内容;其中,该执行该动作类型对应的动作;将执行该动作获取到的信息,确定为与该输入法对应的候选项,包括:提取该待回复文本中的关键词;将该关键词确定为与该输入法对应的候选项。
结合第二方面的第三种或第四种可能的实现方式,在第二方面的第十种可能的实现方式中,该动作类型为数据查询;其中,该执行该动作类型对应的动作;将执行该动作获取到的信息,确定为与该输入法对应的候选项,包括:执行数据查询动作,获取与该会话信息对应的数据;将该与该会话信息对应的数据确定为与该输入法对应的候选项。
结合第二方面的第十种可能的实现方式,在第二方面的第十一种可能的实现方式中,该会话信息中包括该目标应用的标识信息和该目标应用中的搜索框的标识信息;其中,该执行数据查询动作,获取与该会话信息对应的数据,包括:查询是否存在与该目标应用的标识信息和该目标应用中的搜索框的标识信息对应的历史搜索记录;当确定存在该历史搜索记录时,获取该历史搜索记录中排名靠前的预设数量的历史搜索词。
结合第二方面的第十种可能的实现方式,在第二方面的第十二种可能的实现方式中,该目标应用为聊天类应用,该会话信息中包括该目标应用的标识信息和聊天对象的标识信息;其中,该执行数据查询动作,获取与该会话信息相对应的数据,包括:查询是否存在与该目标应用的标识信息和该聊天对象的标识信息对应的称谓语;当确定存在该称谓语时,获取该称谓语中排名靠前的预设数量的称谓语。
可以理解的是,第二方面的可能的实现方式中的相关操作的具体实现与第一方面的可能的实现方式中相对应的相关操作的具体实现相同。
第三方面,提供了一种终端设备,用于执行上述第一方面或第一方面的任意可能的实现方式中的方法。具体地,该终端设备包括用于执行上述第一方面或第一方面的任意可能的实现方式中的方法的功能模块。
第四方面,提供了一种终端设备,用于执行上述第二方面或第二方面的任意可能的实现方式中的方法。具体地,该终端设备包括用于执行上述第二方面或第二方面的任意可能的实现方式中的方法的功能模块。
第五方面,提供了一种终端设备,包括处理器、存储器和显示器,该处理器、该存储器和该显示器通过总线***相连,该存储器用于存储指令,该处理器用于调用该存储器中存储的指令控制该显示器显示信息,使得该终端设备执行上述第一方面或第一方面的任意可能的实现方式中的方法。
第六方面,提供了一种终端设备,包括处理器、存储器和显示器,该处理器、该存储器和该显示器通过总线***相连,该存储器用于存储指令,该处理器用于调用该存储器中存储的指令控制该显示器显示信息,使得该终端设备执行上述第二方面或第二方面的任意可能的实现方式中的方法。
第七方面,提供了一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行第一方面或第一方面的任意可能的实现方式中的方法的指令。
第八方面,提供了一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行第二方面或第二方面的任意可能的实现方式中的方法的指令。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单地介绍,显而易见地,下面所描述的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例的应用场景的示意图;
图2(a)和图2(b)是现有技术中短信应用联想联系人候选项的方法的示意图;
图3是根据本发明实施例的终端设备的示意性框图;
图4是根据本发明实施例的终端设备中的智能输入模块的示意性框图;
图5是根据本发明实施例的展示候选项的方法的示意性流程图;
图6(a)-(d)是根据本发明另一实施例的展示候选项的方法的示意性流程图;
图7是根据本发明一个具体实施例的展示候选项的方法的示意图;
图8是根据本发明另一具体实施例的展示候选项的方法的示意图;
图9是根据本发明再一具体实施例的展示候选项的方法的示意性流程 图;
图10是根据本发明再一具体实施例的展示候选项的方法的示意图;
图11(a)和(b)是根据本发明再一具体实施例的展示候选项的方法的示意图;
图12(a)和(b)是根据本发明再一具体实施例的展示候选项的方法的示意图;
图13(a)-(c)是根据本发明再一具体实施例的展示候选项的方法的示意图;
图14(a)-(c)是根据本发明再一具体实施例的展示候选项的方法的示意图;
图15是根据本发明再一具体实施例的展示候选项的方法的示意图;
图16是根据本发明再一具体实施例的展示候选项的方法的示意图;
图17是根据本发明实施例的终端设备的示意性框图;
图18是根据本发明另一实施例的终端设备的示意性框图;
图19是根据本发明再一实施例的终端设备的示意性框图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明的一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都应属于本发明保护的范围。
在本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
本发明实施例中的终端设备包括可与用户通过键盘、遥控器、触摸板、声控设备进行人机交互的电子产品,例如终端设备可以为计算机、智能手机、游戏机、可穿戴设备、平板电脑(Portable Android Device,简称为“PAD”)、交互式网络电视(Interactive Personality Television,简称为“IPTV”)等,在终端设备上运行的操作***可以是移动版的安卓(Android)、乌班图 (Ubuntu)移动版、泰泽(Tizen)等基于Linux内核的操作***以及Windows、Mac OS、Linux等桌面操作***,但本发明并不限于此。
在本发明实施例中,应用可以称为应用程序(Application,简称为“APP”),应用可以为终端设备的操作***自带的应用,可以为终端设备的操作***中安装的第三方应,本发明对此不作限定。
图1示出了根据本发明实施例的应用场景,如图1中所示出的,当终端设备的一个应用(短信或微信)接收到一条信息后,需要进行回复时,用户触发输入法后,输入法的显示界面会向用户提供一个候选项区域,用户可以直接选择候选区域内的候选词,减少用户的手动输入操作。
现有的相关技术中,在用户开始输入信息之前,候选词区域提供给用户的是默认的使用频次较高的词。例如图1中示出的,当手机收到一条短信时,会话界面上会显示短信内容为“你吃饭了吗?”,用户触发输入法后,候选词区域中出现的是“我”、“你”、“这”等常用字或词语,并且不管短信的内容是什么,候选词区域中的候选词都保持不变,不能适应特定场景。
需要说明的是,本发明实施例中涉及到的展示候选项的方法,指的是图1中所示出的在输入法的候选词界面展示候选项,而不是如图2(a)中所示出的展示候选项的方法。在图2(a)中,如果需要新建一条短信,用户输入手机号的前几位后,手机会根据用户输入的号码联想可能的联系人,展示给用户,供用户选择。例如,用户输入“13”后,在会话界面上会将手机通讯录中存储的与“13”相关的联系人和电话号码展示给用户,当用户选择其中一个电话号码时,手机的界面变为如图2(b)所示出的界面。
基于现有技术的不足,可以提供一种展示候选项的方法,在输入法被触发时,根据当前处于活动进程状态的应用的相关信息,确定出更为丰富的、更适用当前输入场景的候选项展示给用户,提升用户通过输入法输入信息的效率。
其中,输入法在根据当前处于活动进程状态的应用的相关信息,确定候选项时,可以通过读取其他应用(非当前正在使用的应用)的数据,根据读取到的其他应的数据确定候选项。以读取联系人为例,当收到短信“小明的电话号码是多少?”、且输入法被激活时,短信应用处于活动进程状态,输入法获取短信应用传递到输入法的缓存区的上文信息(作为一个例子,该上文信息为“小明的电话号码是多少?”),输入法识别出短信应用的上文信息 对应的动作类型为查找联系人,此时输入法会通过Android***对外共享数据的方法,比如:内容提供者(ContentProvider),访问联系人数据库,读取小明对应的电话号码,作为候选项展示给用户,其中,一种实现访问的接口形式为:content://com.android.contacts/raw_contacts。
可选地,输入法读取第三方数据的方法包含但不限于:通过超文本传输协议(HyperText Transfer Protocol,简称为“HTTP”)请求访问云端接口,通过Android接口定义语言(Android Interface Definition Language,简称为“AIDL”)方式访问本地共享接口,通过第三方软件开发包(Software Development Kits,简称为“SDK”)开放接口读取第三方软件的数据。
图3示出了根据本发明实施例的终端设备的示意性框图。如图3所示,终端设备10的操作***中包括输入法框架(Input Method Framework,简称为“IMF”)11、应用12、智能输入模块13。其中,针对不同的操作***会有不同的输入法框架,本发明实施例中提到的输入法框架与现有技术中的相同,在此不再赘述。智能输入模块13的形态包括但不限于软键盘输入,输入方式包括但不限于拼音输入、笔画输入、手写输入、语音输入。
如图3中所示出的,操作***的IMF 11内新增应用程序接口(Application Program Interface,简称为“API”)14,API14实现信息的传递,操作***中安装的应用通过API14将应用12的上文信息传递至智能输入模块13,之后操作***的IMF 11激活智能输入模块13,智能输入模块13获取应用的上文信息,经过一系列处理后向用户展示候选项。
示例性的,API14可以描述为:Public Void SendMessageInfo(Bundle extras);Bundle extras表示应用的上文信息,上文信息以键值(Key-Value)对的形式存在,不同类型的应用的上文信息可能不同,键值对的个数也可能不同。以应用为“微信”为例,Bundle extras可以表示为:
{
appName:"weChat",
FriendName:"小明",
Message:["明天有空吗?",
"有,怎么啦",
"一起去看个电影?",
"好啊,最近有什么好看的电影?"]
}
作为一个例子,应用的上文信息可以为应用确定的需要提供给用户的候选词,在这个例子中,可以在“Bundle extras”中增加一个布尔类型的字段“isCandidate”,当“isCandidate”字段为“真(Ture)”时,表示应用传递至智能输入模块13的上文信息为最终需要提供给用户的候选词。以应用为“Amazone App”为例,当用户点击Amazone APP中的分类搜索框时,Amazone APP可以向智能输入模块13传递该分类搜素框的推荐商品作为候选词,例如Bundle extras可以表示为:
{appName:"Amazone",
isCandidates:True,
Candidates:["华为mate 8","iphone 6s","华为P9"]
}
示例性的,如图4所示,图3中的智能输入模块13包括获取模块131、动作识别模块132、动作执行模块133和展示模块134。其中,获取模块131中具有缓存区,用于缓存应用传递给智能输入模块13的上文信息。
下面将结合图3和图4示出的终端设备的结构,详细描述根据本发明实施例的展示候选项的方法。图5示出了根据本发明实施例的展示候选项的方法的示意性流程图,如图5所示,方法1000包括:
S1100,确定输入法被触发,获取目标应用的上文信息,该目标应为当前处于活动进程状态的应用;
具体的,当前目标应用处于活动进程状态,用户触发***文本空间准备进行内容输入,终端设备的操作***调用输入法框架11,目标应用调用操作***中的API 14,将应用的上文信息传入智能输入模块13中的获取模块131中的缓存区,输入法框架11将智能输入模块13置于活动进程状态,智能输入模块13中的获取模块131读取缓存中的上文信息。
可选地,在输入法的设置项中增加开关项,用于打开或者关闭“根据上文信息,确定候选项”功能,当输入法被拉起时,首先判断当前开关项的状态,如果是打开状态,则继续执行识别动作类型的操作,如果是关闭状态,则直接返回,不给出任何动作类型及相关内容。
可选地,当前处于活动进程状态的应用可以理解为当前正在被使用的应用,例如,当通过微信应用接收到一条消息,此时微信应用为处于活动进程 状态的应用。或者,用户登录支付宝应用进行网上支付时,需要用户在支付宝应用中输入验证码,支付宝应用的后台会向用户发送验证码短信,在接收到验证码短信的时刻,短信应用处于活动进程状态,之后支付宝应用处于活动进程状态。
S1200,解析该上文信息,确定与该上文信息对应的动作类型;
具体的,动作识别模块132对获取模块131读取的上文信息进行匹配处理,确定出与上文信息对应的动作类型。示例性的,在进行匹配处理时,可以采用正则匹配方式、关键词匹配方式以及机器学习算法等方式进行。并且还可以识别出动作类型的相关内容,相关内容可以为终端设备执行动作类型相关的动作后获取到的可以作为候选项展示给用户的信息,或者,相关内容可以为终端设备执行动作类型对应的动作所需要的信息。表1示出了本发明实施例提供的一种可能的动作类型与应用的上文信息及动作类型的相关内容的对应关系。可以理解的是表1中给出的动作类型仅仅是示例性的列举,具体实现中还可以包括更多的类型。
表1
Figure PCTCN2016091036-appb-000001
Figure PCTCN2016091036-appb-000002
S1300,根据该动作类型,确定与该输入法对应的候选项,该候选项包括候选词和/或候选操作;
具体的,在动作识别模块132识别出上文信息对应的动作类型之后,动作执行模块133会执行不同的动作,确定候选项。
示例性的,动作识别模块133在执行动作时,可以采用手动触发和自动触发方式,例如,当动作类型为表1中示出的“填充验证码”时,动作识别模块133采用自动触发的方式,直接将验证码确定为候选项传递给展示模块134。当动作类型为表1中示出的“地理位置查询”时,动作识别模块132可以采用手动触发的方式,动作执行模块133可以在终端设备的显示屏上弹出提示框,例如图6(a)中所示出的,提示框的内容为“查询当前地点”,等待用户确认是否执行地点查询动作,当用户点击或者滑动提示框时,认为用户触发执行“查询当前地点”动作,此时动作执行模块133进行当前地点查询。或者如图6(b)和6(c)所示出的,动作执行模块133可以采用自动触发方式,不需要用户进行确认,直接查询当前地点,并将查询结果作为候选项展示给用户。或者如图6(d)所示出的,动作执行模块133将查询结果作为候选项展示给用户,并且同时动作执行模块133还可以将常用回复词语作为候选项展示给用户,例如常用回复语句可以是“在家”、“在学校”、“在超市”等。
S1400,向用户展示该候选项。
展示模块134向用户展示候选结果,展示模块134对应的展示区域可以 为对应输入法的候选词区域及展开的候选词列表区域,或者终端设备的显示屏的其他区域,如图6(a)-(d)中所示出的展示区域。
图7是根据本发明另一实施例的展示候选项的方法的示意性流程图。如图7所示,方法2000包括:
S2100,显示应用会话界面;
S2200,显示输入法界面;
S2300,在该应用会话界面显示会话信息;
以微信应用为例,应用会话界面和输入法界面如图8中所示,在通过微信应用接收到“小明”发送的会话信息时,在应用会话界面显示接收到的会话信息,如图8中所示出的“明天有空吗?”。
可以理解的是,在应用会话界面上可以显示更多条的会话信息,具体可以根据实际情况进行设定,本发明对此不作限定。
S2400,响应该会话信息,在输入法候选区显示候选项,该候选项包括候选词和/或候选操作;
具体地,终端设备响应会话信息的方法,可以参照方法1000中的S1200和S1300进行,在此不再赘述。
S2500,响应用户对该显示候选项的选择。
如图8中所示出的,当用户从显示的候选项中选择一个候选项后,在输入法的输入区域显示用户的选择。
需要说明的是,当方法2000应用于输入验证码的场景中时,可以不显示应用会话界面,例如,当用户通过支付宝应用进行网上支付时,支付宝应用的后台会向用户发送验证码短信,此时可以一直显示支付宝应用的界面而不显示短信应用的会话界面,输入法直接从短信应用的上文信息中获取验证码作为候选项,在输入法候选区显示验证码。
下面将结合具体的例子,描述根据本发明实施例的展示候选项的方法。图9示出了填充验证码场景下展示候选项的方法,如图9所示,方法3000包括:
S3100,短信应用接收到一条包括验证码的短信;
举例来说,短信的文本内容为:验证码:123456,请妥善保管,发送方为:10088。
S3200,短信应用将短信应用的上文信息通过API传递给智能输入模块;
具体的,短信应用的上文信息的具体内容和表现方式为:{应用类型:“短信应用”,发送者“10088”,文本内容“验证码:123456,请妥善保管”}。
S3300,智能输入模块根据S3200中的上文信息确定与该上文信息对应的动作类型为填充验证码;
具体来说,智能输入模块中的动作识别模块132对上文信息进行解析后得到一条正则表达式:验证码+标点+数字+标点,通过预先设置的正则表达式与动作类型的对应关系,即可确定出与得到的正则表达式相对应的动作类型为填充验证码,表2示出了本发明实施例提供的一种可能的正则表达式与动作类型的对应关系。根据表2中所示出的正则表达式与动作类型的对应关系,即可确定出与上文信息对应的动作类型,例如,当上文信息为“你想喝牛奶还是咖啡?”,动作识别模块132对上文信息进行解析后得到一条正则表达式:动词(喝)+名词(牛奶)+名词(咖啡)+问号(?),通过正则表达式与动作类型的对应关系,可以确定出该上文信息对应的动作类型为“原文内容摘取”。
或者,动作识别模块132识别出上文信息中包括关键词“验证码”,则根据预先设置的关键词与动作类型的对应关系,确定出上文信息对应的动作类型为填充验证码,表3示出了本发明实施例提供的一种可能的关键词与动作类型的对应关系。
表2
正则表达式 动作类型
验证码+标点+数字+标点 填充验证码
代词+时间词+在哪+问号 地理位置查询
动词+名词+名词+问号 原文内容摘取
地名+地名+怎么走+问号 云端服务数据查询
表3
关键词 动作类型
验证码、数字 填充验证码
什么时候 调用快速回复模板
电话号码 离线应用数据查询
应用的包名、文本框ID 搜索历史推荐
S3400,智能输入模块将验证码填充到候选词区域,展示给用户。
动作识别模块132识别出上文信息中的验证码—123456,动作执行模块133将该验证码确定为候选项,展示给用户,用户直接点击候选词区域中的验证码即可完成验证码的输入。具体如图10所示。
可选地,在S3200中,短信应用传递给智能输入模块13的上文信息的具体内容和表现方式为:{布尔值:真,候选词:123456},在S3300中,智能输入模块根据布尔值为“真”可以确定上文信息对应的动作类型为“预置候选词填充”在S3400中,智能输入模块13将上文信息中的候选词填充到候选词区域,展示给用户。
在本发明的再一实施例中,应用传递给智能输入模块13的上文信息是待回复文本,例如待回复文本的内容为“打电话给小明”,动作识别模块132分析上文信息确定与上文信息对应的动作类型为“应用快速拉起或操作”,并且与动作类型相关的动作为“显示拨打电话的快捷入口”,如图11(a)中所示出的,动作执行模块133将拨打电话的快捷入口作为候选项展示给用户。并且,示例性的,如图11(b)动作执行模块133除将拨打电话的快捷入口作为候选项展示给用户外,还可以在候选词区域将常用的回复作为候选项展示给用户。
在本发明的再一实施例中,应用传递给智能输入模块13的上文信息中包括应用的标识、待回复的文本,例如上文信息为:{应用的包名:com.huawei.chat,文本内容:记得帮我带牛奶},动作识别模块132根据对上文信息的解析确定出上文信息对应的动作类型为“调用快速回复模板”,动作执行模块133查询是否存在常用回复,如果存在则取频度靠前的预设数量的常用回复词作为候选项展示给用户,例如,如图12(a)所示出的,预设数量可以为4个,常用回复中频度靠前的4个词语为:“好的”、“OK”、“不行”、“不可以”,当用户输入的回复是常用回复中的一个词语时,例如“不可以”,则将该词语的频度加1,当用户输入的回复不是常用回复中的一个词语时,例如用户输入的回复为“No”,则将用户输入的回复加入到常用回复中,并将用户输入的回复的频度置为1。
并且,对应不同的待回复文本内容,常用回复是不相同的,例如,如图12(b)所示出的,待回复文本的内容为“明天什么时候过来?”,虽然对应的动作类型为“调用快速回复模板”,但是动作执行模块133通过查询得出 的候选项是不同的,在这个例子中,候选项例如可以为:“上午”、“下午”、“晚上”、“8点钟”等,所以可以将文本内容进行分类,不同的类型对应不同的常用回复词库,建立文本内容的类型与常用回复词库的对应关系,动作执行模块133可以根据这个对应关系确定进行查询的常用回复词库。
在本发明的再一实施例中,应用传递给智能输入模块13的上文信息是待回复文本,动作识别模块132通过对上文信息进行解析,确定与上文信息对应的动作类型为“原文内容摘取”,动作执行模块133从待回复文本中摘取关键词作为候选项展示给用户。可以事先规定关键词的摘取规则,例如可以摘取数字、人名、地名、机构名、电影名、时间词等专有名词作为关键词,并可以预先设置提取的关键词作为候选项出现的优先级,例如可以设定优先级由高到低依次为:数字、地名、人名、机构名、电影名、时间词。举例来说,例如待回复文本的内容为:“续订请回复1,退订请回复2”,动作执行模块133摘取“1”和“2”作为候选词展示给用户。例如待回复文本的内容为:“明天爬山还是看电影”,如图13(a)所示,动作执行模块133摘取“爬山”、“看电影”、“明天”作为候选项展示给用户,进一步地,如图13(b)还可以将山的名称或者电影的名称作为候选项展示给用户,图13(b)中的“V”表示候选词区域的展开按钮。更进一步地,如图13(c)所示出的,动作执行模块133还可以向用户展示“查询热映电影”的提示框,等待用户触发提示框后,查询热映电影。并将查询结果展示给用户,用户可以通过“复制”、“粘贴”的方式完成输入。
在本发明的再一个实施例中,可以通过云端数据查询为用户展示候选项。具体的流程为:
(1)聊天类应用接收到一条短信:“xx到xx怎么走?”,
聊天类应用可以包括终端设备的操作***自带的短信应用以及终端设备的操作***中安装的第三方通讯应用等,第三方通讯应用例如可以是:微信、QQ、陌陌等。
(2)聊天类应用将短信的文本内容传递给智能输入模块13;
智能输入模块13中的缓存区缓存接收到的短信的文本内容,之后获取模块131从缓存区获取到短信的文本内容。
(3)动作识别模块132通过对短信的文本内容进行解析,确定出短信的文本内容对应的动作类型为“云端服务数据查询”,并且具体需要执行的 动作是查询路线;
(4)动作执行模块133根据动作识别模块132确定出的动作类型,确定出候选项,通过展示模块134展示给用户。
如图14(a)所示,当动作执行模块132在确定候选项时,可以向用户提供提示框,等待用户确定是否执行查询路线动作,当确定用户触发执行查询路线动作时,执行查询路线动作,并将查询结果展示给用户。或者如图14(b)所示,动作执行模块132直接执行查询路线动作,将查询结果展示给用户。
具体地,当动作执行模块132需要查询路线时,有两种方式获取路线结果,第一种通过调用地图app开放的SDK接口获取数据,第二种方式通过地图服务商开放的云端接口访问数据;数据的形式包含且不限于Html 5页面。
可选地,当动作识别模块132确定出需要执行的动作是查询路线时,动作执行模块133并不执行路线查询动作,而是将相关应用的快捷入口确定为候选项展示给用户,例如图14(c)所示出的,向用户展示“百度地图”应用的快捷入口,用户可以通过快捷入口启动百度地图手动进行路线的查询。
可以理解的是,针对不同的待回复文本,与动作识别模块132确定的动作类型对应的动作是不同的,因此动作执行模块133需要执行的动作也是不同的,例如动作执行模块133需要执行的动作还可以为查询天气、查询热映电影和电视剧、查询比赛、查询航班、查询百科、查询优惠订餐、查询旅游路线、查询附近商家等。
并且除了通过查询云端数据为用户展示候选项之外,还可以通过查询离线数据为用户展示候选项。例如,短信应用中收到一条短信,短信的文本内容为“小明的电话号码?”,动作识别模块132识别出对应的动作类型为“离线应用数据查询”,并且具体的动作为“查询通讯录中小明的电话号码”,动作执行模块133通过查询通讯录获取到小明的电话号码,作为候选项展示给用户。或者短信的文本内容为“明天有空吗?”,动作识别模块132识别出对应的动作类型为“离线应用数据查询”,并且具体的动作为“查询日历或待办应用的数据”,动作执行模块133通过查询日历或待办应用的数据确定出候选项,比如,当待办应用的数据中不存在与“明天”或者“明天对应的日期”对应的待办事项,则向用户展示的候选项为“有”、“有空”、“有,有 事吗?”等候选词;当待办应用的数据中存在与“明天”或者“明天对应的日期”对应的待办事项,则向用户展示的候选项为“没有”、“明天有事”等候选词,或者将具体的待办事项展示给用户。
在本发明的再一个实施例中,应用传递给智能输入模块13的上文信息为应用的文本框类型、应用的唯一标识以及文本框的唯一标识,例如,上文信息为:{文本框类型:搜索框,应用的标识:com.huawei.app,文本框的标识:1111},动作识别模块132根据对上文信息的解析确定出上文信息对应的动作类型为“搜索历史推荐”,动作执行模块133查询本地的数据库中是否存在与“com.huawei.app”和“1111”对应的历史搜索记录,如果存在,则将历史搜索记录中的搜索关键词按照搜索频度进行排序,将搜索关键词按照排序的结果展示给用户,当用户从候选词中选择输入的关键词后,将用户选择的关键词的频度加1;如果不存在,等待用户输入的关键词,并将用户输入的关键词存入本地的数据库中,将用户输入的关键词的频度置为1。
在本发明的再一实施例中,应用传递给智能输入模块13的上文信息中包括应用的唯一标识、聊天对象的唯一标识以及与该聊天对象聊天过程中提到的称谓信息。例如上文信息为:{应用的包名:“com.huawei.chat”,聊天对象:“张三”、发给聊天对象的信息:“张总,下午三点开会”},动作识别模块132通过解析上文信息,确定上文信息对应的动作类型为“称谓统计查询”,动作执行模块133进行查询是否有与“张三”对应的称谓词,如果有,则将与“张三”对应的称谓词的频度加1,如果没有,保存上文信息中的“张三”对应的称谓“张总”,并将“张总”的频度设置为1,待下次确定上文信息对应的动作类型为“称谓统计查询”且应用的包名为:“com.huawei.chat”、聊天对象为“张三”时,将与“张三”对应的称谓作为候选项展示给用户,例如,图15所示出的,通过短信应用发短信给“张三”,终端设备本地已保存有与“短信应用”和“张三”对应的称谓,则直接将已有的称谓按照使用频度展示给用户。
在以上的所有实施例中,当用户手动输入部分拼音串时,应用传递给智能输入模块13的上文信息为已输入的拼音串和待回复文本,动作识别模块132通过分析上文信息确定与上文信息对应的动作类型为“查找隐候选词”,动作执行模块133将待回复文本拆成词语序列,并转换成拼音串与词组的对应关系作为隐候选词。举例来说,如图16所示,待回复文本为“美目及是 家餐厅”,动作执行模块133将“美目及meimuji”、“是shi”、“家jia”、“餐厅canting”等词语作为隐候选词,当用户输入“meimuji”时,优先选择上文出现的“美目及”作为候选词。
可以理解的是,上文所有实施例中的动作识别模块132确定与应用的上文信息对应的动作类型的方法与方法100和200中相同,为避免重复,未在实施例中进行具体的描述,并且上述涉及向用户展示候选词的实施例中,均可以由应用确定需要展示给用户的候选词后,将该候选项作为应用的上文信息传递给智能输入模块,由智能输入模块展示给用户。
以上结合图2至图16详细描述了根据本发明实施例的展示候选项的方法,下面将结合图17详细描述根据本发明实施例的终端设备,如图17所示,终端设备20包括:
获取模块21,用于确定该输入法被触发,获取目标应用的上文信息,该目标应用为当前处于活动进程状态的应用;
动作识别模块22,用于解析该上文信息,确定与该上文信息对应的动作类型;
动作执行模块23,用于根据该动作类型,确定与该输入法对应的候选项,该候选项包括候选词和/或候选操作;
展示模块24,用于向用户展示该候选项。
因此,根据本发明实施例的终端设备,够根据当前处于活动进程状态的应用的相关信息为用户展示输入时的候选项,由此能够充分利用输入环境信息,确定出更为丰富的、更适用当前输入场景的候选项,提升用户通过输入法输入信息的效率。
在本发明实施例中,可选地,在解析该上文信息,确定与该上文信息对应的动作类型方面,该动作识别模块22具体用于:获取该上文信息中的关键词;根据该关键词和预设的对应关系,确定与该上文信息对应的动作类型,该对应关系包括该关键词和该动作类型的对应关系。
在本发明实施例中,可选地,在根据该动作类型,确定与该输入法对应的候选项方面,该动作执行模块23具体用于:执行该动作类型对应的动作;将执行该动作获取到的信息,确定为与该输入法对应的候选项。
在本发明实施例中,可选地,在执行该动作类型对应的动作方面,该展示模块24具体用于:向用户呈现提示信息,该提示信息用于用户选择是否 触发该动作;
其中,该动作执行模块23具体用于:当确定用户触发该动作时,执行该动作。
在本发明实施例中,可选地,该上文信息中包括验证码,该动作类型为填充验证码;
其中,在根据该动作类型,确定与该输入法对应的候选项方面,该动作执行模块24具体用于:将该验证码确定为与该输入法对应的候选项。
在本发明实施例中,可选地,该上文信息中包括待回复文本,该动作类型为调用用于响应该待回复文本的应用;
其中,在根据该动作类型,确定与该输入法对应的候选项方面,该动作执行模块23具体用于:将该用于响应该待回复文本的应用的快捷入口确定为与该输入法对应的候选项。
在本发明实施例中,可选地,该上文信息中包括待回复文本,该动作类型为调用快速回复模板;
其中,在根据该动作类型,确定与该输入法对应的候选项方面,该动作执行模块23具体用于:对该待回复文本进行语义解析,确定候选词库,该候选词库中包括常用回复词语;将该候选词库中排序靠前的预设数量的词语确定为与该输入法对应的候选项。
在本发明实施例中,可选地,在该展示模块向用户呈现该候选项之后,该动作执行模块23还用于:确定用户输入的目标词语是否在该候选词库中;当确定用户输入的目标词语在该候选词库中时,提高该目标词语在该候选词库中的排名;或,当确定用户输入的目标词语不在该候选词库中时,将该目标词语添加到该候选词库中。
在本发明实施例中,可选地,该目标应用为聊天类应用,该上文信息中包括待回复文本,该动作类型为提取原文内容;
其中,在执行该动作类型对应的动作;将执行该动作获取到的信息,确定为与该输入法对应的候选项方面,该动作执行模块23具体用于:提取该待回复文本中的关键词;将该关键词确定为与该输入法对应的候选项。
在本发明实施例中,可选地,该动作类型为数据查询;其中,在执行该动作类型对应的动作;将执行该动作获取到的信息,确定为与该输入法对应的候选项方面,该动作执行模块23具体用于:执行数据查询动作,获取与 该上文信息对应的数据;将该与该上文信息对应的数据确定为与该输入法对应的候选项。
在本发明实施例中,可选地,该上文信息中包括该目标应用的标识信息和该目标应用中的搜索框的标识信息;其中,在执行数据查询动作,获取与该上文信息对应的数据方面,该动作执行模块23具体用于:查询是否存在与该目标应用的标识信息和该目标应用中的搜索框的标识信息对应的历史搜索记录;当确定存在该历史搜索记录时,获取该历史搜索记录中排名靠前的预设数量的历史搜索词。
在本发明实施例中,可选地,该目标应用为聊天类应用,该上文信息中包括该目标应用的标识信息和聊天对象的标识信息;
其中,在执行数据查询动作,获取与该上文信息相对应的数据方面,该动作执行模块23具体用于:查询是否存在与该目标应用的标识信息和该聊天对象的标识信息对应的称谓语;当确定存在该称谓语时,获取该称谓语中排名靠前的预设数量的称谓语。
应理解,这里的终端设备20以功能模块的形式体现。这里的术语“模块”可以指应用特有集成电路(Application Specific Integrated Circuit,简称为“ASIC”)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。在一个可选例子中,本领域技术人员可以理解,终端设备20可以用于执行上述方法实施例中的各个流程和/或步骤,为避免重复,在此不再赘述。
下面将结合图18详细描述根据本发明另一实施例的终端设备,如图18所示,终端设备30包括:
显示模块31,用于显示应用会话界面;
该显示模块31,还用于显示输入法界面;
该显示模块31,还用于在该应用会话界面显示会话信息;
处理模块32,用于响应该会话信息,控制该显示模块在输入法候选区显示候选项,该候选项包括候选词和/或候选操作;
该处理模块32,还用于响应用户对该显示候选项的选择。
因此,根据本发明实施例的终端设备,通过响应在应用会话界面上显示的会话信息,在输入法候选区显示候选项,由此能够确定出更适用当前输入 场景的候选项,并展示给用户,提升用户通过输入法输入信息的效率。
在本发明实施例中,可选地,在响应该会话信息,控制该显示模块31在输入法候选区显示候选项方面,该处理模块32具体用于:解析该会话信息,确定与该会话信息对应的动作类型;根据该动作类型,确定与该输入法对应的候选项;控制该显示模块31在输入法候选区显示该候选项。
在本发明实施例中,可选地,在解析该会话信息,确定与该会话信息对应的动作类型方面,该处理模块32具体用于:获取该会话信息中的关键词;根据该关键词和预设的对应关系,确定与该会话信息对应的动作类型,该对应关系包括该关键词和该动作类型的对应关系。
在本发明实施例中,可选地,在根据该动作类型,确定与该输入法对应的候选项方面,该处理模块32具体用于:执行该动作类型对应的动作;将执行该动作获取到的信息,确定为与该输入法对应的候选项。
在本发明实施中,可选地,在执行该动作类型对应的动作方面,该处理模块32具体用于:控制该显示屏显示提示信息,该提示信息用于用户选择是否触发该动作;当确定用户触发该动作时,执行该动作。
在本发明实施例中,可选地,该会话信息中包括验证码,该动作类型为填充验证码;其中,在根据该动作类型,确定与该输入法对应的候选项方面,该处理模块32具体用于:将该验证码确定为与该输入法对应的候选项。
在本发明实施例中,可选地,该会话信息中包括待回复文本,该动作类型为调用用于响应该待回复文本的应用;其中,在根据该动作类型,确定与该输入法对应的候选项方面,该处理模块32具体用于:将该用于响应该待回复文本的应用的快捷入口确定为与该输入法对应的候选项。
在本发明实施例中,可选地,该会话信息中包括待回复文本,该动作类型为调用快速回复模板;其中,在根据该动作类型,确定与该输入法对应的候选项方面,该处理模块32具体用于:对该待回复文本进行语义解析,确定候选词库,该候选词库中包括常用回复词语;将该候选词库中排序靠前的预设数量的词语确定为与该输入法对应的候选项。
在本发明实施例中,可选地,在响应用户对该候选项的选择之后,该处理模块还用于:确定用户输入的目标词语是否在该候选词库中;当确定用户输入的目标词语在该候选词库中时,提高该目标词语在该候选词库中的排名;或,当确定用户输入的目标词语不在该候选词库中时,将该目标词语添 加到该候选词库中。
在本发明实施例中,可选地,该目标应用为聊天类应用,该会话信息中包括待回复文本,该动作类型为提取原文内容;其中,在执行该动作类型对应的动作;将执行该动作获取到的信息,确定为与该输入法对应的候选项方面,该处理模块32具体用于:提取该待回复文本中的关键词;将该关键词确定为与该输入法对应的候选项。
在本发明实施例中,可选地,该动作类型为数据查询;其中,在执行该动作类型对应的动作;将执行该动作获取到的信息,确定为与该输入法对应的候选项方面,该处理模块32具体用于:执行数据查询动作,获取与该会话信息对应的数据;将该与该会话信息对应的数据确定为与该输入法对应的候选项。
在本发明实施例中,可选地,该会话信息中包括该目标应用的标识信息和该目标应用中的搜索框的标识信息;其中,在执行数据查询动作,获取与该会话信息对应的数据方面,该处理模块32具体用于:查询是否存在与该目标应用的标识信息和该目标应用中的搜索框的标识信息对应的历史搜索记录;当确定存在该历史搜索记录时,获取该历史搜索记录中排名靠前的预设数量的历史搜索词。
在本发明实施例中,可选地,该目标应用为聊天类应用,该会话信息中包括该目标应用的标识信息和聊天对象的标识信息;其中,在执行数据查询动作,获取与该会话信息相对应的数据方面,该处理模块32具体用于:查询是否存在与该目标应用的标识信息和该聊天对象的标识信息对应的称谓语;当确定存在该称谓语时,获取该称谓语中排名靠前的预设数量的称谓语。
应理解,这里的终端设备30以功能模块的形式体现。这里的术语“模块”可以指应用特有集成电路(Application Specific Integrated Circuit,简称为“ASIC”)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。在一个可选例子中,本领域技术人员可以理解,终端设备30可以用于执行上述方法2000中的各个流程和/或步骤,为避免重复,在此不再赘述。
如图19所示,本发明实施例还提供了一种终端设备40,如图19所示,终端设备40具体可以包括:射频(Radio Frequency,简称为“RF”)电路 41、存储器42、输入单元43、显示单元44、音频单元45、处理器46、电源47及接口48等部件。本领域技术人员可以理解,图19中示出的终端设备的结构并不构成对终端设备的限定,终端设备具体可以包括比图19所示的部件更多或更少的部件,或者组合某些部件,或者不同的部件分布的位置不同。
其中,该处理器46,用于确定所述输入法被触发,获取目标应用的上文信息,所述目标应用为当前处于活动进程状态的应用;解析所述上文信息,确定与所述上文信息对应的动作类型;根据所述动作类型,确定与所述输入法对应的候选项,所述候选项包括候选词和/或候选操作;该显示单元44,用于向用户展示所述候选项。
因此,根据本发明实施例的终端设备,够根据当前处于活动进程状态的应用的相关信息为用户展示输入时的候选项,由此能够充分利用输入环境信息,确定出更为丰富的、更适用当前输入场景的候选项,提升用户通过输入法输入信息的效率。
或者,该显示单元44用于显示应用会话界面;该显示单元44,还用于显示输入法界面;该显示单元44,还用于在该应用会话界面显示会话信息;该处理器46,用于响应该会话信息,在该显示单元上的输入法候选区显示候选项,该候选项包括候选词和/或候选操作;该处理器46,还用于响应用户对该候选项的选择。
因此,根据本发明实施例的终端设备,通过响应在应用会话界面上显示的会话信息,在输入法候选区显示候选项,由此能够确定出更适合当前输入场景的候选项,并展示给用户,提升用户通过输入法输入信息的效率。
应理解,在本发明实施例中,RF电路41可用于在收发信息或通话过程中,信号的接收和发送,特别地,接收到下行信号后,给处理器46处理;另外,将上行信号发送出去。通常,RF电路包括但不限于天线、至少一个放大器、收发机、耦合器、低噪声放大器(Low Noise Amplifier,简称为“LNA”)、双工器等。此外,RF电路41还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯(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,简称为“LTE”)、电子邮件、短消息服务(Short Messaging Service,简称为“SMS”)等。
存储器42可用于存储软件程序以及模块,处理器46通过运行存储在存储器42中的软件程序以及模块,从而执行终端设备的各种功能应用以及信号处理。存储器42可主要包括存储程序区和存储数据区,其中,存储程序区可存储智能手机的操作***、至少一个功能所需的应用(比如输入信息功能所需的应用,即输入法应用、声音播放功能、图像播放功能等)等;存储数据区可存储根据智能手机的使用所创建的数据(比如用户使用输入法的过程中创建的词库、音频数据、图像数据、电话本等)等。此外,存储器42可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
输入单元43可用于接收输入的数字或字符信息,以及产生与终端设备的用户设置以及功能控制有关的按键信号输入。具体地,输入单元43可包括触摸屏431以及其他输入设备432。触摸屏431,也称为触控面板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触摸屏431上或在触摸屏431附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触摸屏431可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器46,并能接收处理器46发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触摸屏431。其他输入设备432可以包括但不限于物理键盘、功能键(比如音量控制键、电源键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元44可用于显示由用户输入的信息或提供给用户的信息以及终端设备的各种菜单。显示单元44可包括显示面板441,可选的,可以采用液晶显示器(Liquid Crystal Display,简称为“LCD”)、有机发光二极管(Organic Light-emitting Diode,简称为“OLED”)等形式来配置显示面板441。进一步的,触摸屏431可覆盖显示面板441,当触摸屏431检测到在其上或附近的触摸操作后,传送给处理器46以确定触摸事件的类型,随后处理器46根据触摸事件的类型在显示面板441上提供相应的视觉输出。虽然在图19中, 触摸屏431与显示面板441是作为两个独立的部件来实现智能手机的输入和输出功能的,但是在某些实施例中,可以将触摸屏431与显示面板441集成而实现终端设备的输入和输出功能。
音频单元45包括音频电路451、扬声器452以及麦克风453。音频单元45可提供用户与终端设备之间的音频接口。音频电路451可将接收到的音频数据转换后的电信号,传输到扬声器452,由扬声器452转换为声音信号输出;另一方面,麦克风453将收集的声音信号转换为电信号,由音频电路451接收后转换为音频数据,再将音频数据输出至RF电路41以发送给比如另一终端设备,或者将音频数据输出至存储器42以便进一步处理。
处理器46是终端设备的控制中心,利用各种接口和线路连接整个终端设备的各个部分,通过运行或执行存储在存储器42内的软件程序和模块,以及调用存储在存储器42内的数据,执行终端设备的各种功能和处理数据,从而完成终端设备的相应功能。可选的,处理器46可包括一个或多个处理单元;优选的,处理器46可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器46中。
终端设备还包括给各个部件供电的电源47(比如电池),优选的,电源可以通过电源管理***与处理器46逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。
接口48,可用于与其他设备连接,并传输终端设备与其他设备之间的数据。
可选的,终端设备还可以包括图19中未示出的无线保真(Wireless Fidelity,简称为“WiFi”)模块、蓝牙模块等,本发明实施例在此不再赘述。
可选地,作为一个实施例,在解析该上文信息,确定与该上文信息对应的动作类型方面,该处理器46具体用于:获取该上文信息中的关键词;根据该关键词和预设的对应关系,确定与该上文信息对应的动作类型,该对应关系包括该关键词和该动作类型的对应关系。
可选地,作为一个实施例,在根据该动作类型,确定与该输入法对应的候选项方面,该处理器46具体用于:执行该动作类型对应的动作;将执行该动作获取到的信息,确定为与该输入法对应的候选项。
可选地,作为一个实施例,在执行该动作类型对应的动作方面,该显示单元44具体用于:向用户呈现提示信息,该提示信息用于用户选择是否触发该动作;其中,该处理器46具体用于:当确定用户触发该动作时,执行该动作。
可选地,作为一个实施例,该上文信息中包括验证码,该动作类型为填充验证码;
其中,在根据该动作类型,确定与该输入法对应的候选项方面,该处理器46具体用于:将该验证码确定为与该输入法对应的候选项。
可选地,作为一个实施例,该上文信息中包括待回复文本,该动作类型为调用用于响应该待回复文本的应用;
其中,在根据该动作类型,确定与该输入法对应的候选项方面,该处理器46具体用于:将该用于响应该待回复文本的应用的快捷入口确定为与该输入法对应的候选项。
可选地,作为一个实施例,该上文信息中包括待回复文本,该动作类型为调用快速回复模板;
其中,在根据该动作类型,确定与该输入法对应的候选项方面,该处理器46具体用于:对该待回复文本进行语义解析,确定候选词库,该候选词库中包括常用回复词语;将该候选词库中排序靠前的预设数量的词语确定为与该输入法对应的候选项。
可选地,作为一个实施例,在该显示单元44向用户呈现该候选项之后,该处理器46还用于:确定用户输入的目标词语是否在该候选词库中;当确定用户输入的目标词语在该候选词库中时,提高该目标词语在该候选词库中的排名;或,当确定用户输入的目标词语不在该候选词库中时,将该目标词语添加到该候选词库中。
可选地,作为一个实施例,该目标应用为聊天类应用,该上文信息中包括待回复文本,该动作类型为提取原文内容;
其中,在执行该动作类型对应的动作;将执行该动作获取到的信息,确定为与该输入法对应的候选项方面,该处理器46具体用于:提取该待回复文本中的关键词;将该关键词确定为与该输入法对应的候选项。
可选地,作为一个实施例,该动作类型为数据查询;其中,在执行该动作类型对应的动作;将执行该动作获取到的信息,确定为与该输入法对应的 候选项方面,该处理器46具体用于:执行数据查询动作,获取与该上文信息对应的数据;将该与该上文信息对应的数据确定为与该输入法对应的候选项。
可选地,作为一个实施例,该上文信息中包括该目标应用的标识信息和该目标应用中的搜索框的标识信息;
其中,在执行数据查询动作,获取与该上文信息对应的数据方面,该处理器46具体用于:查询是否存在与该目标应用的标识信息和该目标应用中的搜索框的标识信息对应的历史搜索记录;当确定存在该历史搜索记录时,获取该历史搜索记录中排名靠前的预设数量的历史搜索词。
可选地,作为一个实施例,该目标应用为聊天类应用,该上文信息中包括该目标应用的标识信息和聊天对象的标识信息;其中,在执行数据查询动作,获取与该上文信息相对应的数据方面,该处理器46具体用于:查询是否存在与该目标应用的标识信息和该聊天对象的标识信息对应的称谓语;当确定存在该称谓语时,获取该称谓语中排名靠前的预设数量的称谓语。
应理解,根据本发明实施例的终端设备40可对应于本发明实施例中的终端设备20或终端设备30,并可以对应于执行本发明方法实施例中的终端设备,为了简洁,在此不再赘述。
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本发明的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。
应理解,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。
应理解,在本发明的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。
本领域普通技术人员可以意识到,结合本文中所公开的实施例中描述的各方法步骤和单元,能够以电子硬件、计算机软件或者二者的结合来实现, 为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各实施例的步骤及组成。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。本领域普通技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。
结合本文中所公开的实施例描述的方法或步骤可以用硬件、处理器执行的软件程序,或者二者的结合来实施。软件程序可以置于随机存储器(Random Access Memory,RAM)、内存、只读存储器(Read-Only Memory,ROM)、电可编程只读存储器(Electrically Programmable Read-Only Memory,EPROM)、电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、寄存器、硬盘、可移动磁盘、致密盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、或技术领域内所公知的任意其它形式的存储介质中。
在本申请所提供的几个实施例中,应该理解到,所揭露的***、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
尽管通过参考附图并结合优选实施例的方式对本发明进行了详细描述,但本发明并不限于此。在不脱离本发明的精神和实质的前提下,本领域普通技术人员可以对本发明的实施例进行各种等效的修改或替换,而这些修改或替换都应在本发明的涵盖范围内。

Claims (62)

  1. 一种展示候选项的方法,所述方法应用于用户通过输入法输入信息的场景中,其特征在于,所述方法包括:
    确定所述输入法被触发,获取目标应用的上文信息,所述目标应用为当前处于活动进程状态的应用;
    解析所述上文信息,确定与所述上文信息对应的动作类型;
    根据所述动作类型,确定与所述输入法对应的候选项,所述候选项包括候选词和/或候选操作;
    向用户展示所述候选项。
  2. 根据权利要求1所述的方法,其特征在于,所述解析所述上文信息,确定与所述上文信息对应的动作类型,包括:
    获取所述上文信息中的关键词;
    根据所述关键词和预设的对应关系,确定与所述上文信息对应的动作类型,所述对应关系包括所述关键词和所述动作类型的对应关系。
  3. 根据权利要求1或2所述的方法,其特征在于,所述根据所述动作类型,确定与所述输入法对应的候选项,包括:
    执行所述动作类型对应的动作;
    将执行所述动作获取到的信息,确定为与所述输入法对应的候选项。
  4. 根据权利要求3所述的方法,其特征在于,所述执行所述动作类型对应的动作,包括:
    向用户呈现提示信息,所述提示信息用于用户选择是否触发所述动作;
    当确定用户触发所述动作时,执行所述动作。
  5. 根据权利要求1或2所述的方法,其特征在于,所述上文信息中包括验证码,所述动作类型为填充验证码;
    其中,所述根据所述动作类型,确定与所述输入法对应的候选项,包括:
    将所述验证码确定为与所述输入法对应的候选项。
  6. 根据权利要求1或2所述的方法,其特征在于,所述上文信息中包括待回复文本,所述动作类型为调用用于响应所述待回复文本的应用;
    其中,所述根据所述动作类型,确定与所述输入法对应的候选项,包括:
    将所述用于响应所述待回复文本的应用的快捷入口确定为与所述输入法对应的候选项。
  7. 根据权利要求1或2所述的方法,其特征在于,所述上文信息中包括待回复文本,所述动作类型为调用快速回复模板;
    其中,所述根据所述动作类型,确定与所述输入法对应的候选项,包括:
    对所述待回复文本进行语义解析,确定候选词库,所述候选词库中包括常用回复词语;
    将所述候选词库中排序靠前的预设数量的词语确定为与所述输入法对应的候选项。
  8. 根据权利要求7所述的方法,其特征在于,在向用户呈现所述候选项之后,所述方法还包括:
    确定用户输入的目标词语是否在所述候选词库中;
    当确定用户输入的目标词语在所述候选词库中时,提高所述目标词语在所述候选词库中的排名;或,
    当确定用户输入的目标词语不在所述候选词库中时,将所述目标词语添加到所述候选词库中。
  9. 根据权利要求3或4所述的方法,其特征在于,所述目标应用为聊天类应用,所述上文信息中包括待回复文本,所述动作类型为提取原文内容;
    其中,所述执行所述动作类型对应的动作;将执行所述动作获取到的信息,确定为与所述输入法对应的候选项,包括:
    提取所述待回复文本中的关键词;
    将所述关键词确定为与所述输入法对应的候选项。
  10. 根据权利要求3或4所述的方法,其特征在于,所述动作类型为数据查询;
    其中,所述执行所述动作类型对应的动作;将执行所述动作获取到的信息,确定为与所述输入法对应的候选项,包括:
    执行数据查询动作,获取与所述上文信息对应的数据;
    将所述与所述上文信息对应的数据确定为与所述输入法对应的候选项。
  11. 根据权利要求10所述的方法,其特征在于,所述上文信息中包括所述目标应用的标识信息和所述目标应用中的搜索框的标识信息;
    其中,所述执行数据查询动作,获取与所述上文信息对应的数据,包括:
    查询是否存在与所述目标应用的标识信息和所述目标应用中的搜索框的标识信息对应的历史搜索记录;
    当确定存在所述历史搜索记录时,获取所述历史搜索记录中排名靠前的预设数量的历史搜索词。
  12. 根据权利要求10所述的方法,其特征在于,所述目标应用为聊天类应用,所述上文信息中包括所述目标应用的标识信息和聊天对象的标识信息;
    其中,所述执行数据查询动作,获取与所述上文信息相对应的数据,包括:
    查询是否存在与所述目标应用的标识信息和所述聊天对象的标识信息对应的称谓语;
    当确定存在所述称谓语时,获取所述称谓语中排名靠前的预设数量的称谓语。
  13. 一种展示候选项的终端设备,其特征在于,所述终端设备包括:
    获取模块,用于确定所述输入法被触发,获取目标应用的上文信息,所述目标应用为当前处于活动进程状态的应用;
    动作识别模块,用于解析所述上文信息,确定与所述上文信息对应的动作类型;
    动作执行模块,用于根据所述动作类型,确定与所述输入法对应的候选项,所述候选项包括候选词和/或候选操作;
    展示模块,用于向用户提供所述候选项。
  14. 根据权利要求13所述的终端设备,其特征在于,在解析所述上文信息,确定与所述上文信息对应的动作类型方面,所述动作识别模块具体用于:
    获取所述上文信息中的关键词;
    根据所述关键词和预设的对应关系,确定与所述上文信息对应的动作类型,所述对应关系包括所述关键词和所述动作类型的对应关系。
  15. 根据权利要求13或14所述的终端设备,其特征在于,在根据所述动作类型,确定与所述输入法对应的候选项方面,所述动作执行模块具体用于:
    执行所述动作类型对应的动作;
    将执行所述动作获取到的信息,确定为与所述输入法对应的候选项。
  16. 根据权利要求15所述的终端设备,其特征在于,在执行所述动作 类型对应的动作方面,所述展示模块具体用于:
    向用户呈现提示信息,所述提示信息用于用户选择是否触发所述动作;
    其中,所述动作执行模块具体用于:
    当确定用户触发所述动作时,执行所述动作。
  17. 根据权利要求13或14所述的终端设备,其特征在于,所述上文信息中包括验证码,所述动作类型为填充验证码;
    其中,在根据所述动作类型,确定与所述输入法对应的候选项方面,所述动作执行模块具体用于:
    将所述验证码确定为与所述输入法对应的候选项。
  18. 根据权利要求13或14所述的终端设备,其特征在于,所述上文信息中包括待回复文本,所述动作类型为调用用于响应所述待回复文本的应用;
    其中,在根据所述动作类型,确定与所述输入法对应的候选项方面,所述动作执行模块具体用于:
    将所述用于响应所述待回复文本的应用的快捷入口确定为与所述输入法对应的候选项。
  19. 根据权利要求13或14所述的终端设备,其特征在于,所述上文信息中包括待回复文本,所述动作类型为调用快速回复模板;
    其中,在根据所述动作类型,确定与所述输入法对应的候选项方面,所述动作执行模块具体用于:
    对所述待回复文本进行语义解析,确定候选词库,所述候选词库中包括常用回复词语;
    将所述候选词库中排序靠前的预设数量的词语确定为与所述输入法对应的候选项。
  20. 根据权利要求19所述的终端设备,其特征在于,在所述展示模块向用户呈现所述候选项之后,所述动作执行模块还用于:
    确定用户输入的目标词语是否在所述候选词库中;
    当确定用户输入的目标词语在所述候选词库中时,提高所述目标词语在所述候选词库中的排名;或,
    当确定用户输入的目标词语不在所述候选词库中时,将所述目标词语添加到所述候选词库中。
  21. 根据权利要求15或16所述的终端设备,其特征在于,所述目标应用为聊天类应用,所述上文信息中包括待回复文本,所述动作类型为提取原文内容;
    其中,在执行所述动作类型对应的动作;将执行所述动作获取到的信息,确定为与所述输入法对应的候选项方面,所述动作执行模块具体用于:
    提取所述待回复文本中的关键词;
    将所述关键词确定为与所述输入法对应的候选项。
  22. 根据权利要求15或16所述的终端设备,其特征在于,所述动作类型为数据查询;
    其中,在执行所述动作类型对应的动作;将执行所述动作获取到的信息,确定为与所述输入法对应的候选项方面,所述动作执行模块具体用于:
    执行数据查询动作,获取与所述上文信息对应的数据;
    将所述与所述上文信息对应的数据确定为与所述输入法对应的候选项。
  23. 根据权利要求22所述的终端设备,其特征在于,所述上文信息中包括所述目标应用的标识信息和所述目标应用中的搜索框的标识信息;
    其中,在执行数据查询动作,获取与所述上文信息对应的数据方面,所述动作执行模块具体用于:
    查询是否存在与所述目标应用的标识信息和所述目标应用中的搜索框的标识信息对应的历史搜索记录;
    当确定存在所述历史搜索记录时,获取所述历史搜索记录中排名靠前的预设数量的历史搜索词。
  24. 根据权利要求22所述的终端设备,其特征在于,所述目标应用为聊天类应用,所述上文信息中包括所述目标应用的标识信息和聊天对象的标识信息;
    其中,在执行数据查询动作,获取与所述上文信息相对应的数据方面,所述动作执行模块具体用于:
    查询是否存在与所述目标应用的标识信息和所述聊天对象的标识信息对应的称谓语;
    当确定存在所述称谓语时,获取所述称谓语中排名靠前的预设数量的称谓语。
  25. 一种终端设备,其特征在于,包括:
    处理器,用于确定所述输入法被触发,获取目标应用的上文信息,所述目标应用为当前处于活动进程状态的应用;
    所述处理器,还用于解析所述上文信息,确定与所述上文信息对应的动作类型;
    所述处理器,还用于根据所述动作类型,确定与所述输入法对应的候选项,所述候选项包括候选词和/或候选操作;
    显示屏,用于向用户展示所述候选项。
  26. 根据权利要求25所述的终端设备,其特征在于,在解析所述上文信息,确定与所述上文信息对应的动作类型方面,所述处理器具体用于:
    获取所述上文信息中的关键词;
    根据所述关键词和预设的对应关系,确定与所述上文信息对应的动作类型,所述对应关系包括所述关键词和所述动作类型的对应关系。
  27. 根据权利要求25或26所述的终端设备,其特征在于,在根据所述动作类型,确定与所述输入法对应的候选项方面,所述处理器具体用于:
    执行所述动作类型对应的动作;
    将执行所述动作获取到的信息,确定为与所述输入法对应的候选项。
  28. 根据权利要求27所述的终端设备,其特征在于,在执行所述动作类型对应的动作方面,所述处理器具体用于:
    向用户呈现提示信息,所述提示信息用于用户选择是否触发所述动作;
    当确定用户触发所述动作时,执行所述动作。
  29. 根据权利要求25或26所述的终端设备,其特征在于,所述上文信息中包括验证码,所述动作类型为填充验证码;
    其中,在根据所述动作类型,确定与所述输入法对应的候选项方面,所述处理器具体用于:
    将所述验证码确定为与所述输入法对应的候选项。
  30. 根据权利要求25或26所述的终端设备,其特征在于,所述上文信息中包括待回复文本,所述动作类型为调用用于响应所述待回复文本的应用;
    其中,在根据所述动作类型,确定与所述输入法对应的候选项方面,所述处理器具体用于:
    将所述用于响应所述待回复文本的应用的快捷入口确定为与所述输入 法对应的候选项。
  31. 根据权利要求25或26所述的终端设备,其特征在于,所述上文信息中包括待回复文本,所述动作类型为调用快速回复模板;
    其中,在根据所述动作类型,确定与所述输入法对应的候选项方面,所述处理器具体用于:
    对所述待回复文本进行语义解析,确定候选词库,所述候选词库中包括常用回复词语;
    将所述候选词库中排序靠前的预设数量的词语确定为与所述输入法对应的候选项。
  32. 根据权利要求31所述的终端设备,其特征在于,在所述显示屏向用户呈现所述候选项之后,所述处理器还用于:
    确定用户输入的目标词语是否在所述候选词库中;
    当确定用户输入的目标词语在所述候选词库中时,提高所述目标词语在所述候选词库中的排名;或,
    当确定用户输入的目标词语不在所述候选词库中时,将所述目标词语添加到所述候选词库中。
  33. 根据权利要求25或26所述的终端设备,其特征在于,所述目标应用为聊天类应用,所述上文信息中包括待回复文本,所述动作类型为提取原文内容;
    其中,在执行所述动作类型对应的动作;将执行所述动作获取到的信息,确定为与所述输入法对应的候选项方面,所述处理器具体用于:
    提取所述待回复文本中的关键词;
    将所述关键词确定为与所述输入法对应的候选项。
  34. 根据权利要求25或26所述的终端设备,其特征在于,所述动作类型为数据查询;
    其中,在执行所述动作类型对应的动作;将执行所述动作获取到的信息,确定为与所述输入法对应的候选项方面,所述处理器具体用于:
    执行数据查询动作,获取与所述上文信息对应的数据;
    将所述与所述上文信息对应的数据确定为与所述输入法对应的候选项。
  35. 根据权利要求34所述的终端设备,其特征在于,所述上文信息中包括所述目标应用的标识信息和所述目标应用中的搜索框的标识信息;
    其中,在执行数据查询动作,获取与所述上文信息对应的数据方面,所述处理器具体用于:
    查询是否存在与所述目标应用的标识信息和所述目标应用中的搜索框的标识信息对应的历史搜索记录;
    当确定存在所述历史搜索记录时,获取所述历史搜索记录中排名靠前的预设数量的历史搜索词。
  36. 根据权利要求34所述的终端设备,其特征在于,所述目标应用为聊天类应用,所述上文信息中包括所述目标应用的标识信息和聊天对象的标识信息;
    其中,在执行数据查询动作,获取与所述上文信息相对应的数据方面,所述处理器具体用于:
    查询是否存在与所述目标应用的标识信息和所述聊天对象的标识信息对应的称谓语;
    当确定存在所述称谓语时,获取所述称谓语中排名靠前的预设数量的称谓语。
  37. 一种展示候选项的方法,所述方法应用于用户通过输入法输入信息的场景中,其特征在于,所述方法包括:
    显示应用会话界面;
    显示输入法界面;
    在所述应用会话界面显示会话信息;
    响应所述会话信息,在输入法候选区显示候选项,所述候选项包括候选词和/或候选操作;
    响应用户对所述候选项的选择。
  38. 根据权利要求37所述的方法,其特征在于,所述响应所述会话信息,在输入法候选区显示候选项,包括:
    解析所述会话信息,确定与所述会话信息对应的动作类型;
    根据所述动作类型,确定与所述输入法对应的候选项;
    在输入法候选区显示所述候选项。
  39. 根据权利要求38所述的方法,其特征在于,所述解析所述会话信息,确定与所述会话信息对应的动作类型,包括:
    获取所述会话信息中的关键词;
    根据所述关键词和预设的对应关系,确定与所述会话信息对应的动作类型,所述对应关系包括所述关键词和所述动作类型的对应关系。
  40. 根据权利要求38或39所述的方法,其特征在于,所述根据所述动作类型,确定与所述输入法对应的候选项,包括:
    执行所述动作类型对应的动作;
    将执行所述动作获取到的信息,确定为与所述输入法对应的候选项。
  41. 根据权利要求40所述的方法,其特征在于,所述执行所述动作类型对应的动作,包括:
    显示提示信息,所述提示信息用于用户选择是否触发所述动作;
    当确定用户触发所述动作时,执行所述动作。
  42. 根据权利要求38或39所述的方法,其特征在于,所述会话信息中包括验证码,所述动作类型为填充验证码;
    其中,所述根据所述动作类型,确定与所述输入法对应的候选项,包括:
    将所述验证码确定为与所述输入法对应的候选项。
  43. 根据权利要求38或39所述的方法,其特征在于,所述会话信息中包括待回复文本,所述动作类型为调用用于响应所述待回复文本的应用;
    其中,所述根据所述动作类型,确定与所述输入法对应的候选项,包括:
    将所述用于响应所述待回复文本的应用的快捷入口确定为与所述输入法对应的候选项。
  44. 根据权利要求38或39所述的方法,其特征在于,所述会话信息中包括待回复文本,所述动作类型为调用快速回复模板;
    其中,所述根据所述动作类型,确定与所述输入法对应的候选项,包括:
    对所述待回复文本进行语义解析,确定候选词库,所述候选词库中包括常用回复词语;
    将所述候选词库中排序靠前的预设数量的词语确定为与所述输入法对应的候选项。
  45. 根据权利要求44所述的方法,其特征在于,在响应用户对所述显示候选项的选择之后,所述方法还包括:
    确定用户输入的目标词语是否在所述候选词库中;
    当确定用户输入的目标词语在所述候选词库中时,提高所述目标词语在所述候选词库中的排名;或,
    当确定用户输入的目标词语不在所述候选词库中时,将所述目标词语添加到所述候选词库中。
  46. 根据权利要求40或41所述的方法,其特征在于,所述目标应用为聊天类应用,所述会话信息中包括待回复文本,所述动作类型为提取原文内容;
    其中,所述执行所述动作类型对应的动作;将执行所述动作获取到的信息,确定为与所述输入法对应的候选项,包括:
    提取所述待回复文本中的关键词;
    将所述关键词确定为与所述输入法对应的候选项。
  47. 根据权利要求40或41所述的方法,其特征在于,所述动作类型为数据查询;
    其中,所述执行所述动作类型对应的动作;将执行所述动作获取到的信息,确定为与所述输入法对应的候选项,包括:
    执行数据查询动作,获取与所述会话信息对应的数据;
    将所述与所述会话信息对应的数据确定为与所述输入法对应的候选项。
  48. 根据权利要求47所述的方法,其特征在于,所述会话信息中包括所述目标应用的标识信息和所述目标应用中的搜索框的标识信息;
    其中,所述执行数据查询动作,获取与所述会话信息对应的数据,包括:
    查询是否存在与所述目标应用的标识信息和所述目标应用中的搜索框的标识信息对应的历史搜索记录;
    当确定存在所述历史搜索记录时,获取所述历史搜索记录中排名靠前的预设数量的历史搜索词。
  49. 根据权利要求47所述的方法,其特征在于,所述目标应用为聊天类应用,所述会话信息中包括所述目标应用的标识信息和聊天对象的标识信息;
    其中,所述执行数据查询动作,获取与所述会话信息相对应的数据,包括:
    查询是否存在与所述目标应用的标识信息和所述聊天对象的标识信息对应的称谓语;
    当确定存在所述称谓语时,获取所述称谓语中排名靠前的预设数量的称谓语。
  50. 一种终端设备,其特征在于,包括:
    显示屏,用于显示应用会话界面;
    所述显示屏,还用于显示输入法界面;
    所述显示屏,还用于在所述应用会话界面显示会话信息;
    处理器,用于响应所述会话信息,在所述显示屏上的输入法候选区显示候选项,所述候选项包括候选词和/或候选操作;
    所述处理器,还用于响应用户对所述候选项的选择。
  51. 根据权利要求50所述的终端设备,其特征在于,在响应所述会话信息,在所述显示屏的输入法候选区显示候选项方面,所述处理器具体用于:
    解析所述会话信息,确定与所述会话信息对应的动作类型;
    根据所述动作类型,确定与所述输入法对应的候选项;
    在所述显示屏上的输入法候选区显示所述候选项。
  52. 根据权利要求51所述的终端设备,其特征在于,在解析所述会话信息,确定与所述会话信息对应的动作类型方面,所述处理器具体用于:
    获取所述会话信息中的关键词;
    根据所述关键词和预设的对应关系,确定与所述会话信息对应的动作类型,所述对应关系包括所述关键词和所述动作类型的对应关系。
  53. 根据权利要求51或52所述的终端设备,其特征在于,在根据所述动作类型,确定与所述输入法对应的候选项方面,所述处理器具体用于:
    执行所述动作类型对应的动作;
    将执行所述动作获取到的信息,确定为与所述输入法对应的候选项。
  54. 根据权利要求53所述的终端设备,其特征在于,在执行所述动作类型对应的动作方面,所述处理器具体用于:
    控制所述显示屏显示提示信息,所述提示信息用于用户选择是否触发所述动作;
    当确定用户触发所述动作时,执行所述动作。
  55. 根据权利要求51或52所述的终端设备,其特征在于,所述会话信息中包括验证码,所述动作类型为填充验证码;
    其中,在根据所述动作类型,确定与所述输入法对应的候选项方面,所述处理器具体用于:
    将所述验证码确定为与所述输入法对应的候选项。
  56. 根据权利要求51或52所述的终端设备,其特征在于,所述会话信息中包括待回复文本,所述动作类型为调用用于响应所述待回复文本的应用;
    其中,在根据所述动作类型,确定与所述输入法对应的候选项方面,所述处理器具体用于:
    将所述用于响应所述待回复文本的应用的快捷入口确定为与所述输入法对应的候选项。
  57. 根据权利要求51或52所述的终端设备,其特征在于,所述会话信息中包括待回复文本,所述动作类型为调用快速回复模板;
    其中,在根据所述动作类型,确定与所述输入法对应的候选项方面,所述处理器具体用于:
    对所述待回复文本进行语义解析,确定候选词库,所述候选词库中包括常用回复词语;
    将所述候选词库中排序靠前的预设数量的词语确定为与所述输入法对应的候选项。
  58. 根据权利要求57所述的终端设备,其特征在于,在响应用户对所述候选项的选择之后,所述处理器还用于:
    确定用户输入的目标词语是否在所述候选词库中;
    当确定用户输入的目标词语在所述候选词库中时,提高所述目标词语在所述候选词库中的排名;或,
    当确定用户输入的目标词语不在所述候选词库中时,将所述目标词语添加到所述候选词库中。
  59. 根据权利要求53或54所述的终端设备,其特征在于,所述目标应用为聊天类应用,所述会话信息中包括待回复文本,所述动作类型为提取原文内容;
    其中,在执行所述动作类型对应的动作;将执行所述动作获取到的信息,确定为与所述输入法对应的候选项方面,所述处理器具体用于:
    提取所述待回复文本中的关键词;
    将所述关键词确定为与所述输入法对应的候选项。
  60. 根据权利要求53或54所述的终端设备,其特征在于,所述动作类型为数据查询;
    其中,在执行所述动作类型对应的动作;将执行所述动作获取到的信息,确定为与所述输入法对应的候选项方面,所述处理器具体用于:
    执行数据查询动作,获取与所述会话信息对应的数据;
    将所述与所述会话信息对应的数据确定为与所述输入法对应的候选项。
  61. 根据权利要求60所述的终端设备,其特征在于,所述会话信息中包括所述目标应用的标识信息和所述目标应用中的搜索框的标识信息;
    其中,在执行数据查询动作,获取与所述会话信息对应的数据方面,所述处理器具体用于:
    查询是否存在与所述目标应用的标识信息和所述目标应用中的搜索框的标识信息对应的历史搜索记录;
    当确定存在所述历史搜索记录时,获取所述历史搜索记录中排名靠前的预设数量的历史搜索词。
  62. 根据权利要求60所述的终端设备,其特征在于,所述目标应用为聊天类应用,所述会话信息中包括所述目标应用的标识信息和聊天对象的标识信息;
    其中,在执行数据查询动作,获取与所述会话信息相对应的数据方面,所述处理器具体用于:
    查询是否存在与所述目标应用的标识信息和所述聊天对象的标识信息对应的称谓语;
    当确定存在所述称谓语时,获取所述称谓语中排名靠前的预设数量的称谓语。
PCT/CN2016/091036 2016-07-22 2016-07-22 展示候选项的方法和终端设备 WO2018014341A1 (zh)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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