Specific embodiment
The embodiment of the present invention is intended to provide a kind of input method and device, when identify current cursor focus in beginning of the sentence,Putting in order for adjustable each candidate input word, sequence that is more flexible, accurately showing candidate input word, improves the defeated of userEnter efficiency.
Technical solution in order to enable those skilled in the art to better understand the present invention, below in conjunction with of the invention realThe attached drawing in example is applied, technical solution in the embodiment of the present invention is described, it is clear that described embodiment is only this hairBright a part of the embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not havingEvery other embodiment obtained under the premise of creative work is made, should fall within the scope of the present invention.
The input method shown in exemplary embodiment of the present is introduced below in conjunction with attached drawing 1 to attached drawing 2.
Referring to Fig. 1, the input method flow chart provided for one embodiment of the invention.As shown in Figure 1, may include:
S101 receives coded string and/or the voice input of user's input.
It should be noted that the embodiment of the present invention is illustrated by taking Chinese as an example.In the present embodiment, technical term " wordThe area Fu Shangping " generally refers to the region for the candidate input word that screen output user chooses, such as input frame.Technical term " codingString editing area " generally refers to the region for showing the coded string of user's input.Technical term " voice edition area "It generally refers to for providing the region of voice input editing.Technical term " candidate item area " is generally referred to for showing candidate inputThe region of word.
For example, receiving the coded string " shoux " of user's input, and can be shown in coded string editing areaThe coded string of user's input.Wherein, the mode of user's input coding character string can be keyboard input, handwriting input orOther input modes, do not limit herein.Again for example, user can also input voice, input unit is for receiving user'sVoice input.
S102 judges whether the position in the area character Shang Ping where cursor focus is beginning of the sentence.
In some embodiments, whether the position judged in the area character Shang Ping where cursor focus is beginning of the sentence packetInclude: judge in the area the character Shang Ping user's input coding character string and/or voice input before output object whether beStatement terminator or newline;If judging to input in the area the character Shang Ping in user's input coding character string and/or voiceOutput object before is statement terminator or newline, determines that the position in the area the character Shang Ping where cursor focus isBeginning of the sentence.For example, the statement terminator can be the statement terminators such as fullstop, question mark, branch, exclamation mark, ellipsis.WhenWhen user inputs multiple sentences, fullstop is inputted at the end of a sentence, then the position where cursor focus is usually beginning of the sentence.Again for example, when the output object before user is before input coding character string and/or voice input is newline, currentlyCursor focus position is likely to be beginning of the sentence.
In some embodiments, whether the position judged in the area character Shang Ping where cursor focus is beginning of the sentence packetInclude: judge in the area the character Shang Ping user's input coding character string and/or voice input before output object whether beEmoticon or picture;If judging in the area the character Shang Ping before user's input coding character string and/or voice inputOutput object be emoticon or picture, determine that the position in the area the character Shang Ping where cursor focus is beginning of the sentence.It liftsExample explanation, some users habit inputs emoticon at the end of a sentence, then the position where cursor focus is usually sentenceIt is first.For another example, user is after being inserted into a picture, before input coding character string or voice input again, the area character Shang Ping cursorPosition where focus is beginning of the sentence.
In some embodiments, whether the position judged in the area character Shang Ping where cursor focus is beginning of the sentence packetInclude: judge in the area the character Shang Ping user's input coding character string and/or voice input before output object whether beCharacter;If judge in the area the character Shang Ping user's input coding character string and/or voice input before output object notIt is character, determines that the position in the area the character Shang Ping where cursor focus is beginning of the sentence.For example, if judging the area character Shang PingThe object that interior user exports before input coding character string " shoux " is character, then the position where cursor focus is notBeginning of the sentence.Conversely, if the object for judging that user exports before input coding character string " shoux " in the area character Shang Ping is not wordSymbol, then the position where cursor focus is likely to beginning of the sentence.
In some embodiments, whether the position judged in the area character Shang Ping where cursor focus is beginning of the sentence packetInclude: whether the process of judgement and input method association is the process newly started;If the process of judgement and input method associationFor the process newly started, determine that the position in the area the character Shang Ping where cursor focus is beginning of the sentence.For example, if user works asIt is preceding just to open application program word, then the process with input method association is word process, it is the process newly started,At this moment the also non-input content of user, the position where current cursor focus are usually beginning of the sentence.Again for example, when user opensA chat window of application program such as QQ, can be considered as and start a new process, at this moment it is considered that cursor focusThe position at place is beginning of the sentence.
Certainly, possible several implementations are described above, are not intended as limitation of the present invention.
S103, if judging, position in the area the character Shang Ping where cursor focus for beginning of the sentence, judges in beginning of the sentence input wordMatched input word is inputted with the presence or absence of with the coded string and/or voice in set;Wherein, the beginning of the sentence inputs word setClosing includes each input word for appearing in beginning of the sentence position.
It should be noted that beginning of the sentence input set of words can be pre-established, beginning of the sentence input set of words includes appearing in beginning of the sentenceEach input word of position.For example, partial words are only suitable for being placed on beginning of the sentence or most of feelings due to the use habit of ChineseAppear in beginning of the sentence under condition, and some words rarely have and appear in beginning of the sentence.Therefore, one can be gone out based on the statistics of features of Chinese termsDivide common beginning of the sentence input word, establishes beginning of the sentence input set of words.It is of course also possible to which the history input data of counting user, will go outThe input word of present beginning of the sentence position is added beginning of the sentence and inputs set of words, and can count its number occurred in beginning of the sentence position.Certainly,It can also combine and be applicable in two ways, beginning of the sentence input word first common based on Chinese terms statistics of features, in conjunction with user's historyInput data supplements beginning of the sentence and inputs set of words, is allowed to more adapt to the personalized input habit of user.When user is in beginning of the sentence positionWhen input coding character string and/or voice input, the input word for having larger frequency to appear in beginning of the sentence is shown in candidate word as far as possibleForefront, with improve user select input word efficiency.
S104, if judging to input in set of words in beginning of the sentence in the presence of matched with the coded string and/or voice inputInput word improves the weight of matched input word, adjusts described and the coded string and/or language according to weight adjustedSound inputs putting in order for corresponding each candidate input word.
For example, being directed to coded string " shoux ", may exist " hand-written " " first ", " limited " " life insurance " " handIt is continuous " etc. candidate input word.If beginning of the sentence is in the position where judging the area character Shang Ping current cursor focus, and by searching for matching,Determine beginning of the sentence input set of words exist with the matched beginning of the sentence input word " first " of coded string " shoux ", then improve matchingInput word " first " weight, and adjust according to weight adjusted the alignment attribute of each input word, such as beginning of the sentence is inputtedWord " first " comes the position of preference.
Again for example, being directed to coded string " haoma ", may exist " number ", " OK ", " good " " fine horse " etc.Each candidate's input word.When judging current cursor focus in beginning of the sentence, by searching for matching, it is " good to determine that there are beginning of the sentence input words", then the weight of candidate input word " OK " is improved, and suitable according to the arrangement that weight adjusted adjusts each candidate input wordSequence.In some cases, the weight that can also be improved candidate input word " OK " is allowed to stand out, such as comes preferencePosition.It is of course also possible to which the row of each input word is adjusted using the frequency of candidate input word in conjunction with user after improving weightSequence.
When specific implementation, if judging, there are multiple and the coded string and/or voices in beginning of the sentence input set of wordsWhen inputting matched input word, each input word of comparison match appears in the number of beginning of the sentence position, adjusts each matched each inputThe weight of word, wherein the weight of input word often is greater than the weight of the few input word of number.For example, if for compilingCode character string " qic ", by searching for matching, determines that there are beginning of the sentence input word " its when judging current cursor focus in beginning of the sentenceIt is secondary " and " automobile ", and the number that beginning of the sentence input word " secondly " appears in beginning of the sentence is greater than the number that " automobile " appears in beginning of the sentence, then" secondly " weight is greater than " automobile ", and in sequence, the sequence for appearing in the candidate input word of beginning of the sentence often is also located further forward.
In some embodiments, the method also includes: if judging in the area the character Shang Ping where cursor focusPosition is beginning of the sentence and judges to input in beginning of the sentence matched defeated there is no inputting with the coded string and/or voice in set of wordsEnter word, the selection operation of candidate input word is directed in response to user, the candidate input word that user selects is added to beginning of the sentence inputSet of words, and the candidate input word is marked to appear in the number of beginning of the sentence position.For example, if being directed to coded string" haoma ", when judging current cursor focus in beginning of the sentence, by searching for determining and being not present and beginning of the sentence input word sets matchInput word, and the upper screen input word that user selects is " OK ", then " OK " is added to beginning of the sentence input set of words, and marks instituteState the number that candidate input word appears in beginning of the sentence position.
In some embodiments, the method also includes: if judging in the area the character Shang Ping where cursor focusPosition is beginning of the sentence and judges to input to exist in set of words in beginning of the sentence to input matched input with the coded string and/or voiceWord, in response to the selection operation of the matched input word of user, the input word for increasing user's selection appears in the number of beginning of the sentence position.For example, if being directed to coded string " shoux ", when judging current cursor focus in beginning of the sentence, by searching for determining and existingWith the input word " first " of beginning of the sentence input word sets match, and the upper screen input word that user selects also is " first ", then will be " firstThe number for first " appearing in beginning of the sentence position adds 1.
Be more clearly understood that embodiment of the application under concrete scene for the ease of those skilled in the art, below withThe application embodiment is introduced in one specific example.It should be noted that the specific example is only so that this field skillArt personnel more clearly understand the present invention, but embodiments of the present invention are not limited to the specific example.
S201 receives the first coded string and/or the input of the first voice of user's input.
It illustrates, it is assumed that user input coding character string " qic " for the first time.
S202 judges whether the position in the area character Shang Ping where cursor focus is beginning of the sentence.
S203, if judging, position in the area the character Shang Ping where cursor focus for beginning of the sentence, judges in beginning of the sentence input wordMatched input word is inputted with the presence or absence of with the coded string and/or voice in set.
S204, if judging to input in set of words to be not present in beginning of the sentence matches with the coded string and/or voice inputInput word, show each candidate input word according to scheduled strategy.
Wherein, scheduled strategy is same as the prior art.
S205 is directed to the selection operation of candidate input word in response to user, the output candidate input in the area character Shang PingWord.
For example, upper screen exports " secondly " if it is " secondly " that user, which selects candidate input word,
The candidate input word is added to beginning of the sentence input set of words, and the candidate input word is marked to appear in by S206The number of beginning of the sentence position.
When specific implementation, the word can be recorded with the mode of binary word, it may be assumed that empty content+input word.For example, two can be usedFirst word record are as follows: empty+" secondly ".Further, it is also possible to record beginning of the sentence input word in the following manner: default identifier+input word,Such as: * input word.It is of course also possible to use other identifier accords with.It should be noted that if present cursor position is in beginning of the sentence,The candidate input word that user can be marked to select is ordinary user's word, it is equally possible that it is marked to occur in non-beginning of the sentence positionNumber.
S207 receives coded string and/or the voice input of user's input.
For example, working as user input coding character string " qic " again.
S208 judges whether the position in the area character Shang Ping where cursor focus is beginning of the sentence.
S209, if judging, position in the area the character Shang Ping where cursor focus for beginning of the sentence, judges in beginning of the sentence input wordMatched input word is inputted with the presence or absence of with the coded string and/or voice in set.
For example, preferentially searching the coded string if judging cursor in beginning of the sentence and/or voice input being inputted in beginning of the sentenceIt is to determine that there are matched beginning of the sentence input words " secondly " there are matched input word in set of words.
It should be noted that in the present invention, each input word in beginning of the sentence input set of words is not necessarily stored together,Can it only be identified as beginning of the sentence input word with for example preset identifier " * " of mark or special binary recording mode.Therefore, existIt, can be by sentencing when judging that beginning of the sentence input set of words be whether there is with coded string and/or the voice matched input word of inputDisconnected described and coded string and/or voice input whether matched input word input word includes preset identifier to judge itIt whether is beginning of the sentence input word.
S210, if judging to input in set of words in beginning of the sentence in the presence of matched with the coded string and/or voice inputInput word improves the weight of matched input word, adjusts described and the coded string and/or language according to weight adjustedSound inputs putting in order for corresponding each candidate input word.
For example, then giving its higher weightings there are beginning of the sentence input word " secondly ".Although candidate input word " automobile "It inputs frequency and is much larger than " automobile ", but since candidate input word " automobile " is not from appearing in beginning of the sentence, when user is in beginning of the sentence positionWhen setting input, beginning of the sentence input word " automobile " then can preferentially be shown in candidate item region, such as be shown in preference position.
S211 is directed to the selection operation of matched input word in response to user, and the input word for increasing user's selection appears inThe number of beginning of the sentence position.
In this of the invention embodiment, according to the input habit of user, when identify current cursor focus in beginning of the sentence andThere are when beginning of the sentence input word, adjust each candidate input word for each candidate input word corresponding with coded string and/or voice inputPut in order, sequence that is more flexible, accurately showing candidate input word, that reduces user selects word to operate, and improves input efficiency.
Referring to Fig. 3, the input unit schematic diagram provided for one embodiment of the invention.
A kind of input unit 300, comprising:
Receiving unit 301, for receiving coded string and/or the voice input of user's input.Wherein, the reception is singleThe specific implementation of member 301 is referred to the step 101 of embodiment illustrated in fig. 1 and realizes.
First judging unit 302, for judging whether the position in the area character Shang Ping where cursor focus is beginning of the sentence.ItsIn, the specific implementation of first judging unit 302 is referred to the step 102 of embodiment illustrated in fig. 1 and realizes.
Second judgment unit 303, if for judging that the position in the area the character Shang Ping where cursor focus for beginning of the sentence, is sentencedBreak and inputs matched input word with the presence or absence of with the coded string and/or voice in beginning of the sentence input set of words;Wherein, instituteStating beginning of the sentence input set of words includes appearing in each input word of beginning of the sentence position.Wherein, the specific reality of the second judgment unit 303It is now referred to the step 103 of embodiment illustrated in fig. 1 and realizes.
Adjustment unit 304, if existing and the coded string and/or voice for judging to input in set of words in beginning of the sentenceMatched input word is inputted, the weight of matched input word is improved, the described and coded word is adjusted according to weight adjustedSymbol string and/or voice input putting in order for corresponding each candidate input word.Wherein, the second judgment unit 304 is specificIt realizes the step 304 for being referred to embodiment illustrated in fig. 1 and realizes.
In some embodiments, first judging unit 302 is specifically used for: judge in the area the character Shang Ping withWhether the output object before family input coding character string and/or voice input is statement terminator or newline;If judgementIn the area the character Shang Ping user's input coding character string and/or voice input before output object be statement terminator orPerson's newline determines that the position in the area the character Shang Ping where cursor focus is beginning of the sentence.
In some embodiments, first judging unit 302 is specifically used for: judge in the area the character Shang Ping withWhether the output object before family input coding character string and/or voice input is character;If judging in the area the character Shang PingOutput object before user's input coding character string and/or voice input is not character, is determined in the area the character Shang PingPosition where cursor focus is beginning of the sentence.
In some embodiments, first judging unit 302 is specifically used for: judgement and input method association intoWhether journey is the process newly started;If judging to determine the character with the process of input method association as the process newly startedPosition in the area Shang Ping where cursor focus is beginning of the sentence.
In some embodiments, described device further include:
Adding unit, if for judging the position in the area the character Shang Ping where cursor focus for beginning of the sentence and judging in sentenceThere is no matched input word is inputted with the coded string and/or voice in head input set of words, it is directed in response to userThe input word that user selects is added to beginning of the sentence input set of words, and marks the candidate by the selection operation of matched input wordInput word appears in the number of beginning of the sentence position.
In some embodiments, described device further include:
Marking unit, if for judging the position in the area the character Shang Ping where cursor focus for beginning of the sentence and judging in sentenceExist in head input set of words and input matched input word with the coded string and/or voice, in response to user forThe selection operation for the input word matched, the input word for increasing user's selection appear in the number of beginning of the sentence position.
In some embodiments, the adjustment unit 304 is specifically used for: existing if judging to input in set of words in beginning of the sentenceMatched input word is inputted with the coded string and/or voice, each input word of comparison match appears in beginning of the sentence positionNumber adjusts the weight of matched each input word, wherein the weight of input word often is greater than the power of the few input word of numberWeight.
Wherein, the setting of apparatus of the present invention each unit or module is referred to Fig. 1 and realizes to method shown in Fig. 2,This is not repeated.
It referring to fig. 4, is a kind of block diagram for web page storage device shown according to an exemplary embodiment.For example, dressSetting 400 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical treatmentEquipment, body-building equipment, personal digital assistant etc..
Referring to Fig. 4, device 400 may include following one or more components: processing component 402, memory 404, power supplyComponent 406, multimedia component 408, audio component 410, the interface 412 of input/output (I/O), sensor module 414, andCommunication component 416.
The integrated operation of the usual control device 400 of processing component 402, such as with display, telephone call, data communication, phaseMachine operation and record operate associated operation.Processing component 402 may include that one or more processors 420 refer to executeIt enables, to perform all or part of the steps of the methods described above.In addition, processing component 402 may include one or more modules, justInteraction between processing component 402 and other assemblies.For example, processing component 402 may include multi-media module, it is more to facilitateInteraction between media component 408 and processing component 402.
Memory 404 is configured as storing various types of data to support the operation in equipment 400.These data are shownExample includes the instruction of any application or method for operating on device 400, contact data, and telephone book data disappearsBreath, picture, video etc..Memory 404 can be by any kind of volatibility or non-volatile memory device or their groupIt closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compileJourney read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flashDevice, disk or CD.
Power supply module 406 provides electric power for the various assemblies of device 400.Power supply module 406 may include power management systemSystem, one or more power supplys and other with for device 400 generate, manage, and distribute the associated component of electric power.
Multimedia component 408 includes the screen of one output interface of offer between described device 400 and user.OneIn a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screenCurtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensingsDevice is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding actionBoundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakersBody component 408 includes a front camera and/or rear camera.When equipment 400 is in operation mode, such as screening-mode orWhen video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera andRear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 410 is configured as output and/or input audio signal.For example, audio component 410 includes a MikeWind (MIC), when device 400 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matchedIt is set to reception external audio signal.The received audio signal can be further stored in memory 404 or via communication setPart 416 is sent.In some embodiments, audio component 410 further includes a loudspeaker, is used for output audio signal.
I/O interface 412 provides interface between processing component 402 and peripheral interface module, and above-mentioned peripheral interface module canTo be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lockDetermine button.
Sensor module 414 includes one or more sensors, and the state for providing various aspects for device 400 is commentedEstimate.For example, sensor module 414 can detecte the state that opens/closes of equipment 400, and the relative positioning of component, for example, it is describedComponent is the display and keypad of device 400, and sensor module 414 can be with 400 1 components of detection device 400 or devicePosition change, the existence or non-existence that user contacts with device 400,400 orientation of device or acceleration/deceleration and device 400Temperature change.Sensor module 414 may include proximity sensor, be configured to detect without any physical contactPresence of nearby objects.Sensor module 414 can also include optical sensor, such as CMOS or ccd image sensor, atAs being used in application.In some embodiments, which can also include acceleration transducer, gyro sensorsDevice, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 416 is configured to facilitate the communication of wired or wireless way between device 400 and other equipment.Device400 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementationIn example, communication component 414 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.In one exemplary embodiment, the communication component 414 further includes near-field communication (NFC) module, to promote short range communication.ExampleSuch 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 400 can be believed by one or more application specific integrated circuit (ASIC), numberNumber 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.
Specifically, the embodiment of the present application provides a kind of input unit 400, include memory 404 and one orMore than one program, one of them perhaps more than one program be stored in memory 404 and be configured to by one orIt includes the instruction for performing the following operation that more than one processor 420, which executes the one or more programs: being receivedThe coded string of user's input and/or voice input;Judge whether the position in the area character Shang Ping where cursor focus is sentenceIt is first;If judging the position in the area the character Shang Ping where cursor focus for beginning of the sentence, judge beginning of the sentence input set of words in whetherMatched input word is inputted in the presence of with the coded string and/or voice;Wherein, the beginning of the sentence input set of words includes occurringEach input word in beginning of the sentence position;If judging to input in set of words in beginning of the sentence in the presence of defeated with the coded string and/or voiceEnter matched input word, improve the weight of matched input word, the described and code character is adjusted according to weight adjustedString and/or voice input putting in order for corresponding each candidate input word.
Further, it includes to be used for that the processor 420, which specifically is also used to execute the one or more programs,The instruction performed the following operation: judge in the area the character Shang Ping before user's input coding character string and/or voice inputOutput object whether be statement terminator or newline;If judging in the area the character Shang Ping in user's input coding characterOutput object before string and/or voice input is statement terminator or newline, determines cursor in the area the character Shang PingPosition where focus is beginning of the sentence.
Further, it includes to be used for that the processor 420, which specifically is also used to execute the one or more programs,The instruction performed the following operation: judge in the area the character Shang Ping before user's input coding character string and/or voice inputOutput object whether be character;If judging to input in the area the character Shang Ping in user's input coding character string and/or voiceOutput object before is not character, determines that the position in the area the character Shang Ping where cursor focus is beginning of the sentence.
Further, it includes to be used for that the processor 420, which specifically is also used to execute the one or more programs,The instruction performed the following operation: whether the process of judgement and input method association is the process newly started;If judgement and inputThe process of method association is the process newly started, determines that the position in the area the character Shang Ping where cursor focus is beginning of the sentence.
Further, it includes to be used for that the processor 420, which specifically is also used to execute the one or more programs,The instruction performed the following operation: if judging position in the area the character Shang Ping where cursor focus for beginning of the sentence and judging in beginning of the sentenceIt inputs there is no matched input word is inputted with the coded string and/or voice in set of words, in response to user for timeThe candidate input word that user selects is added to beginning of the sentence input set of words, and marks the candidate by the selection operation for selecting input wordInput word appears in the number of beginning of the sentence position.
Further, it includes to be used for that the processor 420, which specifically is also used to execute the one or more programs,The instruction performed the following operation: if judging position in the area the character Shang Ping where cursor focus for beginning of the sentence and judging in beginning of the sentenceIt inputs to exist in set of words and inputs matched input word with the coded string and/or voice, in response to user for matchingInput word selection operation, the input word for increasing user's selection appears in the number of beginning of the sentence position.
Further, it includes to be used for that the processor 420, which specifically is also used to execute the one or more programs,If it is defeated with the coded string and/or voice that the instruction performed the following operation judges that there are multiple in beginning of the sentence input set of wordsEnter matched input word, each input word of comparison match appears in the number of beginning of the sentence position, adjusts the power of each matched input wordWeight, wherein the weight of input word often is greater than the weight of the few input word of number.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally providedIt such as include the memory 404 of instruction, above-metioned instruction can be executed by the processor 420 of device 400 to complete the above method.For example,The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy diskWith optical data storage devices etc..
A kind of machine readable media, such as the machine readable media can be non-transitorycomputer readable storage medium,When the instruction in the medium is executed by the processor of device (terminal or server), enable a device to execute a kind of defeatedEnter method, which comprises receive coded string and/or the voice input of user's input;Judge light in the area character Shang PingWhether the position where marking focus is beginning of the sentence;If judging, the position in the area the character Shang Ping where cursor focus for beginning of the sentence, is sentencedBreak and inputs matched input word with the presence or absence of with the coded string and/or voice in beginning of the sentence input set of words;Wherein, instituteStating beginning of the sentence input set of words includes appearing in each input word of beginning of the sentence position;Exist and institute if judging to input in set of words in beginning of the sentenceIt states coded string and/or voice inputs matched input word, the weight of matched input word is improved, according to weight adjustedAdjustment is described to input putting in order for corresponding each candidate input word with the coded string and/or voice
Fig. 5 is the structural schematic diagram of server in the embodiment of the present invention.The server 500 can be due to configuration or performance be differentGenerate bigger difference, may include one or more central processing units (central processing units,CPU) 522 (for example, one or more processors) and memory 532, one or more storage application programs 542 orThe storage medium 530 (such as one or more mass memory units) of data 544.Wherein, memory 532 and storage medium530 can be of short duration storage or persistent storage.The program for being stored in storage medium 530 may include one or more modules(diagram does not mark), each module may include to the series of instructions operation in server.Further, central processing unit522 can be set to communicate with storage medium 530, and the series of instructions behaviour in storage medium 530 is executed on server 500Make.
Server 500 can also include one or more power supplys 526, one or more wired or wireless networksInterface 550, one or more input/output interfaces 558, one or more keyboards 556, and/or, one or oneThe above operating system 541, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention itsIts embodiment.The present invention is directed to cover any variations, uses, or adaptations of the invention, these modifications, purposes orPerson's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the disclosureOr conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by followingClaim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, andAnd various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention andWithin principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a realityBody or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operationIn any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended toNon-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including thoseElement, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipmentIntrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded thatThere is also other identical elements in process, method, article or equipment including the element.The present invention can be by calculatingThe general described in the text, such as program module up and down for the computer executable instructions that machine executes.Generally, program module includes holdingThe routine of row particular task or realization particular abstract data type, programs, objects, component, data structure etc..It can also divideCloth, which calculates, practices the present invention in environment, in these distributed computing environments, by connected long-range by communication networkProcessing equipment executes task.In a distributed computing environment, program module can be located at the local including storage equipmentIn remote computer storage medium.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodimentDividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device realityFor applying example, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to embodiment of the methodPart explanation.The apparatus embodiments described above are merely exemplary, wherein described be used as separate part descriptionUnit may or may not be physically separated, component shown as a unit may or may not bePhysical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to the actual needsSome or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not payingIn the case where creative work, it can understand and implement.The above is only a specific embodiment of the invention, should be referred toOut, for those skilled in the art, without departing from the principle of the present invention, can also make severalImprovements and modifications, these modifications and embellishments should also be considered as the scope of protection of the present invention.