CN104765750A - Input language switch method and device for input method application - Google Patents

Input language switch method and device for input method application Download PDF

Info

Publication number
CN104765750A
CN104765750A CN201410007060.6A CN201410007060A CN104765750A CN 104765750 A CN104765750 A CN 104765750A CN 201410007060 A CN201410007060 A CN 201410007060A CN 104765750 A CN104765750 A CN 104765750A
Authority
CN
China
Prior art keywords
input
language
character string
library
character
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
CN201410007060.6A
Other languages
Chinese (zh)
Other versions
CN104765750B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410007060.6A priority Critical patent/CN104765750B/en
Publication of CN104765750A publication Critical patent/CN104765750A/en
Application granted granted Critical
Publication of CN104765750B publication Critical patent/CN104765750B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses an input language switch method and device for an input method application. The input language switch method and device for the input method application are suitable for the field of the input method application. The input language switch method includes that acquiring a current input character string of the input method application; matching the input character string with a preset language library to obtain the language library matched with the input character string; switching the input language of the input method application into the language corresponding to the language library matched with the input character string. The input language switch method for the input method application realizes to automatically switch the input language of the input method application through matching the current input character string of the input method application with the preset language library to obtain the language library matched with the input character string and switching the input language of the input method application into the language corresponding to the language library matched with the input character string, the input language switch operation in the input method application is simplified, the character input time is saved, and the character input efficiency of the input method application is improved.

Description

Input language changing method in a kind of input method application and device
Technical field
The invention belongs to text event detection field, particularly relate to the input language changing method in the application of a kind of input method and device.
Background technology
Along with the development of intelligent terminal and universal, the importance that input method is applied in intelligent terminal also displays.Existing input method application generally all supports multilingual, as the input language language such as Chinese or English can applied as this input method, carries out the input of Chinese character and the input of English character to facilitate user.
After existing input method application start, the input language that general employing default language is applied as this input method, as this input method was started last time time the language that finally uses to start next time as the application of this input method time input language, when needs switch input language, need first inputting switching command.Wherein the mode of inputting switching command can be by the mode such as menu or shortcut, although this mode can realize the switching of the input language in input method application, but this mode is due to the first inputting switching command of needs, so complicated operation, reduce input method and apply the efficiency of carrying out when character inputs, when particularly needing to switch between different language frequently, input efficiency obviously declines.
Summary of the invention
Input language changing method during the embodiment of the present invention provides a kind of input method to apply and device, be intended to the problem that blocked operation is complicated, character input efficiency is low solving input language in input method application.
First aspect, the input language changing method in providing a kind of input method to apply, described method comprises:
Obtain input of character string current in input method application;
Described input of character string is mated with the language library preset, obtains the language library with described input character String matching;
The input language that input method is applied is switched to the language corresponding with the language library of described input character String matching.
Second aspect, the input language switching device shifter in providing a kind of input method to apply, described device comprises:
Input of character string acquiring unit, for obtaining input of character string current in input method application;
Language library matching unit, for being mated with the language library preset by described input of character string, obtains the language library with described input character String matching;
Input language switch unit, the input language for input method being applied switches to the language corresponding with the language library of described input character String matching.
In embodiments of the present invention, by input of character string current in input method application is mated with the language library preset, obtain the language library with input character String matching, the input language that input method is applied is switched to the language corresponding with the language library of input character String matching, thus realize the automatic switchover of the input language in input method application, simplify the blocked operation of input language in input application method, save character input time, improve the character input efficiency of input method application.
Accompanying drawing explanation
Fig. 1 is the realization flow figure of changing method of the input language in the input method application that provides of the embodiment of the present invention;
Fig. 2 is the realization flow figure of changing method of the input language in the input method application that provides of another embodiment of the present invention;
Fig. 3 is the realization flow figure of changing method of the input language in the input method application that provides of yet another embodiment of the invention;
Fig. 4 is the dynamic realization flow figure generating the language library preset of the input of the history according to user record that the embodiment of the present invention provides;
Fig. 5 is the structured flowchart of switching device shifter of the input language in the input method application that provides of the embodiment of the present invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
In embodiments of the present invention, by input of character string current in input method application is mated with the language library preset, obtain the language library with input character String matching, the input language that input method is applied is switched to the language corresponding with the language library of input character String matching, thus realize the automatic switchover of the input language in input method application, simplify the blocked operation of input language in input application method, save character input time, improve the character input efficiency of input method application.
In order to technical solutions according to the invention are described, be described below by specific embodiment.
Fig. 1 shows the realization flow of the input language changing method in the input method application that the embodiment of the present invention provides, and details are as follows:
S101, obtains input of character string current in input method application.
One or more character is comprised in wherein current input of character string.For the ease of understanding, illustrate as follows:
Suppose that user is after input method application start, have input character " w ", then current input of character string is " w ", if after have input character " w ", continue to have input character " w ", then current input of character string is " ww ", if after have input " ww ", continue to have input character " w ", then current input of character string is " www ", and the rest may be inferred.
Further illustrate as follows with another example:
Suppose that user is after input method application start, have input character " a ", then current input of character string is " a ", if after have input character " a ", continue to have input character " n ", then current input of character string is " an ", if after have input " an ", continue to have input character " j ", then current input of character string is " anj ", if after have input " anj ", continue to have input character " i ", then current input of character string is " anji ", if after have input " anji ", continue to have input character " n ", be " anjin " at current input of character string, if after have input " anjin ", continue to have input character " g ", then current input of character string is " anjing ", the rest may be inferred.
S102, mates current input of character string with the language library preset, obtains the language library with current input character String matching.
The language library wherein preset comprises some character strings.The character string comprised in the language library preset can for having the character string of the character input feature vector of the language corresponding with this language library.The character string comprised in each language library preset does not repeat.This language library preset includes but not limited to Chinese word library, English character library etc.Demand can also be inputted according to character, other character libraries are set, no longer enumerate at this.The character string wherein comprised in Chinese word library has the character input feature vector of Chinese, and the character string as comprised in Chinese word library is generally the character string of Chinese pinyin, as character string " anjing ", " zhongguo " etc.The character string comprised in English character library has English character input feature vector, and the character string as comprised in English character library is generally the character string of English word or phrase, as " we ", " china " etc.
In the present embodiment, have corresponding relation between the language library preset and language, language as corresponding in Chinese word library be Chinese, and language corresponding to English character library is English.
In an alternative embodiment of the invention, the method also comprises:
Default language library is built in input method application;
Default language library is pulled from server in input method application; And/or,
History input record according to user dynamically generates the language library preset.
Wherein default language library is built in input method application and refers to before input method application is issued, in the application of this input method, be built-in with default language library, as being built-in with Chinese word library and/or English character library.
Default language library is pulled from server to input method application, refers to that input method application pulls language library from the server storing language library, and it is local language library to be stored to input method application, or directly receives the language library of this server push from server and be stored in input method application this locality.Flexible expansion and renewal can be carried out in this way to the language library preset.
History input record according to user dynamically generates the detailed process of the language library preset as shown in Figure 4, does not repeat them here.
Wherein input of character string is mated with the language library preset, obtains with the detailed process of the language library of input character String matching as follows:
Input of character string is mated with the character string comprised in the language library preset, if there is the character string with input character String matching in the language library preset, then this language library preset is that obtain with language library that is input character String matching, if there is not the character string with input character String matching in the language library preset, then input method is kept to apply current input language constant.Comprise Chinese word library and English character library for the language library preset, further describe and input of character string is mated with the language library preset, obtain the detailed process with the language library of input character String matching:
A1, mated with the character string comprised in Chinese word library by input of character string, if there is the character string with input character String matching in Chinese word library, then that obtain is Chinese word library with language library that is input character String matching;
A2, mated with the character string comprised in English character library by input of character string, if there is the character string with input character String matching in English character library, then that obtain is English character library with language library that is input character String matching.
S103, switches to the language corresponding with the language library of input character String matching by the input language that input method is applied.
Concrete, first can obtain input method and apply current input language, input method is applied current input language and the language corresponding with the language library of input character String matching compares, if identical, then keep the input language of input method application constant, if different, then the input language that input method is applied is switched to the language corresponding with the language library of input character String matching from current input language.
In the present embodiment, by input of character string and the language library preset are compared, obtain the language library with input character String matching, and the input language that input method is applied is switched to the language corresponding with the language library of input character String matching, thus the switching of input language in input method application automatically can be realized according to input of character string, simplify the blocked operation of input language in input method application, save the time spent by character input, improve the character input efficiency of input method application.
Fig. 2 shows the realization flow of the changing method of the input language in the input method application that another embodiment of the present invention provides, and wherein step S201 to S203 is identical with the S101 to S103 in Fig. 1 respectively, does not repeat them here, and the method, after S203, also comprises:
S204, converts input of character string to alternative output string according to the input language that input method is applied, and shows alternative output string.
In the present embodiment, after input language input method applied switches to the language corresponding with the language library of input character String matching, convert input of character string to alternative output string according to the input language that input method is applied, and show alternative output string.
Wherein convert input of character string to alternative output string according to the input language that input method is applied, and the detailed process showing alternative output string is as follows:
When the input language of input method application is Chinese, the Chinese-character phonetic letter character library in being applied with input method by input of character string is mated, and obtains the Chinese character string that this input of character string is corresponding; Wherein store the corresponding relation between Chinese phonetic alphabet character string and Chinese character string in Chinese-character phonetic letter character library;
When the input language of input method application be English, directly using input of character string as alternative output string, or will the English word of this input of character string be comprised all as alternative output string.
Wherein table 1.1 shows the example of the corresponding relation between Chinese phonetic alphabet character string and Chinese character string stored in Chinese-character phonetic letter character library, but is not limited with this example.
Chinese phonetic alphabet character string Chinese character string
anjing Peace and quiet, staple shaft,
he With, drink, box, core, what,
jin Only, jin, enter, closely, gold,
…… …….
Corresponding relation between the Chinese phonetic alphabet character string stored as can be seen from the Chinese-character phonetic letter character library shown in table 1.1 and Chinese character string, by input of character string is mated with Chinese phonetic alphabet character string in the corresponding relation between the Chinese phonetic alphabet character string stored in Chinese-character phonetic letter character library and Chinese character string, using Chinese character string corresponding for the Chinese phonetic alphabet character string consistent with this input of character string all as alternative output string.Illustrate as follows:
Suppose that input of character string is for " anjing ", then because the input language of input method application is Chinese, therefore, by input of character string " anjing " and input of character string is being mated with the corresponding relation between the Chinese phonetic alphabet character string stored in Chinese-character phonetic letter character library and Chinese character string shown in table 1.1, alternative output string can obtained and comprising: " peace and quiet ", " staple shaft " etc.
Be appreciated that and convert input of character string to alternative output string according to the input language that input method is applied, and any one mode that the concrete mode showing alternative output string can also provide for prior art, illustrate no longer one by one at this.
In the present embodiment, after input language input method applied switches to the language corresponding with the language library of input character String matching, convert input of character string to alternative output string according to the input language that input method is applied, and show alternative output string.Like this, automatic according to input of character string, the input language that input method is applied is switched to the language corresponding with the language library of input character String matching after, by converting input of character string to alternative output string according to the input language that input method is applied, make user can select one as output string corresponding to this input of character string from essential output string, character is exported convenient, fast.
In an alternative embodiment of the invention, the method, after S204, also comprises:
Receive the output string selection instruction of user's input, the alternative output string of this output string selection instruction being specified is as output string corresponding to this input of character string.
Fig. 3 shows the realization flow of the input language changing method in the input method application that another embodiment of the present invention provides, and details are as follows:
S301, obtains and carries out at interface the input language that when character inputs, frequency of utilization is the highest.
Interface refers to the human-computer interaction interface can determined by URL(uniform resource locator) (Uniform Resource Locator, URL) URL, the corresponding interface of one of them URL.When a URL can determine multiple human-computer interaction interface, then the multiple human-computer interaction interfaces determined by this URL are as an interface.Illustrate as follows:
For being file by URL: all documents (comprising document aaa.doc) that ///d:/photo/aaa.doc determines, then interface refers to this all Document Interface determined by this URL (comprising the interface of document aaa.doc), for by URL being http://www.baidu.com/ everyone machine interactive interface determined, then interface refers to by this URL everyone machine interactive interface determined.
When user carries out character input in an interface, in different situations, the input language applied as input method by different language is needed, such as, for the interface needing inputting Chinese character and English character, then need to use Chinese and the English input language respectively as input method application.
Wherein obtain the process of carrying out the input language that frequency of utilization is the highest when character inputs at interface specific as follows:
Often plant the access times of input language when carrying out character input at this interface in B1, acquisition preset time period at every turn.
B2, by preset time period each to carry out character input at this interface time often plant input language access times be weighted summation process, the input language that when being defined as by input language the highest for weighted sum value carrying out character input at this interface, frequency of utilization is the highest.
Illustrate as follows:
Suppose in preset time period, have and carry out character input at certain interface three times, then when character input is carried out in acquisition at every turn at this interface, the access times of often kind of input language of input method application.Wherein the access times of often kind of input language of input method application refer to that input of character string is converted to the number of times of output string by input method application according to this input language, suppose when carrying out character input at this interface these three times, what get is each when carrying out character input at this interface, and the access times of often kind of input language of input method application are as shown in table 1.2.
Then the access times carrying out often planting when character inputs input language in preset time period for three times at this interface are weighted summation process, suppose that first time, second time and the weights of third time are respectively 0.3,0.5,0.2, after being then weighted summation process, the weighted sum value obtaining Chinese is:
100*0.3+200*0.5+300*0.2=190
English weighted sum value is:
200*0.3+400*0.5+50*0.2=270
The input language that when being defined as carrying out character input at this interface by input language (namely English) the highest for weighted sum value, frequency of utilization is the highest.
S302, is applied in the acquiescence input language at this interface as input method using input language the highest for frequency of utilization.The input language of input method application when the acquiescence input language that wherein input method is applied in this interface refers to and to start input method application at this interface.
In the present embodiment, by obtaining the frequency of carrying out the input language that each language is applied as input method when character inputs at interface, and language the highest for frequency is applied in the acquiescence input language at this interface as input method, thus decrease the switching frequency of the input language carrying out input method application when character inputs at this interface, improve the character input efficiency of input method application.
The input of the history according to the user record that Fig. 4 shows the embodiment of the present invention to be provided dynamically generates the specific implementation flow process of the language library preset, and details are as follows:
S401, the history input record of input method application in acquisition preset time period, wherein history input record comprises the input of character string output string corresponding with this input of character string.
Wherein preset time period can be arranged arbitrarily as required, as being set to the time period from current time predetermined time period forward.
S402, for each input of character string in history input record, determines the input language that this input of character string uses when being converted to corresponding each output string.
Concrete, each input of character string is general all to there being an output string, by identifying output string, can identify this output string is that input method is applied in the input language used when input of character string being converted to this output string, output string as corresponding when certain input of character string is Chinese character string, then this output string is that input method application adopts Chinese, as input language, this input of character string is converted to this Chinese character string; When the output string that certain input of character string is corresponding is English character string, be that input method application adopts English, as input language, this input of character string is converted to this English character string at this output string.
S403, for each input of character string in history input record, adds up the frequency of utilization of often kind of input language.Wherein the frequency of utilization of often kind of input language refers to that input method is applied in the frequency of utilization of the input language used when this input of character string being converted to output string.
In the present embodiment, for some input of character string, in different situations, the input language that user can select different language to apply as input method, therefore, by for each input of character string, statistics is when being converted to output string by this input of character string, input method applies the input language used, and the frequency of utilization of statistics often kind of input language, the language library that this input of character string should belong to can be determined more accurately calmly.
S404, is added to input of character string in language library corresponding to the input language the highest with frequency of utilization.
In the present embodiment, default language library is generated dynamically by the history input record according to user, thus making the language library preset more meet the personalization input demand of each user, when input method being applied in be applicable to each user, accuracy is higher.
In an alternative embodiment of the invention, before being added to by input of character string in language library corresponding to the input language the highest with frequency of utilization, the method also comprises:
Judge whether there is this input of character string in other language librarys, if so, then first from other language librarys, delete this input of character string, then this input of character string is added in language library corresponding to the input language the highest with frequency of utilization.Wherein other language librarys refer to the language library except the language library that the input language the highest with frequency of utilization is corresponding.
Fig. 5 shows the structure of the switching device shifter of the input language in the input method application that the embodiment of the present invention provides, and illustrate only the part relevant to the embodiment of the present invention for convenience of explanation.
This device may be used for mobile terminal, such as smart mobile phone, panel computer etc., also may be used for computing machine etc., can be the unit that software unit, hardware cell or the software and hardware run in these equipment combines, also can be integrated in these equipment as independently suspension member or run in the application system of these equipment.Input language switching device shifter in the application of this input method comprises:
Input of character string acquiring unit 1 is for obtaining input of character string current in input method application.
One or more character is comprised in wherein current input of character string.
Language library matching unit 2, for being mated with the language library preset by described input of character string, obtains the language library with described input character String matching.
The language library wherein preset comprises some character strings.The character string comprised in the language library preset can for having the character string of the character input feature vector of the language corresponding with this language library.This language library preset includes but not limited to Chinese word library, English character library.Wherein all comprise some character strings in Chinese word library and English character library.
In the present embodiment, have corresponding relation between the language library preset and language, language as corresponding in Chinese word library be Chinese, and language corresponding to English character library is English.
This language library preset can be built in input method application, also can pull from server, dynamically can also generate according to the history input record of user.
In an alternative embodiment of the invention, this language library matching unit 2 is specifically for mating described input of character string with the character string comprised in described Chinese word library, if there is the character string with described input character String matching in described Chinese word library, then what obtain is Chinese word library with the language library of described input character String matching; Mated with the character string comprised in described English character library by described input of character string, if there is the character string with described input character String matching in described English character library, then what obtain is English character library with the language library of described input character String matching.
In an alternative embodiment of the invention, this device also comprises language library generation unit 3.This language library generation unit 3 dynamically generates described default language library for the history input record according to user.
In an alternative embodiment of the invention, this language library generation unit 3 comprises history input record acquisition module 31, input language determination module 32, frequency of utilization computing module 33 and language library and adds module 34.Wherein:
History input record acquisition module 31 is for obtaining the history input record of the application of input method in preset time period, and described history input record comprises input of character string and output string corresponding to described input of character string;
Input language determination module 32, for for each input of character string in described history input record, determines the input language used when described input of character string being converted to corresponding each output string;
Frequency of utilization computing module 33 is for for each input of character string, add up the frequency of utilization of often kind of input language, the frequency of utilization of described often kind of input language refers to that input method is applied in the frequency of utilization of the input language used when described input of character string is converted to output string;
Language library adds module 34 for being added in language library corresponding to the input language the highest with frequency of utilization by described input of character string.
Input language switch unit 4 switches to the language corresponding with the language library of described input character String matching for input language input method applied.
Concrete, first can obtain input method and apply current input language, input method is applied current input language and the language corresponding with the language library of input character String matching compares, if identical, then keep the input language of input method application constant, if different, then the input language that input method is applied is switched to the language corresponding with the language library of input character String matching from current input language.
In an alternative embodiment of the invention, this device also comprises alternative characters string output unit 5.This alternative characters string output unit 5 for converting described input of character string to alternative output string according to the input language that input method is applied, and shows described alternative output string.
In an alternative embodiment of the invention, this device also comprises character string output unit 6.This character string output unit 6 is for receiving the output string selection instruction of user's input, and the alternative output string of described output string selection instruction being specified is as output string corresponding to described input of character string.
In an alternative embodiment of the invention, this device also comprises acquiescence input language determining unit 7.This acquiescence input language determining unit 7 carries out at interface the input language that when character inputs, frequency of utilization is the highest for obtaining, input language the highest for described frequency of utilization is applied in the acquiescence input language at described interface as input method, the acquiescence input language that wherein said input method is applied in described interface refers to the input language starting input method application when input method is applied at described interface.
Wherein to obtain the process of frequency of utilization the highest input language when to carry out character input at interface specific as follows for this acquiescence input language determining unit 7: obtain each access times carrying out often planting when character inputs input language at this interface in preset time period; Access times carrying out often planting when character inputs input language at this interface each in preset time period are weighted summation process, the input language that when being defined as by input language the highest for weighted sum value carrying out character input at this interface, frequency of utilization is the highest.
The method provided to make the embodiment of the present invention is easier to understand, and below for a concrete character input scene, is illustrated the method that the embodiment of the present invention provides.
Suppose to adopt input method application to carry out character input at certain interface, and the language library preset in the application of this input method comprises Chinese word library and English character library.When user have input character " w " by input equipment (as keyboard etc.), then input of character string is " w ", from Chinese word library and English character library, search whether there is this input of character string " w " respectively, if, then will find the input language that language corresponding to the language library of input of character string " w " is applied as input method, otherwise the input language keeping input method application is its current input language.
Because input of character string " w " only comprises a character, the very difficult input language wanting to be applied as input method by which kind of language according to this character precognition user, therefore, generally, after input character " w ", more difficultly in Chinese word library with English character library find the character string the same with input character " w ", the input language of input method application remains its current input language.
If after input character " w ", user continues to have input " o ", then input of character string is " wo ", from Chinese word library and English character library, search whether there is this input of character string " wo " respectively, if, then will find the input language that language corresponding to the language library of input of character string " wo " is applied as input method, otherwise the input language keeping input method application is default language.
Because input of character string " wo " is the same with the phonetic of Chinese character " I ", and " wo " is not English word, therefore, generally can comprise this character string " wo " in Chinese word library, like this, after user have input " wo ", if found this input of character string " wo " from Chinese word library, then the input language that input method is applied is switched to Chinese, and input of character string " wo " is converted to alternative output string according to Chinese.When input of character string " wo " is converted to alternative output string according to Chinese, can be that all Chinese characters of " wo " all show as alternative output string (as alternative output string comprises " I ", " nest ", " ", " holding " etc.) using the Chinese phonetic alphabet, so that user selects one (as " I ") as the output string of this input of character string " wo " correspondence from alternative output character, like this, just can by input method application input character " I ".
User suppose after have input " wo ", after its input language is switched to Chinese according to input of character string " wo " by input method application, user continues to have input " l ", then input of character string is " wol ", searches whether comprise this input of character string " wol " from Chinese word library and English character library.If found this input of character string " wol " from English character library, then the input language that input method is applied is switched to English from Chinese, and input of character string " wol " has been converted to alternative output string according to English.When input of character string " wol " is converted to alternative output string according to English, the all English words started using " wol " in English word all can be shown as alternative output string (as alternative output string comprises " wolf ", " Wollaston " etc.), so that user selects one (as " wolf ") as the output string of this input of character string " wol " correspondence from alternative output character, like this, just can by input method application input character " wolf ".If found this input of character string " wol " from Chinese word library, then the input language that input method is applied is remained Chinese, and input of character string " wol " has been converted to alternative output string according to Chinese.When input of character string " wol " is converted to alternative output string according to Chinese, the all Chinese character strings comprising " wol " in the Chinese phonetic alphabet can be shown as alternative output string (as alternative output string comprises " I ", " we ", " I comes " etc.), so that user selects one (as " we ") as the output string of this input of character string " wol " correspondence from alternative output character, like this, just can by input method application input character " we ".
In addition, when the history input record dynamic mark-up languages storehouse of applying according to input method, be " wol " for input of character string, if when input of character string is " wol ", this input of character string is converted to the frequency of corresponding output string according to English higher than the frequency being converted to corresponding output string according to Chinese, then first search and whether there is " wol " this character string in Chinese word library, if exist, then first delete this " wol " character string in Chinese word library, then input of character string " wol " is added in English character library, like this, for not having well-regulated input of character string, also can according to the history input record of input method application, these input of character string are added in corresponding language library, think that the automatic switchover of the input language that follow-up input method is applied provides foundation.
In addition, by add up each to carry out character input at this interface time, the frequency of utilization of often kind of input language, if the frequency of utilization of certain input language is the highest, character input is carried out in expression during at this interface, general is all convert input of character string to output string according to this language, by input language the highest for frequency of utilization to be applied in the acquiescence input language at described interface as input method, thus can reduce the switching times of input language in input method application.
It should be noted that the unit included by said apparatus is carry out dividing according to function logic, but be not limited to above-mentioned division, as long as corresponding function can be realized; In addition, the concrete title of each functional unit, also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
One of ordinary skill in the art will appreciate that, the all or part of step realized in above-described embodiment method is that the hardware that can carry out instruction relevant by program has come, described program can be stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk, CD etc.
In embodiments of the present invention, by input of character string is mated with the language library preset, obtain the language library with input character String matching, the input language that input method is applied is switched to the language corresponding with the language library of input character String matching, thus realize the automatic switchover of the input language in input method application, simplify the blocked operation of input language in input application method, save character input time, improve the character input efficiency of input method application.By dynamically generating default language library according to the history input record in input method application, thus input method is made to apply the individual demand that can meet user.Obtain the frequency of carrying out the input language that each language is applied as input method when character inputs at interface, and language the highest for frequency is applied in the acquiescence input language at this interface as input method, thus decrease the switching frequency of the input language carrying out input method application when character inputs at this interface, improve the character input efficiency of input method application.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (17)

1. the input language changing method in input method application, it is characterized in that, described method comprises:
Obtain input of character string current in input method application;
Described input of character string is mated with the language library preset, obtains the language library with described input character String matching;
The input language that input method is applied is switched to the language corresponding with the language library of described input character String matching.
2. the method for claim 1, it is characterized in that, described default language library comprises Chinese word library and English character library, all comprises some character strings in described Chinese word library and English character library, the language that described Chinese word library is corresponding is Chinese, and language corresponding to described English character library be English.
3. method as claimed in claim 2, is characterized in that, is describedly mated with default language library by described input of character string, obtains, with the language library of described input character String matching, comprising:
Mated with the character string comprised in described Chinese word library by described input of character string, if there is the character string with described input character String matching in described Chinese word library, then what obtain is Chinese word library with the language library of described input character String matching;
Mated with the character string comprised in described English character library by described input of character string, if there is the character string with described input character String matching in described English character library, then what obtain is English character library with the language library of described input character String matching.
4. the method as described in any one of claims 1 to 3, is characterized in that, described method also comprises:
Described default language library is built in input method application;
Described default language library is pulled from server in input method application; And/or,
History input record according to user dynamically generates described default language library.
5. method as claimed in claim 4, is characterized in that, the described input of the history according to user record dynamically generates described default language library, comprising:
Obtain the history input record of input method application in preset time period, described history input record comprises input of character string and output string corresponding to described input of character string;
For each input of character string in described history input record, determine the input language used when described input of character string being converted to corresponding each output string;
For each input of character string, add up the frequency of utilization of often kind of input language, the frequency of utilization of described often kind of input language refers to that input method is applied in the frequency of utilization of the input language used when described input of character string is converted to output string;
Described input of character string is added in language library corresponding to the input language the highest with frequency of utilization.
6. the method for claim 1, is characterized in that, after the described input language by input method application switches to the language corresponding with the language library of described input character String matching, described method also comprises:
Convert described input of character string to alternative output string according to the input language that input method is applied, and show described alternative output string.
7. method as claimed in claim 6, it is characterized in that, convert described input of character string to alternative output string described according to the input language that input method is applied, and after showing described alternative output string, described method also comprises:
Receive the output string selection instruction of user's input, the alternative output string of described output string selection instruction being specified is as output string corresponding to described input of character string.
8. the method for claim 1, is characterized in that, described method also comprises:
Obtain and carry out at interface the input language that when character inputs, frequency of utilization is the highest;
Input language the highest for described frequency of utilization is applied in the acquiescence input language at described interface as input method, the acquiescence input language that wherein said input method is applied in described interface refers to the input language starting input method application when input method is applied at described interface.
9. method as claimed in claim 8, is characterized in that, the input language that when character inputs, frequency of utilization is the highest is carried out in described acquisition at interface, comprising:
Obtain each access times carrying out often planting when character inputs input language at described interface in preset time period;
Access times carrying out often planting when character inputs input language at described interface each in preset time period are weighted summation process, the input language that when being defined as by input language the highest for weighted sum value carrying out character input at described interface, frequency of utilization is the highest.
10. the input language switching device shifter in input method application, it is characterized in that, described device comprises:
Input of character string acquiring unit, for obtaining input of character string current in input method application;
Language library matching unit, for being mated with the language library preset by described input of character string, obtains the language library with described input character String matching;
Input language switch unit, the input language for input method being applied switches to the language corresponding with the language library of described input character String matching.
11. devices as claimed in claim 10, it is characterized in that, described default language library comprises Chinese word library and English character library, all comprises some character strings in described Chinese word library and English character library, the language that described Chinese word library is corresponding is Chinese, and language corresponding to described English character library be English.
12. devices as claimed in claim 11, it is characterized in that, described language library matching unit is specifically for mating described input of character string with the character string comprised in described Chinese word library, if there is the character string with described input character String matching in described Chinese word library, then what obtain is Chinese word library with the language library of described input character String matching;
Mated with the character string comprised in described English character library by described input of character string, if there is the character string with described input character String matching in described English character library, then what obtain is English character library with the language library of described input character String matching.
13. devices as described in any one of claim 10 to 12, it is characterized in that, described device also comprises:
Language library generation unit, dynamically generates described default language library for the history input record according to user.
14. devices as claimed in claim 13, it is characterized in that, described language library generation unit comprises:
History input record acquisition module, for obtaining the history input record of the application of input method in preset time period, described history input record comprises input of character string and output string corresponding to described input of character string;
Input language determination module, for for each input of character string in described history input record, determines the input language used when described input of character string being converted to corresponding each output string;
Frequency of utilization computing module, for for each input of character string, add up the frequency of utilization of often kind of input language, the frequency of utilization of described often kind of input language refers to that input method is applied in the frequency of utilization of the input language used when described input of character string is converted to output string;
Language library adds module, for being added in language library corresponding to the input language the highest with frequency of utilization by described input of character string.
15. devices as claimed in claim 10, it is characterized in that, described device also comprises:
Alternative characters string output unit, for converting described input of character string to alternative output string according to the input language that input method is applied, and shows described alternative output string.
16. devices as claimed in claim 15, it is characterized in that, described device also comprises:
Character string output unit, for receiving the output string selection instruction of user's input, the alternative output string of described output string selection instruction being specified is as output string corresponding to described input of character string.
17. devices as claimed in claim 10, it is characterized in that, described device also comprises:
Acquiescence input language determining unit, carry out at interface the input language that when character inputs, frequency of utilization is the highest for obtaining, input language the highest for described frequency of utilization is applied in the acquiescence input language at described interface as input method, the acquiescence input language that wherein said input method is applied in described interface refers to the input language starting input method application when input method is applied at described interface.
CN201410007060.6A 2014-01-07 2014-01-07 Input language switching method and device in input method application Active CN104765750B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410007060.6A CN104765750B (en) 2014-01-07 2014-01-07 Input language switching method and device in input method application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410007060.6A CN104765750B (en) 2014-01-07 2014-01-07 Input language switching method and device in input method application

Publications (2)

Publication Number Publication Date
CN104765750A true CN104765750A (en) 2015-07-08
CN104765750B CN104765750B (en) 2020-12-25

Family

ID=53647583

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410007060.6A Active CN104765750B (en) 2014-01-07 2014-01-07 Input language switching method and device in input method application

Country Status (1)

Country Link
CN (1) CN104765750B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105373320A (en) * 2015-12-09 2016-03-02 广东欧珀移动通信有限公司 Control method, control device and electronic device
CN105511796A (en) * 2015-12-30 2016-04-20 努比亚技术有限公司 Method and device for information inputting of adaptive-switching input method interface
CN105635779A (en) * 2015-12-29 2016-06-01 深圳Tcl数字技术有限公司 Control method and apparatus for input method of smart television
CN105824694A (en) * 2016-03-09 2016-08-03 百度在线网络技术(北京)有限公司 Adjustment method and device for resources of applications
CN105930140A (en) * 2016-04-01 2016-09-07 乐视控股(北京)有限公司 Input mode setting method and apparatus
CN106598269A (en) * 2016-12-15 2017-04-26 北京小米移动软件有限公司 Input method switching method and apparatus
CN106774976A (en) * 2016-12-01 2017-05-31 北京小米移动软件有限公司 input method switching method and device
CN106886513A (en) * 2015-12-16 2017-06-23 宏碁股份有限公司 Electronic installation and its operating method
CN108052212A (en) * 2017-10-18 2018-05-18 深圳市金立通信设备有限公司 A kind of method, terminal and computer-readable medium for inputting word
CN109828678A (en) * 2019-01-30 2019-05-31 陕西科技大学 A kind of Chinese and English automatic switchover input method and system based on deep learning
CN110008383A (en) * 2019-04-11 2019-07-12 北京安护环宇科技有限公司 It is a kind of based on the black and white lists search method more indexed and device
CN111610863A (en) * 2020-05-12 2020-09-01 Oppo广东移动通信有限公司 Information input method, device, terminal equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101419531A (en) * 2008-12-12 2009-04-29 腾讯科技(深圳)有限公司 Character input method and device in computer
CN101887310A (en) * 2010-06-21 2010-11-17 北京搜狗科技发展有限公司 Method and device for switching input state and keyboard style
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
CN103049098A (en) * 2012-12-28 2013-04-17 华为技术有限公司 Device and method for input method shifting
US20130124187A1 (en) * 2011-11-14 2013-05-16 Microsoft Corporation Adaptive input language switching

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101419531A (en) * 2008-12-12 2009-04-29 腾讯科技(深圳)有限公司 Character input method and device in computer
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
CN101887310A (en) * 2010-06-21 2010-11-17 北京搜狗科技发展有限公司 Method and device for switching input state and keyboard style
US20130124187A1 (en) * 2011-11-14 2013-05-16 Microsoft Corporation Adaptive input language switching
CN103049098A (en) * 2012-12-28 2013-04-17 华为技术有限公司 Device and method for input method shifting

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105373320A (en) * 2015-12-09 2016-03-02 广东欧珀移动通信有限公司 Control method, control device and electronic device
CN106886513A (en) * 2015-12-16 2017-06-23 宏碁股份有限公司 Electronic installation and its operating method
WO2017113597A1 (en) * 2015-12-29 2017-07-06 深圳Tcl数字技术有限公司 Control method and device for intelligent television input method
CN105635779A (en) * 2015-12-29 2016-06-01 深圳Tcl数字技术有限公司 Control method and apparatus for input method of smart television
CN105635779B (en) * 2015-12-29 2019-10-01 深圳Tcl数字技术有限公司 The control method and device of smart television input method
CN105511796A (en) * 2015-12-30 2016-04-20 努比亚技术有限公司 Method and device for information inputting of adaptive-switching input method interface
CN105824694A (en) * 2016-03-09 2016-08-03 百度在线网络技术(北京)有限公司 Adjustment method and device for resources of applications
CN105930140A (en) * 2016-04-01 2016-09-07 乐视控股(北京)有限公司 Input mode setting method and apparatus
CN106774976A (en) * 2016-12-01 2017-05-31 北京小米移动软件有限公司 input method switching method and device
CN106598269A (en) * 2016-12-15 2017-04-26 北京小米移动软件有限公司 Input method switching method and apparatus
CN108052212A (en) * 2017-10-18 2018-05-18 深圳市金立通信设备有限公司 A kind of method, terminal and computer-readable medium for inputting word
CN109828678A (en) * 2019-01-30 2019-05-31 陕西科技大学 A kind of Chinese and English automatic switchover input method and system based on deep learning
CN110008383A (en) * 2019-04-11 2019-07-12 北京安护环宇科技有限公司 It is a kind of based on the black and white lists search method more indexed and device
CN111610863A (en) * 2020-05-12 2020-09-01 Oppo广东移动通信有限公司 Information input method, device, terminal equipment and storage medium
CN111610863B (en) * 2020-05-12 2023-08-22 Oppo广东移动通信有限公司 Information input method, device, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN104765750B (en) 2020-12-25

Similar Documents

Publication Publication Date Title
CN104765750A (en) Input language switch method and device for input method application
US9400775B2 (en) Document data entry suggestions
CN108369580B (en) Language and domain independent model based approach to on-screen item selection
TWI573029B (en) Method, system and recording medium for providing dictionary function and file distribution system
AU2014327147B2 (en) Quick tasks for on-screen keyboards
US9959340B2 (en) Semantic lexicon-based input method editor
KR102039553B1 (en) Method and apparatus for providing intelligent service using inputted character in a user device
US20160078865A1 (en) Information Processing Method And Electronic Device
US8862989B2 (en) Extensible input method editor dictionary
CN108664141B (en) Input method with document context self-learning function
US11531814B2 (en) Method and device for generating modified statement
CN104281620A (en) Contact person data query method and device supporting polyphones
KR20160100322A (en) Identifying semantically-meaningful text selections
US20230140997A1 (en) Method and Apparatus for Selecting Sample Corpus Used to Optimize Translation Model
CN102014199A (en) Information display method and terminal
CN104123378A (en) Information processing method and electronic device
CN115081423A (en) Document editing method and device, electronic equipment and storage medium
CN111651988B (en) Method, apparatus, device and storage medium for training model
CN103699524A (en) Word segmentation method and mobile terminal
CN104598464A (en) Information processing method and electronic equipment
US9236049B2 (en) Mash-up service generation apparatus and method based on voice command
KR20220084598A (en) System and method for recognizing drawing in image format
CN104484315A (en) Method and system for regulating type font of single module
CN104268195A (en) Method and device for processing local resources in terminal
CN103617194A (en) Ranked data processing method and device

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