CN104317416B - A kind of method and apparatus of input - Google Patents

A kind of method and apparatus of input Download PDF

Info

Publication number
CN104317416B
CN104317416B CN201410533017.3A CN201410533017A CN104317416B CN 104317416 B CN104317416 B CN 104317416B CN 201410533017 A CN201410533017 A CN 201410533017A CN 104317416 B CN104317416 B CN 104317416B
Authority
CN
China
Prior art keywords
feature
chinese
english
input
character string
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.)
Active
Application number
CN201410533017.3A
Other languages
Chinese (zh)
Other versions
CN104317416A (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 CN201410533017.3A priority Critical patent/CN104317416B/en
Publication of CN104317416A publication Critical patent/CN104317416A/en
Application granted granted Critical
Publication of CN104317416B publication Critical patent/CN104317416B/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

Abstract

The embodiments of the invention provide a kind of method and apparatus of input, described method includes:Detect one or more buttons of input;Each button has one or more character strings of mapping;One or more words corresponding to one or more character strings that each button is mapped are searched respectively;By one or more of spelling words intellectuals into one or more feature phrases;Show one or more of feature phrases.The embodiment of the present invention reduces the switching that user hits function button progress input pattern in input phrase time point, improves the efficiency of input, meanwhile, reduce the response times that equipment switches to input pattern, reduce the consumption of device resource.

Description

A kind of method and apparatus of input
Technical field
The present invention relates to the technical field of input method, method and a kind of device of input more particularly to a kind of input.
Background technology
At present, with the high speed development of internet, network application trend diversification, especially mobile device is widely available, Into mobile network's epoch, online information content sharply increases.
In all cases, user is frequently necessary to input information.For example, keyword search net is inputted in a search engine Page, word and other users are inputted in immediate communication tool and exchange, etc..
Therefore, the bridge that input equipment communicates as computer with user or other equipment, it is user and computer system Between carry out one of main device of information exchange, be widely used in every field so that user can be defeated to computer Enter data and information.
Because the available position of input equipment is limited, therefore generally it is re-used.For example, for same input equipment, working as Premode can be used for inputting Chinese character, when clicking on a certain function button, can input numeral, click on another function button When, English, etc. can be inputted.
User is to input different information, such as input numeral and Chinese character, it is necessary to which first input is digital under some pattern, A certain function button is clicked on, switches to other patterns input Chinese character, this not only make it that user's operation is cumbersome, and input efficiency is low Under, and repeatedly response modes switching can make it that device resource consumption is very big.
The content of the invention
Technical problem to be solved of the embodiment of the present invention is to provide a kind of method of input, to improve input efficiency, Reduce device resource consumption.
Accordingly, the embodiment of the present invention additionally provides a kind of device of input, to ensure the realization of the above method and answer With.
In order to solve the above problems, the embodiment of the invention discloses a kind of method of input, including:
Detect one or more buttons of input;Each button has one or more character strings of mapping;
One or more words corresponding to one or more character strings that each button is mapped are searched respectively;
By one or more of spelling words intellectuals into one or more feature phrases;
Show one or more of feature phrases.
Preferably, the character string includes but is not limited to digit strings, Chinese character string, English character string and symbol word At least one of symbol string.
Preferably, the word includes but is not limited at least one of numeral, Chinese, English and symbol;
The step of one or more words corresponding to the one or more character strings searched each button respectively and mapped Suddenly include:
Lookup meets numeral corresponding to preset range, described digit strings;
Search corresponding at least one of the Chinese character string, the English character string and described sign character string At least one of Chinese, English and symbol.
Preferably, it is described to include one or more of spelling words intellectuals into the step of one or more feature phrases:
Judge the numeral, whether meet the binding rule specified with least one of the Chinese, English and symbol;
If so, the numeral is then combined into one or more with least one of the Chinese, English and symbol Individual feature phrase.
Preferably, the step of one or more buttons of the detection input include:
When the Action Events that triggering is specified, one inputted under text input mode corresponding to the Action Events is detected Individual or multiple buttons.
Preferably, one or more texts corresponding to the one or more character strings searched each button respectively and mapped The step of word, includes:
Word corresponding to the character string that each button is mapped in the input pattern is searched respectively;
Wherein, the text input mode includes but is not limited to number entry mode, input in Chinese pattern, English input mould At least one of formula and symbol input pattern;
The word includes but is not limited at least one of numeral, Chinese, English and symbol.
Preferably, the step of displaying one or more of feature phrases include:
One or more of Feature Words are assembled and put corresponding weight;
One or more feature phrases after configuration weight are ranked up;
Show weight higher than default weight threshold and the preceding one or more feature phrases of sequence.
Preferably, it is described one or more of Feature Words are assembled put corresponding to weight the step of include:
One or more of Feature Words are assembled according to default influence element and put corresponding weight;
Wherein, the influence element includes but is not limited to following at least one:
The probability of occurrence of numeral, the probability of occurrence of Chinese, the matching degree of feature phrase and button.
Preferably, it is described one or more of Feature Words are assembled put corresponding to weight the step of include:
One or more of spelling words intellectuals are calculated into the probability of the feature phrase, are obtained corresponding to the feature phrase Weight.
The embodiment of the invention also discloses a kind of device of input, including:
Button detection module, for detecting one or more buttons of input;Each button has one or more of mapping Individual character string;
Text search module, corresponding to the one or more character strings mapped for searching each button respectively one or Multiple words;
Feature phrase composite module, for by one or more of spelling words intellectuals into one or more feature phrases;
Feature phrase display module, for showing one or more of feature phrases.
Preferably, the character string includes but is not limited to digit strings, Chinese character string, English character string and symbol word At least one of symbol string.
Preferably, the word includes but is not limited at least one of numeral, Chinese, English and symbol;
The text search module includes:
First searches submodule, meets numeral corresponding to preset range, described digit strings for lookup;
Second searches submodule, for searching the Chinese character string, the English character string and the sign character string At least one of corresponding at least one of Chinese, English and symbol.
Preferably, the feature phrase composite module includes:
Rule of combination judging submodule, for judging the numeral, with least one of the Chinese, English and symbol Whether the binding rule specified is met;If so, then call combination submodule;
Combine submodule, for will the numeral, be combined into at least one of the Chinese, English and symbol One or more feature phrases.
Preferably, the button detection module includes:
Detection trigger submodule, for when triggering the Action Events specified, detecting literary corresponding to the Action Events The one or more buttons inputted under word input pattern.
Preferably, the text search module includes:
3rd searches submodule, is corresponded to for searching the character string that each button is mapped in the input pattern respectively Word;
Wherein, the text input mode includes but is not limited to number entry mode, input in Chinese pattern, English input mould At least one of formula and symbol input pattern;
The word includes but is not limited at least one of numeral, Chinese, English and symbol.
Preferably, the feature phrase display module includes:
Weight calculation submodule, corresponding weight is put for being assembled to one or more of Feature Words;
Sorting sub-module, for being ranked up to one or more feature phrases after configuration weight;
Sequence displaying submodule, for showing weight higher than default weight threshold and the preceding one or more of sequence Feature phrase.
Preferably, the weight calculation submodule includes:
First calculating sub module, put correspondingly for being assembled according to default influence element to one or more of Feature Words Weight;
Wherein, the influence element includes but is not limited to following at least one:
The probability of occurrence of numeral, the probability of occurrence of Chinese, the matching degree of feature phrase and button.
Preferably, the weight calculation submodule includes:
Second calculating sub module, for calculating one or more of spelling words intellectuals into the probability of the feature phrase, obtain Obtain weight corresponding to the feature phrase.
Compared with background technology, the embodiment of the present invention includes advantages below:
It is one or more corresponding to one or more character strings that the embodiment of the present invention is mapped each button of input Word, one or more feature phrases are combined into, reduce user and hit function button progress input pattern in input phrase time point Switching, improve the efficiency of input, meanwhile, reduce the response times that equipment switches to input pattern, reduce equipment money The consumption in source.
The embodiment of the present invention searches one or more character strings of each button mapping of input, and lookup meets preset range , numeral corresponding to digit strings, search in the Chinese character string, the English character string and the sign character string At least one of at least one corresponding Chinese, English and symbol, will meet the numeral of specified binding rule, with Chinese, At least one of English and symbol are combined into digital measure word, improve the accuracy of digital quantity word combination, further increase The efficiency of input, meanwhile, the switching that user hits function button progress input pattern in input phrase time point is also further reduced, The response times that equipment switches to input pattern are further reduced, further reduce the consumption of device resource.
The weight of Feature Words group is calculated in the embodiment of the present invention, the reasonability of different literals combination is considered, to adjust feature The display location of phrase, by weight is high, the sequence of more rational feature phrase is shown preceding, further improve display location Utilization rate, with reduce page turning etc. operation, further reduce device resource consumption.
The embodiment of the present invention is detected under text input mode corresponding to Action Events in the Action Events that triggering is specified One or more buttons of input, search respectively literary corresponding to the character string that each button is mapped in the input pattern Word, and feature phrase is combined into, inputted in a manner of arranging input pattern, reduce the possibility of spelling words intellectual, reduced The amount of calculation of spelling words intellectual, the accuracy of digital quantity word combination is improved, further increase the efficiency of input, meanwhile, The switching that user hits function button progress input pattern in input phrase time point is further reduced, further reduces equipment pair The response times of input pattern switching, further reduce the consumption of device resource.
Brief description of the drawings
Fig. 1 is a kind of step flow chart of the embodiment of the method 1 of input of the present invention;
Fig. 2 is a kind of step flow chart of the embodiment of the method 2 of input of the present invention;
Fig. 3 A to Fig. 3 C are a kind of exemplary plots of dummy keyboard of the present invention;
Fig. 4 is a kind of step flow chart of the embodiment of the method 3 of input of the present invention;
Fig. 5 is a kind of structured flowchart of the device embodiment of input of the present invention.
Embodiment
In order to facilitate the understanding of the purposes, features and advantages of the present invention, it is below in conjunction with the accompanying drawings and specific real Applying mode, the present invention is further detailed explanation.
Reference picture 1, a kind of step flow chart of the embodiment of the method 1 of input of the present invention is shown, can specifically be included Following steps:
Step 101, one or more buttons of input are detected;Each button has one or more character strings of mapping;
Step 102, one or more words corresponding to one or more character strings that each button is mapped are searched respectively;
Step 103, by one or more of spelling words intellectuals into one or more feature phrases;
Step 104, one or more of feature phrases are shown.
It is one or more corresponding to one or more character strings that the embodiment of the present invention is mapped each button of input Word, one or more feature phrases are combined into, reduce user and hit function button progress input pattern in input phrase time point Switching, improve the efficiency of input, meanwhile, reduce the response times that equipment switches to input pattern, reduce equipment money The consumption in source.
Reference picture 2, a kind of step flow chart of the embodiment of the method 2 of input of the present invention is shown, can specifically be included Following steps:
Step 201, one or more buttons of input are detected;
It should be noted that the embodiment of the present invention can apply to have in the electronic equipment of input unit, input dress Dummy keyboard, physical keyboard etc. can be included by putting, and the electronic equipment can include mobile phone, PDA (Personal Digital Assistant, personal digital assistant), laptop computer, palm PC etc., the embodiment of the present invention is not any limitation as to this.
These electronic equipments can be supported to include the operation such as Windows, Android (Android), IOS, WindowsPhone System, it can generally run the application program inputted by modes such as dummy keyboard or physical keyboards.Wherein, the virtual key Disk can include nine grids keyboard, full keyboard (such as QWERT keyboards), and the application program can be including input method procedure etc. Deng.
Generally, the input unit can have one or more buttons, and the button is often re-used, and each button can be with One or more character strings with mapping, it can be used for input and include but is not limited in numeral, English, Chinese and symbol extremely It is few one.
Button can match in advance with the mapping relations of character string, be stored in database, can be selected in application Therein a certain or several mapping relations are taken, and are not necessarily whole mapping relations.
In the specific implementation, the character string can include but is not limited to digit strings (such as Arabic numerals), Chinese character string (such as phonetic, stroke), English character string (such as capitalizing English character string, small English character string) and At least one of sign character string (such as comma, fullstop, colon, percentage sign).
For example, referring to Fig. 3 A and 3B, a kind of exemplary plot of dummy keyboard of the embodiment of the present invention, the dummy keyboard are shown 300 are properly termed as nine grids keyboard or 9 key boards, can mainly include 9 virtual keys.For virtual key 301, such as Fig. 3 A Shown, under Pinyin Input pattern, initial consonant " d ", simple or compound vowel of a Chinese syllable " e " and initial consonant " f " can be inputted by clicking on the virtual key 301;Click on Digital handoff functionality button 303, can switch to number entry mode;Under number entry mode, the virtual key 301 is clicked on It can input digital " 3 ";Chinese and English handoff functionality button 304 is clicked on, English input mode can be switched to;Mould is inputted in English Under formula, English " d ", " e ", " f " can be inputted by clicking on the virtual key 301, or, " D ", " E ", " F ";In Pinyin Input mould Under formula, number entry mode and English input mode, comma can be inputted by clicking on the virtual key 302, ";As shown in Figure 3 B, Under stroke entry mode, clicking on the virtual key 301 can be with entering stroke " Pie ".
In another example reference picture 3C, the exemplary plot of another dummy keyboard of the embodiment of the present invention, the dummy keyboard are shown 310 are properly termed as full keyboard or 26 key boards, and typical a full keyboard or 26 key boards can be QWERT keyboards, mainly may be used With including 26 virtual keys.For virtual key 311, under Pinyin Input pattern, clicking on the virtual key 311 can input Semivowel " w ";Chinese and English handoff functionality button 313 is clicked on, English input mode can be switched to;Under English input mode, Clicking on the virtual key 311 can input English " w " or " W ";Digital handoff functionality button 314 is clicked on, number can be switched to Word input pattern;Under number entry mode, clicking on the virtual key 311 can input digital " 2 ";For virtual key 312, Under Pinyin Input pattern, initial consonant " g " can be inputted by clicking on the virtual key 312, and under English input mode, it is virtual to click on this Button 311 can input English " g " or " G ";Symbol handoff functionality button 315 is clicked on, symbol input pattern can be switched to; Under symbol input pattern, percentage sign " % " can be inputted by clicking on the virtual key 312.
Certainly, above-mentioned button and one or more character strings of mapping are intended only as example, are implementing the embodiment of the present invention When, one or more character strings of other buttons and mapping can be set according to actual conditions, and the embodiment of the present invention is not added with to this With limitation.In addition, in addition to above-mentioned button and one or more character strings of mapping, those skilled in the art can also be according to reality Border needs one or more character strings using other buttons and mapping, and the embodiment of the present invention is not also any limitation as to this.
In actual applications, the word corresponding to character string can include but is not limited in numeral, Chinese, English and symbol At least one, i.e., the word corresponding to digit strings can be numeral, during the word corresponding to Chinese character string can be Text, the word corresponding to English character string can be English, and word corresponding to sign character string can be symbol.
Step 202, lookup meets numeral corresponding to preset range, described digit strings;
In embodiments of the present invention, the button of input can be resolved to digital measure word (i.e. feature phrase), specifically can be with Refer to the phrase containing numeral.
In the specific implementation, in order to precisely parse digital measure word, and system resources consumption is reduced, can not be to every kind of group Conjunction is all enumerated, it is necessary to judge possibility, and therefore, can pre-set scope, the digit strings that button is mapped need Will the scope, default scope makes digital measure word more accurate, and more reasonable with the literary combinatorics on words such as Chinese.
It should be noted that the digital scope set by different field scope can be different.
For example, " on January 1st, 2014 " this phrase is rational, but " on 13 41st, 22222 " may determine that at present for It is irrational, then in expression time, 0-3000 is may range from for the time, 1-12 is may range from for month, 1-31 is may range from for the date.
In another example at this stage, 101 floor layers are rational, and -2 floor layers are rational, and 1001 floor layers are not Reasonably, -100 floor layers are irrational that then when expressing floor, can set in the range of -20-200.
For digit strings, if meeting preset range, digital corresponding to the digit strings, example can be directly extracted Such as, can directly be extracted digital " 123 " for digit strings " 123 ".
Step 203, at least one of the Chinese character string, the English character string and described sign character string are searched At least one of corresponding Chinese, English and symbol.
Can be the corresponding Chinese of several Chinese character strings for Chinese character string, for example, in spelling, phonetic " wo " can correspond to the Chinese such as " I " or the corresponding Chinese of a Chinese character string, for example, in spelling, phonetic " o " can correspond to Chinese such as " ", and in simplicity, phonetic " w " can correspond to Chinese, the embodiment of the present invention such as " we " and this is not added with With limitation.
Can directly extract English corresponding to the English character string, for example, for English character for English character string String " com " can be extracted directly English " com ".
Can directly extract symbol corresponding to the sign character string, for example, for sign character for sign character string String " " can directly extract symbol " ".
Step 204, judge the numeral, whether meet what is specified with least one of the Chinese, English and symbol Binding rule;If so, then perform step 205;
In the specific implementation, binding rule can be set in database in advance, wherein two category informations can be included:It is a kind of Information is which word (such as Chinese, English and symbol) can combine with numeral;Another category information is combined with numeral Mode and condition.
Numeral and Chinese, English, symbol etc. can be traveled through in the embodiment of the present invention, judges whether to meet the binding rule.
For example, " individual " in " 15 " is the Chinese that can be combined with numeral;
" DEG C " in " 35 DEG C " is the symbol that can be combined with numeral;
" iPhone " in " iPhone6 " is the English that can be combined with numeral;
The mode of combination is that daily which content that obtains for recognizing and having data statistics foundation can be with digital group Close, then increase to these contents in condition.
(in this example, expressed in another example the button inputted in nine grids keyboard is " 232364 " to be easy, with numeral Button is identified, but does not represent input function of the button without other words such as Chinese, English, symbol), it can look for To the possible number for meeting preset range, such as " 23 ", " 2323 ", Chinese corresponding to " 2364 " is searched as " layer " etc., " 64 " Corresponding Chinese is " rice " etc., then may determine that whether " layer " can combine with " 23 ", judges whether " 2323 " can be with " rice " Combination.
Step 205, by the numeral, with least one of the Chinese, English and symbol be combined into one or Multiple feature phrases.
Judging that numeral meets the binding rule specified with Chinese, English and at least one of symbol, then can be according to The mode of combination carries out digital quantity contamination with condition.
The digital measure word can be numeral and the combination of Chinese, for example, " 23 floor ", " 14 ", " No. 13 lines " etc..Enter one Step ground, the numeral and Chinese combination can include the date, such as " on July 11st, 2014 ", " 11 points 23 minutes " etc..
The digital measure word can also be numeral and the combination of symbol, for example, " 2.5 ", " 20% " etc..
The digital measure word can also be numeral and the combination of English, for example, " 123.com ", " IOS8 " etc..
It should be noted that the digital measure word can include a string of the pure digi-tals that may have implication (meeting ad hoc rules), For example, phone number " 15011112222 ", immediate communication tool number " 12345678 " etc..
(in this example, expressed for example, the button inputted in nine grids keyboard is " 2243 " to be easy, with Digital ID Button, but do not represent input function of the button without other words such as Chinese, English, symbol), it can match The digital measure word such as " 2 car ", " 22 ", " 22 box ", " 2 times ".
Step 206, one or more of Feature Words are assembled and puts corresponding weight;
The weight of Feature Words group is calculated in the embodiment of the present invention, to consider that different literals are combined as the reasonable of feature phrase Property, weight is higher, and feature phrase is more reasonable.
In one preferred embodiment of the invention, step 206 can include following sub-step:
Sub-step S11, one or more of Feature Words are assembled according to default influence element and put corresponding weight;
Wherein, the influence element includes but is not limited to following at least one:
The probability of occurrence of numeral, the probability of occurrence of Chinese, the matching degree of feature phrase and button.
For example, " 2 car " that is matched for the button " 2243 " inputted in nine grids keyboard, " 22 ", " 22 box ", Digital measure word such as " 2 times ".For the probability of occurrence of numeral, " 2 car ", " 2 times " are smaller than the digital probability of occurrence of " 22 box ", because This, " 2 car ", " 2 times " weight are higher herein;For the probability of occurrence of Chinese character, " 2 car ", " 22 ", " 22 box ", the Chinese character of " 2 times " Probability of occurrence is the same, and therefore, three's weight is the same herein;For the matching degree with button, " 2 car ", " 22 " and " 22 box " Corresponding " 2243 ", and " 2 times " are only corresponding " 224 ", therefore, the weight ratio of " 2 car " and " 22 box " " 2 times " will height herein.In this hair In one example of bright embodiment, the weight sum of each influence element can be calculated, obtains final weight.It is of course also possible to Calculated according to specified formula, obtain final weight, the embodiment of the present invention is not any limitation as to this.
For example, " 2 car " that is matched for the button " 2243 " inputted in nine grids keyboard, " 22 ", " 22 box ", Digital measure word such as " 2 times ", probability conversion weight being used by numeral, the probability of occurrence of " 2 " is 1 time, and corresponding weight is 50, The probability of occurrence of " 22 " is 2 times, and corresponding weight is 30.Inquire about " car ", " individual ", " box ", the weight of " secondary ", respectively 50,60, 60,45.The matching degree of each phrase and input string is then calculated, then weight is for " 2 car ", " 22 " and " 22 box " matching completely 100, " 2 times " non-complete match, then weight is 50, is finally superimposed weight, obtains final weight, then the weight of " 2 car " is 50+ 50+100=200, the weight of " 22 " is 30+60+100=190, and the weight of " 22 box " is 30+60+100=190, " 2 times " Weight is 50+45+50=145.
Step 207, one or more feature phrases after configuration weight are ranked up;
In embodiments of the present invention, can according to the height of weight to the carry out order sequence of feature phrase, it is of course also possible to Bit-reversed etc. is carried out to feature phrase according to the height of weight, the embodiment of the present invention is not any limitation as to this.
Step 208, show weight higher than default weight threshold and the preceding one or more feature phrases of sequence.
In the specific implementation, one or more feature phrases can be shown in candidate region, to allow user to be selected Select.
The weight of Feature Words group is calculated in the embodiment of the present invention, the reasonability of different literals combination is considered, to adjust feature The display location of phrase, by weight is high, the sequence of more rational feature phrase is shown preceding, further improve display location Utilization rate, with reduce page turning etc. operation, further reduce device resource consumption.
The embodiment of the present invention searches one or more character strings of each button mapping of input, and lookup meets preset range , numeral corresponding to digit strings, search in the Chinese character string, the English character string and the sign character string At least one of at least one corresponding Chinese, English and symbol, will meet the numeral of specified binding rule, with Chinese, At least one of English and symbol are combined into digital measure word, improve the accuracy of digital quantity word combination, further increase The efficiency of input, meanwhile, the switching that user hits function button progress input pattern in input phrase time point is also further reduced, The response times that equipment switches to input pattern are further reduced, further reduce the consumption of device resource.
Reference picture 4, a kind of step flow chart of the embodiment of the method 3 of input of the present invention is shown, can specifically be included Following steps:
Step 401, when the Action Events that triggering is specified, detect under text input mode corresponding to the Action Events One or more buttons of input;
Using the embodiment of the present invention, the corresponding relation of can make an appointment Action Events and text input mode, for example, referring to Fixed gesture operation event, the button specified click on event (digital handoff functionality button 303, Chinese and English switching in such as Fig. 3 A Function button 304) etc., pressed with the one or more that instruction detection inputs under text input mode corresponding to the Action Events Key.
In the specific implementation, the text input mode can include but is not limited to number entry mode, input in Chinese mould At least one of formula, English input mode and symbol input pattern;
Wherein, in number entry mode, the button can be used for inputting digital character string;In input in Chinese pattern, The button can be used for inputting Chinese character string;In English input mode, the button can be used for inputting English character string; In symbol input pattern, the button can be used for incoming symbol character string.
Step 402, word corresponding to the character string that each button is mapped in the input pattern is searched respectively;
In the specific implementation, the word can include but is not limited to numeral, Chinese, English and symbol at least one Kind.
Each button can have one or more character strings of mapping, it is determined that input pattern in, the button is reflected What the character string penetrated can be to determine.
For digit strings, numeral corresponding to the digit strings can be directly extracted, for example, for digit strings " 123 " can directly extract digital " 123 ".
Can be the corresponding Chinese of several Chinese character strings for Chinese character string, for example, in spelling, phonetic " wo " can correspond to the Chinese such as " I " or the corresponding Chinese of a Chinese character string, for example, in spelling, phonetic " o " can correspond to Chinese such as " ", and in simplicity, phonetic " w " can correspond to Chinese, the embodiment of the present invention such as " we " and this is not added with With limitation.
Can directly extract English corresponding to the English character string, for example, for English character for English character string String " com " can be extracted directly English " com ".
Can directly extract symbol corresponding to the sign character string, for example, for sign character for sign character string String " " can directly extract symbol " ".
Step 403, by one or more of spelling words intellectuals into one or more feature phrases;
In embodiments of the present invention, can one or more words be directly combined into one or more feature phrases.
Step 404, one or more of Feature Words are assembled and puts corresponding weight;
In one preferred embodiment of the invention, step 404 can include following sub-step:
Sub-step S21, one or more of spelling words intellectuals are calculated into the probability of the feature phrase, obtain the feature Weight corresponding to phrase.
In embodiments of the present invention, can be according to natural language processing technique (Natural Language Processing, NLP) etc. mode calculate one or more spelling words intellectuals into the probability of feature phrase, to obtain feature phrase pair The weight answered.
Step 405, one or more feature phrases after configuration weight are ranked up;
Step 406, show weight higher than default weight threshold and the preceding one or more feature phrases of sequence.
The embodiment of the present invention is detected under text input mode corresponding to Action Events in the Action Events that triggering is specified One or more buttons of input, search respectively literary corresponding to the character string that each button is mapped in the input pattern Word, and feature phrase is combined into, inputted in a manner of arranging input pattern, reduce the possibility of spelling words intellectual, reduced The amount of calculation of spelling words intellectual, the accuracy of digital quantity word combination is improved, further increase the efficiency of input, meanwhile, The switching that user hits function button progress input pattern in input phrase time point is further reduced, further reduces equipment pair The response times of input pattern switching, further reduce the consumption of device resource.
To make those skilled in the art more fully understand the embodiment of the present invention, illustrate this hair below by way of specific example The combination of feature phrase in bright embodiment.
Button " 96924 " (with Digital ID button in this example) is inputted in the Pinyin Input pattern of nine grids keyboard, Now " 96924 " phonetic for being mapped can be searched according to the rule in input in Chinese pattern, find candidate " I " etc., Handled without upper screen.
Digital handoff functionality button 303 as shown in Figure 3A is clicked on, can not change to number entry mode, continue to input Button " 6 ", now the numeral " 6 " that button " 6 " is mapped can be searched, then candidate can according to the rule in number entry mode To be changed into, " I is handled without upper screen 6 ".
Chinese and English handoff functionality button 304 as shown in fig. 3 is clicked on, can not be changed to English input mode, input Button " 2 ", now the English alphabet " A " that button " 2 " is mapped can be searched, now according to the rule in English input mode Candidate is " I is handled without upper screen in 6A ".
Chinese and English handoff functionality button 304 as shown in fig. 3 is clicked on, is inputted " 32645486 ", now can be in Rule in literary input pattern, " 3264548 " phonetic " fangjian " for being mapped is searched, now candidate is changed into that " I am in 6A rooms Between ", screen processing can be carried out, i.e., is exported candidate into specified business object, for example, the conversation window of immediate communication tool Mouthful, the search column of search engine etc..
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of action group Close, but those skilled in the art should know, the embodiment of the present invention is not limited by described sequence of movement, because according to According to the embodiment of the present invention, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention is implemented Necessary to example.
Reference picture 5, a kind of structured flowchart of the device embodiment of input of the present invention is shown, can specifically be included Following module:
Button detection module 501, for detecting one or more buttons of input;Each button have one of mapping or Multiple character strings;
Text search module 502, one corresponding to the one or more character strings mapped for searching each button respectively Individual or multiple words;
Feature phrase composite module 503, for by one or more of spelling words intellectuals into one or more feature phrases;
Feature phrase display module 504, for showing one or more of feature phrases.
In a kind of preferred exemplary of the embodiment of the present invention, the character string can include but is not limited to digit strings, At least one of Chinese character string, English character string and sign character string.
In one preferred embodiment of the invention, the word can include but is not limited to numeral, Chinese, English and symbol At least one of number;
The text search module 502 can include following submodule:
First searches submodule, meets numeral corresponding to preset range, described digit strings for lookup;
Second searches submodule, for searching the Chinese character string, the English character string and the sign character string At least one of corresponding at least one of Chinese, English and symbol.
In one preferred embodiment of the invention, the feature phrase composite module 503 can include following submodule:
Rule of combination judging submodule, for judging the numeral, with least one of the Chinese, English and symbol Whether the binding rule specified is met;If so, then call combination submodule;
Combine submodule, for will the numeral, be combined into at least one of the Chinese, English and symbol One or more feature phrases.
In one preferred embodiment of the invention, the button detection module 501 can include following submodule:
Detection trigger submodule, for when triggering the Action Events specified, detecting literary corresponding to the Action Events The one or more buttons inputted under word input pattern.
In one preferred embodiment of the invention, the text search module 502 can include following submodule:
3rd searches submodule, is corresponded to for searching the character string that each button is mapped in the input pattern respectively Word;
Wherein, the text input mode includes but is not limited to number entry mode, input in Chinese pattern, English input mould At least one of formula and symbol input pattern;
The word includes but is not limited at least one of numeral, Chinese, English and symbol.
In one preferred embodiment of the invention, the feature phrase display module 504 can include following submodule:
Weight calculation submodule, corresponding weight is put for being assembled to one or more of Feature Words;
Sorting sub-module, for being ranked up to one or more feature phrases after configuration weight;
Sequence displaying submodule, for showing weight higher than default weight threshold and the preceding one or more of sequence Feature phrase.
In one preferred embodiment of the invention, the weight calculation submodule can include following submodule:
First calculating sub module, put correspondingly for being assembled according to default influence element to one or more of Feature Words Weight;
Wherein, the influence element includes but is not limited to following at least one:
The probability of occurrence of numeral, the probability of occurrence of Chinese, the matching degree of feature phrase and button.
In one preferred embodiment of the invention, the weight calculation submodule can include following submodule:
Second calculating sub module, for calculating one or more of spelling words intellectuals into the probability of the feature phrase, obtain Obtain weight corresponding to the feature phrase.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related Part illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is described by the way of progressive, what each embodiment stressed be with The difference of other embodiment, between each embodiment identical similar part mutually referring to.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present invention can use 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 use one or more wherein include computer can With in the computer-usable storage medium (including but is 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 is with reference to method according to embodiments of the present invention, terminal device (system) and computer program The flow chart and/or block diagram of product describes.It should be understood that can be by computer program instructions implementation process figure and/or block diagram In each flow and/or square frame and the flow in flow chart and/or block diagram and/or the combination of square frame.These can be provided Computer program instructions are set to all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to produce a machine so that is held by the processor of computer or other programmable data processing terminal equipments Capable instruction is produced for realizing in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames The device for the function of specifying.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing terminal equipments In the computer-readable memory to work in a specific way so that the instruction being stored in the computer-readable memory produces bag The manufacture of command device is included, the command device is realized in one flow of flow chart or multiple flows and/or one side of block diagram The function of being specified in frame or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that Series of operation steps is performed on computer or other programmable terminal equipments to produce computer implemented processing, so that The instruction performed on computer or other programmable terminal equipments is provided for realizing in one flow of flow chart or multiple flows And/or specified in one square frame of block diagram or multiple square frames function the step of.
Although having been described for the preferred embodiment of the embodiment of the present invention, those skilled in the art once know base This creative concept, then other change and modification can be made to these embodiments.So appended claims are intended to be construed to Including preferred embodiment and fall into having altered and changing for range of embodiment of the invention.
Finally, it is to be noted that, herein, such as first and second or the like relational terms be used merely to by One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation Between any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering including for nonexcludability, so that process, method, article or terminal device including a series of elements are not only wrapped Those key elements, but also the other element including being not expressly set out are included, or is also included for this process, method, article Or the key element that terminal device is intrinsic.In the absence of more restrictions, wanted by what sentence "including a ..." limited Element, it is not excluded that other identical element in the process including the key element, method, article or terminal device also be present.
Method to a kind of input provided by the present invention and a kind of device of input above, are described in detail, this Apply specific case in text to be set forth the principle and embodiment of the present invention, the explanation of above example is only intended to Help to understand method and its core concept of the invention;Meanwhile for those of ordinary skill in the art, the think of according to the present invention Think, in specific embodiments and applications there will be changes, in summary, this specification content should not be construed as pair The limitation of the present invention.

Claims (10)

  1. A kind of 1. method of input, it is characterised in that including:
    When the Action Events that triggering is specified, detect inputted under text input mode corresponding to the Action Events one or Multiple buttons;Each button has one or more character strings of mapping;The character string include but is not limited to digit strings, At least one of Chinese character string, English character string and sign character string;
    One or more words corresponding to one or more character strings that each button is mapped are searched respectively;The word includes But it is not limited at least one of numeral, Chinese, English and symbol;
    By one or more of spelling words intellectuals into one or more feature phrases;
    Show one or more of feature phrases;
    Wherein, the step of one or more words corresponding to the one or more character strings searched each button respectively and mapped Suddenly include:
    Lookup meets numeral corresponding to preset range, described digit strings;
    In searching corresponding at least one of the Chinese character string, the English character string and described sign character string At least one of text, English and symbol;
    It is described to include one or more of spelling words intellectuals into the step of one or more feature phrases:
    Judge the numeral, whether meet the binding rule specified with least one of the Chinese, English and symbol;
    If so, the numeral is then combined into one or more Feature Words with least one of the Chinese, English and symbol Group.
  2. 2. according to the method for claim 1, it is characterised in that one or more for searching each button respectively and being mapped Include corresponding to individual character string the step of one or more words:
    Word corresponding to the character string that each button is mapped in the input pattern is searched respectively;
    Wherein, the text input mode include but is not limited to number entry mode, input in Chinese pattern, English input mode and At least one of symbol input pattern;
    The word includes but is not limited at least one of numeral, Chinese, English and symbol.
  3. 3. method according to claim 1 or 2, it is characterised in that the one or more of feature phrases of displaying Step includes:
    One or more of Feature Words are assembled and put corresponding weight;
    One or more feature phrases after configuration weight are ranked up;
    Show weight higher than default weight threshold and the preceding one or more feature phrases of sequence.
  4. 4. according to the method for claim 3, it is characterised in that described assembled to one or more of Feature Words is put correspondingly Weight the step of include:
    One or more of Feature Words are assembled according to default influence element and put corresponding weight;
    Wherein, the influence element includes but is not limited to following at least one:
    The probability of occurrence of numeral, the probability of occurrence of Chinese, the matching degree of feature phrase and button.
  5. 5. according to the method for claim 3, it is characterised in that described assembled to one or more of Feature Words is put correspondingly Weight the step of include:
    One or more of spelling words intellectuals are calculated into the probability of the feature phrase, obtains and is weighed corresponding to the feature phrase Weight.
  6. A kind of 6. device of input, it is characterised in that including:
    Button detection module, for detecting one or more buttons of input;Each button has one or more words of mapping Symbol string;The character string includes but is not limited in digit strings, Chinese character string, English character string and sign character string extremely Few one kind;
    Text search module, one or more corresponding to the one or more character strings mapped for searching each button respectively Word;The word includes but is not limited at least one of numeral, Chinese, English and symbol;
    Feature phrase composite module, for by one or more of spelling words intellectuals into one or more feature phrases;
    Feature phrase display module, for showing one or more of feature phrases;
    Wherein, the text search module includes:
    First searches submodule, meets numeral corresponding to preset range, described digit strings for lookup;
    Second searches submodule, for searching in the Chinese character string, the English character string and the sign character string At least one of at least one corresponding Chinese, English and symbol;
    The button detection module includes:
    Detection trigger submodule, for when triggering the Action Events specified, detecting defeated in word corresponding to the Action Events Enter the one or more buttons inputted under pattern;
    The feature phrase composite module includes:
    Rule of combination judging submodule, for judging the numeral, with the Chinese, English and at least one of symbol whether Meet the binding rule specified;If so, then call combination submodule;
    Submodule is combined, for by the numeral, one or more is combined into at least one of the Chinese, English and symbol Individual feature phrase.
  7. 7. device according to claim 6, it is characterised in that the text search module includes:
    3rd searches submodule, text corresponding to the character string mapped for searching each button respectively in the input pattern Word;
    Wherein, the text input mode include but is not limited to number entry mode, input in Chinese pattern, English input mode and At least one of symbol input pattern;
    The word includes but is not limited at least one of numeral, Chinese, English and symbol.
  8. 8. the device according to claim 6 or 7, it is characterised in that the feature phrase display module includes:
    Weight calculation submodule, corresponding weight is put for being assembled to one or more of Feature Words;
    Sorting sub-module, for being ranked up to one or more feature phrases after configuration weight;
    Sequence displaying submodule, for showing weight higher than default weight threshold and the preceding one or more features of sequence Phrase.
  9. 9. device according to claim 8, it is characterised in that the weight calculation submodule includes:
    First calculating sub module, corresponding power is put for being assembled according to default influence element to one or more of Feature Words Weight;
    Wherein, the influence element includes but is not limited to following at least one:
    The probability of occurrence of numeral, the probability of occurrence of Chinese, the matching degree of feature phrase and button.
  10. 10. device according to claim 8, it is characterised in that the weight calculation submodule includes:
    Second calculating sub module, for calculating one or more of spelling words intellectuals into the probability of the feature phrase, obtain institute State weight corresponding to feature phrase.
CN201410533017.3A 2014-10-10 2014-10-10 A kind of method and apparatus of input Active CN104317416B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410533017.3A CN104317416B (en) 2014-10-10 2014-10-10 A kind of method and apparatus of input

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410533017.3A CN104317416B (en) 2014-10-10 2014-10-10 A kind of method and apparatus of input

Publications (2)

Publication Number Publication Date
CN104317416A CN104317416A (en) 2015-01-28
CN104317416B true CN104317416B (en) 2018-02-06

Family

ID=52372655

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410533017.3A Active CN104317416B (en) 2014-10-10 2014-10-10 A kind of method and apparatus of input

Country Status (1)

Country Link
CN (1) CN104317416B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955507B (en) * 2016-06-03 2018-11-02 珠海市魅族科技有限公司 A kind of display methods and terminal of soft keyboard
CN108073294B (en) * 2016-11-11 2021-11-02 北京搜狗科技发展有限公司 Intelligent word forming method and device for intelligent word forming
CN106774981B (en) * 2016-12-26 2019-05-10 深圳市茁壮网络股份有限公司 Usual input method determines that method, apparatus and input information determine method, apparatus
CN106610733B (en) * 2016-12-26 2020-03-06 深圳市茁壮网络股份有限公司 Conventional input method determining method and device and input information determining method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101493729A (en) * 2008-01-24 2009-07-29 普天信息技术研究院有限公司 Multi-type character mixing input method
CN101943952A (en) * 2010-01-27 2011-01-12 北京搜狗科技发展有限公司 Mixed input method of at least two languages and input method system
CN102063195A (en) * 2010-04-06 2011-05-18 百度在线网络技术(北京)有限公司 Method and equipment allowing user to implement mixed Chinese and English input
CN102566772A (en) * 2010-12-26 2012-07-11 上海量明科技发展有限公司 Method and system for implementation of character hybrid input
CN103019401A (en) * 2011-09-26 2013-04-03 北京搜狗科技发展有限公司 Hybrid type sentence input method and device
CN103309459A (en) * 2012-03-15 2013-09-18 腾讯科技(深圳)有限公司 Method and device for inputting Chinese and English in hybrid way

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100130124A (en) * 2009-06-02 2010-12-10 김성희 3*4 keypad

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101493729A (en) * 2008-01-24 2009-07-29 普天信息技术研究院有限公司 Multi-type character mixing input method
CN101943952A (en) * 2010-01-27 2011-01-12 北京搜狗科技发展有限公司 Mixed input method of at least two languages and input method system
CN102063195A (en) * 2010-04-06 2011-05-18 百度在线网络技术(北京)有限公司 Method and equipment allowing user to implement mixed Chinese and English input
CN102566772A (en) * 2010-12-26 2012-07-11 上海量明科技发展有限公司 Method and system for implementation of character hybrid input
CN103019401A (en) * 2011-09-26 2013-04-03 北京搜狗科技发展有限公司 Hybrid type sentence input method and device
CN103309459A (en) * 2012-03-15 2013-09-18 腾讯科技(深圳)有限公司 Method and device for inputting Chinese and English in hybrid way

Also Published As

Publication number Publication date
CN104317416A (en) 2015-01-28

Similar Documents

Publication Publication Date Title
US9508028B2 (en) Converting text strings into number strings, such as via a touchscreen input
CN104951099B (en) A kind of method and apparatus of the displaying candidate item based on input method
CN105164616B (en) For exporting the method for candidate character strings, computing device and storage medium
CN103038728B (en) Such as use the multi-mode text input system of touch-screen on a cellular telephone
EP1861769B1 (en) Human-to-mobile interfaces
US9026428B2 (en) Text/character input system, such as for use with touch screens on mobile phones
US8542195B2 (en) Method for optimization of soft keyboards for multiple languages
CN107608532B (en) Association input method and device and electronic equipment
CN102830924B (en) A kind of method and device adjusting entering method keyboard
CN105431809A (en) Virtual keyboard input for international languages
CN104199606B (en) A kind of method and apparatus sliding input
CN104317416B (en) A kind of method and apparatus of input
CN104063063A (en) Mathematical calculation input method of input method and input method system
CN106325488B (en) A kind of input method, input unit, server and input system
CN104123012A (en) Gesture keyboard input of non-dictionary character strings using substitute scoring
CN102662487B (en) It is a kind of to show keyboard, input processing method and device
CN107621886A (en) Method, apparatus and electronic equipment are recommended in one kind input
CN102591478A (en) Chinese character binary-syllabification input method
Arroba et al. A methodology for developing accessible mobile platforms over leading devices for visually impaired people
WO2016034066A1 (en) Chinese character recognition method and device, and terminal
CN108073293A (en) A kind of definite method and apparatus of target phrase
CN104049772B (en) A kind of input method, device and system
JP6221275B2 (en) Character input program and character input device
CN112334870A (en) Method and electronic device for configuring touch screen keyboard
JP2020021455A (en) Patent evaluation determination method, patent evaluation determination device, and patent evaluation determination program

Legal Events

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