CN109542248A - A kind of control method and control device of incremental update dictionary data - Google Patents
A kind of control method and control device of incremental update dictionary data Download PDFInfo
- Publication number
- CN109542248A CN109542248A CN201811366451.1A CN201811366451A CN109542248A CN 109542248 A CN109542248 A CN 109542248A CN 201811366451 A CN201811366451 A CN 201811366451A CN 109542248 A CN109542248 A CN 109542248A
- Authority
- CN
- China
- Prior art keywords
- dictionary
- version
- current version
- user
- user kernel
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
- G06F3/0233—Character input methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/658—Incremental updates; Differential updates
Abstract
The present invention provides a kind of control methods of incremental update dictionary data, it is used to carry out incremental update to input method dictionary, specifically comprise the following steps: that a. is based on user kernel dictionary current version and server core dictionary latest edition determines the need for incremental update, if so, entering step b;B. increment information is determined based on the server core dictionary of the user kernel dictionary of current version and one or more versions;C., the increment information is updated to the user kernel dictionary of current version, it is by judging whether to need incremental update, for needing the current version user core word bank of incremental update, determine increment information, increment information is added to the user kernel dictionary of current version again, thus realize the update to user kernel dictionary, it is easy to operate, the control method and control device of a kind of incremental update dictionary data that update step is shorter with the update cycle are provided, there is high commercial value.
Description
Technical field
The invention belongs to input method update method field, in particular to the control method of a kind of incremental update dictionary data and
Control device.
Background technique
With science and technology make rapid progress, internet play the role of in people's lives it is very important, and currently,
Enter the Web page, the major way of app etc. is text input, user needs to input address correlation and enters targeted website or input phase
Keyword search information needed is closed, while the input of electronic document, the use of Email, use of chat software etc. be not from
Open input method.
The size of input method dictionary, the entry number for including in dictionary, entry content in dictionary, is to influence user's input
When comfort level an important factor for.By taking spelling input method as an example, when user wants input " evil spirits " this Chinese idiom, such as
It include this Chinese idiom in fruit dictionary, then user only needs disposably to input the phonetic of the Chinese idiom, but if not wrapping in dictionary
Containing the Chinese idiom, then user needs to individually enter four words, carries out four operations for inputting and selecting word, very not quick, therefore
The update of dictionary and increment are the importances for promoting input method system system performance.
Currently, most input methods are to grab the page by web crawlers, word segmentation processing is then carried out, then will be therein effective
Part is fabricated to dictionary, and only when server end generates the dictionary of new version, the input method dictionary of client just be will be updated, because
And the update cycle is longer, process is complicated, and when each update, needs to repeat all processes, and the update cycle is slower, for day crescent
The problems such as different internet environment, dictionary version is low, dictionary content is outmoded, dictionary entry number is few will affect user's body
It tests.
A kind of input method technology is needed, for neologisms, it may not be necessary to repeat whole update steps each time, and only need
Increase neologisms into dictionary, to realize the shorter update cycle.
Summary of the invention
For technological deficiency of the existing technology, according to an aspect of the present invention, a kind of incremental update dictionary is provided
The control method of data is used to carry out incremental update to input method dictionary, specifically include:
A. increment is determined the need for based on user kernel dictionary current version and server core dictionary latest edition
It updates, if so, entering step b;
B. the server core dictionary based on the user kernel dictionary of current version and one or more versions, which determines, increases
Measure information;
C., the increment information is updated to the user kernel dictionary of current version.
Further, it before the step a, further comprises the steps of:
I: the server core dictionary version is classified, and determines that server version is m-n, m-n+1, m-n+2
+ ... m-2, m-1, m, wherein the m is server core dictionary latest edition, and n is server core dictionary original version and clothes
The difference for device core word bank latest edition of being engaged in, the 1≤n;
I i: it determines in the server core dictionary of original version and the server core dictionary of latest edition per adjacent version
Dictionary increment information S, i.e. S1, S2, S3, S4 ... Sk between this, wherein k is in the server core dictionary of original version and most
The number of dictionary increment information in the server core dictionary of new version between every adjacent version, the k are equal to the n.
Further, the step a further include:
When user kernel dictionary current version is less than server core dictionary version, b is entered step;
When user kernel dictionary current version is equal to server core dictionary version, stop updating.
Further, the step b includes:
B1: judging whether the user kernel dictionary carried out increment upgrading, if so, b2 is thened follow the steps, if it is not, then
Execute step b3;
B2: determining the user kernel dictionary of the user kernel dictionary of current version and next version of current version,
And by the increment dictionary between the user kernel dictionary of next version of the user kernel dictionary of current version and current version
As increment information;
B3: determining the user kernel dictionary of current version and the server core dictionary of latest edition, and by current version
Increment dictionary between this user kernel dictionary and the server core dictionary of latest edition is as increment information.
Further, the step c includes:
C1: the increment information is increased to the user kernel dictionary of current version;
C2: the current version for increasing increment information is substituted for current version.
Further, after the step c, further includes:
D: interval time t re-executes a step.
Preferably, the value range of the time t are as follows: t >=180min.
Further, after the step c, further includes:
E: when user uses input method next time, it re-execute the steps a.
According to another aspect of the present invention, a kind of control device of incremental update dictionary data is provided, is used for defeated
Enter method dictionary and carry out incremental update, specifically includes:
First determining device: determine whether to need based on user kernel dictionary current version and server core dictionary version
Want incremental update;
Second determining device: increment information is determined based on user kernel dictionary current version;
First processing unit: the increment information is updated to user kernel dictionary.
Further, further includes:
Second processing device: the server core dictionary version is classified, and determine server version be m-n,
m-n+1,m-n+2+…m-2,m-1,m;
Third determining device: server core dictionary original version and every phase in server core dictionary latest edition are determined
Dictionary increment information S between adjacent version.
Further, further includes:
4th determining device: the user of the user kernel dictionary of current version and next version of current version is determined
Core word bank, or determine the user kernel dictionary of current version and the server core dictionary of latest edition;
Third processing unit: by the user kernel of next version of the user kernel dictionary of current version and current version
Increment dictionary between dictionary is as increment information, or by the user kernel dictionary of current version and the server of latest edition
Increment dictionary between core word bank is as increment information.
Further, further includes:
The increment information: being increased to the user kernel dictionary of current version by fourth process device,;
5th processing unit: the current version for increasing increment information is substituted for current version.
Further, further includes:
6th processing unit: interval time t re-executes a step.
Further, further includes:
7th processing unit: when user uses input method next time, it re-execute the steps a.
The present invention determines the need for incremental update by being based on user thesaurus current version and server dictionary version,
And increment information is determined based on user thesaurus current version, the increment information is the user kernel dictionary of current version and current
Increment dictionary between the user kernel dictionary of next version of version, or the user kernel dictionary and most for current version
The increment information after determining increment information, is updated to user by the increment dictionary between the server core dictionary of new version
Dictionary is used to carry out incremental update to input method dictionary, and operation of the present invention is simple, practical, it is possible to reduce updates dictionary
The step of, shorten the Word library updating period, there is high commercial value.
Detailed description of the invention
Upon reading the detailed description of non-limiting embodiments with reference to the following drawings, other feature of the invention,
Objects and advantages will become more apparent upon:
Fig. 1 shows a specific embodiment of the invention, a kind of control method of incremental update dictionary data it is specific
Flow diagram;
Fig. 2 shows the first embodiment of the present invention, and the server core dictionary version is classified, and determine
Server version be m-n, m-n+1, m-n+2+ ... m-2, m-1, m, and determine original version server core dictionary with most
Dictionary increment information S in the server core dictionary of new version between every adjacent version, i.e., S1, S2, S3, S4 ... Sk's is specific
Flow diagram;
Fig. 3 shows the second embodiment of the present invention, is based on user kernel dictionary current version and server core
Dictionary latest edition determines the need for the idiographic flow schematic diagram of incremental update;
Fig. 4 shows the third embodiment of the present invention, the user kernel dictionary based on current version and one or more
The server core dictionary of a version determines the idiographic flow schematic diagram of increment information;
Fig. 5 shows the fourth embodiment of the present invention, and the increment information is updated to the user kernel of current version
The idiographic flow schematic diagram of dictionary;
Fig. 6 shows the fifth embodiment of the present invention, and interval time t re-executes the detailed process signal of a step
Figure;
Fig. 7 shows the sixth embodiment of the present invention, when user uses input method next time, re-execute the steps a
Idiographic flow schematic diagram;And
Fig. 8 shows another embodiment of the present invention, a kind of mould of the control device of incremental update dictionary data
Block connection schematic diagram.
Specific embodiment
In order to preferably technical solution of the present invention be made clearly to show, the present invention is made into one with reference to the accompanying drawing
Walk explanation.
Fig. 1 shows a specific embodiment of the invention, a kind of control method of incremental update dictionary data it is specific
Flow diagram is used to carry out incremental update to input method dictionary, it will be appreciated by those skilled in the art that currently, most input methods
It is that the page is grabbed by web crawlers, then carries out word segmentation processing, then live part therein is fabricated to dictionary, only work as clothes
When the dictionary for device end generation new version of being engaged in, the input method dictionary of client just be will be updated, thus the update cycle is longer, and process is multiple
It is miscellaneous, and when each update, it needing to repeat all processes, the update cycle is slower, and incremental update refers to when being updated operation,
The place for needing to change only is updated, does not need to update or updated place will not then repeat to update, specifically, including
Following steps:
Firstly, entering step S101, it is based on user kernel dictionary current version and server core dictionary latest edition
Incremental update is determined the need for, if so, S102 is entered step, it will be appreciated by those skilled in the art that server is a kind of high property
Energy computer, as the node of network, storage handles 80% data, information on network, and server is a management resource,
And service is provided for user, is generally divided into file server, database server and apps server.Server dictionary
It is that input method software offer enterprise provides a user dictionary data, information, the management resource of service.Those skilled in the art's reason
Solution, core word bank dictionary included when being input method installation, user are unable to manual modification core word bank content, can only program more
Newly.
Then, S102 is entered step, the service of user kernel dictionary and one or more versions based on current version
Device core word bank determines increment information, it will be appreciated by those skilled in the art that this step includes a judgment step, needs to first determine whether
Whether the user kernel dictionary of current version carried out update, if updated, by the user kernel dictionary of current version under
Increment dictionary between the user kernel dictionary of one version is as increment information, if not updated, by the user of current version
Increment dictionary between dictionary and the server core dictionary of latest edition is as increment information.
Finally, entering step S103, the increment information is updated to the user kernel dictionary of current version, this field skill
Art personnel understand that increment updating method does not need to update all information, and only needs increment information being supplemented in current version
User kernel dictionary in, then will supplemented with increment information user kernel dictionary as updated version.
Fig. 2 shows the first embodiment of the present invention, and the server core dictionary version is classified, and determine
Server version be m-n, m-n+1, m-n+2+ ... m-2, m-1, m, and determine original version server core dictionary with most
Dictionary increment information S in the server core dictionary of new version between every adjacent version, i.e., S1, S2, S3, S4 ... Sk's is specific
Flow diagram, it will be appreciated by those skilled in the art that the present embodiment is the preparation process for determining the need for incremental update, specifically
Ground includes the following steps:
Firstly, entering step S201, the server core dictionary version is classified, and determines that server version is
M-n, m-n+1, m-n+2+ ... m-2, m-1, m, it will be appreciated by those skilled in the art that the m is server core dictionary latest edition,
N is the difference of server core dictionary original version and server core dictionary latest edition, the 1≤n.
For example, server core dictionary latest edition is 6, i.e. m=6, server original version is 1, then server core
The difference of dictionary original version and server core dictionary latest edition is 5, then n=5, server version is followed successively by 1,2,3,4,5,
6。
Then, S202 is entered step, determines the server core dictionary of original version and the server core of latest edition
Dictionary increment information S, i.e. S1, S2, S3, S4 ... Sk, it will be appreciated by those skilled in the art that wherein in dictionary between every adjacent version
K is the dictionary between in the server core dictionary of original version and the server core dictionary of latest edition per adjacent version
The number of increment information, the k are equal to the n.
For example, when the server version of original version is 1, latest edition server core dictionary version is 6, original version
It originally is then 5 the increment information number between latest edition dictionary, i.e. k=5, i.e. increment information are S5, similarly, 1 version and 2
Increment information number is 1, increment information S1 between version, and increment information number is 2 between 1 version and 3 versions, increment information
For S2, increment information number is 3 between 1 version and 4 versions, and increment information S3, increment information is between 1 version and 5 versions
4, increment information S4.
Then, S203, S204, S205 are entered step, it will be appreciated by those skilled in the art that described step S203, S204, S205
It is referred to Fig. 1 step S101, S102, S103, it will not be described here.
Fig. 3 shows the second embodiment of the present invention, is based on user kernel dictionary current version and server core
Dictionary latest edition determines the need for the idiographic flow schematic diagram of incremental update, it will be appreciated by those skilled in the art that the step is
Judgment step, by the latest edition of the currently used core word bank version of user and input method system server core dictionary into
Row compares, and judges whether there is increment, exists, and continues the step of updating, there is no update step is not entered then, which can
To reduce renewal amount.
Firstly, S301, S302 are entered step, it will be appreciated by those skilled in the art that step S301, S302 is referred to figure
2 steps S201, S202, it will not be described here.
Then, S303 is entered step, judges whether user kernel dictionary current version is less than server core dictionary version,
When user kernel dictionary current version is less than server core dictionary version, S304 is entered step, when user kernel dictionary is worked as
When preceding version is not less than server core dictionary version, S3031 is entered step.It will be appreciated by those skilled in the art that user kernel word
When library current version is less than server core dictionary version, i.e. the non-current version of current version needs to update, and current version etc.
When server core dictionary version, i.e., current version is latest edition, is not required to update.
When user kernel dictionary current version is not less than server core dictionary version, S3031 is entered step, i.e., ought be used
When family core word bank current version is equal to server core dictionary version, stop updating, it will be appreciated by those skilled in the art that being not present
User kernel dictionary current version is greater than the case where server core dictionary version.
Then, S304, S305 are entered step, it will be appreciated by those skilled in the art that step S304, S305 is referred to figure
2 steps S204, S205, it will not be described here.
Fig. 4 shows the third embodiment of the present invention, the user kernel dictionary based on current version and one or more
The server core dictionary of a version determines the idiographic flow schematic diagram of increment information, it will be appreciated by those skilled in the art that the implementation
Example includes a judgment step, first determines whether the user kernel dictionary carried out increment upgrading, if carrying out increment liter
Grade, then only need to using the increment dictionary between current version and the user kernel dictionary of next version as increment information, if not into
Increment of going upgrading, then only need to using the increment dictionary between current version and latest edition as increment information, specifically, including
Following steps:
Firstly, S401, S402, S403, S4031 are entered step, it will be appreciated by those skilled in the art that the step S401,
S402, S403 are referred to Fig. 3 step S301, S302, S303, S3031, and it will not be described here.
Then, S404 is entered step, judges whether the user kernel dictionary carried out increment upgrading, if into being judged as
"Yes" then enters step S405, if being judged as "No", enters step S406.
When the user kernel dictionary carried out increment upgrading, S405 is entered step, determines user's core of current version
The user kernel dictionary of next version of heart dictionary and current version, and by the user kernel dictionary of current version and currently
Increment dictionary between the user kernel dictionary of next version of version as increment information, it will be appreciated by those skilled in the art that
For example, when next version is 6, show that user kernel dictionary carried out increment upgrading when the current version for determining user is 5,
Then using the increment dictionary S1 between current version and the core word bank of next version as increment information.
When the user kernel dictionary did not carried out increment upgrading, S406 is entered step, determines the user of current version
The server core dictionary of core word bank and latest edition, and by the user kernel dictionary of current version and latest edition
Increment dictionary between server core dictionary is as increment information, it will be appreciated by those skilled in the art that for example, when determining user's
When current core dictionary version is 1, show that user did not carried out incremental update, the server core dictionary of latest edition is 6, then
Believe the increment dictionary S5 between the user kernel dictionary of current version and the server core dictionary of latest edition as increment
Breath.One step of user kernel dictionary of current version is updated to most it will be appreciated by those skilled in the art that the step S406 is realized
The server core dictionary of new version avoids and successively updates each version dictionary, to realize the shortening of update cycle.
Then, S407 is entered step, it will be appreciated by those skilled in the art that the step S407 is referred to Fig. 3 step S305,
It will not be described here.
Fig. 5 shows the fourth embodiment of the present invention, and the increment information is updated to the user kernel of current version
The idiographic flow schematic diagram of dictionary, it will be appreciated by those skilled in the art that the purpose of this step is increment information obtained by abovementioned steps
It is added in the user kernel dictionary of current version, thus realize the update to current version user core word bank, specifically, packet
Include following steps:
Firstly, S501, S502, S503, S504, S505, S506, S5031 are entered step, it will be appreciated by those skilled in the art that
Described step S501, S502, S503, S504, S505, S506, S5031 can with reference to step S401, S402, S403, S404,
S405, S406, S4031, it will not be described here.
Then, S507 is entered step, the increment information is increased to the user kernel dictionary of current version, this field skill
Art personnel understand that, when the user kernel dictionary carried out increment upgrading, increment information is the user kernel word of current version
Increment dictionary between the user kernel dictionary of next version of library and current version, when the user kernel dictionary does not carry out
When crossing increment upgrading, increment information is between the user kernel dictionary of current version and the server core dictionary of latest edition
Increment dictionary.
Then, S508 is entered step, the current version for increasing increment information is substituted for current version, those skilled in the art
Member understands that the step is the process of more new version, for example, user's current version core word bank is 5, increment information is added to and is worked as
After preceding version, original version is replaced with the version for increasing increment information, the version after replacement is 6, and current version at this time is
It is 6.
Fig. 6 shows the fifth embodiment of the present invention, interval time t, and the detailed process for re-executeing the steps S603 is shown
It is intended to, it will be appreciated by those skilled in the art that this embodiment offers the control methods that a kind of regular delta updates dictionary data, specifically
Ground includes the following steps:
Firstly, S601, S602, S603, S604, S605, S606, S6031, S607, S608 are entered step, art technology
Personnel understand that described step S601, S602, S603, S604, S605, S606, S6031, S607, S608 are referred to Fig. 5 step
S501, S502, S503, S504, S505, S506, S5031, S507, S508, it will not be described here.
Then, S609 is entered step, interval time t re-execute the steps S603, it will be appreciated by those skilled in the art that described
Time interval t is to calculate from last user kernel dictionary completes renewable time, and elapsed time t, the time interval t can
According to actual needs, to be configured by user or input method system server provider.
Preferably, the value range of the time t are as follows: t >=180min, it will be appreciated by those skilled in the art that by renewal time
Positioned at intervals is no less than 180 minutes, it is therefore an objective to and it avoids time interval excessively in short-term, will lead to the frequent problem of update times,
It is not in a large amount of neologisms in dictionary data in excessively short time interval, server core dictionary there will not be update, because
This user kernel dictionary does not need to be updated.
Fig. 7 shows the sixth embodiment of the present invention, when user uses input method next time, re-execute the steps
The idiographic flow schematic diagram of S703, it will be appreciated by those skilled in the art that the embodiment is designed to provide one kind based on user behavior
The control method that starting updates specifically includes the following steps:
Firstly, S701, S702, S703, S704, S705, S706, S7031, S707, S708 are entered step, art technology
Personnel understand that described step S701, S702, S703, S704, S705, S706, S7031, S707, S708 are referred to Fig. 5 step
S501, S502, S503, S504, S505, S506, S5031, S507, S508, it will not be described here.
Then, S709 is entered step, when user uses input method next time, re-execute the steps S703, this field skill
Art personnel understand, when user uses input method, the input method dictionary expected should be described comprising newest, most words
User's usage behavior include open input method software, tap external keyboard carry out text input, by keypad in computer into
Row text input etc..
Fig. 8 shows another embodiment of the present invention, a kind of mould of the control device of incremental update dictionary data
Block connection schematic diagram specifically includes it will be appreciated by those skilled in the art that it is used to carry out incremental update to input method dictionary:
First determining device: determine whether to need based on user kernel dictionary current version and server core dictionary version
Incremental update is wanted, it will be appreciated by those skilled in the art that the device is judgment means, in the apparatus by the currently used core of user
Heart dictionary version is compared with the latest edition of input method system server core dictionary, judges whether there is increment, is existed
Then continue the step of updating into next device, there is no do not enter update step then;
Second determining device: determining increment information based on user kernel dictionary current version, it will be appreciated by those skilled in the art that
The present apparatus is judgment means, first determines whether the user kernel dictionary of current version carried out update, if updated, will be worked as
Increment dictionary between the user kernel dictionary of preceding version and the user kernel dictionary of next version is as increment information, if not more
New mistake is then believed the increment dictionary between the user thesaurus of current version and the server core dictionary of latest edition as increment
Breath;
First processing unit: the increment information is updated to user kernel dictionary, it will be appreciated by those skilled in the art that increment
Update method does not need to update all information, and only needs for increment information to be supplemented in the user kernel dictionary of current version
In, then using the user kernel dictionary supplemented with increment information as updated version.
Preferably, the first determining device is connected with the second determining device, the second determining device and the first determining device and
First processing unit is connected, and the first processing unit is connected with the second determining device.
Further, further includes:
Second processing device: the server core dictionary version is classified, and determine server version be m-n,
M-n+1, m-n+2+ ... m-2, m-1, m, it will be appreciated by those skilled in the art that the m is server core dictionary latest edition, n is
The difference of server core dictionary original version and server core dictionary latest edition, the 1≤n;
Third determining device: server core dictionary original version and every phase in server core dictionary latest edition are determined
Dictionary increment information S between adjacent version, i.e. S1, S2, S3, S4 ... Sk, it will be appreciated by those skilled in the art that wherein k is original
Dictionary increment information in the server core dictionary of version and the server core dictionary of latest edition between every adjacent version
Number, the k be equal to the n.
Preferably, second processing device is connected with third determining device, and third determining device is connected with the first determining device.
Further, further includes:
4th determining device: the user of the user kernel dictionary of current version and next version of current version is determined
Core word bank, or determine the user kernel dictionary of current version and the server core dictionary of latest edition, art technology
Personnel understand, when the user kernel dictionary carried out increment upgrading, determine the user kernel dictionary of current version and work as
The user kernel dictionary of next version of preceding version, when the user kernel dictionary did not carried out increment upgrading, it is determined that
The user kernel dictionary of current version and the server core dictionary of latest edition;
Third processing unit: by the user kernel of next version of the user kernel dictionary of current version and current version
Increment dictionary between dictionary is as increment information, or by the user kernel dictionary of current version and the server of latest edition
Increment dictionary between core word bank is as increment information, it will be appreciated by those skilled in the art that when the user kernel dictionary carries out
It, will be between the user kernel dictionary of next version of the user kernel dictionary of current version and current version when crossing increment upgrading
Increment dictionary as increment information, when the user kernel dictionary did not carried out increment upgrading, then by the use of current version
Increment dictionary between family core word bank and the server core dictionary of latest edition is as increment information.
Preferably, the 4th determining device is connected with third processing unit, the 4th determining device and third processing unit with
Second determining device is connected.
Further, further includes:
Fourth process device: the increment information is increased to the user kernel dictionary of current version, those skilled in the art
Member understand, when the user kernel dictionary carried out increment upgrading when, increment information be current version user kernel dictionary with
Increment dictionary between the user kernel dictionary of next version of current version, when the user kernel dictionary did not carried out increasing
When amount upgrading, increment information is the increasing between the user kernel dictionary of current version and the server core dictionary of latest edition
Quantifier library;
5th processing unit: the current version for increasing increment information is substituted for current version, those skilled in the art's reason
Solution, the device is interior to carry out version updating.
Preferably, fourth process device is connected with the 5th processing unit, and is the part of the first processing unit.
Further, further includes:
6th processing unit: interval time t re-executes a step, it will be appreciated by those skilled in the art that the device carries out pair
Dictionary data regularly update, and the time interval t is to calculate from last user kernel dictionary completes renewable time, pass through
Time t, the time interval t can be configured by user or input method system server provider according to actual needs.
Preferably, the 6th processing unit is connected with the first processing unit, and is connected with the first determining device.
Further, further includes:
7th processing unit: when user uses input method next time, a, those skilled in the art's reason are re-execute the steps
It solves, carries out updating based on user behavior starting in the device, when user uses input method, the input method dictionary expected should
Comprising newest, most words, user's usage behavior is defeated including opening input method software, percussion external keyboard progress text
Enter, text input etc. is carried out by keypad in computer.
Preferably, the 7th processing unit is connected with the first processing unit, and is connected with the first determining device.
The present invention determines the need for incremental update by being based on user thesaurus current version and server dictionary version,
And increment information is determined based on user thesaurus current version, the increment information is the user kernel dictionary of current version and current
Increment dictionary between the user kernel dictionary of next version of version, or the user kernel dictionary and most for current version
The increment information after determining increment information, is updated to user by the increment dictionary between the server core dictionary of new version
Dictionary is used to carry out incremental update to input method dictionary, and operation of the present invention is simple, practical, it is possible to reduce updates dictionary
The step of, shorten the Word library updating period, there is high commercial value.
Specific embodiments of the present invention are described above.It is to be appreciated that the invention is not limited to above-mentioned
Particular implementation, those skilled in the art can make various deformations or amendments within the scope of the claims, this not shadow
Ring substantive content of the invention.
Claims (14)
1. a kind of control method of incremental update dictionary data is used to carry out incremental update to input method dictionary, feature exists
In including the following steps:
A. incremental update is determined the need for based on user kernel dictionary current version and server core dictionary latest edition,
If so, entering step b;
B. the server core dictionary based on the user kernel dictionary of current version and one or more versions determines that increment is believed
Breath;
C., the increment information is updated to the user kernel dictionary of current version.
2. control method according to claim 1, which is characterized in that before the step a, further comprise the steps of:
I: the server core dictionary version is classified, and determines that server version is m-n, m-n+1, m-n+2+ ... m-
2, m-1, m, wherein the m is server core dictionary latest edition, and n is server core dictionary original version and server
The difference of core word bank latest edition, the 1≤n;
Ii: it determines in the server core dictionary of original version and the server core dictionary of latest edition between every adjacent version
Dictionary increment information S, i.e. S1, S2, S3, S4 ... Sk, wherein k be original version server core dictionary and latest edition
Server core dictionary in number per the dictionary increment information between adjacent version, the k is equal to the n.
3. control method according to claim 1 or 2, which is characterized in that the step a further include:
When user kernel dictionary current version is less than server core dictionary version, b is entered step;
When user kernel dictionary current version is equal to server core dictionary version, stop updating.
4. control method according to claim 3, which is characterized in that the step b includes:
B1: judging whether the user kernel dictionary carried out increment upgrading, if so, b2 is thened follow the steps, if it is not, then executing
Step b3;
B2: the user kernel dictionary of the user kernel dictionary of current version and next version of current version is determined, and will
Increment dictionary conduct between the user kernel dictionary of next version of the user kernel dictionary and current version of current version
Increment information;
B3: determining the user kernel dictionary of current version and the server core dictionary of latest edition, and by current version
Increment dictionary between user kernel dictionary and the server core dictionary of latest edition is as increment information.
5. control method according to claim 4, which is characterized in that the step c includes:
C1: the increment information is increased to the user kernel dictionary of current version;
C2: the current version for increasing increment information is substituted for current version.
6. control method described according to claim 1 or 2 or 4 or 5, which is characterized in that after the step c, further includes:
D: interval time t re-executes a step.
7. control method according to claim 6, which is characterized in that the value range of the time t are as follows: t >=180min.
8. control method described according to claim 1 or 2 or 4 or 5 or 7, which is characterized in that after the step c, also wrap
It includes:
E: when user uses input method next time, it re-execute the steps a.
9. a kind of control device of incremental update dictionary data is used to carry out incremental update to input method dictionary, feature exists
In, comprising:
First determining device: it determines the need for increasing based on user kernel dictionary current version and server core dictionary version
Amount updates;
Second determining device: increment information is determined based on user kernel dictionary current version;
First processing unit: the increment information is updated to user kernel dictionary.
10. control device according to claim 9, which is characterized in that further include:
Second processing device: the server core dictionary version is classified, and determines that server version is m-n, m-n+
1,m-n+2+…m-2,m-1,m;
Third determining device: it determines in server core dictionary original version and server core dictionary latest edition per adjacent version
Dictionary increment information S between this.
11. control device according to claim 9 or 10, which is characterized in that further include:
4th determining device: the user kernel of the user kernel dictionary of current version and next version of current version is determined
Dictionary, or determine the user kernel dictionary of current version and the server core dictionary of latest edition;
Third processing unit: by the user kernel dictionary of next version of the user kernel dictionary of current version and current version
Between increment dictionary as increment information, or by the user kernel dictionary of current version and the server core of latest edition
Increment dictionary between dictionary is as increment information.
12. control device according to claim 11, which is characterized in that further include:
The increment information: being increased to the user kernel dictionary of current version by fourth process device,;
5th processing unit: the current version for increasing increment information is substituted for current version.
13. according to control device described in claim 9 or 10 or 12, which is characterized in that further include:
6th processing unit: interval time t re-executes a step.
14. control method according to claim 13, which is characterized in that further include:
7th processing unit: when user uses input method next time, it re-execute the steps a.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811366451.1A CN109542248A (en) | 2018-11-16 | 2018-11-16 | A kind of control method and control device of incremental update dictionary data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811366451.1A CN109542248A (en) | 2018-11-16 | 2018-11-16 | A kind of control method and control device of incremental update dictionary data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109542248A true CN109542248A (en) | 2019-03-29 |
Family
ID=65847842
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811366451.1A Withdrawn CN109542248A (en) | 2018-11-16 | 2018-11-16 | A kind of control method and control device of incremental update dictionary data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109542248A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110727895A (en) * | 2019-10-09 | 2020-01-24 | 北京达佳互联信息技术有限公司 | Sensitive word sending method and device, electronic equipment and storage medium |
CN110750547A (en) * | 2019-10-21 | 2020-02-04 | 中国民航信息网络股份有限公司 | Data acquisition method and device |
CN113704233A (en) * | 2021-10-29 | 2021-11-26 | 飞狐信息技术(天津)有限公司 | Keyword detection method and system |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101030157A (en) * | 2007-04-20 | 2007-09-05 | 北京搜狗科技发展有限公司 | Method and system for updating user vocabulary synchronouslly |
CN101051323A (en) * | 2007-05-22 | 2007-10-10 | 北京搜狗科技发展有限公司 | Character input method, input method system and method for updating word stock |
CN101079037A (en) * | 2006-06-26 | 2007-11-28 | 腾讯科技(深圳)有限公司 | Chinese character library updating method and system |
CN101840418A (en) * | 2010-03-31 | 2010-09-22 | 北京搜狗科技发展有限公司 | User word library synchronous update method, update server and input method system |
CN102073527A (en) * | 2011-01-26 | 2011-05-25 | 百度在线网络技术(北京)有限公司 | Method and device for updating input method word stock |
CN102955825A (en) * | 2011-08-30 | 2013-03-06 | 北京搜狗科技发展有限公司 | Method and system for updating input method lexicon |
CN108228620A (en) * | 2016-12-14 | 2018-06-29 | 北京搜狗科技发展有限公司 | A kind of Word library updating method and device |
CN108628461A (en) * | 2017-03-16 | 2018-10-09 | 北京搜狗科技发展有限公司 | A kind of input method and device, a kind of method and apparatus of update dictionary |
-
2018
- 2018-11-16 CN CN201811366451.1A patent/CN109542248A/en not_active Withdrawn
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101079037A (en) * | 2006-06-26 | 2007-11-28 | 腾讯科技(深圳)有限公司 | Chinese character library updating method and system |
CN101030157A (en) * | 2007-04-20 | 2007-09-05 | 北京搜狗科技发展有限公司 | Method and system for updating user vocabulary synchronouslly |
CN101051323A (en) * | 2007-05-22 | 2007-10-10 | 北京搜狗科技发展有限公司 | Character input method, input method system and method for updating word stock |
CN101840418A (en) * | 2010-03-31 | 2010-09-22 | 北京搜狗科技发展有限公司 | User word library synchronous update method, update server and input method system |
CN102073527A (en) * | 2011-01-26 | 2011-05-25 | 百度在线网络技术(北京)有限公司 | Method and device for updating input method word stock |
CN102955825A (en) * | 2011-08-30 | 2013-03-06 | 北京搜狗科技发展有限公司 | Method and system for updating input method lexicon |
CN108228620A (en) * | 2016-12-14 | 2018-06-29 | 北京搜狗科技发展有限公司 | A kind of Word library updating method and device |
CN108628461A (en) * | 2017-03-16 | 2018-10-09 | 北京搜狗科技发展有限公司 | A kind of input method and device, a kind of method and apparatus of update dictionary |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110727895A (en) * | 2019-10-09 | 2020-01-24 | 北京达佳互联信息技术有限公司 | Sensitive word sending method and device, electronic equipment and storage medium |
CN110750547A (en) * | 2019-10-21 | 2020-02-04 | 中国民航信息网络股份有限公司 | Data acquisition method and device |
CN113704233A (en) * | 2021-10-29 | 2021-11-26 | 飞狐信息技术(天津)有限公司 | Keyword detection method and system |
CN113704233B (en) * | 2021-10-29 | 2022-03-01 | 飞狐信息技术(天津)有限公司 | Keyword detection method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106649783B (en) | Synonym mining method and device | |
US8271499B2 (en) | Incremental maintenance of inverted indexes for approximate string matching | |
Yadav et al. | Ranking of software developers based on expertise score for bug triaging | |
CN109542248A (en) | A kind of control method and control device of incremental update dictionary data | |
Karandikar et al. | On the index of Simon's congruence for piecewise testability | |
CN107967256B (en) | Word weight prediction model generation method, position recommendation method and computing device | |
CN103677664A (en) | On-demand caching method and data processing system | |
EP3961413A1 (en) | Method and device for determining database configuration parameters | |
CN109871311B (en) | Method and device for recommending test cases | |
CN102193993B (en) | Method, device and facility for determining similarity information between character string information | |
Pickhardt et al. | A generalized language model as the combination of skipped n-grams and modified Kneser-Ney smoothing | |
WO2015192798A1 (en) | Topic mining method and device | |
US10043511B2 (en) | Domain terminology expansion by relevancy | |
JP2008158748A (en) | Variable selection device and method, and program | |
Kılınç et al. | Multi‐level reranking approach for bug localization | |
CN111435406A (en) | Method and device for correcting database statement spelling errors | |
US9886498B2 (en) | Title standardization | |
US20160241671A1 (en) | Profile update evaluator | |
CN112835923A (en) | Correlation retrieval method, device and equipment | |
US10296585B2 (en) | Assisted free form decision definition using rules vocabulary | |
CN115186738B (en) | Model training method, device and storage medium | |
JP2019133534A (en) | Merging method, merging device, and merging program | |
US11442650B2 (en) | Generating predicted usage of storage capacity | |
JP6868062B2 (en) | Methods and devices for updating information | |
CN103108012A (en) | Synchronized method and synchronized server for user word bank |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190329 |
|
WW01 | Invention patent application withdrawn after publication |