Movatterモバイル変換


[0]ホーム

URL:


CN110389668B - Input method, device and device for inputting - Google Patents

Input method, device and device for inputting
Download PDF

Info

Publication number
CN110389668B
CN110389668BCN201810360827.1ACN201810360827ACN110389668BCN 110389668 BCN110389668 BCN 110389668BCN 201810360827 ACN201810360827 ACN 201810360827ACN 110389668 BCN110389668 BCN 110389668B
Authority
CN
China
Prior art keywords
word
candidate items
candidates
input string
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810360827.1A
Other languages
Chinese (zh)
Other versions
CN110389668A (en
Inventor
王丹
张扬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sogou Technology Development Co LtdfiledCriticalBeijing Sogou Technology Development Co Ltd
Priority to CN201810360827.1ApriorityCriticalpatent/CN110389668B/en
Publication of CN110389668ApublicationCriticalpatent/CN110389668A/en
Application grantedgrantedCritical
Publication of CN110389668BpublicationCriticalpatent/CN110389668B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The embodiment of the invention provides an input method, an input device and an input device, wherein the input method specifically comprises the following steps: receiving an input string of a user; determining system candidates corresponding to the input string; determining combination candidates corresponding to the input strings; and displaying the system candidate items and the combination candidate items. The embodiment of the invention can improve the possibility of including the candidate required by the user in the displayed candidate, thereby improving the input efficiency and the input experience of the user.

Description

Translated fromChinese
一种输入方法、装置和用于输入的装置Input method, device and device for input

技术领域Technical Field

本发明涉及输入法技术领域,尤其涉及一种输入方法、装置和用于输入的装置。The present invention relates to the technical field of input methods, and in particular to an input method, device and a device for input.

背景技术Background Art

对于例如中文、日文、韩文等语言的用户而言,一般都需要通过输入法程序与计算机进行交互。For users of languages such as Chinese, Japanese, and Korean, it is generally necessary to interact with the computer through an input method program.

目前,用户可以通过键盘键入拼音串,然后由输入法程序查询词库、以及依据预置的标准映射规则将该拼音串转换为相应语言的候选项并展示,进而将用户选择的候选项上屏。例如,假设用户欲要输入词条“异样的”,输入法程序获取用户的拼音串为“yiyangde”,输入法程序根据拼音串“yiyangde”在词库中查找词条,然后展现查找到的词条。Currently, users can type in a pinyin string through the keyboard, and then the input method program searches the word library, converts the pinyin string into candidate items in the corresponding language according to the preset standard mapping rules, and displays the candidate items selected by the user on the screen. For example, if the user wants to enter the term "异阳的", the input method program obtains the user's pinyin string "yiyangde", and the input method program searches for the term in the word library according to the pinyin string "yiyangde", and then displays the found term.

在实际应用中,由于受到词库尺寸的限制,词库中通常只存储高频词条;因此,往往存在词库中未包含用户想要输入的词条的情况,在这种情况下,用户需要将该词条中包含的汉字逐字上屏才能完成输入,从而降低了输入效率,且降低了用户的输入体验。In actual applications, due to the limitation of the vocabulary size, only high-frequency entries are usually stored in the vocabulary; therefore, there is often a situation where the vocabulary does not contain the entry that the user wants to input. In this case, the user needs to put the Chinese characters contained in the entry on the screen one by one to complete the input, thereby reducing the input efficiency and the user's input experience.

发明内容Summary of the invention

为解决上述技术问题,本发明实施例示出了一种输入方法、装置和用于输入的装置。To solve the above technical problems, the embodiments of the present invention show an input method, a device and a device for input.

第一方面,本发明实施例示出了一种输入方法,所述方法包括:In a first aspect, an embodiment of the present invention provides an input method, the method comprising:

接收用户的输入串;Receive the user's input string;

确定所述输入串对应的系统候选项;Determine system candidates corresponding to the input string;

确定所述输入串对应的组合候选项;Determine combination candidates corresponding to the input string;

对所述系统候选项和所述组合候选项进行展示。The system candidates and the combination candidates are displayed.

在一个可选的实现方式中,所述确定所述输入串对应的组合候选项,包括:In an optional implementation, determining the combination candidate items corresponding to the input string includes:

若所述系统候选项的数量小于预设数量,则确定所述输入串对应的组合候选项。If the number of the system candidate items is less than the preset number, the combination candidate items corresponding to the input string are determined.

在一个可选的实现方式中,所述对所述系统候选项和所述组合候选项进行展示,包括:In an optional implementation, the presenting of the system candidate items and the combination candidate items includes:

对于所述系统候选项和所述组合候选项中的候选项,根据长短期记忆网络模型分别获取所述候选项的目标得分;For the system candidates and the candidate items in the combined candidates, respectively obtaining target scores of the candidate items according to a long short-term memory network model;

在所述系统候选项和所述组合候选项中,选择目标得分最高的预设数量个候选项;Selecting a preset number of candidates with the highest target scores from among the system candidates and the combined candidates;

展示选择的候选项。Displays the selected candidates.

在一个可选的实现方式中,所述展示所述选择的候选项,包括:In an optional implementation, presenting the selected candidate items includes:

按照目标得分由高至低的顺序,展示选择的候选项。The selected candidates are displayed in descending order of target scores.

在一个可选的实现方式中,所述根据长短期记忆网络模型分别获取所述候选项的目标得分,包括:In an optional implementation, obtaining the target scores of the candidate items respectively according to the long short-term memory network model includes:

对所述候选项进行分词,以得到词序列;Segmenting the candidate items to obtain a word sequence;

根据所述长短期记忆网络模型,确定所述词序列中的词对应的预测词、以及所述预测词的概率值;Determining, according to the long short-term memory network model, predicted words corresponding to the words in the word sequence and probability values of the predicted words;

根据所述词序列中的词、所述词对应的预测词,以及所述预测词的概率值,确定所述候选项的目标得分。A target score for the candidate item is determined based on the words in the word sequence, the predicted words corresponding to the words, and the probability values of the predicted words.

在一个可选的实现方式中,所述根据长短期记忆网络模型分别获取所述候选项的目标得分,包括:In an optional implementation, obtaining the target scores of the candidate items respectively according to the long short-term memory network model includes:

对所述候选项进行分词,以得到词序列;Segmenting the candidate items to obtain a word sequence;

根据长短期记忆网络模型,确定所述词序列的第一得分;Determining a first score of the word sequence according to a long short-term memory network model;

根据多元文法模型,确定所述候选项的第二得分;determining a second score for the candidate item according to the multivariate grammatical model;

根据所述第一得分和所述第二得分,确定所述候选项的目标得分。A target score for the candidate item is determined according to the first score and the second score.

在一个可选的实现方式中,所述确定所述输入串对应的组合候选项,包括:In an optional implementation, determining the combination candidate items corresponding to the input string includes:

若所述输入串不位于预设组词拼音串列表中,则确定所述输入串对应的组合候选项;其中,所述预设组词输入串列表中存储的输入串对应的候选项在预设语料库中的出现频率低于预设频率。If the input string is not in the preset word-forming pinyin string list, determine the combination candidate items corresponding to the input string; wherein the candidate items corresponding to the input string stored in the preset word-forming input string list have an appearance frequency in the preset corpus lower than the preset frequency.

第二方面,本发明实施例示出了一种输入装置,所述装置包括:In a second aspect, an embodiment of the present invention provides an input device, the device comprising:

接收模块,用于接收用户的输入串;A receiving module, used for receiving an input string from a user;

第一确定模块,用于确定所述输入串对应的系统候选项;A first determination module, used to determine the system candidate corresponding to the input string;

第二确定模块,用于确定所述输入串对应的组合候选项;A second determination module, used to determine the combination candidate items corresponding to the input string;

展示模块,用于对所述系统候选项和所述组合候选项进行展示。A display module is used to display the system candidates and the combination candidates.

在一个可选的实现方式中,所述第二确定模块具体用于:若所述系统候选项的数量小于预设数量,则确定所述输入串对应的组合候选项。In an optional implementation, the second determination module is specifically configured to: if the number of the system candidate items is less than a preset number, determine the combination candidate items corresponding to the input string.

在一个可选的实现方式中,所述展示模块包括:In an optional implementation, the display module includes:

获取单元,用于对于所述系统候选项和所述组合候选项中的候选项,根据长短期记忆网络模型分别获取所述候选项的目标得分;an acquisition unit, configured to acquire target scores of the system candidate items and the candidate items in the combined candidate items respectively according to a long short-term memory network model;

选择单元,用于在所述系统候选项和所述组合候选项中,选择目标得分最高的预设数量个候选项;A selection unit, configured to select a preset number of candidates with the highest target scores from among the system candidates and the combined candidates;

展示单元,用于展示选择的候选项。Display unit, used to display selected candidates.

在一个可选的实现方式中,所述展示单元具体用于:按照目标得分由高至低的顺序,展示选择的候选项。In an optional implementation, the display unit is specifically configured to display the selected candidate items in descending order of target scores.

在一个可选的实现方式中,所述获取单元包括:In an optional implementation, the acquiring unit includes:

第一分词子单元,用于对所述候选项进行分词,以得到词序列;A first word segmentation subunit, used for segmenting the candidate items to obtain a word sequence;

第一确定子单元,用于根据所述长短期记忆网络模型,确定所述词序列中的词对应的预测词、以及所述预测词的概率值;A first determination subunit, configured to determine, according to the long short-term memory network model, a predicted word corresponding to a word in the word sequence and a probability value of the predicted word;

第二确定子单元,用于根据所述词序列中的词、所述词对应的预测词,以及所述预测词的概率值,确定所述候选项的目标得分。The second determination subunit is used to determine the target score of the candidate item according to the words in the word sequence, the predicted words corresponding to the words, and the probability value of the predicted words.

在一个可选的实现方式中,所述获取单元包括:In an optional implementation, the acquiring unit includes:

第二分词子单元,用于对所述候选项进行分词,以得到词序列;A second word segmentation subunit is used to segment the candidate items to obtain a word sequence;

第三确定子单元,用于根据长短期记忆网络模型,确定所述词序列的第一得分;A third determination subunit, configured to determine a first score of the word sequence according to a long short-term memory network model;

第四确定子单元,用于根据多元文法模型,确定所述候选项的第二得分;a fourth determination subunit, configured to determine a second score of the candidate item according to the multivariate grammar model;

第五确定子单元,用于根据所述第一得分和所述第二得分,确定所述候选项的目标得分。The fifth determining subunit is configured to determine a target score for the candidate item according to the first score and the second score.

在一个可选的实现方式中,所述第二确定模块具体用于:若所述输入串不位于预设组词拼音串列表中,则确定所述输入串对应的组合候选项;其中,所述预设组词输入串列表中存储的输入串对应的候选项在预设语料库中的出现频率低于预设频率。In an optional implementation, the second determination module is specifically used to: if the input string is not in the preset word-forming pinyin string list, determine the combination candidate items corresponding to the input string; wherein the candidate items corresponding to the input string stored in the preset word-forming input string list have an appearance frequency in the preset corpus lower than the preset frequency.

第三方面,本发明实施例示出了一种用于输入的装置,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:In a third aspect, an embodiment of the present invention shows a device for input, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations:

接收用户的输入串;Receive the user's input string;

确定所述输入串对应的系统候选项;Determine system candidates corresponding to the input string;

确定所述输入串对应的组合候选项;Determine combination candidates corresponding to the input string;

对所述系统候选项和所述组合候选项进行展示。The system candidates and the combination candidates are displayed.

在一个可选的实现方式中,所述确定所述输入串对应的组合候选项,包括:In an optional implementation, determining the combination candidate items corresponding to the input string includes:

若所述系统候选项的数量小于预设数量,则确定所述输入串对应的组合候选项。If the number of the system candidate items is less than the preset number, the combination candidate items corresponding to the input string are determined.

在一个可选的实现方式中,所述对所述系统候选项和所述组合候选项进行展示,包括:In an optional implementation, the presenting of the system candidate items and the combination candidate items includes:

对于所述系统候选项和所述组合候选项中的候选项,根据长短期记忆网络模型分别获取所述候选项的目标得分;For the system candidates and the candidate items in the combined candidates, respectively obtaining target scores of the candidate items according to a long short-term memory network model;

在所述系统候选项和所述组合候选项中,选择目标得分最高的预设数量个候选项;Selecting a preset number of candidates with the highest target scores from among the system candidates and the combined candidates;

展示选择的候选项。Displays the selected candidates.

在一个可选的实现方式中,所述展示所述选择的候选项,包括:In an optional implementation, presenting the selected candidate items includes:

按照目标得分由高至低的顺序,展示选择的候选项。The selected candidates are displayed in descending order of target scores.

在一个可选的实现方式中,所述根据长短期记忆网络模型分别获取所述候选项的目标得分,包括:In an optional implementation, obtaining the target scores of the candidate items respectively according to the long short-term memory network model includes:

对所述候选项进行分词,以得到词序列;Segmenting the candidate items to obtain a word sequence;

根据所述长短期记忆网络模型,确定所述词序列中的词对应的预测词、以及所述预测词的概率值;Determining, according to the long short-term memory network model, predicted words corresponding to the words in the word sequence and probability values of the predicted words;

根据所述词序列中的词、所述词对应的预测词,以及所述预测词的概率值,确定所述候选项的目标得分。A target score for the candidate item is determined based on the words in the word sequence, the predicted words corresponding to the words, and the probability values of the predicted words.

在一个可选的实现方式中,所述根据长短期记忆网络模型分别获取所述候选项的目标得分,包括:In an optional implementation, obtaining the target scores of the candidate items respectively according to the long short-term memory network model includes:

对所述候选项进行分词,以得到词序列;Segmenting the candidate items to obtain a word sequence;

根据长短期记忆网络模型,确定所述词序列的第一得分;Determining a first score of the word sequence according to a long short-term memory network model;

根据多元文法模型,确定所述候选项的第二得分;determining a second score for the candidate item according to the multivariate grammatical model;

根据所述第一得分和所述第二得分,确定所述候选项的目标得分。A target score for the candidate item is determined according to the first score and the second score.

在一个可选的实现方式中,所述确定所述输入串对应的组合候选项,包括:In an optional implementation, determining the combination candidate items corresponding to the input string includes:

若所述输入串不位于预设组词拼音串列表中,则确定所述输入串对应的组合候选项;其中,所述预设组词输入串列表中存储的输入串对应的候选项在预设语料库中的出现频率低于预设频率。If the input string is not in the preset word-forming pinyin string list, determine the combination candidate items corresponding to the input string; wherein the candidate items corresponding to the input string stored in the preset word-forming input string list have an appearance frequency in the preset corpus lower than the preset frequency.

与现有技术相比,本发明实施例包括以下优点:Compared with the prior art, the embodiments of the present invention have the following advantages:

本发明实施例在接收到用户的输入串之后,不仅确定该输入串对应的系统候选项,而且还确定该输入串对应的组合候选项,并对该系统候选项和该组合候选项进行展示。相比于仅仅展示该输入串对应的系统候选项,本发明实施例还展示该输入串对应的组合候选项,从而可以提高展示的候选项中包括用户所需候选项的可能性,进而可以提高输入效率以及提高用户的输入体验。After receiving the user's input string, the embodiment of the present invention not only determines the system candidate corresponding to the input string, but also determines the combination candidate corresponding to the input string, and displays the system candidate and the combination candidate. Compared with only displaying the system candidate corresponding to the input string, the embodiment of the present invention also displays the combination candidate corresponding to the input string, thereby increasing the possibility that the displayed candidate includes the candidate required by the user, thereby improving the input efficiency and improving the user's input experience.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是本发明的一种输入方法实施例的步骤流程图;FIG1 is a flow chart of steps of an input method embodiment of the present invention;

图2是本发明的一种输入方法实施例的步骤流程图;FIG2 is a flow chart of steps of an input method embodiment of the present invention;

图3是本发明的一种输入装置实施例的结构框图;FIG3 is a structural block diagram of an input device embodiment of the present invention;

图4是本发明的一种用于输入的装置的结构示意图;FIG4 is a schematic diagram of the structure of a device for inputting according to the present invention;

图5是本发明的一些实施例中服务器的结构框图。FIG. 5 is a structural block diagram of a server in some embodiments of the present invention.

具体实施方式DETAILED DESCRIPTION

为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

参照图1,示出了本发明的一种输入方法实施例的步骤流程图,具体可以包括如下步骤:1, a flow chart of an input method embodiment of the present invention is shown, which may specifically include the following steps:

在步骤S101中,接收用户的输入串;In step S101, receiving a user input string;

本发明实施例可以应用于各种输入方式的输入法程序,例如,拼音输入、五笔输入、英文输入、笔画输入、手写输入和语音输入等。用户可以通过上述任意一种输入方式完成输入串的输入,也即,用户可以通过实体键盘、虚拟键盘、手写板、触摸屏、或声音采集设备等进行输入。其中,输入串可以是由数字、符号、拼音以及英文字母等中任一项或多项构成的。The embodiments of the present invention can be applied to input method programs of various input modes, such as pinyin input, Wubi input, English input, stroke input, handwriting input, and voice input. A user can input an input string through any of the above input modes, that is, a user can input through a physical keyboard, a virtual keyboard, a handwriting board, a touch screen, or a sound collection device. The input string can be composed of any one or more of numbers, symbols, pinyin, and English letters.

为了便于描述,本发明实施例以拼音串作为输入串进行说明,其它类型的输入串相互参照即可。For ease of description, the embodiment of the present invention is described using a pinyin string as an input string, and other types of input strings can be referenced to each other.

在步骤S102中,确定该输入串对应的系统候选项;In step S102, the system candidate corresponding to the input string is determined;

本发明实施例中,可以依据上述输入串,在词库中进行查找,以得到所对应的系统候选项。其中,上述词库可以包括:本地词库、或者云词库等。当然,本发明实施例对于上述词库的具体存储位置不加以限制。In the embodiment of the present invention, the input string can be searched in the word library to obtain the corresponding system candidate item. The word library can include: a local word library, a cloud word library, etc. Of course, the embodiment of the present invention does not limit the specific storage location of the word library.

在一个可选的实现方式中,本地词库可以记录有输入串与词条之间的对应关系,因此,在本步骤中,可以在该对应关系中查找与该输入串相对应的系统候选项。In an optional implementation, the local word library may record the correspondence between the input string and the word entry. Therefore, in this step, the system candidate item corresponding to the input string may be searched in the correspondence.

在步骤S103中,确定该输入串对应的组合候选项;In step S103, the combination candidate items corresponding to the input string are determined;

在具体应用中,为了使得输入法程序能够向用户展示更加合理以及符合用户需求的组合候选项,输入法程序可以根据n-gram(n元)模型对该输入串进行智能组词,得到多个组合候选项,并按照组词路径对多个组合候选项排序,从中确定组词路径最优的组合候选项,并作为该输入串对应的组合候选项。In specific applications, in order to enable the input method program to display more reasonable and user-friendly combination candidates to users, the input method program can intelligently group words for the input string according to the n-gram model to obtain multiple combination candidates, and sort the multiple combination candidates according to the grouping path, thereby determining the combination candidate with the optimal grouping path and using it as the combination candidate corresponding to the input string.

其中,本发明实施例可以获取该输入串对应的组合候选项中组词路径排序前N(N为自然数)位的组合候选项。在实际应用中,本发明实施例对于N的具体取值不加以限制,本发明实施例以N=4为例。The embodiment of the present invention can obtain the combination candidates corresponding to the input string in the first N (N is a natural number) word path order. In practical applications, the embodiment of the present invention does not limit the specific value of N, and the embodiment of the present invention takes N=4 as an example.

例如,假设输入串为“feijizhengzaihuaxing”,输入法程序按照音节切分该输入串,可以得到如下拼音串“feiji”、“zhengzai”以及“huaxing”,由于词库通常存储的是较短的基础候选项,不存在该拼音串对应的长候选项,因此输入法程序需要根据n-gram模型对输入串“feijizhengzaihuaxing”进行智能组词。For example, assuming the input string is "feijizhengzaihuaxing", the input method program segments the input string according to syllables, and can obtain the following pinyin strings "feiji", "zhengzai" and "huaxing". Since the vocabulary usually stores shorter basic candidates, there is no long candidate corresponding to the pinyin string. Therefore, the input method program needs to intelligently group the input string "feijizhengzaihuaxing" according to the n-gram model.

具体地,通过查询词库,可以得到音节“feiji”对应的候选项包括“飞机”、“斐济”以及“肥鸡”等;音节“zhengzai”对应的候选项包括“正在”等;音节“huaxing”对应的候选项包括“滑行”、“华星”以及“花型”等。Specifically, by querying the vocabulary, we can get that the candidate items corresponding to the syllable "feiji" include "airplane", "Fiji" and "fat chicken" etc.; the candidate items corresponding to the syllable "zhengzai" include "being" etc.; the candidate items corresponding to the syllable "huaxing" include "gliding", "Huaxing" and "flower shape" etc.

n-gram模型根据候选项之间的二元关系或者多元关系,确定组词路径较优的组合候选项,例如包括:“飞机正在华星”、“飞机正在滑行”、“飞机正在花型”以及“飞机正在华兴”等。The n-gram model determines the combination candidates with better word combination paths based on the binary or polynomial relationships between the candidates, for example: "the plane is in Huaxing", "the plane is taxiing", "the plane is forming a pattern" and "the plane is in Huaxing".

在步骤S104中,对系统候选项和组合候选项进行展示。In step S104, the system candidates and the combination candidates are displayed.

综上,本发明实施例的输入方法,当接收到用户的输入串之后,不仅确定该输入串对应的系统候选项,而且还确定该输入串对应的组合候选项,并对该系统候选项和该组合候选项进行展示。相比于仅仅展示该输入串对应的系统候选项,本发明实施例还展示该输入串对应的组合候选项,从而可以提高展示的候选项中包括用户所需候选项的可能性,进而可以提高输入效率以及提高用户的输入体验。In summary, the input method of the embodiment of the present invention, after receiving the user's input string, not only determines the system candidate corresponding to the input string, but also determines the combination candidate corresponding to the input string, and displays the system candidate and the combination candidate. Compared with only displaying the system candidate corresponding to the input string, the embodiment of the present invention also displays the combination candidate corresponding to the input string, thereby increasing the possibility that the displayed candidate includes the candidate required by the user, thereby improving the input efficiency and improving the user's input experience.

传统技术中,如果存在输入串对应的系统候选项,则习惯性采用的做法为:不会通过组词确定该输入串对应的组合候选项,而本发明实施例在存在输入串对应的系统候选项的情况下,还可以确定该输入串对应的组合候选项,以提高展示的候选项中包括用户所需候选项的可能性。In conventional technology, if there are system candidates corresponding to an input string, the customary practice is to not determine the combination candidates corresponding to the input string by grouping words. However, in an embodiment of the present invention, when there are system candidates corresponding to an input string, the combination candidates corresponding to the input string can also be determined, so as to increase the possibility that the displayed candidates include the candidates required by the user.

在本发明的一种可选实施例中,在确定出该输入串对应的系统候选项之后,判断确定出的系统候选项的数量是否小于预设数量,如果小于预设数量,则确定该输入串对应的组合候选项,并在展示确定出的系统候选项时,还需要展示确定出的组合候选项,以使展示的、根据该输入串确定出的候选项的数量能够达到预设数量,进而使得在屏幕上首次展示该输入串对应的候选项包括用户需要输入的候选项,避免多次上屏输入,提高输入效率和用户的输入体验。In an optional embodiment of the present invention, after determining the system candidates corresponding to the input string, it is determined whether the number of determined system candidates is less than a preset number. If it is less than the preset number, the combination candidates corresponding to the input string are determined, and when displaying the determined system candidates, it is also necessary to display the determined combination candidates so that the number of displayed candidates determined based on the input string can reach the preset number, thereby making the candidates corresponding to the input string displayed on the screen for the first time include the candidates that the user needs to input, avoiding multiple on-screen inputs, and improving input efficiency and user input experience.

在本发明另一实施例中,参见图2,步骤S104可以通过如下流程实现,包括:In another embodiment of the present invention, referring to FIG. 2 , step S104 may be implemented by the following process, including:

在步骤S201中,对于系统候选项和组合候选项中的候选项,根据长短期记忆网络模型获取该候选项的目标得分;In step S201, for a candidate item in the system candidate item and the combined candidate item, a target score of the candidate item is obtained according to the long short-term memory network model;

在一个可选的实现方式中,本步骤可以通过如下流程实现,包括:In an optional implementation, this step may be implemented through the following process, including:

11)、对该候选项进行分词,以得到词序列;11) Segment the candidate item to obtain a word sequence;

例如,输入串为“feijizhengzaihuaxing”,假设输入法程序根据n-gram模型对输入串“feijizhengzaihuaxing”智能组词,得到的组合候选项包括4个,分别为“飞机正在华星”、“飞机正在滑行”、“飞机正在花型”以及“飞机正在华兴”。For example, the input string is "feijizhengzaihuaxing". Assume that the input method program intelligently combines words for the input string "feijizhengzaihuaxing" according to the n-gram model. The resulting combination candidates include 4, namely "the plane is in Huaxing", "the plane is taxiing", "the plane is in the shape of a flower" and "the plane is in Huaxing".

在本步骤中,假设该候选项为“飞机正在华星”,则对该候选项“飞机正在华星”分词,得到“飞机|正在|华星”;假设该候选项为“飞机正在滑行”,对该候选项“飞机正在滑行”分词,得到“飞机|正在|滑行”;假设该候选项为“飞机正在花型”,对该候选项“飞机正在花型”分词,得到“飞机|正在|花型”;假设该候选项为“飞机正在华兴”,对该候选项“飞机正在华兴”分词,得到“飞机|正在|华兴”。In this step, assuming that the candidate item is "the plane is at Huaxing", the candidate item "the plane is at Huaxing" is segmented to obtain "the plane|is|at Huaxing"; assuming that the candidate item is "the plane is taxiing", the candidate item "the plane is taxiing" is segmented to obtain "the plane|is|taxiing"; assuming that the candidate item is "the plane is in Huaxing", the candidate item "the plane is in Huaxing" is segmented to obtain "the plane|is|in Huaxing"; assuming that the candidate item is "the plane is in Huaxing", the candidate item "the plane is in Huaxing" is segmented to obtain "the plane|is|in Huaxing".

12)、根据长短期记忆网络模型,确定词序列中的词对应的预测词、以及预测词的概率值;12) According to the long short-term memory network model, determine the predicted word corresponding to the word in the word sequence and the probability value of the predicted word;

13)、对根据词序列中的词、词对应的预测词,以及预测词的概率值,确定该候选项的得分。13) Determine the score of the candidate item based on the words in the word sequence, the predicted words corresponding to the words, and the probability value of the predicted words.

在一个候选项中的相邻的词中,LSTM(Long Short Term Memory,长短期记忆网络)模型可以根据前面的词,预测后面的词出现的概率值,并且根据该概率值计算该候选项的目标得分。Among the adjacent words in a candidate item, the LSTM (Long Short Term Memory) model can predict the probability value of the following word based on the previous word, and calculate the target score of the candidate item based on the probability value.

例如,对于词序列“飞机|正在|滑行”,可以将“飞机”、“正在”、“滑行”依次输入LSTM模型,LSTM模型可以确定每个词对应的预测词,以及预测词的概率值。For example, for the word sequence "plane|is|taxiing", "plane", "is", and "taxiing" can be input into the LSTM model in sequence, and the LSTM model can determine the predicted word corresponding to each word and the probability value of the predicted word.

其中,预测词为某个词之后可能出现的下一个词,如“飞机”对应的预测词可以包括“正在”、“起飞”、“设计”等,且每个预测词可能出现的概率不同。The predicted word is the next word that may appear after a certain word. For example, the predicted words corresponding to "airplane" may include "being", "taking off", "designing", etc., and the probability of each predicted word appearing is different.

LSTM模型首先计算“飞机”对应的预测词为“正在”的概率值,也即计算“飞机”之后出现“正在”的概率值,并且对该概率值取对数可以得到预测词“正在”对应的得分。The LSTM model first calculates the probability value of the predicted word corresponding to "plane" being "being", that is, it calculates the probability value of "being" appearing after "plane", and takes the logarithm of the probability value to obtain the score corresponding to the predicted word "being".

然后,再计算“正在”对应的预测词为“滑行”的概率值,也即计算“正在”之后出现“滑行”的概率值,并且对该概率值取对数可以得到预测词“滑行”对应的得分。Then, the probability value of the predicted word "sliding" corresponding to "being" is calculated, that is, the probability value of "sliding" appearing after "being" is calculated, and the score corresponding to the predicted word "sliding" can be obtained by taking the logarithm of the probability value.

最后,对所有预测词的得分进行求和,可以得到整个词序列“飞机|正在|滑行”的得分,如对“正在”和“滑行”对应的得分进行求和即可得到整个词序列“飞机|正在|滑行”的得分,进而作为候选项“飞机正在滑行”的目标得分。Finally, by summing up the scores of all predicted words, we can get the score of the entire word sequence "plane|is|taxiing". For example, by summing up the scores corresponding to "is" and "taxiing", we can get the score of the entire word sequence "plane|is|taxiing", which can then be used as the target score for the candidate "plane is taxiing".

在另一个可选的实现方式中,步骤13)可以通过如下流程实现,包括:In another optional implementation, step 13) may be implemented by the following process, including:

21)、对该候选项进行分词,以得到词序列;21) Segment the candidate item to obtain a word sequence;

例如,输入串为“yiyangde”,假设,输入法程序根据n-gram模型对输入串“yiyangde”智能组词,得到的组合候选项包括4个,分别为“一样的”、“异样的”、“一样得”、“益阳的”。For example, the input string is "yiyangde". Assume that the input method program intelligently combines words for the input string "yiyangde" according to the n-gram model, and the obtained combination candidates include 4, namely "same", "different", "same", and "Yiyang".

在本步骤中,假设该候选项为“一样的”,则对该候选项“一样的”分词,得到“一样|的”;假设该候选项为“异样的”,对该候选项“异样的”分词,得到“异样|的”;假设该候选项为“一样得”,对该候选项“一样得”分词,得到“一样|得”;假设该候选项为“益阳的”,对该候选项“益阳的”分词,得到“益阳|的”。In this step, assuming that the candidate item is "same", the word segmentation of the candidate item "same" is obtained to obtain "same|of"; assuming that the candidate item is "different", the word segmentation of the candidate item "different" is obtained to obtain "different|of"; assuming that the candidate item is "same as", the word segmentation of the candidate item "same as" is obtained to obtain "same|of"; assuming that the candidate item is "Yiyang's", the word segmentation of the candidate item "Yiyang's" is obtained to obtain "Yiyang|of".

22)、根据长短期记忆网络模型,确定该候选项的第一得分;22) Determine the first score of the candidate item according to the long short-term memory network model;

23)、根据多元文法模型,确定该候选项的第二得分;23) Determine a second score of the candidate item according to the multivariate grammar model;

24)、根据第一得分和第二得分,确定该候选项的目标得分。24) Determine a target score for the candidate item based on the first score and the second score.

可选地,本发明实施例可以根据第一得分和第二得分,通过如下公式计算该候选项的目标得分com_score:Optionally, the embodiment of the present invention may calculate the target score com_score of the candidate item according to the first score and the second score by the following formula:

com_score=w1×lstm_score+w2×ngram_score;com_score=w1×lstm_score+w2×ngram_score;

在上述公式中,w1为LSTM模型中的第一预设权重,w2为n-gram模型中的第二预设权重,lstm_score为第一得分,ngram_score为第二得分。In the above formula, w1 is the first preset weight in the LSTM model, w2 is the second preset weight in the n-gram model, lstm_score is the first score, and ngram_score is the second score.

可以理解,在实际应用中,本领域技术人员可以根据实际情况灵活设置w1和w2的具体数值,本发明实施例对于w1和w2的具体取值不加以限制。It can be understood that in practical applications, those skilled in the art can flexibly set the specific values of w1 and w2 according to actual conditions, and the embodiments of the present invention do not limit the specific values of w1 and w2.

在步骤S202中,在系统候选项和组合候选项中,选择目标得分最高的预设数量个候选项;In step S202, a preset number of candidates with the highest target scores are selected from the system candidates and the combined candidates;

其中,可以将在系统候选项和组合候选项中的候选项按照目标得分由高至低的顺序排序,然后选择前预设数量个候选项。Among them, the candidates in the system candidates and the combined candidates can be sorted in descending order according to the target scores, and then the first preset number of candidates are selected.

在步骤S203中,展示选择的候选项。In step S203, the selected candidate items are displayed.

其中,在展示选择的候选项时,按照目标得分由高至低的顺序,展示选择的候选项,例如,按照目标得分由高至低的顺序,在屏幕上从左到右排列展示选择的候选项。When displaying the selected candidates, the selected candidates are displayed in descending order of the target scores. For example, the selected candidates are displayed in descending order of the target scores from left to right on the screen.

在本发明实施例中,当一个输入串对应的候选项在预设语料库中出现的频率低于预设频率时,则说明该输入串对应的候选项很少被使用,这可以表明:该输入串对应的候选项的质量较低。In an embodiment of the present invention, when the frequency of occurrence of a candidate item corresponding to an input string in a preset corpus is lower than a preset frequency, it means that the candidate item corresponding to the input string is rarely used, which may indicate that the quality of the candidate item corresponding to the input string is low.

因此,在该输入串位于预设组词输入串列表中的情况下还确定该输入串对应的组合候选项,则在展示该组合候选项之后用户不选择该组合候选项的可能性较大,从而会耗费系统资源。Therefore, when the input string is in the preset word combination input string list and the combination candidate corresponding to the input string is determined, it is highly likely that the user will not select the combination candidate after the combination candidate is displayed, thereby wasting system resources.

所以,为了节省系统资源,在本发明一个实施例中,在步骤S102之后,需要判断该输入串是否位于预设组词输入串列表中,其中,在预设组词输入串列表中存储的输入串对应的候选项在预设语料库中的出现频率低于预设频率。Therefore, in order to save system resources, in one embodiment of the present invention, after step S102, it is necessary to determine whether the input string is located in a preset word-forming input string list, wherein the candidate items corresponding to the input string stored in the preset word-forming input string list have an appearance frequency in the preset corpus that is lower than the preset frequency.

若该输入串不位于预设组词输入串列表中,则确定该输入串对应的组合候选项。若该输入串位于预设组词输入串列表中,则可以不确定该输入串对应的组合候选项,可以直接显示确定出的系统候选项。If the input string is not in the preset word group input string list, the combination candidate corresponding to the input string is determined. If the input string is in the preset word group input string list, the combination candidate corresponding to the input string may not be determined, and the determined system candidate may be directly displayed.

需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

参照图3,示出了本发明一种输入装置实施例的结构框图,该装置具体可以包括如下模块:3, a structural block diagram of an input device embodiment of the present invention is shown, and the device may specifically include the following modules:

接收模块11,用于接收用户的输入串;The receiving module 11 is used to receive a user input string;

第一确定模块12,用于确定所述输入串对应的系统候选项;A first determination module 12, used to determine the system candidate corresponding to the input string;

第二确定模块13,用于确定所述输入串对应的组合候选项;A second determination module 13, used to determine the combination candidate items corresponding to the input string;

展示模块14,用于对所述系统候选项和所述组合候选项进行展示。The display module 14 is used to display the system candidate items and the combination candidate items.

在一个可选的实现方式中,所述第二确定模块13具体用于:若所述系统候选项的数量小于预设数量,则确定所述输入串对应的组合候选项。In an optional implementation, the second determination module 13 is specifically configured to: if the number of the system candidate items is less than a preset number, determine the combination candidate items corresponding to the input string.

在一个可选的实现方式中,所述展示模块包括:In an optional implementation, the display module includes:

获取单元,用于对于所述系统候选项和所述组合候选项中的候选项,根据长短期记忆网络模型分别获取所述候选项的目标得分;an acquisition unit, configured to acquire target scores of the system candidate items and the candidate items in the combined candidate items respectively according to a long short-term memory network model;

选择单元,用于在所述系统候选项和所述组合候选项中,选择目标得分最高的预设数量个候选项;A selection unit, configured to select a preset number of candidates with the highest target scores from among the system candidates and the combined candidates;

展示单元,用于展示选择的候选项。Display unit, used to display selected candidates.

在一个可选的实现方式中,所述展示单元具体用于:按照目标得分由高至低的顺序,展示选择的候选项。In an optional implementation, the display unit is specifically configured to display the selected candidate items in descending order of target scores.

在一个可选的实现方式中,所述获取单元包括:In an optional implementation, the acquiring unit includes:

第一分词子单元,用于对所述候选项进行分词,以得到词序列;A first word segmentation subunit, used for segmenting the candidate items to obtain a word sequence;

第一确定子单元,用于根据所述长短期记忆网络模型,确定所述词序列中的词对应的预测词、以及所述预测词的概率值;A first determination subunit, configured to determine, according to the long short-term memory network model, a predicted word corresponding to a word in the word sequence and a probability value of the predicted word;

第二确定子单元,用于根据所述词序列中的词、所述词对应的预测词,以及所述预测词的概率值,确定所述候选项的目标得分。The second determination subunit is used to determine the target score of the candidate item according to the words in the word sequence, the predicted words corresponding to the words, and the probability value of the predicted words.

在一个可选的实现方式中,所述获取单元包括:In an optional implementation, the acquiring unit includes:

第二分词子单元,用于对所述候选项进行分词,以得到词序列;A second word segmentation subunit is used to segment the candidate items to obtain a word sequence;

第三确定子单元,用于根据长短期记忆网络模型,确定所述词序列的第一得分;A third determination subunit is used to determine a first score of the word sequence according to a long short-term memory network model;

第四确定子单元,用于根据多元文法模型,确定所述候选项的第二得分;a fourth determination subunit, configured to determine a second score of the candidate item according to the multivariate grammar model;

第五确定子单元,用于根据所述第一得分和所述第二得分,确定所述候选项的目标得分。The fifth determining subunit is configured to determine a target score for the candidate item according to the first score and the second score.

在一个可选的实现方式中,所述第二确定模块具体用于:若所述输入串不位于预设组词拼音串列表中,则确定所述输入串对应的组合候选项;其中,所述预设组词输入串列表中存储的输入串在预设语料库中的出现频率低于预设频率。In an optional implementation, the second determination module is specifically used to: if the input string is not in the preset word-forming pinyin string list, determine the combination candidate corresponding to the input string; wherein the input string stored in the preset word-forming input string list has an occurrence frequency in a preset corpus lower than a preset frequency.

在一个可选的实现方式中,所述第二确定模块13具体用于:若所述输入串不位于预设组词拼音串列表中,则确定所述输入串对应的组合候选项;其中,所述预设组词输入串列表中存储的输入串在预设语料库中的出现频率低于预设频率。In an optional implementation, the second determination module 13 is specifically used to: if the input string is not in the preset word-forming pinyin string list, determine the combination candidate corresponding to the input string; wherein the input string stored in the preset word-forming input string list has an occurrence frequency in the preset corpus lower than a preset frequency.

综上,通过本发明实施例,当接收到用户的输入串之后,不仅确定该输入串对应的系统候选项,而且还确定该输入串对应的组合候选项,并对该系统候选项和该组合候选项进行展示。相比于仅仅展示该输入串对应的系统候选项,本发明实施例还展示该输入串对应的组合候选项,从而可以提高展示的候选项中包括用户所需候选项的可能性,进而可以提高输入效率以及提高用户的输入体验。In summary, through the embodiment of the present invention, after receiving the user's input string, not only the system candidate corresponding to the input string is determined, but also the combination candidate corresponding to the input string is determined, and the system candidate and the combination candidate are displayed. Compared with only displaying the system candidate corresponding to the input string, the embodiment of the present invention also displays the combination candidate corresponding to the input string, thereby increasing the possibility that the displayed candidate includes the candidate required by the user, thereby improving the input efficiency and improving the user's input experience.

对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

本发明实施例还示出了一种用于输入的装置,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:The embodiment of the present invention also shows a device for input, including a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

接收用户的输入串;Receive the user's input string;

确定所述输入串对应的系统候选项;Determine system candidates corresponding to the input string;

确定所述输入串对应的组合候选项;Determine combination candidates corresponding to the input string;

对所述系统候选项和所述组合候选项进行展示。The system candidates and the combination candidates are displayed.

在一个可选的实现方式中,所述确定所述输入串对应的组合候选项,包括:In an optional implementation, determining the combination candidate items corresponding to the input string includes:

若所述系统候选项的数量小于预设数量,则确定所述输入串对应的组合候选项。If the number of the system candidate items is less than the preset number, the combination candidate items corresponding to the input string are determined.

在一个可选的实现方式中,所述对所述系统候选项和所述组合候选项进行展示,包括:In an optional implementation, the presenting of the system candidate items and the combination candidate items includes:

对于所述系统候选项和所述组合候选项中的候选项,根据长短期记忆网络模型分别获取所述候选项的目标得分;For the system candidates and the candidate items in the combined candidates, respectively obtaining target scores of the candidate items according to a long short-term memory network model;

在所述系统候选项和所述组合候选项中,选择目标得分最高的预设数量个候选项;Selecting a preset number of candidates with the highest target scores from among the system candidates and the combined candidates;

展示选择的候选项。Displays the selected candidates.

在一个可选的实现方式中,所述展示所述选择的候选项,包括:In an optional implementation, presenting the selected candidate items includes:

按照目标得分由高至低的顺序,展示选择的候选项。The selected candidates are displayed in descending order of target scores.

在一个可选的实现方式中,所述根据长短期记忆网络模型分别获取所述候选项的目标得分,包括:In an optional implementation, obtaining the target scores of the candidate items respectively according to the long short-term memory network model includes:

对所述候选项进行分词,以得到词序列;Segmenting the candidate items to obtain a word sequence;

根据所述长短期记忆网络模型,确定所述词序列中的词对应的预测词、以及所述预测词的概率值;Determining, according to the long short-term memory network model, predicted words corresponding to the words in the word sequence and probability values of the predicted words;

根据所述词序列中的词、所述词对应的预测词,以及所述预测词的概率值,确定所述候选项的目标得分。A target score for the candidate item is determined based on the words in the word sequence, the predicted words corresponding to the words, and the probability values of the predicted words.

在一个可选的实现方式中,所述根据长短期记忆网络模型分别获取所述候选项的目标得分,包括:In an optional implementation, obtaining the target scores of the candidate items respectively according to the long short-term memory network model includes:

对所述候选项进行分词,以得到词序列;Segmenting the candidate items to obtain a word sequence;

根据长短期记忆网络模型,确定所述词序列的第一得分;Determining a first score of the word sequence according to a long short-term memory network model;

根据多元文法模型,确定所述候选项的第二得分;determining a second score for the candidate item according to the multivariate grammatical model;

根据所述第一得分和所述第二得分,确定所述候选项的目标得分。A target score for the candidate item is determined according to the first score and the second score.

在一个可选的实现方式中,所述确定所述输入串对应的组合候选项,包括:In an optional implementation, determining the combination candidate items corresponding to the input string includes:

若所述输入串不位于预设组词拼音串列表中,则确定所述输入串对应的组合候选项;其中,所述预设组词输入串列表中存储的输入串对应的候选项在预设语料库中的出现频率低于预设频率。If the input string is not in the preset word-forming pinyin string list, determine the combination candidate items corresponding to the input string; wherein the candidate items corresponding to the input string stored in the preset word-forming input string list have an appearance frequency in the preset corpus lower than the preset frequency.

综上,本发明实施例的输入装置,当接收到用户的输入串之后,不仅确定该输入串对应的系统候选项,而且还确定该输入串对应的组合候选项,并对该系统候选项和该组合候选项进行展示。相比于仅仅展示该输入串对应的系统候选项,本发明实施例还展示该输入串对应的组合候选项,从而可以提高展示的候选项中包括用户所需候选项的可能性,进而可以提高输入效率以及提高用户的输入体验。In summary, the input device of the embodiment of the present invention, after receiving the input string of the user, not only determines the system candidate corresponding to the input string, but also determines the combination candidate corresponding to the input string, and displays the system candidate and the combination candidate. Compared with only displaying the system candidate corresponding to the input string, the embodiment of the present invention also displays the combination candidate corresponding to the input string, thereby increasing the possibility that the displayed candidate includes the candidate required by the user, thereby improving the input efficiency and improving the user's input experience.

本发明实施例还提供了一种用于输入的装置,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:The embodiment of the present invention further provides a device for input, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations:

接收用户的输入串;Receive the user's input string;

确定所述输入串对应的系统候选项;Determine system candidates corresponding to the input string;

确定所述输入串对应的组合候选项;Determine combination candidates corresponding to the input string;

对所述系统候选项和所述组合候选项进行展示。The system candidates and the combination candidates are displayed.

图4是根据一示例性实施例示出的一种用于输入的装置800的框图。例如,装置800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 4 is a block diagram of an apparatus 800 for input according to an exemplary embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

参照图4,装置800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。4 , the device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input/output (I/O) interface 812 , a sensor component 814 , and a communication component 816 .

处理组件802通常控制装置800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理元件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

存储器804被配置为存储各种类型的数据以支持在设备800的操作。这些数据的示例包括用于在装置800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

电源组件806为装置800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为装置800生成、管理和分配电力相关联的组件。The power supply component 806 provides power to the various components of the device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.

多媒体组件808包括在所述装置800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当装置800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。I/O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

传感器组件814包括一个或多个传感器,用于为装置800提供各个方面的状态评估。例如,传感器组件814可以检测到设备800的打开/关闭状态,组件的相对定位,例如所述组件为装置800的显示器和小键盘,传感器组件814还可以检测装置800或装置800一个组件的位置改变,用户与装置800接触的存在或不存在,装置800方位或加速/减速和装置800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the device 800. For example, the sensor assembly 814 can detect the open/closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor assembly 814 can also detect the position change of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and the temperature change of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

通信组件816被配置为便于装置800和其他设备之间有线或无线方式的通信。装置800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, the apparatus 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由装置800的处理器820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

一种非临时性计算机可读存储介质,当所述存储介质中的指令由装置(终端或服务器)的处理器执行时,使得装置能够执行本发明前述方法实施例所示的输入方法。A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a device (terminal or server), enables the device to execute the input method shown in the aforementioned method embodiment of the present invention.

图5是本发明的一些实施例中服务器的结构示意图。该服务器1900可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(central processingunits,CPU)1922(例如,一个或一个以上处理器)和存储器1932,一个或一个以上存储应用程序1942或数据1944的存储介质1930(例如一个或一个以上海量存储设备)。其中,存储器1932和存储介质1930可以是短暂存储或持久存储。存储在存储介质1930的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对服务器中的一系列指令操作。更进一步地,中央处理器1922可以设置为与存储介质1930通信,在服务器1900上执行存储介质1930中的一系列指令操作。FIG5 is a schematic diagram of the structure of a server in some embodiments of the present invention. The server 1900 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1922 (e.g., one or more processors) and memory 1932, and one or more storage media 1930 (e.g., one or more mass storage devices) storing application programs 1942 or data 1944. Among them, the memory 1932 and the storage medium 1930 may be short-term storage or permanent storage. The program stored in the storage medium 1930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 1922 may be configured to communicate with the storage medium 1930 and execute a series of instruction operations in the storage medium 1930 on the server 1900.

服务器1900还可以包括一个或一个以上电源1926,一个或一个以上有线或无线网络接口1950,一个或一个以上输入输出接口1958,一个或一个以上键盘1956,和/或,一个或一个以上操作系统1941,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input and output interfaces 1958, one or more keyboards 1956, and/or, one or more operating systems 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

本领域内的技术人员应明白,本发明实施例的实施例可提供为方法、装置、或计算机程序产品。因此,本发明实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that the embodiments of the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

本发明实施例是参照根据本发明实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The embodiments of the present invention are described with reference to the flowcharts and/or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and/or box in the flowchart and/or block diagram, as well as the combination of the processes and/or boxes in the flowchart and/or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate a device for implementing the functions specified in one process or multiple processes in the flowchart and/or one box or multiple boxes in the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce computer-implemented processing, so that the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

尽管已描述了本发明实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明实施例范围的所有变更和修改。Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

以上对本发明所提供的一种输入方法、装置和用于输入的装置,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The above is a detailed introduction to an input method, device and device for input provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for a person skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims (13)

Translated fromChinese
1.一种输入方法,其特征在于,所述方法包括:1. An input method, characterized in that the method comprises:接收用户的输入串;Receive the user's input string;确定所述输入串对应的系统候选项;Determine system candidates corresponding to the input string;确定所述输入串对应的组合候选项;Determine combination candidates corresponding to the input string;对所述系统候选项和所述组合候选项进行展示;Displaying the system candidates and the combination candidates;所述对所述系统候选项和所述组合候选项进行展示,包括:The displaying of the system candidate items and the combination candidate items includes:对于所述系统候选项和所述组合候选项中的候选项,根据长短期记忆网络模型分别获取所述候选项的目标得分;For the system candidates and the candidate items in the combined candidates, respectively obtaining target scores of the candidate items according to a long short-term memory network model;在所述系统候选项和所述组合候选项中,选择目标得分最高的预设数量个候选项;Selecting a preset number of candidates with the highest target scores from among the system candidates and the combined candidates;展示选择的候选项;Display selected candidates;所述根据长短期记忆网络模型分别获取所述候选项的目标得分,包括:The step of obtaining target scores of the candidate items respectively according to the long short-term memory network model includes:对所述候选项进行分词,以得到词序列;Segmenting the candidate items to obtain a word sequence;根据所述长短期记忆网络模型,确定所述词序列中的词对应的预测词、以及所述预测词的概率值,所述预测词指的是所述词序列中的词之后有概率出现的词;Determine, according to the long short-term memory network model, a predicted word corresponding to a word in the word sequence and a probability value of the predicted word, wherein the predicted word refers to a word that has a probability of appearing after the word in the word sequence;根据所述词序列中的词、所述词对应的预测词,以及所述预测词的概率值,确定所述候选项的目标得分。A target score for the candidate item is determined based on the words in the word sequence, the predicted words corresponding to the words, and the probability values of the predicted words.2.根据权利要求1所述的方法,其特征在于,所述确定所述输入串对应的组合候选项,包括:2. The method according to claim 1, characterized in that the step of determining the combination candidate items corresponding to the input string comprises:若所述系统候选项的数量小于预设数量,则确定所述输入串对应的组合候选项。If the number of the system candidate items is less than the preset number, the combination candidate items corresponding to the input string are determined.3.根据权利要求1所述的方法,其特征在于,所述展示所述选择的候选项,包括:3. The method according to claim 1, wherein displaying the selected candidate items comprises:按照目标得分由高至低的顺序,展示选择的候选项。The selected candidates are displayed in descending order of target scores.4.根据权利要求1所述的方法,其特征在于,所述确定所述输入串对应的组合候选项,包括:4. The method according to claim 1, wherein determining the combination candidate items corresponding to the input string comprises:若所述输入串不位于预设组词拼音串列表中,则确定所述输入串对应的组合候选项;其中,所述预设组词拼音串列表中存储的输入串对应的候选项在预设语料库中的出现频率低于预设频率。If the input string is not in the preset word-forming Pinyin string list, determine the combination candidate items corresponding to the input string; wherein the candidate items corresponding to the input string stored in the preset word-forming Pinyin string list have an appearance frequency in the preset corpus lower than the preset frequency.5.一种输入装置,其特征在于,所述装置包括:5. An input device, characterized in that the device comprises:接收模块,用于接收用户的输入串;A receiving module, used for receiving an input string from a user;第一确定模块,用于确定所述输入串对应的系统候选项;A first determination module, used to determine the system candidate corresponding to the input string;第二确定模块,用于确定所述输入串对应的组合候选项;A second determination module, used to determine the combination candidate items corresponding to the input string;展示模块,用于对所述系统候选项和所述组合候选项进行展示;A display module, used for displaying the system candidate items and the combination candidate items;所述展示模块包括:The display module comprises:获取单元,用于对于所述系统候选项和所述组合候选项中的候选项,根据长短期记忆网络模型分别获取所述候选项的目标得分;an acquisition unit, configured to acquire target scores of the system candidate items and the candidate items in the combined candidate items respectively according to a long short-term memory network model;选择单元,用于在所述系统候选项和所述组合候选项中,选择目标得分最高的预设数量个候选项;A selection unit, configured to select a preset number of candidates with the highest target scores from among the system candidates and the combined candidates;展示单元,用于展示选择的候选项;A display unit, used to display selected candidates;所述获取单元包括:The acquisition unit comprises:第一分词子单元,用于对所述候选项进行分词,以得到词序列;A first word segmentation subunit, used for segmenting the candidate items to obtain a word sequence;第一确定子单元,用于根据所述长短期记忆网络模型,确定所述词序列中的词对应的预测词、以及所述预测词的概率值,所述预测词指的是所述词序列中的词之后有概率出现的词;A first determination subunit is used to determine, according to the long short-term memory network model, a predicted word corresponding to a word in the word sequence and a probability value of the predicted word, wherein the predicted word refers to a word that has a probability of appearing after the word in the word sequence;第二确定子单元,用于根据所述词序列中的词、所述词对应的预测词,以及所述预测词的概率值,确定所述候选项的目标得分。The second determination subunit is used to determine the target score of the candidate item according to the words in the word sequence, the predicted words corresponding to the words, and the probability value of the predicted words.6.根据权利要求5所述的装置,其特征在于,所述第二确定模块具体用于:若所述系统候选项的数量小于预设数量,则确定所述输入串对应的组合候选项。6. The device according to claim 5 is characterized in that the second determination module is specifically used to: if the number of the system candidate items is less than a preset number, determine the combination candidate items corresponding to the input string.7.根据权利要求5所述的装置,其特征在于,所述展示单元具体用于:按照目标得分由高至低的顺序,展示选择的候选项。7. The device according to claim 5 is characterized in that the display unit is specifically used to: display the selected candidate items in descending order of target scores.8.根据权利要求5所述的装置,其特征在于,所述第二确定模块具体用于:若所述输入串不位于预设组词拼音串列表中,则确定所述输入串对应的组合候选项;其中,所述预设组词拼音串列表中存储的输入串对应的候选项在预设语料库中的出现频率低于预设频率。8. The device according to claim 5 is characterized in that the second determination module is specifically used to: if the input string is not in the preset word-forming Pinyin string list, determine the combination candidate items corresponding to the input string; wherein the candidate items corresponding to the input string stored in the preset word-forming Pinyin string list have an appearance frequency in the preset corpus lower than the preset frequency.9.一种用于输入的装置,其特征在于,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:9. A device for input, characterized in that it comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations:接收用户的输入串;Receive the user's input string;确定所述输入串对应的系统候选项;Determine system candidates corresponding to the input string;确定所述输入串对应的组合候选项;Determine combination candidates corresponding to the input string;对所述系统候选项和所述组合候选项进行展示;Displaying the system candidates and the combination candidates;所述对所述系统候选项和所述组合候选项进行展示,包括:The displaying of the system candidate items and the combination candidate items includes:对于所述系统候选项和所述组合候选项中的候选项,根据长短期记忆网络模型分别获取所述候选项的目标得分;For the system candidates and the candidate items in the combined candidates, respectively obtaining target scores of the candidate items according to a long short-term memory network model;在所述系统候选项和所述组合候选项中,选择目标得分最高的预设数量个候选项;Selecting a preset number of candidates with the highest target scores from among the system candidates and the combined candidates;展示选择的候选项;Display selected candidates;所述根据长短期记忆网络模型分别获取所述候选项的目标得分,包括:The step of obtaining target scores of the candidate items respectively according to the long short-term memory network model includes:对所述候选项进行分词,以得到词序列;Segmenting the candidate items to obtain a word sequence;根据所述长短期记忆网络模型,确定所述词序列中的词对应的预测词、以及所述预测词的概率值,所述预测词指的是所述词序列中的词之后有概率出现的词;Determine, according to the long short-term memory network model, a predicted word corresponding to a word in the word sequence and a probability value of the predicted word, wherein the predicted word refers to a word that has a probability of appearing after the word in the word sequence;根据所述词序列中的词、所述词对应的预测词,以及所述预测词的概率值,确定所述候选项的目标得分。A target score for the candidate item is determined based on the words in the word sequence, the predicted words corresponding to the words, and the probability values of the predicted words.10.根据权利要求9所述的装置,其特征在于,所述确定所述输入串对应的组合候选项,包括:10. The device according to claim 9, wherein determining the combination candidate corresponding to the input string comprises:若所述系统候选项的数量小于预设数量,则确定所述输入串对应的组合候选项。If the number of the system candidate items is less than the preset number, the combination candidate items corresponding to the input string are determined.11.根据权利要求9所述的装置,其特征在于,所述展示所述选择的候选项,包括:11. The device according to claim 9, wherein the displaying of the selected candidate items comprises:按照目标得分由高至低的顺序,展示选择的候选项。The selected candidates are displayed in descending order of target scores.12.根据权利要求9所述的装置,其特征在于,所述确定所述输入串对应的组合候选项,包括:12. The device according to claim 9, wherein determining the combination candidate corresponding to the input string comprises:若所述输入串不位于预设组词拼音串列表中,则确定所述输入串对应的组合候选项;其中,所述预设组词拼音串列表中存储的输入串对应的候选项在预设语料库中的出现频率低于预设频率。If the input string is not in the preset word-forming Pinyin string list, determine the combination candidate items corresponding to the input string; wherein the candidate items corresponding to the input string stored in the preset word-forming Pinyin string list have an appearance frequency in the preset corpus lower than the preset frequency.13.一种机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得装置执行如权利要求1至4中一个或多个所述的输入方法。13. A machine-readable medium having instructions stored thereon, which, when executed by one or more processors, cause an apparatus to perform an input method as claimed in one or more of claims 1 to 4.
CN201810360827.1A2018-04-202018-04-20Input method, device and device for inputtingActiveCN110389668B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201810360827.1ACN110389668B (en)2018-04-202018-04-20Input method, device and device for inputting

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201810360827.1ACN110389668B (en)2018-04-202018-04-20Input method, device and device for inputting

Publications (2)

Publication NumberPublication Date
CN110389668A CN110389668A (en)2019-10-29
CN110389668Btrue CN110389668B (en)2024-08-16

Family

ID=68283673

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201810360827.1AActiveCN110389668B (en)2018-04-202018-04-20Input method, device and device for inputting

Country Status (1)

CountryLink
CN (1)CN110389668B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN117009495A (en)*2022-10-122023-11-07腾讯科技(深圳)有限公司Input recommendation method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106774970A (en)*2015-11-242017-05-31北京搜狗科技发展有限公司The method and apparatus being ranked up to the candidate item of input method
CN107621891A (en)*2017-09-282018-01-23北京新美互通科技有限公司A kind of text entry method, device and electronic equipment
CN107870677A (en)*2016-09-232018-04-03北京搜狗科技发展有限公司A kind of input method, device and the device for input

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102722483B (en)*2011-03-292017-07-25百度在线网络技术(北京)有限公司For determining method, device and equipment that the candidate item of input method sorts
CA2809653C (en)*2012-03-162017-05-02Research In Motion LimitedIn-context word prediction and word correction
CN104571587B (en)*2014-12-302018-06-26北京奇虎科技有限公司The method and apparatus screened to the upper screen candidate item of input method
KR102450853B1 (en)*2015-11-302022-10-04삼성전자주식회사Apparatus and method for speech recognition
CN107291260B (en)*2016-04-132021-11-02北京搜狗科技发展有限公司Information input method and device for inputting information
CN107305438B (en)*2016-04-212023-03-24北京搜狗科技发展有限公司Method and device for sorting candidate items
CN107544684B (en)*2016-06-292021-11-02北京搜狗科技发展有限公司Candidate word display method and device
CN106569618B (en)*2016-10-192019-03-29武汉悦然心动网络科技股份有限公司Sliding input method and system based on Recognition with Recurrent Neural Network model

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106774970A (en)*2015-11-242017-05-31北京搜狗科技发展有限公司The method and apparatus being ranked up to the candidate item of input method
CN107870677A (en)*2016-09-232018-04-03北京搜狗科技发展有限公司A kind of input method, device and the device for input
CN107621891A (en)*2017-09-282018-01-23北京新美互通科技有限公司A kind of text entry method, device and electronic equipment

Also Published As

Publication numberPublication date
CN110389668A (en)2019-10-29

Similar Documents

PublicationPublication DateTitle
CN107608532B (en)Association input method and device and electronic equipment
CN110244860B (en)Input method and device and electronic equipment
CN105489220A (en)Method and device for recognizing speech
WO2019095682A1 (en)Candidate word prediction method and device
CN109388249B (en)Input information processing method and device, terminal and readable storage medium
CN107132927B (en)Input character recognition method and device for recognizing input characters
CN109725736B (en)Candidate sorting method and device and electronic equipment
CN111381685B (en) A sentence association method and device
CN113987128B (en) Related Articles Search Method, Device, Electronic Device and Storage Medium
CN108628461B (en)Input method and device and method and device for updating word stock
CN110221704A (en)A kind of input method, device and the device for input
CN112837668B (en)Voice processing method and device for processing voice
CN111198619A (en) Method and device for generating associative candidates
CN110389668B (en)Input method, device and device for inputting
CN110245358B (en)Machine translation method and related device
CN112306251A (en) An input method, device and device for input
WO2019196527A1 (en)Data processing method, apparatus and electronic device
CN111324214A (en)Statement error correction method and device
CN110781270B (en)Method and device for constructing non-keyword model in decoding network
CN112214114B (en)Input method and device and electronic equipment
CN109917927B (en) A candidate determination method and device
CN109558017B (en)Input method and device and electronic equipment
CN114967939B (en)Input method, device and medium
CN107015736B (en)Key processing method and device for key processing
CN113625885B (en)Input method, device and device for inputting

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
TG01Patent term adjustment
TG01Patent term adjustment

[8]ページ先頭

©2009-2025 Movatter.jp