CN102646022A - Method and device for obtaining candidate - Google Patents

Method and device for obtaining candidate Download PDF

Info

Publication number
CN102646022A
CN102646022A CN2012101042178A CN201210104217A CN102646022A CN 102646022 A CN102646022 A CN 102646022A CN 2012101042178 A CN2012101042178 A CN 2012101042178A CN 201210104217 A CN201210104217 A CN 201210104217A CN 102646022 A CN102646022 A CN 102646022A
Authority
CN
China
Prior art keywords
input
environment
input information
candidate item
characteristic
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.)
Granted
Application number
CN2012101042178A
Other languages
Chinese (zh)
Other versions
CN102646022B (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.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development 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 Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201210104217.8A priority Critical patent/CN102646022B/en
Publication of CN102646022A publication Critical patent/CN102646022A/en
Application granted granted Critical
Publication of CN102646022B publication Critical patent/CN102646022B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method and device for obtaining a candidate, wherein the method comprises the following steps of: receiving the input information of a user; collecting an input environment characteristic corresponding to the input information; when the input information and/or the input environment characteristic is matched with a preset activation condition, obtaining a combined candidate corresponding to the input information and the input environment characteristic; and part of characters of the combined candidate are relevant to the input information, and part of characters of the combined candidate are relevant to the input environment characteristic. According to the method and the device, the inputting demand of the user can be intelligently known, so that the intelligence of an input method is increased.

Description

A kind of method and apparatus that obtains candidate item
Technical field
The application relates to input method technique field, particularly relates to a kind of method and apparatus that obtains candidate item.
Background technology
Popularizing and development of Along with computer technology and Internet technology on the one hand, is used for realizing that the input method of computword input more and more is deep into people's life at present, and on the other hand, the user is also increasingly high for the intelligent requirement of input method.
Intelligent for improving, some input methods have associating input function, and all or part of coded strings of importing through the user obtains more than this coded strings represented literal candidate or content, is called association's input.
Association-feeding method in existing a kind of cellphone inputting method calculates association's candidate item automatically and offers user's selection according to group word algorithm or words phrase.Also be; At user's input coding string and after selecting to shield on the words; The last character or the speech of going up screen according to the user form ensuing association candidate item; (formed association candidate item does not need the user to import any coded strings), association's candidate item that this moment, the user just can directly select input method to provide automatically.Association's candidate item that common these input methods provide and user have gone up the literal of screen maybe can form speech by annexation in the input method dictionary.The association function of just being correlated with dictionary that above-mentioned association-feeding method provides can improve user's input efficiency to a certain extent.
Also has a kind of association-feeding method, by the corresponding relation between user's predefined coded strings and the self-defined phrase; When the input method judges has been imported self-defining coded strings, promptly offer the corresponding self-defined phrase of user.So that the input action to try one's best few obtains input content as much as possible.Above-mentioned association-feeding method also can improve input efficiency to a certain extent, especially can offer the easy way that the user repeatedly imports identical content.
Above-mentioned two kinds of association-feeding methods have just improved user's input efficiency on more elementary level; But can not understand user's input demand intelligently; Can not the candidate item that the user wants always in input process, occur, this has higher requirement to the intelligent of input method.
In a word, need the urgent technical matters that solves of those skilled in the art to be exactly: how can improve the intelligent of input method.
Summary of the invention
The application's technical matters to be solved provides a kind of method and apparatus that obtains candidate item, can understand user's input demand intelligently, improves the intelligent of input method.
In order to address the above problem, the application discloses a kind of method of obtaining candidate item, comprising:
Receive user's input information;
Gather the corresponding input environment characteristic of said input information;
, obtain and agree with said input information and said input environment combination of features candidate item during in said input information and/or said input environment characteristic with preset activation condition coupling; The segment word of said combination candidate item is associated with said input information, and segment word is associated with said input environment characteristic.
Preferably, the said step of agreeing with said input information and said input environment combination of features candidate item of obtaining comprises:
Obtain the environment attribute of said input environment characteristic;
From the environment dictionary, retrieve and obtain and corresponding first candidate word of said environment attribute;
Make up with said first candidate word with corresponding second candidate word of said input information, made up candidate item accordingly.
Preferably, the said step of obtaining the environment attribute of said input environment characteristic comprises:
Obtain corresponding environment attribute through discerning said input environment characteristic; And/or
According to the corresponding relation of preset input information, environment attribute and input environment characteristic, obtain the environment attribute of said input environment characteristic by said input information, said input environment characteristic matching.
Preferably, obtain and corresponding second candidate word of said input information through following steps:
Preset corresponding second candidate word of said input information; And/or
Retrieve in common dictionary according to said input information, obtain corresponding second candidate word; And/or
Retrieve in the screen vocabulary on record according to said input information, obtain corresponding second candidate word, the screen vocabulary of going up of said record comprises the trigger condition vocabulary and corresponding context vocabulary of going up screen.
Preferably, set up said environment dictionary through following steps:
The user import trigger condition vocabulary and on when shielding, the input environment characteristic of gathering this trigger condition vocabulary, the environment attribute of the identification input environment characteristic of gathering, and environment attribute of being discerned and corresponding vocabulary be stored to the environment dictionary; And/or
Set up the mapping relations between environment attribute and the vocabulary, and be saved to corresponding environment dictionary.
Preferably, the said step of agreeing with said input information and said input environment combination of features candidate item of obtaining comprises:
According to said input information and said input environment characteristic, candidate item is made up in retrieval accordingly in the first combination candidate dictionary; The said first combination candidate word stock contains input information, input environment characteristic and corresponding combination candidate item; Perhaps
According to the environment attribute of said input information and said input environment characteristic, candidate item is made up in retrieval accordingly in the second combination candidate dictionary; The said second combination candidate word stock contains input information, environment attribute and corresponding combination candidate item.
Preferably, through the preset activation condition of following method:
The setting interface that the user provides through input method, preset activation condition based on input information and/or input environment characteristic; And/or
The preset activation condition of server end based on input information and/or input environment characteristic, and push to client; And/or
Client is according to the input environment characteristic of trigger condition vocabulary, and/or trigger condition vocabulary and corresponding context vocabulary, preset activation condition based on input information and/or input environment characteristic.
Preferably, said input environment characteristic comprises one or more in time environmental characteristic, geographical environment characteristic or the applied environment characteristic.
Preferably, said input information comprises one or more in phonetic entry, handwriting input, keyboard input and the gesture input.
Preferably, said method also comprises: represent said combination candidate item.
Preferably, said method also comprises:
According to the matching degree of said combination candidate item and said input environment characteristic, and/or, the frequency of utilization of all or part of vocabulary in the said combination candidate item, and/or the searching order strategy sorts to said combination candidate item;
The said step that represents said combination candidate item is to represent the one or more combination candidate item that come the front.
Preferably, said method also comprises:
According to said input information, in common dictionary, retrieve, obtain corresponding single candidate item;
The said step that represents said combination candidate item is when representing said single candidate item, to represent said combination candidate item.
On the other hand, disclosed herein as well is a kind of device that obtains candidate item, comprising:
Interface unit is used to receive user's input information;
Collecting unit is used to gather the corresponding input environment characteristic of said input information; And
Acquiring unit is used for, obtaining and agreeing with said input information and said input environment combination of features candidate item during with preset activation condition coupling in said input information and/or said input environment characteristic; The segment word of said combination candidate item is associated with said input information, and segment word is associated with said input environment characteristic.
Preferably, said acquiring unit comprises:
Environment attribute obtains subelement, is used to obtain the environment attribute of said input environment characteristic;
The retrieval subelement is used for obtaining and corresponding first candidate word of said environment attribute from the retrieval of environment dictionary; And
The combination subelement is used for making up with said first candidate word with corresponding second candidate word of said input information, is made up candidate item accordingly.
Preferably, said environment attribute obtains subelement and comprises:
Identification module is used for obtaining corresponding environment attribute through discerning said input environment characteristic; And/or
Matching module is used for the corresponding relation according to preset input information, environment attribute and input environment characteristic, is obtained the environment attribute of said input environment characteristic by said input information, said input environment characteristic matching.
Preferably, said device also comprises: the second candidate word acquiring unit, be used to obtain and corresponding second candidate word of said input information, and comprising:
Preset subelement is used for preset corresponding second candidate word of said input information; And/or
The first retrieval subelement is used for retrieving at common dictionary according to said input information, obtains corresponding second candidate word; And/or
The second retrieval subelement is used for retrieving according to said input information screen vocabulary on record, obtains corresponding second candidate word, and the screen vocabulary of going up of said record comprises the trigger condition vocabulary and corresponding context vocabulary of going up screen.
Preferably, said device also comprises: the unit set up in the environment dictionary, is used to set up said environment dictionary, comprising:
First sets up subelement; Be used for the user import trigger condition vocabulary and on when shielding; Gather the input environment characteristic of this trigger condition vocabulary, discern the environment attribute of the input environment characteristic of gathering, and environment attribute of being discerned and corresponding vocabulary are stored to the environment dictionary; And/or
Second sets up subelement, is used to set up the mapping relations between environment attribute and the vocabulary, and is saved to corresponding environment dictionary.
Preferably, said acquiring unit comprises:
The 3rd retrieval subelement is used for according to said input information and said input environment characteristic, and candidate item is made up in retrieval accordingly in the first combination candidate dictionary; The said first combination candidate word stock contains input information, input environment characteristic and corresponding combination candidate item; Perhaps
The 4th retrieval subelement is used for the environment attribute according to said input information and said input environment characteristic, and candidate item is made up in retrieval accordingly in the second combination candidate dictionary; The said second combination candidate word stock contains input information, environment attribute and corresponding combination candidate item.
Preferably, said device also comprises: activation condition is preset the unit, is used for preset activation condition, comprising:
The first preset subelement is positioned at client, is used for the setting interface that provided through input method by the user, preset activation condition based on input information and/or input environment characteristic; And/or
The second preset subelement is positioned at server end, is used for preset activation condition based on input information and/or input environment characteristic, and pushes to client; And/or
The 3rd preset subelement is positioned at client, is used for the input environment characteristic according to trigger condition vocabulary, and/or trigger condition vocabulary and corresponding context vocabulary, preset activation condition based on input information and/or input environment characteristic.
Preferably, said input environment characteristic comprises one or more in time environmental characteristic, geographical environment characteristic or the applied environment characteristic.
Preferably, said input information comprises one or more in phonetic entry, handwriting input, keyboard input and the gesture input.
Preferably, said device also comprises: represent the unit, be used to represent said combination candidate item.
Preferably, said device also comprises:
Sequencing unit is used for the matching degree according to said combination candidate item and said input environment characteristic, and/or, the frequency of utilization of all or part of vocabulary in the said combination candidate item, and/or the searching order strategy sorts to said combination candidate item;
The then said unit that represents specifically is used to represent the one or more combination candidate item that come the front.
Preferably, said device also comprises:
Single candidate item retrieval unit is used for retrieving in common dictionary according to said input information, obtains corresponding single candidate item;
The then said unit that represents specifically is used for when representing said single candidate item, representing said combination candidate item.
Compared with prior art, the application has the following advantages:
The application, obtains and agrees with said input information and said input environment combination of features candidate item during with preset activation condition coupling in input information and/or input environment characteristic; Strict corresponding relation with respect to coded strings in the prior art and candidate item is only applicable to have the input content of clear and definite annexation and associating input function all is provided in any occasion; The application's combination candidate item can no longer be confined to have the input content of clear and definite annexation; But combine current input environment intelligence association's candidate item is provided; And; Only during with preset activation condition coupling, think that just the user exists making up the input demand of candidate item in said input information and/or said input environment characteristic; To sum up, the application has enlarged the scope of application of input content, and has increased the judgement that the user imports demand, therefore, can improve the intelligent of input method.
Description of drawings
Fig. 1 is a kind of process flow diagram that obtains the method embodiment of candidate item of the application;
Fig. 2 is a kind of process flow diagram that in input method, obtains the application implementation example 1 of candidate item of the application;
Fig. 3 is a kind of process flow diagram that in input method, obtains the application implementation example 2 of candidate item of the application;
Fig. 4 is a kind of process flow diagram that in input method, obtains the application implementation example 3 of candidate item of the application;
Fig. 5 is a kind of process flow diagram that in input method, obtains the application implementation example 4 of candidate item of the application;
Fig. 6 is a kind of structural drawing that in input method, obtains the device embodiment of candidate item of the application.
Embodiment
For above-mentioned purpose, the feature and advantage that make the application can be more obviously understandable, the application is done further detailed explanation below in conjunction with accompanying drawing and embodiment.
In input process, the user hopes that input method can understand them and want the content imported, needs input method the candidate item of wanting most to be provided according to their input information, and this is user's an input demand.
No matter the relevant association function of dictionary in the prior art, or the corresponding relation between user's predefined coded strings and the self-defined phrase, all based on the strict corresponding relation of coded strings and candidate item; But, under a lot of situation, do not have clear and definite annexation between the content that the user wants to import, at this moment, the association function that dictionary is relevant is just no longer suitable; In addition, not all occasion all needs associating input function, and associating input function is a kind of burden to the user under a lot of occasions.Therefore, the strict corresponding relation of existing coded strings and candidate item has limited the intelligent development of input method.
In order to understand user's input demand intelligently; The application no longer is confined to the strict corresponding relation of coded strings and candidate item; But, obtain and agree with said input information and said input environment combination of features candidate item according to the combined influence of the corresponding input environment characteristic of input information and input information to candidate item.Said combination candidate item goes for not having the input content of clear and definite annexation, and only under suitable occasion, just can occur, and therefore, can improve the intelligent of input method.
With reference to Fig. 1, show a kind of process flow diagram that obtains the method embodiment of candidate item of the application, specifically can comprise:
Step 101, reception user's input information;
Step 102, the corresponding input environment characteristic of the said input information of collection;
Step 103, during with preset activation condition coupling, obtain and agree with said input information and said input environment combination of features candidate item in said input information and/or said input environment characteristic; The segment word of said combination candidate item is associated with said input information, and segment word is associated with said input environment characteristic.
Among the application embodiment, user's input information specifically can comprise one or more in keyboard input, phonetic entry, handwriting input and the gesture input.Need to prove that the input information of extension on the meaning can comprise original input information and the candidate item that is converted to original input information or the like, among the application embodiment, input information refers in particular to the original input information before the conversion.Wherein, the transfer process from the input information to the candidate item belongs to the category of prior art, so do not give unnecessary details at this.
The application can be applied in the input methods such as inputting method, phonitic entry method, hand-writing input method, mixing input method; These input methods receive corresponding input information respectively, and for example, inputting method receives the keyboard input; Phonitic entry method receives phonetic entry; Hand-writing input method receives handwriting input or gesture input, and mixing input method receives the mixing in keyboard, voice, the hand-written and gesture, or the like.Here also be that coded strings is that example is introduced with the keyboard input mainly, other input information please get final product by cross-reference.
The application can also be applied to fields such as literal identification, gesture identification, speech recognition, and said combination candidate item can be used as a Rule of judgment of identification literal, gesture or voice.In a word, the application does not limit the concrete application scenarios that said input information and finally obtaining makes up candidate item.
The input environment characteristic that input information is corresponding mainly is meant user's residing surrounding enviroment information when the input input information.In reality, said input environment characteristic specifically can comprise one or more in the environmental characteristics such as time environmental characteristic, geographical environment characteristic or applied environment characteristic.
Even same user, its residing surrounding enviroment information also probably changes, and temporal characteristics is exactly a typical example.For this reason, the application is when gathering the input environment characteristic, and the corresponding input environment characteristic of coded strings preferably has real-time; So preferred corresponding input environment characteristic of said input information of gathering in real time of the application.
To a user's input information, its time of reception can be used as the time corresponding environmental characteristic; The positional information that obtains according to its IP (agreement that interconnects between the network, Internet Protocol) address, mobile equipment GPS (GPS, Global Positioning System) or mobile network can be used as corresponding geographical environment characteristic; Obtain the recognition feature of the current object that input method serving and to confirm corresponding applied environment characteristic; For example; Input method is in operation; Call GetModuleFilename discovery procedure pathname " ProgramFiles ", can confirm that corresponding applied environment is characterized as " WinWord.exe ", also be that the present encoding string is imported in word.
Certainly; Except time environmental characteristic, geographical environment characteristic and applied environment characteristic; The application's input environment characteristic can also comprise other environmental characteristic; For example, physical environment characteristics such as air pressure, height above sea level, temperature, humidity etc., the time environmental characteristic and corresponding air pressure, height above sea level, temperature, the humidity characteristic of location circumstances characteristic that adopt the electronic equipment detecting to obtain can be used as the physical environment characteristic.The application does not limit concrete said input information corresponding input environment characteristic and corresponding acquisition method.
In order to understand user's input demand intelligently; The application just can provide the combination candidate item under suitable occasion; Particularly; When one or more in said input information and said input environment characteristic meets preset activation condition, just can activate the function that the combination candidate item is provided of input method; When said input information and/or said input environment characteristic do not match with preset activation condition, then can not activate the function that the combination candidate item is provided of input method.
In concrete the realization, those skilled in the art can be provided with activation condition according to the actual requirements, and for example, if strict activation condition is set, so, it is just passable that said input information and said input environment characteristic satisfy corresponding activation condition simultaneously; If comparatively loose activation condition is set, so, one in said input information and the said input environment characteristic satisfies corresponding activation condition and gets final product.Below three kinds of possible activation condition set-up modes are elaborated.
First kind, the activation condition that preset input information meets;
Among the application embodiment, whether need the combination candidate item be provided to user's input information, this is the first step of understanding user's input demand intelligently.
Under some application scenarios; The user is behind the specific personage of input; Usually and then import some greetings, blessing language to accomplish daily social activity work; An example of personage+greeting is " father "+" good morning ", and the example of personage+blessing language comprises " father "+" happy birthday ", " father "+" Father's Day is happy " or the like.
Under some application scenarios; The user is behind the specific things of input; Usually and then import some attribute vocabulary that play modification, qualification, illustration to import a complete noun; The example of things+attribute vocabulary comprises " Olympic Games "+" opening ceremony ", " " 2012 London+" Olympic Games ", " Hua Lian "+" shop, five road junctions " or the like.
To sum up, when user's input information is all or part of coded strings of personage or things title correspondence, the very possible input demand that has the combination candidate item.
Therefore, about how presetting the activation condition that input information meets, the application can provide following scheme:
Option A 1, user set up on their own;
In reality, the setting interface that the user can provide through input method, preset activation condition based on input information.For example, can set a coded strings (ba) and be activation condition, also promptly, when the user imports this coded strings, just can activate the function that the combination candidate item is provided of input method; And for example, can set personage or incident is shooting conditions, is when setting the corresponding all or part of coded strings of personage or things title at user's input information, can activate the function that the combination candidate item is provided of input method, or the like.
Option A 2, server end are set;
Except setting the activation condition in client, can also pass through server end and set activation condition, avoid the user because more exchange device is perhaps reinstalled the relevant activation condition of software loss and can not be enjoyed the function that makes up candidate item.
In reality, server end can be preset the activation condition based on input information, and pushes to client.For example, can set a coded strings (ba) and be activation condition, also promptly, when the user imports this coded strings, just can activate the function that the combination candidate item is provided of input method; And for example, can set personage or incident is shooting conditions, is when setting the corresponding all or part of coded strings of personage or things title at user's input information, can activate the function that the combination candidate item is provided of input method, or the like.
Option A 3, client are set.
Client can be according to the trigger condition vocabulary and corresponding context vocabulary of record, preset activation condition based on input information.
In concrete the realization; Can implant some record trigger conditions in client and write down triggering; For example, client is provided with a module that is used to store trigger condition vocabulary, after the vocabulary that user's input is consistent is also gone up screen; Can trigger input method and go to write down at that time the user and import the input environment characteristic (time, geography or applied environment) of this vocabulary and context vocabulary accordingly, forming one is the database of main fields with trigger condition vocabulary.
Said trigger condition vocabulary can be set according to environmental characteristic.With the time environmental characteristic is example, can be with the vocabulary relevant with red-letter day or commemoration day as trigger condition vocabulary, like " be the birthday that day ", " happy birthday ", " Happy Spring Festival ", " Dragon Boat Festival is happy " or the like; Be characterized as example with geographical environment, the relevant trigger condition vocabulary of geographical location circumstances such as " market ", " school ", " dining room ", " cinema ", " arena " can be set.In such cases, if the context vocabulary of trigger condition vocabulary and user's input information coupling then can be thought to meet activation condition.
Said trigger condition vocabulary also can be set according to input information.The name that can preset some personages or things is referred to as trigger condition vocabulary, for example, and " father ", " mother ", " elder sister ", " Hua Lian ", " Wanda ", " Mei Jia ", " university ", " middle school " or the like.In such cases, if trigger condition vocabulary and user's input information coupling then can be thought to meet activation condition.
When specifically carrying out the setting of activation condition, can adopt input information as activation condition, also can adopt words as activation condition, can also adopt simultaneously above both as activation condition.When adopting words, the words that is matched with as activation condition is arranged, then meet activation condition if input information changed in the candidate item that the back generates according to existing various input methods as activation condition; In other words, when input information is complementary according to the input method of current use and words as activation condition, activate combination candidate item function.
Come to adopt Pinyin coding string " baba " as activation condition for example with current use spelling input method, when comprising " baba " in the pinyin string of user's input, activate combination candidate item function; Also can adopt word " father " as activation condition, the user imports " bb ", when finding " father " in the candidate item after input method is converting literal to, activates combination candidate item function.
More than several kinds of schemes of activation condition that preset input information is met carried out detailed introduction, be appreciated that those skilled in the art can be used in combination above-mentioned several kinds of schemes as required, perhaps, use wherein any scheme, the application does not limit this.
Second kind, the activation condition that preset input environment characteristic meets;
The activation condition that said input environment characteristic meets specifically can comprise: said time environmental characteristic arrives the preset time period; Perhaps; Said geographical environment characteristic is in preset geographic range, and perhaps, said applied environment is characterized as preset applied environment or the like.The time environmental characteristic arrives the time period that example is the junior three in twelfth month 29 to the first month of the lunar year of preset time period; The example of geographical environment characteristic in preset geographic range comprises commercial circle, Hua Lian, movie theatre commercial circle, school sign or the like, and preset applied environment specifically can comprise word, QQ, msn or the like.In a word, those skilled in the art can be according to the actual requirements, the activation condition that preset various input environment characteristics meet, and the application does not limit the activation condition that concrete input environment characteristic meets.
In like manner, can set up on their own by the user, and/or, preset the activation condition that the input environment characteristic meets in client and/or server end, particularly:
The setting interface that the user can provide through input method, preset activation condition based on the input environment characteristic; And/or
Such as according to the mid-autumn, the Dragon Boat Festival, traditional festivals such as the Spring Festival; Owing to be lunar calendar information, the annual date all changes, and the user sets up on their own can be very loaded down with trivial details; Can issue activation condition automatically through server fully and reach this purpose, also can make more user enjoy the service of combination candidate item.At this moment, the predeterminable activation condition of server end based on the input environment characteristic, and push to client; And/or
Client is preset the activation condition based on the input environment characteristic according to the input environment characteristic of trigger condition vocabulary.
The third, the activation condition that preset input information and input environment characteristic meet.
In like manner, can set up on their own by the user, and/or, the activation condition that all meets in the preset input information of client and/or server end and input environment characteristic.
Set up on their own with the user and to be example; Can offer one of user and set the interface; The user can connect any one red-letter day or commemoration day with specific personage or incident (comprising all or part of coded strings that personage or things vocabulary or personage or things vocabulary are corresponding here); To form corresponding activation condition, the example of the activation condition that coded strings and input environment characteristic all meet can comprise: " ba "+" August 10 ", " Olympic Games "+" on July 27th, 2012 " or the like.
In such cases, input information and input environment characteristic the two all with activation condition in the relevant parameter coupling time, just can excite the function that the combination candidate item is provided of input method.
The application can provide and obtain the scheme of agreeing with said input information and said input environment combination of features candidate item as follows:
Option b 1,
The said step of agreeing with said input information and said input environment combination of features candidate item of obtaining specifically can comprise:
Step B11, obtain the environment attribute of said input environment characteristic;
Here, the input environment characteristic is risen to corresponding environment attribute, to understand user's input demand more intelligently.For example; An environment attribute of " lunar calendar twelfth month 30 " is " New Year's Eve "; An environment attribute in " on June 17th, 2012 " is " Father's Day ", and an environment attribute of so-and-so geographic coordinate is " five road junctions ", and the environment attribute that so-and-so imports scene is " word " or the like.
The application can provide the scheme of the environment attribute that obtains said input environment characteristic as follows:
Option b 111,
Obtain corresponding environment attribute through discerning said input environment characteristic;
For example; Can the time environmental characteristic be identified as red-letter day, commemoration day etc. and represent the time environment attribute in red-letter day; With the geographical environment feature identification is the geographical environment attribute in the social places of representative such as market, dining room, cinema, school, hotel, hospital, arena, is the applied environment attribute of word, QQ, msn or the like representative input scene with the applied environment feature identification.
Need to prove; Said environment attribute can be hierarchical structure; Like top-down hierarchical structure be: the environment attribute-red-letter day time-Dragon Boat Festival, the mid-autumn, the Spring Festival, environment attribute-commemoration day time-birthday, marriage, anniversary of the death, geographical environment attribute-market-Hua Lian; Geographical environment attribute-cinema-Mei Jia or the like, the application does not limit the structure and the corresponding recognition method of concrete environment attribute.
Option b 112,
According to the corresponding relation of preset input information, environment attribute and input environment characteristic, obtain the environment attribute of said input environment characteristic by said input information, said input environment characteristic matching.
In the reality, an input environment characteristic possibly have a plurality of environment attributes.For example, be Opening Ceremony of the Games " on July 27th, 2012 " that day, but also be certain father's user birthday simultaneously; And for example, so-and-so geographic coordinate is the position of " Hua Lian, five road junctions ", but also is the position in " five road junction cinemas " and Duo Jia dining room simultaneously, or the like.
About how presetting the corresponding relation of input information, environment attribute and input environment characteristic, in a kind of applying examples of the application, can preset environment attribute to input information, and further to the preset corresponding environmental characteristic of environment attribute.Said environment attribute specifically can comprise the various time environment attributes of representing red-letter day such as red-letter day, commemoration day; The geographical environment attribute in the social places of various representatives such as market, dining room, cinema, school, hotel, hospital, arena, applied environment attribute of word, QQ, msn or the like representative input scene or the like.For example, an environment attribute can presetting coded strings " ba " is " birthday ", and " birthday ", corresponding environmental characteristic was " July 27 " or the like.Then when coded strings was " ba ", when input environment was characterized as " on July 27th, 2012 ", the environment attribute that coupling obtains just can be got rid of Opening Ceremony of the Games for " birthday ".
Similar with preset activation condition, can set up on their own by the user, and/or, preset environmental characteristic in the environment attribute of client and/or the preset said input information of server end, the application does not limit concrete presetting method.Wherein, also push to client automatically, can avoid the user because more exchange device is perhaps reinstalled the relevant activation condition of software loss and can not be enjoyed the function that makes up candidate item through server end set environment attribute.
Step B12, from the environment dictionary, retrieve and obtain and corresponding first candidate word of the environment attribute of said input environment characteristic;
In a kind of preferred embodiment of the application, the scheme of setting up the environment dictionary as follows can be provided:
Scheme C1, the user import trigger condition vocabulary and on when shielding, the input environment characteristic of gathering this trigger condition vocabulary, the environment attribute of the identification input environment characteristic of gathering, and environment attribute of being discerned and corresponding vocabulary be stored to the environment dictionary;
Detailed introduction was done to said trigger condition vocabulary in the front, and it can be set according to input environment characteristic or input information (coded strings).With the time environmental characteristic is example, can be with the vocabulary relevant with red-letter day or commemoration day as trigger condition vocabulary, like " be the birthday that day ", " happy birthday ", " Happy Spring Festival ", " Dragon Boat Festival is happy " or the like; Suppose to detect user's input " happy birthday " and go up screen, the input environment that then can gather this moment is characterized as " July 27 ", and the environment attribute of identification " July 27 " is time environment attribute " birthday ".The corresponding vocabulary of time environment attribute " birthday " can comprise a series of birthday blessing language, like " happy birthday ", " happy birthday to you ", " happy birthday to you well ", " Happy birthday " or the like.Store environment attribute and corresponding vocabulary in the environment dictionary.
Scheme C2, set up the mapping relations between environment attribute and the vocabulary, and be saved to corresponding environment dictionary.
The front is mentioned; Said environment attribute can be hierarchical structure; Like top-down hierarchical structure be: the environment attribute-red-letter day time-Dragon Boat Festival, the mid-autumn, the Spring Festival; Environment attribute-commemoration day time-birthday, marriage, anniversary of the death, thus can be to the environment attribute of the bottom, set up the mapping relations between itself and the vocabulary; As comprising " happy birthday ", " happy birthday to you ", " happy birthday to you well ", " Happy birthday " or the like, can comprise " Happy Spring Festival " or the like with " Spring Festival " corresponding vocabulary with " birthday " corresponding vocabulary.
Similar with preset activation condition, can set up on their own by the user, and/or at client and/or server end embodiment C1 and/or C2, the application does not limit concrete grammar.Wherein, also push to client automatically, can avoid the user because more exchange device is perhaps reinstalled the relevant activation condition of software loss and can not be enjoyed the function that makes up candidate item through server end set environment dictionary.
Step B13, make up, made up candidate item accordingly with said first candidate word with corresponding second candidate word of said input information.
In the application's preferred embodiment, can obtain corresponding second candidate word of said input information through a kind of in the following scheme or several:
First kind, preset corresponding second candidate word of said input information;
Second candidate word like preset " ba " is " father " or " father ", and second candidate word of preset " hualian " is " Hua Lian ", and second candidate word of preset " aoyun " is " Olympic Games " or the like.
Second kind, in common dictionary, retrieve according to said input information, obtain corresponding second candidate word;
The common dictionary here is exactly the dictionary of prior art, and second candidate word can be got the one or more candidate word that come the front in the result for retrieval, the candidate word that comes front three in the result for retrieval like " ba " comprise " crust ", " ", " father " etc.The front was carried, when user's input information is all or part of coded strings of personage or things title correspondence, and the very possible input demand that has the combination candidate item.So obtaining according to result for retrieval in the process of second candidate word, can only keep the personage or the things name is referred to as second candidate word.
The third, retrieve in the vocabulary according to said input information screen on record, obtain corresponding second candidate word, the going up screen vocabulary and specifically can comprise the trigger condition vocabulary and corresponding context vocabulary of going up screen of said record.
In concrete the realization; Can adopt existing vocabulary combination technique that first candidate word and second candidate word are made up; The vocabulary combination technique is considered syntax rule usually, can abandon some combination candidate item in case of necessity, for example; " "+the combination candidate item " happy birthday " of " happy birthday " do not meet syntax rule, so can abandon.
Need to prove; Only be example above, the scheme of obtaining corresponding second candidate word of said input information introduced, in fact with the coded strings; When input information is phonetic entry, handwriting input or gesture input; The scheme of obtaining corresponding second candidate word also is similarly, also can adopt first kind of scheme to preset corresponding second candidate word of said input information, perhaps; At first phonetic entry, handwriting input or gesture input are identified as the input information of written form, adopt then second or the third input information to written form handle and get final product.
Option b 2,
Input environment characteristic and the corresponding candidate word of input information are made up when receiving user's input information with respect to option b 1, option b 2 can be preset the combination candidate item, is made up candidate item accordingly according to input environment characteristic and coded strings coupling and gets final product.Accordingly, the said step of agreeing with said input information and said input environment combination of features candidate item of obtaining specifically can comprise:
According to said input information and said input environment characteristic; Candidate item is made up in retrieval accordingly in the first combination candidate dictionary; Perhaps, according to the environment attribute of said input information and said input environment characteristic, candidate item is made up in retrieval accordingly in the second combination candidate dictionary; The said first combination candidate word stock contains coded strings, input environment characteristic and corresponding combination candidate item, and the said second combination candidate word stock contains coded strings, environment attribute and corresponding combination candidate item.
With reference to table 1, show the example of a kind of first combination candidate dictionary of the application, it specifically comprises coded strings, input environment characteristic and three fields of combination candidate item.
Wherein, Coded strings is represented personage or the corresponding all or part of coded strings of incident title; Input environment character representation time, place, application or other environmental characteristics, combination candidate item represent to agree with input environment characteristic and personage who is associated or the corresponding association's candidate item of incident.
Table 1
Coded strings The input environment characteristic The combination candidate item
?ba July 27 Father, happy birthday
?hualian Geographic coordinate 1 Hua Lian, five road junctions
?aoyun On July 27th, 2012 The London Opening Ceremony of the Games
With reference to table 2, show the example of a kind of second combination candidate dictionary of the application, it specifically comprises environment attribute and three fields of combination candidate item of coded strings, input environment characteristic.
Wherein, Coded strings is represented personage or the corresponding all or part of coded strings of incident title; Environment attribute express time, place, application or other environment attributes can segment in reality, and the combination candidate item representes to agree with environment attribute and personage who is associated or the corresponding association's candidate item of incident.
Table 2
Figure BDA0000151934120000171
When implementing the corresponding scheme of the second combination candidate dictionary, can adopt such scheme B111, B112 or other scheme to obtain said input environment characteristic environment attribute.
Said combination candidate item has different application under different scenes.For example, in input method, can be used as candidate item supplies the user to select; And for example, as the Rule of judgment of identification literal, gesture or voice, or the like.
Be applied under the occasion of input method, said method can also comprise: represent said combination candidate item.Said representing can written form, also can carry out by speech form, input for the user that can't manually select, blind person for example, the people of driving etc.
In a kind of preferred embodiment of the application, said method can also comprise:
According to the matching degree of said combination candidate item and said input environment characteristic, and/or, the frequency of utilization of all or part of vocabulary in the said combination candidate item, and/or the searching order strategy sorts to said combination candidate item;
In a kind of preferred embodiment of the application, said method can also comprise:
According to the matching degree of said combination candidate item and said input environment characteristic, and/or, the frequency of utilization of all or part of vocabulary in the said combination candidate item, and/or the searching order strategy sorts to said combination candidate item;
At this moment, the said step that represents said combination candidate item then can for, represent the one or more combination candidate item that come the front.
When being a plurality of, can judge that which makes up candidate item and current input environment characteristic more meets in the combination candidate item according to the matching degree of said combination candidate item and said input environment characteristic.For example, coded strings is " ba ", and final combination candidate item comprises " father; Father's Day is good " and " father; happy birthday ", so, can current input environment characteristic be belonged to the matching degree of the distance on date and " Father's Day " and " birthday " these two dates as said combination candidate item and said input environment characteristic; The nearlyer explanation of distance is mated more, so corresponding combination candidate item comes the front.
Still comprise that with final combination candidate item " father, Father's Day is good " and " father, happy birthday " are example; The frequency of utilization of all or part of vocabulary can for example, can compare " father; Father's Day is good " and " father's, happy birthday " frequency of utilization, perhaps according to user thesaurus or public dictionary statistics in the said combination candidate item; The frequency of utilization that compares " Father's Day is good " and " happy birthday ", or the like.
In the combination candidate item when being a plurality of; If in networking or the input of Connection Service device; Client or server end can input to these different piece or integral body that makes up candidate item in the search engine and search for; The combination candidate item many Search Results number are discharged to the front, and this also is the application of searching order strategy.
In the application's another kind of preferred embodiment, can also the strict corresponding single candidate item of combination candidate item and coded strings be represented jointly, correspondingly, said method can also comprise:
According to said input information, in common dictionary, retrieve, obtain corresponding single candidate item;
The said step that represents said combination candidate item is when representing said single candidate item, to represent said combination candidate item.
In reality; For fear of the effect of combination candidate item to the user, representing on the order, said combination candidate item can come the back of said single candidate item; Perhaps; When the number of said single candidate item was many, said combination candidate item can come back of said single candidate item or the like in representing homepage, and the application does not limit the concrete order that represents.
For making this area those skilled in the art understand the application better, the application is provided below the application implementation example in input method:
Application implementation example 1,
With reference to Fig. 2, show a kind of process flow diagram that in input method, when the activation that meets coded strings, obtains the method application implementation example 1 of candidate item of the application, specifically can comprise:
Step 201, reception user's input information " ba ";
Step 202, gather said input information time corresponding environmental characteristic " lunar calendar twelfth month 29 ";
Step 203, judge that whether input information " ba " is input information preset in the activation condition, if then execution in step 204, otherwise execution in step 208;
The environment attribute " New Year's Eve " of step 204, acquisition time environmental characteristic " lunar calendar twelfth month 30 ";
Step 205, from the environment dictionary retrieval obtain with corresponding first candidate word of environment attribute " New Year's Eve " " New Year's Eve is happy ";
Step 206, first candidate word " New Year's Eve is happy " and corresponding second candidate word of input information " ba " " father " are made up, made up candidate item " father, New Year's Eve is happy " accordingly;
Step 207, represent the combination candidate item " father, New Year's Eve is happy ";
Step 208, obtain and represent and the corresponding single candidate item of input information " ba ".
With reference to Fig. 3, show a kind of process flow diagram that in input method, obtains the application implementation example 2 of candidate item of the application, specifically can comprise:
Step 301, reception user's input information " ba ";
Step 302, collection said input information time corresponding environmental characteristic " July 27 ";
Step 303, judge that whether input information " ba " is input information preset in the activation condition, if then execution in step 304, otherwise execution in step 309;
Step 304, judge that whether input information " ba " and time environmental characteristic " July 27 " be complementary with the corresponding relation of preset input information, environment attribute and input environment characteristic, if then execution in step 305, otherwise execution in step 309;
Step 305, with institute's matching environment attribute " birthday " as the environmental characteristic environment attribute in " July 27 ";
Step 306, from the environment dictionary retrieval obtain with corresponding first candidate word of environment attribute " birthday " " happy birthday ";
Step 307, first candidate word " happy birthday " and corresponding second candidate word of input information " ba " " father " are made up, made up candidate item " father, happy birthday " accordingly;
Step 308, represent the combination candidate item " father, happy birthday ";
Step 309, obtain and represent and the corresponding single candidate item of input information " ba ".
With reference to Fig. 4, show a kind of process flow diagram that in input method, obtains the application implementation example 3 of candidate item of the application, specifically can comprise:
Step 401, reception user's input information " hualian ";
Step 402, the corresponding geographical environment characteristic " No. 28, Haidian District Cheng Fulu " of the said input information of collection;
Step 403, judge that whether geographical environment characteristic " No. 28, Haidian District Cheng Fulu " is geographic range preset in the activation condition, if then execution in step 404, otherwise execution in step 408;
Step 404, obtain the environment attribute " five road junctions " of geographical environment characteristic " No. 28, Haidian District Cheng Fulu ";
Step 405, retrieval obtains and corresponding first candidate word of environment attribute " five road junctions " " five road junctions ", " shop, five road junctions " from the environment dictionary;
Step 406, first candidate word " five road junctions ", " shop, five road junctions " and corresponding second candidate word of input information " hualian " " Hua Lian " are made up, made up candidate item " Hua Lian, five road junctions ", " shop, five road junction, Hua Lian " accordingly;
Step 407, represent combination candidate item " Hua Lian, five road junctions ", " shop, five road junction, Hua Lian ";
Step 408, obtain and represent and the corresponding single candidate item of input information " hualian ".
With reference to Fig. 5, show a kind of process flow diagram that in input method, obtains the application implementation example 4 of candidate item of the application, specifically can comprise:
Step 501, reception user's input information " ba ";
Step 502, collection said input information time corresponding environmental characteristic " July 27 ";
Step 503, judge input information " ba " and time environmental characteristic " July 27 " whether all with activation condition in preset relevant parameter coupling, if then execution in step 504, otherwise execution in step 506;
Step 504, according to input information " ba " and time environmental characteristic " July 27 "; Candidate item " father; happy birthday " is made up in retrieval accordingly in the first combination candidate dictionary, and the said first combination candidate word stock contains coded strings, input environment characteristic and corresponding combination candidate item;
Step 505, represent the combination candidate item " father, happy birthday ";
Step 506, obtain and represent and the corresponding single candidate item of input information " ba ".
Need to prove, be example with time environmental characteristic and geographical environment above, and the scheme of obtaining the combination candidate item is illustrated; In fact, the application is not limited to concrete environmental characteristic, for example; Physical environment characteristics such as air pressure, height above sea level, temperature, humidity also can be used for obtaining corresponding combination candidate item; To understand user's input demand more intelligently, for example, under high altitude environment, can obtain the combination candidate item that is used to send the anoxic prompting; Be used to send the combination candidate item of noting anti-temperature drop heat prompting and under hot environment, can obtain, or the like.
In addition, the application both can be under local input method environment or input method in network environment, and wherein, the former corresponding client has been installed the situation of input method, and the corresponding client of the latter is not installed the situation of input method.Further, to the input information under the input method in network environment, all operations are all accomplished at server end, and the combination candidate item that only need will finally obtain is provided to client and gets final product.
Embodiment is corresponding with preceding method, disclosed herein as well is a kind of device embodiment that obtains candidate item, and the structural drawing with reference to shown in Figure 6 specifically can comprise:
Interface unit 601 is used to receive user's input information;
Collecting unit 602 is used to gather the corresponding input environment characteristic of said input information; And
Acquiring unit 603 is used for, obtaining and agreeing with said input information and said input environment combination of features candidate item during with preset activation condition coupling in said input information and/or said input environment characteristic; The segment word of said combination candidate item is associated with said input information, and segment word is associated with said input environment characteristic.
In a kind of preferred embodiment of the application, said acquiring unit 603 may further include:
Environment attribute obtains subelement, is used to obtain the environment attribute of said input environment characteristic;
The retrieval subelement is used for obtaining and corresponding first candidate word of said environment attribute from the retrieval of environment dictionary; And
The combination subelement is used for making up with said first candidate word with corresponding second candidate word of said input information, is made up candidate item accordingly.
In a kind of preferred embodiment of the application, said environment attribute obtains subelement and specifically can comprise:
Identification module is used for obtaining corresponding environment attribute through discerning said input environment characteristic; And/or
Matching module is used for the corresponding relation according to preset input information, environment attribute and input environment characteristic, is obtained the environment attribute of said input environment characteristic by said input information, said input environment characteristic matching.
In a kind of preferred embodiment of the application, shown device can also comprise: the second candidate word acquiring unit, be used to obtain and corresponding second candidate word of said input information, and specifically can comprise:
Preset subelement is used for preset corresponding second candidate word of said input information; And/or
The first retrieval subelement is used for retrieving at common dictionary according to said input information, obtains corresponding second candidate word; And/or
The second retrieval subelement is used for retrieving according to said input information screen vocabulary on record, obtains corresponding second candidate word, and the screen vocabulary of going up of said record comprises the trigger condition vocabulary and corresponding context vocabulary of going up screen.
In a kind of preferred embodiment of the application, said device can also comprise: the unit set up in the environment dictionary, is used to set up said environment dictionary, specifically can comprise:
First sets up subelement; Be used for the user import trigger condition vocabulary and on when shielding; Gather the input environment characteristic of this trigger condition vocabulary, discern the environment attribute of the input environment characteristic of gathering, and environment attribute of being discerned and corresponding vocabulary are stored to the environment dictionary; And/or
Second sets up subelement, is used to set up the mapping relations between environment attribute and the vocabulary, and is saved to corresponding environment dictionary.
In the application's another kind of preferred embodiment, said acquiring unit 603 may further include:
The 3rd retrieval subelement is used for according to said input information and said input environment characteristic, and candidate item is made up in retrieval accordingly in the first combination candidate dictionary; The said first combination candidate word stock contains input information, input environment characteristic and corresponding combination candidate item; Perhaps
The 4th retrieval subelement is used for the environment attribute according to said input information and said input environment characteristic, and candidate item is made up in retrieval accordingly in the second combination candidate dictionary; The said second combination candidate word stock contains input information, environment attribute and corresponding combination candidate item.
In another preferred embodiment of the application, said device can also comprise: activation condition is preset the unit, is used for preset activation condition, specifically can comprise:
The first preset subelement is positioned at client, is used for the setting interface that provided through input method by the user, preset activation condition based on input information and/or input environment characteristic; And/or
The second preset subelement is positioned at server end, is used for preset activation condition based on input information and/or input environment characteristic, and pushes to client; And/or
The 3rd preset subelement is positioned at client, is used for the input environment characteristic according to trigger condition vocabulary, and/or trigger condition vocabulary and corresponding context vocabulary, preset activation condition based on input information and/or input environment characteristic.
In a kind of preferred embodiment of the application, said input environment characteristic specifically can comprise one or more in time environmental characteristic, geographical environment characteristic or the applied environment characteristic.
In a kind of preferred embodiment of the application, said input information specifically can comprise one or more in phonetic entry, handwriting input, keyboard input and the gesture input.
In a kind of preferred embodiment of the application, said device can also comprise:
Represent the unit, be used to represent said combination candidate item.
In the application's another kind of preferred embodiment, said device can also comprise:
Sequencing unit is used for the matching degree according to said combination candidate item and said input environment characteristic, and/or, the frequency of utilization of all or part of vocabulary in the said combination candidate item, and/or the searching order strategy sorts to said combination candidate item;
The then said unit that represents can specifically be used to represent the one or more combination candidate item that come the front.
In another preferred embodiment of the application, said device can also comprise:
Single candidate item retrieval unit is used for retrieving in common dictionary according to said input information, obtains corresponding single candidate item;
The then said unit that represents can specifically be used for when representing said single candidate item, representing said combination candidate item.
For device embodiment, because it is similar basically with method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.
More than to a kind of method and apparatus that obtains candidate item that the application provided; Carried out detailed introduction; Used concrete example among this paper the application's principle and embodiment are set forth, the explanation of above embodiment just is used to help to understand the application's method and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to the application's thought, the part that on embodiment and range of application, all can change, in sum, this description should not be construed as the restriction to the application.

Claims (24)

1. a method of obtaining candidate item is characterized in that, comprising:
Receive user's input information;
Gather the corresponding input environment characteristic of said input information;
, obtain and agree with said input information and said input environment combination of features candidate item during in said input information and/or said input environment characteristic with preset activation condition coupling; The segment word of said combination candidate item is associated with said input information, and segment word is associated with said input environment characteristic.
2. the method for claim 1 is characterized in that, the said step of agreeing with said input information and said input environment combination of features candidate item of obtaining comprises:
Obtain the environment attribute of said input environment characteristic;
From the environment dictionary, retrieve and obtain and corresponding first candidate word of said environment attribute;
Make up with said first candidate word with corresponding second candidate word of said input information, made up candidate item accordingly.
3. method as claimed in claim 2 is characterized in that, the said step of obtaining the environment attribute of said input environment characteristic comprises:
Obtain corresponding environment attribute through discerning said input environment characteristic; And/or
According to the corresponding relation of preset input information, environment attribute and input environment characteristic, obtain the environment attribute of said input environment characteristic by said input information, said input environment characteristic matching.
4. method as claimed in claim 2 is characterized in that, obtains and corresponding second candidate word of said input information through following steps:
Preset corresponding second candidate word of said input information; And/or
Retrieve in common dictionary according to said input information, obtain corresponding second candidate word; And/or
Retrieve in the screen vocabulary on record according to said input information, obtain corresponding second candidate word, the screen vocabulary of going up of said record comprises the trigger condition vocabulary and corresponding context vocabulary of going up screen.
5. method as claimed in claim 2 is characterized in that, sets up said environment dictionary through following steps:
The user import trigger condition vocabulary and on when shielding, the input environment characteristic of gathering this trigger condition vocabulary, the environment attribute of the identification input environment characteristic of gathering, and environment attribute of being discerned and corresponding vocabulary be stored to the environment dictionary; And/or
Set up the mapping relations between environment attribute and the vocabulary, and be saved to corresponding environment dictionary.
6. the method for claim 1 is characterized in that, the said step of agreeing with said input information and said input environment combination of features candidate item of obtaining comprises:
According to said input information and said input environment characteristic, candidate item is made up in retrieval accordingly in the first combination candidate dictionary; The said first combination candidate word stock contains input information, input environment characteristic and corresponding combination candidate item; Perhaps
According to the environment attribute of said input information and said input environment characteristic, candidate item is made up in retrieval accordingly in the second combination candidate dictionary; The said second combination candidate word stock contains input information, environment attribute and corresponding combination candidate item.
7. the method for claim 1 is characterized in that, presets activation condition through following method:
The setting interface that the user provides through input method, preset activation condition based on input information and/or input environment characteristic; And/or
The preset activation condition of server end based on input information and/or input environment characteristic, and push to client; And/or
Client is according to the input environment characteristic of trigger condition vocabulary, and/or trigger condition vocabulary and corresponding context vocabulary, preset activation condition based on input information and/or input environment characteristic.
8. like each described method in the claim 1 to 7, it is characterized in that said input environment characteristic comprises one or more in time environmental characteristic, geographical environment characteristic or the applied environment characteristic.
9. like each described method in the claim 1 to 7, it is characterized in that said input information comprises one or more in phonetic entry, handwriting input, keyboard input and the gesture input.
10. like each described method in the claim 1 to 7, it is characterized in that, also comprise:
Represent said combination candidate item.
11. method as claimed in claim 10 is characterized in that, also comprises:
According to the matching degree of said combination candidate item and said input environment characteristic, and/or, the frequency of utilization of all or part of vocabulary in the said combination candidate item, and/or the searching order strategy sorts to said combination candidate item;
The said step that represents said combination candidate item is to represent the one or more combination candidate item that come the front.
12. method as claimed in claim 10 also comprises:
According to said input information, in common dictionary, retrieve, obtain corresponding single candidate item;
The said step that represents said combination candidate item is when representing said single candidate item, to represent said combination candidate item.
13. a device that obtains candidate item is characterized in that, comprising:
Interface unit is used to receive user's input information;
Collecting unit is used to gather the corresponding input environment characteristic of said input information; And
Acquiring unit is used for, obtaining and agreeing with said input information and said input environment combination of features candidate item during with preset activation condition coupling in said input information and/or said input environment characteristic; The segment word of said combination candidate item is associated with said input information, and segment word is associated with said input environment characteristic.
14. device as claimed in claim 13 is characterized in that, said acquiring unit comprises:
Environment attribute obtains subelement, is used to obtain the environment attribute of said input environment characteristic;
The retrieval subelement is used for obtaining and corresponding first candidate word of said environment attribute from the retrieval of environment dictionary; And
The combination subelement is used for making up with said first candidate word with corresponding second candidate word of said input information, is made up candidate item accordingly.
15. device as claimed in claim 14 is characterized in that, said environment attribute obtains subelement and comprises:
Identification module is used for obtaining corresponding environment attribute through discerning said input environment characteristic; And/or
Matching module is used for the corresponding relation according to preset input information, environment attribute and input environment characteristic, is obtained the environment attribute of said input environment characteristic by said input information, said input environment characteristic matching.
16. device as claimed in claim 14 is characterized in that, also comprises: the second candidate word acquiring unit, be used to obtain and corresponding second candidate word of said input information, comprising:
Preset subelement is used for preset corresponding second candidate word of said input information; And/or
The first retrieval subelement is used for retrieving at common dictionary according to said input information, obtains corresponding second candidate word; And/or
The second retrieval subelement is used for retrieving according to said input information screen vocabulary on record, obtains corresponding second candidate word, and the screen vocabulary of going up of said record comprises the trigger condition vocabulary and corresponding context vocabulary of going up screen.
17. device as claimed in claim 14 is characterized in that, also comprises: the unit set up in the environment dictionary, is used to set up said environment dictionary, comprising:
First sets up subelement; Be used for the user import trigger condition vocabulary and on when shielding; Gather the input environment characteristic of this trigger condition vocabulary, discern the environment attribute of the input environment characteristic of gathering, and environment attribute of being discerned and corresponding vocabulary are stored to the environment dictionary; And/or
Second sets up subelement, is used to set up the mapping relations between environment attribute and the vocabulary, and is saved to corresponding environment dictionary.
18. device as claimed in claim 13 is characterized in that, said acquiring unit comprises:
The 3rd retrieval subelement is used for according to said input information and said input environment characteristic, and candidate item is made up in retrieval accordingly in the first combination candidate dictionary; The said first combination candidate word stock contains input information, input environment characteristic and corresponding combination candidate item; Perhaps
The 4th retrieval subelement is used for the environment attribute according to said input information and said input environment characteristic, and candidate item is made up in retrieval accordingly in the second combination candidate dictionary; The said second combination candidate word stock contains input information, environment attribute and corresponding combination candidate item.
19. device as claimed in claim 13 is characterized in that, also comprises: activation condition is preset the unit, is used for preset activation condition, comprising:
The first preset subelement is positioned at client, is used for the setting interface that provided through input method by the user, preset activation condition based on input information and/or input environment characteristic; And/or
The second preset subelement is positioned at server end, is used for preset activation condition based on input information and/or input environment characteristic, and pushes to client; And/or
The 3rd preset subelement is positioned at client, is used for the input environment characteristic according to trigger condition vocabulary, and/or trigger condition vocabulary and corresponding context vocabulary, preset activation condition based on input information and/or input environment characteristic.
20., it is characterized in that said input environment characteristic comprises one or more in time environmental characteristic, geographical environment characteristic or the applied environment characteristic like each described device in the claim 13 to 19.
21., it is characterized in that said input information comprises one or more in phonetic entry, handwriting input, keyboard input and the gesture input like each described device in the claim 13 to 19.
22. like each described device in the claim 13 to 19, it is characterized in that, also comprise:
Represent the unit, be used to represent said combination candidate item.
23. device as claimed in claim 22 is characterized in that, also comprises:
Sequencing unit is used for the matching degree according to said combination candidate item and said input environment characteristic, and/or, the frequency of utilization of all or part of vocabulary in the said combination candidate item, and/or the searching order strategy sorts to said combination candidate item;
The then said unit that represents specifically is used to represent the one or more combination candidate item that come the front.
24. method as claimed in claim 22 also comprises:
Single candidate item retrieval unit is used for retrieving in common dictionary according to said input information, obtains corresponding single candidate item;
The then said unit that represents specifically is used for when representing said single candidate item, representing said combination candidate item.
CN201210104217.8A 2012-04-10 2012-04-10 Method and device for obtaining candidate Active CN102646022B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210104217.8A CN102646022B (en) 2012-04-10 2012-04-10 Method and device for obtaining candidate

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210104217.8A CN102646022B (en) 2012-04-10 2012-04-10 Method and device for obtaining candidate

Publications (2)

Publication Number Publication Date
CN102646022A true CN102646022A (en) 2012-08-22
CN102646022B CN102646022B (en) 2014-07-09

Family

ID=46658860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210104217.8A Active CN102646022B (en) 2012-04-10 2012-04-10 Method and device for obtaining candidate

Country Status (1)

Country Link
CN (1) CN102646022B (en)

Cited By (34)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102945121A (en) * 2012-10-18 2013-02-27 北京天宇朗通通信设备股份有限公司 Method and device for inputting text
CN102955569A (en) * 2012-10-18 2013-03-06 北京天宇朗通通信设备股份有限公司 Method and device for text input
CN103268310A (en) * 2013-05-14 2013-08-28 百度在线网络技术(北京)有限公司 Self-medium message editing method and device on basis of recommendation
CN103631519A (en) * 2012-08-27 2014-03-12 三星电子株式会社 Method and apparatus for providing user interface
CN103699530A (en) * 2012-09-27 2014-04-02 百度在线网络技术(北京)有限公司 Method and equipment for inputting texts in target application according to voice input information
CN103956169A (en) * 2014-04-17 2014-07-30 北京搜狗科技发展有限公司 Speech input method, device and system
CN104268182A (en) * 2014-09-16 2015-01-07 百度在线网络技术(北京)有限公司 Candidate word sorting method and device and word input method and device
CN104267825A (en) * 2014-09-01 2015-01-07 深圳市金立通信设备有限公司 Character input method
CN104267821A (en) * 2014-09-01 2015-01-07 深圳市金立通信设备有限公司 Terminal
WO2015096596A1 (en) * 2013-12-24 2015-07-02 百度国际科技(深圳)有限公司 Information push method, apparatus, non-volatile storage medium, and device
CN104932786A (en) * 2015-06-02 2015-09-23 百度在线网络技术(北京)有限公司 Method and device for presenting sequence of candidate words
CN105045412A (en) * 2015-08-28 2015-11-11 百度在线网络技术(北京)有限公司 Method and system for generating candidate item of input method
CN105117195A (en) * 2015-09-09 2015-12-02 百度在线网络技术(北京)有限公司 Method and device for guiding voice input
WO2015192313A1 (en) * 2014-06-17 2015-12-23 Google Inc. Input method editor for inputting names of geographic locations
CN105260084A (en) * 2015-11-03 2016-01-20 百度在线网络技术(北京)有限公司 Processing method and device of input sequences
WO2016037520A1 (en) * 2014-09-09 2016-03-17 北京搜狗科技发展有限公司 Input method and apparatus and electronic device
CN105786207A (en) * 2016-02-25 2016-07-20 百度在线网络技术(北京)有限公司 Information input method and device
CN106125955A (en) * 2016-06-23 2016-11-16 百度在线网络技术(北京)有限公司 A kind of method and apparatus that hot word is provided in applying in input method
CN106774969A (en) * 2015-11-20 2017-05-31 北京搜狗科技发展有限公司 A kind of input method and device
WO2017088247A1 (en) * 2015-11-23 2017-06-01 小米科技有限责任公司 Input processing method, device and apparatus
CN106934257A (en) * 2015-12-30 2017-07-07 航天信息软件技术有限公司 A kind of program encryption methods and procedures encryption device
CN106933381A (en) * 2017-03-16 2017-07-07 联想(北京)有限公司 A kind of information processing method and device
CN107247519A (en) * 2017-08-16 2017-10-13 北京搜狗科技发展有限公司 A kind of input method and device
CN107256170A (en) * 2017-06-16 2017-10-17 北京百度网讯科技有限公司 Method and apparatus for the activation input method setting option of terminal device
CN107346182A (en) * 2016-05-05 2017-11-14 北京搜狗科技发展有限公司 A kind of method for building user thesaurus and the device for building user thesaurus
CN107479726A (en) * 2017-09-27 2017-12-15 联想(北京)有限公司 A kind of data inputting method and electronic equipment
CN107992210A (en) * 2017-10-11 2018-05-04 捷开通讯(深圳)有限公司 Input method vocabulary recommends method, intelligent terminal and the device with store function
CN108803890A (en) * 2017-04-28 2018-11-13 北京搜狗科技发展有限公司 A kind of input method, input unit and the device for input
CN108874170A (en) * 2017-05-08 2018-11-23 北京搜狗科技发展有限公司 A kind of input method and device
CN109521888A (en) * 2017-09-19 2019-03-26 北京搜狗科技发展有限公司 A kind of input method, device and medium
CN110334271A (en) * 2019-05-21 2019-10-15 北京奇艺世纪科技有限公司 A kind of search result optimization method, system, electronic equipment and storage medium
CN111103986A (en) * 2018-10-26 2020-05-05 北京搜狗科技发展有限公司 User word stock management method and device and input method and device
CN111522448A (en) * 2019-02-02 2020-08-11 北京搜狗科技发展有限公司 Method, device and equipment for providing input candidate items
CN112818211A (en) * 2019-11-15 2021-05-18 北京搜狗科技发展有限公司 Data processing method, device and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002123350A (en) * 2000-10-13 2002-04-26 Koji Kobayashi Input system by pointing device and character input system by the same system
CN101178737A (en) * 2006-12-12 2008-05-14 北京搜狗科技发展有限公司 Method and system for publishing information related to internet key character
CN101398834A (en) * 2007-09-29 2009-04-01 北京搜狗科技发展有限公司 Processing method and device for input information and input method system
CN101751202A (en) * 2008-12-17 2010-06-23 爱思开电讯投资(中国)有限公司 Method and device for character associative input based on environmental information
CN102207816A (en) * 2010-07-16 2011-10-05 北京搜狗科技发展有限公司 Method for performing adaptive input based on input environment, and input method system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002123350A (en) * 2000-10-13 2002-04-26 Koji Kobayashi Input system by pointing device and character input system by the same system
CN101178737A (en) * 2006-12-12 2008-05-14 北京搜狗科技发展有限公司 Method and system for publishing information related to internet key character
CN101398834A (en) * 2007-09-29 2009-04-01 北京搜狗科技发展有限公司 Processing method and device for input information and input method system
CN101751202A (en) * 2008-12-17 2010-06-23 爱思开电讯投资(中国)有限公司 Method and device for character associative input based on environmental information
CN102207816A (en) * 2010-07-16 2011-10-05 北京搜狗科技发展有限公司 Method for performing adaptive input based on input environment, and input method system

Cited By (54)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631519A (en) * 2012-08-27 2014-03-12 三星电子株式会社 Method and apparatus for providing user interface
CN103699530A (en) * 2012-09-27 2014-04-02 百度在线网络技术(北京)有限公司 Method and equipment for inputting texts in target application according to voice input information
CN102955569A (en) * 2012-10-18 2013-03-06 北京天宇朗通通信设备股份有限公司 Method and device for text input
CN102945121A (en) * 2012-10-18 2013-02-27 北京天宇朗通通信设备股份有限公司 Method and device for inputting text
CN102955569B (en) * 2012-10-18 2016-03-23 北京天宇朗通通信设备股份有限公司 The method of Text Input and device
CN103268310A (en) * 2013-05-14 2013-08-28 百度在线网络技术(北京)有限公司 Self-medium message editing method and device on basis of recommendation
WO2015096596A1 (en) * 2013-12-24 2015-07-02 百度国际科技(深圳)有限公司 Information push method, apparatus, non-volatile storage medium, and device
CN103956169A (en) * 2014-04-17 2014-07-30 北京搜狗科技发展有限公司 Speech input method, device and system
CN103956169B (en) * 2014-04-17 2017-07-21 北京搜狗科技发展有限公司 A kind of pronunciation inputting method, device and system
CN111176456B (en) * 2014-06-17 2023-06-06 谷歌有限责任公司 Input method editor for inputting geographic location names
WO2015192313A1 (en) * 2014-06-17 2015-12-23 Google Inc. Input method editor for inputting names of geographic locations
US10386935B2 (en) 2014-06-17 2019-08-20 Google Llc Input method editor for inputting names of geographic locations
CN111176456A (en) * 2014-06-17 2020-05-19 谷歌有限责任公司 Input method editor for inputting geographical location names
CN104267821A (en) * 2014-09-01 2015-01-07 深圳市金立通信设备有限公司 Terminal
CN104267825A (en) * 2014-09-01 2015-01-07 深圳市金立通信设备有限公司 Character input method
WO2016037520A1 (en) * 2014-09-09 2016-03-17 北京搜狗科技发展有限公司 Input method and apparatus and electronic device
US10345923B2 (en) 2014-09-09 2019-07-09 Beijing Sogou Technology Development Co., Ltd. Input method, apparatus, and electronic device
CN104268182A (en) * 2014-09-16 2015-01-07 百度在线网络技术(北京)有限公司 Candidate word sorting method and device and word input method and device
CN104932786A (en) * 2015-06-02 2015-09-23 百度在线网络技术(北京)有限公司 Method and device for presenting sequence of candidate words
CN105045412A (en) * 2015-08-28 2015-11-11 百度在线网络技术(北京)有限公司 Method and system for generating candidate item of input method
CN105117195B (en) * 2015-09-09 2018-05-08 百度在线网络技术(北京)有限公司 The bootstrap technique and device of phonetic entry
CN105117195A (en) * 2015-09-09 2015-12-02 百度在线网络技术(北京)有限公司 Method and device for guiding voice input
CN105260084A (en) * 2015-11-03 2016-01-20 百度在线网络技术(北京)有限公司 Processing method and device of input sequences
CN106774969B (en) * 2015-11-20 2021-12-14 北京搜狗科技发展有限公司 Input method and device
CN106774969A (en) * 2015-11-20 2017-05-31 北京搜狗科技发展有限公司 A kind of input method and device
US10614154B2 (en) 2015-11-23 2020-04-07 Xiaomi Inc. Methods, devices, and computer-readable medium for predicting the intended input from a user of an application in an electronic device
WO2017088247A1 (en) * 2015-11-23 2017-06-01 小米科技有限责任公司 Input processing method, device and apparatus
CN106934257A (en) * 2015-12-30 2017-07-07 航天信息软件技术有限公司 A kind of program encryption methods and procedures encryption device
CN105786207B (en) * 2016-02-25 2018-09-11 百度在线网络技术(北京)有限公司 Data inputting method and device
CN105786207A (en) * 2016-02-25 2016-07-20 百度在线网络技术(北京)有限公司 Information input method and device
CN107346182A (en) * 2016-05-05 2017-11-14 北京搜狗科技发展有限公司 A kind of method for building user thesaurus and the device for building user thesaurus
CN107346182B (en) * 2016-05-05 2021-11-02 北京搜狗科技发展有限公司 Method and device for constructing user word bank
CN106125955A (en) * 2016-06-23 2016-11-16 百度在线网络技术(北京)有限公司 A kind of method and apparatus that hot word is provided in applying in input method
CN106125955B (en) * 2016-06-23 2019-05-07 百度在线网络技术(北京)有限公司 A kind of method and apparatus for the offer hot word in input method is applied
CN106933381A (en) * 2017-03-16 2017-07-07 联想(北京)有限公司 A kind of information processing method and device
CN108803890B (en) * 2017-04-28 2024-02-06 北京搜狗科技发展有限公司 Input method, input device and input device
CN108803890A (en) * 2017-04-28 2018-11-13 北京搜狗科技发展有限公司 A kind of input method, input unit and the device for input
CN108874170A (en) * 2017-05-08 2018-11-23 北京搜狗科技发展有限公司 A kind of input method and device
CN108874170B (en) * 2017-05-08 2023-05-23 北京搜狗科技发展有限公司 Input method and device
CN107256170A (en) * 2017-06-16 2017-10-17 北京百度网讯科技有限公司 Method and apparatus for the activation input method setting option of terminal device
CN107247519B (en) * 2017-08-16 2020-09-29 北京搜狗科技发展有限公司 Input method and device
CN107247519A (en) * 2017-08-16 2017-10-13 北京搜狗科技发展有限公司 A kind of input method and device
CN109521888A (en) * 2017-09-19 2019-03-26 北京搜狗科技发展有限公司 A kind of input method, device and medium
CN109521888B (en) * 2017-09-19 2022-11-01 北京搜狗科技发展有限公司 Input method, device and medium
WO2019062008A1 (en) * 2017-09-27 2019-04-04 联想(北京)有限公司 Information input method, electronic device, and non-volatile storage medium
CN107479726A (en) * 2017-09-27 2017-12-15 联想(北京)有限公司 A kind of data inputting method and electronic equipment
CN107992210A (en) * 2017-10-11 2018-05-04 捷开通讯(深圳)有限公司 Input method vocabulary recommends method, intelligent terminal and the device with store function
CN111103986A (en) * 2018-10-26 2020-05-05 北京搜狗科技发展有限公司 User word stock management method and device and input method and device
CN111103986B (en) * 2018-10-26 2023-11-14 北京搜狗科技发展有限公司 User word stock management method and device, and user word stock input method and device
CN111522448A (en) * 2019-02-02 2020-08-11 北京搜狗科技发展有限公司 Method, device and equipment for providing input candidate items
CN111522448B (en) * 2019-02-02 2024-04-30 北京搜狗科技发展有限公司 Method, device and equipment for providing input candidate items
CN110334271B (en) * 2019-05-21 2022-01-11 北京奇艺世纪科技有限公司 Search result optimization method and system, electronic device and storage medium
CN110334271A (en) * 2019-05-21 2019-10-15 北京奇艺世纪科技有限公司 A kind of search result optimization method, system, electronic equipment and storage medium
CN112818211A (en) * 2019-11-15 2021-05-18 北京搜狗科技发展有限公司 Data processing method, device and medium

Also Published As

Publication number Publication date
CN102646022B (en) 2014-07-09

Similar Documents

Publication Publication Date Title
CN102646022B (en) Method and device for obtaining candidate
CN105718547B (en) Guidance method based on sight spot label and system
CN105051761A (en) Questions answering to populate knowledge base
CN102461217A (en) Providing search results to a computing device
CN102483748A (en) Query parsing for map search
CN103631819A (en) Method and system for naming picture
CN105608609B (en) Method and device for pushing travel information and electronic equipment
CN102426591A (en) Method and device for operating corpus used for inputting contents
CN106205613B (en) A kind of navigation audio recognition method and system
CN102855317A (en) Multimode indexing method and system based on demonstration video
CN106649409A (en) Method and apparatus for displaying search result based on scene information
CN102789508A (en) Distributed practical condition search engine and chat system on basis of geographical position
CN104111935A (en) Server and microblog pushing method and system
CN102752336A (en) User generated content (UGC) sharing method and system based on geographical location service
CN104468941A (en) Information display method and device
CN103902536A (en) Popular activity display method and system based on electronic map
CN101754363A (en) System, method and device for identifying position
CN105279256A (en) Inquiry method combining geographic information and images and inquiry system combining geographic information and images
CN103443853A (en) Automated conversation assistance
CN105320758A (en) Search service platform and search service method therefor
CN102799594A (en) Information push method and device
CN104199837A (en) Information output method and electronic equipment
CN101013438A (en) Method for extending and inquiring graph and multimedia data of electronic map
CN102436458B (en) A kind of method of command analysis and system thereof
CN105138681A (en) Picture search method and system based on space coordinate positioning

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant