CN108427508A - Input method and device, the method and apparatus for establishing LAN dictionary - Google Patents

Input method and device, the method and apparatus for establishing LAN dictionary Download PDF

Info

Publication number
CN108427508A
CN108427508A CN201710082267.3A CN201710082267A CN108427508A CN 108427508 A CN108427508 A CN 108427508A CN 201710082267 A CN201710082267 A CN 201710082267A CN 108427508 A CN108427508 A CN 108427508A
Authority
CN
China
Prior art keywords
preset
entry
lan
dictionary
user
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
CN201710082267.3A
Other languages
Chinese (zh)
Other versions
CN108427508B (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 CN201710082267.3A priority Critical patent/CN108427508B/en
Publication of CN108427508A publication Critical patent/CN108427508A/en
Application granted granted Critical
Publication of CN108427508B publication Critical patent/CN108427508B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Abstract

An embodiment of the present invention provides a kind of input method and device, method therein specifically includes:Obtain the input string and current local area network environment of user;According to the input string, the corresponding LAN dictionary of the current local area network environment is inquired, to obtain the preset entry of target to match with the input string;The LAN dictionary is for storing the mapping relations met under input string and LAN environment between the preset entry of preset condition;When there is the preset entry of the target to match with the input string in the LAN dictionary, the preset entry of the target is showed as candidate item.The embodiment of the present invention enables to user that can select the common entry under current local area network environment directly in candidate item, therefore can save cumbersome word for word selection operation, so as to improve the input efficiency for commonly using entry under specific environment.

Description

Input method and device, the method and apparatus for establishing LAN dictionary
Technical field
The present invention relates to input method technique field more particularly to a kind of input method and device, a kind of establishing LAN word The method and apparatus in library and a kind of device for input and a kind of device for establishing LAN dictionary.
Background technology
For using the user of the language such as Chinese, Japanese, Korean, it is typically necessary through input method procedure and calculating Machine interacts.For example, user can input string by a keyboard entry, then reflected by the input method procedure standard preset according to its It penetrates rule the input string is converted to the candidate item of corresponding language and is showed, and then will shield in the candidate item of user's selection.Input Method program usually all has the dictionary of oneself, the common entry in internet can be preserved in the dictionary, when user passes through keyboard After equal input equipments have input certain input string, input method procedure can be corresponding by the input string by inquiring the dictionary Entry is as candidate presenting to user.
The present inventor has found during implementing the embodiment of the present invention, the input method procedure in existing scheme Dictionary can mostly just preserve the common entry that the frequency of occurrences within the scope of internet is higher than frequency threshold;However, actually answering In, there is only the input demands of above-mentioned common entry by some users, but also can have the input of non-above-mentioned common entry Demand.For example, the title of some dormitory building in school, the title of certain teaching building, in certain campus the title of road or certain Position teacher name, be the teaching and administrative staff of school or the content that student would generally input, especially these dormitory buildings, teaching building or Person's road also has nickname, such as princess building, Bo Shilou, oriental cherry main road etc. in the school, these nicknames make in campus It is higher with frequency, but use within the scope of internet to obtain not originals such as (such as the frequency of occurrences is well below frequency threshold) extensively Cause causes the above that may not be included the dictionary into input method procedure.
Therefore, in the input process of non-everyday words item, user carries out on repeatedly existing scheme usually as unit of individual character Screen, and need to select required individual character from numerous individual character candidate items, by taking the input of certain name " Zhang Hui is " as an example, Yong Huxu It word for word to select successively and upper screen " opening ", " brightness " and " all " is to complete the input of the name, it is cumbersome that this does not only result in input process, And affect input efficiency.
Invention content
The embodiment of the present invention provides a kind of input method and device, the method and apparatus for establishing LAN dictionary, Yi Jiyong It is cumbersome and input to solve user's input process in the prior art in the device of input and device for establishing LAN dictionary Less efficient problem.
To solve the above-mentioned problems, the invention discloses a kind of input methods, including:
Obtain the input string and current local area network environment of user;
According to the input string, inquire the corresponding LAN dictionary of the current local area network environment, with obtain with it is described defeated Enter the preset entry of target that string matches;The LAN dictionary meets default item for storing under input string and LAN environment Mapping relations between the preset entry of part;
It is when there is the preset entry of the target to match with the input string in the LAN dictionary, the target is pre- Entry is set as candidate item to be showed.
Optionally, the method further includes:
When entry preset there is no the target to match with the input string in the LAN dictionary, in the user In completion after screen operation, LAN dictionary described in the upper screen content update according to the user.
Optionally, described in the upper screen content update according to the user the step of LAN dictionary, including:
The mapping between upper screen content input string corresponding with the upper screen content is stored in the preset dictionary Relationship.
Optionally, described the step of being showed the preset entry as candidate item, including:
While showing the target preset entry, show the class label of the preset entry of the target.
Optionally, the preset entry includes:Preset folded sound entry, the preset folded sound entry are according to the preset word The preset name entry that item includes obtains;Then the preset entry of the target includes:The preset folded sound entry of target.
Optionally, the step of according to the input string, inquiring the current local area network environment corresponding LAN dictionary Before, the method further includes:
Judge whether the user is login user under the current local area network environment;
If the user is login user, the access limit of the LAN dictionary is assigned to the user;If alternatively, The user is to be not logged in user, then assigns the read right of the LAN dictionary to the user;Wherein, the read right packet It includes:Inquire the LAN dictionary;The write permission includes:Update the LAN dictionary;
If the user has the read right of the LAN dictionary, execute described according to the input string, inquiry institute The step of stating current local area network environment corresponding LAN dictionary.
On the other hand, the invention discloses a kind of input units, including:
Acquisition module, the input string for obtaining user and current local area network environment;
Enquiry module, for according to the input string, inquiring the corresponding LAN dictionary of the current local area network environment, with Obtain the preset entry of target to match with the input string;The LAN dictionary is for storing input string and LAN environment Under meet mapping relations between the preset entry of preset condition;
Display module, for when there is the preset entry of target that matches with the input string in the LAN dictionary When, the preset entry of the target is showed as candidate item.
Optionally, described device further includes:
Update module, for when there is no the preset entries of target to match with the input string in the LAN dictionary When, in user's completion after screen operation, LAN dictionary described in the upper screen content update according to the user.
Optionally, the update module, including:
Sub-module stored, it is corresponding defeated for storing the upper screen content and the upper screen content in the preset dictionary Enter the mapping relations between string.
Optionally, the display module, including:
Show submodule, for while showing the target preset entry, showing the class of the preset entry of the target Distinguishing label.
Optionally, the preset entry includes:Preset folded sound entry, the preset folded sound entry are according to the preset word The preset name entry that item includes obtains;Then the preset entry of the target includes:The preset folded sound entry of target.
Optionally, described device further includes:
Judgment module, for judging whether the user is login user under the current local area network environment;
Permission assigns module, if being login user for the user, the access limit of the LAN dictionary is assigned Give the user;If alternatively, the user is to be not logged in user, the read right of the LAN dictionary is assigned to the use Family;Wherein, the read right includes:Inquire the LAN dictionary;The write permission includes:Update the LAN dictionary;
Execution module executes if having the read right of the LAN dictionary for the user described in the foundation Input string, the step of inquiring the LAN environment corresponding LAN dictionary.
In another aspect, the invention discloses a kind of methods for establishing LAN dictionary, including:
Collect the preset entry under LAN environment;The preset entry meets the default item under the LAN environment Part;
According to the mapping relations between preset entry input string corresponding with the preset entry, LAN word is established Library.
Optionally, the step of preset entry collected under LAN environment, including:
The history collected under LAN environment inputs entry, and the history for meeting the first preset condition is inputted entry as pre- Set entry;Wherein, first preset condition includes:The input number of the history input entry is more than predetermined threshold value.
Optionally, the step of preset entry collected under LAN environment, including:
The address list list for collecting user under LAN environment, will meet the second preset condition in the address list list Entry is as preset entry;Wherein, second preset condition includes:Entry in the address list list is in the address list The number occurred in list is more than predetermined threshold value, and/or, the entry in the address list list includes and the LAN environment Relevant information;And/or
The corresponding preset title of LAN environment is collected, the preset name for meeting third preset condition is referred to as preset word Item;Wherein, the third preset condition includes:Proprietary name under the preset entitled LAN environment.
Optionally, the preset entry includes:Preset name entry, then the method further include:
According to the preset name entry, corresponding preset folded sound entry is obtained;
It is stored in the LAN dictionary between the corresponding preset folded sound input string of the preset folded sound entry Mapping relations.
Another aspect, the invention discloses a kind of devices for establishing LAN dictionary, including:
Entry collection module, for collecting the preset entry under LAN environment;The preset entry meets the local Preset condition under net environment;
Dictionary establishes module, for according to the mapping between preset entry input string corresponding with the preset entry Relationship establishes LAN dictionary.
Optionally, the entry collection module, including:
First collects submodule, inputs entry for collecting the history under LAN environment, will meet the first preset condition History input entry as preset entry;Wherein, first preset condition includes:The input time of the history input entry Number is more than predetermined threshold value.
Optionally, the entry collection module, including:
Second collects submodule, the address list list for collecting user under LAN environment, by the address list list In meet the entry of the second preset condition as preset entry;Wherein, second preset condition includes:The address list list In the number that occurs in the address list list of entry be more than predetermined threshold value, and/or, the entry in the address list list Including with the relevant information of the LAN environment;And/or
Third collects submodule will meet third preset condition for collecting the corresponding preset title of LAN environment Preset name is referred to as preset entry;Wherein, the third preset condition includes:Under the preset entitled LAN environment Proprietary name.
Optionally, the preset entry includes:Preset name entry, then described device further include:
Folded sound entry acquisition module, for according to the preset name entry, obtaining corresponding preset folded sound entry;
Folded sound entry memory module, it is corresponding for storing the preset folded sound entry in the LAN dictionary Mapping relations between preset folded sound input string.
Include memory and one or one in another aspect, the invention discloses a kind of device for input Above program, one of them either more than one program be stored in memory and be configured to by one or one with It includes the instruction for being operated below that upper processor, which executes the one or more programs,:
Obtain the input string and current local area network environment of user;
According to the input string, inquire the corresponding LAN dictionary of the current local area network environment, with obtain with it is described defeated Enter the preset entry of target that string matches;The LAN dictionary meets default item for storing under input string and LAN environment Mapping relations between the preset entry of part;
It is when there is the preset entry of the target to match with the input string in the LAN dictionary, the target is pre- Entry is set as candidate item to be showed.
Another aspect, the invention discloses a kind of devices for establishing LAN dictionary, include memory, Yi Jiyi A either more than one program one of them or more than one program is stored in memory, and is configured to by one Or it includes the instruction for being operated below that more than one processor, which executes the one or more programs,:
Collect the preset entry under LAN environment;The preset entry meets the default item under the LAN environment Part;
According to the mapping relations between preset entry input string corresponding with the preset entry, LAN word is established Library.
The embodiment of the present invention includes following advantages:
The embodiment of the present invention increases LAN word corresponding with LAN environment on the basis of existing input method dictionary Library, since the LAN dictionary is between storing and meeting the preset entry of preset condition under input string and LAN environment Mapping relations so that in the input process of user, input method procedure can be obtained from the LAN dictionary with user's Meet the preset entry of preset condition under the current local area network environment that input string matches, namely user is directly being waited The common entry under current local area network environment is selected in option, therefore can save cumbersome word for word selection operation, so as to carry The input efficiency of entry is commonly used under high specific environment.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the present invention Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is a kind of step flow chart of embodiment of the method for establishing LAN dictionary of the present invention;
Fig. 2 is a kind of step flow chart of input method embodiment one of the present invention;
Fig. 3 is a kind of step flow chart of input method embodiment two of the present invention;
Fig. 4 is a kind of structure diagram of input unit embodiment of the present invention;
Fig. 5 is a kind of structure diagram of device embodiment for establishing LAN dictionary of the present invention;
Fig. 6 is a kind of block diagram of device 800 for input of the present invention;And
Fig. 7 is the structural schematic diagram of server in some embodiments of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.
In order to illustrate more clearly of the input method of the present invention, building for the LAN dictionary of the embodiment of the present invention is introduced first Vertical process shows a kind of step flow chart of embodiment of the method for establishing LAN dictionary of the present invention, specifically referring to Fig.1 May include:
Preset entry under step 101, collection LAN environment, the preset entry meet under the LAN environment Preset condition;
Step 102, according to the mapping relations between preset entry input string corresponding with the preset entry, establish LAN dictionary.
The embodiment of the present invention can be applied to the input method procedure of the various input modes such as keyboard symbol, i.e. user can pass through Coded string (namely input string in this specification) carries out word input.In input method field, for such as Chinese, day The input method procedure of text, Korean or other Languages, can be converted into input string input by user the candidate of corresponding language .It is mainly illustrated by taking Chinese as an example below, other Languages is cross-referenced.Wherein, the Chinese character coding input method include but Be not limited to spelling, simplicity, stroke, five etc..
The embodiment of the present invention has the characteristics that specific input demand according to user under specific input environment, is used in user During input method procedure, other than obtaining the input string of user, current local area network environment can also be obtained, the current local Net environment can be used for indicating user when inputting the input string by terminal, the LAN environment residing for the terminal.Specifically, may be used Current office is determined with the network segment range by IP (Internet Protocol, Internet protocol) address of terminal where input string Domain net environment, for example, certain user carries out word input, and the IP address of the terminal of the user by the input method procedure in terminal For 11.22.33.5, and the network segment of company A ranging from 11.22.33.0 to 11.22.33.254, then current local area network environment can be with It is related to company A.Alternatively, whether can also be in the geographic range of certain LAN according to the location information of terminal, to determine Current local area network environment.It is appreciated that the embodiment of the present invention is not limited for obtaining the concrete mode of current local area network environment System.Optionally, the terminal of the embodiment of the present invention specifically includes but unlimited:Smart mobile phone, tablet computer, E-book reader, MP3 (dynamic image expert's compression standard audio level 3, Moving Picture Experts Group Audio Layer III) Player, MP4 (dynamic image expert's compression standard audio level 4, Moving Picture Experts Group Audio Layer IV) it is player, pocket computer on knee, vehicle-mounted computer, desktop computer, set-top box, intelligent TV set, wearable Equipment etc..
Since LAN environment often has regionality, the user under same LAN environment has common input demand Possibility it is larger, for example, the office building of certain company can set up a LAN environment, in the LAN environment, user It is frequently necessary to input identical name, project name, Business Name etc..These names, project name, Business Name are in the said firm LAN environment under belong to everyday words item, therefore, in order to enable user can be so as under the LAN environment where the said firm The common entry such as the name, project name, Business Name is inputted promptly, and the embodiment of the present invention is in existing input method dictionary On the basis of, increase LAN dictionary corresponding with LAN environment, which can be used for storing input string and LAN Meet the mapping relations between the preset entry of preset condition under environment.Optionally, the preset condition is specifically as follows common Condition, which can be used for indicating that the preset entry is the common entry under the LAN environment, so as to logical It crosses LAN dictionary and provides a user the candidate item for meeting current local area network environment, entry is commonly used under specific environment to improve Input efficiency.
The present invention a kind of alternative embodiment in, it is described collect LAN environment under preset entry the step of, specifically May include:Collect LAN environment under history input entry, using meet the first preset condition history input entry as Preset entry;Wherein, first preset condition may include:The input number of the history input entry is more than default threshold Value.
It should be noted that the particular content that the embodiment of the present invention inputs the history entry does not limit, for example, Above-mentioned history input entry can be that user passes through documentor, instant messaging program, mailbox program etc. under LAN environment The entry of random procedure input.Optionally, the history input entry can be the corresponding name of LAN environment, entry name The entry of the preset title such as title, Business Name, building name, name of product, for example, " magic horn through ", " smart keys ", " GB5094-85 " is the entry etc. corresponding to the information of name of product.
In embodiments of the present invention, the preset entry in the LAN dictionary can be under the LAN environment collected High frequency entry, so as to provide a user the candidate item for meeting current local area network environment, so that user quickly inputs.
For example, it is assumed that predetermined threshold value is 3, then if a certain history input entry was entered under current local area network environment 3 times, it is believed that it is high frequency entry that the history, which inputs entry under current local area network environment, meets the first preset condition, can be with History input entry is stored in as preset entry in the corresponding LAN dictionary of current local area network environment.
It should be noted that the one kind of the mode of the preset entry under above-mentioned collection LAN environment only as the present invention is answered With example, the embodiment of the present invention is not limited for collecting the concrete mode of preset entry.Optionally, the collection LAN The step of preset entry under environment, can also include:The address list list for collecting user under LAN environment, by the communication Meet the entry of the second preset condition as preset entry in record list;Wherein, second preset condition includes:The communication The number that entry in record list occurs in the address list list is more than predetermined threshold value;And/or in the address list list Entry include and the relevant information of the LAN environment.
Wherein, the address list list can specifically include the Affiliates List of the preservations such as the mobile phone of user, mailbox, or Buddy list etc. in the social software of user, it will be understood that specific shape of the embodiment of the present invention for the address list list Formula does not limit.It specifically, can be in the case where user authorizes, from the mobile phone of user, the address list of mailbox, social software The entries such as name of contact person therein, remarks title, the pet name are imported in list in batches as preset entry.
In practical applications, second preset condition can be flexibly arranged in those skilled in the art, if for example, described logical News record list in entry include with the relevant information of LAN environment, such as remark information or grouping information, can also recognize Meet the second preset condition for the entry in the address list list.For example, some contact in the address list list of certain user The name of people is " Zhang Qiang ", and the remark information of the name is " colleague ", then can determine entry " Zhang Qiang " where the user Meet the second preset condition under the LAN environment of company, it can be using the entry as preset entry.
Optionally, it is described collect LAN environment under preset entry the step of, can also include:Collect LAN environment The preset name for meeting third preset condition is referred to as preset entry by corresponding preset title;Wherein, the third preset condition May include:Proprietary name under the preset entitled LAN environment.In a particular application, the preset title can To include:The corresponding building name of LAN environment and/or name of product and/or project name and/or Business Name etc..It is logical The method is crossed, can be using the proprietary name of the marker under LAN environment as preset entry, the marker specifically can be with Including distinctive arbitrary objects under the LAN environments such as building, road under the LAN environment.
Optionally, the embodiment of the present invention can also by manual type by user commonly include employee name, building Title, name of product, project name all kinds of lists uploaded, by employee name therein, building name, entry name Referred to as preset entry is stored in LAN dictionary.The benefit of the preset entry under LAN environment is determined by manual type It is, before input method procedure has not been used in user, so that it may to gather the preset entry under current local area network environment in advance, And LAN dictionary is established, in this way, the arbitrary user under the LAN environment when inputting for the first time, you can in candidate item See the common entry under the LAN environment, offers convenience for user's input.Certainly, local is determined above by manual type Preset entry under net environment is intended only as alternative embodiment, in fact, those skilled in the art can also be according to practical application Demand captures the corresponding preset name information of internet environment from internet environment, for example, can from webpage or from In chat/interactive information of the user under LAN environment, or from the corresponding preset name of the medium crawl internet environment of mail Claim information.For example, from the relevant webpage of company (such as company's site's webpage, non-company's site include with the relevant net of the said firm Page etc., for example, the non-company's site can be recruitment website, government website etc.) in the corresponding preset name of crawl internet environment Claim information.
The embodiment of the present invention can input entry by the history collected under LAN environment, collect and be used under LAN environment The modes such as the address list list at family, artificial upload establish LAN dictionary so that the preset entry in the LAN dictionary meets Input habit in the LAN environment area intra domain user, as long as detecting that user is under the LAN environment, you can be The user provides the common entry under the LAN environment, and formation more meets displaying expected from user and inputs.For example, passing through receipts The address list list for collecting user under LAN environment, is stored with input string " zhanghuidu " and preset word in LAN dictionary Mapping relations between item " Zhang Hui is ".When user inputs input string " zhanghuidu " under the LAN environment, you can Show candidate item " Zhang Hui is " to the user.Compared with the existing technology middle user need successively word for word selection and upper screen " opening ", " brightness " and " all " to complete the input of the entry, when user inputs next time, input method procedure is likely to show candidate item " Zhang Hui All ", the embodiment of the present invention can be when inputting for the first time, you can matched candidate item is provided a user, to improve the defeated of user Enter efficiency.
To sum up, the method for establishing LAN dictionary of the embodiment of the present invention increases on the basis of existing input method dictionary Add LAN dictionary corresponding with LAN environment, since the LAN dictionary is for storing under input string and LAN environment Meet the mapping relations between the preset entry of preset condition so that in the input process of user, input method procedure can be from It is obtained in the LAN dictionary and meets the preset of preset condition under the current local area network environment to match with the input string of user Entry, namely user is allow to select the common entry under current local area network environment directly in candidate item, therefore can save Cumbersome word for word selection operation, so as to improve the input efficiency for commonly using entry under specific environment.
With reference to Fig. 2, shows a kind of step flow chart of input method embodiment one of the present invention, can specifically include:
Step 201, the input string and current local area network environment for obtaining user;
Step 202, according to the input string, the corresponding LAN dictionary of the current local area network environment is inquired, to obtain The preset entry of target to match with the input string;The LAN dictionary is accorded with for storing under input string and LAN environment Close the mapping relations between the preset entry of preset condition;
Step 203, when there is the preset entry of the target to match with the input string in the LAN dictionary, by institute The preset entry of target is stated as candidate item to be showed.
LAN dictionary in the embodiment of the present invention with LAN environment there is correspondence, the LAN dictionary to be used for Meet the mapping relations between the preset entry of preset condition under storage input string and LAN environment.Optionally, described default Condition is specifically as follows typical conditions, which can be used for indicating that the preset entry is normal under the LAN environment Use entry.For example, to the LAN environment of Mr. Yu company, corresponding LAN dictionary can be established, is deposited in the LAN dictionary Contain the mapping relations met under input string and the LAN environment of the said firm between the preset entry of preset condition, wherein should The preset entry for meeting preset condition under the LAN environment of company can specifically include:Project name, Business Name, employee's surname Name etc..For another example, to the LAN environment of Mr. Yu school, corresponding LAN dictionary can also be established, is deposited in the LAN dictionary Contain the mapping relations met under input string and the LAN environment of the school between the preset entry of preset condition, wherein should The preset entry for meeting preset condition under the LAN environment of school can specifically include:The title of dormitory building, the name of teaching building Title, student name, the teacher's name etc. of road in title, campus.
In a kind of application example of the present invention, certain user name " Zhang Hui is " to be inputted under corporate lan environment, Input string is " zhanghuidu ", it is assumed that the name meets preset condition under the said firm's LAN environment, then the name has been made It is stored in the corresponding LAN dictionary of the said firm's LAN environment namely is stored in the LAN dictionary defeated for preset entry Enter the mapping relations between string " zhanghuidu " and preset entry " Zhang Hui is ".When the user inputs " zhanghuidu ", The preset entry of target " Zhang Hui is " that may be matched by inquiring the LAN dictionary, and by the preset entry of the target " Zhang Hui is " is showed as candidate item, which can select " Zhang Hui is " to carry out upper screen in candidate item, and without holding The cumbersome word for word selection operation of row, so as to the raising input efficiency of user.
In the another kind application example of the present invention, certain user campus dining room to be inputted title under campus area network's environment " prosperous garden dining room ", input string is " xinyuancanting ", and is stored in the corresponding LAN dictionary of campus area network's environment There are the mapping relations between input string " xinyuancanting " and preset entry " prosperous garden dining room ".Then inputted in the user When " xinyuancanting ", the preset entry of target " prosperous garden dining room " that may be matched by inquiring the LAN dictionary, And the preset entry of the target " prosperous garden dining room " is showed as candidate item, which can select " prosperous in candidate item Garden dining room " carries out screen, and without carrying out cumbersome word for word selection operation, so as to the raising input efficiency of user.
It is described by the mesh in a kind of alternative embodiment of the present invention in order to further increase the input efficiency of user The step of preset entry is showed as candidate item is marked, can specifically include:Using the preset entry of the target as first time Option is showed.In embodiments of the present invention, when there is the target that matches with the input string in the LAN dictionary When preset entry, can show using the preset entry of the target as first candidate item so that user can directly to The preset entry of target matched, which executes, shields operation, without being selected in candidate item, to further increase the input of user Efficiency.For example, in the examples described above, the preset entry of target " Zhang Hui is " can be showed as first candidate item, user Can the preset entry of target " Zhang Hui is " be subjected to upper screen by clicking space bar, be user's input tape come while facility, it can To further increase the input efficiency of user.
In a kind of alternative embodiment of the present invention, the method can also include:Showing the preset entry of the target While, show the class label of the preset entry of the target.In a particular application, it can also be deposited in the LAN dictionary The class label for storing up the preset entry, when showing the preset entry of target, can the preset entry of target subscript or under The relevant positions such as mark show class label.Wherein, the class label can be used for identifying the classification of entry, so that user can To be more visually known the corresponding classification of the preset entry of target, so as to rapidly make correct selection.For example, In above-mentioned example, the name " Zhang Hui is " of user colleague to be inputted, input method procedure inquired in LAN dictionary obtain with it is defeated When entering the string preset entry of " zhanghuidu " matched target " Zhang Hui is ", the class for learning the preset entry of the target can also be inquired Distinguishing label is " colleague ", then can show in the relevant position cursor position as above that it shows when showing candidate item " Zhang Hui is " The class label of " colleague ", in this way, for the employee of the new registration of company, you can learn that the candidate item " Zhang Hui is " is intended to input The name of colleague, and then the name of colleague can be correctly entered, embody the respect to colleague.Certainly, in a particular application, institute It can also be other arbitrary classifications such as " project ", " teaching building ", " title ", " department ", the embodiment of the present invention pair to state class label It is not limited in the specific category of the class label and the particularly relevant position of Display Category label.For example, above-mentioned In example, when showing candidate item " Zhang Hui is ", the class label that can also show " Zhang Hui is " is:" product department ", " department passes through Reason " etc..
In a particular application, it is also possible to the case where same input string is corresponding with multiple targets preset entry occur, at this In the case of kind, the embodiment of the present invention, which can be ranked up the preset entry of multiple targets, to be showed.In a kind of optional reality of the present invention It applies in example, the LAN dictionary is additionally operable to store the word frequency information of the preset entry of the target;Then with the input string phase It is described to show the preset entry of the target as candidate item when the quantity of the matched preset entry of target is more than or equal to 2 The step of, it can specifically include:
Step S21, word frequency information of the preset entry of target in the LAN dictionary is obtained;
Step S22, the sequence to the corresponding candidate item of the preset entry of the target according to the word frequency information from high to low Showed.
In a kind of application example of the present invention, there is the employee for being " Zhang Shan ", " Zhang Shan " and " Zhang Shan " in certain company, on It states three names and is corresponding with the identical input string " zhangshan " of spelling, in existing word frequency statistics, name " Zhang Shan " is not It is high frequency entry, therefore entry " Zhang Shan " is not stored in the not forward or even existing dictionary that sorts.But for some school or For the LAN of some company, it is possible to the exactly name " Zhang Shan " that high frequency uses, therefore, when New Hire Onboarding or visitor make When visit, when inputting name " Zhang Shan " for the first time, need word for word to search, input is relatively complicated.
The embodiment of the present invention is made by being ranked up according to word frequency information to the preset entry of target with identical input string User when inputting " zhangshan " for the first time, input method procedure can arrange the high frequency entry " Zhang Shan " in the said firm's LAN At first of candidate item, offer convenience for user's input.
Specifically, there is the employee for being " Zhang Shan ", " Zhang Shan " and " Zhang Shan " in the said firm, and these three names are in the said firm All it is common entry under LAN environment, then can be stored with input string in the corresponding LAN dictionary of the said firm's LAN environment The mapping relations of " zhangshan " and preset entry " Zhang Shan ", the mapping of input string " zhangshan " and preset entry " Zhang Shan " The mapping relations of relationship and input string " zhangshan " and preset entry " Zhang Shan ".In addition, can be learnt by statistics In the said firm's LAN environment, the input number of preset entry " Zhang Shan ", " Zhang Shan " and " Zhang Shan " is respectively 8 times, 9 times, 6 Secondary, then the word frequency information that preset entry " Zhang Shan " can also be stored in the LAN dictionary is 8, the word frequency information of " Zhang Shan " It is 9, and the word frequency information of " Zhang Shan " is 6.When certain new employee name to be inputted " Zhang Shan ", and input string is being inputted for the first time When " zhangshan ", it includes " opening that input method procedure inquires the preset entry of target to be matched in the LAN dictionary Mountain ", " Zhang Shan " and " Zhang Shan ", and inquire and obtain corresponding word frequency information, it is right according to the sequence of word frequency information from high to low The preset entry of above three is ranked up, and " Zhang Shan " can be come to first of candidate item, improves the input efficiency of user.
In embodiments of the present invention, when detecting that user is in current local area network environment, current local area network can be loaded The corresponding LAN dictionary of environment, if the target that inquiry matches in the presence of the input string with user in LAN dictionary is preset When entry, the preset entry of the target can be preferentially illustrated in first of candidate item, worked as in order to which user can rapidly input Common words in preceding LAN environment.However, the everyday words in the LAN dictionary under usual only storage area network environment Item, coverage area have certain limitation, cause the candidate item provided not accurate enough, therefore, in order to ensure to be provided The accuracy of candidate item, in a kind of alternative embodiment of the present invention, the method can also include:According to the input string, It is searched in existing basic dictionary, to obtain the basic entry to match with the input string;It is described by the target It the step of preset entry is showed as candidate item, can specifically include:
Step S31, the word frequency information according to the preset entry of the target in the LAN dictionary and the basis Word frequency information of the entry in basic dictionary carries out hybrid-sorting to the preset entry and the basic entry;
Step S32, show the result of hybrid-sorting in candidate item.
Wherein, the basic dictionary is specifically as follows the existing arbitrary dictionary of input method, such as system dictionary, user thesaurus Deng.In embodiments of the present invention, when detecting that user is in current local area network environment, basic dictionary and current office can be loaded The corresponding LAN dictionary of domain net environment.Input string according to user is looked into basic dictionary and LAN dictionary respectively It looks for, if there is the basic entry and the preset entry of target to match with the input string, then according to the preset word of the target Word frequency information and basic entry word frequency information in basic dictionary of the item in the LAN dictionary, to described pre- It sets entry and carries out hybrid-sorting with the basic entry, and show the result of hybrid-sorting in candidate item so that final Ranking results can either reflect the regionality of LAN environment, and can ensure the coverage rate of general environment.
It should be noted that during carrying out hybrid-sorting with the basic entry to the preset entry of the target, It can be directly ranked up according to the sequence of word frequency information from high to low, alternatively, after can also being weighted to word frequency information again It is ranked up, for example, higher weight can be assigned with the preset entry of target in local area network dictionary so that the preset entry of target It always comes before basic entry, to meet the input demand for the user for commonly using entry in often input LAN environment.When So, in a particular application, suitable power can be assigned to the preset entry of the target and the basic entry according to actual demand Weight, to meet different ordering requirements, it will be understood that the embodiment of the present invention is to the preset entry of the target and the basic entry The concrete mode for carrying out hybrid-sorting does not limit.
In practical applications, user generally prefers that the folded sound of address name the last character, such as name " Zhang Shan ", usually It is called for " mountain mountain ".When user is intended to input " mountain mountain ", input string " shanshan " is inputted first, but if some name compares It is rare, then user's input may be caused to fold sound word less efficient without corresponding folded sound word in LAN dictionary.It is asked to solve this Topic, in a kind of alternative embodiment of the present invention, the preset entry may include:Preset folded sound entry, the preset folded sound Entry is that the preset name entry for including is obtained according to the preset entry;Then the preset entry of the target may include:Target Preset folded sound entry.So that user can obtain corresponding folded sound entry candidate item in the corresponding input string of the folded sound word of input.
In a kind of alternative embodiment of the present invention, the preset entry includes:Preset name entry, the method may be used also To include the following steps:
Step S41, according to the preset name entry, corresponding preset folded sound entry is obtained;
Step S42, the corresponding preset folded sound input of the preset folded sound entry is stored in the LAN dictionary Mapping relations between string.
Specifically, the embodiment of the present invention can obtain the name entry in the preset entry, if the name entry There is no corresponding folded sound entries, then can generate the corresponding folded sound entry of the name entry, and in the LAN word The mapping relations between the corresponding preset folded sound input string of the preset folded sound entry are stored in library.
In a kind of application example of the present invention, it is assumed that be stored with preset entry " east Jin " in LAN dictionary, and " open Eastern Jin " is the name of certain employee, if generated there is no " east Jin " corresponding folded sound entry " Jin Jin " in LAN dictionary The folded sound entry " Jin Jin ", and this is folded into sound entry " Jin Jin " and is stored in the LAN dictionary as preset entry, have Body, the mapping relations between input string " qinqin " and preset folded sound entry " Jin Jin " can be stored in LAN dictionary. In this way, when user inputs " qinqin ", so that it may to see candidate item " Jin Jin ".Further, in order to enable folded sound word can Preferentially to show, in a particular application, the weight of folded sound word can also be increased, so that folded sound word can come front, convenient for using Family is rapidly input.
For another example for triliteral name, user, which generally prefers that, only calls latter two word, such as " will open east Jin " directly Address is " eastern Jin "." eastern Jin " is referred to as to the folded sound entry of " east Jin ", if LAN word in the embodiment of the present invention There is no " east Jin " corresponding folded sound entry " eastern Jin " in library, then the folded sound entry " eastern Jin " is generated, and this is folded into sound word Item " eastern Jin " is stored in as preset entry in the LAN dictionary, specifically, input can be stored in LAN dictionary The mapping relations gone here and there " dongqin " between preset folded sound entry " eastern Jin ".In this way, when user inputs dongqin ", so that it may To see candidate item " eastern Jin ".
To sum up, the input method of the embodiment of the present invention can obtain the LAN environment residing for user, with the local Inquiry is with the presence or absence of the preset entry of the matched target of input string with user in the corresponding LAN dictionary of net environment, if deposited The preset entry of the target is being showed as candidate item.Since the preset entry of the target meets the LAN ring Preset condition under border, that is, the preset entry of the target is the common entry under the LAN environment so that user can be with The preset entry of the target is directly selected in candidate item, and without carrying out cumbersome word for word selection operation, the embodiment of the present invention By increasing LAN dictionary corresponding with LAN environment, the candidate for meeting current local area network environment can be provided a user So that when being inputted for the first time under current local area network environment, you can see the local to match with input string in candidate item Common entry under net environment offers convenience for user's input.So as to improve the input effect for commonly using entry under specific environment Rate.
With reference to Fig. 3, shows a kind of step flow chart of input method embodiment two of the present invention, can specifically include:
Step 301, the input string and current local area network environment for obtaining user;
Step 302, according to the input string, the corresponding LAN dictionary of the current local area network environment is inquired, to obtain The preset entry of target to match with the input string;The LAN dictionary is accorded with for storing under input string and LAN environment Close the mapping relations between the preset entry of preset condition;
Step 303, when there is the preset entry of the target to match with the input string in the LAN dictionary, by institute The preset entry of target is stated as candidate item to be showed;
Step 304, when entry preset there is no the target to match with the input string in the LAN dictionary, In user's completion after screen operation, LAN dictionary described in the upper screen content update according to the user.
In embodiments of the present invention, when there is no the target to match with the input string is preset in the LAN dictionary It, can LAN word described in the upper screen content update according to the user in user's completion after screen operation when entry Library, to constantly update and improve the LAN dictionary so that the LAN dictionary is more in line with the region of LAN environment Input characteristics.
In a kind of alternative embodiment of the present invention, LAN word described in the upper screen content update according to the user The step of library, can specifically include:The upper screen content is stored in the preset dictionary and the upper screen content is corresponding defeated Enter the mapping relations between string.
Through the embodiment of the present invention, if when user inputs for the first time, input method procedure is not inquired in LAN dictionary The preset entry of matched target is obtained, the input method procedure meeting Active Learning preset entry specifically can be in the preset word The mapping relations between the upper screen content input string corresponding with the upper screen content of user are stored in library so that user next time When input, you can the preset entry of target that the input string matches is seen in candidate item, further, since in LAN dictionary The preset entry is arrived through study, other users can see the preset entry when inputting for the first time in candidate item, so as to Improve the input efficiency of user.
In a particular application, some users only pass by some LAN environment temporarily, rather than under the LAN environment Fixation user therefore do not need to input the common entry in the LAN environment.In order to ensure what these were passed by temporarily User will not be interfered, and the input process of these users is avoided to interfere the office in input process by LAN dictionary LAN dictionary in the net environment of domain.In a kind of alternative embodiment of the present invention, the method can also include the following steps:
Step S51, judge whether the user is login user under the LAN environment;
If step S52, the described user is login user, the access limit of the LAN dictionary is assigned to the use Family;If alternatively, the user is to be not logged in user, the read right of the LAN dictionary is assigned to the user;Wherein, institute Stating read right includes:Inquire the LAN dictionary;The write permission includes:Update the LAN dictionary;
If step S53, the described user has the read right of the LAN dictionary, execute described according to the input String, the step of inquiring the LAN environment corresponding LAN dictionary.
The embodiment of the present invention is in order to ensure the regionality of LAN dictionary, for the login user for needing using LAN dictionary While providing convenient, without interfering with other ordinary users being not logged in, only LAN word can be assigned to login user The access limit in library.Wherein, read right can specifically include the inquiry LAN dictionary;Write permission can specifically include update The LAN dictionary.
In a kind of application example of the present invention, if input method procedure detects that active user has logged in current local area network ring Border can then determine that the login user local area network dictionary has access limit, it is corresponding can to load current local area network environment LAN dictionary, in the login user input process, input method procedure can inquire LAN dictionary, if LAN dictionary Middle exist and the preset entry of target that matches of input string of login user, then reads the preset entry, and by the preset entry Show as candidate, in addition, on the login user executes preset entry after screen operation, input method procedure can also be more The new LAN dictionary such as executes update operation to the word frequency information of the preset entry;If be not present in LAN dictionary The preset entry of target to match with the input string of login user, then in login user completion after screen operation, by upper screen The LAN dictionary is added as preset entry in content.
In the another kind application example of the present invention, if input method procedure detects that active user is not logged in current local area network Environment can then determine that this is not logged in user's local area network dictionary and does not have access limit.Input method procedure only loads local word Library, and carried LAN dictionary can be not added with, namely be not logged in user only and can use the existing local dictionary of input method, and cannot Use LAN dictionary so that being not logged in user will not be interfered by LAN dictionary.
In another of the invention is using example, if input method procedure detects that active user is not logged in current local area network Environment can then determine that this is not logged in user's local area network dictionary and only has read right, without write permission.Input method procedure LAN dictionary can be loaded, is not logged in user's input process at this, input method procedure can inquire LAN dictionary, if Exist in LAN dictionary and be not logged in the preset entry of target that the input string of user matches with this, then reads the preset entry, And show the preset entry as candidate, it is still, defeated after this is not logged in user to screen operation in the execution of preset entry Enter method program and update operation is not executed to the word frequency information of the preset entry;If being not present in LAN dictionary and being not logged in use The preset entry of target that the input string at family matches, then in login user completion after screen operation, input method procedure will not The LAN dictionary is added as preset entry in upper screen content, and the input behavior for being not logged in user as a result, will not local area network Dictionary has an impact.
It should be noted that the embodiment of the present invention is for judging whether the user is login under the LAN environment The concrete mode of user does not limit, for example, if user by the account name and password login of certain LAN LAN, The login user under the LAN environment can be determined that the user is;Alternatively, when user is remote by account name and password at home The Cheng Denglu LANs, can also determine that the user is the login user under the LAN environment;Again alternatively, when user passes through enterprise Industry mailbox and password login office network, it is believed that user currently needs input and the relevant content of the enterprise, such as enterprise Title, the title of enterprises employee, title of project etc., hence, it can be determined that the user is under the intranet environment Login user, then can assign the user to the corresponding LAN dictionary of the intranet environment have access limit;Again Alternatively, if certain user has logged in certain in-company LAN with worker, and the user has employee's permission, it is determined that The user is the login user under the said firm's LAN environment, has read-write to the LAN dictionary under the said firm's LAN environment Permission, if the user, with the LAN inside visitor's identity logs the said firm, but the user does not have employee's permission, only With visitor's permission, then it can determine that the user is under the said firm's LAN environment and be not logged in user, to the said firm's LAN LAN dictionary under environment only has read right etc..
To sum up, the input method of the embodiment of the present invention can be with by increasing corresponding with LAN environment LAN dictionary The candidate item for meeting current local area network environment is provided a user, so as to improve the input effect for commonly using entry under specific environment Rate.In addition, the embodiment of the present invention is operated by the upper screen of user, constantly updates and improve the LAN dictionary so that is described LAN dictionary is more in line with the region input characteristics of LAN environment.Furthermore the embodiment of the present invention can be with local area network ring It the login user in border and is not logged in user and assigns different LAN dictionary access limits so that LAN dictionary can be to have to need The login user asked provides facility, while not affecting other ordinary users being not logged in, and is not logged in the input of user Behavior will not local area network dictionary have an impact.
The embodiment of the present invention additionally provides a kind of input unit, with reference to Fig. 4, shows that a kind of input unit of the present invention is real The structure diagram for applying example, can specifically include:
Acquisition module 401, the input string for obtaining user and current local area network environment;
Enquiry module 402, for according to the input string, inquiring the corresponding LAN word of the current local area network environment Library, to obtain the preset entry of target to match with the input string;The LAN dictionary is for storing input string and local Meet the mapping relations between the preset entry of preset condition under net environment;
Display module 403, for when there is the preset word of target that matches with the input string in the LAN dictionary When, the preset entry of the target is showed as candidate item.
In a kind of alternative embodiment of the present invention, described device can also include:
Update module, for when there is no the preset entries of target to match with the input string in the LAN dictionary When, in user's completion after screen operation, LAN dictionary described in the upper screen content update according to the user.
In another alternative embodiment of the present invention, the update module can specifically include:
Sub-module stored, it is corresponding defeated for storing the upper screen content and the upper screen content in the preset dictionary Enter the mapping relations between string.
In another alternative embodiment of the present invention, the display module 403 can specifically include:
Show submodule, for while showing the target preset entry, showing the class of the preset entry of the target Distinguishing label.
In another alternative embodiment of the present invention, the preset entry may include:Preset folded sound entry, it is described pre- It is that the preset name entry for including is obtained according to the preset entry to set folded sound entry;Then the preset entry of the target can wrap It includes:The preset folded sound entry of target.
In another alternative embodiment of the present invention, described device can also include:
Judgment module, for judging whether the user is login user under the current local area network environment;
Permission assigns module, if being login user for the user, the access limit of the LAN dictionary is assigned Give the user;If alternatively, the user is to be not logged in user, the read right of the LAN dictionary is assigned to the use Family;Wherein, the read right includes:Inquire the LAN dictionary;The write permission includes:Update the LAN dictionary;
Execution module executes if having the read right of the LAN dictionary for the user described in the foundation Input string, the step of inquiring the LAN environment corresponding LAN dictionary.
The embodiment of the present invention additionally provides a kind of device for establishing LAN dictionary, with reference to Fig. 5, shows the one of the present invention Kind establishes the structure diagram of the device embodiment of LAN dictionary, can specifically include:
Entry collection module 501, for collecting the preset entry under LAN environment;The preset entry meets the office Preset condition under the net environment of domain;
Dictionary establishes module 502, for according between preset entry input string corresponding with the preset entry Mapping relations establish LAN dictionary.
In a kind of alternative embodiment of the present invention, the entry collection module 501 can specifically include:
First collects submodule, inputs entry for collecting the history under LAN environment, will meet the first preset condition History input entry as preset entry;Wherein, first preset condition includes:The input time of the history input entry Number is more than predetermined threshold value.
In another alternative embodiment of the present invention, the entry collection module 501 can specifically include:
Second collects submodule, the address list list for collecting user under LAN environment, by the address list list In meet the entry of the second preset condition as preset entry;Wherein, second preset condition includes:The address list list In the number that occurs in the address list list of entry be more than predetermined threshold value, and/or, the entry in the address list list Including with the relevant information of the LAN environment;And/or
Third collects submodule will meet third preset condition for collecting the corresponding preset title of LAN environment Preset name is referred to as preset entry;Wherein, the third preset condition includes:Under the preset entitled LAN environment Proprietary name.
In another alternative embodiment of the present invention, the preset entry may include:Preset name entry, then it is described Device can also include:
Folded sound entry acquisition module, for according to the preset name entry, obtaining corresponding preset folded sound entry;
Folded sound entry memory module, it is corresponding for storing the preset folded sound entry in the LAN dictionary Mapping relations between preset folded sound input string.
For device embodiments, since it is basically similar to the method embodiment, so fairly simple, the correlation of description Place illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with The difference of other embodiment, the same or similar parts between the embodiments can be referred to each other.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 6 is a kind of block diagram of device 800 for input shown according to an exemplary embodiment.For example, device 800 Can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, Body-building equipment, personal digital assistant etc..
With reference to Fig. 6, device 800 may include following one or more components:Processing component 802, memory 804, power supply Component 806, multimedia component 808, audio component 810, the interface 812 of input/output (I/O), sensor module 814, and Communication component 816.
The integrated operation of 802 usual control device 800 of processing component, such as with display, call, data communication, phase Machine operates and record operates associated operation.Processing element 802 may include that one or more processors 820 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 802 may include one or more modules, just Interaction between processing component 802 and other assemblies.For example, processing component 802 may include multi-media module, it is more to facilitate Interaction between media component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in equipment 800.These data are shown Example includes instruction for any application program or method that are operated on device 800, contact data, and telephone book data disappears Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 806 provides electric power for the various assemblies of device 800.Power supply module 806 may include power management system System, one or more power supplys and other generated with for device 800, management and the associated component of distribution electric power.
Multimedia component 808 is included in the screen of one output interface of offer between described device 800 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 808 includes a front camera and/or rear camera.When equipment 800 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike Wind (MIC), when device 800 is in operation mode, when such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The received audio signal can be further stored in memory 804 or via communication set Part 816 is sent.In some embodiments, audio component 810 further includes a loud speaker, is used for exports audio signal.
I/O interfaces 812 provide interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor module 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented Estimate.For example, sensor module 814 can detect the state that opens/closes of equipment 800, and the relative positioning of component, for example, it is described Component is the display and keypad of device 800, and sensor module 814 can be with 800 1 components of detection device 800 or device Position change, the existence or non-existence that user contacts with device 800,800 orientation of device or acceleration/deceleration and device 800 Temperature change.Sensor module 814 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 814 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or combination thereof.In an exemplary implementation In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 816 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application application-specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, it includes the non-transitorycomputer readable storage medium instructed, example to additionally provide a kind of Such as include the memory 804 of instruction, above-metioned instruction can be executed by the processor 820 of device 800 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is held by the processor of terminal When row so that terminal is able to carry out a kind of input method, the method includes:Obtain the input string and current local of user Net environment;According to the input string, the corresponding LAN dictionary of the current local area network environment is inquired, to obtain and the input The preset entry of target that string matches;The LAN dictionary meets preset condition for storing under input string and LAN environment Preset entry between mapping relations;When there is the preset word of target that matches with the input string in the LAN dictionary When, the preset entry of the target is showed as candidate item.
Optionally, the processor be also configured to by one either more than one processor execute it is one or one A procedure above includes the instruction for being operated below:
When entry preset there is no the target to match with the input string in the LAN dictionary, in the user In completion after screen operation, LAN dictionary described in the upper screen content update according to the user.
Optionally, LAN dictionary described in the upper screen content update according to the user, including:
The mapping between upper screen content input string corresponding with the upper screen content is stored in the preset dictionary Relationship.
Optionally, described to show the preset entry as candidate item, including:
While showing the target preset entry, show the class label of the preset entry of the target.
Optionally, the preset entry includes:Preset folded sound entry, the preset folded sound entry are according to the preset word The preset name entry that item includes obtains;Then the preset entry of the target includes:The preset folded sound entry of target.
Optionally, the processor be also configured to by one either more than one processor execute it is one or one A procedure above includes the instruction for being operated below:
Judge whether the user is login user under the current local area network environment;
If the user is login user, the access limit of the LAN dictionary is assigned to the user;If alternatively, The user is to be not logged in user, then assigns the read right of the LAN dictionary to the user;Wherein, the read right packet It includes:Inquire the LAN dictionary;The write permission includes:Update the LAN dictionary;
If the user has the read right of the LAN dictionary, execute described according to the input string, inquiry institute The step of stating current local area network environment corresponding LAN dictionary.
Fig. 7 is the structural schematic diagram of server in some embodiments of the present invention.The server 1900 can be because of configuration or property Energy is different and generates bigger difference, may include one or more central processing units (central processing Units, CPU) 1922 (for example, one or more processors) and memory 1932, one or more storage applications The storage medium 1930 (such as one or more mass memory units) of program 1942 or data 1944.Wherein, memory 1932 and storage medium 1930 can be of short duration storage or persistent storage.The program for being stored in storage medium 1930 may include one A or more than one module (diagram does not mark), each module may include to the series of instructions operation in server.More into One step, central processing unit 1922 could be provided as communicating with storage medium 1930, and storage medium is executed on server 1900 Series of instructions operation in 1930.
Server 1900 can also include one or more power supplys 1926, one or more wired or wireless nets Network interface 1950, one or more input/output interfaces 1958, one or more keyboards 1956, and/or, one or More than one operating system 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM Etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processor of server When execution so that server is able to carry out a kind of method for establishing LAN dictionary, the method includes:Collect LAN environment Under preset entry;The preset entry meets the preset condition under the LAN environment;According to the preset entry and institute The mapping relations between the corresponding input string of preset entry are stated, LAN dictionary is established.
Optionally, the preset entry collected under LAN environment, including:
The history collected under LAN environment inputs entry, and the history for meeting the first preset condition is inputted entry as pre- Set entry;Wherein, first preset condition includes:The input number of the history input entry is more than predetermined threshold value.
Optionally, the preset entry collected under LAN environment, including:
The address list list for collecting user under LAN environment, will meet the second preset condition in the address list list Entry is as preset entry;Wherein, second preset condition includes:Entry in the address list list is in the address list The number occurred in list is more than predetermined threshold value, and/or, the entry in the address list list includes and the LAN environment Relevant information;And/or
The corresponding preset title of LAN environment is collected, the preset name for meeting third preset condition is referred to as preset word Item;Wherein, the third preset condition includes:Proprietary name under the preset entitled LAN environment.
Optionally, the processor be also configured to by one either more than one processor execute it is one or one A procedure above includes the instruction for being operated below:
According to the preset name entry, corresponding preset folded sound entry is obtained;
It is stored in the LAN dictionary between the corresponding preset folded sound input string of the preset folded sound entry Mapping relations.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the present invention Its embodiment.The present invention is directed to cover the present invention any variations, uses, or adaptations, these modifications, purposes or Person's adaptive change follows the general principle of the present invention and includes the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the invention is not limited in the precision architectures for being described above and being shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.
Above to a kind of input method provided by the present invention and device, a kind of method and dress for establishing LAN dictionary It sets and a kind of device for input and device for establishing LAN dictionary, is described in detail, it is used herein Principle and implementation of the present invention are described for specific case, and the explanation of above example is only intended to help to understand The method and its core concept of the present invention;Meanwhile for those of ordinary skill in the art, according to the thought of the present invention, having There will be changes in body embodiment and application range, in conclusion the content of the present specification should not be construed as to the present invention Limitation.

Claims (14)

1. a kind of input method, which is characterized in that the method includes:
Obtain the input string and current local area network environment of user;
According to the input string, the corresponding LAN dictionary of the current local area network environment is inquired, to obtain and the input string The preset entry of target to match;The LAN dictionary meets preset condition for storing under input string and LAN environment Mapping relations between preset entry;
When there is the preset entry of the target to match with the input string in the LAN dictionary, by the preset word of the target Item is showed as candidate item.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
When entry preset there is no the target to match with the input string in the LAN dictionary, completed in the user After upper screen operation, LAN dictionary described in the upper screen content update according to the user.
3. according to the method described in claim 2, it is characterized in that, office described in the upper screen content update according to the user The step of domain net dictionary, including:
The mapping relations between upper screen content input string corresponding with the upper screen content are stored in the preset dictionary.
4. according to the method described in claim 1, it is characterized in that, described show the preset entry as candidate item The step of, including:
While showing the target preset entry, show the class label of the preset entry of the target.
5. according to the method described in claim 1, it is characterized in that, the preset entry includes:Preset folded sound entry, it is described pre- It is that the preset name entry for including is obtained according to the preset entry to set folded sound entry;Then the preset entry of the target includes:Mesh Mark preset folded sound entry.
6. according to any method in claim 1 to 5, which is characterized in that according to the input string, work as described in inquiry Before the step of preceding LAN environment corresponding LAN dictionary, the method further includes:
Judge whether the user is login user under the current local area network environment;
If the user is login user, the access limit of the LAN dictionary is assigned to the user;If alternatively, described User is to be not logged in user, then assigns the read right of the LAN dictionary to the user;Wherein, the read right includes: Inquire the LAN dictionary;The write permission includes:Update the LAN dictionary;
If the user has the read right of the LAN dictionary, execute described according to the input string, works as described in inquiry The step of preceding LAN environment corresponding LAN dictionary.
7. a kind of method for establishing LAN dictionary, which is characterized in that the method includes:
Collect the preset entry under LAN environment;The preset entry meets the preset condition under the LAN environment;
According to the mapping relations between preset entry input string corresponding with the preset entry, LAN dictionary is established.
8. the method according to the description of claim 7 is characterized in that the step for collecting the preset entry under LAN environment Suddenly, including:
The history collected under LAN environment inputs entry, and the history for meeting the first preset condition is inputted entry as preset word Item;Wherein, first preset condition includes:The input number of the history input entry is more than predetermined threshold value.
9. the method according to the description of claim 7 is characterized in that the step for collecting the preset entry under LAN environment Suddenly, including:
The address list list for collecting user under LAN environment, will meet the entry of the second preset condition in the address list list As preset entry;Wherein, second preset condition includes:Entry in the address list list is in the address list list The number of middle appearance is more than predetermined threshold value, and/or, the entry in the address list list includes related to the LAN environment Information;And/or
The corresponding preset title of LAN environment is collected, the preset name for meeting third preset condition is referred to as preset entry;Its In, the third preset condition includes:Proprietary name under the preset entitled LAN environment.
10. the method according to the description of claim 7 is characterized in that the preset entry includes:Preset name entry, then institute The method of stating further includes:
According to the preset name entry, corresponding preset folded sound entry is obtained;
The mapping between the corresponding preset folded sound input string of the preset folded sound entry is stored in the LAN dictionary Relationship.
11. a kind of input unit, which is characterized in that including:
Acquisition module, the input string for obtaining user and current local area network environment;
Enquiry module, for according to the input string, the corresponding LAN dictionary of the current local area network environment being inquired, to obtain The preset entry of target to match with the input string;The LAN dictionary is accorded with for storing under input string and LAN environment Close the mapping relations between the preset entry of preset condition;
Display module will for when there is the preset entry of the target to match with the input string in the LAN dictionary The preset entry of target is showed as candidate item.
12. a kind of device for establishing LAN dictionary, which is characterized in that described device includes:
Entry collection module, for collecting the preset entry under LAN environment;The preset entry meets the LAN ring Preset condition under border;
Dictionary establishes module, for being closed according to the mapping between preset entry input string corresponding with the preset entry System, establishes LAN dictionary.
13. a kind of device for input, which is characterized in that include memory and one or more than one program, Either more than one program is stored in memory and is configured to be executed by one or more than one processor for one of them The one or more programs include the instruction for being operated below:
Obtain the input string and current local area network environment of user;
According to the input string, the corresponding LAN dictionary of the current local area network environment is inquired, to obtain and the input string The preset entry of target to match;The LAN dictionary meets preset condition for storing under input string and LAN environment Mapping relations between preset entry;
When there is the preset entry of the target to match with the input string in the LAN dictionary, by the preset word of the target Item is showed as candidate item.
14. a kind of device for establishing LAN dictionary, which is characterized in that include memory and one or one Above program, one of them either more than one program be stored in memory and be configured to by one or one with It includes the instruction for being operated below that upper processor, which executes the one or more programs,:
Collect the preset entry under LAN environment;The preset entry meets the preset condition under the LAN environment;
According to the mapping relations between preset entry input string corresponding with the preset entry, LAN dictionary is established.
CN201710082267.3A 2017-02-15 2017-02-15 Input method and device, and method and device for establishing local area network word stock Active CN108427508B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710082267.3A CN108427508B (en) 2017-02-15 2017-02-15 Input method and device, and method and device for establishing local area network word stock

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710082267.3A CN108427508B (en) 2017-02-15 2017-02-15 Input method and device, and method and device for establishing local area network word stock

Publications (2)

Publication Number Publication Date
CN108427508A true CN108427508A (en) 2018-08-21
CN108427508B CN108427508B (en) 2024-01-19

Family

ID=63155536

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710082267.3A Active CN108427508B (en) 2017-02-15 2017-02-15 Input method and device, and method and device for establishing local area network word stock

Country Status (1)

Country Link
CN (1) CN108427508B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109597498A (en) * 2018-11-29 2019-04-09 北京蓦然认知科技有限公司 A kind of input method based on scene, device, equipment
CN111103986A (en) * 2018-10-26 2020-05-05 北京搜狗科技发展有限公司 User word stock management method and device and input method and device

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1330333A (en) * 2000-06-28 2002-01-09 株式会社东芝 Chinese input transformation device and input transformation processing method and recording medium
CN101140585A (en) * 2007-09-24 2008-03-12 腾讯科技(深圳)有限公司 User thesaurus management system and management method
CN101203849A (en) * 2005-04-21 2008-06-18 谷歌股份有限公司 Predictive conversion of user input
CN101324881A (en) * 2007-06-14 2008-12-17 株式会社Ntt都科摩 Character input assist method, character input assist system, user terminal, character conversion method and character conversion program
CN101639863A (en) * 2009-09-04 2010-02-03 腾讯科技(深圳)有限公司 Method system and equipment for loading city lexicon
CN101710325A (en) * 2009-12-03 2010-05-19 腾讯科技(深圳)有限公司 Method for loading input method word bank, method for inputting characters and input method system
CN101777054A (en) * 2009-01-14 2010-07-14 北京搜狗科技发展有限公司 Method for displaying attribute information of entry and device thereof
CN101840418A (en) * 2010-03-31 2010-09-22 北京搜狗科技发展有限公司 User word library synchronous update method, update server and input method system
CN101930297A (en) * 2010-07-23 2010-12-29 百度在线网络技术(北京)有限公司 Method, device and system for user to perform text input in network interaction
CN102063194A (en) * 2010-04-16 2011-05-18 百度在线网络技术(北京)有限公司 Method, equipment, server and system for inputting characters by user
CN102109905A (en) * 2009-12-29 2011-06-29 北京搜狗科技发展有限公司 Method and system for providing input method resources
CN102393793A (en) * 2004-06-04 2012-03-28 B·F·加萨比安 Systems to enhance data entry in mobile and fixed environment
CN103139273A (en) * 2011-12-05 2013-06-05 英顺源(上海)科技有限公司 System of word bank share and installation and verification of enterprise local area network and method thereof
CN103455524A (en) * 2012-06-05 2013-12-18 北京搜狗信息服务有限公司 Method and device for displaying and acquiring entry information
CN112433622A (en) * 2020-11-13 2021-03-02 北京搜狗科技发展有限公司 Entry processing method, device and medium based on examination

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1330333A (en) * 2000-06-28 2002-01-09 株式会社东芝 Chinese input transformation device and input transformation processing method and recording medium
CN102393793A (en) * 2004-06-04 2012-03-28 B·F·加萨比安 Systems to enhance data entry in mobile and fixed environment
CN101203849A (en) * 2005-04-21 2008-06-18 谷歌股份有限公司 Predictive conversion of user input
CN101324881A (en) * 2007-06-14 2008-12-17 株式会社Ntt都科摩 Character input assist method, character input assist system, user terminal, character conversion method and character conversion program
CN101140585A (en) * 2007-09-24 2008-03-12 腾讯科技(深圳)有限公司 User thesaurus management system and management method
CN101777054A (en) * 2009-01-14 2010-07-14 北京搜狗科技发展有限公司 Method for displaying attribute information of entry and device thereof
CN101639863A (en) * 2009-09-04 2010-02-03 腾讯科技(深圳)有限公司 Method system and equipment for loading city lexicon
CN101710325A (en) * 2009-12-03 2010-05-19 腾讯科技(深圳)有限公司 Method for loading input method word bank, method for inputting characters and input method system
CN102109905A (en) * 2009-12-29 2011-06-29 北京搜狗科技发展有限公司 Method and system for providing input method resources
CN101840418A (en) * 2010-03-31 2010-09-22 北京搜狗科技发展有限公司 User word library synchronous update method, update server and input method system
CN102063194A (en) * 2010-04-16 2011-05-18 百度在线网络技术(北京)有限公司 Method, equipment, server and system for inputting characters by user
CN101930297A (en) * 2010-07-23 2010-12-29 百度在线网络技术(北京)有限公司 Method, device and system for user to perform text input in network interaction
CN103139273A (en) * 2011-12-05 2013-06-05 英顺源(上海)科技有限公司 System of word bank share and installation and verification of enterprise local area network and method thereof
CN103455524A (en) * 2012-06-05 2013-12-18 北京搜狗信息服务有限公司 Method and device for displaying and acquiring entry information
CN112433622A (en) * 2020-11-13 2021-03-02 北京搜狗科技发展有限公司 Entry processing method, device and medium based on examination

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
YUANJIDEXIANFA: "输入法使用说明:如何同步输入法词库", Retrieved from the Internet <URL:jingyan.baidu.com/article/48a42057e26bb9a9242504f9.html> *
高传善等: "《数据通信与计算机网络》", 31 December 2001, 高等教育出版社, pages: 117 - 118 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN109597498A (en) * 2018-11-29 2019-04-09 北京蓦然认知科技有限公司 A kind of input method based on scene, device, equipment

Also Published As

Publication number Publication date
CN108427508B (en) 2024-01-19

Similar Documents

Publication Publication Date Title
CN106708282B (en) A kind of recommended method and device, a kind of device for recommendation
CN104679405B (en) A kind of terminal
CN106020587A (en) Method and device for message display
CN110020148A (en) A kind of information recommendation method, device and the device for information recommendation
CN105511638B (en) Input method application method and device
CN108255970A (en) A kind of video retrieval method, terminal and computer readable storage medium
CN104270498B (en) To the method and apparatus of communication interface input communication number
CN106775224B (en) Remark information setting method and device
CN107992604A (en) The distribution method and relevant apparatus of a kind of task entry
CN104331503B (en) The method and device of information push
CN105095366B (en) Word message treating method and apparatus
CN106209800A (en) Equipment Authority sharing method and apparatus
CN108664303A (en) The display methods and device of web page contents
CN107729946A (en) Picture classification method, device, terminal and storage medium
CN107784045A (en) A kind of quickly revert method and apparatus, a kind of device for quickly revert
CN108241690A (en) A kind of data processing method and device, a kind of device for data processing
CN110110204A (en) A kind of information recommendation method, device and the device for information recommendation
CN111540355A (en) Personalized setting method and device based on voice assistant
CN108427508A (en) Input method and device, the method and apparatus for establishing LAN dictionary
CN109814730A (en) Input method and device, the device for input
CN107832368A (en) Picture classification method, device, terminal and storage medium
CN109783244A (en) Treating method and apparatus, the device for processing
CN110177284A (en) Information displaying method, device, electronic equipment and storage medium
CN104113589B (en) The method and apparatus for obtaining user information
CN110020082A (en) A kind of searching method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant