CN108228620A - A kind of Word library updating method and device - Google Patents
A kind of Word library updating method and device Download PDFInfo
- Publication number
- CN108228620A CN108228620A CN201611156427.6A CN201611156427A CN108228620A CN 108228620 A CN108228620 A CN 108228620A CN 201611156427 A CN201611156427 A CN 201611156427A CN 108228620 A CN108228620 A CN 108228620A
- Authority
- CN
- China
- Prior art keywords
- dictionary
- list
- update
- standard
- application program
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2365—Ensuring data consistency and integrity
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Document Processing Apparatus (AREA)
Abstract
The embodiment of the present invention provides a kind of Word library updating method and device, wherein the method includes obtaining standard dictionary list, the standard dictionary list includes the latest edition number of one or more dictionaries stored in server and dictionary title;The standard dictionary list is matched with local dictionary, generation update dictionary list, the update dictionary list includes version number's dictionary title inconsistent with the latest edition number in the standard dictionary list and corresponding latest edition number in local dictionary, and dictionary title and the corresponding latest edition number for the dictionary for existing in the list of standard dictionary but being not present in the local dictionary;The update dictionary list is sent to server;Receive the dictionary corresponding with the update dictionary list that the server returns;Local dictionary is updated using the dictionary corresponding with the update dictionary list.The embodiment of the present invention can greatly reduce the size of input method installation kit, save system resource.
Description
Technical field
The present invention relates to input method technique field, more particularly to a kind of Word library updating method and a kind of Word library updating
Device.
Background technology
It much works and entertains with the development of information technology, in people's daily life and all carry out on mobile terminals, use
Family more and more continually needs to input information by input method application program come finishing man-machine interaction.
In the prior art, it can be included and the input method application version number one in the installation kit of input method application program
The dictionary of cause, when the function renewal or dictionary of input method application program have update, installation kit can then show update, update
When, it needs simultaneously to update both input method application program and dictionary, this update is for the original side for not having function renewal
For, cause the waste of system resource.
Invention content
In view of the above problems, in order to solve it is above-mentioned both input method application program and dictionary are updated simultaneously caused by system
The problem of waste of resource, the embodiment of the present invention propose a kind of Word library updating method and a kind of corresponding dress of Word library updating
It puts.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of Word library updating method, the method includes:
Acquisition standard dictionary list, the standard dictionary list include the one or more dictionaries stored in server most
New version number and dictionary title;
The standard dictionary list is matched with local dictionary, generation update dictionary list, the update dictionary
List includes the dictionary title that version number is inconsistent with the latest edition number in the standard dictionary list in local dictionary
And corresponding latest edition number and, exist but the dictionary that is not present in the local dictionary in the list of standard dictionary
Dictionary title and corresponding latest edition number;
The update dictionary list is sent to server;
Receive the dictionary corresponding with the update dictionary list that the server returns;
Local dictionary is updated using the dictionary corresponding with the update dictionary list.
Preferably, the step of acquisition standard dictionary list includes:
The request of input method application program update is generated, and input method application program update request is sent to service
Device;
The application program installation kit corresponding with application program update request that server returns is received, it is described to apply journey
Sequence installation kit includes the standard dictionary list.
Preferably, the method further includes:
When the application program installation kit does not include standard dictionary list, then judge that the input method application program corresponds to
Dictionary do not need to update.
Preferably, the step of acquisition standard dictionary list includes:
Determine the version number of current input method application program;
Version number's generation standard dictionary based on the input method application program obtains request, and the standard dictionary is obtained
Request is taken to be sent to server;
Receive the standard dictionary list corresponding with standard dictionary acquisition request that the server returns.
Preferably, the method further includes:
When the standard dictionary list that server return is not received by preset time period or receive the server and return
Return when not needing to newer response message for the corresponding dictionary of input method application program, then judge the input method application journey
The corresponding dictionary of sequence does not need to update.
Preferably, it is described to match the standard dictionary list with local dictionary, generation update dictionary list
Before step, further include:
The local dictionary list of generation, the local dictionary list include being stored in version number and the dictionary of local dictionary
Title.
Preferably, it is described to match the standard dictionary list with local dictionary, generation update dictionary list
Step includes:
For the dictionary title of each dictionary in the standard dictionary list, the local dictionary list is traversed, is judged
It whether there is the record identical with the dictionary title of dictionary in the standard dictionary list in the local dictionary list;
If being not present, by the dictionary title of the dictionary in the standard dictionary list and corresponding latest edition
Number it is added in update dictionary list;
If in the presence of the latest edition number and the local dictionary for judging the dictionary in the standard dictionary list arrange
Whether the version number of corresponding dictionary is consistent in table;
If inconsistent, by the dictionary title of the dictionary in the standard dictionary list and corresponding latest edition
Number it is added in update dictionary list.
Preferably, the step being updated using the dictionary corresponding with the update dictionary list to local dictionary
Suddenly include:
If there is the dictionary identical with the dictionary title of the update dictionary list in local dictionary, by the update
The corresponding dictionary of dictionary list replaces corresponding dictionary in the local dictionary;
If the dictionary identical with the dictionary title of the update dictionary list is not present in local dictionary, by described in more
Newly the corresponding dictionary of dictionary list increases in local dictionary.
The embodiment of the invention also discloses a kind of Word library updating method, the method includes:
Generation standard dictionary list, and the standard dictionary list is sent to client, wherein, the standard dictionary row
Table includes the latest edition number of one or more dictionaries stored in server and dictionary title;
It receives the client and is directed to the update dictionary list that the standard dictionary list returns, the update dictionary list
It is inconsistent to include version number and the latest edition number in the standard dictionary list in the local dictionary of client acquisition
Dictionary title and corresponding latest edition number and, the list of standard dictionary exist but do not deposited in the local dictionary
Dictionary dictionary title and corresponding latest edition number;
Obtain dictionary corresponding with the update dictionary list;
The dictionary corresponding with the update dictionary list is returned into the client.
Preferably, the generation standard dictionary list, and the step of standard dictionary list is sent to client wrap
It includes:
The input method application program update request that client is sent is received, the input method application program update request includes
The version number of the input method application program;
The version number of dictionary corresponding with the version number of the input method application program is obtained, and obtains the corresponding word
The dictionary title of all dictionaries under the version number in library;
By corresponding dictionary version number of the version number of the input method application program and the corresponding dictionary version number
Under all dictionaries dictionary title generation standard dictionary list;
The standard dictionary list is encapsulated in input method application program installation kit;
The input method application program installation kit is returned into client.
Preferably, the input method application program update request further includes the version number of the dictionary of the client local;
The method further includes:
If it is determined that corresponding dictionary version number of the version number of the input method application program and the word of client local
The version number in library is consistent, then judges that the dictionary does not update;
The installation kit of the input method application program is obtained, and the installation kit of the input method application program is returned into client
End.
Preferably, the generation standard dictionary list, and the step of standard dictionary list is sent to client wrap
It includes:
It receives the standard dictionary that client is sent and obtains request, the standard dictionary obtains request and includes input method application journey
The version number of sequence;
Dictionary version number corresponding with the version number of the input method application program is obtained, and obtains the corresponding dictionary
The dictionary title of all dictionaries under version number;
By corresponding dictionary version number of the version number of the input method application program and the corresponding dictionary version number
Under all dictionaries dictionary title generation standard dictionary list;
The standard dictionary list is sent to client.
Preferably, the standard dictionary obtains the version number that request further includes the dictionary of the client local;The side
Method further includes:
If it is determined that corresponding dictionary version number of the version number of the input method application program and the word of client local
The version number in library is consistent, then judges that the dictionary does not update;
Generation does not need to newer response message for the corresponding dictionary of input method application program, and by the response message
Return to client.
Preferably, described the step of obtaining dictionary corresponding with the update dictionary list, includes:
The latest edition number matched in database in the update dictionary list is managed from preset dictionary, it is newest to obtain this
The store path of all dictionaries under version number;
It is corresponding that the update dictionary list is filtered out from the store path of all dictionaries under the latest edition number
The store path of dictionary;
Corresponding dictionary is obtained from the store path of the corresponding dictionary of the update dictionary list.
Preferably, the described the step of dictionary corresponding with the update dictionary list is returned the client, wraps
It includes:
All dictionaries in the update dictionary list are compressed, obtain dictionary compressed package;
The dictionary compressed package is returned into the client.
The embodiment of the invention also discloses a kind of devices of Word library updating, include memory and one or one
Above program, one of them either more than one program be stored in memory and be configured to by one or one with
Upper processor performs the one or more programs and includes the instruction for being operated below:
Acquisition standard dictionary list, the standard dictionary list include the one or more dictionaries stored in server most
New version number and dictionary title;
The standard dictionary list is matched with local dictionary, generation update dictionary list, the update dictionary
List includes the dictionary title that version number is inconsistent with the latest edition number in the standard dictionary list in local dictionary
And corresponding latest edition number and, exist but the dictionary that is not present in the local dictionary in the list of standard dictionary
Dictionary title and corresponding latest edition number;
The update dictionary list is sent to server;
Receive the dictionary corresponding with the update dictionary list that the server returns;
Local dictionary is updated using the dictionary corresponding with the update dictionary list.
The embodiment of the invention also discloses a kind of devices of Word library updating, include memory and one or one
Above program, one of them either more than one program be stored in memory and be configured to by one or one with
Upper processor performs the one or more programs and includes the instruction for being operated below:
Generation standard dictionary list, and the standard dictionary list is sent to client, wherein, the standard dictionary row
Table includes the latest edition number of one or more dictionaries stored in server and dictionary title;
It receives the client and is directed to the update dictionary list that the standard dictionary list returns, the update dictionary list
It is inconsistent to include version number and the latest edition number in the standard dictionary list in the local dictionary of client acquisition
Dictionary title and corresponding latest edition number and, the list of standard dictionary exist but do not deposited in the local dictionary
Dictionary dictionary title and corresponding latest edition number;
Obtain dictionary corresponding with the update dictionary list;
The dictionary corresponding with the update dictionary list is returned into the client.
The embodiment of the present invention includes advantages below:
In embodiments of the present invention, can realize that dictionary is detached with input method installation kit, when client go for it is newest
During the dictionary of version, client can obtain the standard dictionary list of current latest edition first, then arrange the standard dictionary
Table is matched with local dictionary list, and generation needs the update dictionary of the dictionary being updated or the dictionary being locally not present row
Table, and the update dictionary list is sent to server, word corresponding with the update dictionary list is obtained with request server
Library so as to fulfill the update to local dictionary, avoids the need for needing update originally should not be newer defeated while update dictionary
Enter method installation kit or need update but dictionary does not need to the redundancies such as update behaviour since input method application program has a new function
Make, improve update efficiency, while the embodiment of the present invention can greatly reduce the size of input method installation kit, save system money
Source.
Description of the drawings
Fig. 1 is a kind of step flow chart of Word library updating embodiment of the method one of the present invention;
Fig. 2 is a kind of step flow chart of Word library updating embodiment of the method two of the present invention;
Fig. 3 is a kind of structure diagram of Word library updating client embodiment of the present invention;
Fig. 4 is a kind of structure diagram of Word library updating server example of the present invention;
Fig. 5 is a kind of block diagram of the device of Word library updating of the present invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, it is below in conjunction with the accompanying drawings and specific real
Applying mode, the present invention is described in further detail.
With reference to Fig. 1, a kind of step flow chart of Word library updating embodiment of the method one of the present invention is shown, the present invention is implemented
Example can be applied in the terminal device for being equipped with input method application program, and input method application program can be by being embedded in terminal
Program (for example, dummy keyboard), alternatively, real by physical keyboard, handwriting pad, sound collection equipment for being connected with terminal device etc.
The input of existing information.
The terminal device can include mobile phone, PDA (Personal Digital Assistant, personal digital assistant),
Laptop computer, desktop computer, provides signature terminal that user signs electronically etc. at palm PC, and the present invention is implemented
Example does not limit this.
The terminal can support the operating systems such as Windows, Android (Android), IOS, WindowsPhone, the present invention
Embodiment is not restricted this.
For the input method application program of mobile terminal, the size of installation kit is a critically important measurement standard,
Wherein dictionary accounts for a big chunk proportion in installation kit.In practice, the period there are one the updates in fact of dictionary, normal 3
A month or longer time.And the renewal frequency of input method installation kit can be much larger compared with for dictionary, at this moment update every time
Input method installation kit can all include the dictionary of no any variation, this is unusual redundancy in fact.Therefore, implement in the present invention
In example, dictionary and input method installation kit can be separated, the two is not interfered mutually, when mobile terminal needs and input method application
During the consistent dictionary of the version number of program, the standard dictionary row of version number consistent with the version number of input method can be obtained first
Then the list of standard dictionary and local dictionary list are compared by table, determine to need to update or need newly-increased dictionary
Dictionary list is updated, and obtains the corresponding dictionary of update dictionary list, local dictionary is updated, so as to fulfill input
The separation of method installation kit and dictionary reduces the size of input method installation kit.
The client-side of the embodiment of the present invention from input method application program illustrates, and specifically may include steps of:
Step 101, standard dictionary list is obtained;
In embodiments of the present invention, the one or more dictionaries stored in server can be included in the list of standard dictionary
Latest edition number and dictionary title.
Specifically, dictionary is the set of word data, it is stored in database in case specific program search is called.
One or more dictionaries can be pre-set in server side, which can include the system for recording basic words
Dictionary can also include recording the cell dictionary (words in cell dictionary at least have there are one predicable) of extension words,
It such as records the cell dictionary of some game-specific words, record the cell dictionary of the special words of biology, user can also be included
User thesaurus of personalized words (such as self-word creation), etc., the embodiment of the present invention does not limit this.
The language message needed for input method is housed in dictionary, since different words may correspond to identical coding,
For specific character string, input method can complete character string and the conversion of word, word, sentence by dictionary, and conjecture user is true
Input is intended to.
In one embodiment, dictionary can include various language messages, such as:
(1) entry;
Although input method can be built on the basis of word, since word is common minimum table justice unit in Chinese,
Therefore, input method has largely used entry.
For example, when user is based on phonetic specification input character string " zhuan ", there are multiple phonetically similar words, it is more difficult to determine user
Think which of input " turn, is special, earning, brick ... " word.
Equally, when user is based on phonetic specification input character string " li ", there is also multiple phonetically similar words, also more difficult determining user
Think input is which of " inner, Lee, power, profit ... " word.
But if user based on phonetic specification continuously input character string " zhuanli " this, input method can be according to existing
What some entry rules determined the larger probability input of user is exactly " patent " this word.
(2) word frequency.
Phonetically similar word largely exists, and it is existing that homonym, which remains on, and therefore, total Options are generally listed confession by input method
User selects.
But the position of candidate item has a significant impact to the ease for use of input method, more common candidate item is put into forward
Position would generally be more advantageous to user, i.e. word frequency (the i.e. frequency of use of entry, the frequency of use including active user, group
The frequency of use of user) it is one of foundation of candidate item sequence.
In addition, it is often integrated in input method from word-building, the function of sentence, at this point, word frequency is also the foundation of word, sentence construction
One of.
Certainly, in addition to this, dictionary can also include other information, such as language connection relation, i.e. company between word and word
Relationship is connect, as " " often appear in behind adjective, noun, pronoun etc., and " " then often appear in behind adverbial word, etc., this
Inventive embodiments do not limit this.
With computer technology, the universal and development of Internet technology and people's information interchange all the more frequently, have
More and more new vocabulary are generated and are used by people, for example, can generate some new popular vocabulary, professional domain vocabulary or
Well-known name, company name etc. in order to meet use demand of the user to new term, need to carry out more the dictionary of input method
Newly, therefore, can be that corresponding version number is configured in dictionary, dictionary often updates once, then corresponding version number can also change.
In embodiments of the present invention, client can obtain the newest of all dictionaries stored in server with request server
Version number and dictionary title, can be by the newest of all dictionaries stored in server after server receives the request
Version number and dictionary title are organized into the list of standard words library, and the standard dictionary list is returned client.
In a kind of preferred embodiment of the embodiment of the present invention, when input method application program needs update, step 101 can
To include following sub-step:
Sub-step S11, the application program update request of generation input method, and the input method application program update is asked to send out
It send to server;
In the concrete realization, when the function of input method application program has update, server can be sent out more to client
New notice is surrounded by update with the installation for prompting the client input method application program, and client can be based on the update notification and give birth to
It is asked into application program update.
As a kind of example, application program update request can include the newest version number of input method application program.
In one embodiment, which can be presented to user by client, can be updated when user confirms
When, client can generate the request of input method application program update.
In another embodiment, what client can also formerly be set according to user automatically updates configuration, automatic root
According to update notification generation input method application program update request.
After client generation input method application program update request, which can be asked
It is sent in server.
Sub-step S12 receives the application program installation kit corresponding with application program update request that server returns,
The application program installation kit includes the standard dictionary list.
In the concrete realization, in server side, dictionary title that can be based on all dictionaries stored in server and
Latest edition number generates standard dictionary list.For example, latest edition number can be determined first, then obtain under latest edition number
The dictionary title generation standard dictionary list of all dictionaries.
After server receives the request of input method application program update, the input method application program update can be based on
The application program installation kit for including standard dictionary list is requested to generate, and the application program installation kit is back in client.
After the installation kit of input method application program then received in client, standard words wherein included can be obtained
Library list.
Correspondingly, if application program installation kit that server returns and not comprising the list of standard words library, client can
It does not need to update with the corresponding dictionary of input method application program for judging current.
In another preferred embodiment of the embodiment of the present invention, when input method application program does not need to update, step
101 can include following sub-step:
Sub-step S21 determines the version number of current input method application program;
Sub-step S22, version number's generation standard dictionary based on the input method application program obtain request, and by described in
Standard dictionary obtains request and is sent to server;
Sub-step S23 receives the standard dictionary corresponding with standard dictionary acquisition request that the server returns and arranges
Table.
In the concrete realization, when the update for input method application program that client is not received by server transmission is led to
When knowing, client periodically can send standard dictionary to server and obtain request, and newest standard words are returned with request server
Library list.
Specifically, when client be not received by server transmission for input method application program update notification when,
Client can obtain the version number of current input method application program, and the generation mark of the version number based on the input method application program
Quasi- dictionary obtains request and is sent in server, after server receives the acquisition request of standard dictionary, determines that the input method should
With the dictionary title of dictionary all under the version number of program and it is organized into the list of standard dictionary and by the standard dictionary list
It is sent to client.
On the other hand, in one embodiment, if client is sending the acquisition request of standard dictionary to server
The standard dictionary list of server return is not received in preset time period, then client can be determined that input method application journey
The corresponding dictionary of sequence does not need to update.
In another embodiment, if client is in the preset time that the acquisition request of standard dictionary is sent to server
In section, when not needing to newer response message for the corresponding dictionary of input method application program of server return is received, then
Client can be determined that the corresponding dictionary of input method application program does not need to update.
In a kind of preferred embodiment of the embodiment of the present invention, local dictionary list, institute can also be generated in client-side
Stating can include being stored in the version number of local dictionary and dictionary title in local dictionary list.
Specifically, client can also detect local dictionary situation, obtain the dictionary being locally stored version number and
Dictionary title is organized into local dictionary list.
Step 102, the standard dictionary list is matched with local dictionary, generation update dictionary list;
It, can be by the dictionary information in standard dictionary list and local word after client obtains standard dictionary list
Library is compared, the information of dictionary or dictionary title for existing in extraction standard dictionary list but being not present in local dictionary list
The information of identical but different version number dictionary is organized into update dictionary list.
Can include in the update dictionary list in local dictionary version number with it is newest in the standard dictionary list
The inconsistent dictionary title of version number and corresponding latest edition number and, the list of standard dictionary exist but at described
The dictionary title and corresponding latest edition number for the dictionary being not present in the dictionary on ground.
Specifically, in a kind of preferred embodiment of the embodiment of the present invention, step 102 can include following sub-step:
Sub-step S31 for the dictionary title of each dictionary in the standard dictionary list, traverses the local dictionary
List is judged in the local dictionary list with the presence or absence of the note identical with the dictionary title of dictionary in the standard dictionary list
Record;If being not present, sub-step S32 is performed, if in the presence of sub-step S33 is performed;
Sub-step S32, by the dictionary title of the dictionary in the standard dictionary list and corresponding latest edition
Number it is added in update dictionary list;
Sub-step S33 judges the latest edition number of the dictionary in the standard dictionary list and the local dictionary
Whether the version number of corresponding dictionary is consistent in list;If inconsistent, sub-step S32 is performed.
Specifically, client is after the list of standard dictionary and local dictionary list is obtained, in standard dictionary list
Each dictionary dictionary title, local dictionary list is traversed, to judge to whether there is in local dictionary list and standard dictionary
The consistent record of the dictionary title of this dictionary in list, if it is present illustrate it is local there are the dictionary, at this point, into one
Step may determine that whether the dictionary is consistent in the version number being locally stored and the version number that is recorded in standard dictionary list, if version
It is number consistent, then judge that the dictionary without update, if version number is inconsistent, judges that the dictionary needs to update, at this point it is possible to should
The latest edition number recorded in the dictionary title of newer dictionary and standard dictionary list is needed to be recorded in update dictionary list
In.
If the note consistent with the dictionary title of this dictionary in standard dictionary list is not present in local dictionary list
Record then illustrates locally there is no the dictionary, at this point it is possible to by the dictionary title of corresponding dictionary in standard dictionary list and most
New version number is recorded in update dictionary list.
After the record traversal of each dictionary in standard dictionary list is completed, then it can obtain completely updating dictionary
List.
Step 103, the update dictionary list is sent to server;
After client generation update dictionary list, which can be sent in server, with request
Dictionary corresponding with the update dictionary list is obtained from server.
Step 104, the dictionary corresponding with the update dictionary list that the server returns is received;
It, can be according to the dictionary carried in update dictionary list after update dictionary list is received in server side
Latest edition number and dictionary title, search corresponding dictionary in server side preset dictionary management database, work as clothes
After business device finds the corresponding all dictionaries of update dictionary list, it will be obtained after the corresponding all dictionary compressions of the update dictionary list
The dictionary compressed package arrived returns to client.
After client receives the dictionary compressed package of server return, which is decompressed, is obtained more
The newly corresponding multiple dictionaries of dictionary list.
Step 105, local dictionary is updated using the dictionary corresponding with the update dictionary list.
After client carries out dictionary compressed package the corresponding multiple dictionaries of decompression acquisition update dictionary list, it can incite somebody to action
Multiple dictionary is updated local dictionary.
In a kind of preferred embodiment of the embodiment of the present invention, step 105 can include following sub-step:
Sub-step S41, if there is the dictionary identical with the dictionary title of the update dictionary list in local dictionary,
The corresponding dictionary of the update dictionary list is replaced into corresponding dictionary in the local dictionary;
Sub-step S42, if the dictionary identical with the dictionary title of the update dictionary list is not present in local dictionary,
Then the corresponding dictionary of the update dictionary list is increased in local dictionary.
Specifically, after client obtains the dictionary that server returns, for each dictionary, the corresponding word of the dictionary is judged
Library name whether there is in local dictionary, if in the presence of, it is the newer dictionary of needs to illustrate the local corresponding dictionary, this
When, the dictionary that server returns can be covered in local corresponding dictionary, if being not present, illustrate the word that server returns
Library is newly-increased dictionary, at this point it is possible to directly be added to the dictionary in local dictionary.
In embodiments of the present invention, can realize that dictionary is detached with input method installation kit, when client go for it is newest
During the dictionary of version, client can obtain the standard dictionary list of current latest edition first, then arrange the standard dictionary
Table is matched with local dictionary list, and generation needs the update dictionary of the dictionary being updated or the dictionary being locally not present row
Table, and the update dictionary list is sent to server, word corresponding with the update dictionary list is obtained with request server
Library so as to fulfill the update to local dictionary, avoids the need for needing update originally should not be newer defeated while update dictionary
Enter method installation kit or need to update when needing to update input method installation kit this should not the redundant operations such as newer dictionary, carry
High update efficiency, while the embodiment of the present invention can greatly reduce the size of input method installation kit, save system resource.
With reference to Fig. 2, a kind of step flow chart of Word library updating embodiment of the method two of the present invention is shown, the present invention is implemented
Example is described from server side, may include steps of:
Step 201, standard dictionary list is generated, and the standard dictionary list is sent to client;
In embodiments of the present invention, the one or more dictionaries stored in server can be included in the list of standard dictionary
Latest edition number and dictionary title.
In server side, the latest edition number of all dictionaries stored in server and dictionary title can be organized into
Standard dictionary list, and the standard dictionary list is sent in client.
The embodiment of the present invention, which can be applied to input method application program, needs update and/or input method application program not to need to
Newer Word library updating scene.
In a kind of preferred embodiment of the embodiment of the present invention, when input method application program needs update, step 201 can
To include following sub-step:
Sub-step S51 receives the input method application program update request that client is sent, and the input method application program is more
New request includes the version number of the input method application program;
In the concrete realization, when the function of input method application program has update, server can be sent out more to client
New notice, is surrounded by update, server can then receive client with the installation for prompting the client input method application program
Application program update request based on update notification generation.
As a kind of example, application program update request can include the newest version number of input method application program.
Sub-step S52, obtains the version number of dictionary corresponding with the version number of the input method application program, and obtains institute
State the dictionary title of all dictionaries under the version number of corresponding dictionary;
Sub-step S53, by corresponding dictionary version number of the version number of the input method application program and described corresponding
The dictionary title generation standard dictionary list of all dictionaries under dictionary version number;In the concrete realization, input method application program
Installation kit version number it is consistent with the version number of local dictionary when, input method application program could correctly work.Wherein, on
State it is consistent mean, the version number of local dictionary is identical with the dictionary version number arranged in installation kit.Therefore, server receives
After being asked to input method application program update, input method application journey can be extracted from input method application program update request
The version number of sequence.
Then, the version with input method application program is obtained in the information for the dictionary that server can store in the server
Number corresponding dictionary version number, and the dictionary title of all dictionaries under the corresponding dictionary version number is obtained, and this is corresponding
The dictionary title of all dictionaries dictionary version number corresponding with this is organized into standard dictionary list under dictionary version number.
The standard dictionary list is encapsulated in input method application program installation kit by sub-step S54;
The input method application program installation kit is returned to client by sub-step S55.
After server obtains standard dictionary list, which can be encapsulated in input method application program peace
In dress packet, which is the installation kit of input method application program latest edition number.
Server returns to the client after the input method application program installation kit is compressed, then in client-side, decompresses defeated
After entering method application program installation kit, then standard dictionary list can be obtained.
In another preferred embodiment of the embodiment of the present invention, input method application program update request can also include
The version number of the dictionary of the client local, the embodiment of the present invention can also include the following steps:
If it is determined that corresponding dictionary version number of the version number of the input method application program and the word of client local
The version number in library is consistent, then judges that the dictionary does not update;The installation kit of the input method application program is obtained, and by described in
The installation kit of input method application program returns to client.
Specifically, after server receives the request of input method application program update, therefrom reading client is local
The version number of dictionary and the version number of input method application program, and the corresponding word of version number for obtaining the input method application program
Then library version number, judges the corresponding dictionary version number of version number of the input method application program and the dictionary of client local
Version number it is whether identical, if the two is identical, can be determined that local dictionary as newest dictionary, without to local dictionary into
Row update, at this point it is possible to installation kit directly is sent to client, without adding standard dictionary list again in installation kit.It is no
Person if the two differs, judges that local dictionary needs to update, and can perform sub-step S51- sub-steps S55 at this time.
In another preferred embodiment of the embodiment of the present invention, when input method application program does not need to update, step
201 can include following sub-step:
Sub-step S61 receives the standard dictionary that client is sent and obtains request;
In the concrete realization, server can receive the standard dictionary acquisition request of client periodicity sending, the standard
Dictionary obtain request for client be not received by server transmission for input method application program update notification when generate
, the request of newest standard dictionary list is returned for request server.
As a kind of example, which, which obtains request, can include the version number of current input method application program,
Input method do not have it is newer in the case of, the version number of the input method application program is the newest version number of input method application program.
Sub-step S62 obtains dictionary version number corresponding with the version number of the input method application program, and described in acquisition
The dictionary title of all dictionaries under corresponding dictionary version number;And by the corresponding word of version number of the input method application program
The dictionary title of library version number and all dictionaries under the corresponding dictionary version number generates standard dictionary list;
After server receives the acquisition request of standard dictionary, it can be obtained in request from the standard dictionary and extract input method
The version number of application program.
Then, the version with input method application program is obtained in the information for the dictionary that server can store in the server
The dictionary title of all dictionaries under number corresponding dictionary version number, and by the dictionary title of all dictionaries under the correspondence version number
Version number corresponding with this is organized into standard dictionary list.
The standard dictionary list is sent to client by sub-step S63.
After server obtains standard dictionary list, it is sent in client after can the standard dictionary list be compressed,
In client-side, standard dictionary list can be then obtained after being decompressed to the compressed data packets of acquisition.
In a kind of preferred embodiment of the embodiment of the present invention, the standard dictionary, which obtains request, can also include the visitor
The version number of the dictionary at family end, the embodiment of the present invention can also include the following steps:
If it is determined that corresponding dictionary version number of the version number of the input method application program and the word of client local
The version number in library is consistent, then judges that the dictionary does not update;Generation is not needed to for the corresponding dictionary of input method application program
Newer response message, and the response message is returned into client.
Specifically, when server is received after standard dictionary obtains request, the therefrom dictionary of reading client local
Version number and the version number of input method application program, and the corresponding dictionary version of version number for obtaining the input method application program
Number, then, judge the version of the corresponding dictionary version number of version number of the input method application program and the dictionary of client local
It is number whether identical, if the two is identical, local dictionary is can be determined that as newest dictionary, without being carried out more to local dictionary
Newly, newer response message is not needed to for the corresponding dictionary of input method application program, and at this point it is possible to generate by the response
Information returns to client.No person if the two differs, judges that local dictionary needs to update, can perform sub-step at this time
S61- sub-steps S63.
Step 202, it receives the client and is directed to the update dictionary list that the standard dictionary list returns;
In embodiments of the present invention, version number in the local dictionary that client obtains can be included by updating in dictionary list
The dictionary title inconsistent with the latest edition number in the standard dictionary list and corresponding latest edition number and,
The dictionary title and corresponding latest edition number for the dictionary that the list of standard dictionary exists but is not present in local dictionary.
Specifically, can be directed to the local local dictionary list of dictionary generation in client-side, which can
Think the version number for the dictionary that client is locally stored according to client and the list that dictionary title generates.
It can be that client obtains the list of standard dictionary with after local dictionary list, the two is carried out to update dictionary list
Compare, the record for the dictionary for existing in extraction standard dictionary list but being not present in local dictionary list or version number are inconsistent
The list of the record generation of dictionary.
In client-side, following manner generation update dictionary list may be used:
Client is after the list of standard dictionary and local dictionary list is obtained, for each word in standard dictionary list
The dictionary title in library traverses local dictionary list, with judge to whether there is in local dictionary list in standard dictionary list
The consistent record of the dictionary title of this dictionary, if it is present illustrate it is local there are the dictionary, at this point, can further sentence
Whether the dictionary that breaks is consistent in the version number being locally stored and the version number that is recorded in standard dictionary list, if version number is consistent,
Then judge that the dictionary without update, if version number is inconsistent, judges that the dictionary needs to update, at this point it is possible to by the needs more
The latest edition number recorded in the dictionary title of new dictionary and standard dictionary list is recorded in update dictionary list.
If the note consistent with the dictionary title of this dictionary in standard dictionary list is not present in local dictionary list
Record then illustrates locally there is no the dictionary, at this point it is possible to by the dictionary title of corresponding dictionary in standard dictionary list and most
New version number is recorded in update dictionary list.
Step 203, dictionary corresponding with the update dictionary list is obtained;
It, can be according to the latest edition of dictionary carried in update dictionary list after server receives update dictionary list
This number and dictionary title search corresponding dictionary in the preset dictionary management database of server side.
In a kind of preferred embodiment of the embodiment of the present invention, step 204 can include following sub-step:
Sub-step S71 manages the latest edition number matched in database in the update dictionary list from preset dictionary,
Obtain the store path of all dictionaries under the latest edition number;
Sub-step S72 filters out the update dictionary from the store path of all dictionaries under the latest edition number
The store path of the corresponding dictionary of list;
Sub-step S73 obtains corresponding dictionary from the store path of the corresponding dictionary of the update dictionary list.
In the concrete realization, in server side, dictionary management database can be pre-set, which manages in database
Dictionary version number, dictionary title and the corresponding of dictionary store path that can include all dictionaries of current server storage are closed
System.
As a kind of example, which manages in database, and key is the version number of dictionary, and value is under the version number
The corresponding store path of each dictionary title.
After server receives update dictionary list, according to version number's query word library management in update dictionary list
Database, finds the store path of all dictionaries under the version number, then filters out the storage of the dictionary in update dictionary list
Path, and corresponding dictionary is obtained from the corresponding storage location of the store path filtered out, form dictionary set.
On the other hand, if there is no the dictionary title of extraction in dictionary management database, bomp is returned.
Step 204, the dictionary corresponding with the update dictionary list is returned into the client.
After server obtains dictionary set corresponding with update dictionary list, the dictionary set of the acquisition is returned into visitor
Family end.
In a kind of preferred embodiment of the embodiment of the present invention, step 205 can include following sub-step:
All dictionaries in the update dictionary list are compressed, obtain dictionary compressed package by sub-step S81;
The dictionary compressed package is returned to the client by sub-step S82.
After server finds the dictionary set of the corresponding all dictionary compositions of update dictionary list, by the dictionary set
The dictionary compressed package obtained after compression returns to client.
After client-side, the dictionary compressed package for receiving server return, which is decompressed, is obtained
To the corresponding multiple dictionaries of update dictionary list, and locally increasing the dictionary or the dictionary by dictionary covering local.
In embodiments of the present invention, it can realize that dictionary is detached with input method installation kit, server can firstly generate mark
Quasi- dictionary list, and standard dictionary list is sent to client, then obtained according to the update dictionary list that client returns
Corresponding dictionary returns to client, so as to fulfill update of the client to local dictionary, while avoiding the need for update dictionary
Need update this should not newer input method installation kit or need update input method installation kit when need update this should not
The redundant operations such as newer dictionary improve update efficiency, while the embodiment of the present invention can greatly reduce input method installation
The size of packet saves system resource.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of action group
It closes, but those skilled in the art should know, the embodiment of the present invention is not limited by described sequence of movement, because according to
According to the embodiment of the present invention, certain steps may be used other sequences or be carried out at the same time.Secondly, those skilled in the art also should
Know, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention is implemented
Necessary to example.
With reference to Fig. 3, show a kind of structure diagram of Word library updating client embodiment of the present invention, can specifically include
Following module:
Standard dictionary list acquisition module 301, for obtaining standard dictionary list, the standard dictionary list includes service
The latest edition number of the one or more dictionaries stored in device and dictionary title;
Dictionary List Generating Module 302 is updated, it is raw for the standard dictionary list to be matched with local dictionary
Into update dictionary list, the update dictionary list is included in local dictionary in version number and the standard dictionary list
The inconsistent dictionary title of latest edition number and corresponding latest edition number and, the list of standard dictionary exist but in institute
State the dictionary title for the dictionary being not present in local dictionary and corresponding latest edition number;
Dictionary list sending module 303 is updated, for the update dictionary list to be sent to server;
Dictionary receiving module 304, for receiving the dictionary corresponding with the update dictionary list that the server returns;
Word library updating module 305, for using it is described with it is described update the corresponding dictionary of dictionary list to local dictionary into
Row update.
In a kind of preferred embodiment of the embodiment of the present invention, the standard dictionary list acquisition module 301 includes as follows
Submodule:
Input method update requests to generate submodule, for generating the request of input method application program update, and by the input
The request of method application program update is sent to server;
Input method installation kit receiving submodule, for receiving the corresponding with application program update request of server return
Application program installation kit, the application program installation kit include the standard dictionary list.
In another preferred embodiment of the embodiment of the present invention, the client can also include:
First determination module if not including standard dictionary list for the application program installation kit, judges described defeated
Enter the corresponding dictionary of method application program not needing to update.
In another preferred embodiment of the embodiment of the present invention, the standard dictionary list acquisition module 301 is included such as
Lower submodule:
Input method version number determination sub-module, for determining the version number of current input method application program;
The acquisition of standard dictionary requests to generate submodule, for generating standard based on the version number of the input method application program
Dictionary obtains request, and the standard dictionary is obtained request and is sent to server;
Standard dictionary list reception submodule is asked for receiving being obtained with the standard dictionary for server return
Corresponding standard dictionary list.
In another preferred embodiment of the embodiment of the present invention, the client further includes:
Second determination module, for work as be not received by preset time period server return the list of standard dictionary or connect
When not needing to newer response message for the corresponding dictionary of input method application program of the server return is received, then is judged
The corresponding dictionary of the input method application program does not need to update.
In a kind of preferred embodiment of the embodiment of the present invention, the client further includes:
Local dictionary List Generating Module, for generating local dictionary list, the local dictionary list includes being stored in
The local version number of dictionary and dictionary title.
In a kind of preferred embodiment of the embodiment of the present invention, the update dictionary List Generating Module 303 includes as follows
Submodule:
Submodule is traversed, for being directed to the dictionary title of each dictionary in the standard dictionary list, traverses described
Ground dictionary list is judged in the local dictionary list with the presence or absence of the dictionary title phase with dictionary in the standard dictionary list
Same record;If being not present, dictionary information is called to increase submodule;If in the presence of version numbers match submodule is called;
Dictionary information increases submodule, for by the dictionary title of the dictionary in the standard dictionary list and right
The latest edition number answered is added in update dictionary list;
Version numbers match submodule, for judging the latest edition number of the dictionary in the standard dictionary list and institute
Whether the version number for stating corresponding dictionary in local dictionary list is consistent;If inconsistent, dictionary information is called to increase submodule.
In a kind of preferred embodiment of the embodiment of the present invention, the Word library updating module 305 includes following submodule:
Dictionary replaces submodule, identical with the dictionary title of the update dictionary list for existing in local dictionary
Dictionary when, the corresponding dictionary of the update dictionary list is replaced into corresponding dictionary in the local dictionary;
Dictionary adds submodule, for the dictionary title phase with the update dictionary list to be not present in local dictionary
With dictionary when, the corresponding dictionary of the update dictionary list is increased in local dictionary.
About the client in the embodiment of Fig. 3, wherein modules perform the concrete mode of operation in the side of Fig. 1
It is described in detail in method embodiment, reference, will be not set forth in detail explanation herein mutually.
With reference to Fig. 4, show a kind of structure diagram of Word library updating server example of the present invention, can specifically include
Following module:
Standard dictionary List Generating Module 401 for generating standard dictionary list, and the standard dictionary list is sent
To client, wherein, the standard dictionary list include in server the latest edition number of one or more dictionaries that stores with
And dictionary title;
Dictionary list reception module 402 is updated, for receiving the client for standard dictionary list return
Dictionary list is updated, the update dictionary list includes version number and the standard words in the local dictionary that client obtains
The inconsistent dictionary title of latest edition number and corresponding latest edition number in the list of library and, in standard dictionary list
In the presence of but the dictionary title of dictionary that is not present in the local dictionary and corresponding latest edition number;
Dictionary acquisition module 403, for obtaining dictionary corresponding with the update dictionary list;
Dictionary returns to module 404, for the dictionary corresponding with the update dictionary list to be returned the client.
In a kind of preferred embodiment of the embodiment of the present invention, the standard dictionary List Generating Module 401 includes as follows
Submodule:
Input method updates request receiving submodule, for receiving the input method application program update request of client transmission,
The input method application program update request includes the version number of the input method application program;
Input method version number acquisition submodule, for obtaining dictionary corresponding with the version number of the input method application program
Version number, and obtain the dictionary title of all dictionaries under the version number of the corresponding dictionary;
Standard dictionary list acquisition submodule, for by the corresponding dictionary version of the version number of the input method application program
Number and all dictionaries under the corresponding dictionary version number the generation standard dictionary list of dictionary title;
The list of standard dictionary encapsulates submodule, for the standard dictionary list to be encapsulated in the installation of input method application program
Packet;
Input method installation kit sending submodule, for the input method application program installation kit to be returned client.
In a kind of preferred embodiment of the embodiment of the present invention, the input method application program update request further includes described
The version number of the dictionary of client local;The server includes:
Version numbers match submodule, in the corresponding dictionary version number of version number for judging the input method application program
When consistent with the version number of the dictionary of client local, judge that the dictionary does not update;
Installation kit acquisition submodule, for obtaining the installation kit of the input method application program, and should by the input method
Client is returned with the installation kit of program.
In another preferred embodiment of the embodiment of the present invention, the standard dictionary List Generating Module 401 is included such as
Lower submodule:
Standard dictionary obtains request receiving submodule, and the standard dictionary for receiving client transmission obtains request, described
Standard dictionary obtains the version number that request includes input method application program;
Version numbers match submodule, for obtaining dictionary version corresponding with the version number of the input method application program
Number, and obtain the dictionary title of all dictionaries under the corresponding dictionary version number;
Standard dictionary list acquisition submodule, for by the corresponding dictionary version of the version number of the input method application program
Number and all dictionaries under the corresponding dictionary version number the generation standard dictionary list of dictionary title;
Standard dictionary list sending submodule, for the standard dictionary list to be sent to client.
In another preferred embodiment of the embodiment of the present invention, the standard dictionary obtains request and further includes the client
Hold the version number of local dictionary;The server further includes:
Decision sub-module, for the corresponding dictionary version number of version number for judging the input method application program with it is described
When the version number of the dictionary of client local is consistent, judge that the dictionary does not update;
Response message generates submodule, and newer sound is not needed to for the corresponding dictionary of input method application program for generating
Information is answered, and the response message is returned into client.
In a kind of preferred embodiment of the embodiment of the present invention, the dictionary acquisition module 403 includes following submodule:
Store path acquisition submodule matches in the update dictionary list for being managed from preset dictionary in database
Latest edition number, obtain the store paths of all dictionaries under the latest edition number;;
Store path matched sub-block, for being filtered out from the store path of all dictionaries under the latest edition number
The store path for updating the corresponding dictionary of dictionary list;
Dictionary obtains submodule, corresponding for being obtained from the store path of the corresponding dictionary of the update dictionary list
Dictionary..
In a kind of preferred embodiment of the embodiment of the present invention, the dictionary returns to module 404 and includes following submodule:
Dictionary compresses submodule, for all dictionaries in the update dictionary list to be compressed, obtains dictionary pressure
Contracting packet;
Compressed package sending submodule, for the dictionary compressed package to be returned the client.
About the server in the embodiment of Fig. 4, wherein modules perform the concrete mode of operation in the side of Fig. 2
It is described in detail in method embodiment, reference, will be not set forth in detail explanation herein mutually.
Fig. 5 is the block diagram according to a kind of device 500 of Word library updating shown in an exemplary embodiment.For example, device 500
Can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices,
Body-building equipment, personal digital assistant etc..
With reference to Fig. 5, device 500 can include following one or more components:Processing component 502, memory 504, power supply
Component 506, multimedia component 508, audio component 510, the interface 512 of input/output (I/O), sensor module 514 and
Communication component 516.
The integrated operation of 502 usual control device 500 of processing component, such as with display, call, data communication, phase
Machine operates and record operates associated operation.Processing element 502 can refer to including one or more processors 520 to perform
It enables, to perform all or part of the steps of the methods described above.In addition, processing component 502 can include one or more modules, just
Interaction between processing component 502 and other assemblies.For example, processing component 502 can include multi-media module, it is more to facilitate
Interaction between media component 508 and processing component 502.
Memory 504 is configured as storing various types of data to support the operation in device 500.These data are shown
Example includes the instruction of any application program or method for operating on device 500, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 504 can be by any kind of volatibility or non-volatile memory device or their group
It closes and realizes, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile
Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash
Device, disk or CD.
Power supply module 506 provides electric power for the various assemblies of device 500.Power supply module 506 can include power management system
System, one or more power supplys and other generate, manage and distribute electric power associated component with for device 500.
Multimedia component 508 is included in the screen of one output interface of offer between described device 500 and user.One
In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings
Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action
Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers
Body component 508 includes a front camera and/or rear camera.When equipment 500 is in operation mode, such as screening-mode or
During video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 510 is configured as output and/or input audio signal.For example, audio component 510 includes a Mike
Wind (MIC), when device 500 is in operation mode, during such as call model, logging mode and speech recognition mode, microphone by with
It is set to reception external audio signal.The received audio signal can be further stored in memory 504 or via communication set
Part 516 is sent.In some embodiments, audio component 510 further includes a loud speaker, for exports audio signal.
I/O interfaces 512 provide interface between processing component 502 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Sensor module 514 includes one or more sensors, and the state for providing various aspects for device 500 is commented
Estimate.For example, sensor module 514 can detect opening/closed state of equipment 500, and the relative positioning of component, for example, it is described
Component is the display and keypad of device 500, and sensor module 514 can be with 500 1 components of detection device 500 or device
Position change, the existence or non-existence that user contacts with device 500,500 orientation of device or acceleration/deceleration and device 500
Temperature change.Sensor module 514 can include proximity sensor, be configured to detect without any physical contact
Presence of nearby objects.Sensor module 514 can also include optical sensor, such as CMOS or ccd image sensor, for into
As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 516 is configured to facilitate the communication of wired or wireless way between device 500 and other equipment.Device
500 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or combination thereof.In an exemplary implementation
In example, communication component 514 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 514 further includes near-field communication (NFC) module, to promote short range communication.Example
Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 500 can be believed by one or more application application-specific integrated circuit (ASIC), number
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided
Such as include the memory 504 of instruction, above-metioned instruction can be performed to complete the above method by the processor 520 of device 500.For example,
The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal
When device performs so that mobile terminal is able to carry out a kind of Word library updating method, the method includes:
Acquisition standard dictionary list, the standard dictionary list include the one or more dictionaries stored in server most
New version number and dictionary title;
The standard dictionary list is matched with local dictionary, generation update dictionary list, the update dictionary
List includes the dictionary title that version number is inconsistent with the latest edition number in the standard dictionary list in local dictionary
And corresponding latest edition number and, exist but the dictionary that is not present in the local dictionary in the list of standard dictionary
Dictionary title and corresponding latest edition number;
The update dictionary list is sent to server;
Receive the dictionary corresponding with the update dictionary list that the server returns;
Local dictionary is updated using the dictionary corresponding with the update dictionary list.
Preferably, the step of acquisition standard dictionary list includes:
The request of input method application program update is generated, and input method application program update request is sent to service
Device;
The application program installation kit corresponding with application program update request that server returns is received, it is described to apply journey
Sequence installation kit includes the standard dictionary list.
Preferably, the method further includes:
When the application program installation kit does not include standard dictionary list, then judge that the input method application program corresponds to
Dictionary do not need to update.
Preferably, the step of acquisition standard dictionary list includes:
Determine the version number of current input method application program;
Version number's generation standard dictionary based on the input method application program obtains request, and the standard dictionary is obtained
Request is taken to be sent to server;
Receive the standard dictionary list corresponding with standard dictionary acquisition request that the server returns.
Preferably, the method further includes:
When the standard dictionary list that server return is not received by preset time period or receive the server and return
Return when not needing to newer response message for the corresponding dictionary of input method application program, then judge the input method application journey
The corresponding dictionary of sequence does not need to update.
Preferably, it is described to match the standard dictionary list with local dictionary, generation update dictionary list
Before step, further include:
The local dictionary list of generation, the local dictionary list include being stored in version number and the dictionary of local dictionary
Title.
Preferably, it is described to match the standard dictionary list with local dictionary, generation update dictionary list
Step includes:
For the dictionary title of each dictionary in the standard dictionary list, the local dictionary list is traversed, is judged
It whether there is the record identical with the dictionary title of dictionary in the standard dictionary list in the local dictionary list;
If being not present, by the dictionary title of the dictionary in the standard dictionary list and corresponding latest edition
Number it is added in update dictionary list;
If in the presence of the latest edition number and the local dictionary for judging the dictionary in the standard dictionary list arrange
Whether the version number of corresponding dictionary is consistent in table;
If inconsistent, by the dictionary title of the dictionary in the standard dictionary list and corresponding latest edition
Number it is added in update dictionary list.
Preferably, the step being updated using the dictionary corresponding with the update dictionary list to local dictionary
Suddenly include:
If there is the dictionary identical with the dictionary title of the update dictionary list in local dictionary, by the update
The corresponding dictionary of dictionary list replaces corresponding dictionary in the local dictionary;
If the dictionary identical with the dictionary title of the update dictionary list is not present in local dictionary, by described in more
Newly the corresponding dictionary of dictionary list increases in local dictionary.
Another non-transitorycomputer readable storage medium, when the instruction in the storage medium is by mobile terminal
When managing device execution so that mobile terminal is able to carry out a kind of Word library updating method, the method includes:
Generation standard dictionary list, and the standard dictionary list is sent to client, wherein, the standard dictionary row
Table includes the latest edition number of one or more dictionaries stored in server and dictionary title;
It receives the client and is directed to the update dictionary list that the standard dictionary list returns, the update dictionary list
It is inconsistent to include version number and the latest edition number in the standard dictionary list in the local dictionary of client acquisition
Dictionary title and corresponding latest edition number and, the list of standard dictionary exist but do not deposited in the local dictionary
Dictionary dictionary title and corresponding latest edition number;
Obtain dictionary corresponding with the update dictionary list;
The dictionary corresponding with the update dictionary list is returned into the client.
Preferably, the generation standard dictionary list, and the step of standard dictionary list is sent to client wrap
It includes:
The input method application program update request that client is sent is received, the input method application program update request includes
The version number of the input method application program;
The version number of dictionary corresponding with the version number of the input method application program is obtained, and obtains the corresponding word
The dictionary title of all dictionaries under the version number in library;
By corresponding dictionary version number of the version number of the input method application program and the corresponding dictionary version number
Under all dictionaries dictionary title generation standard dictionary list;
The standard dictionary list is encapsulated in input method application program installation kit;
The input method application program installation kit is returned into client.
Preferably, the input method application program update request further includes the version number of the dictionary of the client local;
The method further includes:
If it is determined that corresponding dictionary version number of the version number of the input method application program and the word of client local
The version number in library is consistent, then judges that the dictionary does not update;
The installation kit of the input method application program is obtained, and the installation kit of the input method application program is returned into client
End.
Preferably, the generation standard dictionary list, and the step of standard dictionary list is sent to client wrap
It includes:
It receives the standard dictionary that client is sent and obtains request, the standard dictionary obtains request and includes input method application journey
The version number of sequence;
Dictionary version number corresponding with the version number of the input method application program is obtained, and obtains the corresponding dictionary
The dictionary title of all dictionaries under version number;
By corresponding dictionary version number of the version number of the input method application program and the corresponding dictionary version number
Under all dictionaries dictionary title generation standard dictionary list;
The standard dictionary list is sent to client.
Preferably, the standard dictionary obtains the version number that request further includes the dictionary of the client local;The side
Method further includes:
If it is determined that corresponding dictionary version number of the version number of the input method application program and the word of client local
The version number in library is consistent, then judges that the dictionary does not update;
Generation does not need to newer response message for the corresponding dictionary of input method application program, and by the response message
Return to client.
Preferably, described the step of obtaining dictionary corresponding with the update dictionary list, includes:
The latest edition number matched in database in the update dictionary list is managed from preset dictionary, it is newest to obtain this
The store path of all dictionaries under version number;
It is corresponding that the update dictionary list is filtered out from the store path of all dictionaries under the latest edition number
The store path of dictionary;
Corresponding dictionary is obtained from the store path of the corresponding dictionary of the update dictionary list.
Preferably, the described the step of dictionary corresponding with the update dictionary list is returned the client, wraps
It includes:
All dictionaries in the update dictionary list are compressed, obtain dictionary compressed package;
The dictionary compressed package is returned into the client.
Those skilled in the art will readily occur to the present invention its after considering specification and putting into practice invention disclosed herein
Its embodiment.The present invention is directed to cover the present invention any variations, uses, or adaptations, these modifications, purposes or
Person's adaptive change follows the general principle of the present invention and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as illustratively, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be understood that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is only limited by appended claim.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.
Claims (15)
- A kind of 1. Word library updating method, which is characterized in that the method includes:Acquisition standard dictionary list, the standard dictionary list include the latest edition of one or more dictionaries stored in server This number and dictionary title;The standard dictionary list is matched with local dictionary, generation update dictionary list, the update dictionary list Include version number is inconsistent with the latest edition number in the standard dictionary list in local dictionary dictionary title and Corresponding latest edition number and, exist but the word of dictionary that is not present in the local dictionary in the list of standard dictionary Library name and corresponding latest edition number;The update dictionary list is sent to server;Receive the dictionary corresponding with the update dictionary list that the server returns;Local dictionary is updated using the dictionary corresponding with the update dictionary list.
- 2. according to the method described in claim 1, it is characterized in that, the step of acquisition standard dictionary list include:The request of input method application program update is generated, and input method application program update request is sent to server;Receive the application program installation kit corresponding with application program update request that server returns, the application program peace Dress includes the standard dictionary list.
- 3. it according to the method described in claim 2, it is characterized in that, further includes:When the application program installation kit does not include standard dictionary list, then the corresponding word of the input method application program is judged Library does not need to update.
- 4. according to the method described in claim 1, it is characterized in that, the step of acquisition standard dictionary list include:Determine the version number of current input method application program;Version number's generation standard dictionary based on the input method application program obtains request, and the standard dictionary is obtained and is asked It asks and is sent to server;Receive the standard dictionary list corresponding with standard dictionary acquisition request that the server returns.
- 5. according to the method described in claim 4, it is characterized in that, the method further includes:When the standard dictionary list that server return is not received by preset time period or receive what the server returned When not needing to newer response message for the corresponding dictionary of input method application program, then the input method application program pair is judged The dictionary answered does not need to update.
- 6. according to claim 1-5 any one of them methods, which is characterized in that described by the standard dictionary list and local Dictionary matched, generation update dictionary list the step of before, further include:The local dictionary list of generation, the local dictionary list include being stored in the version number of local dictionary and dictionary name Claim.
- 7. according to the method described in claim 4, it is characterized in that, it is described by the standard dictionary list and local dictionary into The step of row matching, generation update dictionary list, includes:For the dictionary title of each dictionary in the standard dictionary list, the local dictionary list is traversed, described in judgement It whether there is the record identical with the dictionary title of dictionary in the standard dictionary list in local dictionary list;If being not present, the dictionary title of the dictionary in the standard dictionary list and corresponding latest edition number are added It is added in update dictionary list;If in the presence of in the latest edition number and the local dictionary list that judge the dictionary in the standard dictionary list Whether the version number of corresponding dictionary is consistent;If inconsistent, the dictionary title of the dictionary in the standard dictionary list and corresponding latest edition number are added It is added in update dictionary list.
- It is 8. according to the method described in claim 1, it is characterized in that, described using described corresponding with the update dictionary list The step of dictionary is updated local dictionary includes:If there is the dictionary identical with the dictionary title of the update dictionary list in local dictionary, by the update dictionary The corresponding dictionary of list replaces corresponding dictionary in the local dictionary;If the dictionary identical with the dictionary title of the update dictionary list, the more neologisms by described in are not present in local dictionary List corresponding dictionary in library increases in local dictionary.
- A kind of 9. Word library updating method, which is characterized in that the method includes:Generation standard dictionary list, and the standard dictionary list is sent to client, wherein, the standard dictionary list packet Include the latest edition number of the one or more dictionaries stored in server and dictionary title;It receives the client and is directed to the update dictionary list that the standard dictionary list returns, wrapped in the update dictionary list Include the dictionary that version number is inconsistent with the latest edition number in the standard dictionary list in the local dictionary of client acquisition Title and corresponding latest edition number and, the list of standard dictionary exists but is not present in the local dictionary The dictionary title and corresponding latest edition number of dictionary;Obtain dictionary corresponding with the update dictionary list;The dictionary corresponding with the update dictionary list is returned into the client.
- 10. according to the method described in claim 9, it is characterized in that, the generation standard dictionary list, and by the standard words The step of library list is sent to client includes:The input method application program update request that client is sent is received, the input method application program update request includes described The version number of input method application program;The version number of dictionary corresponding with the version number of the input method application program is obtained, and obtains the corresponding dictionary The dictionary title of all dictionaries under version number;It will be under corresponding dictionary version number of the version number of the input method application program and the corresponding dictionary version number The dictionary title generation standard dictionary list of all dictionaries;The standard dictionary list is encapsulated in input method application program installation kit;The input method application program installation kit is returned into client.
- 11. according to the method described in claim 9, it is characterized in that, the generation standard dictionary list, and by the standard words The step of library list is sent to client includes:It receives the standard dictionary that client is sent and obtains request, the standard dictionary obtains request and includes input method application program Version number;Dictionary version number corresponding with the version number of the input method application program is obtained, and obtains the corresponding dictionary version The dictionary title of all dictionaries under number;It will be under corresponding dictionary version number of the version number of the input method application program and the corresponding dictionary version number The dictionary title generation standard dictionary list of all dictionaries;The standard dictionary list is sent to client.
- 12. according to claim 9-13 any one of them methods, which is characterized in that the acquisition and the update dictionary list The step of corresponding dictionary, includes:The latest edition number matched in database in the update dictionary list is managed from preset dictionary, obtains the latest edition The store path of all dictionaries under number;The corresponding dictionary of the update dictionary list is filtered out from the store path of all dictionaries under the latest edition number Store path;Corresponding dictionary is obtained from the store path of the corresponding dictionary of the update dictionary list.
- 13. according to the method for claim 14, which is characterized in that described corresponding with the update dictionary list by described in The step of dictionary return client, includes:All dictionaries in the update dictionary list are compressed, obtain dictionary compressed package;The dictionary compressed package is returned into the client.
- 14. a kind of device of Word library updating, which is characterized in that include memory and one or more than one program, Either more than one program is stored in memory and is configured to by one or the execution of more than one processor for one of them The one or more programs include the instruction for being operated below:Acquisition standard dictionary list, the standard dictionary list include the latest edition of one or more dictionaries stored in server This number and dictionary title;The standard dictionary list is matched with local dictionary, generation update dictionary list, the update dictionary list Include version number is inconsistent with the latest edition number in the standard dictionary list in local dictionary dictionary title and Corresponding latest edition number and, exist but the word of dictionary that is not present in the local dictionary in the list of standard dictionary Library name and corresponding latest edition number;The update dictionary list is sent to server;Receive the dictionary corresponding with the update dictionary list that the server returns;Local dictionary is updated using the dictionary corresponding with the update dictionary list.
- 15. a kind of device of Word library updating, which is characterized in that include memory and one or more than one program, Either more than one program is stored in memory and is configured to by one or the execution of more than one processor for one of them The one or more programs include the instruction for being operated below:Generation standard dictionary list, and the standard dictionary list is sent to client, wherein, the standard dictionary list packet Include the latest edition number of the one or more dictionaries stored in server and dictionary title;It receives the client and is directed to the update dictionary list that the standard dictionary list returns, wrapped in the update dictionary list Include the dictionary that version number is inconsistent with the latest edition number in the standard dictionary list in the local dictionary of client acquisition Title and corresponding latest edition number and, the list of standard dictionary exists but is not present in the local dictionary The dictionary title and corresponding latest edition number of dictionary;Obtain dictionary corresponding with the update dictionary list;The dictionary corresponding with the update dictionary list is returned into the client.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611156427.6A CN108228620A (en) | 2016-12-14 | 2016-12-14 | A kind of Word library updating method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611156427.6A CN108228620A (en) | 2016-12-14 | 2016-12-14 | A kind of Word library updating method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN108228620A true CN108228620A (en) | 2018-06-29 |
Family
ID=62651178
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201611156427.6A Pending CN108228620A (en) | 2016-12-14 | 2016-12-14 | A kind of Word library updating method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108228620A (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109255001A (en) * | 2018-08-31 | 2019-01-22 | 阿里巴巴集团控股有限公司 | Maintaining method and device, the electronic equipment in interface instance library |
| CN109542248A (en) * | 2018-11-16 | 2019-03-29 | 上海二三四五网络科技有限公司 | A kind of control method and control device of incremental update dictionary data |
| CN110727895A (en) * | 2019-10-09 | 2020-01-24 | 北京达佳互联信息技术有限公司 | Sensitive word sending method and device, electronic equipment and storage medium |
| CN112256669A (en) * | 2020-09-27 | 2021-01-22 | 北京三快在线科技有限公司 | Data processing method, apparatus, electronic device and readable storage medium |
| CN113709534A (en) * | 2021-08-26 | 2021-11-26 | 深圳康佳电子科技有限公司 | Key multiplexing method and device, intelligent terminal and computer readable storage medium |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101051323A (en) * | 2007-05-22 | 2007-10-10 | 北京搜狗科技发展有限公司 | Character input method, input method system and method for updating word stock |
| CN101645087A (en) * | 2009-09-01 | 2010-02-10 | 腾讯科技(深圳)有限公司 | Classified word bank system and updating and maintaining method thereof and client side |
| WO2013163804A1 (en) * | 2012-05-03 | 2013-11-07 | 华为技术有限公司 | Method and device for adjusting word bank |
-
2016
- 2016-12-14 CN CN201611156427.6A patent/CN108228620A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101051323A (en) * | 2007-05-22 | 2007-10-10 | 北京搜狗科技发展有限公司 | Character input method, input method system and method for updating word stock |
| CN101645087A (en) * | 2009-09-01 | 2010-02-10 | 腾讯科技(深圳)有限公司 | Classified word bank system and updating and maintaining method thereof and client side |
| WO2013163804A1 (en) * | 2012-05-03 | 2013-11-07 | 华为技术有限公司 | Method and device for adjusting word bank |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109255001A (en) * | 2018-08-31 | 2019-01-22 | 阿里巴巴集团控股有限公司 | Maintaining method and device, the electronic equipment in interface instance library |
| CN109542248A (en) * | 2018-11-16 | 2019-03-29 | 上海二三四五网络科技有限公司 | A kind of control method and control device of incremental update dictionary data |
| CN110727895A (en) * | 2019-10-09 | 2020-01-24 | 北京达佳互联信息技术有限公司 | Sensitive word sending method and device, electronic equipment and storage medium |
| CN112256669A (en) * | 2020-09-27 | 2021-01-22 | 北京三快在线科技有限公司 | Data processing method, apparatus, electronic device and readable storage medium |
| CN113709534A (en) * | 2021-08-26 | 2021-11-26 | 深圳康佳电子科技有限公司 | Key multiplexing method and device, intelligent terminal and computer readable storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6811758B2 (en) | Voice interaction methods, devices, devices and storage media | |
| CN108538291A (en) | Sound control method, terminal device, cloud server and system | |
| WO2021196981A1 (en) | Voice interaction method and apparatus, and terminal device | |
| CN108228620A (en) | A kind of Word library updating method and device | |
| CN107436691A (en) | A kind of input method carries out method, client, server and the device of error correction | |
| US20170150290A1 (en) | Method and device for information push | |
| CN108701127A (en) | Electronic device and method of operation thereof | |
| CN109961791A (en) | A kind of voice information processing method, device and electronic equipment | |
| CN105354284A (en) | Template processing method and apparatus and short message identification method and apparatus | |
| WO2020240838A1 (en) | Conversation control program, conversation control method, and information processing device | |
| CN105101202A (en) | Information processing method and device | |
| CN109063101A (en) | The generation method and device of video cover | |
| CN111079438A (en) | Identity authentication method and device, electronic equipment and storage medium | |
| CN105302335B (en) | Vocabulary recommends method and apparatus and computer readable storage medium | |
| KR20190021136A (en) | System and device for generating TTS model | |
| CN107977089A (en) | A kind of input method and device, a kind of device for being used to input | |
| CN106792604B (en) | Method and device for service prompt in communication process | |
| CN110472223A (en) | A kind of input configuration method, device and electronic equipment | |
| CN112425144B (en) | Information prompting method and related product | |
| CN108573706A (en) | A kind of audio recognition method, device and equipment | |
| CN110162710A (en) | Information recommendation method and device under input scene | |
| CN108073291A (en) | A kind of input method and device, a kind of device for input | |
| CN108241438B (en) | Input method, input device and input device | |
| WO2020024436A1 (en) | Method and system for updating user information, and server | |
| CN104951522A (en) | Searching method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |