CN106933382A - Update the method and device of input method dictionary - Google Patents

Update the method and device of input method dictionary Download PDF

Info

Publication number
CN106933382A
CN106933382A CN201710161216.XA CN201710161216A CN106933382A CN 106933382 A CN106933382 A CN 106933382A CN 201710161216 A CN201710161216 A CN 201710161216A CN 106933382 A CN106933382 A CN 106933382A
Authority
CN
China
Prior art keywords
field
word
chinese character
compound word
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710161216.XA
Other languages
Chinese (zh)
Inventor
刘鸣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710161216.XA priority Critical patent/CN106933382A/en
Publication of CN106933382A publication Critical patent/CN106933382A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • G06F3/0237Character input methods using prediction or retrieval techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The disclosure is directed to a kind of method and device for updating input method dictionary, belong to input method technique field.The method includes:According to the deletion action signal corresponding to the target word being input into, at least one of delete target word Chinese character obtains reserved field;Wherein, target word includes at least two Chinese characters, and reserved field includes at least one Chinese character;Reserved field and aiming field are spliced, compound word is formed;Wherein, aiming field includes:Before reserved field and first field adjacent with reserved field, and/or, after reserved field and second field adjacent with reserved field;Compound word is added in input method dictionary.The embodiment of the present disclosure causes that the automatic word function of input method application is more perfect, and the vocabulary of input method dictionary is more enriched, and helps to lift input efficiency.

Description

Update the method and device of input method dictionary
Technical field
This disclosure relates to input method technique field, more particularly to a kind of method and device for updating input method dictionary.
Background technology
Input method application (referred to as " input method ") is based on various symbols (including numeral, letter, word etc.) are input into The application program of calculation machine or miscellaneous equipment (such as mobile phone).Vocabulary in input method dictionary determines that input method application can be provided Candidate word quantity.In actual applications, it is necessary to be updated to input method dictionary, to increase its vocabulary.
When user need input one existing words sequence in input method dictionary when, input method application can according to The coded sequence of family input directly displays above-mentioned words sequence in candidate word;When user needs input one in input method dictionary In do not have words sequence when, input method application needs user word for word to be selected, and then obtains complete words sequence.Example Such as, it is assumed that stored words sequence " party " but not storage words sequence " poly- gorgeous " in input method dictionary.When user needs During input " party ", input coding sequence " juhui ", input method application is wrapped during the candidate word for obtaining is searched from input method dictionary Include " party ".When user needs input " poly- gorgeous ", input coding sequence " juxuan ", due to not having in input method dictionary " poly- gorgeous " word, user needs to select " poly- " and " gorgeous " respectively from candidate word at twice.
In the related art, input method is applied after detecting user and a certain word is input into by way of word for word selecting, If the word is not stored in input method dictionary, be added to the word in input method dictionary by input method application, defeated to increase Enter the vocabulary in method dictionary, need not word for word be selected again during causing subsequent user to be input into the word again.For example, user is for the first time Need word for word to select during input " poly- gorgeous ", after input method application " will gather gorgeous " added to input method dictionary, user is defeated again Can be directly inputted when entering " poly- gorgeous ".
The content of the invention
The embodiment of the present disclosure provides a kind of method and device for updating input method dictionary.The technical scheme is as follows:
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of method of renewal input method dictionary, methods described bag Include:
According to the deletion action signal corresponding to the target word being input into, at least one of described target word is deleted Chinese character, obtains reserved field;Wherein, the target word includes at least two Chinese characters, and the reserved field includes at least one Chinese character;
The reserved field and aiming field are spliced, compound word is formed;Wherein, the aiming field includes:Positioned at institute Before stating reserved field and first field adjacent with the reserved field, and/or, after the reserved field and with institute State the second adjacent field of reserved field;First field includes at least one Chinese character, and first field is a Chinese Word or a word or a word delete the remaining Chinese character after at least one Chinese character;Second field includes at least one Chinese Word, and second field is that a Chinese character or a word or a word delete the remaining Chinese character after at least one Chinese character;
The compound word is added in input method dictionary.
Alternatively, the aiming field includes first field, and the compound word is the first compound word;
It is described to splice the reserved field and aiming field, compound word is formed, including:
First field and the reserved field are spliced, first compound word is formed;Wherein, first synthesis Last Chinese character of first field described in word is connected with first Chinese character of the reserved field.
Alternatively, the aiming field includes second field, and the compound word is the second compound word;
It is described to splice the reserved field and aiming field, compound word is formed, including:
The reserved field and second field are spliced, second compound word is formed;Wherein, second synthesis Last Chinese character of reserved field described in word is connected with first Chinese character of second field.
Alternatively, the aiming field includes first field and second field, and the compound word is the 3rd conjunction Into word;
It is described to splice the reserved field and aiming field, compound word is formed, including:
First field, the reserved field and second field are sequentially spliced, the 3rd compound word is formed; Wherein, first Chinese character phase of last Chinese character of the first field described in the 3rd compound word and the reserved field Even, last Chinese character of the reserved field is connected with first Chinese character of second field.
Alternatively, methods described also includes:
The first word is input into, first word is first field;
Or,
It is input into the first word;According to the deletion action signal corresponding to first word, in deletion first word At least one Chinese character, obtain first field;
Or,
The first Chinese character is input into, first Chinese character is first field.
Alternatively, methods described also includes:
The second word is input into, second word is second field;
Or,
It is input into the second word;According to the deletion action signal corresponding to second word, in deletion second word At least one Chinese character, obtain second field;
Or,
The second Chinese character is input into, second Chinese character is second field.
Alternatively, methods described also includes:
Update the corresponding input number of times of the compound word;
When the corresponding input number of times of the compound word reaches preset times, perform it is described by the compound word added to defeated Enter the step in method dictionary.
Alternatively, methods described also includes:
More than or equal to 1 and in the case of the not enough preset times, detected defeated in the corresponding input number of times of the compound word Whether include the compound word in the words sequence for entering;
If the words sequence includes the compound word, the corresponding input number of times of the compound word is updated.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of device of renewal input method dictionary, described device bag Include:
Chinese character removing module, is configured as, according to the deletion action signal for corresponding to the target word being input into, deleting institute At least one of target word Chinese character is stated, reserved field is obtained;Wherein, the target word includes at least two Chinese characters, institute Stating reserved field includes at least one Chinese character;
Compound word forms module, is configured as splicing the reserved field and aiming field, forms compound word;Wherein, The aiming field includes:Before the reserved field and first field adjacent with the reserved field, and/or, position After the reserved field and second field adjacent with the reserved field;First field includes at least one Chinese Word, and first field is that a Chinese character or a word or a word delete the remaining Chinese character after at least one Chinese character; Second field includes at least one Chinese character, and second field is that a Chinese character or a word or a word are deleted Remaining Chinese character after at least one Chinese character;
Word library updating module, is configured as being added to the compound word in input method dictionary.
Alternatively, the aiming field includes first field, and the compound word is the first compound word;
The compound word forms module, is configured as splicing first field and the reserved field, forms described First compound word;Wherein, last Chinese character of the first field described in first compound word and the of the reserved field One Chinese character is connected.
Alternatively, the aiming field includes second field, and the compound word is the second compound word;
The compound word forms module, is configured as splicing the reserved field and second field, forms described Second compound word;Wherein, last Chinese character of reserved field described in second compound word and the of second field One Chinese character is connected.
Alternatively, the aiming field includes first field and second field, and the compound word is the 3rd conjunction Into word;
The compound word forms module, is configured as first field, the reserved field and second field Sequentially splice, form the 3rd compound word;Wherein, last Chinese character of the first field described in the 3rd compound word with First Chinese character of the reserved field is connected, first of last Chinese character of the reserved field and second field Chinese character is connected.
Alternatively, described device also includes:
First acquisition module, is configured as:The first word is input into, first word is first field;Or, it is defeated Enter the first word;According to the deletion action signal corresponding to first word, at least one of described first word is deleted Chinese character, obtains first field;Or, the first Chinese character is input into, first Chinese character is first field.
Alternatively, described device also includes:
Second acquisition module, is configured as:The second word is input into, second word is second field;Or, it is defeated Enter the second word;According to the deletion action signal corresponding to second word, at least one of described second word is deleted Chinese character, obtains second field;Or, the second Chinese character is input into, second Chinese character is second field.
Alternatively, described device also includes:
Number of times update module, is configured as updating the corresponding input number of times of the compound word;
The Word library updating module, is additionally configured to when the corresponding input number of times of the compound word reaches preset times, Perform described by the compound word added to the step in input method dictionary.
Alternatively, described device also includes:
Compound word detection module, is configured as more than or equal to 1 and not enough described in the corresponding input number of times of the compound word In the case of preset times, whether the compound word is included in the words sequence of detection input;
The number of times update module, is additionally configured in the case where the words sequence includes the compound word, more The corresponding input number of times of the new compound word.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of device of renewal input method dictionary, described device bag Include:
Processor;
Memory for storing the executable instruction of the processor;
Wherein, the processor is configured as:
According to the deletion action signal corresponding to the target word being input into, at least one of described target word is deleted Chinese character, obtains reserved field;Wherein, the target word includes at least two Chinese characters, and the reserved field includes at least one Chinese character;
The reserved field and aiming field are spliced, compound word is formed;Wherein, the aiming field includes:Positioned at institute Before stating reserved field and first field adjacent with the reserved field, and/or, after the reserved field and with institute State the second adjacent field of reserved field;First field includes at least one Chinese character, and first field is a Chinese Word or a word or a word delete the remaining Chinese character after at least one Chinese character;Second field includes at least one Chinese Word, and second field is that a Chinese character or a word or a word delete the remaining Chinese character after at least one Chinese character;
The compound word is added in input method dictionary.
The technical scheme that the embodiment of the present disclosure is provided can include the following benefits:
The reserved field obtained after by the part Chinese character in delete target word is spliced to form synthesis with aiming field Word, and compound word is added in input method dictionary;Solve the automatic word work(that input method application in correlation technique is provided Can be not perfect enough, cause the vocabulary of input method dictionary not comprehensive enough, influence the technical problem of user input efficiency;It is right to realize The words sequence being input into by the way of deletion Chinese character after group word is learned word automatically, is more added so as to obtain and learn automatically word function Kind, the vocabulary of input method dictionary is more enriched, and lifts input efficiency.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the disclosure Example, and it is used to explain the principle of the disclosure together with specification.
Fig. 1 is a kind of flow chart of the method for the renewal input method dictionary according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of the method for the renewal input method dictionary according to another exemplary embodiment;
Fig. 3 is a kind of block diagram of the device of the renewal input method dictionary according to an exemplary embodiment;
Fig. 4 is a kind of block diagram of the device of the renewal input method dictionary according to another exemplary embodiment;
Fig. 5 is a kind of block diagram of the device according to an exemplary embodiment.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in implementation method do not represent all implementation methods consistent with the disclosure.Conversely, they be only with it is such as appended The example of the consistent apparatus and method of some aspects described in detail in claims, the disclosure.
In the related art, although input method application is there is provided the words being input into by way of word for word selecting for user Sequence is learned the function of word automatically, but its automatic word function is still not perfect enough.When user need input name, make certainly In the input method dictionaries such as word, emerging vocabulary and during non-existent words sequence, in order to be input into conveniently, the fiber crops that reduction is word for word selected Tired, for each Chinese character in the words sequence of required input, user is generally first input into one and includes the conventional of the Chinese character Word (everyday expressions exist in input method dictionary), then deletes other Chinese characters in the everyday expressions, leaves That Chinese character of required input.For example, when user needs input " poly- gorgeous ", can first be input into " party ", " meeting " word is deleted, so " gorgeous " is input into afterwards, " beautiful " word, final remaining " poly- gorgeous " two words is deleted.For above-mentioned situation, because user does not select word for word It is input into, therefore " poly- gorgeous " can't be added in input method dictionary by the automatic word function of input method application, after causing user Still need using by the way of word for word selecting or by the way of Chinese character is deleted after group word when continuing input again " poly- gorgeous ", operate Complex, input efficiency is relatively low.
Based on this, the embodiment of the present disclosure provides a kind of method for updating input method dictionary, and the dress based on this method Put, to solve problem present in correlation technique.The technical scheme that the embodiment of the present disclosure is provided, can realize to above-mentioned use group The words sequence that is input into of mode that Chinese character is deleted after word is learned word automatically so that more perfect, input of learning word function automatically The vocabulary of method dictionary is more enriched, and lifts input efficiency.
The method that the embodiment of the present disclosure is provided, the executive agent of each step can be terminal.For example, mobile phone, panel computer, E-book reader, multimedia play equipment, PDA (Personal Digital Assistant, personal digital assistant), can wear Wear the terminals such as equipment, computer.Alternatively, the executive agent that installation and operation has input method application, each step in terminal can be Input method application, the input method application possesses Chinese input function.For the purpose of simplifying the description, in following each method embodiments, remove Outside special instruction, only it is illustrated by input method application of the executive agent of each step, but does not constitute restriction to this.
Fig. 1 is a kind of flow chart of the method for the renewal input method dictionary according to an exemplary embodiment.The method Following several steps can be included:
In a step 101, according to the deletion action signal corresponding to the target word being input into, in delete target word At least one Chinese character, obtains reserved field.
Target word includes at least two Chinese characters, and reserved field includes at least one Chinese character.
Target word is stored word in input method dictionary.Input method dictionary is used to preserve input method application institute energy Each candidate's words for providing.Wherein, the word for being preserved in input method dictionary can be frequency of usage word higher, it is also possible to It is the word of the input habit for meeting user, can also be that meeting Chinese uses regular word, etc..
When target word is input into, input method application gets the corresponding coded sequence of target word of user input to user Afterwards, user directly is supplied to using target word as candidate word, it is straight in the candidate word that user can provide from input method application Connect and choose target word.So that target word is " party " as an example, after user input coded sequence " juhui ", input method should Include " party ", " huge favour ", " poly- to converge " etc. with the candidate word for providing.
Alternatively, deletion action signal is being received corresponding to the triggering letter for realizing the control for deleting function by terminal device Generated after number, above-mentioned control can be entity control, or virtual control.Exemplarily, realize deleting the control of function It is the enter key or delete key in keyboard.
The quantity of deletion action signal can be one, can be multiple.
When the quantity of deletion action signal is one, input method application is first obtained corresponding to the Chinese character in target word Selection signal, then obtains deletion action signal and above-mentioned Chinese character is deleted.Exemplarily, target word is " jingle ", Input method application obtains the selection signal for corresponding to " smoothly ", then by obtaining a deletion action signal, while to " suitable Two Chinese characters of mouth " are deleted.
When the quantity of deletion action signal is for multiple, input method application is according to multiple deletion action signals to target word In Chinese character deleted successively.Exemplarily, target word is " jingle ", and input method application first deletes behaviour according to first Make signal to delete " mouth ", " suitable " is deleted further according to second deletion action signal.
Reserved field refers to the remaining Chinese character after deleting the part Chinese character in target word.Exemplarily, target Word is " with reference to ", and the reserved field that input method application is obtained after deleting the part Chinese character in target word is " knot ", Target word is " jingle ", and the reserved field that input method application is obtained after deleting the part Chinese character in target word is " slipping ".
Alternatively, whether only has a Chinese character in input method application detection reserved field;If it is, performing following step 102;If it is not, then not performing following step 102, terminate flow.Through the above way, input method application only for user by certain The situation that one word deletes a remaining Chinese character triggers the automatic word function of the present embodiment offer, and for user by a certain word The situation that language deletes remaining multiple Chinese character does not trigger the automatic word function that the present embodiment is provided.
In a step 102, reserved field and aiming field are spliced, forms compound word.
Aiming field includes:Before reserved field and first field adjacent with reserved field, and/or, positioned at guarantor After section of writeeing down characters and second field adjacent with reserved field.First field includes at least one Chinese character, and the first field is one Individual Chinese character or a word or a word delete the remaining Chinese character after at least one Chinese character.Second field includes at least one Chinese Word, and the second field is that a Chinese character or a word or a word delete the remaining Chinese character after at least one Chinese character.
Below, several possible implementation of combining target field, the mode to forming compound word is introduced explanation.
In the first possible implementation, aiming field includes the first field, and compound word is the first compound word.Input The first field and reserved field are spliced in method application, form the first compound word.Wherein, in the first compound word the first field it is last One Chinese character is connected with first Chinese character of reserved field.
For example, user sequentially inputs " Kimura " and " developing " two words, input method application is according to deletion action signal pair "ON" in target word " developing " is deleted, and obtains reserved field " opening up ".Before reserved field and and reserved field Adjacent word " Kimura " is the first field.The first field " Kimura " and reserved field " opening up " are spliced in input method application, are formed First compound word " Kimura opens up ".
Alternatively, the formation of the first field includes following several ways.
1st, input method application is input into the first word, and above-mentioned first word is the first field.Wherein, the first word is in reserved word It is before section and adjacent with reserved field.Exemplarily, user sequentially inputs " party " and " gorgeous " two words, wherein, to mesh " beautiful " word in mark word " gorgeous " delete and obtains reserved field " gorgeous ", before reserved field and adjacent with reserved field First word " party " is confirmed as the first field, input method application by " gorgeous " splicing of the first field " party " and reserved field, Form the first compound word " party is gorgeous ".
2nd, input method application is input into the first word;According to the deletion action signal corresponding to the first word, the first word is deleted At least one of language Chinese character, obtains the first field.That is, input method application is deleted the part Chinese character in the first word The remaining Chinese character for obtaining afterwards is confirmed as the first field, wherein, the first word is before reserved field and adjacent with reserved field. Exemplarily, user sequentially inputs " party " and " gorgeous " two words, wherein, " beautiful " word in target word " gorgeous " is entered Row deletion obtains reserved field " gorgeous ", and remaining Chinese character " poly- " quilt for obtaining delete to " meeting " word in the first word " party " It is defined as the first field, " gorgeous " splicing of the first field " poly- " and reserved field is formed the first compound word " poly- by input method application It is gorgeous ".
Alternatively, whether only has a Chinese character in remaining first field after input method application detection is deleted;If it is, Reserved field and the first field are spliced, compound word is formed;If it is not, then not performing the step of being spliced to form compound word, terminate Flow.
3rd, input method application is input into the first Chinese character, and above-mentioned first Chinese character is the first field.Wherein, the first Chinese character is in reserved word It is before section and adjacent with reserved field.Exemplarily, user sequentially inputs " poly- " and " gorgeous ", wherein, it is " gorgeous to target word It is beautiful " in " beautiful " word delete and obtain reserved field " gorgeous ", before reserved field and first Chinese adjacent with reserved field Word " poly- " is confirmed as the first field, and " gorgeous " splicing of the first field " poly- " and reserved field is formed first and closed by input method application Into word " poly- gorgeous ".
In second possible implementation, aiming field includes the second field, and compound word is the second compound word.Input Reserved field and the second field are spliced in method application, form the second compound word.Wherein, in the second compound word reserved field it is last One Chinese character is connected with first Chinese character of the second field.
For example, user sequentially inputs " water " and " field " two words, input method application is according to deletion action signal pair " water " in target word " water " is deleted, and obtains reserved field " pond ", after reserved field and and reserved field Adjacent word " field " is the second field.Reserved field " pond " and the second field " field " are spliced in input method application, are formed Second compound word " Ikeda is wild ".
Alternatively, the formation of the second field includes following several ways.
1st, input method application is input into the second word, and above-mentioned second word is the second field.Wherein, the second word is in reserved word It is after section and adjacent with reserved field.Exemplarily, user sequentially inputs " party " and " gorgeous " two words, wherein, to mesh " meeting " word in mark word " party " delete and obtains reserved field " poly- ", after reserved field and adjacent with reserved field The second word " gorgeous " be confirmed as the second field, input method application is spelled reserved field " poly- " and the second field are " gorgeous " Connect, form the second compound word " poly- gorgeous ".
2nd, input method application is input into the second word, according to the deletion action signal corresponding to the second word, deletes the second word At least one of language Chinese character, obtains the second field.That is, input method application is deleted the part Chinese character in the second word The remaining Chinese character for obtaining afterwards is confirmed as the second field, wherein, the second word is after reserved field and adjacent with reserved field. Exemplarily, user sequentially inputs " party " and " gorgeous " two words, wherein, " meeting " word in target word " party " is entered Row deletion obtains reserved field " poly- ", and remaining Chinese character " gorgeous " quilt for obtaining delete to " beautiful " word in the second word " gorgeous " It is defined as the second field, " gorgeous " splicing of reserved field " poly- " and the second field is formed the second compound word " poly- by input method application It is gorgeous ".
Alternatively, whether only has a Chinese character in remaining second field after input method application detection is deleted;If it is, Reserved field and the second field are spliced, compound word is formed;If it is not, then not performing the step of being spliced to form compound word, terminate Flow.
3rd, input method application is input into the second Chinese character, and above-mentioned second Chinese character is the second field.Wherein, the second Chinese character is in reserved word It is before section and adjacent with reserved field.Exemplarily, user sequentially inputs " party " and " gorgeous ", wherein, it is " poly- to target word " meeting " word in meeting " delete and obtains reserved field " poly- ", after reserved field and second Chinese adjacent with reserved field Word " gorgeous " is confirmed as the second field, and " gorgeous " splicing of reserved field " poly- " and the second field is formed second and closed by input method application Into word " poly- gorgeous ".
In the third possible implementation, aiming field includes the first field and the second field, and compound word is the 3rd Compound word.The first field, reserved field and the second field are sequentially spliced in input method application, form the 3rd compound word.Wherein, Last Chinese character of the first field is connected with first Chinese character of reserved field in three compound words, reserved field last Chinese character is connected with first Chinese character of the second field.
For example, user sequentially inputs " clear water ", " beauty " and " expensive ", input method application is according to deletion action signal to target " beautiful " in word " beauty " is deleted, and obtains reserved field " U.S. ", adjacent with reserved field and before reserved field " clear water " is confirmed as the first field, adjacent with reserved field and after reserved field " expensive " is confirmed as the second field. The first field " clear water ", reserved field " U.S. " and the second field " expensive " are sequentially spliced in input method application, form the 3rd compound word " clear water U.S. is expensive ".
Generation type about the first field and the second field sees above introduction explanation, and here is omitted.
In actual applications, during input method application can form above-mentioned first compound word, the second compound word, the 3rd compound word At least one.
In step 103, compound word is added in input method dictionary.
Be added to compound word in input method dictionary by input method application, to realize the renewal to input method dictionary.
Alternatively, be added to compound word in the input method dictionary of local input method dictionary and server by input method application Former or all two kinds.Wherein, above-mentioned server is the corresponding background server of input method application.
Input method application by compound word added to server input method dictionary when, other users be input into compound word when, Input method dictionary also can be supplied to above-mentioned user using compound word as candidate word, and then improve the input efficiency of other users.
Alternatively, after step 103, also comprise the following steps:Obtain the corresponding coded sequence of compound word;From input method Searched in dictionary and obtain at least one candidate word corresponding with above-mentioned coded sequence, above-mentioned at least one candidate word includes synthesis Word;Show the candidate word for obtaining.
By taking spelling input method as an example, coded sequence can be the corresponding complete Pinyin of compound word, can be in compound word The first letter of pinyin of other Chinese characters in one complete Pinyin and compound word of Chinese character, can also be each Chinese character in compound word First letter of pinyin, etc..Exemplarily, for compound word " poly- virtue ", its corresponding coded sequence can be " jufang ", can be with It is " juf ", can also be " jf ", etc..
In sum, the method that the embodiment of the present disclosure is provided, obtains after by the part Chinese character in delete target word Reserved field and aiming field be spliced to form compound word, and by compound word added in input method dictionary;Solve related skill The automatic word function that input method application is provided in art is not perfect enough, causes the vocabulary of input method dictionary not comprehensive enough, shadow Ring the technical problem of user input efficiency;Realize is carried out certainly to the words sequence being input into by the way of deletion Chinese character after group word Dynamic to learn word, so that obtaining, word function automatically is more perfect, the vocabulary of input method dictionary is more enriched, and lifts input efficiency.
In an optional embodiment provided based on embodiment illustrated in fig. 1, before refer to Fig. 2, step 103, also May include steps of.
At step 104, the corresponding input number of times of compound word is updated.
For any one compound word, input method is applied after the compound word is formed each time, by the compound word Corresponding input number of times increases by 1.By taking compound word " poly- gorgeous " as an example, input method apply first time formed the compound word " poly- gorgeous " it Afterwards, the corresponding input number of times of compound word " poly- gorgeous " is updated to 1 by 0;Input method is applied for the second time to form the compound word " poly- It is gorgeous " after, the corresponding input number of times of compound word " poly- gorgeous " is updated to 2 by 1, by that analogy.Wherein, synthesize for some For word, the mode of each formation compound word can be with identical, it is also possible to different.
In step 105, whether the corresponding input number of times of detection compound word exceedes preset times.If so, then performing step 103;If it is not, then terminating flow.
Preset times are the requirement setting to the frequency of usage of word according to input method dictionary.Wherein, input method dictionary Can be the input method dictionary of terminal local, or the input method dictionary of server.
The input method dictionary of terminal local is only that a station terminal provides candidate word, therefore its frequency of usage requirement to word Can be with relatively low.For example, the update condition of the input method dictionary for terminal local, its preset times is set as 3 times.Server Input method dictionary provides candidate word for all terminals, therefore its frequency of usage requirement to word can be higher.For example, for clothes The update condition of the input method dictionary of business device, its preset times are set as 100 times.
Alternatively, it is more than or equal to 1 and not enough pre- in the corresponding input number of times of compound word for any one compound word If in the case of number of times, whether the compound word is included in the words sequence of input method application detection input;If being wrapped in words sequence The compound word is included, then updates the corresponding input number of times of the compound word.
In the corresponding input number of times of compound word more than or equal to 1 and in the case of not enough preset times, no matter compound word is used Which kind of mode is input into or is formed, as long as applied when input method being detected including the compound word in the words sequence of user input When, input number of times corresponding to the compound word is updated.For example, what input method application was provided according to embodiment illustrated in fig. 1 Method forms compound word, or input method application obtains the compound word using the input of word for word input mode, or input method application Obtain using copy mode input to compound word, etc..
In sum, the method that the embodiment of the present disclosure is provided, also detects by the corresponding input number of times of compound word, In the case where the corresponding input number of times of compound word exceedes preset times, compound word is added in input method dictionary, it is right to realize The relatively low compound word of frequency of usage is screened, it is to avoid the relatively low compound word of frequency of usage is added in input method dictionary.
Below, explanation is introduced to the technical scheme that the disclosure is provided by several examples.
In a first aspect, in the case where aiming field includes the first field, input method application generation compound word includes as follows Several examples.
In first example, comprise the following steps:
1st, it is input into the first word;
2nd, according to the deletion action signal for corresponding to the first word, at least one of the first word Chinese character is deleted, is obtained First field;
3rd, it is input into target word;
4th, according to the deletion action signal for corresponding to target word, at least one of delete target word Chinese character is obtained Reserved field;
5th, the first field and reserved field are spliced, forms compound word;
6th, compound word is added in input method dictionary.
It is before above-mentioned first word is located at target word and adjacent with target word.
For example, the word of user input first " foundation " deletes " state " word afterwards obtains the first field " building ", user input target Word " fragrance " deletes " virtue " word and obtains reserved field " sweet smell " afterwards, and input method application is by the first field " building " and reserved field " sweet smell " Compound word " building sweet smell " is spliced to form, and compound word " building sweet smell " is added in input method dictionary.
In addition, for the execution sequencing of above-mentioned steps 1 to 4, the present embodiment is not construed as limiting.For example, above-mentioned steps 1 to 4 execution sequencing can be followed successively by:1st, 2,3,4, or 1,3,2,4, or 1,3,4,2, or 3,4,1,2, or 3, 1st, 2,4, or 3,1,4,2.
In second example, comprise the following steps:
1st, it is input into the first Chinese character;
2nd, it is input into target word;
3rd, according to the deletion action signal for corresponding to target word, at least one of delete target word Chinese character is obtained Reserved field;
4th, the first Chinese character and reserved field are spliced, forms compound word;
5th, compound word is added in input method dictionary.
It is before above-mentioned first Chinese character is located at target word and adjacent with target word.
For example, the Chinese character of user input first " building ", user input target word " fragrance " is deleted " virtue " word and is retained afterwards First Chinese character " building " and reserved field " sweet smell " are spliced to form compound word " building sweet smell " by field " sweet smell ", input method application, and will synthesis Word " building sweet smell " is added in input method dictionary.
In addition, for the execution sequencing of above-mentioned steps 1 to 3, the present embodiment is not construed as limiting.For example, above-mentioned steps 1 to 3 execution sequencing can be followed successively by:1st, 2,3, or 2,1,3, or 2,3,1.
In the 3rd example, comprise the following steps:
1st, it is input into the first word;
2nd, it is input into target word;
3rd, according to the deletion action signal for corresponding to target word, at least one of delete target word Chinese character is obtained Reserved field;
4th, the first word and reserved field are spliced, forms compound word;
5th, compound word is added in input method dictionary.
It is before above-mentioned first word is located at target word and adjacent with target word.
For example, the word of user input first " Honda ", user input target word " optimal " is deleted " most " word and is protected afterwards First word " Honda " and reserved field " good " are spliced to form compound word " Honda is good " by section of writeeing down characters " good ", input method application, and Compound word " Honda is good " is added in input method dictionary.
In addition, for the execution sequencing of above-mentioned steps 1 to 3, the present embodiment is not construed as limiting.For example, above-mentioned steps 1 to 3 execution sequencing can be followed successively by:1st, 2,3, or 2,1,3, or 2,3,1.
Alternatively, in the examples described above, for front and rear input operation twice, input method application can be front and rear defeated twice to this Enter to operate the time interval of corresponding operating time to be detected, if the time interval is less than preset duration, perform splicing shape The step of into compound word, if the time interval is more than preset duration, do not perform the step of being spliced to form compound word.Wherein, often The input operation corresponding operating time can be initial time, or the end of the input operation of the input operation Time.Through the above way, for be spaced it is more long before and after input operation twice, even if deleting word operation, also do not carry out a group word, The situation for helping to reduce group word by mistake occurs.
Second aspect, in the case where aiming field includes the second field, input method application generation compound word includes as follows Several examples.
In first example, comprise the following steps:
1st, it is input into target word;
2nd, according to the deletion action signal for corresponding to target word, at least one of delete target word Chinese character is obtained Reserved field;
3rd, it is input into the second word;
4th, according to the deletion action signal for corresponding to the second word, at least one of the second word Chinese character is deleted, is obtained Second field;
5th, reserved field and the second field are spliced, forms compound word;
6th, compound word is added in input method dictionary.
Above-mentioned second word is located at after target word, and adjacent with target word.
For example, user input target word " Danyang " deletes " sun " word afterwards obtains reserved field " pellet ", user input second Word " slim and graceful " deletes " booth is slim and graceful " and obtains the second field " booth " afterwards, and input method application is by reserved field " pellet " and the second word Section " booth " is spliced to form compound word " Dan Ting ", and compound word " Dan Ting " is added in input method dictionary.
In addition, for the execution sequencing of above-mentioned steps 1 to 4, the present embodiment is not construed as limiting.For example, above-mentioned steps 1 to 4 execution sequencing can be followed successively by:1st, 2,3,4, or 1,3,2,4, or 1,3,4,2, or 3,4,1,2, or 3, 1st, 2,4, or 3,1,4,2.
In second example, comprise the following steps:
1st, it is input into target word;
2nd, according to the deletion action signal for corresponding to target word, at least one of delete target word Chinese character is obtained Reserved field;
3rd, it is input into the second Chinese character;
4th, reserved field and the second Chinese character are spliced, forms compound word;
5th, compound word is added in input method dictionary.
Above-mentioned second Chinese character is located at after target word, and adjacent with target word.
For example, user input target word " Changping " deletes " flat " word afterwards obtains reserved field " prosperous ", user input second Chinese character " is built ", and reserved field " prosperous " and the second Chinese character " building " are spliced to form compound word " prosperous to build " by input method application, and will synthesis Word is " prosperous to build " to be added in input method dictionary.
In addition, for the execution sequencing of above-mentioned steps 1 to 3, the present embodiment is not construed as limiting.For example, above-mentioned steps 1 to 3 execution sequencing can be followed successively by:1st, 2,3, or 3,1,2, or 1,3,2.
In the 3rd example, comprise the following steps:
1st, it is input into target word;
2nd, according to the deletion action signal for corresponding to target word, at least one of delete target word Chinese character is obtained Reserved field;
3rd, it is input into the second word;
4th, reserved field and the second word are spliced, forms compound word;
5th, compound word is added in input method dictionary.
Above-mentioned second word is located at after target word, and adjacent with target word.
For example, user input target word " handkerchief " deletes " hand " word afterwards obtains reserved field " handkerchief ", user input second Reserved field " handkerchief " and the second word " Si Tan " are spliced to form compound word " Paasche is smooth " by word " Si Tan ", input method application, and Compound word " Paasche is smooth " is added in input method dictionary.
In addition, for the execution sequencing of above-mentioned steps 1 to 3, the present embodiment is not construed as limiting.For example, above-mentioned steps 1 to 3 execution sequencing can be followed successively by:1st, 2,3, or 1,3,2, or 3,1,2.
Alternatively, in the examples described above, for front and rear input operation twice, input method application can be front and rear defeated twice to this Enter to operate the time interval of corresponding operating time to be detected, if the time interval is less than preset duration, perform splicing shape The step of into compound word, if the time interval is more than preset duration, do not perform the step of being spliced to form compound word.Wherein, often The input operation corresponding operating time can be initial time, or the end of the input operation of the input operation Time.Through the above way, for be spaced it is more long before and after input operation twice, even if deleting word operation, also do not carry out a group word, The situation for helping to reduce group word by mistake occurs.
The third aspect, in the case where aiming field includes the first field and the second field, input method application generation synthesis Word includes the combination of any example that any example that above-mentioned first aspect is provided is provided with second aspect.Below only with On the one hand as a example by second combination of example that first example for being provided is provided with second aspect, exemplary theory is carried out Bright, other combined situations are repeated no more.Comprise the following steps:
1st, it is input into the first word;
2nd, according to the deletion action signal for corresponding to the first word, at least one of the first word Chinese character is deleted, is obtained First field;
3rd, it is input into target word;
4th, according to the deletion action signal for corresponding to target word, at least one of delete target word Chinese character is obtained Reserved field;
5th, it is input into the second word;
6th, according to the deletion action signal for corresponding to the second word, at least one of the second word Chinese character is deleted, is obtained Second field;
7th, the first field, reserved field and the second field are sequentially spliced, forms compound word;
8th, compound word is added in input method dictionary.
It is before above-mentioned first word is located at target word and adjacent with target word;Above-mentioned second word is located at target word It is after language and adjacent with target word.
For example, the word of user input first " mountain peak " deletes " peak " word afterwards obtains the first field " mountain ", user input target Word " original " deletes " next " word and obtains reserved field " sheet " afterwards, and the word of user input second " bridegroom " is deleted " new " word and obtained afterwards Sequentially be spliced to form for first field " mountain ", reserved field " sheet " and the second field " youth " by the second field " youth ", input method application Compound word " Yamamoto youth ", and compound word " Yamamoto youth " is added in input method dictionary.
In addition, for the execution sequencing of above-mentioned steps 1 to 6, the present embodiment is not construed as limiting.
Following is disclosure device embodiment, can be used for performing method of disclosure embodiment.For disclosure device reality The details not disclosed in example is applied, method of disclosure embodiment is refer to.
Fig. 3 is a kind of block diagram of the device of the renewal input method dictionary according to an exemplary embodiment.The device has There is the function of realizing above method example, the function can be realized by hardware, it is also possible to perform corresponding software reality by hardware It is existing.The device can include:Chinese character removing module 301, compound word forms module 302 and Word library updating module 303.
Chinese character removing module 301, is configured as, according to the deletion action signal for corresponding to the target word being input into, deleting At least one of target word Chinese character, obtains reserved field.Wherein, the target word includes at least two Chinese characters, The reserved field includes at least one Chinese character.
Compound word forms module 302, is configured as splicing the reserved field and aiming field, forms compound word.Its In, the aiming field includes:Before the reserved field and first field adjacent with the reserved field, and/or, After the reserved field and second field adjacent with the reserved field.First field includes at least one Chinese Word, and first field is that a Chinese character or a word or a word delete the remaining Chinese character after at least one Chinese character. Second field includes at least one Chinese character, and second field is that a Chinese character or a word or a word are deleted Remaining Chinese character after at least one Chinese character.
Word library updating module 303, is configured as being added to the compound word in input method dictionary.
In sum, the device that the embodiment of the present disclosure is provided, obtains after by the part Chinese character in delete target word Reserved field and aiming field be spliced to form compound word, and by compound word added in input method dictionary;Solve related skill The automatic word function that input method application is provided in art is not perfect enough, causes the vocabulary of input method dictionary not comprehensive enough, shadow Ring the technical problem of user input efficiency;Realize is carried out certainly to the words sequence being input into by the way of deletion Chinese character after group word Dynamic to learn word, so that obtaining, word function automatically is more perfect, the vocabulary of input method dictionary is more enriched, and lifts input efficiency.
In an optional embodiment provided based on Fig. 3 embodiments, the aiming field includes first field, The compound word is the first compound word.The compound word forms module 302, is configured as first field and the reservation Field is spliced, and forms first compound word.Wherein, last Chinese character of the first field described in first compound word with First Chinese character of the reserved field is connected.
In another optional embodiment provided based on Fig. 3 embodiments, the aiming field includes second word Section, the compound word is the second compound word.The compound word forms module 302, is configured as the reserved field and described Second field is spliced, and forms second compound word.Wherein, last Chinese of reserved field described in second compound word Word is connected with first Chinese character of second field.
In another optional embodiment provided based on Fig. 3 embodiments, the aiming field includes first word Section and second field, the compound word are the 3rd compound word.The compound word forms module 302, and being configured as will be described First field, the reserved field and second field are sequentially spliced, and form the 3rd compound word.Wherein, the described 3rd Last Chinese character of first field described in compound word is connected with first Chinese character of the reserved field, the reserved field Last Chinese character be connected with first Chinese character of second field.
In another optional embodiment provided based on Fig. 3 embodiments, Fig. 4 is refer to, described device also includes:The One acquisition module 304.
First acquisition module 304, is configured as:The first word is input into, first word is first field;Or Person, is input into the first word;According to the deletion action signal corresponding to first word, delete in first word at least One Chinese character, obtains first field;Or, the first Chinese character is input into, first Chinese character is first field.
In another optional embodiment provided based on Fig. 3 embodiments, Fig. 4 is refer to, described device also includes:The Two acquisition modules 305.
Second acquisition module 305, is configured as input to the second word, and second word is second field;Or, It is input into the second word;According to the deletion action signal corresponding to second word, in deletion second word at least one Individual Chinese character, obtains second field;Or, the second Chinese character is input into, second Chinese character is second field.
In another optional embodiment provided based on Fig. 3 embodiments, Fig. 4 is refer to, described device also includes:It is secondary Number update module 306.
Number of times update module 306, is configured as updating the corresponding input number of times of the compound word.
The Word library updating module 303, is additionally configured to reach preset times when the corresponding input number of times of the compound word When, perform described by the compound word added to the step in input method dictionary.
In another optional embodiment provided based on Fig. 3 embodiments, Fig. 4 is refer to, described device also includes:Close Into word detection module 307.
Compound word detection module 307, is configured as being more than or equal to 1 and not enough institute in the corresponding input number of times of the compound word In the case of stating preset times, whether the compound word is included in the words sequence of detection input.
The number of times update module 306, is additionally configured in the case where the words sequence includes the compound word, Update the corresponding input number of times of the compound word.
It should be noted is that, above-described embodiment provide device when its function is realized, only with above-mentioned each function The division of module is carried out for example, in practical application, according to actual needs can distribute by different work(above-mentioned functions Can module complete, will the content structure of equipment be divided into different functional modules, to complete whole described above or portion Divide function.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant the method Embodiment in be described in detail, explanation will be not set forth in detail herein.
The exemplary embodiment of the disclosure one additionally provides a kind of device for updating input method dictionary, can realize disclosure reality The method that example offer is provided.The device includes:Processor, and for storing the memory of the executable instruction of processor.Wherein, The processor is configured as:
According to the deletion action signal corresponding to the target word being input into, at least one of described target word is deleted Chinese character, obtains reserved field;Wherein, the target word includes at least two Chinese characters, and the reserved field includes at least one Chinese character;
The reserved field and aiming field are spliced, compound word is formed;Wherein, the aiming field includes:Positioned at institute Before stating reserved field and first field adjacent with the reserved field, and/or, after the reserved field and with institute State the second adjacent field of reserved field;First field includes at least one Chinese character, and first field is a Chinese Word or a word or a word delete the remaining Chinese character after at least one Chinese character;Second field includes at least one Chinese Word, and second field is that a Chinese character or a word or a word delete the remaining Chinese character after at least one Chinese character;
The compound word is added in input method dictionary.
Alternatively, the aiming field includes first field, and the compound word is the first compound word;The treatment Device, is configured as:
First field and the reserved field are spliced, first compound word is formed;Wherein, first synthesis Last Chinese character of first field described in word is connected with first Chinese character of the reserved field.
Alternatively, the aiming field includes second field, and the compound word is the second compound word;The treatment Device, is configured as:
The reserved field and second field are spliced, second compound word is formed;Wherein, second synthesis Last Chinese character of reserved field described in word is connected with first Chinese character of second field.
Alternatively, the aiming field includes first field and second field, and the compound word is the 3rd conjunction Into word;The processor, is configured as:
First field, the reserved field and second field are sequentially spliced, the 3rd compound word is formed; Wherein, first Chinese character phase of last Chinese character of the first field described in the 3rd compound word and the reserved field Even, last Chinese character of the reserved field is connected with first Chinese character of second field.
Alternatively, the processor is additionally configured to:
The first word is input into, first word is first field;
Or,
It is input into the first word;According to the deletion action signal corresponding to first word, in deletion first word At least one Chinese character, obtain first field;
Or,
The first Chinese character is input into, first Chinese character is first field.
Alternatively, the processor is additionally configured to:
The second word is input into, second word is second field;
Or,
It is input into the second word;According to the deletion action signal corresponding to second word, in deletion second word At least one Chinese character, obtain second field;
Or,
The second Chinese character is input into, second Chinese character is second field.
Alternatively, the processor is additionally configured to:
Update the corresponding input number of times of the compound word;
When the corresponding input number of times of the compound word reaches preset times, perform it is described by the compound word added to defeated Enter the step in method dictionary.
Alternatively, the processor is additionally configured to:
More than or equal to 1 and in the case of the not enough preset times, detected defeated in the corresponding input number of times of the compound word Whether include the compound word in the words sequence for entering;
In the case where the words sequence includes the compound word, the corresponding input number of times of the compound word is updated.
Fig. 5 is a kind of block diagram of the device 500 according to 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, computer etc..
Reference picture 5, device 500 can include following one or more assemblies:Processing assembly 502, memory 504, power supply Component 506, multimedia groupware 508, audio-frequency assembly 510, input/output (I/O) interface 512, sensor cluster 514, Yi Jitong Letter component 516.
The integrated operation of the usual control device 500 of processing assembly 502, such as with display, call, data communication, phase Machine is operated and the associated operation of record operation.Processing assembly 502 can refer to including one or more processors 520 to perform Order, to complete all or part of step of above-mentioned method.Additionally, processing assembly 502 can include one or more modules, just Interaction between processing assembly 502 and other assemblies.For example, processing assembly 502 can include multi-media module, it is many to facilitate Interaction between media component 508 and processing assembly 502.
Memory 504 is configured as storing various types of data supporting the operation in device 500.These data are shown Example includes the instruction for any application program or method for operating on device 500, and contact data, 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 Close and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) is erasable to compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (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 the component that electric power is associated with for device 500.
Multimedia groupware 508 is included in one screen of 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 the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detection and the touch or slide related duration and pressure.In certain embodiments, many matchmakers Body component 508 includes a front camera and/or rear camera.When device 500 be in operator scheme, such as screening-mode or During video mode, front camera and/or rear camera can receive outside multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or with focusing and optical zoom capabilities.
Audio-frequency assembly 510 is configured as output and/or input audio signal.For example, audio-frequency assembly 510 includes a Mike Wind (MIC), when device 500 is in operator scheme, such as call model, logging mode and speech recognition mode, microphone is matched somebody with somebody It is set to reception external audio signal.The audio signal for being received can be further stored in memory 504 or via communication set Part 516 sends.In certain embodiments, audio-frequency assembly 510 also includes a loudspeaker, for exports audio signal.
, to provide interface between processing assembly 502 and peripheral interface module, above-mentioned peripheral interface module can for I/O interfaces 512 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 cluster 514 includes one or more sensors, and the state for providing various aspects for device 500 is commented Estimate.For example, sensor cluster 514 can detect the opening/closed mode of device 500, the relative positioning of component is for example described Component is the display and keypad of device 500, and sensor cluster 514 can be with 500 1 components of detection means 500 or device Position change, user is presence or absence of with what device 500 was contacted, the orientation of device 500 or acceleration/deceleration and device 500 Temperature change.Sensor cluster 514 can include proximity transducer, be configured to be detected when without any physical contact The presence of neighbouring object.Sensor cluster 514 can also include optical sensor, such as CMOS or ccd image sensor, for into As being used in application.In certain embodiments, the sensor cluster 514 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 Wi-Fi, 2G or 3G, or combinations thereof.In an exemplary reality Apply in example, communication component 516 receives broadcast singal or the related letter of broadcast from external broadcasting management system via broadcast channel Breath.In one exemplary embodiment, the communication component 516 also includes near-field communication (NFC) module, to promote short distance to lead to Letter.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) can be based in NFC module Technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 500 can be by one or more application specific integrated circuits (ASIC), numeral letter Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components realization, 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-mentioned 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 treatment of device 500 When device is performed so that device 500 is able to carry out the above method.
It should be appreciated that referenced herein " multiple " refers to two or more."and/or", description association The incidence relation of object, expression there may be three kinds of relations, for example, A and/or B, can represent:Individualism A, while there is A And B, individualism B these three situations.Character "/" typicallys represent forward-backward correlation pair as if a kind of relation of "or".
Those skilled in the art will readily occur to its of the disclosure after considering specification and putting into practice invention disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following Claim is pointed out.
It should be appreciated that the disclosure is not limited to the precision architecture for being described above and being shown in the drawings, and And can without departing from the scope carry out various modifications and changes.The scope of the present disclosure is only limited by appended claim.

Claims (13)

1. it is a kind of update input method dictionary method, it is characterised in that methods described includes:
According to the deletion action signal corresponding to the target word being input into, at least one of the target word Chinese is deleted Word, obtains reserved field;Wherein, the target word includes at least two Chinese characters, and the reserved field includes at least one Chinese Word;
The reserved field and aiming field are spliced, compound word is formed;Wherein, the aiming field includes:Positioned at the guarantor Before section of writeeing down characters and first field adjacent with the reserved field, and/or, after the reserved field and with the guarantor The second adjacent field of section of writeeing down characters;First field include at least one Chinese character, and first field be a Chinese character or One word or a word delete the remaining Chinese character after at least one Chinese character;Second field includes at least one Chinese character, And second field is that a Chinese character or a word or a word delete the remaining Chinese character after at least one Chinese character;
The compound word is added in input method dictionary.
2. method according to claim 1, it is characterised in that the aiming field includes first field, the conjunction It is the first compound word into word;
It is described to splice the reserved field and aiming field, compound word is formed, including:
First field and the reserved field are spliced, first compound word is formed;
Wherein, first Chinese character of last Chinese character of the first field described in first compound word and the reserved field It is connected.
3. method according to claim 1, it is characterised in that the aiming field includes second field, the conjunction It is the second compound word into word;
It is described to splice the reserved field and aiming field, compound word is formed, including:
The reserved field and second field are spliced, second compound word is formed;
Wherein, first Chinese character of last Chinese character of reserved field described in second compound word and second field It is connected.
4. method according to claim 1, it is characterised in that the aiming field includes first field and described the Two fields, the compound word is the 3rd compound word;
It is described to splice the reserved field and aiming field, compound word is formed, including:
First field, the reserved field and second field are sequentially spliced, the 3rd compound word is formed;
Wherein, first Chinese character of last Chinese character of the first field described in the 3rd compound word and the reserved field It is connected, last Chinese character of the reserved field is connected with first Chinese character of second field.
5. the method according to any one of Claims 1-4, it is characterised in that methods described also includes:
Update the corresponding input number of times of the compound word;
When the corresponding input number of times of the compound word reaches preset times, perform described by the compound word added to input method Step in dictionary.
6. method according to claim 5, it is characterised in that methods described also includes:
In the corresponding input number of times of the compound word more than or equal to 1 and in the case of the not enough preset times, detection input Whether include the compound word in words sequence;
If the words sequence includes the compound word, the corresponding input number of times of the compound word is updated.
7. it is a kind of update input method dictionary device, it is characterised in that described device includes:
Chinese character removing module, is configured as, according to the deletion action signal for corresponding to the target word being input into, deleting the mesh At least one of mark word Chinese character, obtains reserved field;Wherein, the target word includes at least two Chinese characters, the guarantor Section of writeeing down characters includes at least one Chinese character;
Compound word forms module, is configured as splicing the reserved field and aiming field, forms compound word;Wherein, it is described Aiming field includes:Before the reserved field and first field adjacent with the reserved field, and/or, positioned at institute State after reserved field and second field adjacent with the reserved field;First field includes at least one Chinese character, and First field is that a Chinese character or a word or a word delete the remaining Chinese character after at least one Chinese character;Described Two fields include at least one Chinese character, and second field is that a Chinese character or a word or a word delete at least one Remaining Chinese character after individual Chinese character;
Word library updating module, is configured as being added to the compound word in input method dictionary.
8. device according to claim 7, it is characterised in that the aiming field includes first field, the conjunction It is the first compound word into word;
The compound word forms module, is configured as splicing first field and the reserved field, forms described first Compound word;
Wherein, first Chinese character of last Chinese character of the first field described in first compound word and the reserved field It is connected.
9. device according to claim 7, it is characterised in that the aiming field includes second field, the conjunction It is the second compound word into word;
The compound word forms module, is configured as splicing the reserved field and second field, forms described second Compound word;
Wherein, first Chinese character of last Chinese character of reserved field described in second compound word and second field It is connected.
10. device according to claim 7, it is characterised in that the aiming field includes first field and described Second field, the compound word is the 3rd compound word;
The compound word forms module, is configured as first field, the reserved field and second field sequentially Splicing, forms the 3rd compound word;
Wherein, first Chinese character of last Chinese character of the first field described in the 3rd compound word and the reserved field It is connected, last Chinese character of the reserved field is connected with first Chinese character of second field.
11. device according to any one of claim 7 to 10, it is characterised in that described device also includes:
Number of times update module, is configured as updating the corresponding input number of times of the compound word;
The Word library updating module, is additionally configured to, when the corresponding input number of times of the compound word reaches preset times, perform The step compound word being added in input method dictionary.
12. devices according to claim 11, it is characterised in that described device also includes:
Compound word detection module, is configured as more than or equal to 1 and not enough described default in the corresponding input number of times of the compound word In the case of number of times, whether the compound word is included in the words sequence of detection input;
The number of times update module, is additionally configured to, in the case where the words sequence includes the compound word, update institute State the corresponding input number of times of compound word.
13. a kind of devices for updating input method dictionary, it is characterised in that described device includes:
Processor;
Memory for storing the executable instruction of the processor;
Wherein, the processor is configured as:
According to the deletion action signal corresponding to the target word being input into, at least one of the target word Chinese is deleted Word, obtains reserved field;Wherein, the target word includes at least two Chinese characters, and the reserved field includes at least one Chinese Word;
The reserved field and aiming field are spliced, compound word is formed;Wherein, the aiming field includes:Positioned at the guarantor Before section of writeeing down characters and first field adjacent with the reserved field, and/or, after the reserved field and with the guarantor The second adjacent field of section of writeeing down characters;First field include at least one Chinese character, and first field be a Chinese character or One word or a word delete the remaining Chinese character after at least one Chinese character;Second field includes at least one Chinese character, And second field is that a Chinese character or a word or a word delete the remaining Chinese character after at least one Chinese character;
The compound word is added in input method dictionary.
CN201710161216.XA 2017-03-17 2017-03-17 Update the method and device of input method dictionary Pending CN106933382A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710161216.XA CN106933382A (en) 2017-03-17 2017-03-17 Update the method and device of input method dictionary

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710161216.XA CN106933382A (en) 2017-03-17 2017-03-17 Update the method and device of input method dictionary

Publications (1)

Publication Number Publication Date
CN106933382A true CN106933382A (en) 2017-07-07

Family

ID=59432496

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710161216.XA Pending CN106933382A (en) 2017-03-17 2017-03-17 Update the method and device of input method dictionary

Country Status (1)

Country Link
CN (1) CN106933382A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112558784A (en) * 2020-11-20 2021-03-26 维沃移动通信有限公司 Method and device for inputting characters and electronic equipment

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1490701A (en) * 2002-10-15 2004-04-21 英业达股份有限公司 Inputting method system with dynamic adjustable lexicon and method thereof
CN101067766A (en) * 2006-12-22 2007-11-07 腾讯科技(深圳)有限公司 Method for cancelling character string in inputting method and word inputting system
CN101154134A (en) * 2006-09-26 2008-04-02 腾讯科技(深圳)有限公司 Method and apparatus for adjusting order of candidate words in Chinese input method
CN101615204A (en) * 2009-07-24 2009-12-30 中兴通讯股份有限公司 Add method, device and the Chinese character input device of custom words in the input method dictionary
CN102236422A (en) * 2010-04-27 2011-11-09 北京搜狗科技发展有限公司 Input method through stroke code and input method system
CN102750007A (en) * 2012-06-12 2012-10-24 上海量明科技发展有限公司 Method and client for establishing personality character repertoire
CN103365905A (en) * 2012-04-06 2013-10-23 腾讯科技(深圳)有限公司 Method and device for correcting word bank data of input method
CN103389800A (en) * 2012-05-11 2013-11-13 北京百度网讯科技有限公司 Entry generating method and device
CN103455163A (en) * 2012-06-04 2013-12-18 联想(北京)有限公司 Method and electronic equipment for inputting characters
CN104461056A (en) * 2014-12-22 2015-03-25 联想(北京)有限公司 Information processing method and electronic equipment
CN104731766A (en) * 2013-12-20 2015-06-24 淘宝(中国)软件有限公司 Alphabetic writing lexicon establishing method, alphabetic writing lexicon establishing device, inputting method and inputting system
CN105373236A (en) * 2015-10-09 2016-03-02 北京搜狗科技发展有限公司 Entry learning method and apparatus
CN106445177A (en) * 2015-08-06 2017-02-22 阿尔派株式会社 Character input device and character input method

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1490701A (en) * 2002-10-15 2004-04-21 英业达股份有限公司 Inputting method system with dynamic adjustable lexicon and method thereof
CN101154134A (en) * 2006-09-26 2008-04-02 腾讯科技(深圳)有限公司 Method and apparatus for adjusting order of candidate words in Chinese input method
CN101067766A (en) * 2006-12-22 2007-11-07 腾讯科技(深圳)有限公司 Method for cancelling character string in inputting method and word inputting system
CN101615204A (en) * 2009-07-24 2009-12-30 中兴通讯股份有限公司 Add method, device and the Chinese character input device of custom words in the input method dictionary
CN102236422A (en) * 2010-04-27 2011-11-09 北京搜狗科技发展有限公司 Input method through stroke code and input method system
CN103365905A (en) * 2012-04-06 2013-10-23 腾讯科技(深圳)有限公司 Method and device for correcting word bank data of input method
CN103389800A (en) * 2012-05-11 2013-11-13 北京百度网讯科技有限公司 Entry generating method and device
CN103455163A (en) * 2012-06-04 2013-12-18 联想(北京)有限公司 Method and electronic equipment for inputting characters
CN102750007A (en) * 2012-06-12 2012-10-24 上海量明科技发展有限公司 Method and client for establishing personality character repertoire
CN104731766A (en) * 2013-12-20 2015-06-24 淘宝(中国)软件有限公司 Alphabetic writing lexicon establishing method, alphabetic writing lexicon establishing device, inputting method and inputting system
CN104461056A (en) * 2014-12-22 2015-03-25 联想(北京)有限公司 Information processing method and electronic equipment
CN106445177A (en) * 2015-08-06 2017-02-22 阿尔派株式会社 Character input device and character input method
CN105373236A (en) * 2015-10-09 2016-03-02 北京搜狗科技发展有限公司 Entry learning method and apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112558784A (en) * 2020-11-20 2021-03-26 维沃移动通信有限公司 Method and device for inputting characters and electronic equipment
WO2022105754A1 (en) * 2020-11-20 2022-05-27 维沃移动通信有限公司 Character input method and apparatus, and electronic device

Similar Documents

Publication Publication Date Title
CN106024009B (en) Audio processing method and device
CN105162693B (en) message display method and device
CN108762839A (en) The interface display method and device of application program
KR20170035350A (en) Method, device and terminal device for changing emoticon in chat interface
CN107832036A (en) Sound control method, device and computer-readable recording medium
CN105224601B (en) A kind of method and apparatus of extracting time information
CN106202150A (en) Method for information display and device
CN108038102A (en) Recommendation method, apparatus, terminal and the storage medium of facial expression image
CN105975156A (en) Application interface display method and device
CN107832746A (en) Expression recognition method and device
CN107229411A (en) Control the method and device of split screen state
CN109685041B (en) Image analysis method and device, electronic equipment and storage medium
CN109358785A (en) Theme method for previewing and device
CN106888309A (en) The fingerprint recognition reminding method and device of video terminal
CN108833952A (en) The advertisement placement method and device of video
CN104407788B (en) Image-erasing method and device
CN105589575B (en) Input method call method and device
CN109358788A (en) Interface display method, device and terminal
CN103970831B (en) Recommend the method and apparatus of icon
CN113359980A (en) Control method and device of multimedia equipment, electronic equipment and storage medium
CN105119815B (en) The method and device of music is realized in instant communication interface
CN108182002A (en) Layout method, device, equipment and the storage medium of enter key
CN106933382A (en) Update the method and device of input method dictionary
CN111679746A (en) Input method and device and electronic equipment
CN106936986A (en) Application processing 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170707

RJ01 Rejection of invention patent application after publication