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

A kind of input method and device Download PDF

Info

Publication number
CN109558016A
CN109558016A CN201710876293.3A CN201710876293A CN109558016A CN 109558016 A CN109558016 A CN 109558016A CN 201710876293 A CN201710876293 A CN 201710876293A CN 109558016 A CN109558016 A CN 109558016A
Authority
CN
China
Prior art keywords
interpretive model
pressing operation
candidate word
character
interpretive
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
CN201710876293.3A
Other languages
Chinese (zh)
Other versions
CN109558016B (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 Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201710876293.3A priority Critical patent/CN109558016B/en
Publication of CN109558016A publication Critical patent/CN109558016A/en
Application granted granted Critical
Publication of CN109558016B publication Critical patent/CN109558016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • G06F3/0236Character input methods using selection techniques to select from displayed items
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

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

Abstract

The embodiment of the invention provides a kind of input method and devices, which comprises receives the character string of input;The character in the character string is parsed according to current first interpretive model, obtains the first interpretive model candidate word;Show the first interpretive model candidate word;The second pressing operation is received, is switched to the second interpretive model according to second pressing operation;The first remaining character in the character string is parsed according to second interpretive model, obtains the second interpretive model candidate word;Show the second interpretive model candidate word.In embodiments of the present invention, after user inputs character string, user can switch different interpretive models by pressing operation, to carry out the group word under different interpretive models, character string is converted to candidate word.The method of the embodiment of the present invention is flexibly switched between different interpretive models by pressing operation, so that user be supported to carry out Chinese and English Mixed design, improves input efficiency.

Description

A kind of input method and device
Technical field
The present invention relates to input method technique fields, more particularly to a kind of input method and a kind of input unit.
Background technique
With widely available, the especially extensive use of mobile device of electronic equipment, electronic equipment is commonly used in user This or that, such as communication, browsing webpage, hair microblogging etc. are handled, user often needs to use input method procedure input therewith Word content.Wherein user is during using input method, it is often necessary to while inputting Chinese and English.
Traditional input Chinese and English mode are as follows: when user needs to input English, user inputs word under Chinese character coding input method Symbol string, carries out a group word to character string by Chinese character coding input method.When user needs to input English, user needs by switch key to English Input method, user input character string under English input method, carry out a group word to character string by English input method.When user's needs are more It is very inconvenient in such a way that switch key switches when secondary word input switches.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present invention and overcomes the above problem or at least partly in order to provide one kind A kind of input method to solve the above problems and a kind of corresponding input unit.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of input methods, comprising:
Receive the character string of input;
The character in the character string is parsed according to current first interpretive model, obtains the first interpretive model candidate Word;
Show the first interpretive model candidate word;
The second pressing operation is received, is switched to the second interpretive model according to second pressing operation;
The first remaining character in the character string is parsed according to second interpretive model, obtains the second parsing Mode candidate word;
Show the second interpretive model candidate word.
Preferably, the method also includes:
Third pressing operation is received, is switched to third interpretive model according to the third pressing operation;
The second remaining character in the character string is parsed according to the third interpretive model, obtains third parsing Mode candidate word.
Preferably, the method also includes:
The first pressing operation is received, is switched to current first interpretive model according to first pressing operation.
Preferably, described that the character in the character string is parsed according to current first interpretive model, obtain first The step of interpretive model candidate word includes:
Receive the 4th pressing operation;
Determine the pressing duration of the 4th pressing operation;
In the input character string, the character of number corresponding with the pressing duration is chosen;
According to the character that the parsing of current first interpretive model is chosen, the first interpretive model candidate word is obtained.
Preferably, the character chosen according to the parsing of current first interpretive model, obtains the first interpretive model candidate word The step of include:
Determine the pressure value of the 4th pressing operation;
When the pressure value of the 4th pressing operation is in the first pre-set pressure range, according to current first interpretive model The character chosen is parsed, the first interpretive model candidate word is obtained.
Preferably, described that the character in the character string is parsed according to current first interpretive model, obtain first The step of interpretive model candidate word includes:
Determine the pressing duration of first pressing operation;
In the character string, the character of number corresponding with the pressing duration is chosen;
According to the character that the parsing of current first interpretive model is chosen, the first interpretive model candidate word is obtained.
Preferably, the second pressing operation of the reception is switched to the second interpretive model according to second pressing operation Step includes:
Determine the pressure value of second pressing operation;
When the pressure value of second pressing operation is in the second pre-set pressure range, cut according to second pressing operation Change to the second interpretive model.
It is preferably, described that the first remaining character in the character string is parsed according to second interpretive model, The step of obtaining the second interpretive model candidate word include:
Receive the 5th pressing operation;Determine the pressing duration of the 5th pressing operation;
In the described first remaining character, the character of number corresponding with the pressing duration is chosen;
According to the character that second interpretive model parsing is chosen, the second interpretive model candidate word is obtained.
Preferably, the character chosen according to second interpretive model parsing, obtains the second interpretive model candidate word The step of include:
Determine the pressure value of the 5th pressing operation;
When the pressure value of the 5th pressing operation is in the first pre-set pressure range, according to second interpretive model The character chosen is parsed, the second interpretive model candidate word is obtained.
Preferably, the reception third pressing operation is switched to third interpretive model according to the third pressing operation Step includes:
Determine the pressure value of the third pressing operation;
When the pressure value of the third pressing operation is in the second pre-set pressure range, it is switched to the third parsing mould Formula.
The embodiment of the invention also discloses a kind of input units, comprising:
Input character string receiving module, character string for receiving input;
First candidate word obtains module, for solving according to current first interpretive model to the character in the character string Analysis, obtains the first interpretive model candidate word;
First candidate word display module, for showing the first interpretive model candidate word;
First interpretive model switching module is switched to for receiving the second pressing operation according to second pressing operation Second interpretive model;
Second candidate word obtains module, for according to second interpretive model to the first remaining word in the character string Symbol is parsed, and the second interpretive model candidate word is obtained;
Second candidate word display module, for showing the second interpretive model candidate word.
Preferably, described device further include:
Second interpretive model switching module is switched to for receiving third pressing operation according to the third pressing operation Third interpretive model;
Third candidate word obtains module, for according to the third interpretive model to the second remaining word in the character string Symbol is parsed, and third interpretive model candidate word is obtained.
Preferably, described device further include:
Third interpretive model switching module is switched to for receiving the first pressing operation according to first pressing operation Current first interpretive model.
Preferably, the first candidate word acquisition module includes:
First pressing operation receiving submodule, for receiving the 4th pressing operation;
First pressing duration determines submodule, for determining the pressing duration of the 4th pressing operation;
First character chooses submodule, for choosing number corresponding with the pressing duration in the input character string Character;
First candidate word obtains submodule, and the character for choosing according to the parsing of current first interpretive model obtains first Interpretive model candidate word.
Preferably, the first candidate word acquisition submodule includes:
First pressure value determination unit, for determining the pressure value of the 4th pressing operation;
First candidate word obtaining unit, for the pressure value when the 4th pressing operation in the first pre-set pressure range When, according to the character that the parsing of current first interpretive model is chosen, obtain the first interpretive model candidate word.
Preferably, the first candidate word acquisition module includes:
Second pressing duration determines submodule, for determining the pressing duration of first pressing operation;
Second character chooses submodule, in the character string, choosing the word of number corresponding with the pressing duration Symbol;
Second candidate word obtains submodule, and the character for choosing according to the parsing of current first interpretive model obtains first Interpretive model candidate word.
Preferably, the first interpretive model switching module includes:
First pressure value determines submodule, for determining the pressure value of second pressing operation;
First interpretive model switching submodule, for the pressure value when second pressing operation in the second preset pressure model When enclosing, the second interpretive model is switched to according to second pressing operation.
Preferably, the second candidate word acquisition module includes:
Third pressing operation receiving submodule, for receiving the 5th pressing operation;
Third pressing duration determines submodule, for determining the pressing duration of the 5th pressing operation;
Third character chooses submodule, for choosing corresponding with the pressing duration in the described first remaining character Several characters;
Third candidate word obtains submodule, and the character for choosing according to second interpretive model parsing obtains second Interpretive model candidate word.
Preferably, the third candidate word acquisition submodule includes:
Second pressure value determination unit, for determining the pressure value of the 5th pressing operation;
Second candidate word obtaining unit, for the pressure value when the 5th pressing operation in the first pre-set pressure range When, according to the character that second interpretive model parsing is chosen, obtain the second interpretive model candidate word.
Preferably, the second interpretive model switching module includes:
Second pressure value determines submodule, for determining the pressure value of the third pressing operation;
Second interpretive model switching submodule, for the pressure value when the third pressing operation in the second preset pressure model When enclosing, it is switched to the third interpretive model.
The embodiment of the invention also discloses a kind of devices for input, include memory and one or one Above program, one of them perhaps more than one program be stored in memory and be configured to by one or one with It includes the instruction for performing the following operation that upper processor, which executes the one or more programs:
Receive the character string of input;
The character in the character string is parsed according to current first interpretive model, obtains the first interpretive model candidate Word;
Show the first interpretive model candidate word;
The second pressing operation is received, is switched to the second interpretive model according to second pressing operation;
The first remaining character in the character string is parsed according to second interpretive model, obtains the second parsing Mode candidate word;
Show the second interpretive model candidate word.
The embodiment of the invention also discloses a kind of non-transitorycomputer readable storage mediums, when in the storage medium When instruction is executed by the processor of mobile terminal, so that a kind of method that mobile terminal is able to carry out text-processing, the method Include:
Receive the character string of input;
The character in the character string is parsed according to current first interpretive model, obtains the first interpretive model candidate Word;
Show the first interpretive model candidate word;
The second pressing operation is received, is switched to the second interpretive model according to second pressing operation;
The first remaining character in the character string is parsed according to second interpretive model, obtains the second parsing Mode candidate word;
Show the second interpretive model candidate word.
The embodiment of the present invention includes following advantages:
In embodiments of the present invention, after user inputs character string, user can switch different parsings by pressing operation Character string is converted to candidate word to carry out the group word under different interpretive models by mode.The method of the embodiment of the present invention is led to Pressing operation is crossed, is flexibly switched between different interpretive models, so that user be supported to carry out Chinese and English Mixed design, improves input Efficiency.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of input method embodiment 1 of the invention;
Fig. 2 is a kind of step flow chart of input method embodiment 2 of the invention;
Fig. 3 is a kind of step flow chart of input method embodiment 3 of the invention;
Fig. 4 is a kind of structural block diagram of input unit embodiment of the invention;
Fig. 5 be a kind of device for input shown according to an exemplary embodiment as terminal when block diagram.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real Applying mode, the present invention is described in further detail.
Referring to Fig.1, show a kind of step flow chart of input method embodiment 1 of the invention, can specifically include as Lower step:
Step 101, the character string of input is received;
User can be by the flicking virtual key in the dummy keyboard of input method, to input character string.It can also pass through The pressing keys in physical keyboard, to input character string.
Step 102, the character in the character string is parsed according to current first interpretive model, obtains the first parsing Mode candidate word;
In embodiments of the present invention, input method at least may include a variety of interpretive models
So-called interpretive model, which refers to, selects some core group word program, and the mode of group word is carried out to input character string.
Core group word program may include: Chinese core group word program and English core group word program.Chinese core group word Program is converted to Chinese candidate word for character is inputted according to preset Chinese group word mode;English core group word program, according to pre- If English group word mode by input character be converted to English candidate word.
By core group word program, Chinese parsing mould is properly termed as to the interpretive model that input character string carries out Chinese group word Formula.By core group word program, the interpretive model for carrying out English group word to input character string is properly termed as English interpretive model.
It is that different Chinese parses to the interpretive model that input character string carries out Chinese group word by different core group word programs Mode.It is different English parsing moulds to the interpretive model that input character string carries out English group word by different core group word programs Formula.
In embodiments of the present invention, the interpretive model of current default can be known as the first interpretive model, it can also basis The operation of user determines current first interpretive model, and the present invention is herein with no restrictions.
Step 103, the first interpretive model candidate word is shown;
Show the first interpretive model candidate word, for selection by the user.
Step 104, the second pressing operation is received, is switched to the second interpretive model according to second pressing operation;
In embodiments of the present invention, terminal (such as mobile phone, plate) support pressure inductive operation of input method is installed, such as 3D-Touch pressure sensitivity technology.
When user presses terminal screen, input method receives the pressing operation of user.Input method switches according to pressing operation Interpretive model.For example, different pressing dynamics correspond to different interpretive models.Step 105, according to second interpretive model pair The remaining character of the first of the character string is parsed, and the second interpretive model candidate word is obtained;
In embodiments of the present invention, the first remaining character may include the character not parsed according to the first interpretive model.
For example, if the character string of user's input are as follows: " wotongxuezhonglekddle ", Chinese interpretive model is to input The partial character " wotong " of character string is parsed, and obtained candidate word includes: my pain, my same, desired time of user's selection It selects and shields on word, the first remaining character then includes " xuezhonglekddle " not parsed according to the first interpretive model.
First remaining character can also include parsing and showing according to first mode, but the nonoptional part of user is waited Select the corresponding character of word.
For example, if the character string of user's input are as follows: " wotongxuezhonglekddle ", Chinese interpretive model is to input The partial character " wotongxuezhongle " of character string is parsed, and obtained candidate word includes: that my classmate has suffered, I am same It learns, I am same.
If the candidate word of user's selection is: I am classmate, and corresponding character is wotongxue.It inputs in character string Resolved character is " wotongxuezhongle ", and resolved character is not " kddle ", and the first remaining character then includes According to first mode parsing but user's selection useless " zhongle " and according to the first interpretive model parsing " kddle ".
Step 106, the second interpretive model candidate word is shown.
Show the second interpretive model candidate word for selection by the user.
In embodiments of the present invention, after user inputs character string, user can switch different parsings by pressing operation Mode, so that the group word in carrying out under different interpretive models, is converted to candidate word for character string.The method of the embodiment of the present invention, By pressing operation, flexibly switch between different interpretive models, so that user be supported to carry out Chinese and English Mixed design, improves defeated Enter efficiency.
Referring to Fig. 2, show a kind of step flow chart of input method embodiment 2 of the invention, can specifically include as Lower step:
Step 201, the character string of input is received;
Step 202, the character in the character string is parsed according to current first interpretive model, obtains the first parsing Mode candidate word;
In embodiments of the present invention, input method at least may include a variety of interpretive models.
In embodiments of the present invention, the step 202 may include following sub-step:
Sub-step S11 receives the 4th pressing operation;
Sub-step S12 determines the pressing duration of the 4th pressing operation;
Sub-step S13 chooses the character of number corresponding with the pressing duration in the input character string;
Sub-step S14 obtains the first interpretive model candidate word according to the character that the parsing of current first interpretive model is chosen.
In embodiments of the present invention, it if user has input longer character string, and only wants to in input character string Character positioned at front carries out a group word by the first current interpretive model.
User can select required number since the head of input character string by the pressing duration of control pressing operation Character carry out a group word, to reduce useless candidate word.Press duration it is longer, the character number of selection it is more.It can be pre- The mapping table of first setting pressing duration and character number, such as: a character is chosen in pressing expression in 0.5 second, and expression in 1 second chooses 2 A letter etc..If input character string are as follows: " wotongxuezhonglekddle ", user's pressing operation when it is 1 second a length of, then Two character wo are selected to carry out a group word.
In another example, one section of pressing duration range corresponds to several characters.For example, a length of 1-2s when pressing, then right Answer 4 characters.
In another example, input method can determine the approximate range of a character number, then according to pressing duration Accurate character number is determined according to current interpretive model.For example, user inputs character string " wotongxuezhonglekddle " presses duration according to user, determines that the character number approximate range chosen is a in 6-8, then It is analyzed according to current Chinese input mode, determines that " xue " these three characters should connect together, therefore choose Character number is 8, is corresponded to " wotongxue ".
In embodiments of the present invention, the sub-step S14 may further include following sub-step:
Sub-step S141 determines the pressure value of the 4th pressing operation;
Sub-step S142, when the pressure value of the 4th pressing operation is in the first pre-set pressure range, according to current The character that the parsing of first interpretive model is chosen, obtains the first interpretive model candidate word.
In embodiments of the present invention, terminal (such as mobile phone, plate) support pressure inductive operation of input method is installed, and And the operation of a variety of pressure limits can be distinguished.
User can select corresponding with pressing duration by pressing operation of the pressure value in the first pre-set pressure range Several characters carries out a group word in current first interpretive model.
If the pressure value of pressing operation not in the first pre-set pressure range, will not select corresponding with duration is pressed Several character, to reduce the generation of operation error.
Step 203, the first interpretive model candidate word is shown;
Step 204, the second pressing operation is received, is switched to the second interpretive model according to second pressing operation;
In embodiments of the present invention, the step 204 may include following sub-step:
Sub-step S21 determines the pressure value of second pressing operation;
Sub-step S22, when the pressure value of second pressing operation is in the second pre-set pressure range, according to described second Pressing operation is switched to the second interpretive model.
In embodiments of the present invention, user can be by the pressing operation of the second pre-set pressure range, from the first parsing mould Formula switches to the second interpretive model.If pressing operation is not in the second preset range, without switching, to reduce fault The generation of operation.
Step 205, the first remaining character in the character string is parsed according to second interpretive model, is obtained Second interpretive model candidate word;
In embodiments of the present invention, the first remaining character may include not according to interpretive model (the first parsing mould before Formula) parsing character, can also include parse and showing according to interpretive model before, but user nonoptional part time Select the corresponding character of word.
In embodiments of the present invention, input method itself judges the character number parsed under current interpretive model, in this way Some may be that user's idea is not inconsistent to obtained candidate word, this certain customers would not select to shield, it is therefore desirable to will This corresponding character of part candidate word is parsed again.
For example, if the character string of user's input are as follows: " wotongxue ", part of the Chinese interpretive model to input character string Or alphabet is parsed.Input method may select " wotong " to be parsed, or selection " wotongxue " is solved Analysis.Obtained candidate word includes: me with, my pain, my classmate.And actually user merely desires to that " my pain " is selected to carry out screen, user It is not intended to parsing " xue ", therefore " xue " is and shows under Chinese interpretive model, but the nonoptional part of user is candidate The corresponding character of word needs to be parsed under the second interpretive model.
In embodiments of the present invention, the step 205 may include following sub-step:
Sub-step S31 receives the 5th pressing operation;
Sub-step S32 determines the pressing duration of the 5th pressing operation;
Sub-step S33, in the input character string in the first not resolved remaining character, when choosing with the pressing The character of long corresponding number;
Sub-step S34 obtains the second interpretive model candidate word according to the character that second interpretive model parsing is chosen. In embodiments of the present invention, if user has input longer character string, and the first residue to input character string is only wanted to Partial character in character carries out a group word by the second interpretive model.
User can be a needed for selecting since the head of the first remaining character by the pressing duration of control pressing operation Several characters carries out a group word, and such input method just can only parse the desired character parsed of user, to reduce useless candidate Word.
Press duration it is longer, the character number of selection it is more.
In embodiments of the present invention, the sub-step S34 may further include following sub-step:
Sub-step S341 determines the pressure value of the 5th pressing operation;
Sub-step S342, when the pressure value of the 5th pressing operation is in the first pre-set pressure range, according to described The character that the parsing of second interpretive model is chosen, obtains the second interpretive model candidate word.
User can select corresponding with pressing duration by pressing operation of the pressure value in the first pre-set pressure range Several characters carries out a group word in current second interpretive model.
If the pressure value of pressing operation not in the first pre-set pressure range, will not select corresponding with duration is pressed Several characters.
In an alternative example of an embodiment of the present invention, for being switched to the second pressing operation of the second interpretive model, With for the second interpretive model selection character number the 5th pressing operation can be the same operation, i.e., first according to second Pressing operation determines corresponding second interpretive model, and the character of corresponding number is chosen further according to the duration of the second pressing operation.This In the case of kind, it is identical as default first pressure range to preset second pressure range.
Step 206, the second interpretive model candidate word is shown.
Step 207, third pressing operation is received, is switched to the third interpretive model according to the third pressing operation;
In embodiments of the present invention, third interpretive model can be and the first interpretive model and the second interpretive model not phases Same interpretive model.User can be switched to third interpretive model from the second interpretive model by third pressing operation.
In an alternative example of an embodiment of the present invention, third interpretive model can be identical with the first interpretive model Interpretive model, that is to say, that user can be switched to the first interpretive model from the second interpretive model by third pressing operation.? In the embodiment of the present invention, the step 207 may include following sub-step:
Sub-step S41 determines the pressure value of the third pressing operation;
Sub-step S42 is switched to described when the pressure value of the third pressing operation is in the second pre-set pressure range Three interpretive models.
In embodiments of the present invention, user can be by the pressing operation of the second pre-set pressure range, from the second parsing mould Formula switches to third interpretive model.
Step 208, the second remaining character in the character string is parsed according to the third interpretive model, is obtained Third interpretive model candidate word.
In embodiments of the present invention, the second remaining character can be not according to interpretive model (the first interpretive model before With the second interpretive model) parsing character, can also be and parse and show according to interpretive model before, but user does not select The corresponding character of part candidate word selected.
Step 209, third interpretive model candidate word is shown for selection by the user.
In embodiments of the present invention, after user inputs character string, user can switch different parsings by pressing operation Character string is converted to candidate word to carry out the group word under different interpretive models by mode.User can be by pressing operation certainly By switching interpretive model, until the character string of input is complete by the wish parsing of user.
The method of the embodiment of the present invention is flexibly switched between different interpretive models by pressing operation, to support to use Family carries out the Mixed design of different language, improves input efficiency.
In embodiments of the present invention, terminal (such as mobile phone, plate) support pressure inductive operation of input method is installed, and And the operation of two kinds of pre-set pressure ranges can be distinguished.
Wherein, the pressing operation of the first pre-set pressure range, for selecting the character of number corresponding with duration is pressed to carry out Group word.
The pressing operation of second pre-set pressure range switches between interpretive model for controlling.
Referring to Fig. 3, show a kind of step flow chart of input method embodiment 3 of the invention, can specifically include as Lower step:
Step 301, the first pressing operation is received, is switched to current first interpretive model according to first pressing operation;
When the interpretive model of input method default and user think interpretive model difference to be used, user can pass through pressing Operation switching interpretive model.
In the concrete realization, the pressure value of determining first pressing operation can be passed through;When the pressure value of the first pressing operation In the second pre-set pressure range, the first interpretive model is switched to according to the first pressing operation.
Step 302, the character string of input is received;
Step 303, the character in the character string is parsed according to current first interpretive model, obtains the first parsing Mode candidate word;
In the concrete realization, it can receive the 4th pressing operation, determine the pressing duration of the 4th pressing operation.Then In character string, the character of number corresponding with the pressing duration is chosen;And chosen according to the parsing of current first interpretive model Character obtains the first interpretive model candidate word.
In an alternative example of an embodiment of the present invention, for being switched to the first pressing operation of the first interpretive model, With for the first interpretive model selection character number the 4th pressing operation can be the same operation, i.e., first according to first Pressing operation determines corresponding second interpretive model, and the character of corresponding number is chosen further according to the duration of the first pressing operation.This In the case of kind, it is identical as default first pressure range to preset second pressure range.
Step 304, the first interpretive model candidate word is shown;
Step 305, the second pressing operation is received, is switched to the second interpretive model according to second pressing operation;
In the concrete realization, the pressure value of determining second pressing operation can be passed through;When the pressure value of the second pressing operation In the second pre-set pressure range, the second interpretive model is switched to according to the second pressing operation.
Step 306, the first remaining character in the character string is parsed according to second interpretive model, is obtained Second interpretive model candidate word;
In embodiments of the present invention, the first remaining character may include not according to interpretive model (the first parsing mould before Formula) parsing character, can also include parse and showing according to interpretive model before, but user nonoptional part time Select the corresponding character of word.
It in the concrete realization, can be by receiving the 5th pressing operation;Determine the pressing duration of the 5th pressing operation.Then In the first remaining character, the character of number corresponding with pressing duration is chosen;And the word chosen according to the parsing of the second interpretive model Symbol, obtains the second interpretive model candidate word.
In an alternative example of an embodiment of the present invention, for being switched to the second pressing operation of the second interpretive model, With for the second interpretive model selection character number the 5th pressing operation can be the same operation, i.e., first according to second Pressing operation determines corresponding second interpretive model, and the character of corresponding number is chosen further according to the duration of the second pressing operation.This In the case of kind, it is identical as default first pressure range to preset second pressure range.
Step 307, the second interpretive model candidate word is shown.
Step 308, third pressing operation is received, is switched to third interpretive model according to the third pressing operation;
In an alternative example of an embodiment of the present invention, third interpretive model can be identical with the first interpretive model Interpretive model, that is to say, that user can be switched to the first interpretive model from the second interpretive model by third pressing operation.With Family can be switched between the first interpretive model and the second interpretive model by pressing operation.
Step 309, the second remaining character in the character string is parsed according to the third interpretive model, is obtained Third interpretive model candidate word.
In embodiments of the present invention, the second remaining character may include not according to interpretive model (the first parsing mould before Formula and the second interpretive model) parsing character, can also include parsing and showing according to interpretive model before, but user does not have The corresponding character of selectable part candidate word.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to alternative embodiment, and the related movement not necessarily present invention is implemented Necessary to example.
Referring to Fig. 4, a kind of structural block diagram of input unit embodiment of the invention is shown, can specifically include such as lower die Block:
Input character string receiving module 401, character string for receiving input;
First candidate word obtain module 402, for according to current first interpretive model to the character in the character string into Row parsing, obtains the first interpretive model candidate word;
First candidate word display module 403, for showing the first interpretive model candidate word;
First interpretive model switching module 404 switches for receiving the second pressing operation according to second pressing operation To the second interpretive model;
Second candidate word obtain module 405, for according to second interpretive model to the remaining word in the character string Symbol is parsed, and the second interpretive model candidate word is obtained;
Second candidate word display module 406, for showing the second interpretive model candidate word.
In embodiments of the present invention, the device can also include:
Second interpretive model switching module is switched to for receiving third pressing operation according to the third pressing operation The third interpretive model;
Third candidate word obtains module, for according to the third interpretive model to the second remaining word in the character string Symbol is parsed, and third interpretive model candidate word is obtained.
In embodiments of the present invention, the device can also include:
Third interpretive model switching module is switched to for receiving the first pressing operation according to first pressing operation Current first interpretive model.
In a kind of optional example in embodiments of the present invention, first candidate word obtains module 402 and may include:
First pressing operation receiving submodule, for receiving the 4th pressing operation;
First pressing duration determines submodule, for determining the pressing duration of the 4th pressing operation;
First character chooses submodule, for choosing number corresponding with the pressing duration in the input character string Character;
First candidate word obtains submodule, and the character for choosing according to the parsing of current first interpretive model obtains first Interpretive model candidate word.
In embodiments of the present invention, the first candidate word acquisition submodule may include:
First pressure value determination unit, for determining the pressure value of the 4th pressing operation;
First candidate word obtaining unit, for the pressure value when the 4th pressing operation in the first pre-set pressure range When, according to the character that the parsing of current first interpretive model is chosen, obtain the first interpretive model candidate word.
In the optional example of another kind of the embodiment of the present invention, first candidate word obtains module 402 and may include:
Second pressing duration determines submodule, for determining the pressing duration of first pressing operation;
Second character chooses submodule, in the character string, choosing the word of number corresponding with the pressing duration Symbol;
Second candidate word obtains submodule, and the character for choosing according to the parsing of current first interpretive model obtains first Interpretive model candidate word.
In embodiments of the present invention, the first interpretive model switching module 404 may include:
First pressure value determines submodule, for determining the pressure value of second pressing operation;
First interpretive model switching submodule, for the pressure value when second pressing operation in the second preset pressure model When enclosing, the second interpretive model is switched to according to second pressing operation.
In embodiments of the present invention, the second candidate word acquisition module 405 may include:
Third pressing operation receiving submodule, for receiving the 5th pressing operation;
Third pressing duration determines submodule, for determining the pressing duration of the 5th pressing operation;
Third character chooses submodule, for choosing corresponding with the pressing duration in the described first remaining character Several characters;
Third candidate word obtains submodule, and the character for choosing according to second interpretive model parsing obtains second Interpretive model candidate word.
In embodiments of the present invention, the third candidate word acquisition submodule may include:
Second pressure value determination unit, for determining the pressure value of the 5th pressing operation;
Second candidate word obtaining unit, for the pressure value when the 5th pressing operation in the first pre-set pressure range When, according to the character that second interpretive model parsing is chosen, obtain the second interpretive model candidate word.
In embodiments of the present invention, the second interpretive model switching module may include:
Second pressure value determines submodule, for determining the pressure value of the third pressing operation;
Second interpretive model switching submodule, for the pressure value when the third pressing operation in the second preset pressure model When enclosing, it is switched to the third interpretive model.
In embodiments of the present invention, after user inputs character string, user can switch Chinese parsing by pressing operation Character string is converted to candidate word to carry out Chinese group word or English group word by mode and English interpretive model.The present invention is implemented Example method flexibly switched between the first interpretive model and the second interpretive model by pressing operation, thus support user into Row Chinese and English Mixed design, improves input efficiency.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
Fig. 5 is a kind of block diagram of device 500 for input shown according to an exemplary embodiment.For example, device 500 It can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices, Body-building equipment, personal digital assistant etc..
Referring to Fig. 5, device 500 may include following one or more components: processing component 502, memory 504, power supply Component 506, multimedia component 508, audio component 510, the interface 512 of input/output (I/O), sensor module 514, and Communication component 516.
The integrated operation of the usual control device 500 of processing component 502, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing element 502 may include that one or more processors 520 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 502 may include one or more modules, just Interaction between processing component 502 and other assemblies.For example, processing component 502 may include multi-media module, it is more to facilitate Interaction between media component 508 and processing component 502.
Memory 504 is configured as storing various types of data to support the operation in equipment 500.These data are shown Example includes the instruction of any application or method for operating on device 500, contact data, and telephone book data disappears Breath, picture, video etc..Memory 504 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 506 provides electric power for the various assemblies of device 500.Power supply module 506 may include power management system System, one or more power supplys and other with for device 500 generate, manage, and distribute the associated component of electric power.
Multimedia component 508 includes the screen of one output interface of offer between described device 500 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 508 includes a front camera and/or rear camera.When equipment 500 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 510 is configured as output and/or input audio signal.For example, audio component 510 includes a Mike Wind (MIC), when device 500 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 504 or via communication set Part 516 is sent.In some embodiments, audio component 510 further includes a loudspeaker, is used for output audio signal.
I/O interface 512 provides interface between processing component 502 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 514 includes one or more sensors, and the state for providing various aspects for device 500 is commented Estimate.For example, sensor module 514 can detecte the state that opens/closes of equipment 500, and the relative positioning of component, for example, it is described Component is the display and keypad of device 500, and sensor module 514 can be with 500 1 components of detection device 500 or device Position change, the existence or non-existence that user contacts with device 500,500 orientation of device or acceleration/deceleration and device 500 Temperature change.Sensor module 514 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 514 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 516 is configured to facilitate the communication of wired or wireless way between device 500 and other equipment.Device 500 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 516 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 516 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 500 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 504 of instruction, above-metioned instruction can be executed by the processor 520 of device 500 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal When device executes, so that mobile terminal is able to carry out a kind of input method, which comprises
Receive the character string of input;
The character in the character string is parsed according to current first interpretive model, obtains the first interpretive model candidate Word;
Show the first interpretive model candidate word;
The second pressing operation is received, is switched to the second interpretive model according to second pressing operation;
The first remaining character in the character string is parsed according to second interpretive model, obtains the second parsing Mode candidate word;
Show the second interpretive model candidate word.
Optionally, the method also includes:
Third pressing operation is received, is switched to third interpretive model according to the third pressing operation;
The second remaining character in the character string is parsed according to the third interpretive model, obtains third parsing Mode candidate word.
Optionally, the method also includes:
The first pressing operation is received, is switched to current first interpretive model according to first pressing operation.
Optionally, described that the character in the character string is parsed according to current first interpretive model, obtain first The step of interpretive model candidate word includes:
Receive the 4th pressing operation;
Determine the pressing duration of the 4th pressing operation;
In the input character string, the character of number corresponding with the pressing duration is chosen;
According to the character that the parsing of current first interpretive model is chosen, the first interpretive model candidate word is obtained.
Optionally, the character chosen according to the parsing of current first interpretive model, obtains the first interpretive model candidate word The step of include:
Determine the pressure value of the 4th pressing operation;
When the pressure value of the 4th pressing operation is in the first pre-set pressure range, according to current first interpretive model The character chosen is parsed, the first interpretive model candidate word is obtained.
Optionally, described that the character in the character string is parsed according to current first interpretive model, obtain first The step of interpretive model candidate word includes:
Determine the pressing duration of first pressing operation;
In the character string, the character of number corresponding with the pressing duration is chosen;
According to the character that the parsing of current first interpretive model is chosen, the first interpretive model candidate word is obtained.
Optionally, the second pressing operation of the reception is switched to the second interpretive model according to second pressing operation Step includes:
Determine the pressure value of second pressing operation;
When the pressure value of second pressing operation is in the second pre-set pressure range, cut according to second pressing operation Change to the second interpretive model.
It is optionally, described that the first remaining character in the character string is parsed according to second interpretive model, The step of obtaining the second interpretive model candidate word include:
Receive the 5th pressing operation;Determine the pressing duration of the 5th pressing operation;
In the described first remaining character, the character of number corresponding with the pressing duration is chosen;
According to the character that second interpretive model parsing is chosen, the second interpretive model candidate word is obtained.
Optionally, the character chosen according to second interpretive model parsing, obtains the second interpretive model candidate word The step of include:
Determine the pressure value of the 5th pressing operation;
When the pressure value of the 5th pressing operation is in the first pre-set pressure range, according to second interpretive model The character chosen is parsed, the second interpretive model candidate word is obtained.
Optionally, the reception third pressing operation is switched to third interpretive model according to the third pressing operation Step includes:
Determine the pressure value of the third pressing operation;
When the pressure value of the third pressing operation is in the second pre-set pressure range, it is switched to the third parsing mould Formula.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart And/or in one or more blocks of the block diagram specify function the step of.
Although the alternative embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including alternative embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
It is provided for the embodiments of the invention a kind of input method and a kind of input unit above, is described in detail, Used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only used In facilitating the understanding of the method and its core concept of the invention;At the same time, for those skilled in the art, according to the present invention Thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as Limitation of the present invention.
The embodiment of the invention discloses A1, a kind of input method, comprising:
Receive the character string of input;
The character in the character string is parsed according to current first interpretive model, obtains the first interpretive model candidate Word;
Show the first interpretive model candidate word;
The second pressing operation is received, is switched to the second interpretive model according to second pressing operation;
The first remaining character in the character string is parsed according to second interpretive model, obtains the second parsing Mode candidate word;
Show the second interpretive model candidate word.
A2, method as described in a1, further includes:
Third pressing operation is received, is switched to third interpretive model according to the third pressing operation;
The second remaining character in the character string is parsed according to the third interpretive model, obtains third parsing Mode candidate word.
A3, method as described in a1 or a2, further includes:
The first pressing operation is received, is switched to current first interpretive model according to first pressing operation.
A4, method as described in a1 or a2, it is described according to current first interpretive model to the character in the character string into Row parsing, the step of obtaining the first interpretive model candidate word include:
Receive the 4th pressing operation;
Determine the pressing duration of the 4th pressing operation;
In the input character string, the character of number corresponding with the pressing duration is chosen;
According to the character that the parsing of current first interpretive model is chosen, the first interpretive model candidate word is obtained.
A5, the method as described in A4, the character chosen according to the parsing of current first interpretive model, obtain the first parsing The step of mode candidate word includes:
Determine the pressure value of the 4th pressing operation;
When the pressure value of the 4th pressing operation is in the first pre-set pressure range, according to current first interpretive model The character chosen is parsed, the first interpretive model candidate word is obtained.
A6, the method as described in A3, it is described that the character in the character string is solved according to current first interpretive model Analysis, the step of obtaining the first interpretive model candidate word include:
Determine the pressing duration of first pressing operation;
In the character string, the character of number corresponding with the pressing duration is chosen;
According to the character that the parsing of current first interpretive model is chosen, the first interpretive model candidate word is obtained.
A7, method as described in a1 or a2, the second pressing operation of the reception, are switched to according to second pressing operation The step of second interpretive model includes:
Determine the pressure value of second pressing operation;
When the pressure value of second pressing operation is in the second pre-set pressure range, cut according to second pressing operation Change to the second interpretive model.
A8, method as described in a1 or a2, it is described surplus to first in the character string according to second interpretive model The step of remaining character is parsed, and the second interpretive model candidate word is obtained include:
Receive the 5th pressing operation;Determine the pressing duration of the 5th pressing operation;
In the described first remaining character, the character of number corresponding with the pressing duration is chosen;
According to the character that second interpretive model parsing is chosen, the second interpretive model candidate word is obtained.
A9, the method as described in A8, the character chosen according to second interpretive model parsing, obtain the second parsing The step of mode candidate word includes:
Determine the pressure value of the 5th pressing operation;
When the pressure value of the 5th pressing operation is in the first pre-set pressure range, according to second interpretive model The character chosen is parsed, the second interpretive model candidate word is obtained.
A10, as described in A2 method, the reception third pressing operation are switched to according to the third pressing operation The step of three interpretive models includes:
Determine the pressure value of the third pressing operation;
When the pressure value of the third pressing operation is in the second pre-set pressure range, it is switched to the third parsing mould Formula.
The embodiment of the invention also discloses B11, a kind of input unit, comprising:
Input character string receiving module, character string for receiving input;
First candidate word obtains module, for solving according to current first interpretive model to the character in the character string Analysis, obtains the first interpretive model candidate word;
First candidate word display module, for showing the first interpretive model candidate word;
First interpretive model switching module is switched to for receiving the second pressing operation according to second pressing operation Second interpretive model;
Second candidate word obtains module, for according to second interpretive model to the first remaining word in the character string Symbol is parsed, and the second interpretive model candidate word is obtained;
Second candidate word display module, for showing the second interpretive model candidate word.
B12, device as described in b11, further includes:
Second interpretive model switching module is switched to for receiving third pressing operation according to the third pressing operation Third interpretive model;
Third candidate word obtains module, for according to the third interpretive model to the second remaining word in the character string Symbol is parsed, and third interpretive model candidate word is obtained.
B13, the device as described in B11 or B12, further includes:
Third interpretive model switching module is switched to for receiving the first pressing operation according to first pressing operation Current first interpretive model.
B14, the device as described in B11 or B12, first candidate word obtain module and include:
First pressing operation receiving submodule, for receiving the 4th pressing operation;
First pressing duration determines submodule, for determining the pressing duration of the 4th pressing operation;
First character chooses submodule, for choosing number corresponding with the pressing duration in the input character string Character;
First candidate word obtains submodule, and the character for choosing according to the parsing of current first interpretive model obtains first Interpretive model candidate word.
B15, the device as described in B14, first candidate word obtain submodule and include:
First pressure value determination unit, for determining the pressure value of the 4th pressing operation;
First candidate word obtaining unit, for the pressure value when the 4th pressing operation in the first pre-set pressure range When, according to the character that the parsing of current first interpretive model is chosen, obtain the first interpretive model candidate word.
B16, the device as described in B13, first candidate word obtain module and include:
Second pressing duration determines submodule, for determining the pressing duration of first pressing operation;
Second character chooses submodule, in the character string, choosing the word of number corresponding with the pressing duration Symbol;
Second candidate word obtains submodule, and the character for choosing according to the parsing of current first interpretive model obtains first Interpretive model candidate word.
B17, the device as described in B11 or B12, the first interpretive model switching module include:
First pressure value determines submodule, for determining the pressure value of second pressing operation;
First interpretive model switching submodule, for the pressure value when second pressing operation in the second preset pressure model When enclosing, the second interpretive model is switched to according to second pressing operation.
B18, the device as described in B11 or B12, second candidate word obtain module and include:
Third pressing operation receiving submodule, for receiving the 5th pressing operation;
Third pressing duration determines submodule, for determining the pressing duration of the 5th pressing operation;
Third character chooses submodule, for choosing corresponding with the pressing duration in the described first remaining character Several characters;
Third candidate word obtains submodule, and the character for choosing according to second interpretive model parsing obtains second Interpretive model candidate word.
B19, the device as described in B18, the third candidate word obtain submodule and include:
Second pressure value determination unit, for determining the pressure value of the 5th pressing operation;
Second candidate word obtaining unit, for the pressure value when the 5th pressing operation in the first pre-set pressure range When, according to the character that second interpretive model parsing is chosen, obtain the second interpretive model candidate word.
B20, as described in B12 device, the second interpretive model switching module include:
Second pressure value determines submodule, for determining the pressure value of the third pressing operation;
Second interpretive model switching submodule, for the pressure value when the third pressing operation in the second preset pressure model When enclosing, it is switched to the third interpretive model.
The embodiment of the invention also discloses C21, a kind of device for input, include memory and one or More than one program, perhaps more than one program is stored in memory and is configured to by one or one for one of them It includes the instruction for performing the following operation that a above processor, which executes the one or more programs:
Receive the character string of input;
The character in the character string is parsed according to current first interpretive model, obtains the first interpretive model candidate Word;
Show the first interpretive model candidate word;
The second pressing operation is received, is switched to the second interpretive model according to second pressing operation;
The first remaining character in the character string is parsed according to second interpretive model, obtains the second parsing Mode candidate word;
Show the second interpretive model candidate word.
The embodiment of the invention also discloses D22, a kind of non-transitorycomputer readable storage medium, when the storage medium In instruction by mobile terminal processor execute when so that a kind of method that mobile terminal is able to carry out text-processing, described Method includes:
Receive the character string of input;
The character in the character string is parsed according to current first interpretive model, obtains the first interpretive model candidate Word;
Show the first interpretive model candidate word;
The second pressing operation is received, is switched to the second interpretive model according to second pressing operation;
The first remaining character in the character string is parsed according to second interpretive model, obtains the second parsing Mode candidate word;
Show the second interpretive model candidate word.

Claims (13)

1. a kind of input method characterized by comprising
Receive the character string of input;
The character in the character string is parsed according to current first interpretive model, obtains the first interpretive model candidate word;
Show the first interpretive model candidate word;
The second pressing operation is received, is switched to the second interpretive model according to second pressing operation;
The first remaining character in the character string is parsed according to second interpretive model, obtains the second interpretive model Candidate word;
Show the second interpretive model candidate word.
2. the method according to claim 1, wherein further include:
Third pressing operation is received, is switched to third interpretive model according to the third pressing operation;
The second remaining character in the character string is parsed according to the third interpretive model, obtains third interpretive model Candidate word.
3. method according to claim 1 or 2, which is characterized in that further include:
The first pressing operation is received, is switched to current first interpretive model according to first pressing operation.
4. method according to claim 1 or 2, which is characterized in that it is described according to current first interpretive model to the word According with the step of character in string is parsed, obtains the first interpretive model candidate word includes:
Receive the 4th pressing operation;
Determine the pressing duration of the 4th pressing operation;
In the input character string, the character of number corresponding with the pressing duration is chosen;
According to the character that the parsing of current first interpretive model is chosen, the first interpretive model candidate word is obtained.
5. according to the method described in claim 4, it is characterized in that, the word chosen according to the parsing of current first interpretive model Symbol, the step of obtaining the first interpretive model candidate word include:
Determine the pressure value of the 4th pressing operation;
When the pressure value of the 4th pressing operation is in the first pre-set pressure range, parsed according to current first interpretive model The character of selection obtains the first interpretive model candidate word.
6. according to the method described in claim 3, it is characterized in that, it is described according to current first interpretive model to the character string In character the step of being parsed, obtaining the first interpretive model candidate word include:
Determine the pressing duration of first pressing operation;
In the character string, the character of number corresponding with the pressing duration is chosen;
According to the character that the parsing of current first interpretive model is chosen, the first interpretive model candidate word is obtained.
7. method according to claim 1 or 2, which is characterized in that the second pressing operation of the reception, according to described second Pressing operation is switched to the step of the second interpretive model and includes:
Determine the pressure value of second pressing operation;
When the pressure value of second pressing operation is in the second pre-set pressure range, it is switched to according to second pressing operation Second interpretive model.
8. method according to claim 1 or 2, which is characterized in that it is described according to second interpretive model to the word According with the step of the in string first remaining character is parsed, obtains the second interpretive model candidate word includes:
Receive the 5th pressing operation;Determine the pressing duration of the 5th pressing operation;
In the described first remaining character, the character of number corresponding with the pressing duration is chosen;
According to the character that second interpretive model parsing is chosen, the second interpretive model candidate word is obtained.
9. according to the method described in claim 8, it is characterized in that, the word chosen according to second interpretive model parsing Symbol, the step of obtaining the second interpretive model candidate word include:
Determine the pressure value of the 5th pressing operation;
When the pressure value of the 5th pressing operation is in the first pre-set pressure range, parsed according to second interpretive model The character of selection obtains the second interpretive model candidate word.
10. according to the method described in claim 2, it is characterized in that, the reception third pressing operation, is pressed according to the third Press operation is switched to the step of third interpretive model and includes:
Determine the pressure value of the third pressing operation;
When the pressure value of the third pressing operation is in the second pre-set pressure range, it is switched to the third interpretive model.
11. a kind of input unit characterized by comprising
Input character string receiving module, character string for receiving input;
First candidate word obtains module, for being parsed according to current first interpretive model to the character in the character string, Obtain the first interpretive model candidate word;
First candidate word display module, for showing the first interpretive model candidate word;
First interpretive model switching module is switched to second according to second pressing operation for receiving the second pressing operation Interpretive model;
Second candidate word obtains module, for according to second interpretive model to the first remaining character in the character string into Row parsing, obtains the second interpretive model candidate word;
Second candidate word display module, for showing the second interpretive model candidate word.
12. a kind of device for input, which is characterized in that it include memory and one or more than one program, Perhaps more than one program is stored in memory and is configured to be executed by one or more than one processor for one of them The one or more programs include the instruction for performing the following operation:
Receive the character string of input;
The character in the character string is parsed according to current first interpretive model, obtains the first interpretive model candidate word;
Show the first interpretive model candidate word;
The second pressing operation is received, is switched to the second interpretive model according to second pressing operation;
The first remaining character in the character string is parsed according to second interpretive model, obtains the second interpretive model Candidate word;
Show the second interpretive model candidate word.
13. a kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal When device executes, so that a kind of method that mobile terminal is able to carry out text-processing, which comprises
Receive the character string of input;
The character in the character string is parsed according to current first interpretive model, obtains the first interpretive model candidate word;
Show the first interpretive model candidate word;
The second pressing operation is received, is switched to the second interpretive model according to second pressing operation;
The first remaining character in the character string is parsed according to second interpretive model, obtains the second interpretive model Candidate word;
Show the second interpretive model candidate word.
CN201710876293.3A 2017-09-25 2017-09-25 Input method and device Active CN109558016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710876293.3A CN109558016B (en) 2017-09-25 2017-09-25 Input method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710876293.3A CN109558016B (en) 2017-09-25 2017-09-25 Input method and device

Publications (2)

Publication Number Publication Date
CN109558016A true CN109558016A (en) 2019-04-02
CN109558016B CN109558016B (en) 2022-12-13

Family

ID=65862822

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710876293.3A Active CN109558016B (en) 2017-09-25 2017-09-25 Input method and device

Country Status (1)

Country Link
CN (1) CN109558016B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416217A (en) * 2019-08-20 2021-02-26 北京搜狗科技发展有限公司 Input method and related device
CN112711685A (en) * 2020-12-29 2021-04-27 维沃移动通信有限公司 Object display method and device and electronic equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101261545A (en) * 2008-04-25 2008-09-10 中兴通讯股份有限公司 Terminal equipment and its input method
WO2008127937A1 (en) * 2007-04-11 2008-10-23 Google Inc. Input method editor having a secondary language mode
CN101556508A (en) * 2009-05-08 2009-10-14 腾讯科技(深圳)有限公司 Candidate phrase generating method, equipment, system and device in input method
CN101943952A (en) * 2010-01-27 2011-01-12 北京搜狗科技发展有限公司 Mixed input method of at least two languages and input method system
CN102012748A (en) * 2010-11-30 2011-04-13 哈尔滨工业大学 Statement-level Chinese and English mixed input method
CN102262450A (en) * 2010-05-27 2011-11-30 北京搜狗科技发展有限公司 Method and device for converting characters based on mixed input character string
CN102566772A (en) * 2010-12-26 2012-07-11 上海量明科技发展有限公司 Method and system for implementation of character hybrid input
CN105446495A (en) * 2015-12-08 2016-03-30 北京搜狗科技发展有限公司 Candidate sorting method and apparatus
CN106886294A (en) * 2015-12-15 2017-06-23 北京搜狗科技发展有限公司 A kind of input method error correction method and device
CN107132927A (en) * 2016-02-29 2017-09-05 北京搜狗科技发展有限公司 Input recognition methods and device and the device for identified input character of character
CN107179835A (en) * 2016-03-11 2017-09-19 北京搜狗科技发展有限公司 A kind of input method and device, a kind of device for being used to input

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008127937A1 (en) * 2007-04-11 2008-10-23 Google Inc. Input method editor having a secondary language mode
US20100169770A1 (en) * 2007-04-11 2010-07-01 Google Inc. Input method editor having a secondary language mode
CN101261545A (en) * 2008-04-25 2008-09-10 中兴通讯股份有限公司 Terminal equipment and its input method
CN101556508A (en) * 2009-05-08 2009-10-14 腾讯科技(深圳)有限公司 Candidate phrase generating method, equipment, system and device in input method
CN101943952A (en) * 2010-01-27 2011-01-12 北京搜狗科技发展有限公司 Mixed input method of at least two languages and input method system
CN102262450A (en) * 2010-05-27 2011-11-30 北京搜狗科技发展有限公司 Method and device for converting characters based on mixed input character string
CN102012748A (en) * 2010-11-30 2011-04-13 哈尔滨工业大学 Statement-level Chinese and English mixed input method
CN102566772A (en) * 2010-12-26 2012-07-11 上海量明科技发展有限公司 Method and system for implementation of character hybrid input
CN105446495A (en) * 2015-12-08 2016-03-30 北京搜狗科技发展有限公司 Candidate sorting method and apparatus
CN106886294A (en) * 2015-12-15 2017-06-23 北京搜狗科技发展有限公司 A kind of input method error correction method and device
CN107132927A (en) * 2016-02-29 2017-09-05 北京搜狗科技发展有限公司 Input recognition methods and device and the device for identified input character of character
CN107179835A (en) * 2016-03-11 2017-09-19 北京搜狗科技发展有限公司 A kind of input method and device, a kind of device for being used to input

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416217A (en) * 2019-08-20 2021-02-26 北京搜狗科技发展有限公司 Input method and related device
CN112416217B (en) * 2019-08-20 2022-05-06 北京搜狗科技发展有限公司 Input method and related device
CN112711685A (en) * 2020-12-29 2021-04-27 维沃移动通信有限公司 Object display method and device and electronic equipment

Also Published As

Publication number Publication date
CN109558016B (en) 2022-12-13

Similar Documents

Publication Publication Date Title
CN105426200B (en) Communication module group firmware and plug-in unit generation method and device
CN105160239A (en) Application program access restriction method and apparatus
CN104461304A (en) Application control method and device
CN104793843B (en) desktop display method and device
RU2609033C1 (en) Input method and input system
CN104978200A (en) Application program display method and device
CN105488374B (en) unlocking method and device
CN105487805A (en) Object operating method and device
CN103914148A (en) Function interface display method and device and terminal equipment
CN104267881A (en) Toolbar operating method and device
CN104461568A (en) Electronic accessory recognition device and method
CN105242942A (en) Application control method and apparatus
CN104461348A (en) Method and device for selecting information
CN105426060A (en) Application control method and device
CN105511777A (en) Session display method and device of touch display screen
CN106775377A (en) The control method of gesture identifying device, equipment and gesture identifying device
CN104375760B (en) Method for information display and device
CN106774976A (en) input method switching method and device
CN108803892B (en) Method and device for calling third party application program in input method
CN107368280A (en) Method for controlling volume, device and the interactive voice equipment of interactive voice
CN105468281A (en) Setup interface display method and device
CN107861637A (en) Character input method, device and computer-readable recording medium
CN104503762A (en) Device and method for identifying electronic accessory
CN104636064A (en) Gesture generating method and device
CN109558016A (en) A kind of input method and device

Legal Events

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