CN103488796B - Based on context the method and mobile terminal inputted - Google Patents

Based on context the method and mobile terminal inputted Download PDF

Info

Publication number
CN103488796B
CN103488796B CN201310476299.3A CN201310476299A CN103488796B CN 103488796 B CN103488796 B CN 103488796B CN 201310476299 A CN201310476299 A CN 201310476299A CN 103488796 B CN103488796 B CN 103488796B
Authority
CN
China
Prior art keywords
vocabulary
dictionary
current sessions
type
session information
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.)
Expired - Fee Related
Application number
CN201310476299.3A
Other languages
Chinese (zh)
Other versions
CN103488796A (en
Inventor
杨志兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weihai Ailaifu Semiconductor Technology Co ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201310476299.3A priority Critical patent/CN103488796B/en
Publication of CN103488796A publication Critical patent/CN103488796A/en
Application granted granted Critical
Publication of CN103488796B publication Critical patent/CN103488796B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/24Querying
    • G06F16/248Presentation of query results
    • 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/24Querying
    • G06F16/245Query processing
    • G06F16/2457Query processing with adaptation to user needs
    • G06F16/24575Query processing with adaptation to user needs using context

Abstract

The method and mobile terminal based on context inputted this application discloses one kind.Described method includes following steps: obtaining the session information of current sessions type;Parse vocabulary included in session information of the session information of current sessions type to obtain current sessions type;Included vocabulary is counted in the session information, and by vocabulary sequence included in the session information preceding, with the dictionary after being sorted;Dictionary association after the current sessions type and sequence is stored in local.Above scheme, dictionary and current sessions type association can be got up, to make user when using different conversation types, respectively using the dictionary for binding this conversation type, the degree of correlation for improving candidate vocabulary and key character shown when input key character, to improve user's input efficiency.

Description

Based on context the method and mobile terminal inputted
Technical field
This application involves field of communication technology, the method based on context inputted more particularly to one kind and mobile terminal.
Background technique
With the diversification of smart phone function and popularizing for 3G network, people are interacted using mobile terminal Scene is also more and more, such as QQ, wechat, short message, MSN more or less use input method in such applications, because This, user increasingly pays close attention to the input efficiency of input method, and important component of the vocabulary in input method as input method, directly It connects and affects input efficiency.The prior art adds the methods of vocabulary by online upgrading dictionary, manually to enrich dictionary, to give User provides more vocabulary and selects for user, to improve input efficiency.Input method vocabulary is abundanter, when input can list for The vocabulary of family selection is more, and still, dictionary is bigger, so that meeting, user's vocabulary currently entered is more and more, and user needs More and more times select the vocabulary wanted in lexicon, affect user's input efficiency.For example, being closed when user inputs When key characters " sx ", input method is at once by candidate vocabulary: user's choosing is recommended in " first ", " realization ", " camera shooting ", " going to school " etc. It selects, still, user is practical, and think input is place " Shanxi ", since there are many vocabulary that input method is listed, " Shanxi " this vocabulary It can just find below very much.
In traditional input method, under same input mode, to all application scenarios (for example, navigation equipment Inputting contact information in middle input address, phone directory inputs Apply Names, newly-built or replied mail etc. in software market) all User is led to by enumerating all vocabulary for meeting active user's input to user using identical input processing mode No matter under which kind of input application scenarios, requires searched from more vocabulary to find required vocabulary, influence The input efficiency of user.
Summary of the invention
The application, can mainly solving the technical problems that provide a kind of method based on context inputted and mobile terminal Dictionary and current sessions type association are got up, to make user when using different conversation types, respectively originally using binding The dictionary of conversation type improves the degree of correlation of candidate vocabulary and key character shown when input key character, to improve User's input efficiency.
In order to solve the above technical problems, one technical scheme adopted by the invention is that: one kind is provided and is based on context inputted Method, described method includes following steps: obtaining the session information of current sessions type, wherein the conversation type includes The application message of session and the user information under the application message;The session information of current sessions type is parsed to obtain Included vocabulary in the session information of current sessions type;Vocabulary included in the session information is counted, and will be described The sequence of included vocabulary is preceding in session information, with the dictionary after being sorted;By the current sessions type and sequence Dictionary association afterwards is stored in local, so that user reuses the session of the current sessions type and inputs key character When, according to sequence of the candidate vocabulary in the dictionary after the sequence with the current sessions type association, preferentially to sequence preceding Candidate vocabulary carry out input and show.
Included by wherein, parsing in session information of the session information of current sessions type to obtain current sessions type The step of vocabulary includes: the text information obtained in the session information;Every text information is sequentially parsed sentence by sentence, with Obtain vocabulary included in the text information;Record the vocabulary obtained after parsing.
Wherein, the frequency of occurrences of the vocabulary is counted, and is ranked up according to the frequency of occurrences of the vocabulary to be arranged The step of dictionary after sequence includes: the frequency of occurrences of the vocabulary after statistics parsing;According to the frequency of occurrences of the vocabulary from It is high to Low to be ranked up;The vocabulary is stored in dictionary by the sequence of the frequency of occurrences, with the dictionary after being sorted.
Wherein, before the step of obtaining the session information of current sessions type further include: judge whether it is and use for the first time The session of current sessions type;If it is, calling default dictionary and preferentially to the preceding candidate word that sorts in default dictionary Remittance carries out input and shows;If it is not, then calling the dictionary after sequence and preferentially to the preceding time that sorts in the dictionary after sequence It selects vocabulary to carry out input to show.
Wherein, the step of vocabulary included in counting the session information specifically includes: counting the session information In included vocabulary, and vocabulary included in the session information is sorted preceding;It counts and is wrapped in the session information The frequency of occurrences of the vocabulary included, and by the preceding vocabulary of sequence included in the session information, according to the session information In the frequency of occurrences of included vocabulary be ranked up, with the dictionary after being sorted.
In order to solve the above technical problems, another technical solution used in the present invention is: a kind of mobile terminal is provided, it is described Mobile terminal includes: to obtain module, vocabulary parsing module, dictionary management module, input method module;The acquisition module is for obtaining Take the session information of current sessions type, wherein the conversation type includes the application message of session and believes in the application User information under breath, the acquisition module is by the session information of the current sessions type and conversation type to the vocabulary solution Module is analysed to send;The vocabulary parsing module is used to receive the session information of the current sessions type and conversation type, according to The session information of the current sessions type and current sessions type, it is current to obtain to parse the session information of current sessions type Included vocabulary in the session information of conversation type, the vocabulary parsing module will be after the current sessions types and parsing Vocabulary is sent to the dictionary management module;After the dictionary management module is for receiving the current sessions type and parsing Vocabulary, according to vocabulary included in session information described in the glossary statistic after the parsing, and by institute in the session information Including vocabulary sequence preceding, with the dictionary after being sorted, the dictionary management module is by the current sessions type and row Dictionary after sequence is sent to the input method module;After the input method module is for receiving the current sessions type and sequence Dictionary, according to the current sessions type and sequence after dictionary by the current sessions type and sequence after dictionary close UNPROFOR exists locally, when reusing the session of the current sessions type for user and input key character, according to candidate Sequence of the vocabulary in the dictionary after the sequence with the current sessions type association, preferentially to sort preceding candidate vocabulary into Row input display.
Wherein, the vocabulary parsing module is used to obtain the text information of the session information, according to the text information Every text information is sequentially parsed sentence by sentence, to obtain in the text information included vocabulary, and after recording parsing The obtained vocabulary.
Wherein, the vocabulary parsing module is used to count the frequency of occurrences of the vocabulary after parsing, according to the vocabulary The frequency of occurrences be ranked up from high to low, and the vocabulary after sequence is preferentially come in dictionary, after being sorted Dictionary.
Wherein, the mobile terminal also further includes judgment module, and the judgment module makes for the first time for judging whether it is With the session of current sessions type;When the judgment module judging result, which is, is, the input method module is also used to call silent Recognize dictionary and input preferentially is carried out to the preceding candidate vocabulary that sorts in default dictionary and shows;When the judgment module judges to tie When fruit is no, the input method module is also used to call the dictionary after sorting and preferentially to sequence in the dictionary after sequence preceding Candidate vocabulary carry out input and show;The judgment module sends judging result to the input method module.
Wherein, the vocabulary parsing module is used to count in the session information included vocabulary, and by the session Included vocabulary sorts preceding in information;The vocabulary parsing module is also used to count word included in the session information The frequency of occurrences of remittance, and by the preceding vocabulary of sequence included in the session information, it is wrapped according in the session information The frequency of occurrences of the vocabulary included is ranked up, with the dictionary after being sorted.
The beneficial effects of the present invention are: being in contrast to the prior art, the present invention is by obtaining and parsing current sessions The session information of type and current sessions type, wherein conversation type includes the application message of session and in the application User information under information, so that vocabulary included in the session information of current sessions type is obtained, after it will parse The sequence of included vocabulary is preceding in the session information, and is ranked up according to the frequency of occurrences of the vocabulary, obtains Dictionary after sequence, by by current sessions type and sequence after dictionary association be stored in local, can by dictionary with work as Preceding conversation type associates, to make user when using different conversation types, uses bind this conversation type respectively Dictionary, improves the degree of correlation of candidate vocabulary and key character shown when input key character, so that improving user inputs effect Rate.
Detailed description of the invention
Fig. 1 is based on context one embodiment flow chart of method that the application inputs;
Fig. 2 is based on context another embodiment flow chart of method that the application inputs;
Fig. 3 is one embodiment structure schematic diagram of the application mobile terminal;
Fig. 4 is another embodiment structure schematic diagram of the application mobile terminal.
Specific embodiment
It is described with reference to the accompanying drawing with specific embodiment.
Refering to fig. 1, Fig. 1 is the application based on context one embodiment flow chart of input method.In present embodiment, root According to context input method the following steps are included:
Step S101: the session information of current sessions type is obtained.Wherein, conversation type include the application message of session with And the user information under application message.
When receiving the session information of current sessions type, obtain current application message mark in systems and The mark of user information in systems under current application information determines current sessions type, and is obtained according to current sessions classification Take the session information of current sessions type.For example, current sessions are believed in application if the application message of current sessions is " MSN " The lower user information of breath is " contact person Jack ", then current sessions type are as follows: in MSN with the session of contact person Jack;If worked as The application message of preceding session is " QQ ", and user information of the current sessions under application message is " contact person Frank ", then current meeting Call type are as follows: in QQ with the session of contact person Frank.
Step S102: the session information of parsing current sessions type.
The text information in the session information of current sessions type is obtained, and sequentially parses every text envelope sentence by sentence Breath to obtain vocabulary included in text information, and records obtained vocabulary after parsing.
Specifically, since the first character of first text information, sequentially character resolution first one by one Included character in text information, and so on, until last sentence in the session information for having parsed current sessions type Included character in text information.
Second character of first character and the arrangement that successively connects is obtained, first by searching for default corresponding to input method Whether by the identical vocabulary of the vocabulary formed with the two characters in dictionary, to judge whether the two characters are a vocabulary.
If found by the identical vocabulary of the vocabulary formed with the two characters, judge that the two characters are a words It converges, and the vocabulary is labeled as vocabulary included by the session information of current sessions type.
If do not found by the identical vocabulary of the vocabulary formed with the two characters, judge that the two characters are not One vocabulary.And then the third character for the arrangement that connects with the two characters is obtained, and again by searching for corresponding to input method Default dictionary in whether by the identical vocabulary of the vocabulary formed with these three characters, to judge whether these three characters are one Vocabulary.
If found by the identical vocabulary of the vocabulary formed with these three characters, judge that these three characters are a words It converges, and the vocabulary is labeled as vocabulary included by the session information of current sessions type.
If do not found by the identical vocabulary of the vocabulary formed with these three characters, judge that these three characters are not One vocabulary.And then the 4th character of the arrangement that connects with these three characters is obtained, and again by searching for corresponding to input method Default dictionary in whether by the identical vocabulary of the vocabulary formed with this four characters, to judge whether this four characters are one Vocabulary.
If found by the identical vocabulary of the vocabulary formed with this four characters, judge that this four characters are a words It converges, and the vocabulary is labeled as vocabulary included by the session information of current sessions type.
If do not found by the identical vocabulary of the vocabulary formed with this four characters, judge that this four characters are not One vocabulary.
Two characters are included at least in view of the previous Chinese vocabulary of mesh, and include up to 4 characters, so, in this reality Apply in example, if since first character, respectively with rear three characters for the arrangement that successively connects with first character respectively After failure, judge that this four characters are not a vocabulary, and stops the terminology match with the first character, it will be with the first character phase Run in column second character as the first current character, repeat the above steps, until having parsed in first text information Last character.And and so on, until last text envelope in the session information for having parsed current sessions type Included character in breath.
If since first character, respectively with latter two character for the arrangement that successively connects with first character respectively After failure, but with successively connect with it arrangement the 4th character match success when, judge that this four characters are a vocabulary, and Stop the terminology match with the first character.Using with the first character successively connect arrangement second character as the first current word Symbol, repeats the above steps, until having parsed the last character in first text information.And and so on, until parsing Included character in last text information in the session information of complete current sessions type.
Preferably, if since first character, respectively with latter two word for the arrangement that successively connects with first character Symbol is respectively after it fails to match, but with the success of the 4th character match of the arrangement that successively connects, judge that this four characters are a words Converge, and stop with after the terminology match of the first character, using the 5th character of the arrangement that connects with the 4th character as currently First character, repeats the above steps, until in the session information for having parsed current sessions type in first text information most The latter character.It has parsed in the session information of current sessions type after first text information, parsing and first text envelope Cease second text information being sequentially arranged, and and so on, until in the session information for having parsed current sessions type most Included character in latter sentence text information.
Optionally, when the vocabulary included by the session information that vocabulary is labeled as to current sessions type, by the vocabulary The frequency of occurrences adds one, and records obtained vocabulary after parsing.
In other embodiments, a vocabulary also may include 4 characters or more, to form common saying or two-part allegorical saying etc., Specific implementation process is similar with above embodiment, does not repeat herein.
Step S103: counting in the session information included vocabulary, and by word included in the session information Sequence converge preceding.
Since the vocabulary occurred in current sessions can be greatly improved in the probability of subsequent appearance, so after according to parsing Obtained vocabulary, counts vocabulary included in the session information of current sessions type, and by the session of current sessions type Included vocabulary comes the foremost that dictionary is defaulted corresponding to current input method as a whole in information, to obtain Dictionary after sequence.
Optionally, the obtained vocabulary after according to parsing counts included in the session information of current sessions type When vocabulary, the frequency of occurrences of obtained each vocabulary after parsing can also be counted simultaneously.Correspondingly, by current sessions class Included vocabulary comes the foremost that dictionary is defaulted corresponding to current input method as a whole in the session information of type Afterwards, it can also be ranked up again from high to low according to the frequency of occurrences of each vocabulary obtained after parsing, and by these words Remittance is stored in dictionary by the sequence of the frequency of occurrences, thus the dictionary after being sorted.
Step S104: the dictionary association after the current sessions type and sequence is stored in local.
Dictionary association after current sessions type and sequence is stored in local, so that user reuses the conversation class The session of type and when inputting key character, is searched and time corresponding to key character in the dictionary after sequence according to key character Select vocabulary, and according to candidate vocabulary with the sequence in the dictionary after the current associated sequence of conversation type, preferentially to sequence Preceding candidate's vocabulary carries out input and shows, the vocabulary inputted required for therefrom selecting so as to user.
Referring to Fig.2, Fig. 2 is the application based on context another embodiment flow chart of input method.In present embodiment In, based on context input method includes the following steps:
Step S201: input key character is carried out using input method.
Key character is inputted in the session of current sessions type using current input method.
Step S202: judge whether it is the session for using current sessions type for the first time.
In systems according to the user information under the mark and current application information of current application message in systems Mark, determine current sessions type.For example, current sessions are in application message if the application message of current sessions is " MSN " Under user information be " contact person Jack ", then current sessions type are as follows: in MSN with the session of contact person Jack;If current The application message of session is " QQ ", and user information of the current sessions under application message is " contact person Frank ", then current sessions Type are as follows: in QQ with the session of contact person Frank.Since used conversation type can be recorded in local, so can Whether to be recorded according to current sessions type, to judge whether it is the session for using current sessions type for the first time.
The session that current sessions type is used if not first time, thens follow the steps S203.
The session that current sessions type is used if it is first time, thens follow the steps S208.
Step S203: the dictionary after calling sequence.
When the judging result for executing the step S202 is is not to use the session of current sessions type for the first time, the row of calling Dictionary after sequence.
Step S204: the key character of user's input is received.
Receive the key character of user's input.
Step S205: judge whether to find candidate vocabulary corresponding with key character.
After the key character for receiving user's input, the key character inputted according to user is looked into the dictionary after sequence Candidate vocabulary corresponding with key character is looked for, and judges whether to find candidate vocabulary corresponding with key character.
If finding candidate vocabulary corresponding with key character, S206 is thened follow the steps.
If not finding candidate vocabulary corresponding with key character, S208 is thened follow the steps.
Step S206: judge whether user inputs the candidate vocabulary corresponding with key character found.
When finding candidate vocabulary corresponding with key character, judge whether user inputs found and keyword Accord with corresponding candidate vocabulary.
If inputting the candidate vocabulary corresponding with key character found, S207 is thened follow the steps.
If not inputting the candidate vocabulary corresponding with key character found, S209 is thened follow the steps.
Step S207: input preferentially is carried out to the preceding candidate vocabulary that sorts in the dictionary after sequence and is shown.
When user judges to need to input the candidate vocabulary corresponding with key character found, existed according to candidate vocabulary It is aobvious preferentially to carry out input to the preceding candidate vocabulary that sorts for the sequence in the dictionary after sequence with current sessions type association Show, the vocabulary inputted required for therefrom being selected so as to user.
Step S208: default dictionary is called.
When the judging result for executing the step S202 is to use the session of current sessions type for the first time, after calling sequence Dictionary.
When the judging result for executing the step S205 be the key character that is inputted according to user in sequence after dictionary in not When can find candidate vocabulary corresponding with key character, default dictionary is called.
Step S209: input preferentially is carried out to the preceding candidate vocabulary that sorts in default dictionary and is shown.
The key character inputted according to user lookup in default dictionary candidate vocabulary corresponding with key character, and according to Sequence of the candidate vocabulary in default dictionary preferentially carries out input to the preceding candidate vocabulary that sorts and shows.
It is one embodiment structure schematic diagram of the application mobile terminal refering to Fig. 3, Fig. 3.In the present embodiment, mobile whole End includes: to obtain module 310, vocabulary parsing module 320, dictionary management module 330, input method module 340.
Obtain the session information that module 310 is used to obtain current sessions type, wherein conversation type includes the application of session Information and the user information under the application message.
For example, obtaining module 310 when mobile terminal receives the session information of current sessions type and obtaining current answer With the mark of the user information under the mark and current application information of information in systems in systems, current sessions class is determined Type, and according to the session information of current sessions classification acquisition current sessions type.For example, if the application message of current sessions is " MSN ", user information of the current sessions under application message are " contact person Jack ", then current sessions type are as follows: in MSN with connection It is the session of people Jack;If the application message of current sessions is " QQ ", user information of the current sessions under application message is " contact person Frank ", then current sessions type are as follows: in QQ with the session of contact person Frank.Obtain module 310 according in MSN with The session of contact person Jack obtains the session information in MSN with contact person Jack;According to the session in QQ with contact person Frank, Obtain the session information in QQ with contact person Frank.
Module 310 is obtained to send the session information of current sessions type and conversation type to vocabulary parsing module 320.
Vocabulary parsing module 320 is used to receive the session information of current sessions type and conversation type, and according to it is current The session information of conversation type and current sessions type parses the session information of current sessions type to obtain current sessions type Session information in included vocabulary.
For example, vocabulary parsing module 320 obtains the text information in the session information of current sessions type, and by successively suitable Sequence parses every text information sentence by sentence, to obtain vocabulary included in text information, and records obtained word after parsing It converges.
Specifically, vocabulary parsing module 320 is since the first character of first text information, sequentially one by one Included character in first text information of character resolution, and so on, the session until having parsed current sessions type is believed Included character in last text information in breath.
Vocabulary parsing module 320 first obtains second character of first character with the arrangement that successively connects, by searching for defeated Enter corresponding to method in default dictionary whether by the identical vocabulary of the vocabulary formed with the two characters, to judge the two characters It whether is a vocabulary.
If vocabulary parsing module 320 is found by the identical vocabulary of the vocabulary formed with the two characters, this is judged Two characters are a vocabulary, and the vocabulary is labeled as vocabulary included by the session information of current sessions type.
If vocabulary parsing module 320 is not found by the identical vocabulary of the vocabulary formed with the two characters, sentence The two characters that break are not a vocabulary.And then the third character for the arrangement that connects with the two characters is obtained again, and is passed through Whether search in default dictionary corresponding to input method by the identical vocabulary of the vocabulary formed with these three characters, with judge this three Whether a character is a vocabulary.
If vocabulary parsing module 320 is found by the identical vocabulary of the vocabulary formed with these three characters, this is judged Three characters are a vocabulary, and the vocabulary is labeled as vocabulary included by the session information of current sessions type.
If vocabulary parsing module 320 is not found by the identical vocabulary of the vocabulary formed with these three characters, sentence These three characters that break are not a vocabulary.And then the 4th character of the arrangement that connects with these three characters is obtained again, and is passed through Whether search in default dictionary corresponding to input method by the identical vocabulary of the vocabulary formed with this four characters, with judge this four Whether a character is a vocabulary.
If vocabulary parsing module 320 is found by the identical vocabulary of the vocabulary formed with this four characters, this is judged Four characters are a vocabulary, and the vocabulary is labeled as vocabulary included by the session information of current sessions type.
If vocabulary parsing module 320 is not found by the identical vocabulary of the vocabulary formed with this four characters, sentence This four characters that break are not a vocabulary.
Two characters are generally included at least in view of a Chinese vocabulary, and include up to 4 characters, so, in this reality Apply in example, if vocabulary parsing module 320 since first character, respectively and after the arrangement that successively connects with first character Three characters judge that this four characters are not a vocabulary, and stop the terminology match with the first character after it fails to match respectively, It using second character of the arrangement that connects with the first character as the first current character, repeats the above steps, until having parsed the Last character in one text information.And and so on, until in the session information for having parsed current sessions type Included character in last text information.
If vocabulary parsing module 320 since first character, successively connects arrangement with first character respectively Latter two character is respectively after it fails to match, but and successively connect with it the 4th character match success of arrangement when, judge this four Character is a vocabulary, and stops the terminology match with the first character.By second word of the arrangement that successively connects with the first character It accords with as the first current character, repeats the above steps, until having parsed the last character in first text information.And And so on, until character included in last text information in the session information for having parsed current sessions type.
Preferably, if vocabulary parsing module 320 is since first character, successively connect with first character respectively Latter two character of arrangement is respectively after it fails to match, but with the success of the 4th character match of the arrangement that successively connects, judge this four A character is a vocabulary, and after the terminology match of stopping and the first character, by the 5th of the arrangement that connects with the 4th character Character repeats the above steps, as the first current character until first in the session information for having parsed current sessions type Last character in text information.Vocabulary parsing module 320 has parsed in the session information of current sessions type first After text information, second text information that parsing is sequentially arranged with first text information, and and so on, until having parsed Included character in last text information in the session information of current sessions type.
Optionally, vocabulary parsing module 320 is also used to be wrapped in the session information by vocabulary labeled as current sessions type When the vocabulary included, the frequency of occurrences of the vocabulary is added one, and records obtained vocabulary after parsing.
In other embodiments, a vocabulary is also possible to include 4 characters or more, to form common saying or two-part allegorical saying etc., Its specific implementation process is similar with above embodiment, does not repeat herein.
Vocabulary parsing module 320 sends the vocabulary after current sessions type and parsing to dictionary management module 330.
Dictionary management module 330 is used to receive the vocabulary after current sessions type and parsing, is united according to the vocabulary after parsing Vocabulary included in session information is counted, and by vocabulary sequence included in session information preceding, with the word after being sorted Library.
For example, since the vocabulary occurred in current sessions can be greatly improved in the probability of subsequent appearance, so dictionary Management module 330 counts vocabulary included in the session information of current sessions type according to vocabulary obtained after parsing, and Vocabulary included in the session information of current sessions type is come into default corresponding to current input method as a whole The foremost of dictionary, thus the dictionary after being sorted.
Optionally, vocabulary parsing module 320 is also used to the obtained vocabulary after according to parsing, counts current sessions type Session information in included vocabulary when, while counting the frequency of occurrences of obtained each vocabulary after parsing.Correspondingly, Dictionary management module 330 is also used to vocabulary included in the session information of current sessions type in vocabulary parsing module 320 After coming the foremost for defaulting dictionary corresponding to current input method as a whole, according to each word obtained after parsing The frequency of occurrences of remittance is ranked up again from high to low, and these vocabulary are stored in dictionary by the sequence of the frequency of occurrences In, thus the dictionary after being sorted.For example, current sessions are in application message if the application message of current sessions is " MSN " Under user information be " contact person Jack ", then current sessions type are as follows: in MSN with the session of contact person Jack, contact person The session information that Jack is sent are as follows: yesterday, we went to Sha County to travel, and removed the snack for having eaten there;Occurred in current sessions Vocabulary " Sha County ", " snack " can be greatly improved in the probability of subsequent appearance, dictionary management module 330 is by vocabulary " Sha County ", " small Eat " it is made the foremost that an entirety comes default dictionary corresponding to current input method, thus the dictionary after being sorted.
Dictionary management module 330 sends the dictionary after current sessions type and sequence to input method module 340.
Input method module 340 is used to receive the dictionary after current sessions type and sequence, according to current sessions type and row Dictionary association after current sessions type and sequence is stored in local by the dictionary after sequence, so that user reuses current meeting The session of call type and when inputting key character, according to candidate vocabulary in the dictionary after the sequence with current sessions type association Sequence, input preferentially is carried out to the preceding candidate vocabulary that sorts and is shown.
For example, the dictionary association after current sessions type and sequence is stored in local by input method module 340, work as user Current input method is reused when current sessions type conversates, the key that input method module 340 is inputted according to user Character searches candidate vocabulary corresponding with key character by dictionary management module 330 in the dictionary after sequence, and according to time Select vocabulary with the sequence in the dictionary after the current associated sequence of conversation type, preferentially to sort preceding candidate vocabulary into Row input display, the vocabulary inputted required for therefrom being selected so as to user.For example, current conversation type are as follows: in MSN with contact The session of people Jack, the dictionary after sequence are as follows: vocabulary " Sha County ", " snack " preferentially arrange preceding dictionary.Input method module 340 will It is associated in used MSN with the session of contact person Jack with the dictionary after sequence and is maintained at local.When user reuses When current input method conversates in MSN with contact person Jack, key character " sx " is inputted in dialog box, to input vocabulary When " Sha County ", the key character " sx " that input method module 340 is inputted according to user, by dictionary management module 330 with work as Candidate vocabulary corresponding with key character " sx " is searched in dictionary after the corresponding sequence of preceding input method, is being sorted according to candidate vocabulary The sequence in dictionary afterwards, the preferential preceding candidate vocabulary of display sequence: " Sha County ", " realization ", " familiar ", " are taken the photograph " first " Picture ", " going to school " etc., so that user therefrom selects the vocabulary " Sha County " for needing to input.
It is another embodiment structure schematic diagram of the application mobile terminal refering to Fig. 4, Fig. 4.Above embodiment is different from, In the present embodiment, mobile terminal includes: to obtain module 410, vocabulary parsing module 420, dictionary management module 430, input Method module 440, judgment module 450.
Difference with above-described embodiment is:
Input method module 440 is also used to carry out input key character using input method in current sessions type as user When, user interface is provided for user.For example, for example, current sessions exist if the application message of current sessions is " MSN " User information under application message is " contact person Jack ", then current sessions type are as follows: in MSN with the session of contact person Jack. When user carries out input keyword using current input method with the session of contact person Jack in MSN, input method module 440 is User provides the dialog box with the session of contact person Jack.
It obtains module 410 to be also used to when input module 440 provides user interface for user, obtains current sessions class The session information of type, wherein the application message and the user information under application message that conversation type includes session.
For example, obtaining module 410 when user's use is when input module 440 provides user interface for user and obtaining The mark of user information in systems under the mark and current application information of current application message in systems, determination are worked as Preceding conversation type, and according to the session information of current sessions classification acquisition current sessions type.For example, if current sessions are answered It is " MSN " with information, user information of the current sessions under application message is " contact person Jack ", then current sessions type are as follows: In MSN with the session of contact person Jack.When input method module 440 provides for user the dialog box with the session of contact person Jack When.It obtains module 410 and obtains the mark of mark and contact person Jack in systems of MSN in systems, determine current sessions Type, and according to the session information in MSN with the acquisition conversation of contact person Jack and the session of contact person Jack.
Module 410 is obtained to send the session information of current sessions type and conversation type to judgment module 450.
Judgment module 450 is used to receive the session information of current sessions type and conversation type, according to current sessions type With the session information of conversation type, the session for using current sessions type for the first time is judged whether it is.For example, if current sessions Application message be " MSN ", user information of the current sessions under application message is " contact person Jack ", then current sessions type Are as follows: in MSN with the session of contact person Jack;If the application message of current sessions is " QQ ", current sessions are under application message User information be " contact person Frank ", then current sessions type are as follows: in QQ with the session of contact person Frank.Due to having made Used conversation type can be recorded in local, so whether judgment module 450 can be recorded according to current sessions type, To judge whether it is the session for using current sessions type for the first time.
If it is determined that the result that module 450 judges is to be when using the session of current sessions type for the first time, input method mould Block 440 is also used to call default dictionary by dictionary management module 430.
If it is determined that the result that judges of module 450 is is not input method when using the session of current sessions type for the first time Module 440 is also used to call the dictionary after sequence by dictionary management module 430.
Judgment module 450 sends judging result to input method module 440.
Input method module 440 is also used to receive judging result transmitted by judgment module 450, is providing user circle for user When the interface of face, alternative dictionary is called by dictionary management module 430 according to judging result.Wherein, alternative dictionary includes input method Dictionary after corresponding default dictionary, and sequence.
For example, providing user interface in input method module 440 for user, the result of the judgement of judgment module 450 is It is when using the session of current sessions type for the first time, input method module 440 calls default word by dictionary management module 430 Library.
When the result of judgment module 450 judged is is not to use the session of current sessions type for the first time, input method Module 440 calls the dictionary after sequence by dictionary management module 430.
Input method module 440 is also used to receive the key character that user inputs in user interface, and according to user The key character of input searches candidate vocabulary corresponding with key character after sequence in dictionary.For example, when user reuses Current input method in MSN in the dialog box of the session of contact person Jack input key character " sx " when, with input " Sha County " When this vocabulary, input method module 440 receives the key character " sx " that user is inputted, and is adjusted by dictionary management module 430 With the dictionary after sequence, it is right with key character " sx " to be searched in the dictionary after sequence according to the key character " sx " of user's input The candidate vocabulary answered.
Judgment module 450 is also used to judge whether to find candidate vocabulary corresponding with key character.For example, working as user again The secondary dialog box using current input method in MSN with the session of contact person Jack, by inputting key character " sx ", with input When " Sha County " this vocabulary, input method module 404 receives the inputted key character of user " sx ", and is existed according to key character " sx " When searching candidate vocabulary corresponding with key character " sx " in the dictionary after sequence, judgment module 450 judges the word after sequence Whether with key character " sx " corresponding candidate vocabulary " Sha County " is found in library.Judgment module 450 is by judging result to input Method module is sent.
When the result that judgment module 450 judges is has found candidate corresponding with key character in dictionary after sequence When vocabulary, judgment module 450 is also used to judge whether user inputs the candidate vocabulary corresponding with key character found.
When judgment module 450 judges the candidate vocabulary corresponding with key character that user's input has been found, input method Module 440 is also used to the sequence in the dictionary according to candidate vocabulary after sequence, preferentially carries out to the preceding candidate vocabulary that sorts Input display, the vocabulary inputted required for therefrom being selected for user.For example, current conversation type are as follows: in MSN with contact person The session of Jack, the dictionary after sequence are as follows: vocabulary " Sha County ", " snack " preferentially arrange preceding dictionary.Input method module 340 will It is associated in used MSN with the session of contact person Jack with the dictionary after sequence and is maintained at local.Work as when user reuses Preceding input method inputs key character " sx " with the dialog box of the session of contact person Jack in MSN, to input vocabulary " Sha County ", Input method module 440 calls the dictionary after sequence, and the key character " sx " inputted according to user by dictionary management module 430 When searching with key character " sx " corresponding vocabulary, judgment module 450 judges to have found in the dictionary after sequence and key The corresponding candidate vocabulary of character, at this point, input method module 440 is according to candidate vocabulary corresponding with key character " sx " after sequence Sequence in dictionary, the preferential preceding candidate vocabulary of display sequence: " Sha County ", " realization ", " first ", " familiar ", " camera shooting ", " going to school " etc., so that user therefrom selects the vocabulary " Sha County " for needing to input.
When judgment module 450 judges that user does not input the candidate vocabulary corresponding with key character found, input Method module 440 is also used to manage 430 modules by dictionary and calls default dictionary, and the row according to candidate vocabulary in default dictionary Sequence preferentially carries out input to the preceding candidate vocabulary that sorts and shows, the vocabulary inputted required for therefrom selecting for user.
When the result that judgment module 450 judges is does not find time corresponding with key character in dictionary after sequence When selecting vocabulary, input method module 440, which is also used to manage 430 modules by dictionary, calls default dictionary, and is existed according to candidate vocabulary Default the sequence in dictionary, input preferentially is carried out to the preceding candidate vocabulary that sorts and is shown, required for therefrom being selected for user The vocabulary of input.
For example, inputting keyword with the dialog box of contact person Jack in MSN when user reuses current input method It accords with " sx ", when with input " sequence " this vocabulary, due to before in MSN and in the session information of the session of contact person Jack It does not include vocabulary " sequence ", so, the dictionary after key character " sx " that input method module 404 is inputted according to user is in sequence It is middle search it is corresponding with key character " sx " candidate vocabulary when, judgment module 450 judges not search in the dictionary after sequence To candidate vocabulary corresponding with key character.At this point, input method module 440 receives the key character inputted according to user " sx " finds candidate vocabulary corresponding with key character " sx ", according to candidate vocabulary in default dictionary in default dictionary Sequence, the preferential preceding candidate vocabulary of display sequence: " realization ", " first ", " familiar ", " camera shooting ", " going to school ", " sequence " Deng so that user therefrom selects the vocabulary " sequence " for needing to input.
Above scheme, by the session information for obtaining and parsing current sessions type and current sessions type, wherein meeting The application message and the user information under the application message that call type includes session, to obtain current sessions type Included vocabulary in session information, by the sequence of the vocabulary included by the session information after parse preceding, and And be ranked up according to the frequency of occurrences of the vocabulary, the dictionary after being sorted, by by current sessions type and sequence Dictionary association afterwards is stored in local, and dictionary and current sessions type association can get up, to make user using different Conversation type when, respectively using the dictionary for binding this conversation type, shown candidate vocabulary when improving input key character With the degree of correlation of key character, to improve user's input efficiency.
In above description, for illustration and not for limitation, propose such as specific system structure, interface, technology it The detail of class, so as to provide a thorough understanding of the present application.However, it will be clear to one skilled in the art that there is no these specific The application also may be implemented in the other embodiment of details.In other situations, omit to well-known device, circuit with And the detailed description of method, so as not to obscure the description of the present application with unnecessary details.

Claims (6)

1. based on context method that one kind inputs, which is characterized in that described method includes following steps:
Obtain the session information of current sessions type, wherein the conversation type includes the application message of session and described User information under application message;
The session information for parsing current sessions type, successively by character included in the session information of the current sessions type It is compared with the vocabulary in default dictionary corresponding to current input method, institute in the session information to obtain current sessions type Including vocabulary;
Vocabulary included in the session information is counted, and vocabulary included in the session information of current sessions type is made The foremost that dictionary is defaulted corresponding to current input method is come, for an entirety with the dictionary after being sorted;
Dictionary association after the current sessions type and sequence is stored in local, for user reuse it is described current The session of conversation type and when inputting key character, according to candidate vocabulary after the sequence with the current sessions type association Sequence in dictionary preferentially carries out input to the preceding candidate vocabulary that sorts and shows;
Wherein, the vocabulary for counting included in the session information further includes the frequency of occurrences for counting the vocabulary, and according to institute The frequency of occurrences that predicate converges is ranked up with the dictionary after being sorted, and step includes:
Vocabulary after statistics parsing included in the session information is sorted preceding;
Then, the frequency of occurrences of the vocabulary after statistics parsing;
It is ranked up from high to low according to the frequency of occurrences of the vocabulary, with the dictionary after being sorted.
2. the method according to claim 1, wherein the session information of parsing current sessions type is current to obtain The step of included vocabulary, includes: in the session information of conversation type
Obtain the text information in the session information;
Every text information is parsed, sentence by sentence sequentially to obtain vocabulary included in the text information;
Record the vocabulary obtained after parsing.
3. the method according to claim 1, wherein before the step of obtaining the session information of current sessions type Further include:
Judge whether it is the session for using current sessions type for the first time;
It is shown if it is, calling default dictionary and preferentially carrying out input to the preceding candidate vocabulary that sorts in default dictionary;
If it is not, then calling the dictionary after sequence and preferentially being carried out to the preceding candidate vocabulary that sorts in the dictionary after sequence defeated Enter display.
4. a kind of mobile terminal, which is characterized in that the mobile terminal includes: to obtain module, vocabulary parsing module, dictionary management Module, input method module;
The session information for obtaining module and being used to obtain current sessions type, wherein the conversation type includes answering for session With information and the user information under the application message, the acquisition module is by the current sessions type and conversation type Session information sent to the vocabulary parsing module;
The vocabulary parsing module is used to receive the session information of the current sessions type and conversation type, according to described current The session information of conversation type and current sessions type parses the session information of current sessions type, by the current sessions class Included character is successively compared with the vocabulary in default dictionary corresponding to current input method in the session information of type, with Obtain vocabulary included in the session information of current sessions type, the vocabulary parsing module by the current sessions type and Vocabulary after parsing is sent to the dictionary management module;
The dictionary management module is used to receive the vocabulary after the current sessions type and parsing, according to the word after the parsing Converge the vocabulary for counting included in the session information, and using vocabulary included in the session information of current sessions type as One entirety comes the foremost that dictionary is defaulted corresponding to current input method, with the dictionary after being sorted, the dictionary pipe Reason module sends the dictionary after the current sessions type and sequence to the input method module;
The input method module is used to receive the dictionary after the current sessions type and sequence, according to the current sessions type The dictionary after the current sessions type and sequence is associated with the dictionary after sequence and is stored in local, so that user makes again When with the session of the current sessions type and inputting key character, according to candidate vocabulary with the current sessions type association Sequence after dictionary in sequence, input preferentially is carried out to the preceding candidate vocabulary that sorts and is shown;
Wherein, the vocabulary parsing module is used to count the frequency of occurrences of the vocabulary after parsing, according to going out for the vocabulary Existing frequency is ranked up from high to low, and the vocabulary after sequence is preferentially come in dictionary, with the dictionary after being sorted;
The vocabulary parsing module is used to count vocabulary included in the session information, and will be wrapped in the session information The vocabulary sequence included is preceding, and the vocabulary parsing module is also used to count going out for vocabulary included in the session information Existing frequency, and by the preceding vocabulary of sequence included in the session information, according to word included in the session information The frequency of occurrences of remittance is ranked up, with the dictionary after being sorted.
5. mobile terminal according to claim 4, which is characterized in that the vocabulary parsing module is for obtaining the session The text information of information sequentially parses every text information according to the text information sentence by sentence, to obtain the text Included vocabulary in information, and record the vocabulary obtained after parsing.
6. mobile terminal according to claim 4, which is characterized in that the mobile terminal also further includes judgment module, institute Judgment module is stated for judging whether it is the session for using current sessions type for the first time;
When the judgment module judging result, which is, is, the input method module is also used to call default dictionary and preferentially to silent Recognize in dictionary the preceding candidate vocabulary that sorts and carry out input and shows;
When the judgment module judging result is no, the input method module is also used to call the dictionary after sequence simultaneously preferential right The preceding candidate vocabulary that sorts in dictionary after sequence carries out input and shows;
The judgment module sends judging result to the input method module.
CN201310476299.3A 2013-10-12 2013-10-12 Based on context the method and mobile terminal inputted Expired - Fee Related CN103488796B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310476299.3A CN103488796B (en) 2013-10-12 2013-10-12 Based on context the method and mobile terminal inputted

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310476299.3A CN103488796B (en) 2013-10-12 2013-10-12 Based on context the method and mobile terminal inputted

Publications (2)

Publication Number Publication Date
CN103488796A CN103488796A (en) 2014-01-01
CN103488796B true CN103488796B (en) 2018-12-07

Family

ID=49829022

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310476299.3A Expired - Fee Related CN103488796B (en) 2013-10-12 2013-10-12 Based on context the method and mobile terminal inputted

Country Status (1)

Country Link
CN (1) CN103488796B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331393A (en) * 2014-05-06 2015-02-04 广州三星通信技术研究有限公司 Equipment and method for providing option by aiming at input operation of user
CN104375663A (en) * 2014-11-11 2015-02-25 广东欧珀移动通信有限公司 Associating input method and device
CN104360759B (en) * 2014-11-21 2017-03-08 百度在线网络技术(北京)有限公司 Candidate word sort method, device and character input method, equipment
CN104932786A (en) * 2015-06-02 2015-09-23 百度在线网络技术(北京)有限公司 Method and device for presenting sequence of candidate words
CN107423277A (en) * 2016-02-16 2017-12-01 中兴通讯股份有限公司 A kind of expression input method, device and terminal
CN106708805A (en) * 2016-12-30 2017-05-24 深圳天珑无线科技有限公司 Text statistics-based psychoanalysis method and device
CN106886296A (en) * 2017-02-15 2017-06-23 中国联合网络通信集团有限公司 The treating method and apparatus of the dictionary of input method
CN107957789B (en) * 2017-11-29 2020-04-28 维沃移动通信有限公司 Text input method and mobile terminal
CN109683727B (en) * 2018-12-26 2021-07-16 联想(北京)有限公司 Data processing method and device
CN112631437A (en) * 2020-12-25 2021-04-09 维沃移动通信有限公司 Information recommendation method and device and electronic equipment
CN113360003B (en) * 2021-06-30 2023-12-05 北京海纳数聚科技有限公司 Intelligent text input method association method based on dynamic session scene

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101571758A (en) * 2009-06-04 2009-11-04 腾讯科技(深圳)有限公司 Input method system, method and device thereof
CN102959547A (en) * 2012-05-03 2013-03-06 华为技术有限公司 Word bank adjusting method and equipment
CN101334774B (en) * 2007-06-29 2013-08-14 北京搜狗科技发展有限公司 Character input method and input method system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8805774B2 (en) * 2008-02-19 2014-08-12 International Business Machines Corporation Method and system for role based situation aware software

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101334774B (en) * 2007-06-29 2013-08-14 北京搜狗科技发展有限公司 Character input method and input method system
CN101571758A (en) * 2009-06-04 2009-11-04 腾讯科技(深圳)有限公司 Input method system, method and device thereof
CN102959547A (en) * 2012-05-03 2013-03-06 华为技术有限公司 Word bank adjusting method and equipment

Also Published As

Publication number Publication date
CN103488796A (en) 2014-01-01

Similar Documents

Publication Publication Date Title
CN103488796B (en) Based on context the method and mobile terminal inputted
CN106101747B (en) A kind of barrage content processing method and application server, user terminal
CN109670163B (en) Information identification method, information recommendation method, template construction method and computing device
CN102801859B (en) Method and device for identifying junk short message, and mobile communication terminal with device
US20080154604A1 (en) System and method for providing context-based dynamic speech grammar generation for use in search applications
CN105808695A (en) Method and device for obtaining chat reply contents
CN102322866B (en) Navigation method and system based on natural speech recognition
CN105760399A (en) Data retrieval method and device
CN103501374A (en) Telephone book sequencing method and device as well as terminal
US9720982B2 (en) Method and apparatus for natural language search for variables
CN105721725A (en) Customer service oriented question and answer interaction method and system
CN101976265A (en) Method for automatically judging telephone number and adding contact
CN108899015B (en) Method and device for providing voice feedback information for user in call
CN106875939A (en) To the Chinese dialects voice recognition processing method and intelligent robot of wide fluctuations
CN111159334A (en) Method and system for house source follow-up information processing
CN101441549A (en) Character recognition method, system and electric terminal
CN112487810A (en) Intelligent customer service method, device, equipment and storage medium
CN103002103A (en) Short message group sending method and device
CN110705926A (en) Method, device and system for acquiring logistics object distribution information
CN105808688B (en) Complementary retrieval method and device based on artificial intelligence
CN103607515A (en) Short message merging device and method
CN104915458A (en) Automatic association method and system during application search by user, and mobile terminal
CN103559242A (en) Method for achieving voice input of information and terminal device
CN106558311A (en) Voice content reminding method and device
CN106356056A (en) Speech recognition method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20211118

Address after: 264200 floor 5, block C, innovation and entrepreneurship base, No. 213, Torch Road, Weihai high district, Weihai City, Shandong Province

Patentee after: Weihai ailaifu Semiconductor Technology Co.,Ltd.

Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West

Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20181207

CF01 Termination of patent right due to non-payment of annual fee