CN101710325A - Method for loading input method word bank, method for inputting characters and input method system - Google Patents

Method for loading input method word bank, method for inputting characters and input method system Download PDF

Info

Publication number
CN101710325A
CN101710325A CN200910188605A CN200910188605A CN101710325A CN 101710325 A CN101710325 A CN 101710325A CN 200910188605 A CN200910188605 A CN 200910188605A CN 200910188605 A CN200910188605 A CN 200910188605A CN 101710325 A CN101710325 A CN 101710325A
Authority
CN
China
Prior art keywords
input method
user
lexicon
loaded
internal memory
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.)
Pending
Application number
CN200910188605A
Other languages
Chinese (zh)
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 CN200910188605A priority Critical patent/CN101710325A/en
Publication of CN101710325A publication Critical patent/CN101710325A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The invention discloses a method for loading an input method word bank, a method for inputting characters and an input method system. The method for loading an input method word bank comprises the following steps: loading a core word bank in a memory for being called by an input method when starting the input method; querying an auxiliary word bank corresponding to triggered cooperation of a user according to the triggered operation of the user; and loading the auxiliary word bank obtained by querying in the memory for being called by the input method. In the embodiment of the invention, by asynchronously loading various word banks of the input method in the memory rather than synchronously, the fact that a corresponding word bank can be loaded only when a user needs to load the corresponding word bank is realized, thus saving the memory in the computer of the user and having no influence on typing speed of the user.

Description

The method and the input method system of the method that the input method dictionary loads, character input
Technical field
The present invention relates to the computer input method technical field, relate in particular to the method and the input method system of a kind of method of input method dictionary loading, the input of a kind of character.
Background technology
The computer user will be input to computer with Chinese character, general Chinese or the English Input Software of using.Chinese or English Input Software can be divided into keyboard input and non-keyboard input, and comparative maturity uses the widest input in Chinese software that just is based on keyboard at present.Input in Chinese software is to run on the operating system, converts the coding of keyboard input or the media data of other non-keyboards input to software that Chinese character is imported.
Keyboard input in Chinese software is to utilize keyboard, imports a kind of method of Chinese character according to certain coding rule.And non-keyboard input in Chinese software comprises handwriting input software, phonetic entry software, OCR Input Software etc.
The corresponding a kind of input method of a kind of Input Software has the dictionary of a lot of types in the input method, as core word bank, and user thesaurus, classified lexicon etc.
The inventor is in implementing process of the present invention, find that prior art has following shortcoming at least: in the prior art, the user is when starting input method, dictionaries such as core word bank, user thesaurus, classified lexicon can disposablely all be written in the internal memory, therefore take bigger memory headroom, and influence the speed that the user typewrites for the first time.
Summary of the invention
Embodiment of the invention technical matters to be solved is: a kind of input method dictionary loading technique is provided, both can have saved the internal memory of user computer, do not influence the needs of the normal input of user again.
For solving the problems of the technologies described above, the invention provides a kind of input method dictionary loading method, comprising:
When input method starts, core word bank is loaded in the internal memory for input method calls;
According to user's trigger action, inquiry and the corresponding auxiliary lexicon of described user's trigger action;
The auxiliary lexicon of inquiry gained is loaded in the internal memory for input method calls.
Wherein, starting input method comprises:
In current application program, start input method; Or
In current action pane, start input method.
Wherein said auxiliary lexicon comprises: one or more in user thesaurus, classified lexicon, other dictionaries.
Wherein, when the auxiliary lexicon corresponding with described user's trigger action is user thesaurus, the user thesaurus of inquiry gained be loaded in the internal memory to call for input method comprise:
Judge whether the user thesaurus shared drive is created;
If then the shared drive in input method is provided with the mark that user thesaurus has loaded, and calls for input method;
If not, then create the user thesaurus shared drive, start thread and load user thesaurus in internal memory, and the mark that user thesaurus has loaded is set, call for input method at the shared drive of input method.
Wherein, when the auxiliary lexicon corresponding with described user's trigger action is classified lexicon, the classified lexicon of inquiry gained be loaded in the internal memory to call for input method comprise:
When in the configuration item of input method, enabling classified lexicon, judge whether up-to-date classified lexicon to be loaded in the internal memory;
If not, then start thread and load up-to-date classified lexicon in internal memory, and the mark that user thesaurus has loaded is set, call for input method at the shared drive of input method;
If whether the timestamp of then judging the classified lexicon be loaded into internal memory equals the timestamp of up-to-date classified lexicon, if then the shared drive in input method is provided with the mark that classified lexicon has loaded, and calls for input method; If not, then unloading has been loaded into the classified lexicon in the internal memory, restarts thread and loads up-to-date classified lexicon in internal memory, and at the shared drive of input method the mark that user thesaurus has loaded is set, and calls for input method.
Accordingly, the real method that a kind of character input also is provided of the present invention comprises:
When input method starts, core word bank is loaded in the internal memory for input method calls;
According to user's trigger action, inquiry and the corresponding auxiliary lexicon of described user's trigger action;
The auxiliary lexicon of inquiry gained is loaded in the internal memory for input method calls;
Receive the information of user by the input method input;
According to the information of described input, in described core word bank and/or auxiliary lexicon, retrieve, obtain corresponding candidate item;
Receive the user and select information, the candidate item of output appointment.
The present invention also provides a kind of input method system, comprising: input trigger, thesaurus-lookups module and dictionary;
Described thesaurus-lookups module comprises: core word bank query unit and auxiliary lexicon query unit;
Described dictionary comprises core word bank and auxiliary lexicon;
Described core word bank query unit is inquired about described core word bank and is loaded in the internal memory and calls for input method when described input method starts;
Described auxiliary lexicon query unit, when the user carries out trigger action on input trigger, inquiry and the corresponding auxiliary lexicon of described user's trigger action, and described auxiliary lexicon is loaded in the internal memory for input method calls.
Wherein, described core word bank is used to put down in writing all Chinese character word, everyday expressions;
Described auxiliary lexicon, it comprise in user thesaurus, classified lexicon, other dictionaries at least any;
Described user thesaurus is used to put down in writing the normal word of importing of user;
Described classified lexicon is used to put down in writing the word of various specific areas;
Described other dictionaries are used to put down in writing the manual word of creating of word, user that input method is created automatically.
Wherein, described input method system starts in current application program or in current action pane.
Wherein, the auxiliary lexicon query unit comprises:
The user thesaurus query unit when auxiliary lexicon that is used for the trigger action correspondence of carrying out as the user on described input trigger is user thesaurus, is loaded into the user thesaurus of inquiry gained in the internal memory and calls for input method;
The classified lexicon query unit when auxiliary lexicon that is used for the trigger action correspondence of carrying out as the user on described input trigger is classified lexicon, is loaded into the classified lexicon of inquiry gained in the internal memory and calls for input method;
Other thesaurus-lookups unit, the auxiliary lexicon that is used for the trigger action correspondence of carrying out as the user on described input trigger are during for other dictionaries, other dictionaries of inquiry gained are loaded in the internal memory call for input method.
Wherein, described user thesaurus query unit comprises:
Judging unit is used to judge whether the user thesaurus shared drive is created;
User's flag setting unit is used in described judgment unit judges when being, at the shared drive of input method the mark that user thesaurus has loaded is set, and calls for input method;
The user thesaurus loading unit is used in described judgment unit judges creating the user thesaurus shared drive for not the time, starts thread and loads user thesaurus in internal memory;
Described flag setting unit also is used for after described user thesaurus loading unit is loaded into internal memory with described user thesaurus, at the shared drive of input method the mark that user thesaurus has loaded is set, and calls for input method.
Wherein, described classified lexicon query unit comprises:
First judging unit is used for judging whether up-to-date classified lexicon to be loaded in the internal memory when the configuration item of input method is enabled classified lexicon;
The classified lexicon loading unit is used in described first judgment unit judges starting thread and loading up-to-date classified lexicon in internal memory for not the time;
Key words sorting is provided with the unit, is used for loading up-to-date classified lexicon behind internal memory at described classified lexicon loading unit, at the shared drive of input method the mark that user thesaurus has loaded is set, and calls for input method;
Second judging unit is used in described first judgment unit judges when being, whether the timestamp of judging the classified lexicon that has been loaded into internal memory equals the timestamp of up-to-date classified lexicon;
Described key words sorting is provided with the unit and also is used in described second judgment unit judges when being, at the shared drive of input method the mark that classified lexicon has loaded is set, and calls for input method;
The classified lexicon unloading unit is used in described second judgment unit judges for not the time, and unloading has been loaded into the classified lexicon in the internal memory;
Described classified lexicon loading unit also is used for restarting thread and loading up-to-date classified lexicon in internal memory after described classified lexicon unloading unit will be loaded into the classified lexicon unloading of internal memory.
Implement the embodiment of the invention, by being loaded in the internal memory polytype dictionary of input method is asynchronous, but not all be loaded in the internal memory synchronously, thereby realized when the user need load corresponding dictionary, just loading corresponding dictionary, save the internal memory of user computer, can not influence user's typing speed.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention, the accompanying drawing of required use is done to introduce simply in will describing embodiment below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of input method dictionary loading method embodiment one among the present invention;
Fig. 2 is the schematic flow sheet of a kind of input method dictionary loading method embodiment two among the present invention;
Fig. 3 is the schematic flow sheet of a kind of input method dictionary loading method embodiment three among the present invention;
Fig. 4 is the schematic flow sheet of a kind of method embodiment of character input among the present invention;
Fig. 5 is the structural representation of a kind of input method system embodiment one among the present invention;
Fig. 6 is the structural representation of a kind of input method system embodiment two among the present invention;
Fig. 7 is the structural representation of a kind of input method system embodiment three among the present invention.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
The present invention can be applied to the platform of various input modes, inputting method for example, non-keyboard input method.Promptly the information by the input method input comprises the keypad character string, the information of handwriting input and information of phonetic entry or the like, the information of these input mode inputs all needs to use dictionary and carries out the candidate item ordering, is output as prior art because input information is converted to candidate item, does not repeat them here.Be that example describes as the input information of input method only below with the keyboard input of character string.
What load in the core word bank of the present invention mainly is to satisfy the word that the user imports requirement substantially; And auxiliary lexicon mainly comprises user thesaurus, classified lexicon and other dictionaries.What put down in writing in the user thesaurus mainly is the set of words that the word according to user's frequent input generates; And classified lexicon generally is the dictionary according to ambit classification, medicine dictionary for example, electricity dictionary and IT class dictionary or the like.And what put down in writing in other dictionaries is word of creating automatically of the word manually created of user and input method or the like.Need to prove, more than word in the various dictionaries be not complete difference, may there be common factor in the set of words that comprises in the set of words that comprises in dictionary and other dictionaries; Also be that same word may belong to different dictionary set, for example " track " speech belongs to everyday expressions, includes in the set of core word bank, and simultaneously, " track " speech belongs to the physics field again, can include in the set of classified lexicon.
Referring to Fig. 1, be the schematic flow sheet of a kind of input method dictionary loading method embodiment one among the present invention.
Step 100 when input method starts, is loaded in the internal memory core word bank for input method and calls;
Step 101, according to user's trigger action, inquiry and the corresponding auxiliary lexicon of described user's trigger action;
Step 102 is loaded in the internal memory auxiliary lexicon of inquiry gained for input method and calls.
Need to prove that the input method in the embodiment of the invention can start in the current utilization program of computer run, for example MSN, QQ chat tool also can start in current action pane, for example word document or the like.User's trigger action can be to knock the key that an expression requires to load a certain auxiliary lexicon on keyboard, perhaps uses mouse to click the button that expression loads a certain auxiliary lexicon on input method language hurdle; Perhaps in the config option of input method, select expression to load the option of a certain auxiliary lexicon;
By above step as can be seen, core word bank in the embodiment of the invention just is loaded in the internal memory when input method starts, and user's trigger action is depended in the loading of auxiliary lexicon, also be that core word bank and auxiliary lexicon are asynchronous loadings, on the one hand, can prevent that all dictionaries are loaded into internal memory together, the not enough use of the calculator memory that makes the user use causes computer run slow excessively, on the other hand, prevent that also speed is very slow because all dictionaries load the user that causes for the first time during input character together.
Referring to Fig. 2, be the schematic flow sheet of a kind of input method dictionary loading method embodiment two among the present invention.
In the embodiment of the invention, in the time of will being described in detail in the input method startup, loaded after the core word bank, when the pairing auxiliary lexicon of user's trigger action is user thesaurus, user thesaurus has been loaded into the process of calling for input method in the internal memory.
Step 200 judges whether the user thesaurus shared drive is created; When being judged as not, change step 201 over to; Be judged as be in, directly change step 202 over to;
Step 201 is created the user thesaurus shared drive, starts thread and loads user thesaurus in internal memory;
Step 202 is provided with the mark that user thesaurus has loaded at the shared drive of input method, calls for input method.
What put down in writing in the user thesaurus is the often word of input of user, can realize the intelligent sequencing of input method, and the process of input method intelligent sequencing is a prior art, does not repeat them here.Need to prove, when in new application program or action pane, starting input method,, then do not need to load once more if user thesaurus has been loaded in the internal memory, can show a mark that has been provided with in the shared drive of input method at this moment, the identifying user dictionary loads.If when in new application program or action pane, starting input method, the shared drive of input method is this mark not, represent that then user thesaurus also is not loaded into internal memory, then just can not occur pointing out user thesaurus to be loaded into the mark of internal memory on the input method language hurdle; The user can carry out the relative trigger operation, for example knocks the key that an expression requires to load user thesaurus on keyboard, perhaps uses mouse to click the button that expression loads user thesaurus on input method language hurdle; Perhaps in the config option of input method, select expression to load the option of user thesaurus; Indication loads user thesaurus to internal memory, calls for input method.
Referring to Fig. 3, be the schematic flow sheet of a kind of input method dictionary loading method embodiment three among the present invention.
In the embodiment of the invention, in the time of will being described in detail in the input method startup, loaded after the core word bank, when the pairing auxiliary lexicon of user's trigger action is classified lexicon, classified lexicon has been loaded into the process of calling for input method in the internal memory.
Whether step 300 checks in the config option of input method the start-up loading classified lexicon; If not, then change step 306 over to, if change step 301 over to;
Step 301 judges whether the classified lexicon that has loaded in internal memory; If, then change step 302 over to, if not, then change step 304 over to;
Whether step 302, the timestamp of judging the classified lexicon loaded in internal memory equal the timestamp of up-to-date classified lexicon; If, then change step 306 over to, if not, then change step 303 over to;
Step 303, the classified lexicon that has loaded in the unloading internal memory;
Step 304 starts thread and loads up-to-date classified lexicon in internal memory;
Step 305 is provided with the mark that user thesaurus has loaded at the shared drive of input method, calls for input method;
Step 306, the flow process of end load classification dictionary.
What put down in writing in the classified lexicon is that classified lexicon generally is the dictionary according to ambit classification, medicine dictionary for example, electricity dictionary and IT class dictionary or the like.Need to prove, different with the loading user thesaurus is, when in new application program or action pane, starting input method, even classified lexicon has been loaded in the internal memory, need also to detect whether the classified lexicon that has loaded is up-to-date classified lexicon, if up-to-date classified lexicon does not then need to load once more, this moment, the shared drive of input method showed a mark, represented that up-to-date classified lexicon loads.If when in new application program or action pane, starting input method, the shared drive of input method is this mark not, represent that then up-to-date classified lexicon also is not loaded into internal memory, then just can not occur pointing out classified lexicon to be loaded into the mark of internal memory on the language hurdle of input method; The user can carry out the relative trigger operation, for example knocks the key that an expression requires the load classification dictionary on keyboard, perhaps uses mouse to click the button of expression load classification dictionary on input method language hurdle; Perhaps select the option of expression load classification dictionary in the config option of input method, indication load classification dictionary calls for input method to internal memory.
Need to prove that auxiliary lexicon also comprises other dictionaries, wherein record is the manual word of creating of user and the automatic word created of input method or the like.According to the function difference that the user sets, also having other dictionaries can be loaded.In five-stroke input method, the user may select complementary phonetic input.User's selection also can be switched different functions at any time along with different needs.Input method needs response user's that can be real-time different needs, switches to load different dictionary files.
Referring to Fig. 4, be the schematic flow sheet of a kind of method embodiment of character input among the present invention.
Step 400 when input method starts, is loaded in the internal memory core word bank for input method and calls;
Step 401, according to user's trigger action, inquiry and the corresponding auxiliary lexicon of described user's trigger action;
Step 402 is loaded in the internal memory auxiliary lexicon of inquiry gained for input method and calls.
Step 403 receives the information of user by the input method input;
Step 404 according to the information of described input, is retrieved in described core word bank and/or auxiliary lexicon, obtains corresponding candidate item;
Step 405 receives the user and selects information, the candidate item of output appointment.
Need to prove that the input method in the embodiment of the invention can start in the current utilization program of computer run, for example MSN, QQ chat tool also can start in current action pane, for example word document or the like.
User's trigger action can be to knock the key that an expression requires to load a certain auxiliary lexicon on keyboard, perhaps uses mouse to click the button that expression loads a certain auxiliary lexicon on input method language hurdle; Perhaps in the config option of input method, select expression to load the option of a certain auxiliary lexicon;
By above step as can be seen, core word bank in the embodiment of the invention just is loaded in the internal memory when input method starts, and user's trigger action is depended in the loading of auxiliary lexicon, also be that core word bank and auxiliary lexicon are asynchronous loadings, on the one hand, can prevent that all dictionaries are loaded into internal memory together, the not enough use of the calculator memory that makes the user use causes computer run slow excessively, on the other hand, prevent that also speed is very slow because all dictionaries load the user that causes for the first time during input character together.Therefore the user is when using input method, and during input character, speed can not be subjected to the influence of loading word stock for the first time.
Referring to Fig. 5, be the structural representation of a kind of input method system embodiment one among the present invention.
System in the present embodiment comprises: input trigger 1, thesaurus-lookups module 2 and dictionary 3;
Described thesaurus-lookups module 2 comprises: core word bank query unit 20 and auxiliary lexicon query unit 21;
Described dictionary 3 comprises core word bank 30 and auxiliary lexicon 31;
Described core word bank query unit 20 is inquired about described core word bank 30 and is loaded in the internal memory and calls for input method when described input method starts;
Described auxiliary lexicon query unit 21, when the user carries out trigger action on input trigger 1, inquiry and the corresponding auxiliary lexicon 31 of described user's trigger action, and described auxiliary lexicon 31 is loaded in the internal memory for input method calls.
Need to prove that described core word bank 30 is used to put down in writing all Chinese character word, everyday expressions;
Described auxiliary lexicon 31, it comprise in user thesaurus 310, classified lexicon 311, other dictionaries 312 at least any;
Described user thesaurus 310 is used to put down in writing the normal word of importing of user;
Described classified lexicon 311 is used to put down in writing the word of various specific areas; Medicine dictionary for example, electricity dictionary and IT class dictionary or the like;
Described other dictionaries 312 are used to put down in writing the manual word of creating of word, user that input method is created automatically.
Auxiliary lexicon query unit 21 comprises:
User thesaurus query unit 210 when the auxiliary lexicon that is used for the trigger action correspondence of carrying out as the user on described input trigger 1 is user thesaurus 310, is loaded into the user thesaurus 310 of inquiry gained in the internal memory and calls for input method;
Classified lexicon query unit 211 when the auxiliary lexicon that is used for the trigger action correspondence of carrying out as the user on described input trigger 1 is classified lexicon 311, is loaded into the classified lexicon 311 of inquiry gained in the internal memory and calls for input method;
Other thesaurus-lookups unit 212, the auxiliary lexicon that is used for the trigger action correspondence of carrying out as the user on described input trigger 1 are during for other dictionaries 312, other dictionaries 312 of inquiry gained are loaded in the internal memory call for input method.
Need to prove the input method system in the embodiment of the invention, i.e. a kind of software of input characters, can in the current utilization program of computer run, start, for example MSN, QQ chat tool also can start in current action pane, for example word document or the like.
Core word bank in the embodiment of the invention just is loaded in the internal memory when input method starts, and user's trigger action is depended in the loading of auxiliary lexicon, also be that core word bank and auxiliary lexicon are asynchronous loadings, on the one hand, can prevent that all dictionaries are loaded into internal memory together, the not enough use of the calculator memory that makes the user use causes computer run slow excessively, on the other hand, prevent that also speed is very slow because all dictionaries load the user that causes for the first time during input character together.
Referring to Fig. 6, be the structural representation of a kind of input method system embodiment two among the present invention.
In the embodiment of the invention, the 26S Proteasome Structure and Function of user thesaurus query unit 210 will be described in detail, when special instruction starts in computing machine or on the portable terminal at input method system, loaded after the core word bank, when the pairing auxiliary lexicon of trigger action that carries out on input trigger as the user was user thesaurus, user thesaurus query unit 210 was loaded into user thesaurus the process of calling for input method in the internal memory.
User thesaurus query unit 210 in the present embodiment comprises:
Judging unit 2100 is used to judge whether the user thesaurus shared drive is created;
User's flag setting unit 2101 is used for being judged as when being at described judging unit 2100, at the shared drive of input method the mark that user thesaurus has loaded is set, and calls for input method;
User thesaurus loading unit 2102 is used for creating the user thesaurus shared drive when described judging unit 2100 is judged as not, starts thread and loads user thesaurus in internal memory;
Described flag setting unit 2101 also is used for after described user thesaurus loading unit 2102 is loaded into internal memory with described user thesaurus, at the shared drive of input method the mark that user thesaurus has loaded is set, and calls for input method.
Need to prove, when in new application program or action pane, starting input method, if user thesaurus has been loaded in the internal memory, then do not need by user thesaurus query unit 210 inquiring user dictionaries and loading once more, this moment, the shared drive of input method can show a mark, and the identifying user dictionary loads.If when in new application program or action pane, starting input method, the shared drive of input method is this mark not, represent that then user thesaurus also is not loaded into internal memory, then just can not occur pointing out user thesaurus to be loaded into the mark of internal memory on the input method language hurdle; The user can carry out the relative trigger operation, for example knocks the key that an expression requires to load user thesaurus on keyboard, perhaps uses mouse to click the button that expression loads user thesaurus on input method language hurdle; Perhaps select expression to load the option of user thesaurus in the config option of input method, indication user thesaurus query unit 210 loads user thesaurus to internal memory, calls for input method.
Referring to Fig. 7, be the structural representation of a kind of input method system embodiment three among the present invention.
In the embodiment of the invention, the 26S Proteasome Structure and Function of classified lexicon query unit 211 will be described in detail, when special instruction starts in computing machine or on the portable terminal at input method system, loaded after the core word bank, when the pairing auxiliary lexicon of trigger action that carries out on input trigger as the user was classified lexicon, classified lexicon query unit 211 was loaded into classified lexicon the process of calling for input method in the internal memory.
Classified lexicon query unit 211 in the present embodiment comprises:
First judging unit 2110 is used for judging whether up-to-date classified lexicon to be loaded in the internal memory when the configuration item of input method is enabled classified lexicon;
Classified lexicon loading unit 2111 is used for when described first judging unit 2110 is judged as not, starts thread and loads up-to-date classified lexicon in internal memory;
Key words sorting is provided with unit 2112, is used for loading up-to-date classified lexicon behind internal memory at described classified lexicon loading unit 2111, at the shared drive of input method the mark that user thesaurus has loaded is set, and calls for input method;
Second judging unit 2113 is used for being judged as when being at described first judging unit 2110, and whether the timestamp of judging the classified lexicon that has been loaded into internal memory equals the timestamp of up-to-date classified lexicon;
Described key words sorting is provided with unit 2112 and also is used for being judged as when being at described second judging unit 2113, at the shared drive of input method the mark that classified lexicon has loaded is set, and calls for input method;
Classified lexicon unloading unit 2114 is used for when described second judging unit 2113 is judged as not, and unloading has been loaded into the classified lexicon in the internal memory;
Described classified lexicon loading unit 2111 also is used for restarting thread and loading up-to-date classified lexicon in internal memory after described classified lexicon unloading unit 2114 will be loaded into the classified lexicon unloading of internal memory.
Need to prove, different with user thesaurus query unit loading user thesaurus is, when in new application program or action pane, starting input method, even classified lexicon has been loaded in the internal memory, need to detect whether the classified lexicon that has loaded is up-to-date classified lexicon, if up-to-date classified lexicon, then classified lexicon query unit 211 does not need load classification dictionary once more yet, this moment, the shared drive of input method can show a mark, represented that up-to-date classified lexicon loads.If when in new application program or action pane, starting input method, the shared drive of input method is this mark not, represent that then up-to-date classified lexicon also is not loaded into internal memory, then just can not occur pointing out classified lexicon to be loaded into the mark of internal memory on the language hurdle of input method; The user can carry out the relative trigger operation, for example knocks the key that an expression requires the load classification dictionary on keyboard, perhaps uses mouse to click the button of expression load classification dictionary on input method language hurdle; Perhaps select the option of expression load classification dictionary in the config option of input method, indication classified lexicon query unit 211 load classification dictionaries call for input method to internal memory.
Need to prove that auxiliary lexicon also comprises other dictionaries, wherein record is the manual word of creating of user and the automatic word created of input method or the like.According to the function difference that the user sets, also can indicate other thesaurus-lookups unit 212 to load other dictionaries.In five-stroke input method, the user may select complementary phonetic input.User's selection also can be switched different functions at any time along with different needs.Input method needs response user's that can be real-time different needs, switches to load different dictionary files.
By above embodiment as can be seen, core word bank in the input method system of the present invention and auxiliary lexicon are asynchronous loadings, on the one hand, can prevent that all dictionaries are loaded into internal memory together, the not enough use of the calculator memory that makes the user use causes computer run slow excessively, on the other hand, prevent that also speed is very slow because all dictionaries load the user that causes for the first time during input character together.Therefore the user is when using input method, and during input character, speed can not be subjected to the influence of loading word stock for the first time.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
The above is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also are considered as protection scope of the present invention.

Claims (12)

1. the method that the input method dictionary loads is characterized in that, comprising:
When input method starts, core word bank is loaded in the internal memory for input method calls;
According to user's trigger action, inquiry and the corresponding auxiliary lexicon of described user's trigger action;
The auxiliary lexicon of inquiry gained is loaded in the internal memory for input method calls.
2. the method for claim 1 is characterized in that, described startup input method comprises:
In current application program, start input method; Or
In current action pane, start input method.
3. method as claimed in claim 1 or 2 is characterized in that, described auxiliary lexicon comprises: one or more in user thesaurus, classified lexicon, other dictionaries.
4. method as claimed in claim 3 is characterized in that, when the auxiliary lexicon corresponding with described user's trigger action is user thesaurus, the user thesaurus of inquiry gained is loaded in the internal memory to call for input method comprises:
Judge whether the user thesaurus shared drive is created;
If then the shared drive in input method is provided with the mark that user thesaurus has loaded, and calls for input method;
If not, then create the user thesaurus shared drive, start thread and load user thesaurus in internal memory, and the mark that user thesaurus has loaded is set, call for input method at the shared drive of input method.
5. method as claimed in claim 3 is characterized in that, when the auxiliary lexicon corresponding with described user's trigger action is classified lexicon, the classified lexicon of inquiry gained is loaded in the internal memory to call for input method comprises:
When in the configuration item of input method, enabling classified lexicon, judge whether up-to-date classified lexicon to be loaded in the internal memory;
If not, then start thread and load up-to-date classified lexicon in internal memory, and the mark that user thesaurus has loaded is set, call for input method at the shared drive of input method;
If whether the timestamp of then judging the classified lexicon be loaded into internal memory equals the timestamp of up-to-date classified lexicon, if then the shared drive in input method is provided with the mark that classified lexicon has loaded, and calls for input method; If not, then unloading has been loaded into the classified lexicon in the internal memory, restarts thread and loads up-to-date classified lexicon in internal memory, and at the shared drive of input method the mark that user thesaurus has loaded is set, and calls for input method.
6. the method for a character input is characterized in that, comprising:
When input method starts, core word bank is loaded in the internal memory for input method calls;
According to user's trigger action, inquiry and the corresponding auxiliary lexicon of described user's trigger action;
The auxiliary lexicon of inquiry gained is loaded in the internal memory for input method calls;
Receive the information of user by the input method input;
According to the information of described input, in described core word bank and/or auxiliary lexicon, retrieve, obtain corresponding candidate item;
Receive the user and select information, the candidate item of output appointment.
7. an input method system is characterized in that, comprising: input trigger, thesaurus-lookups module and dictionary;
Described thesaurus-lookups module comprises: core word bank query unit and auxiliary lexicon query unit;
Described dictionary comprises core word bank and auxiliary lexicon;
Described core word bank query unit is inquired about described core word bank and is loaded in the internal memory and calls for input method when described input method starts;
Described auxiliary lexicon query unit, when the user carries out trigger action on input trigger, inquiry and the corresponding auxiliary lexicon of described user's trigger action, and described auxiliary lexicon is loaded in the internal memory for input method calls.
8. system as claimed in claim 7 is characterized in that, described core word bank is used to put down in writing all Chinese character word, everyday expressions;
Described auxiliary lexicon, it comprise in user thesaurus, classified lexicon, other dictionaries at least any;
Described user thesaurus is used to put down in writing the normal word of importing of user;
Described classified lexicon is used to put down in writing the word of various specific areas;
Described other dictionaries are used to put down in writing the manual word of creating of word, user that input method is created automatically.
9. system as claimed in claim 8 is characterized in that described input method system starts in current application program or in current action pane.
10. system as claimed in claim 9 is characterized in that, the auxiliary lexicon query unit comprises:
The user thesaurus query unit when auxiliary lexicon that is used for the trigger action correspondence of carrying out as the user on described input trigger is user thesaurus, is loaded into the user thesaurus of inquiry gained in the internal memory and calls for input method;
The classified lexicon query unit when auxiliary lexicon that is used for the trigger action correspondence of carrying out as the user on described input trigger is classified lexicon, is loaded into the classified lexicon of inquiry gained in the internal memory and calls for input method;
Other thesaurus-lookups unit, the auxiliary lexicon that is used for the trigger action correspondence of carrying out as the user on described input trigger are during for other dictionaries, other dictionaries of inquiry gained are loaded in the internal memory call for input method.
11. system as claimed in claim 10 is characterized in that, described user thesaurus query unit comprises:
Judging unit is used to judge whether the user thesaurus shared drive is created;
User's flag setting unit is used in described judgment unit judges when being, at the shared drive of input method the mark that user thesaurus has loaded is set, and calls for input method;
The user thesaurus loading unit is used in described judgment unit judges creating the user thesaurus shared drive for not the time, starts thread and loads user thesaurus in internal memory;
Described flag setting unit also is used for after described user thesaurus loading unit is loaded into internal memory with described user thesaurus, at the shared drive of input method the mark that user thesaurus has loaded is set, and calls for input method.
12. system as claimed in claim 10 is characterized in that, described classified lexicon query unit comprises:
First judging unit is used for judging whether up-to-date classified lexicon to be loaded in the internal memory when the configuration item of input method is enabled classified lexicon;
The classified lexicon loading unit is used in described first judgment unit judges starting thread and loading up-to-date classified lexicon in internal memory for not the time;
Key words sorting is provided with the unit, is used for loading up-to-date classified lexicon behind internal memory at described classified lexicon loading unit, at the shared drive of input method the mark that user thesaurus has loaded is set, and calls for input method;
Second judging unit is used in described first judgment unit judges when being, whether the timestamp of judging the classified lexicon that has been loaded into internal memory equals the timestamp of up-to-date classified lexicon;
Described key words sorting is provided with the unit and also is used in described second judgment unit judges when being, at the shared drive of input method the mark that classified lexicon has loaded is set, and calls for input method;
The classified lexicon unloading unit is used in described second judgment unit judges for not the time, and unloading has been loaded into the classified lexicon in the internal memory;
Described classified lexicon loading unit also is used for restarting thread and loading up-to-date classified lexicon in internal memory after described classified lexicon unloading unit will be loaded into the classified lexicon unloading of internal memory.
CN200910188605A 2009-12-03 2009-12-03 Method for loading input method word bank, method for inputting characters and input method system Pending CN101710325A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910188605A CN101710325A (en) 2009-12-03 2009-12-03 Method for loading input method word bank, method for inputting characters and input method system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910188605A CN101710325A (en) 2009-12-03 2009-12-03 Method for loading input method word bank, method for inputting characters and input method system

Publications (1)

Publication Number Publication Date
CN101710325A true CN101710325A (en) 2010-05-19

Family

ID=42403115

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910188605A Pending CN101710325A (en) 2009-12-03 2009-12-03 Method for loading input method word bank, method for inputting characters and input method system

Country Status (1)

Country Link
CN (1) CN101710325A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103500016A (en) * 2013-09-27 2014-01-08 北京邮电大学 Character input optimization method based on interaction
CN106095128A (en) * 2016-06-14 2016-11-09 维沃移动通信有限公司 The character input method of a kind of mobile terminal and mobile terminal
CN106201010A (en) * 2016-06-29 2016-12-07 百度在线网络技术(北京)有限公司 Method for adding word bank and device
CN106897415A (en) * 2017-02-21 2017-06-27 北京焦点新干线信息技术有限公司 The loading method and device of a kind of dictionary
CN107515853A (en) * 2016-06-17 2017-12-26 北京搜狗科技发展有限公司 A kind of cell dictionary method for pushing and device
CN108427508A (en) * 2017-02-15 2018-08-21 北京搜狗科技发展有限公司 Input method and device, the method and apparatus for establishing LAN dictionary
WO2020051927A1 (en) * 2018-09-10 2020-03-19 周连惠 Input method facilitating word input

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103500016A (en) * 2013-09-27 2014-01-08 北京邮电大学 Character input optimization method based on interaction
CN106095128A (en) * 2016-06-14 2016-11-09 维沃移动通信有限公司 The character input method of a kind of mobile terminal and mobile terminal
CN106095128B (en) * 2016-06-14 2020-06-09 维沃移动通信有限公司 Character input method of mobile terminal and mobile terminal
CN107515853A (en) * 2016-06-17 2017-12-26 北京搜狗科技发展有限公司 A kind of cell dictionary method for pushing and device
CN107515853B (en) * 2016-06-17 2021-11-05 北京搜狗科技发展有限公司 Cell word bank pushing method and device
CN106201010A (en) * 2016-06-29 2016-12-07 百度在线网络技术(北京)有限公司 Method for adding word bank and device
CN108427508A (en) * 2017-02-15 2018-08-21 北京搜狗科技发展有限公司 Input method and device, the method and apparatus for establishing LAN dictionary
CN108427508B (en) * 2017-02-15 2024-01-19 北京搜狗科技发展有限公司 Input method and device, and method and device for establishing local area network word stock
CN106897415A (en) * 2017-02-21 2017-06-27 北京焦点新干线信息技术有限公司 The loading method and device of a kind of dictionary
CN106897415B (en) * 2017-02-21 2019-11-08 北京焦点新干线信息技术有限公司 A kind of loading method and device of dictionary
WO2020051927A1 (en) * 2018-09-10 2020-03-19 周连惠 Input method facilitating word input

Similar Documents

Publication Publication Date Title
CN101710325A (en) Method for loading input method word bank, method for inputting characters and input method system
US7277029B2 (en) Using language models to expand wildcards
KR100634496B1 (en) Input language recognition method and apparatus and method and apparatus for automatically interchanging input language modes employing the same
US7712053B2 (en) Explicit character filtering of ambiguous text entry
US7719521B2 (en) Navigational interface providing auxiliary character support for mobile and wearable computers
CN101546228B (en) Input method and device for realizing English reminding
US7587378B2 (en) Embedded rule engine for rendering text and other applications
CN102959547A (en) Word bank adjusting method and equipment
CN101556508A (en) Candidate phrase generating method, equipment, system and device in input method
CN101576783B (en) User interface, equipment and method for hand input
US20100122164A1 (en) Contextual prediction of user words and user actions
CN102033928B (en) Handwritten original handwriting recording and querying system and electronic device
CN103019530A (en) Menu indexing method and device based on gesture recognition and terminal thereof
US20060033644A1 (en) System and method for filtering far east languages
CN103186587A (en) Method for quickly translating English word of book through mobile phone
CN101901276A (en) Intelligent query system and method
CN101334769A (en) Method and device for regulating candidate word sequence
CN111310421B (en) Text batch marking method, terminal and computer storage medium
CN102999639B (en) A kind of lookup method based on speech recognition character index and system
CN102346559A (en) Method and device for deleting lexical items in input method as well as character input tool
CN1142471C (en) Method and apparatus for operation by hand written alphabets and symbols
CN101021828A (en) Chinese electronic big dictionary
CN102375817A (en) Method and device for acquiring self-created words
CN102662491B (en) Spelling input method based on octree
CN113282281A (en) AutoCAD drawing batch processing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20100519