CN110389668A - A kind of input method, device and the device for input - Google Patents

A kind of input method, device and the device for input Download PDF

Info

Publication number
CN110389668A
CN110389668A CN201810360827.1A CN201810360827A CN110389668A CN 110389668 A CN110389668 A CN 110389668A CN 201810360827 A CN201810360827 A CN 201810360827A CN 110389668 A CN110389668 A CN 110389668A
Authority
CN
China
Prior art keywords
candidate item
input string
word
input
score
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810360827.1A
Other languages
Chinese (zh)
Inventor
王丹
张扬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201810360827.1A priority Critical patent/CN110389668A/en
Publication of CN110389668A publication Critical patent/CN110389668A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • G06F3/0236Character input methods using selection techniques to select from displayed items

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

The embodiment of the invention provides a kind of input method, device and for the device of input, method therein is specifically included: receiving the input string of user;Determine the corresponding system candidate item of the input string;Determine the corresponding combination candidate item of the input string;The system candidate item and the combination candidate item are shown.A possibility that including candidate item needed for user can be improved in the candidate item of displaying in the embodiment of the present invention, and then input efficiency can be improved and improve the input experience of user.

Description

A kind of input method, device and the device for input
Technical field
The present invention relates to input method technique field more particularly to a kind of input method, device and for the device of input.
Background technique
For such as user of the language such as Chinese, Japanese, Korean, it is typically necessary through input method procedure and calculates Machine interacts.
Currently, user can pinyin string by a keyboard entry, dictionary then inquired by input method procedure and according to preset Standard Map rule the pinyin string is converted to candidate item and the displaying of corresponding language, and then will be in the candidate item of user's selection Screen.For example, it is assumed that user wants to input entry " abnormal ", the pinyin string that input method procedure obtains user is " yiyangde ", Input method procedure searches entry according to pinyin string " yiyangde " in dictionary, then shows the entry found.
In practical applications, due to being limited by dictionary size, high frequency entry is usually only stored in dictionary;Therefore, past It does not include the case where user wants the entry inputted into there are dictionary, in this case, user needs to wrap in the entry Word for word upper screen could complete input to the Chinese character contained, to reduce input efficiency, and reduce the input experience of user.
Summary of the invention
In order to solve the above technical problems, the embodiment of the present invention shows a kind of input method, device and the dress for input It sets.
In a first aspect, the embodiment of the present invention shows a kind of input method, which comprises
Receive the input string of user;
Determine the corresponding system candidate item of the input string;
Determine the corresponding combination candidate item of the input string;
The system candidate item and the combination candidate item are shown.
In an optional implementation, the corresponding combination candidate item of the determination input string, comprising:
If the quantity of the system candidate item is less than preset quantity, it is determined that the corresponding combination candidate item of the input string.
It is described that the system candidate item and the combination candidate item are shown in an optional implementation, Include:
For the candidate item in the system candidate item and the combination candidate item, according to shot and long term memory network model point The target score of the candidate item is not obtained;
In the system candidate item and the combination candidate item, the preset quantity of selection target highest scoring is candidate ?;
Show the candidate item of selection.
It is described to show the selected candidate item in an optional implementation, comprising:
According to the sequence of target score from high to low, the candidate item of selection is shown.
It is described that the candidate item is obtained according to shot and long term memory network model respectively in an optional implementation Target score, comprising:
The candidate item is segmented, to obtain word sequence;
According to the shot and long term memory network model, the corresponding prediction word of word in the word sequence and described is determined Predict the probability value of word;
According to the probability value of the corresponding prediction word of word, institute's predicate and the prediction word in the word sequence, institute is determined State the target score of candidate item.
It is described that the candidate item is obtained according to shot and long term memory network model respectively in an optional implementation Target score, comprising:
The candidate item is segmented, to obtain word sequence;
According to shot and long term memory network model, the first score of the word sequence is determined;
According to multi-component grammar model, the second score of the candidate item is determined;
According to first score and second score, the target score of the candidate item is determined.
In an optional implementation, the corresponding combination candidate item of the determination input string, comprising:
If the input string is not located in preset group word pinyin string list, it is determined that the corresponding combination of the input string is candidate ?;Wherein, appearance of the corresponding candidate item of input string stored in the preset group word input string list in default corpus Frequency is lower than predeterminated frequency.
Second aspect, the embodiment of the present invention show a kind of input unit, and described device includes:
Receiving module, for receiving the input string of user;
First determining module, for determining the corresponding system candidate item of the input string;
Second determining module, for determining the corresponding combination candidate item of the input string;
Display module, for being shown to the system candidate item and the combination candidate item.
In an optional implementation, second determining module is specifically used for: if the number of the system candidate item Amount is less than preset quantity, it is determined that the corresponding combination candidate item of the input string.
In an optional implementation, the display module includes:
Acquiring unit, for for the system candidate item and it is described combination candidate item in candidate item, according to shot and long term Memory network model obtains the target score of the candidate item respectively;
Selecting unit, in the system candidate item and the combination candidate item, selection target highest scoring it is pre- If quantity candidate item;
Display unit, for showing the candidate item of selection.
In an optional implementation, the display unit is specifically used for: according to target score from high to low suitable Sequence shows the candidate item of selection.
In an optional implementation, the acquiring unit includes:
First participle subelement, for being segmented to the candidate item, to obtain word sequence;
First determines subelement, for determining the word pair in the word sequence according to the shot and long term memory network model The probability value of the prediction word and the prediction word answered;
Second determines subelement, for according to the corresponding prediction word of word, institute's predicate in the word sequence and described pre- The probability value for surveying word, determines the target score of the candidate item.
In an optional implementation, the acquiring unit includes:
Second participle subelement, for being segmented to the candidate item, to obtain word sequence;
Third determines subelement, for determining the first score of the word sequence according to shot and long term memory network model;
4th determines subelement, for determining the second score of the candidate item according to multi-component grammar model;
5th determines subelement, for determining the mesh of the candidate item according to first score and second score Mark score.
In an optional implementation, second determining module is specifically used for: if the input string be not located at it is pre- If organizing in the list of word pinyin string, it is determined that the corresponding combination candidate item of the input string;Wherein, the preset group word inputs tandem The frequency of occurrences of the corresponding candidate item of the input string stored in table in default corpus is lower than predeterminated frequency.
The third aspect, the embodiment of the present invention show a kind of device for input, include memory and one or The more than one program of person, one of them perhaps more than one program be stored in memory and be configured to by one or It includes the instruction for performing the following operation that more than one processor, which executes the one or more programs:
Receive the input string of user;
Determine the corresponding system candidate item of the input string;
Determine the corresponding combination candidate item of the input string;
The system candidate item and the combination candidate item are shown.
In an optional implementation, the corresponding combination candidate item of the determination input string, comprising:
If the quantity of the system candidate item is less than preset quantity, it is determined that the corresponding combination candidate item of the input string.
It is described that the system candidate item and the combination candidate item are shown in an optional implementation, Include:
For the candidate item in the system candidate item and the combination candidate item, according to shot and long term memory network model point The target score of the candidate item is not obtained;
In the system candidate item and the combination candidate item, the preset quantity of selection target highest scoring is candidate ?;
Show the candidate item of selection.
It is described to show the selected candidate item in an optional implementation, comprising:
According to the sequence of target score from high to low, the candidate item of selection is shown.
It is described that the candidate item is obtained according to shot and long term memory network model respectively in an optional implementation Target score, comprising:
The candidate item is segmented, to obtain word sequence;
According to the shot and long term memory network model, the corresponding prediction word of word in the word sequence and described is determined Predict the probability value of word;
According to the probability value of the corresponding prediction word of word, institute's predicate and the prediction word in the word sequence, institute is determined State the target score of candidate item.
It is described that the candidate item is obtained according to shot and long term memory network model respectively in an optional implementation Target score, comprising:
The candidate item is segmented, to obtain word sequence;
According to shot and long term memory network model, the first score of the word sequence is determined;
According to multi-component grammar model, the second score of the candidate item is determined;
According to first score and second score, the target score of the candidate item is determined.
In an optional implementation, the corresponding combination candidate item of the determination input string, comprising:
If the input string is not located in preset group word pinyin string list, it is determined that the corresponding combination of the input string is candidate ?;Wherein, appearance of the corresponding candidate item of input string stored in the preset group word input string list in default corpus Frequency is lower than predeterminated frequency.
Compared with prior art, the embodiment of the present invention includes following advantages:
The embodiment of the present invention not only determines that the corresponding system of the input string is candidate after receiving the input string of user , but also determine the corresponding combination candidate item of the input string, and be shown to the system candidate item and the combination candidate item. Compared to the corresponding system candidate item of the input string is only shown, the embodiment of the present invention also shows that the corresponding combination of the input string is waited A possibility that option includes candidate item needed for user in the candidate item so as to improve displaying, and then input effect can be improved Rate and the input experience for improving user.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of input method embodiment of the invention;
Fig. 2 is a kind of step flow chart of input method embodiment of the invention;
Fig. 3 is a kind of structural block diagram of input unit embodiment of the invention;
Fig. 4 is a kind of structural schematic diagram of device for input of the invention;
Fig. 5 is the structural block diagram of server in some embodiments of the present invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real Applying mode, the present invention is described in further detail.
Referring to Fig.1, a kind of step flow chart of input method embodiment of the invention is shown, can specifically include as follows Step:
In step s101, the input string of user is received;
The embodiment of the present invention can be applied to the input method procedure of various input modes, for example, Pinyin Input, five it is defeated Enter, English input, stroke input, handwriting input and voice input etc..User can be complete by any one of the above input mode At the input of input string, that is, user can be set by physical keyboard, dummy keyboard, handwriting pad, touch screen or sound collection It is standby etc. to be inputted.Wherein, input string can be by any one of number, symbol, phonetic and English alphabet etc. or multinomial structure At.
For ease of description, the embodiment of the present invention is illustrated using pinyin string as input string, other types of input string It is cross-referenced.
In step s 102, the corresponding system candidate item of the input string is determined;
It in the embodiment of the present invention, can be searched in dictionary according to above-mentioned input string, to obtain corresponding system Candidate item.Wherein, above-mentioned dictionary may include: local dictionary or cloud dictionary etc..Certainly, the embodiment of the present invention is for above-mentioned The specific storage location of dictionary is without restriction.
In an optional implementation, local dictionary can recorde the corresponding relationship between input string and entry, Therefore, in this step, system candidate item corresponding with the input string can be searched in the corresponding relationship.
In step s 103, the corresponding combination candidate item of the input string is determined;
In a particular application, in order to enable input method procedure can show more reasonable to user and meet user demand Combination candidate item, input method procedure can carry out intelligent word to the input string according to n-gram (n member) model, obtain multiple Candidate item is combined, and is sorted according to group word path to multiple combination candidate items, therefrom determines that the optimal combination in group word path is candidate , and as the corresponding combination candidate item of the input string.
Wherein, in the corresponding combination candidate item of the available input string of the embodiment of the present invention organize word paths ordering before N (N For natural number) the combination candidate item of position.In practical applications, the embodiment of the present invention is without restriction for the specific value of N, this Inventive embodiments are by taking N=4 as an example.
For example, it is assumed that input string is " feijizhengzaihuaxing ", input method procedure is according to the syllable splitting input String, available following pinyin string " feiji ", " zhengzai " and " huaxing ", what is be commonly stored due to dictionary is shorter Basic candidate item, be not present the corresponding long candidate item of the pinyin string, therefore input method procedure need according to n-gram model pair Input string " feijizhengzaihuaxing " carries out intelligent word.
Specifically, by inquiring dictionary, the corresponding candidate item of available syllable " feiji " includes " aircraft ", " Fiji " And " fertile chicken " etc.;The corresponding candidate item of syllable " zhengzai " includes " " etc.;The corresponding candidate item of syllable " huaxing " Including " sliding ", " Hua Xing " and " flower pattern " etc..
N-gram model determines that group word path is preferably combined according to the binary crelation or n-tuple relation between candidate item Candidate item, for example, " aircraft Hua Xing ", " aircraft is sliding ", " aircraft is just in flower pattern " and " aircraft is magnificent It is emerging " etc..
In step S104, system candidate item and combination candidate item are shown.
To sum up, the input method of the embodiment of the present invention not only determines the input string after receiving the input string of user Corresponding system candidate item, but also determine the corresponding combination candidate item of the input string, and to the system candidate item and the combination Candidate item is shown.Compared to only showing that the corresponding system candidate item of the input string, the embodiment of the present invention also show that this is defeated A possibility that entering to go here and there corresponding combination candidate item, including candidate item needed for user in the candidate item so as to improve displaying, into And input efficiency can be improved and improve the input experience of user.
In traditional technology, if there is the corresponding system candidate item of input string, the then way that habituation uses are as follows: Bu Huitong It crosses a group word and determines the corresponding combination candidate item of the input string, and the embodiment of the present invention is there are the corresponding system candidate items of input string In the case where, it can also determine the corresponding combination candidate item of the input string, include needed for user to improve in the candidate item shown A possibility that candidate item.
In an alternative embodiment of the invention, after determining the corresponding system candidate item of the input string, judgement Whether the quantity for the system candidate item determined is less than preset quantity, if it is less than preset quantity, it is determined that the input string is corresponding Combination candidate item, and show determine system candidate item when, it is also necessary to show the combination candidate item determined so that exhibition The quantity of candidate item showing, being determined according to the input string can reach preset quantity, so that opening up for the first time on the screen Show that the corresponding candidate item of the input string includes the candidate item that user needs to input, avoids repeatedly upper screen input, improve input efficiency Input with user is experienced.
In an alternative embodiment of the invention, referring to fig. 2, step S104 can be realized by following process, comprising:
In step s 201, for the candidate item in system candidate item and combination candidate item, according to shot and long term memory network Model obtains the target score of the candidate item;
In an optional implementation, this step can be realized by following process, comprising:
11), the candidate item is segmented, to obtain word sequence;
For example, input string is " feijizhengzaihuaxing ", it is assumed that input method procedure is according to n-gram model to defeated Enter string " feijizhengzaihuaxing " intelligent word, obtained combination candidate item includes 4, and respectively " aircraft is magnificent Star ", " aircraft is sliding ", " aircraft is just in flower pattern " and " aircraft is just in Huaxing ".
In this step, it is assumed that the candidate item is " aircraft Hua Xing ", then to the candidate item " aircraft Hua Xing " point Word, obtain " aircraft | | Hua Xing ";Assuming that the candidate item is " aircraft is sliding ", to the candidate item " aircraft is sliding " Participle, obtain " aircraft | | slide ";Assuming that the candidate item is " aircraft is just in flower pattern ", to the candidate item, " aircraft is being spent Type " participle, obtain " aircraft | | flower pattern ";Assuming that the candidate item is " aircraft is just in Huaxing ", to the candidate item, " aircraft is Huaxing " participle, obtain " aircraft | | Huaxing ".
12) it, according to shot and long term memory network model, determines the corresponding prediction word of the word in word sequence and predicts word Probability value;
13), to according to the corresponding prediction word of word, word in word sequence, and the probability value of prediction word, the candidate item is determined Score.
In the adjacent word in a candidate item, (Long Short Term Memory, shot and long term remember net to LSTM Network) model can predict the probability value of subsequent word appearance according to the word of front, and calculate the candidate item according to the probability value Target score.
For example, " aircraft ", " ", " sliding " can be sequentially input for word sequence " aircraft | | slide " LSTM model, LSTM model can determine the corresponding prediction word of each word, and the probability value of prediction word.
Wherein, prediction word is next word that some word is likely to occur later, and such as " aircraft " corresponding prediction word can wrap Include " ", " taking off ", " design " etc., and the probability that each prediction word is likely to occur is different.
LSTM model calculates the probability value that " aircraft " corresponding prediction word is " " first, namely after calculating " aircraft " There is the probability value of " ", and the corresponding score of the available prediction word " " of logarithm is taken to the probability value.
Then, then the probability value that " " corresponding prediction word is " sliding " is calculated, namely calculating " " occurs later The probability value of " sliding ", and the corresponding score of the available prediction word " sliding " of logarithm is taken to the probability value.
Finally, sum to the scores of all prediction words, available entire word sequence " aircraft | | slide " Score, as carried out entire word sequence " aircraft | | slide " can be obtained in summation to " " and " sliding " corresponding score Score, and then the target score as candidate item " aircraft is sliding ".
In another optional implementation, step 13) can be realized by following process, comprising:
21), the candidate item is segmented, to obtain word sequence;
For example, input string is " yiyangde ", it is assumed that input method procedure is according to n-gram model to input string " yiyangde " intelligent word, obtained combination candidate item include 4, respectively " the same ", " abnormal ", " equally ", " Yiyang ".
In this step, it is assumed that the candidate item is " the same ", then to candidate item " equally " participle, obtain " it is the same | ";Assuming that the candidate item is " abnormal ", participle " abnormal " to the candidate item, obtain " it is abnormal | ";Assuming that the candidate item For " equally ", which is segmented, obtain " it is the same | ";Assuming that the candidate item is " Yiyang ", to the time Option " Yiyang " participle, obtain " Yiyang | ".
22), according to shot and long term memory network model, the first score of the candidate item is determined;
23), according to multi-component grammar model, the second score of the candidate item is determined;
24), according to the first score and the second score, the target score of the candidate item is determined.
Optionally, the embodiment of the present invention can calculate the candidate by following formula according to the first score and the second score The target score com_score of item:
Com_score=w1 × lstm_score+w2 × ngram_score;
In above-mentioned formula, w1 is the first default weight in LSTM model, and w2 is default for second in n-gram model Weight, lstm_score are the first score, and ngram_score is the second score.
It is appreciated that in practical applications, those skilled in the art can flexible setting w1 and w2 according to the actual situation Specific value, the embodiment of the present invention are without restriction for the specific value of w1 and w2.
In step S202, in system candidate item and combination candidate item, the preset quantity of selection target highest scoring Candidate item;
Wherein it is possible to by the candidate item in system candidate item and combination candidate item according to target score from high to low suitable Sequence sequence, preset quantity candidate item before then selecting.
In step S203, the candidate item of selection is shown.
Wherein, in the candidate item for showing selection, according to the sequence of target score from high to low, the candidate of selection is shown , for example, the sequence according to target score from high to low, from left to right arranges the candidate item for showing selection on the screen.
In embodiments of the present invention, when the frequency that the corresponding candidate item of an input string occurs in default corpus is lower than When predeterminated frequency, then illustrate that the corresponding candidate item of the input string is rarely used, this may indicate that the corresponding candidate of the input string The quality of item is lower.
Therefore, corresponding group of the input string is also determined in the case where the input string is located in preset group word input string list A possibility that conjunction candidate item, then user does not select the combination candidate item after showing the combination candidate item, is larger, to can consume Charge system resource.
So in an embodiment of the invention, after step s 102, needing to judge should in order to save system resource Whether input string is located in preset group word input string list, wherein the input string pair stored in preset group word input string list The frequency of occurrences of the candidate item answered in default corpus is lower than predeterminated frequency.
If the input string is not located in preset group word input string list, it is determined that the corresponding combination candidate item of the input string. If the input string is located in preset group word input string list, the corresponding combination candidate item of the input string can not be known, it can be with Directly display the system candidate item determined.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented Necessary to example.
Referring to Fig. 3, show a kind of structural block diagram of input unit embodiment of the present invention, the device can specifically include as Lower module:
Receiving module 11, for receiving the input string of user;
First determining module 12, for determining the corresponding system candidate item of the input string;
Second determining module 13, for determining the corresponding combination candidate item of the input string;
Display module 14, for being shown to the system candidate item and the combination candidate item.
In an optional implementation, second determining module 13 is specifically used for: if the system candidate item Quantity is less than preset quantity, it is determined that the corresponding combination candidate item of the input string.
In an optional implementation, the display module includes:
Acquiring unit, for for the system candidate item and it is described combination candidate item in candidate item, according to shot and long term Memory network model obtains the target score of the candidate item respectively;
Selecting unit, in the system candidate item and the combination candidate item, selection target highest scoring it is pre- If quantity candidate item;
Display unit, for showing the candidate item of selection.
In an optional implementation, the display unit is specifically used for: according to target score from high to low suitable Sequence shows the candidate item of selection.
In an optional implementation, the acquiring unit includes:
First participle subelement, for being segmented to the candidate item, to obtain word sequence;
First determines subelement, for determining the word pair in the word sequence according to the shot and long term memory network model The probability value of the prediction word and the prediction word answered;
Second determines subelement, for according to the corresponding prediction word of word, institute's predicate in the word sequence and described pre- The probability value for surveying word, determines the target score of the candidate item.
In an optional implementation, the acquiring unit includes:
Second participle subelement, for being segmented to the candidate item, to obtain word sequence;
Third determines subelement, for determining the first score of the word sequence according to shot and long term memory network model;
4th determines subelement, for determining the second score of the candidate item according to multi-component grammar model;
5th determines subelement, for determining the mesh of the candidate item according to first score and second score Mark score.
In an optional implementation, second determining module is specifically used for: if the input string be not located at it is pre- If organizing in the list of word pinyin string, it is determined that the corresponding combination candidate item of the input string;Wherein, the preset group word inputs tandem The frequency of occurrences of the input string stored in table in default corpus is lower than predeterminated frequency.
In an optional implementation, second determining module 13 is specifically used for: if the input string is not located at In preset group word pinyin string list, it is determined that the corresponding combination candidate item of the input string;Wherein, the preset group word input string The frequency of occurrences of the input string stored in list in default corpus is lower than predeterminated frequency.
To sum up, through the embodiment of the present invention, after receiving the input string of user, not only determine that the input string is corresponding System candidate item, but also determine the corresponding combination candidate item of the input string, and to the system candidate item and the combination candidate item It is shown.Compared to only showing that the corresponding system candidate item of the input string, the embodiment of the present invention also show that the input string pair A possibility that combination candidate item answered includes candidate item needed for user in the candidate item so as to improve displaying, and then can be with It improves input efficiency and improves the input experience of user.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
The embodiment of the present invention also shows a kind of device for input, includes memory and one or one Above program, one of them perhaps more than one program be stored in memory and be configured to by one or one with It includes the instruction for performing the following operation that upper processor, which executes the one or more programs:
Receive the input string of user;
Determine the corresponding system candidate item of the input string;
Determine the corresponding combination candidate item of the input string;
The system candidate item and the combination candidate item are shown.
In an optional implementation, the corresponding combination candidate item of the determination input string, comprising:
If the quantity of the system candidate item is less than preset quantity, it is determined that the corresponding combination candidate item of the input string.
It is described that the system candidate item and the combination candidate item are shown in an optional implementation, Include:
For the candidate item in the system candidate item and the combination candidate item, according to shot and long term memory network model point The target score of the candidate item is not obtained;
In the system candidate item and the combination candidate item, the preset quantity of selection target highest scoring is candidate ?;
Show the candidate item of selection.
It is described to show the selected candidate item in an optional implementation, comprising:
According to the sequence of target score from high to low, the candidate item of selection is shown.
It is described that the candidate item is obtained according to shot and long term memory network model respectively in an optional implementation Target score, comprising:
The candidate item is segmented, to obtain word sequence;
According to the shot and long term memory network model, the corresponding prediction word of word in the word sequence and described is determined Predict the probability value of word;
According to the probability value of the corresponding prediction word of word, institute's predicate and the prediction word in the word sequence, institute is determined State the target score of candidate item.
It is described that the candidate item is obtained according to shot and long term memory network model respectively in an optional implementation Target score, comprising:
The candidate item is segmented, to obtain word sequence;
According to shot and long term memory network model, the first score of the word sequence is determined;
According to multi-component grammar model, the second score of the candidate item is determined;
According to first score and second score, the target score of the candidate item is determined.
In an optional implementation, the corresponding combination candidate item of the determination input string, comprising:
If the input string is not located in preset group word pinyin string list, it is determined that the corresponding combination of the input string is candidate ?;Wherein, appearance of the corresponding candidate item of input string stored in the preset group word input string list in default corpus Frequency is lower than predeterminated frequency.
To sum up, the input unit of the embodiment of the present invention not only determines the input string after receiving the input string of user Corresponding system candidate item, but also determine the corresponding combination candidate item of the input string, and to the system candidate item and the combination Candidate item is shown.Compared to only showing that the corresponding system candidate item of the input string, the embodiment of the present invention also show that this is defeated A possibility that entering to go here and there corresponding combination candidate item, including candidate item needed for user in the candidate item so as to improve displaying, into And input efficiency can be improved and improve the input experience of user.
The embodiment of the invention also provides a kind of devices for input, include memory and one or one Above program, one of them perhaps more than one program be stored in memory and be configured to by one or one with It includes the instruction for performing the following operation that upper processor, which executes the one or more programs:
Receive the input string of user;
Determine the corresponding system candidate item of the input string;
Determine the corresponding combination candidate item of the input string;
The system candidate item and the combination candidate item are shown.
Fig. 4 is a kind of block diagram of device 800 for input shown according to an exemplary embodiment.For example, device 800 It can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices, Body-building equipment, personal digital assistant etc..
Referring to Fig. 4, device 800 may include following one or more components: processing component 802, memory 804, power supply Component 806, multimedia component 808, audio component 810, the interface 812 of input/output (I/O), sensor module 814, and Communication component 816.
The integrated operation of the usual control device 800 of processing component 802, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing element 802 may include that one or more processors 820 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 802 may include one or more modules, just Interaction between processing component 802 and other assemblies.For example, processing component 802 may include multi-media module, it is more to facilitate Interaction between media component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in equipment 800.These data are shown Example includes the instruction of any application or method for operating on device 800, contact data, and telephone book data disappears Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 806 provides electric power for the various assemblies of device 800.Power supply module 806 may include power management system System, one or more power supplys and other with for device 800 generate, manage, and distribute the associated component of electric power.
Multimedia component 808 includes the screen of one output interface of offer between described device 800 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 808 includes a front camera and/or rear camera.When equipment 800 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike Wind (MIC), when device 800 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 804 or via communication set Part 816 is sent.In some embodiments, audio component 810 further includes a loudspeaker, is used for output audio signal.
I/O interface 812 provides interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented Estimate.For example, sensor module 814 can detecte the state that opens/closes of equipment 800, and the relative positioning of component, for example, it is described Component is the display and keypad of device 800, and sensor module 814 can be with 800 1 components of detection device 800 or device Position change, the existence or non-existence that user contacts with device 800,800 orientation of device or acceleration/deceleration and device 800 Temperature change.Sensor module 814 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 814 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 816 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 804 of instruction, above-metioned instruction can be executed by the processor 820 of device 800 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by device (terminal or clothes Be engaged in device) processor execute when, enable a device to execute input method shown in preceding method embodiment of the present invention.
Fig. 5 is the structural schematic diagram of server in some embodiments of the present invention.The server 1900 can be because of configuration or property Energy is different and generates bigger difference, may include one or more central processing units (central processing Units, CPU) 1922 (for example, one or more processors) and memory 1932, one or more storage applications The storage medium 1930 (such as one or more mass memory units) of program 1942 or data 1944.Wherein, memory 1932 and storage medium 1930 can be of short duration storage or persistent storage.The program for being stored in storage medium 1930 may include one A or more than one module (diagram does not mark), each module may include to the series of instructions operation in server.More into One step, central processing unit 1922 can be set to communicate with storage medium 1930, execute storage medium on server 1900 Series of instructions operation in 1930.
Server 1900 can also include one or more power supplys 1926, one or more wired or wireless nets Network interface 1950, one or more input/output interfaces 1958, one or more keyboards 1956, and/or, one or More than one operating system 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM Etc..
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Above to a kind of input method provided by the present invention, device and for the device of input, it is described in detail, Used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only used In facilitating the understanding of the method and its core concept of the invention;At the same time, for those skilled in the art, according to the present invention Thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as Limitation of the present invention.

Claims (10)

1. a kind of input method, which is characterized in that the described method includes:
Receive the input string of user;
Determine the corresponding system candidate item of the input string;
Determine the corresponding combination candidate item of the input string;
The system candidate item and the combination candidate item are shown.
2. the method according to claim 1, wherein the corresponding combination candidate item of the determination input string, Include:
If the quantity of the system candidate item is less than preset quantity, it is determined that the corresponding combination candidate item of the input string.
3. the method according to claim 1, wherein described to the system candidate item and the combination candidate item It is shown, comprising:
For the candidate item in the system candidate item and the combination candidate item, obtained respectively according to shot and long term memory network model Take the target score of the candidate item;
In the system candidate item and the combination candidate item, the preset quantity candidate item of selection target highest scoring;
Show the candidate item of selection.
4. according to the method described in claim 3, it is characterized in that, described show the selected candidate item, comprising:
According to the sequence of target score from high to low, the candidate item of selection is shown.
5. according to the method described in claim 3, it is characterized in that, described obtain institute according to shot and long term memory network model respectively State the target score of candidate item, comprising:
The candidate item is segmented, to obtain word sequence;
According to the shot and long term memory network model, the corresponding prediction word of word and the prediction in the word sequence are determined The probability value of word;
According to the probability value of the corresponding prediction word of word, institute's predicate and the prediction word in the word sequence, the time is determined The target score of option.
6. according to the method described in claim 3, it is characterized in that, described obtain institute according to shot and long term memory network model respectively State the target score of candidate item, comprising:
The candidate item is segmented, to obtain word sequence;
According to shot and long term memory network model, the first score of the word sequence is determined;
According to multi-component grammar model, the second score of the candidate item is determined;
According to first score and second score, the target score of the candidate item is determined.
7. the method according to claim 1, wherein the corresponding combination candidate item of the determination input string, Include:
If the input string is not located in preset group word pinyin string list, it is determined that the corresponding combination candidate item of the input string; Wherein, the frequency of occurrences of the corresponding candidate item of input string stored in the preset group word input string list in default corpus Lower than predeterminated frequency.
8. a kind of input unit, which is characterized in that described device includes:
Receiving module, for receiving the input string of user;
First determining module, for determining the corresponding system candidate item of the input string;
Second determining module, for determining the corresponding combination candidate item of the input string;
Display module, for being shown to the system candidate item and the combination candidate item.
9. a kind of device for input, which is characterized in that it include memory and one or more than one program, Perhaps more than one program is stored in memory and is configured to be executed by one or more than one processor for one of them The one or more programs include the instruction for performing the following operation:
Receive the input string of user;
Determine the corresponding system candidate item of the input string;
Determine the corresponding combination candidate item of the input string;
The system candidate item and the combination candidate item are shown.
10. a kind of machine readable media is stored thereon with instruction, when executed by one or more processors, so that device is held Input method of the row as described in one or more in claim 1 to 7.
CN201810360827.1A 2018-04-20 2018-04-20 A kind of input method, device and the device for input Pending CN110389668A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810360827.1A CN110389668A (en) 2018-04-20 2018-04-20 A kind of input method, device and the device for input

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810360827.1A CN110389668A (en) 2018-04-20 2018-04-20 A kind of input method, device and the device for input

Publications (1)

Publication Number Publication Date
CN110389668A true CN110389668A (en) 2019-10-29

Family

ID=68283673

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810360827.1A Pending CN110389668A (en) 2018-04-20 2018-04-20 A kind of input method, device and the device for input

Country Status (1)

Country Link
CN (1) CN110389668A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722483A (en) * 2011-03-29 2012-10-10 百度在线网络技术(北京)有限公司 Method, apparatus and equipment for determining candidate-item sequence of input method
WO2016107344A1 (en) * 2014-12-30 2016-07-07 北京奇虎科技有限公司 Method and device for screening on-screen candidate items of input method
CN106774970A (en) * 2015-11-24 2017-05-31 北京搜狗科技发展有限公司 The method and apparatus being ranked up to the candidate item of input method
CN106816148A (en) * 2015-11-30 2017-06-09 三星电子株式会社 Speech recognition apparatus and method
CN107291260A (en) * 2016-04-13 2017-10-24 北京搜狗科技发展有限公司 A kind of data inputting method and device and the device inputted for information
CN107305438A (en) * 2016-04-21 2017-10-31 北京搜狗科技发展有限公司 The sort method and device of candidate item, the device sorted for candidate item
CN107544684A (en) * 2016-06-29 2018-01-05 北京搜狗科技发展有限公司 A kind of candidate word display methods and device
CN107621891A (en) * 2017-09-28 2018-01-23 北京新美互通科技有限公司 A kind of text entry method, device and electronic equipment
CN107870677A (en) * 2016-09-23 2018-04-03 北京搜狗科技发展有限公司 A kind of input method, device and the device for input

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722483A (en) * 2011-03-29 2012-10-10 百度在线网络技术(北京)有限公司 Method, apparatus and equipment for determining candidate-item sequence of input method
WO2016107344A1 (en) * 2014-12-30 2016-07-07 北京奇虎科技有限公司 Method and device for screening on-screen candidate items of input method
CN106774970A (en) * 2015-11-24 2017-05-31 北京搜狗科技发展有限公司 The method and apparatus being ranked up to the candidate item of input method
CN106816148A (en) * 2015-11-30 2017-06-09 三星电子株式会社 Speech recognition apparatus and method
CN107291260A (en) * 2016-04-13 2017-10-24 北京搜狗科技发展有限公司 A kind of data inputting method and device and the device inputted for information
CN107305438A (en) * 2016-04-21 2017-10-31 北京搜狗科技发展有限公司 The sort method and device of candidate item, the device sorted for candidate item
CN107544684A (en) * 2016-06-29 2018-01-05 北京搜狗科技发展有限公司 A kind of candidate word display methods and device
CN107870677A (en) * 2016-09-23 2018-04-03 北京搜狗科技发展有限公司 A kind of input method, device and the device for input
CN107621891A (en) * 2017-09-28 2018-01-23 北京新美互通科技有限公司 A kind of text entry method, device and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
柯登峰等: "互联网时代语音识别基本问题", 中国科学:信息科学, vol. 43, no. 12, pages 1578 *

Similar Documents

Publication Publication Date Title
CN105488112B (en) Information-pushing method and device
CN102681658B (en) By display device and the method for controlling operation thereof of action control
US20220391060A1 (en) Methods for displaying and providing multimedia resources
CN109144285B (en) Input method and device
CN106355429A (en) Image material recommendation method and device
CN108958503A (en) input method and device
CN108038102A (en) Recommendation method, apparatus, terminal and the storage medium of facial expression image
CN107229403B (en) Information content selection method and device
CN105677392A (en) Method and apparatus for recommending applications
EP3644177A1 (en) Input method, device, apparatus, and storage medium
CN109582768A (en) A kind of text entry method and device
CN108255940A (en) A kind of cross-language search method and apparatus, a kind of device for cross-language search
CN107291772A (en) One kind search access method, device and electronic equipment
CN107045541A (en) data display method and device
CN110110207A (en) A kind of information recommendation method, device and electronic equipment
CN108803892A (en) A kind of method and apparatus for calling third party application in input method
CN109388249A (en) Input processing method, device, terminal and the readable storage medium storing program for executing of information
CN108628461A (en) A kind of input method and device, a kind of method and apparatus of update dictionary
CN107729439A (en) Obtain the methods, devices and systems of multi-medium data
CN107436896A (en) Method, apparatus and electronic equipment are recommended in one kind input
CN109901726B (en) Candidate word generation method and device and candidate word generation device
CN113923517B (en) Background music generation method and device and electronic equipment
CN107301188B (en) Method for acquiring user interest and electronic equipment
CN107037887B (en) Method and device for Chinese character input and electronic equipment
CN112052395B (en) Data processing method and device

Legal Events

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