Movatterモバイル変換


[0]ホーム

URL:


CN109144286A - A kind of input method and device - Google Patents

A kind of input method and device
Download PDF

Info

Publication number
CN109144286A
CN109144286ACN201710501132.6ACN201710501132ACN109144286ACN 109144286 ACN109144286 ACN 109144286ACN 201710501132 ACN201710501132 ACN 201710501132ACN 109144286 ACN109144286 ACN 109144286A
Authority
CN
China
Prior art keywords
input
sentence
beginning
character
voice
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710501132.6A
Other languages
Chinese (zh)
Other versions
CN109144286B (en
Inventor
左艳波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sogou Technology Development Co LtdfiledCriticalBeijing Sogou Technology Development Co Ltd
Priority to CN201710501132.6ApriorityCriticalpatent/CN109144286B/en
Publication of CN109144286ApublicationCriticalpatent/CN109144286A/en
Application grantedgrantedCritical
Publication of CN109144286BpublicationCriticalpatent/CN109144286B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明实施例提供一种输入方法和装置,包括:接收用户输入的编码字符串和/或语音输入;判断字符上屏区中光标焦点所在的位置是否为句首;若判断所述字符上屏区中光标焦点所在的位置为句首,判断在句首输入词集合中是否存在与所述编码字符串和/或语音输入匹配的输入词;其中,所述句首输入词集合包括出现在句首位置的各输入词;若判断在句首输入词集合中存在与所述编码字符串和/或语音输入匹配的输入词,提高匹配的输入词的权重,根据调整后的权重调整所述与所述编码字符串和/或语音输入对应的各候选输入词的排列顺序。本发明实施例可以减少用户的选词操作,提高用户的输入效率。

Embodiments of the present invention provide an input method and device, including: receiving an encoded character string and/or voice input input by a user; judging whether the position of the cursor focus in the character upper screen area is the beginning of a sentence; The position of the cursor focus in the area is the beginning of the sentence, and it is judged whether there is an input word matching the encoded character string and/or the voice input in the input word set at the beginning of the sentence; Each input word at the first position; if it is judged that there is an input word matching the encoded character string and/or voice input in the set of input words at the beginning of the sentence, increase the weight of the matching input word, and adjust the input word according to the adjusted weight. The arrangement order of each candidate input word corresponding to the encoded character string and/or the speech input. The embodiment of the present invention can reduce the user's word selection operation and improve the user's input efficiency.

Description

A kind of input method and device
Technical field
The present embodiments relate to field of computer technology, and in particular to a kind of input method and device.
Background technique
In existing input method technology, user's input coding character string, input method application can show the code characterGo here and there corresponding candidate word.In the prior art, input method is applied when showing multiple candidate words, is usually inputted according to user candidateThe frequency of word just determines the sequence of candidate word.User inputs the high word of frequency, will have the displaying of more maximum probability waitingSelect prefix position.However, this single sortord can not meet input demand of the user under all scenes.For example,When the corresponding candidate word input frequency of the coded string of user's input is closer to, input method application can not be flexibly intelligentGround sorts to candidate word, reduces the input efficiency of user.
Summary of the invention
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.
For this purpose, the embodiment of the present invention provides the following technical solutions:
In a first aspect, the embodiment of the invention provides a kind of input methods, comprising: receive the coded string of user's inputAnd/or voice input;Judge whether the position in the area character Shang Ping where cursor focus is beginning of the sentence;If judging to shield on the characterPosition in area where cursor focus is beginning of the sentence, and judging to input in set of words in beginning of the sentence whether there is and the coded stringAnd/or voice inputs matched input word;Wherein, the beginning of the sentence input set of words includes appearing in each input of beginning of the sentence positionWord;If judging to input to exist in set of words in beginning of the sentence inputs matched input word with the coded string and/or voice, improveThe weight of matched input word, it is described corresponding with the coded string and/or voice input according to weight adjusted adjustmentEach candidate input word put in order.
Second aspect, the embodiment of the invention provides a kind of input units, comprising: receiving unit, it is defeated for receiving userCoded string and/or the voice input entered;First judging unit, for judging the position in the area character Shang Ping where cursor focusWhether set is beginning of the sentence;Second judgment unit, if for judge the position in the area the character Shang Ping where cursor focus for beginning of the sentence,Judge to input in set of words in beginning of the sentence and inputs matched input word with the presence or absence of with the coded string and/or voice;Wherein,The beginning of the sentence input set of words includes appearing in each input word of beginning of the sentence position;Adjustment unit, if for judging to input in beginning of the sentenceExist in set of words and input matched input word with the coded string and/or voice, improves the weight of matched input word,According to the weight adjusted adjustment arrangement for inputting corresponding each candidate input word with the coded string and/or voiceSequentially.
The third aspect, the embodiment of the invention provides a kind of device for input, include memory and one orThe more than one program of person, one of them perhaps more than one program be stored in memory and be configured to by one orIt includes the instruction for performing the following operation that more than one processor, which executes the one or more programs: receiving userThe coded string and/or voice of input input;Judge whether the position in the area character Shang Ping where cursor focus is beginning of the sentence;IfJudge 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 the presence or absence of withThe coded string and/or voice input matched input word;Wherein, the beginning of the sentence input set of words includes appearing in beginning of the sentenceEach input word of position;If judging to input in set of words to exist in beginning of the sentence matches with the coded string and/or voice inputInput word, improve the weight of matched input word, according to weight adjusted adjustment it is described with the coded string and/orVoice inputs putting in order for corresponding each candidate input word.
Fourth aspect, the embodiment of the invention provides a kind of machine readable medias, are stored thereon with instruction, when by one orWhen multiple processors execute, so that device executes the input method as shown in first aspect.
Input method provided in an embodiment of the present invention and device, when identifying current cursor focus in beginning of the sentence and judge in sentenceWhen existing in head input set of words with the coded string and/or the voice matched input word of input, it can be improved matchedThe weight of input word, adjusts putting in order for each candidate input word, and sequence that is more flexible, accurately showing candidate input word subtractsFew user's selects word to operate, and improves the input efficiency of user.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show belowThere is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only thisThe some embodiments recorded in invention, for those of ordinary skill in the art, without creative efforts,It is also possible to obtain other drawings based on these drawings.
Fig. 1 is the input method flow chart that one embodiment of the invention provides;
Fig. 2 be another embodiment of the present invention provides input method flow chart;
Fig. 3 is the input unit schematic diagram that one embodiment of the invention provides;
Fig. 4 is a kind of block diagram for input unit shown according to an exemplary embodiment;
Fig. 5 is the block diagram of server shown according to an exemplary embodiment.
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.

Claims (10)

CN201710501132.6A2017-06-272017-06-27 An input method and deviceActiveCN109144286B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710501132.6ACN109144286B (en)2017-06-272017-06-27 An input method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710501132.6ACN109144286B (en)2017-06-272017-06-27 An input method and device

Publications (2)

Publication NumberPublication Date
CN109144286Atrue CN109144286A (en)2019-01-04
CN109144286B CN109144286B (en)2022-08-02

Family

ID=64805298

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710501132.6AActiveCN109144286B (en)2017-06-272017-06-27 An input method and device

Country Status (1)

CountryLink
CN (1)CN109144286B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2021254251A1 (en)*2020-06-152021-12-23维沃移动通信有限公司Input display method and apparatus, and electronic device
CN117632106A (en)*2023-11-212024-03-01广州致远电子股份有限公司Code complement method, device, equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101661331A (en)*2008-08-282010-03-03北京搜狗科技发展有限公司Character and phrase input method and input method system
CN101661466A (en)*2009-09-082010-03-03刘道宇Sentence input method and sentence display mode thereof
CN101989128A (en)*2009-08-032011-03-23北京搜狗科技发展有限公司Method and device for showing candidate words in fixed position
CN102081677A (en)*2011-02-172011-06-01珠海全志科技有限公司Generation method of long sentences in Pinyin input method
CN102109951A (en)*2010-12-302011-06-29刘津立Method for inputting Chinese characters by combination of input characters and background hidden characters
CN102750088A (en)*2012-06-042012-10-24华为终端有限公司 Method and electronic device for prompting character input
CN104281649A (en)*2014-09-092015-01-14北京搜狗科技发展有限公司Input method and device and electronic equipment
CN105549760A (en)*2016-01-272016-05-04百度在线网络技术(北京)有限公司Information input method and device
CN106468960A (en)*2016-09-072017-03-01北京新美互通科技有限公司A kind of method and system of candidates of input method sequence
CN106774970A (en)*2015-11-242017-05-31北京搜狗科技发展有限公司The method and apparatus being ranked up to the candidate item of input method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101661331A (en)*2008-08-282010-03-03北京搜狗科技发展有限公司Character and phrase input method and input method system
CN101989128A (en)*2009-08-032011-03-23北京搜狗科技发展有限公司Method and device for showing candidate words in fixed position
CN101661466A (en)*2009-09-082010-03-03刘道宇Sentence input method and sentence display mode thereof
CN102109951A (en)*2010-12-302011-06-29刘津立Method for inputting Chinese characters by combination of input characters and background hidden characters
CN102081677A (en)*2011-02-172011-06-01珠海全志科技有限公司Generation method of long sentences in Pinyin input method
CN102750088A (en)*2012-06-042012-10-24华为终端有限公司 Method and electronic device for prompting character input
CN104281649A (en)*2014-09-092015-01-14北京搜狗科技发展有限公司Input method and device and electronic equipment
CN106774970A (en)*2015-11-242017-05-31北京搜狗科技发展有限公司The method and apparatus being ranked up to the candidate item of input method
CN105549760A (en)*2016-01-272016-05-04百度在线网络技术(北京)有限公司Information input method and device
CN106468960A (en)*2016-09-072017-03-01北京新美互通科技有限公司A kind of method and system of candidates of input method sequence

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2021254251A1 (en)*2020-06-152021-12-23维沃移动通信有限公司Input display method and apparatus, and electronic device
CN117632106A (en)*2023-11-212024-03-01广州致远电子股份有限公司Code complement method, device, equipment and storage medium

Also Published As

Publication numberPublication date
CN109144286B (en)2022-08-02

Similar Documents

PublicationPublication DateTitle
CN105426152B (en)The display methods and device of barrage
CN105119812B (en)In the method, apparatus and terminal device of chat interface change emoticon
WO2017114020A1 (en)Speech input method and terminal device
CN106024009A (en)Audio processing method and device
CN108345581A (en)A kind of information identifying method, device and terminal device
CN106484138B (en)A kind of input method and device
CN105335062B (en)Information editing's operation processing method and device
CN110764627B (en)Input method and device and electronic equipment
CN109961791A (en)A kind of voice information processing method, device and electronic equipment
CN109992124B (en)Input method, apparatus and machine readable medium
CN104636453A (en)Illegal user data identification method and device
CN109002184A (en)A kind of association method and device of input method candidate word
CN105205153B (en)File memory method and device
CN105956067A (en)Resource searching method and apparatus
CN109388249A (en)Input processing method, device, terminal and the readable storage medium storing program for executing of information
CN113609380A (en)Label system updating method, searching method, device and electronic equipment
CN108803892A (en)A kind of method and apparatus for calling third party application in input method
CN110929122A (en)Data processing method and device and data processing device
CN110858099B (en)Candidate word generation method and device
CN109144286A (en)A kind of input method and device
CN110415703A (en) Voice memo information processing method and device
CN109887492A (en)A kind of data processing method, device and electronic equipment
CN108345886A (en)A kind of video flowing text recognition method and device
CN109901726A (en) Method and device for generating candidate words and device for generating candidate words
CN109471538A (en)A kind of input method, device and the device for input

Legal Events

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

[8]ページ先頭

©2009-2025 Movatter.jp