The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of methods of exhibiting, device and electronic equipment for predicting word, to realizeThe information that user can efficiently and easily be inputted, improve Consumer's Experience.Concrete technical scheme is as follows:
On the one hand, the embodiments of the invention provide a kind of methods of exhibiting for predicting word, methods described to include:
Obtain current word;
When receiving word prediction instruction, the history read statement to prestore is obtained;
Based on the history read statement to prestore and the current word, it is determined that prediction word;
Based on position of the initial of identified prediction word in default dummy keyboard, identified prediction word is shown.
Alternatively, it is described based on the history read statement to prestore and the current word, it is determined that the step of prediction word, bagInclude:
From the history read statement to prestore, it is determined that the history read statement comprising the current word, as firstHistory read statement;
From the first history read statement, determine present position after the current word and with it is described currentThe nearest word of word, as prediction word.
Alternatively, the step of acquisition current word, including:
The word that user currently inputs in default input frame is obtained, as current word;
Described from the first history read statement, determine present position after the current word and with instituteThe nearest word of current word is stated, before the step of prediction word, methods described also includes:
Judge in the default input frame, other words inputted before the current word with the presence or absence of the user;
When other words that the user is inputted being not present when judging in the default input frame, before the current word,Perform it is described from the first history read statement, determine present position after the current word and with it is described currentThe nearest word of word, as prediction word the step of.
Alternatively, methods described also includes:
When judging in the default input frame, when other words that the user is inputted be present before the current word, reallyDetermine in the default input frame, other words that the existing user is inputted before the current word, as reference word;
From the history read statement to prestore, it is determined that the history read statement comprising the reference word, as secondHistory read statement;
From the first history read statement, it is determined that with the history read statement phase in the second history read statementSame history read statement, as the 3rd history read statement;
From the 3rd history read statement, determine present position after the current word and with it is described currentThe nearest word of word, as prediction word.
Alternatively, methods described also includes:
When judging in the default input frame, when other words that the user is inputted be present before the current word, reallyDetermine in the default input frame, other words that the existing user is inputted before the current word, as reference word;
From the first history read statement, it is determined that the history read statement comprising the reference word, goes through as the 4thHistory read statement;
From the 4th history read statement, determine present position after the current word and with it is described currentThe nearest word of word, as prediction word.
Alternatively, each history read statement is in the history read statement to prestore:Corresponding input number surpassesCross the sentence of predetermined input number, the corresponding input number of each history read statement;
It is described from the history read statement to prestore, it is determined that the history read statement comprising the current word, asThe step of first history read statement, including:
From the history read statement to prestore, it is determined that comprising the current word and corresponding input number it is maximumOr the history read statement more than preset times threshold value, as the first history read statement.
Alternatively, the position based on the initial of identified prediction word in default dummy keyboard, displaying institute is reallyThe step of fixed prediction word, including:
Based on position of the initial of identified prediction word in default dummy keyboard, it is determined that display area is preset, itsIn, the default display area position includes:The surface of position of the initial of prediction word in default dummy keyboard,Underface, left side or right side, the default display area position is with the initial for predicting word in default dummy keyboardIn the distance between position be no more than pre-determined distance threshold value;
In identified default display area, identified prediction word is shown.
Alternatively, in the position based on the initial of identified prediction word in default dummy keyboard, institute is shownAfter the step of prediction word of determination, methods described also includes:
After the predetermined registration operation for the prediction word is obtained, the prediction word is added in default input frame, wherein,The predetermined registration operation includes:The duration for touching the initial position of prediction word exceedes the operation of preset duration, or from predictionThe initial position of word starts the operation slided along preset direction.
On the other hand, the embodiments of the invention provide a kind of exhibiting device for predicting word, described device to include:
First acquisition module, for obtaining current word;
Second acquisition module, for when receiving word prediction instruction, obtaining the history read statement to prestore;
First determining module, for based on the history read statement to prestore and the current word, it is determined that prediction word;
Display module, for position of the initial based on identified prediction word in default dummy keyboard, show instituteThe prediction word of determination.
Alternatively, first determining module includes the first determining unit and the second determining unit;
First determining unit, for from the history read statement to prestore, it is determined that including the current wordHistory read statement, as the first history read statement;
Second determining unit, for from the first history read statement, determining present position described currentWord after word and nearest with the current word, as prediction word.
Alternatively, first acquisition module, is specifically used for
The word that user currently inputs in default input frame is obtained, as current word;
First determining module also includes judging unit;
The judging unit, for from the first history read statement, determining that present position is worked as described describedWord after preceding word and nearest with the current word, before prediction word, judge in the default input frame, it is described to work asOther words inputted before preceding word with the presence or absence of the user;
When other words that the user is inputted being not present when judging in the default input frame, before the current word,Trigger second determining unit.
Alternatively, first determining module also include the 3rd determining unit, the 4th determining unit, the 5th determining unit and6th determining unit;
3rd determining unit, judge in the default input frame use be present before the current word for working asDuring other words that family is inputted, determine in the default input frame, the existing user is inputted before the current wordOther words, as reference word;
4th determining unit, for from the history read statement to prestore, it is determined that including the reference wordHistory read statement, as the second history read statement;
5th determining unit, for from the first history read statement, it is determined that being inputted with second historyHistory read statement identical history read statement in sentence, as the 3rd history read statement;
6th determining unit, for from the 3rd history read statement, determining present position described currentWord after word and nearest with the current word, as prediction word.
Alternatively, first determining module also includes the 7th determining unit, the 8th determining unit and the 9th determining unit;
7th determining unit, judge in the default input frame use be present before the current word for working asDuring other words that family is inputted, determine in the default input frame, the existing user is inputted before the current wordOther words, as reference word;
8th determining unit, for from the first history read statement, it is determined that going through comprising the reference wordHistory read statement, as the 4th history read statement;
9th determining unit, for from the 4th history read statement, determining present position described currentWord after word and nearest with the current word, as prediction word.
Alternatively, each history read statement is in the history read statement to prestore:Corresponding input number surpassesCross the sentence of predetermined input number, the corresponding input number of each history read statement;
First determining module, is specifically used for
From the history read statement to prestore, it is determined that comprising the current word and corresponding input number it is maximumOr the history read statement more than preset times threshold value, as the first history read statement.
Alternatively, the display module, is specifically used for
Based on position of the initial of identified prediction word in default dummy keyboard, it is determined that display area is preset, itsIn, the default display area position includes:The surface of position of the initial of prediction word in default dummy keyboard,Underface, left side or right side, the default display area position is with the initial for predicting word in default dummy keyboardIn the distance between position be no more than pre-determined distance threshold value;
In identified default display area, identified prediction word is shown.
Alternatively, described device also includes add module;
The add module, in the position based on the initial of identified prediction word in default dummy keyboardPut, after showing identified prediction word, after the predetermined registration operation for the prediction word is obtained, predict that word is added to by describedIn default input frame, wherein, the predetermined registration operation includes:When touching the duration of the initial position of prediction word more than presettingLong operation, or the operation slided since the initial position of prediction word along preset direction.
On the other hand, the embodiments of the invention provide a kind of electronic equipment, including processor, communication interface, memory andCommunication bus, wherein, processor, communication interface, memory completes mutual communication by communication bus;
Memory, for depositing computer program;
Processor, during for performing the computer program deposited on memory, realize what the embodiment of the present invention was providedThe methods of exhibiting step of any described prediction word.
On the other hand, the embodiments of the invention provide a kind of computer-readable recording medium, the computer-readable storageDielectric memory contains computer program, and the computer program realizes times that the embodiment of the present invention is provided when being executed by processorThe methods of exhibiting step of prediction word described in one.
In the embodiment of the present invention, current word is obtained;When receiving word prediction instruction, the history input language to prestore is obtainedSentence;Based on the history read statement to prestore and current word, it is determined that prediction word;Based on the initial of identified prediction word defaultPosition in dummy keyboard, show identified prediction word.
In the embodiment of the present invention, based on position of the initial of identified prediction word in default dummy keyboard, displayingIdentified prediction word, when user selects to input shown prediction word, user may not necessarily be defeated by finger or felt pen etc.Enter equipment, be moved to the prediction word display area of the top layer of default dummy keyboard region, then carry out click and choose operation, canOperation is chosen directly to carry out click in default dummy keyboard region., can inertia when user needs input wordThe word that the input equipments such as finger or felt pen are moved to the required input initial at, now, based on identified pre-Position of the initial of word in default dummy keyboard is surveyed, shows identified prediction word, can be selected more convenient for user shouldPredict word so that the information that user can efficiently and easily be inputted, improve Consumer's Experience.Certainly, the present invention is implementedAny product or method must be not necessarily required to reach all the above advantage simultaneously.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, completeSite preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based onEmbodiment in the present invention, those of ordinary skill in the art are every other acquired under the premise of creative work is not madeEmbodiment, belong to the scope of protection of the invention.
The purpose of the embodiment of the present invention is to provide a kind of methods of exhibiting, device and electronic equipment for predicting word, to realizeThe information that user can efficiently and easily be inputted, improve Consumer's Experience.
As shown in Fig. 2 the embodiments of the invention provide a kind of methods of exhibiting for predicting word, step can be included:
S201:Obtain current word;
It is understood that the methods of exhibiting for the prediction word that the embodiment of the present invention is provided, can apply to any haveIn the electronic equipment of touch-screen, the electronic equipment can be tablet personal computer and smart mobile phone, etc..It is every that there is information inputThe electronic equipment with touch-screen of function, the methods of exhibiting for predicting word that the embodiment of the present invention can be applied to be provided.
Wherein, the functional software of the methods of exhibiting for the prediction word that the embodiment of the present invention is provided is realized, can be specialClient software, such as:Input method client software or any client that can be communicated or carry out information searchPlug-in unit of software, etc. is held, this is all rational.
Above-mentioned current word can be the word currently inputted during user this input operation.Above-mentioned current word can beUser currently presets the word or use of the operation input of dummy keyboard in the touch-screen by clicking on, sliding electronic equipmentWord that family is currently inputted by the operation such as replicating, pasting etc., this is all possible.Above-mentioned current word can be English word,Such as " what ";Can also be Chinese character, such as " my god ";Word that can also be in any language, the embodiment of the present invention is not to currentThe type of word is defined.In one implementation, a default input frame is preset with the touch-screen of electronic equipment, it is above-mentioned to work asPreceding word can be the word currently inputted in above-mentioned default input frame during user this input operation.
S202:When receiving word prediction instruction, the history read statement to prestore is obtained;
Electronic equipment obtain current word after, receive word prediction instruction when, electronic equipment can continue obtain prestore go throughHistory read statement, to carry out the displaying flow of follow-up prediction word.
Wherein, upper predicate prediction instruction can be that user triggers manually or electronic equipment obtain current word itTrigger automatically afterwards, this is all possible.In one implementation, user can by click or double-click or long-press it is default byThe mode of key, manual trigger word prediction instruction, wherein, above-mentioned programmable button can be space button etc.;Above-mentioned programmable button canTo be real key or virtual key.For example, user inputs in the electronic device in this input operationOne word, such as " how ", and space button to be clicked, predicted and instructed with trigger word, electronic equipment obtains above-mentioned word " how ", andWhen receiving predicate prediction instruction, that is, obtain the above-mentioned history read statement to prestore.
It is understood that the above-mentioned history read statement that prestores can be:History inputted user in the electronic deviceSentence.Wherein, above-mentioned " user's sentence that history inputted in the electronic device ", can be relative to user this input behaviourDuring work in the electronic device for wanted input content.
In oneainstance, the above-mentioned history read statement to prestore can be stored in electronic equipment local, work as electronic equipmentWhen receiving word prediction instruction, electronic equipment directly can obtain the above-mentioned history read statement to prestore from local so that electronicsEquipment obtains the speed of the above-mentioned history read statement to prestore faster, and is not limited by network.In another scenario, in order to saveThe local memory space of electronic equipment is saved, the above-mentioned history read statement to prestore is stored in what is be connected with electronic equipmentIn storage device, when electronic equipment receives word prediction instruction, electronic equipment can be obtained by network from storage deviceThe history read statement to prestore, to carry out the displaying flow of follow-up prediction word.
S203:Based on the history read statement to prestore and current word, it is determined that prediction word;
In this step, electronic equipment can be matched current word one by one with the history to prestore read statement, work as matchingSuccess, i.e., when the history read statement comprising above-mentioned current word in the history read statement to prestore be present, determine that this is includedThe history read statement to prestore of above-mentioned current word, and from the identified history read statement to prestore for including above-mentioned current wordIn, determine to predict word, and then carry out the displaying flow of follow-up prediction word.When it fails to match, that is, the history to prestore is defeatedWhen entering the history read statement comprising above-mentioned current word is not present in sentence, it can terminate to predict the displaying flow of word.
S204:It is pre- determined by displaying based on position of the initial of identified prediction word in default dummy keyboardSurvey word.
Electronic equipment is determined after predicting word, when word is predicted in displaying, can determine to predict the initial of word first, itsIn, when above-mentioned prediction word is English word, the initial of above-mentioned prediction word can be the first letter of the English word, above-mentionedWhen prediction word is Chinese character, the initial of above-mentioned prediction word can be the first letter of the phonetic of the Chinese character.
After electronic equipment determines the initial of prediction word, it can continue to determine touch of the above-mentioned initial in electronic equipmentThe position in dummy keyboard is preset in screen, based on position of the initial of identified prediction word in default dummy keyboard, exhibitionPrediction word determined by showing.In the embodiment of the present invention, above-mentioned prediction word can be shown in default dummy keyboard region, whenWhen user selects to input above-mentioned prediction word, user can be shortened by the displacement of the input equipments such as finger or felt pen, can be withAllow the information that user efficiently and easily to be inputted.
When user needs input word, the input equipments such as finger or felt pen are moved to the required input by meeting inertiaAt the initial of word, Consumer's Experience in order to better improve of the embodiment of the present invention, the prediction word that will can be determined, it is showed inPredicting the initial of word, near the position in default dummy keyboard position, that is, predicts the display location and the head of prediction word of wordDistance between position of the letter in default dummy keyboard is no more than a predetermined threshold value.
Using the embodiment of the present invention, based on position of the initial of identified prediction word in default dummy keyboard, exhibitionPrediction word determined by showing, when user selects to input shown prediction word, user may not necessarily be by finger or felt pen etc.Input equipment, is moved to the prediction word display area of the top layer of default dummy keyboard region, then carries out click and choose operation,Directly click can be carried out in default dummy keyboard region choose operation.When user needs input word, can be used toAt the initial of the word that the input equipments such as finger or felt pen are moved to the required input of property, now, based on identifiedPosition of the initial of word in default dummy keyboard is predicted, identified prediction word is shown, can be selected more convenient for userThe prediction word so that the information that user can efficiently and easily be inputted.Improve Consumer's Experience.
In one implementation, as shown in figure 3, methods described can include step:
S301:Obtain current word;
S302:When receiving word prediction instruction, the history read statement to prestore is obtained;
Above-mentioned S301 is identical with the S201 shown in Fig. 2, and above-mentioned S302 is identical with the S202 shown in Fig. 2.
S303:From the history read statement to prestore, it is determined that the history read statement comprising current word, as the first historyRead statement;
S304:From the first history read statement, determine present position after current word and it is nearest with current wordWord, as prediction word;
S305:It is pre- determined by displaying based on position of the initial of identified prediction word in default dummy keyboardSurvey word.
Above-mentioned S305 is identical with the S204 shown in Fig. 2.
Electronic equipment is from the history read statement to prestore, can be with after determining the history read statement comprising current wordUsing the above-mentioned history read statement comprising current word as the first history read statement, wherein, above-mentioned first history read statementIt can be one or more.Follow-up, can be by present position in every one first history read statement current in a kind of situationWord after word and nearest with current word, as prediction word.For example, when the current word that electronic equipment obtains is" good ", the first history read statement that electronic equipment is determined are " good day " and " good morning " and " whatA good day ", can be by " " day " in good day " is used as prediction word, by " " morning " in good morning "As prediction word, by " " day " in what a good day " is as prediction word.Follow-up, electronic equipment can be based onPosition of the initial " d " of " day " in default dummy keyboard, shows " day ", and the initial " m " based on " morning " existsPosition in default dummy keyboard, shows " morning ".
, can also be all after current word by present position in every one first history read statement in another situationWord, as prediction word.When showing above-mentioned prediction word, can the initial based on the first word in above-mentioned prediction word default virtualPosition in keyboard, is shown.
In one implementation, electronic equipment can be provided with a default input frame, and electronic equipment can obtain userThe information inputted in default input frame, and perform the displaying flow of follow-up prediction word.User in default input frame,Before the current word of input, may also have input other words, it is also possible to do not input other words, i.e., user in default input frame whenPreceding inputted current word, by first word inputted during user this input operation, this is all possible.In order to moreThe accuracy for the prediction word that good raising is predicted, before current word in default input frame, user's input other also be presentDuring word, electronic equipment can be according to other words before the current word in current word and above-mentioned default input frame, Jin ErjinRow follow-up process.
Wherein, electronic equipment is it is determined that before prediction word, it is also necessary to judges in default input frame before current word, if depositIn other words of user's input.In a kind of situation, electronic equipment is judged in default input frame before current word, defeated in the absence of userOther words entered, now, electronic equipment can be directly by every one first history read statements, and present position is after current wordAnd the word nearest with current word current word, as prediction word.In one implementation, as shown in figure 4, methods described canWith including step:
S401:The word that user currently inputs in default input frame is obtained, as current word;
Wherein, above-mentioned S401 is a kind of implementation of above-mentioned acquisition current word.
S402:When receiving word prediction instruction, the history read statement to prestore is obtained;
S403:From the history read statement to prestore, it is determined that the history read statement comprising current word, as the first historyRead statement;
Wherein, above-mentioned S402 is identical with the S302 shown in Fig. 3, and above-mentioned S403 is identical with the S303 shown in Fig. 3.
S404:Judge in default input frame, other words inputted before current word with the presence or absence of user;It is default when judgingWhen other words that user is inputted being not present in input frame, before current word, S405 is performed;
S405:From the first history read statement, determine present position after current word and it is nearest with current wordWord, as prediction word;
S406:It is pre- determined by displaying based on position of the initial of identified prediction word in default dummy keyboardSurvey word.
Wherein, above-mentioned S405 is identical with the S304 shown in Fig. 3, and above-mentioned S406 is identical with the S305 shown in Fig. 3.
In another scenario, in the default input frame of electronic equipment judgement before current word, user's input other be presentWord, now, electronic equipment can be according to current word and other above-mentioned words, it is determined that prediction word, is predicted with preferably raisingThe accuracy of word, it further can preferably improve the probability being easily selected by a user.Wherein, electronic equipment according to current word and onOther words are stated, it is determined that prediction word may have a variety of implementations.In one implementation, as shown in figure 5, methods described canWith including step:
S501:The word that user currently inputs in default input frame is obtained, as current word;
S502:When receiving word prediction instruction, the history read statement to prestore is obtained;
S503:From the history read statement to prestore, it is determined that the history read statement comprising current word, as the first historyRead statement;
S504:Judge in default input frame, other words inputted before current word with the presence or absence of user;It is default when judgingWhen other words that user is inputted being not present in input frame, before current word, S505 is performed;When judging in default input frame, whenWhen other words that user is inputted be present before preceding word, S507 is performed;
S505:From the first history read statement, determine present position after current word and it is nearest with current wordWord, as prediction word;
S506:It is pre- determined by displaying based on position of the initial of identified prediction word in default dummy keyboardSurvey word;
Wherein, above-mentioned S501 is identical with the S401 shown in Fig. 4, and above-mentioned S502 is identical with the S402 shown in Fig. 4, above-mentionedS503 is identical with the S403 shown in Fig. 4, and above-mentioned S504 is identical with the S404 shown in Fig. 4, shown in above-mentioned 505 and Fig. 4S405 is identical, and above-mentioned S506 is identical with the S406 shown in Fig. 4.
S507:It is determined that preset in input frame, other words that existing user is inputted before current word, as referenceWord;
S508:From the history read statement to prestore, it is determined that the history read statement comprising reference word, as the second historyRead statement;
S509:From the first history read statement, it is determined that identical with the history read statement in the second history read statementHistory read statement, as the 3rd history read statement;
S510:From the 3rd history read statement, determine present position after current word and it is nearest with current wordWord, as prediction word;Perform S506.
In another implementation, as shown in fig. 6, methods described can include step:
S601:The word that user currently inputs in default input frame is obtained, as current word;
S602:When receiving word prediction instruction, the history read statement to prestore is obtained;
S603:From the history read statement to prestore, it is determined that the history read statement comprising current word, as the first historyRead statement;
S604:Judge in default input frame, other words inputted before current word with the presence or absence of user;It is default when judgingWhen other words that user is inputted being not present in input frame, before current word, S605 is performed;When judging in default input frame, whenWhen other words that user is inputted be present before preceding word, S607 is performed;
S605:From the first history read statement, determine present position after current word and it is nearest with current wordWord, as prediction word;
S606:It is pre- determined by displaying based on position of the initial of identified prediction word in default dummy keyboardSurvey word;
Wherein, above-mentioned S601 is identical with the S501 shown in Fig. 5, and above-mentioned S602 is identical with the S502 shown in Fig. 5, above-mentionedS603 is identical with the S503 shown in Fig. 5, and above-mentioned S604 is identical with the S504 shown in Fig. 5, shown in above-mentioned 605 and Fig. 5S505 is identical, and above-mentioned S606 is identical with the S506 shown in Fig. 5.
S607:It is determined that preset in input frame, other words that existing user is inputted before current word, as referenceWord;
S608:From the first history read statement, it is determined that the history read statement comprising reference word, defeated as the 4th historyEnter sentence;
S609:From the 4th history read statement, determine present position after current word and it is nearest with current wordWord, as prediction word, perform S606.
In one implementation, after electronic equipment determines to predict word, lead-in that can be both based on above-mentioned prediction wordFemale position in default dummy keyboard, can also be in default dummy keyboard region while showing above-mentioned prediction wordShown in the prediction word display area of top layer.In oneainstance, the prediction word that electronic equipment is determined exist it is multiple, thisWhen, electronic equipment can determine the word frequently used by user from the prediction word determined, i.e., pre- from what is determinedSurvey in word, the input number corresponding to the history read statement where determining exceedes the prediction word using threshold value.Electronic equipment, more than the default prediction word using threshold value, it can be based on only by the input number corresponding to the history read statement at above-mentioned placePosition of its initial in default dummy keyboard is shown.
For example, as shown in Figure 7 A, the prediction word of current word " Good " determination is based on when electronic equipment to be included" morning ", " night ", " day " etc., wherein, the input where " morning " and " day " corresponding to history read statementNumber, which exceedes to preset, uses threshold value, and electronic equipment can be based on the initial " m " of " morning " in default dummy keyboardPosition, show " morning ", and shown in word display area is predicted, the initial " d " based on " day " is in default virtual keyPosition in disk, show " day ",
And shown in word display area is predicted, other prediction words " night " etc. can be only in word display area be predictedDisplaying.
In another example as shown in Figure 7 B, when the prediction word that electronic equipment is based on current word " do " and reference word " how " determines" you ", " it ", " not ", " the " etc. can be included, wherein, the input number where " you " corresponding to history read statement surpassesCross to preset and use threshold value, electronic equipment can be based on position of the initial " y " of " you " in default dummy keyboard, displaying" you ", and shown in word display area is predicted, other prediction word " it ", " not ", " the " etc. can be only in prediction word displayingsShown in region.
In one implementation, user is it is possible that repeatedly input a sentence, it is to be understood that user's input oneThe number of sentence is more, and when the word that user inputs in above-mentioned sentence again, the sentence of the desired input of user is the languageThe probability of sentence is bigger.The accuracy of the prediction word predicted in order to better improve, it is in one implementation, described to prestoreHistory read statement in each history read statement be:Corresponding input number exceedes the sentence of predetermined input number, oftenThe corresponding input number of one history read statement;
Each history read statement is in the above-mentioned history read statement to prestore:Corresponding input number exceedes predetermined defeatedThe sentence of indegree, the corresponding input number of each history read statement;
It is above-mentioned from the history read statement to prestore, it is determined that the history read statement comprising current word, as the first historyThe step of read statement, it can include:
From the history read statement to prestore, it is determined that comprising current word and corresponding input number it is maximum or more than pre-If the history read statement of frequency threshold value, as the first history read statement.
Wherein, above-mentioned predetermined input number can be user pre-sets or electronic equipment default setting,Above-mentioned predetermined input number can be any positive integer.Above-mentioned preset times threshold value can be what user pre-set, can alsoIt is electronic equipment default setting, above-mentioned preset times threshold value can be any positive integer.
The accuracy of the prediction word predicted in order to better improve, electronic equipment can input language from the history to prestoreIn sentence, the history read statement comprising current word and corresponding input number maximum is determined, language is inputted as the first historySentence.Or electronic equipment can be determined to include current word and corresponding input number from the history read statement to prestoreMore than the history read statement of preset times threshold value, as the first history read statement.This is all possible.
In one implementation, the above-mentioned position based on the initial of identified prediction word in default dummy keyboardPut, show identified the step of predicting word, can include:
Based on position of the initial of identified prediction word in default dummy keyboard, it is determined that display area is preset, itsIn, default display area position includes:Predict position of the initial of word in default dummy keyboard surface, just underSide, left side or right side, preset display area position and predict the initial of word between the position in presetting dummy keyboardDistance, no more than pre-determined distance threshold value;
In identified default display area, identified prediction word is shown.
In the embodiment of the present invention, Consumer's Experience, provides the user easily information input mode in order to better improve, electricitySub- equipment can will predict word, be showed in the initial of the prediction word near the position in default dummy keyboard, i.e., above-mentionedIn default display area.Above-mentioned default display area position is with predicting position of the initial of word in default dummy keyboardThe distance between, no more than pre-determined distance threshold value, above-mentioned position can be above-mentioned default display area position, above-mentioned defaultDistance threshold can be pre-set by user, can also be by electronic equipment default setting.As shown in figures 7 a and 7b, can be pre-The surface for the position surveyed in the default dummy keyboard of the initial of word, displaying prediction word.
In one implementation, in the above-mentioned position based on the initial of identified prediction word in default dummy keyboardPut, after showing identified the step of predicting word, methods described can also include:
After the predetermined registration operation for prediction word is obtained, prediction word is added in default input frame, wherein, predetermined registration operationIncluding:The duration for touching the initial position of prediction word exceedes the operation of preset duration, or the initial institute from prediction wordStart the operation slided along preset direction in position.
Electronic equipment is determined after predicting word, can show identified prediction word, for selection by the user.When user determinesIn the presence of itself required input word when, user can be directed to the prediction word of its required input shown, perform predetermined registration operation.ElectricityAfter sub- equipment obtains the predetermined registration operation for prediction word, the targeted prediction word of predetermined registration operation can be added to default inputFrame, the targeted prediction word of above-mentioned predetermined registration operation is inputted to characterize.
In another implementation, the duration that above-mentioned predetermined registration operation can also include touching prediction word position exceedesThe operation of preset duration, or the operation slided since prediction word position along preset direction, this is also possible.
Above-mentioned preset direction can be any direction, such as left and right, up or down.Above-mentioned preset duration can be pre- by userFirst set, can also by electronic equipment default setting, such as:10 seconds.
Corresponding to above method embodiment, the embodiments of the invention provide a kind of exhibiting device for predicting word, such as Fig. 8 institutesShow, described device can include:
First acquisition module 810, for obtaining current word;
Second acquisition module 820, for when receiving word prediction instruction, obtaining the history read statement to prestore;
First determining module 830, for based on the history read statement to prestore and the current word, it is determined that predictionWord;
Display module 840, for position of the initial based on identified prediction word in default dummy keyboard, displayingIdentified prediction word.
Using the embodiment of the present invention, based on position of the initial of identified prediction word in default dummy keyboard, exhibitionPrediction word determined by showing, when user selects to input shown prediction word, user may not necessarily be by finger or felt pen etc.Input equipment, is moved to the prediction word display area of the top layer of default dummy keyboard region, then carries out click and choose operation,Directly click can be carried out in default dummy keyboard region choose operation.When user needs input word, can be used toAt the initial of the word that the input equipments such as finger or felt pen are moved to the required input of property, now, based on identifiedPosition of the initial of word in default dummy keyboard is predicted, identified prediction word is shown, can be selected more convenient for userThe prediction word so that the information that user can efficiently and easily be inputted.Improve Consumer's Experience.
In one implementation, as shown in figure 9, first determining module 830 can include the first determining unit 831With the second determining unit 832;
First determining unit 831, for from the history read statement to prestore, it is determined that including the current wordHistory read statement, as the first history read statement;
Second determining unit 832, for from the first history read statement, determining that present position is worked as describedWord after preceding word and nearest with the current word, as prediction word.
In one implementation, first acquisition module 810, is specifically used for
The word that user currently inputs in default input frame is obtained, as current word;
Based on structure shown in Fig. 9, as shown in Figure 10, first determining module 830 can also include judging unit 833;
The judging unit 833, for from the first history read statement, determining present position described describedWord after current word and nearest with the current word, before prediction word, judge in the default input frame, it is describedOther words inputted before current word with the presence or absence of the user;
When other words that the user is inputted being not present when judging in the default input frame, before the current word,Trigger second determining unit.
In one implementation, as shown in Figure 10, first determining module 830 can also include the 3rd determining unit834th, the 4th determining unit 835, the 5th determining unit 836 and the 6th determining unit 837;
3rd determining unit 834, judge for working as in the default input frame, before the current word described in presenceDuring other words that user is inputted, determine in the default input frame, existing user institute is defeated before the current wordOther words entered, as reference word;
4th determining unit 835, for from the history read statement to prestore, it is determined that including the reference wordHistory read statement, as the second history read statement;
5th determining unit 836, for from the first history read statement, it is determined that defeated with second historyEnter the history read statement identical history read statement in sentence, as the 3rd history read statement;
6th determining unit 837, for from the 3rd history read statement, determining that present position is worked as describedWord after preceding word and nearest with the current word, as prediction word.
In one implementation, based on structure shown in Fig. 9, as shown in figure 11, first determining module 830 includes sentencingDuring disconnected unit 833, first determining module 830 can also include the 7th determining unit 838, the 8th determining unit 839 and theNine determining units 8310;
7th determining unit 838, judge for working as in the default input frame, before the current word described in presenceDuring other words that user is inputted, determine in the default input frame, existing user institute is defeated before the current wordOther words entered, as reference word;
8th determining unit 839, for from the first history read statement, it is determined that including the reference wordHistory read statement, as the 4th history read statement;
9th determining unit 8310, for from the 4th history read statement, determining present position describedWord after current word and nearest with the current word, as prediction word.
In one implementation, each history read statement is in the history read statement to prestore:It is correspondingInput the sentence that number exceedes predetermined input number, the corresponding input number of each history read statement;
First determining module 830, is specifically used for
From the history read statement to prestore, it is determined that comprising the current word and corresponding input number it is maximumOr the history read statement more than preset times threshold value, as the first history read statement.
In one implementation, the display module 840, is specifically used for
Based on position of the initial of identified prediction word in default dummy keyboard, it is determined that display area is preset, itsIn, the default display area position includes:The surface of position of the initial of prediction word in default dummy keyboard,Underface, left side or right side, the default display area position is with the initial for predicting word in default dummy keyboardIn the distance between position be no more than pre-determined distance threshold value;
In identified default display area, identified prediction word is shown.
In one implementation, based on structure shown in Fig. 9, as shown in figure 12, described device can also include addition mouldBlock 850;
The add module 850, in the initial based on identified prediction word in default dummy keyboardPosition, show determined by prediction word after, when obtain for it is described prediction word predetermined registration operation after, by it is described prediction word addAdd in default input frame, wherein, the predetermined registration operation includes:The duration for touching the initial position of prediction word exceedes in advanceIf the operation of duration, or the operation slided since the initial position of prediction word along preset direction.
Corresponding to above method embodiment, the embodiment of the present invention additionally provides a kind of electronic equipment, as shown in figure 13, includingProcessor 1310, communication interface 1320, memory 1330 and communication bus 1340, wherein, processor 1310, communication interface1320, memory 1330 completes mutual communication by communication bus 1340,
Memory 1330, for depositing computer program;
Processor 1310, during for performing the computer program deposited on memory 1330, realize the embodiment of the present inventionThe methods of exhibiting of any of the above-described prediction word provided, this method can include step:
Obtain current word;
When receiving word prediction instruction, the history read statement to prestore is obtained;
Based on the history read statement to prestore and the current word, it is determined that prediction word;
Based on position of the initial of identified prediction word in default dummy keyboard, identified prediction word is shown.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral ComponentInterconnect, PCI) bus or EISA (Extended Industry StandardArchitecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, controlling bus etc..For justOnly represented in expression, figure with a thick line, it is not intended that an only bus or a type of bus.
The communication that communication interface is used between above-mentioned electronic equipment and other equipment.
Memory can include random access memory (Random Access Memory, RAM), can also include non-easyThe property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used alsoTo be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital SignalProcessing, DSP), it is application specific integrated circuit (Application Specific Integrated Circuit, ASIC), existingIt is field programmable gate array (Field-Programmable Gate Array, FPGA) or other PLDs, discreteDoor or transistor logic, discrete hardware components.
Alternatively, it is described based on the history read statement to prestore and the current word, it is determined that word is predicted, including:
From the history read statement to prestore, it is determined that the history read statement comprising the current word, as firstHistory read statement;
From the first history read statement, determine present position after the current word and with it is described currentThe nearest word of word, as prediction word.
Alternatively, the acquisition current word, including:
The word that user currently inputs in default input frame is obtained, as current word;
Described from the first history read statement, determine present position after the current word and with instituteThe nearest word of current word is stated, before prediction word, in addition to:
Judge in the default input frame, other words inputted before the current word with the presence or absence of the user;
When other words that the user is inputted being not present when judging in the default input frame, before the current word,Perform it is described from the first history read statement, determine present position after the current word and with it is described currentThe nearest word of word, as prediction word.
Alternatively, in addition to:
When judging in the default input frame, when other words that the user is inputted be present before the current word, reallyDetermine in the default input frame, other words that the existing user is inputted before the current word, as reference word;
From the history read statement to prestore, it is determined that the history read statement comprising the reference word, as secondHistory read statement;
From the first history read statement, it is determined that with the history read statement phase in the second history read statementSame history read statement, as the 3rd history read statement;
From the 3rd history read statement, determine present position after the current word and with it is described currentThe nearest word of word, as prediction word.
Alternatively, in addition to:
When judging in the default input frame, when other words that the user is inputted be present before the current word, reallyDetermine in the default input frame, other words that the existing user is inputted before the current word, as reference word;
From the first history read statement, it is determined that the history read statement comprising the reference word, goes through as the 4thHistory read statement;
From the 4th history read statement, determine present position after the current word and with it is described currentThe nearest word of word, as prediction word.
Alternatively, each history read statement is in the history read statement to prestore:Corresponding input number surpassesCross the sentence of predetermined input number, the corresponding input number of each history read statement;
It is described from the history read statement to prestore, it is determined that the history read statement comprising the current word, asFirst history read statement, including:
From the history read statement to prestore, it is determined that comprising the current word and corresponding input number it is maximumOr the history read statement more than preset times threshold value, as the first history read statement.
Alternatively, the position based on the initial of identified prediction word in default dummy keyboard, displaying institute is reallyFixed prediction word, including:
Based on position of the initial of identified prediction word in default dummy keyboard, it is determined that display area is preset, itsIn, the default display area position includes:The surface of position of the initial of prediction word in default dummy keyboard,Underface, left side or right side, the default display area position is with the initial for predicting word in default dummy keyboardIn the distance between position be no more than pre-determined distance threshold value;
In identified default display area, identified prediction word is shown.
Alternatively, in the position based on the initial of identified prediction word in default dummy keyboard, institute is shownAfter the prediction word of determination, in addition to:
After the predetermined registration operation for the prediction word is obtained, the prediction word is added in default input frame, wherein,The predetermined registration operation includes:The duration for touching the initial position of prediction word exceedes the operation of preset duration, or from predictionThe initial position of word starts the operation slided along preset direction.
Corresponding to above method embodiment, the embodiments of the invention provide a kind of computer-readable recording medium, the meterCalculation machine readable storage medium storing program for executing internal memory contains computer program, realizes that the present invention is implemented when the computer program is executed by processorThe methods of exhibiting for any of the above-described prediction word that example is provided, this method can include step:
Obtain current word;
When receiving word prediction instruction, the history read statement to prestore is obtained;
Based on the history read statement to prestore and the current word, it is determined that prediction word;
Based on position of the initial of identified prediction word in default dummy keyboard, identified prediction word is shown.
Alternatively, it is described based on the history read statement to prestore and the current word, it is determined that word is predicted, including:
From the history read statement to prestore, it is determined that the history read statement comprising the current word, as firstHistory read statement;
From the first history read statement, determine present position after the current word and with it is described currentThe nearest word of word, as prediction word.
Alternatively, the acquisition current word, including:
The word that user currently inputs in default input frame is obtained, as current word;
Described from the first history read statement, determine present position after the current word and with instituteThe nearest word of current word is stated, before prediction word, in addition to:
Judge in the default input frame, other words inputted before the current word with the presence or absence of the user;
When other words that the user is inputted being not present when judging in the default input frame, before the current word,Perform it is described from the first history read statement, determine present position after the current word and with it is described currentThe nearest word of word, as prediction word.
Alternatively, in addition to:
When judging in the default input frame, when other words that the user is inputted be present before the current word, reallyDetermine in the default input frame, other words that the existing user is inputted before the current word, as reference word;
From the history read statement to prestore, it is determined that the history read statement comprising the reference word, as secondHistory read statement;
From the first history read statement, it is determined that with the history read statement phase in the second history read statementSame history read statement, as the 3rd history read statement;
From the 3rd history read statement, determine present position after the current word and with it is described currentThe nearest word of word, as prediction word.
Alternatively, in addition to:
When judging in the default input frame, when other words that the user is inputted be present before the current word, reallyDetermine in the default input frame, other words that the existing user is inputted before the current word, as reference word;
From the first history read statement, it is determined that the history read statement comprising the reference word, goes through as the 4thHistory read statement;
From the 4th history read statement, determine present position after the current word and with it is described currentThe nearest word of word, as prediction word.
Alternatively, each history read statement is in the history read statement to prestore:Corresponding input number surpassesCross the sentence of predetermined input number, the corresponding input number of each history read statement;
It is described from the history read statement to prestore, it is determined that the history read statement comprising the current word, asFirst history read statement, including:
From the history read statement to prestore, it is determined that comprising the current word and corresponding input number it is maximumOr the history read statement more than preset times threshold value, as the first history read statement.
Alternatively, the position based on the initial of identified prediction word in default dummy keyboard, displaying institute is reallyFixed prediction word, including:
Based on position of the initial of identified prediction word in default dummy keyboard, it is determined that display area is preset, itsIn, the default display area position includes:The surface of position of the initial of prediction word in default dummy keyboard,Underface, left side or right side, the default display area position is with the initial for predicting word in default dummy keyboardIn the distance between position be no more than pre-determined distance threshold value;
In identified default display area, identified prediction word is shown.
Alternatively, in the position based on the initial of identified prediction word in default dummy keyboard, institute is shownAfter the prediction word of determination, in addition to:
After the predetermined registration operation for the prediction word is obtained, the prediction word is added in default input frame, wherein,The predetermined registration operation includes:The duration for touching the initial position of prediction word exceedes the operation of preset duration, or from predictionThe initial position of word starts the operation slided along preset direction.
It should be noted that herein, such as first and second or the like relational terms are used merely to a realityBody or operation make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operationIn any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended toNonexcludability includes, so that process, method, article or equipment including a series of elements not only will including thoseElement, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to includeIntrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded thatOther identical element also be present in process, method, article or equipment including the key element.
Each embodiment in this specification is described by the way of related, identical similar portion between each embodimentDivide mutually referring to what each embodiment stressed is the difference with other embodiment.It is real especially for systemFor applying example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the methodPart explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is allAny modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present inventionIt is interior.