CN106873799A - Input method and device - Google Patents

Input method and device Download PDF

Info

Publication number
CN106873799A
CN106873799A CN201710083643.0A CN201710083643A CN106873799A CN 106873799 A CN106873799 A CN 106873799A CN 201710083643 A CN201710083643 A CN 201710083643A CN 106873799 A CN106873799 A CN 106873799A
Authority
CN
China
Prior art keywords
entry
input
word frequency
candidate
user input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710083643.0A
Other languages
Chinese (zh)
Other versions
CN106873799B (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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201710083643.0A priority Critical patent/CN106873799B/en
Publication of CN106873799A publication Critical patent/CN106873799A/en
Application granted granted Critical
Publication of CN106873799B publication Critical patent/CN106873799B/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/0237Character input methods using prediction or retrieval techniques
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

This application discloses input method and device.One specific embodiment of the method includes:Obtain the input information of user;Inquiry and the candidate entry for being input into information matches in the dictionary for pre-building;According to the number of times of user input candidate entry in the history cycle of predetermined quantity, the current word frequency of candidate entry is adjusted;According to the word frequency after adjustment, the order of candidate entry is determined;According to the order, candidate entry is presented.The implementation method realizes the change being accustomed to according to user and adjusts word frequency, there is provided personalized Search Results, so as to improve the efficiency of user input entry.

Description

Input method and device
Technical field
The application is related to field of computer technology, and in particular to input method technique field, more particularly to input method and dress Put.
Background technology
When user is input into information in information input area, generally completed by input method.Input method is used as one kind The device of user input is aided in, target is can to allow user is more convenient, faster, more accurately be input into.
A critically important part is the sequence for candidate result in input method technology, existing sequence typically by with The historical data at family, such as word frequency, for being ranked up for candidate result, but use input method situation for a long time in user Under, due to the accumulation of user's history data, causing user when input habit changes, candidate result can not quickly adapt to new habit It is used.
The content of the invention
The purpose of the application is to propose a kind of improved input method and device to carry solving background section above The technical problem for arriving.
In a first aspect, this application provides a kind of input method, the method includes:Obtain the input information of user;Pre- The candidate entry with above-mentioned input information matches is inquired about in the dictionary first set up;According to above-mentioned use in the history cycle of predetermined quantity Family is input into the number of times of above-mentioned candidate entry, adjusts the current word frequency of above-mentioned candidate entry;According to the word frequency after adjustment, determine above-mentioned The order of candidate entry;In the order described above, above-mentioned candidate entry is presented.
In certain embodiments, above-mentioned predetermined quantity determines via following steps:Each in statistics predetermined amount of time is gone through The total amount of user input entry species during history end cycle;Based on above-mentioned total amount, above-mentioned predetermined quantity is determined.
In certain embodiments, it is above-mentioned that above-mentioned predetermined quantity is determined based on above-mentioned total amount, including:From in predetermined amount of time Second history cycle rises, and counts the total amount of user input entry species at the end of each history cycle relative to previous history The increment of the total amount of user input entry species obtains increment set during end cycle;It is right according to the order for counting above-mentioned increment Increment in above-mentioned increment set performs following steps, until comparing the increment less than preset threshold value:Whether compare the increment Less than preset threshold value;Update number of comparisons;Above-mentioned number of comparisons is defined as above-mentioned predetermined quantity.
In certain embodiments, it is above-mentioned that above-mentioned predetermined quantity is determined based on above-mentioned total amount, including:From in predetermined amount of time Second history cycle rises, and counts the total amount of user input entry species at the end of the history cycle relative to previous history week The increment of the total amount of user input entry species at the end of phase, and whether compare counted increment less than preset threshold value, if so, Then stop counting and recording number of comparisons, if it is not, then recording number of comparisons;Above-mentioned number of comparisons is defined as above-mentioned predetermined number Amount.
In certain embodiments, the above-mentioned above-mentioned candidate entry of user input in the above-mentioned history cycle according to predetermined quantity Number of times, adjusts the current word frequency of above-mentioned candidate entry, including:Count the above-mentioned above-mentioned time of user input in each above-mentioned history cycle Select the number of times of entry;Candidate entry in the number of times that will be counted less than predetermined threshold value is defined as entry to be adjusted;Reduce above-mentioned The current word frequency of entry to be adjusted.
In certain embodiments, the current word frequency of the above-mentioned entry to be adjusted of above-mentioned reduction, including:Obtain each above-mentioned history The entry quantity of above-mentioned user input in cycle;According to above-mentioned entry quantity, it is determined that the adjustment for reducing above-mentioned current word frequency Coefficient;Calculate the product of above-mentioned regulation coefficient and above-mentioned current word frequency, and using above-mentioned product as the word frequency after reduction.
In certain embodiments, it is above-mentioned according to above-mentioned entry quantity, it is determined that the adjustment system for reducing above-mentioned current word frequency Number, including:Judge above-mentioned entry quantity whether more than predetermined threshold;If it is, the first regulation coefficient is defined as dropping The regulation coefficient of low above-mentioned current word frequency;If it is not, then the second regulation coefficient is defined as reducing above-mentioned current word frequency Regulation coefficient, wherein, above-mentioned second regulation coefficient is more than above-mentioned first regulation coefficient.
In certain embodiments, above-mentioned current word frequency is the original of the above-mentioned candidate entry of Weight determined by input policing Beginning word frequency is obtained;And in the above-mentioned history cycle according to predetermined quantity the above-mentioned above-mentioned candidate entry of user input number of times, The current word frequency of above-mentioned candidate entry is adjusted, including:Count the above-mentioned above-mentioned candidate word of user input in each above-mentioned history cycle The number of times of bar;Candidate entry in the number of times that will be counted less than predetermined threshold value is defined as entry to be adjusted;Reduce above-mentioned input The weight that strategy determines.
In certain embodiments, above-mentioned input policing include it is following at least one:Simplicity strategy, for by being input into initial consonant Or the initial of initial consonant is input into;Fuzzy phoneme strategy, is input into for not differentiating between the easy confusion tone section for pre-setting;Error correction Strategy, for do not differentiate between pre-set easily input syllable by mistake and be input into;By word strategy, for entry will to be input into as preceding Entry, there is provided probability of occurrence is big to be input into rear entry as candidate entry;Personalized Policies, for using user account In to input method rule setting be input into.
Second aspect, this application provides a kind of input unit, the device includes:Acquiring unit, for obtaining user's Input information;Query unit, for inquiring about the candidate entry with above-mentioned input information matches in the dictionary for pre-building;Adjustment Unit, for the number of times of the above-mentioned candidate entry of above-mentioned user input in the history cycle according to predetermined quantity, adjusts above-mentioned candidate The current word frequency of entry;Determining unit, for according to the word frequency after adjustment, determining the order of above-mentioned candidate entry;Display unit, For in the order described above, above-mentioned candidate entry being presented.
In certain embodiments, said apparatus also include predetermined quantity determining unit, above-mentioned predetermined quantity determining unit bag Include:First statistics subelement, for counting each history cycle in predetermined amount of time at the end of user input entry species Total amount;First determination subelement, for based on above-mentioned total amount, determining above-mentioned predetermined quantity.
In certain embodiments, above-mentioned first determination subelement, is further configured to:From in predetermined amount of time second Individual history cycle rises, and counts the total amount of user input entry species at the end of each history cycle relative to previous history cycle At the end of the increment of total amount of user input entry species obtain increment set;According to the order for counting above-mentioned increment, to above-mentioned Increment in increment set performs following steps, until comparing the increment less than preset threshold value:Compare whether the increment is less than Preset threshold value;Update number of comparisons;Above-mentioned number of comparisons is defined as above-mentioned predetermined quantity.
In certain embodiments, above-mentioned first determination subelement, is further configured to:From in predetermined amount of time second Individual history cycle rises, and counts the total amount of user input entry species at the end of the history cycle relative to previous history cycle knot The increment of the total amount of user input entry species during beam, and whether compare counted increment less than preset threshold value, if so, then stopping Number of comparisons is only counted and records, if it is not, then recording number of comparisons;Above-mentioned number of comparisons is defined as above-mentioned predetermined quantity.
In certain embodiments, above-mentioned adjustment unit, including:Second statistics subelement, for counting each above-mentioned history The number of times of the above-mentioned above-mentioned candidate entry of user input in cycle;Second determination subelement, for being less than in the number of times that will be counted The candidate entry of predetermined threshold value is defined as entry to be adjusted;First reduces subelement, for reducing working as above-mentioned entry to be adjusted Preceding word frequency.
In certain embodiments, above-mentioned first subelement is reduced, is further configured to:Obtain each above-mentioned history cycle The entry quantity of interior above-mentioned user input;According to above-mentioned entry quantity, it is determined that the regulation coefficient for reducing above-mentioned current word frequency; Calculate the product of above-mentioned regulation coefficient and above-mentioned current word frequency, and using above-mentioned product as the word frequency after reduction.
In certain embodiments, above-mentioned first subelement is reduced, is further configured to:Whether judge above-mentioned entry quantity More than predetermined threshold;If it is, the first regulation coefficient to be defined as the current word frequency for reducing above-mentioned entry to be adjusted Regulation coefficient;If it is not, then the second regulation coefficient to be defined as the adjustment of the current word frequency for reducing above-mentioned entry to be adjusted Coefficient, wherein, above-mentioned second regulation coefficient is more than above-mentioned first regulation coefficient.
In certain embodiments, above-mentioned current word frequency is the original of the above-mentioned candidate entry of Weight determined by input policing Beginning word frequency is obtained;And above-mentioned adjustment unit, including:Second statistics subelement, for counting in each above-mentioned history cycle The number of times of the above-mentioned above-mentioned candidate entry of user input;Second determination subelement, in the number of times that will be counted less than default threshold The candidate entry of value is defined as entry to be adjusted;Second reduces subelement, for reducing the weight that above-mentioned input policing determines.
The third aspect, this application provides a kind of equipment, including:One or more processors;Storage device, for storing One or more programs, when one or more of programs are by one or more of computing devices so that it is one or Multiple processors realize method as described in relation to the first aspect.
Fourth aspect, this application provides a kind of computer-readable recording medium, is stored thereon with computer program, and it is special Levy and be, the program is when executed by realizing method as described in relation to the first aspect.
Input method and device that the application is provided, by obtaining the input information of user, and in the dictionary for pre-building The middle candidate entry inquired about with above-mentioned input information matches, then according in above-mentioned user input in the history cycle of predetermined quantity The number of times of candidate entry is stated, the current word frequency of above-mentioned candidate entry is adjusted, finally according to the word frequency after adjustment, above-mentioned candidate is determined The order of entry, and in the order described above, above-mentioned candidate entry is presented, realize the change being accustomed to according to user and adjust word frequency, Personalized Search Results are provided, so as to improve the efficiency of user input entry.
Brief description of the drawings
By the detailed description made to non-limiting example made with reference to the following drawings of reading, the application other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that the application can apply to exemplary system architecture figure therein;
Fig. 2 is the indicative flowchart of one embodiment of the input method according to the application;
Fig. 3 is the schematic diagram of the application scenarios of the input method according to the application;
Fig. 4 is the indicative flowchart of another embodiment of the input method according to the application;
Fig. 5 is the exemplary block diagram of one embodiment of the input unit according to the application;
Fig. 6 is adapted for the structural representation for realizing the terminal device of the embodiment of the present application or the computer system of server Figure.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that, in order to Be easy to description, be illustrate only in accompanying drawing to about the related part of invention.
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase Mutually combination.Describe the application in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 shows the exemplary system architecture of the embodiment of the input method or input unit that can apply the application 100。
As shown in figure 1, system architecture 100 can include terminal device 101,102,103, network 104 and server 105, 106.Network 104 is used to be provided between terminal device 101,102,103 and server 105,106 medium of communication link.Net Network 104 can include various connection types, such as wired, wireless communication link or fiber optic cables etc..
User 110 can be interacted by network 104 with using terminal equipment 101,102,103 with server 105,106, to connect Receive or send data etc..Various telecommunication customer end applications, such as input method class can be installed on terminal device 101,102,103 Using, social platform software web browser applications, the application of search engine class, the application of shopping class, JICQ, mailbox visitor Family end etc..
Terminal device 101,102,103 can be various electronic equipments, including but not limited to smart mobile phone, panel computer, E-book reader, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image Expert's compression standard audio aspect 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic shadow As expert's compression standard audio aspect 4) player, pocket computer on knee and desktop computer etc..Terminal device 101, 102nd, 103 after the input information for getting user, and the time with above-mentioned input information matches is inquired about in the dictionary for pre-building Entry is selected, then according to the number of times of the above-mentioned above-mentioned candidate entry of user input in the history cycle of predetermined quantity, above-mentioned time is adjusted The current word frequency of entry is selected, finally according to the word frequency after adjustment, the order of above-mentioned candidate entry is determined, and according to the order, Above-mentioned candidate entry is presented.
Server 105,106 can be to provide the server of various services, such as to institute on terminal device 101,102,103 The input method application of installation provides the background server supported.Background server can be asked with the Word library updating of receiving terminal apparatus And data processing is carried out according to Word library updating request, and result (dictionary of such as renewal) is fed back into terminal device, User can be obtained and use input record produced by input method application, for example, above-mentioned user is defeated in the history cycle of predetermined quantity Enter the number of times of candidate entry, and the current word frequency of the candidate entry is adjusted according to input record.
It should be noted that the input method that the embodiment of the present application is provided typically is held by terminal device 101,102,103 OK, correspondingly, input unit is generally positioned in terminal device 101,102,103, additionally, the embodiment of the present application provided it is defeated Enter some steps in method, such as " according to the number of times of the above-mentioned above-mentioned candidate entry of user input in the history cycle of predetermined quantity, Adjust the current word frequency of the candidate entry ", it is also possible to performed by server 105,106.Correspondingly, the part in input unit Unit such as " adjustment unit " can also be arranged in server 105,106.
It should be understood that the number of the terminal device, network and server in Fig. 1 is only schematical.According to realizing need Will, can have any number of terminal device, network and server.
With continued reference to Fig. 2, the flow 200 of one embodiment of input method according to the application is shown.The input side Method, comprises the following steps:
Step 201, obtains the input information of user.
In the present embodiment, input method operation electronic equipment (such as terminal or server shown in Fig. 1) thereon, The input information of user can be obtained.The input information of user can be the character string of user input.
Step 202, inquiry and the candidate entry for being input into information matches in the dictionary for pre-building.
In the present embodiment, above-mentioned electronic equipment can be obtained in inquiry in the dictionary for pre-building with step 201 It is input into the candidate entry of information matches.The dictionary for pre-building can be the input method dictionary for being stored in advance in terminal local, The dictionary in high in the clouds, or the combination of the two can be stored in.Entry in dictionary can be in webpage crawl, or The entry of user's history input, in dictionary simultaneously record have input information and an entry after input information or treatment match rule Then.User can be based on Forward Maximum Method mode when Chinese is input into, and the character string to user input carries out cutting, completion The syllable information of the character string after cutting, obtains syllable sequence, can then be carried out according to the matched rule of syllable and entry Match somebody with somebody, for example, user input " wo ", the candidate entry matched with " wo " can be " I ", " holding ".Same user is in input Japanese When, can be matched with the matched rule of entry according to assumed name.
Step 203, according to the number of times of user input candidate entry in the history cycle of predetermined quantity, adjustment candidate entry Current word frequency.
In the present embodiment, above-mentioned electronic equipment can be according to user input step 202 in the history cycle of predetermined quantity In the number of times of candidate entry that inquires, adjust the current word frequency of the candidate entry.Word frequency can simply be interpreted as entry in dictionary In the frequency of occurrences, user can be weighed according to word frequency to a certain extent and select the probability of the candidate entry.Adjustment candidate entry Current word frequency can reduce the current word frequency of the entry that recent low frequency is used, or raise the word that recent high frequency is used The current word frequency of bar, can reach the purpose for adapting to user input custom change.The history cycle of predetermined quantity can be obtained The multiple time cycles before user input information are got, as an example, candidate entry is " third turn of ammonia of paddy ", predetermined quantity is 3, It is within every 1 day a history cycle, the 1st day user input:" have a meal, have a bath, third turn of ammonia of paddy " three entries;2nd day user input: " have a meal, have a bath, good night " three entries;3rd day user input:" have a meal, have a bath, good night " three entries;" third turn of ammonia of paddy " only Occurred in that once in a history cycle, it is believed that the recent low frequency of user uses the entry, and to the current of " third turn of ammonia of paddy " Word frequency is adjusted.
In some optional implementations of the present embodiment, predetermined quantity determines via following steps:The statistics scheduled time The total amount of user input entry species at the end of each history cycle in section;Based on total amount, predetermined quantity is determined.
In this implementation, predetermined amount of time can include several history cycles, defeated with user in predetermined amount of time The total amount of the entry species for entering can analyze the cycle that user input custom changes, for example, predetermined amount of time can as sample Being 10 days or 15 days.Predetermined number method for determination of amount can also be drawn for characterizing each history week in preset time period The curve of the total amount of user input entry species at the end of phase, further according to diagrammatic map rule, determines optimal predetermined quantity, example Such as, can be determined according to bent curvature of a curve, because the total amount of generally user's entry species can be continuously increased with the time, but it is newly-increased The trend of entry number of species can constantly tend to gentle.It should be noted that the determination of predetermined quantity is not limited to above method, energy Embody the cycle that user input custom changes.The change of user input custom can be regarded as user input entry species Change, for example, some users can be input into a large amount of neologisms or be input into the repeated low of entry daily, it is believed that its input habit changes Become very fast.The total amount of user input entry species determines predetermined at the end of by counting each history cycle in predetermined amount of time Quantity, the change of the total amount of one side user input entry species is larger with the degree of correlation that user input is accustomed to, and is determined Predetermined quantity is more accurate, and the total amount of another aspect user input entry species is easy to statistics, by its determination predetermined quantity Efficiency is higher.
In some optional implementations of the present embodiment, predetermined quantity is determined based on total amount, including:From predetermined amount of time Second interior history cycle rises, and counts the total amount of user input entry species at the end of each history cycle relative to previous The increment of the total amount of user input entry species obtains increment set at the end of history cycle;It is right according to the order of statistics increment Increment in increment set performs following steps, until comparing the increment less than preset threshold value:Compare whether the increment is less than Preset threshold value;Update number of comparisons;Number of comparisons is defined as predetermined quantity.
In this implementation, preset threshold value can be arranged as required to, for example, could be arranged to one history week of user The 10 of the total amount of input entry species in phase, as an example, preset threshold value is 10, predetermined amount of time is 4 days, history week Phase is 1 day, and the total amount of user input entry species increases at the end of being played from the 2nd day at the end of the 4th day, the 2nd day relative to the 1st day At the end of having added the 18, the 3rd day relative to the 2nd day at the end of user input entry species total amount increased the 16, the 4th day at the end of The total amount of user input entry species increased 9 at the end of relative to the 3rd day, less than above-mentioned preset threshold value 10, determine predetermined number Measure to compare the number of times of counted increment and preset threshold value, i.e., 3.The increasing of the total amount of entry species is input into by counting user Amount, can more intuitively embody the change of user input custom, and incremental computations are simple, by the effect of its determination predetermined quantity Rate is higher.
In some optional implementations of the present embodiment, predetermined quantity is determined based on total amount, including:From predetermined amount of time Second interior history cycle rises, and the total amount for counting user input entry species at the end of the history cycle is gone through relative to previous The increment of the total amount of user input entry species during history end cycle, and whether compare counted increment less than preset threshold value, If so, then stop counting and recording number of comparisons, if it is not, then recording number of comparisons;Above-mentioned number of comparisons is defined as above-mentioned pre- Fixed number amount.
The method that predetermined quantity is determined in this implementation, compared with a kind of upper implementation, upper one kind realization side Formula has first counted all of increment, then compares the increment and preset threshold value of statistics successively until comparing increment less than preset threshold Value, be in this implementation it is every count one increment and has just once been compared, if increment is not less than preset threshold value, then count down One increment, next increment is not counted if increment is less than preset threshold value, improves statistical efficiency, is further carried accordingly yet The high efficiency for determining predetermined quantity.
In some optional implementations of the present embodiment, according to user input candidate word in the history cycle of predetermined quantity The number of times of bar, adjusts the current word frequency of candidate entry, including:Count user input candidate entry in each history cycle time Number;Candidate entry in the number of times that will be counted less than predetermined threshold value is defined as entry to be adjusted;Reduce working as entry to be adjusted Preceding word frequency.
In this implementation, by comparing the number of times of user input candidate entry and default threshold in each history cycle Value, user can be determined more accurately out, and whether low frequency uses the candidate entry in the recent period, to reduce its current word frequency, further Improve the efficiency of user input entry.Can also equally judge in each history cycle, user is not input into going through for candidate entry Whether the quantity in history cycle is more than predetermined number threshold value, if it is, the candidate entry is defined as entry to be adjusted, for example, One history cycle is 1 day, and predetermined quantity is 3, and predetermined number threshold value is 1, and candidate entry is " third turn of ammonia of paddy ", user first day Have input " third turn of ammonia of paddy ", but second day, the history week that " third turn of ammonia of paddy " is not input into " third turn of ammonia of paddy " is not input within the 3rd day The quantity of phase is 2, more than predetermined number threshold value 1, " third turn of ammonia of paddy " is defined as into entry to be adjusted.
In some optional implementations of the present embodiment, the current word frequency of entry to be adjusted is reduced, including:Obtain each The entry quantity of user input in history cycle;According to entry quantity, it is determined that the regulation coefficient for reducing current word frequency;Calculate The product of regulation coefficient and current word frequency, and using product as the word frequency after reduction.
In this implementation, because being differed greatly between word frequency, word frequency higher subtracts same with relatively low word frequency Value there is also larger difference to the influence that it is produced, so, word frequency is adjusted by regulation coefficient, the adjustment to word frequency More rationally, the efficiency of user input entry is further increased.
In some optional implementations of the present embodiment, according to entry quantity, it is determined that the tune for reducing current word frequency Integral coefficient, including:Judge entry quantity whether more than predetermined threshold;If it is, the first regulation coefficient is defined as dropping The regulation coefficient of low current word frequency;If it is not, then the second regulation coefficient is defined as the regulation coefficient for reducing current word frequency, Wherein, the second regulation coefficient is more than the first regulation coefficient.
In this implementation, the entry quantity of user input is more, and the entry of its input includes the possibility of entry to be adjusted Property it is bigger, the entry quantity of user input is few, and the possibility of the entry including entry to be adjusted of its input is smaller.For example, user The entry quantity of input is more, but in each history cycle, it is not input into candidate entry always, it is possible thereby to it is near to be inferred to its In phase low frequency using the candidate entry the reason for be input habit change possibility it is bigger, be input into entry quantity it is few can Energy property is smaller, so also just bigger to the amplitude of the adjustment of the current word frequency of entry to be adjusted associated with it.It is defeated by user The regulation coefficient that the entry quantity for entering determines is more accurate to the adjustment that word frequency is carried out, the candidate entry order more adduction of presentation Reason, further increases the efficiency of user input entry.
In some optional implementations of the present embodiment, current word frequency is the Weight candidate determined by input policing What the original word frequency of entry was obtained;And according to the number of times of user input candidate entry in the history cycle of predetermined quantity, adjustment The current word frequency of candidate entry, including:Count the number of times of user input candidate entry in each history cycle;It is secondary by what is counted Candidate entry in number less than predetermined threshold value is defined as entry to be adjusted;Reduce the weight that input policing determines.
In this implementation, embody to input policing determine weight adjustment, due to user custom change not The only change of input content, its for fuzzy phoneme differentiation etc. it can also happen that change, therefore by true to input policing The adjustment of fixed weight, the mechanism of further perfect word frequency adjustment so that the candidate entry order for being presented more rationally, is entered One step improves the efficiency of user input entry.
In some optional implementations of the present embodiment, input policing include it is following at least one:Simplicity strategy, is used for It is input into by the initial for being input into initial consonant or initial consonant;Fuzzy phoneme strategy, for not differentiating between the easy confusion tone section for pre-setting It is input into;Error correction strategies, for do not differentiate between pre-set easily input syllable by mistake and be input into;By word strategy, for will be defeated Enter entry as in preceding entry, there is provided probability of occurrence is big to be input into rear entry as candidate entry;Personalized Policies, use Setting to input method rule in using user account is input into.
In this implementation, easy confusion tone section can be flat cacuminal, front and rear nasal sound etc., easily input by mistake syllable can be by The syllable of the easy input error caused by button false touch being closely located in the input tools such as keyboard.
Step 204, according to the word frequency after adjustment, determines the order of candidate entry.
In the present embodiment, above-mentioned electronic equipment can determine candidate entry according to the word frequency after being adjusted in step 203 Sequentially.Candidate entry can be ranked up according to word frequency descending order determine the order of candidate entry.
Step 205, in sequence, is presented candidate entry.
In the present embodiment, above-mentioned electronic equipment can be carried out in user according to the order determined in step 204 using it Candidate entry is presented on the terminal device of information input.
With continued reference to Fig. 3, an effect it illustrates the candidate word set presented according to the input method of the application is shown It is intended to.In the application scenarios of Fig. 3, user is input into " gubingzhuanan " in the input frame of input method application, in dictionary with The candidate entry of user input information matches may have " osteopathy turns case " and " third turn of ammonia of paddy ", and further, user is possible one Liver function test is carried out before month, it is found that glutamic-pyruvic transaminase is higher, therefore " third turn of ammonia of paddy " one is repeatedly have input in user day Word, to carry out the inquiry of related data, causes word frequency of the entry of " third turn of ammonia of paddy " in dictionary to be increased sharply, but in user Understand the relevant knowledge of glutamic-pyruvic transaminase, or after rehabilitation, its input habit can also change, and user is input into " paddy again The probability very little of third turn of ammonia ".Be learnt by number of times according to user input in the history cycle of predetermined quantity " third turn of ammonia of paddy ", " third turn of ammonia of paddy " is not the entry that the user commonly uses, it is possible to reduce the current word frequency of " third turn of ammonia of paddy ", the word after reduction Frequency is less than the word frequency of " osteopathy turns case ", so being presented before " osteopathy turns case " to be come " third turn of ammonia of paddy ".
The method that above-described embodiment of the application is provided by obtaining the input information of user, and in the dictionary for pre-building The middle candidate entry inquired about with above-mentioned input information matches, then according in above-mentioned user input in the history cycle of predetermined quantity The number of times of candidate entry is stated, the current word frequency of above-mentioned candidate entry is adjusted, finally according to the word frequency after adjustment, above-mentioned candidate is determined The order of entry, and in sequence, above-mentioned candidate entry is presented, realize the change being accustomed to according to user and adjust word frequency, there is provided Personalized Search Results, so as to improve the efficiency of user input entry.
Fig. 4 is refer to, Fig. 4 is the schematic flow sheet of another embodiment of the input method according to the present embodiment.
In fig. 4, the input method 400, comprises the following steps:
Step 401, obtains the input information of user.
In the present embodiment, input method operation electronic equipment (such as the terminal shown in Fig. 1) thereon, can obtain The input information of user.User's input information when Chinese is input into can be that the character string of user input process obtaining sound Section sequence, user's input information when Japanese is input into can also be assumed name.
Step 402, inquiry and the candidate entry for being input into information matches in the dictionary for pre-building.
In the present embodiment, above-mentioned electronic equipment can be obtained in inquiry in the dictionary for pre-building with step 401 It is input into the candidate entry of information matches.In the dictionary for pre-building simultaneously record have input information or treatment after input information with The matched rule of entry, for example, it may be the matched rule of syllable and entry.
Step 403, counts the number of times of user input candidate entry in each history cycle.
In the present embodiment, above-mentioned electronic equipment can count user input step 402 in the history cycle of predetermined quantity In the number of times of candidate entry that inquires.
Step 404, the candidate entry in the number of times that will be counted less than predetermined threshold value is defined as entry to be adjusted.
In the present embodiment, less than the candidate of predetermined threshold value in the number of times that above-mentioned electronic equipment can count step 403 Entry is defined as entry to be adjusted.Predetermined threshold value can determine according to the entry quantity of user input, the word of user input Bar quantity is more, and predetermined threshold value can be accordingly larger.For example, being input into the user of 1000 entries daily, predetermined threshold value can be 1, The user of 3000 entries of daily input, predetermined threshold value can be 2.So that predetermined threshold value is 1 as an example, candidate entry is " Gu Bingzhuan Ammonia ", predetermined number is 3, is within every 1 day a history cycle, the 1st day user input:" have a meal, have a bath, third turn of ammonia of paddy " three words Bar;2nd day user input:" have a meal, have a bath, good night " three entries;3rd day user input:" have a meal, have a bath, good night " three Entry, " third turn of ammonia of paddy " was only occurred in that once in the 3rd day, and input number of times is 0 in other history cycles, it is believed that user is recent Low frequency uses the entry, and " third turn of ammonia of paddy " is defined as into entry to be adjusted.
Step 405, reduces the current word frequency of entry to be adjusted.
In the present embodiment, above-mentioned electronic equipment can reduce the current word frequency of the entry to be adjusted determined in step 404. Above-mentioned electronic equipment can first obtain the entry quantity of user input in each history cycle, then according to entry quantity, really The fixed regulation coefficient for being used to reduce current word frequency.The entry quantity of user input is all entries of user input in history cycle Quantity, for example, history cycle be 1 day, user have input " having a meal " 3 times in this 1 day, " bathing " 1 time, " third turn of ammonia of paddy " 1 Secondary, then the entry quantity that user is input into this history cycle is 5.According to entry quantity, it is determined that for reducing current word frequency Regulation coefficient can be by pre-building that the scope of different entry quantity is realized with the corresponding relation of regulation coefficient, for example, respectively The entry quantity average out to 150 of user input in individual history cycle, the corresponding relation for pre-building is arrived including entry quantity 100 Between 200, regulation coefficient is 0.9.Finally calculate the product of regulation coefficient and current word frequency, and using product as the word after reduction Frequently.
Step 406, if the original word frequency that current word frequency is the Weight candidate entry determined by input policing is obtained, Then reduce the weight that input policing determines.
In the present embodiment, if the current word frequency of the entry to be adjusted determined in step 404 is determined by input policing What the original word frequency of Weight candidate entry was obtained, above-mentioned electronic equipment can reduce the weight of input policing determination.With mould As a example by paste sound strategy, input method judges that user is fuzzy phoneme user, it is impossible to distinguish " shen " and " sen ", user input When " shenhua ", it is assumed that the Weight candidate entry " gloomy China " of fuzzy phoneme strategy determination, the original word frequency of " mythology " are obtained The current word frequency of the two is consistent, when " gloomy China " is confirmed as entry to be adjusted, then the weight that fuzzy phoneme strategy determines is carried out Reduce, it is believed that user inputs the probability reduction of " sh ", " s " by mistake, the word frequency after the weighting of corresponding gloomy China can also be reduced, " mythology " Current word frequency will be more than " gloomy China ".Meanwhile, during other entries of Weight for subsequently being determined by fuzzy phoneme strategy again, other words Word frequency after bar weighting can also be reduced.It should be noted that step 405 and step 406 can carry out individually holding simultaneously Row step 405 or step 406.Can also further analyze entry to be adjusted in the recent period by user's selected frequencies it is relatively low the reason for, example Such as, during user input " shenhua ", when " gloomy China " is confirmed as entry to be adjusted, then can divide by other fuzzy phonemes Analysis determines whether user can distinguish flat tongue consonant and cacuminal, and if it is the weight that fuzzy phoneme strategy determines is carried out Reduce, if otherwise simply by the current word frequency of regulation coefficient reduction " gloomy China ".
Step 407, according to the word frequency after adjustment, determines the order of candidate entry.
In the present embodiment, above-mentioned electronic equipment can according in step 405 or step 406 adjust after word frequency, it is determined that The order of candidate entry.Candidate entry can be ranked up according to word frequency descending order determine the suitable of candidate entry Sequence.
Step 408, in sequence, is presented candidate entry.
In the present embodiment, above-mentioned electronic equipment can enter row information defeated in user according to order in step 407 using it Candidate entry is presented on the terminal device for entering.
The method that above-described embodiment of the application is provided is by reducing the current word frequency of entry to be adjusted and/or in current word Frequency be the Weight candidate entry determined by input policing original word frequency obtain when, reduce input policing determination power Weight, further optimizes the ranking results of candidate entry, improves information input efficiency.
With further reference to Fig. 5, as the realization to the above method, this application provides an a kind of implementation of input unit Example, the device embodiment is corresponding with the embodiment of the method shown in Fig. 2, and the device specifically can apply to various electronic equipments In.
As shown in figure 5, the input unit 500 of the present embodiment includes:Acquiring unit 510, query unit 520, adjustment unit 530th, determining unit 540, display unit 550, wherein, acquiring unit 510, the input information for obtaining user;Query unit 520, for inquiring about the candidate entry with above-mentioned input information matches in the dictionary for pre-building;Adjustment unit 530, for root According to the number of times of the above-mentioned above-mentioned candidate entry of user input in the history cycle of predetermined quantity, the current word of above-mentioned candidate entry is adjusted Frequently;Determining unit 540, for according to the word frequency after adjustment, determining the order of above-mentioned candidate entry;Display unit 550, for pressing According to order, above-mentioned candidate entry is presented.
In the present embodiment, acquiring unit 510, query unit 520, adjustment unit 530, determining unit 540, display unit 550 specific treatment may be referred to Fig. 2 correspondence embodiments step 201, step 202, step 203, step 204 and step 205 Describe in detail, will not be repeated here.
In some optional implementations of the present embodiment, said apparatus also include predetermined quantity determining unit 560, above-mentioned Predetermined quantity determining unit 560 includes:First statistics subelement 561, for counting each history cycle in predetermined amount of time At the end of user input entry species total amount;First determination subelement 562, for based on total amount, determining above-mentioned predetermined quantity.
In some optional implementations of the present embodiment, above-mentioned first determination subelement 562 is further configured to: From second history cycle in predetermined amount of time, the total amount of user input entry species at the end of each history cycle is counted The increment of the total amount of user input entry species obtains increment set at the end of relative to previous history cycle;Increase according to statistics The order of amount, following steps are performed to the increment in increment set, until comparing the increment less than preset threshold value:Compare the increasing Whether amount is less than preset threshold value;Update number of comparisons;Number of comparisons is defined as predetermined quantity.
In some optional implementations of the present embodiment, above-mentioned first determination subelement 562 is further configured to: From second history cycle in predetermined amount of time, the total amount phase of user input entry species at the end of the history cycle is counted The increment of the total amount of user input entry species at the end of for previous history cycle, and whether compare counted increment small In preset threshold value, if so, then stop counting and recording number of comparisons, if it is not, then recording number of comparisons;Above-mentioned number of comparisons is true It is set to above-mentioned predetermined quantity.
In some optional implementations of the present embodiment, above-mentioned adjustment unit 530, including:Second statistics subelement 531, the number of times for counting user input candidate entry in each history cycle;Second determination subelement 534, for that will be united Candidate entry in the number of times of meter less than predetermined threshold value is defined as entry to be adjusted;First reduces subelement 532, for reduction State the current word frequency of entry to be adjusted.
In some optional implementations of the present embodiment, above-mentioned first reduces subelement 532, is further configured to: Obtain the entry quantity of above-mentioned user input in each history cycle;According to entry quantity, it is determined that for reducing above-mentioned current word The regulation coefficient of frequency;Calculate the product of regulation coefficient and above-mentioned current word frequency, and using product as the word frequency after reduction.
In some optional implementations of the present embodiment, above-mentioned first reduces subelement 532, is further configured to: Judge above-mentioned entry quantity whether more than predetermined threshold;If it is, the first regulation coefficient is defined as reducing above-mentioned treating Adjust the regulation coefficient of the current word frequency of entry;If it is not, then the second regulation coefficient is defined as above-mentioned to be adjusted for reducing The regulation coefficient of the current word frequency of entry, wherein, above-mentioned second regulation coefficient is more than above-mentioned first regulation coefficient.
In some optional implementations of the present embodiment, above-mentioned current word frequency is the Weight determined by input policing What the original word frequency of candidate entry was obtained;And adjustment unit 530, including:Second statistics subelement 531, for counting each The number of times of user input candidate entry in history cycle;Second determination subelement 534, in the number of times that will be counted less than pre- If the candidate entry of threshold value is defined as entry to be adjusted;Second reduces subelement 533, the power for reducing input policing determination Weight.
From figure 5 it can be seen that in the present embodiment input unit 500 by obtaining the input information of user, and advance The candidate entry with above-mentioned input information matches is inquired about in the dictionary of foundation, then according to above-mentioned in the history cycle of predetermined quantity The number of times of the above-mentioned candidate entry of user input, adjusts the current word frequency of above-mentioned candidate entry, finally according to the word frequency after adjustment, really The order of fixed above-mentioned candidate entry, and in sequence, above-mentioned candidate entry is presented.Thus, the present embodiment is realized according to user The change adjustment word frequency of custom, there is provided personalized Search Results, so as to improve the efficiency of user input entry.
Below with reference to Fig. 6, it illustrates the calculating for being suitable to terminal device or server for realizing the embodiment of the present application The structural representation of machine system 600.Terminal device/server shown in Fig. 6 is only an example, and the application should not be implemented Example function and using range band any limitation.
As shown in fig. 6, computer system 600 includes CPU (CPU) 601, it can be according to storage read-only In memory (ROM) 602
Program is performed various suitable from the storage program that is loaded into random access storage device (RAM) 603 of part 608 When action and treatment.In RAM 603, the system that is also stored with 600 operates required various programs and data.CPU 601、 ROM 602 and RAM 603 is connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to bus 604.
I/O interfaces 605 are connected to lower component:Including the importation 606 of keyboard, mouse etc.;Penetrated including such as negative electrode The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage part 608 including hard disk etc.; And the communications portion 609 of the NIC including LAN card, modem etc..Communications portion 609 via such as because The network of spy's net performs communication process.Driver 610 is also according to needing to be connected to I/O interfaces 606.Detachable media 611, such as Disk, CD, magneto-optic disk, semiconductor memory etc., as needed on driver 610, in order to read from it Computer program be mounted into as needed storage part 608.
Especially, in accordance with an embodiment of the present disclosure, the process above with reference to flow chart description may be implemented as computer Software program.For example, embodiment of the disclosure includes a kind of computer program product, it includes being carried on computer-readable medium On computer program, the computer program includes the program code for the method shown in execution flow chart.In such reality Apply in example, the computer program can be downloaded and installed by communications portion 609 from network, and/or from detachable media 611 are mounted.When the computer program is performed by CPU (CPU) 601, limited in execution the present processes Above-mentioned functions.It should be noted that computer-readable medium described herein can be computer-readable signal media or Computer-readable recording medium or the two are combined.Computer-readable recording medium for example can be --- but Be not limited to --- the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or device, or it is any more than combination. The more specifically example of computer-readable recording medium can be included but is not limited to:Electrical connection with one or more wires, Portable computer diskette, hard disk, random access storage device (RAM), read-only storage (ROM), erasable type may be programmed read-only depositing Reservoir (EPROM or flash memory), optical fiber, portable compact disc read-only storage (CD-ROM), light storage device, magnetic memory Part or above-mentioned any appropriate combination.In this application, computer-readable recording medium can be it is any comprising or storage The tangible medium of program, the program can be commanded execution system, device or device and use or in connection.And In the application, computer-readable signal media can include believing in a base band or as the data that a carrier wave part is propagated Number, wherein carrying computer-readable program code.The data-signal of this propagation can take various forms, including but not It is limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer Any computer-readable medium beyond readable storage medium storing program for executing, the computer-readable medium can send, propagate or transmit use In by the use of instruction execution system, device or device or program in connection.Included on computer-readable medium Program code any appropriate medium can be used to transmit, including but not limited to:Wirelessly, electric wire, optical cable, RF etc., Huo Zheshang Any appropriate combination stated.
Flow chart and block diagram in accompanying drawing, it is illustrated that according to the system of the various embodiments of the application, method and computer journey The architectural framework in the cards of sequence product, function and operation.At this point, each square frame in flow chart or block diagram can generation One part for unit, program segment or code of table a, part for the unit, program segment or code includes one or more Executable instruction for realizing the logic function of regulation.It should also be noted that in some realizations as replacement, institute in square frame The function of mark can also occur with different from the order marked in accompanying drawing.For example, two square frame reality for succeedingly representing On can perform substantially in parallel, they can also be performed in the opposite order sometimes, and this is depending on involved function.Also It is noted that the combination of the square frame in each square frame and block diagram and/or flow chart in block diagram and/or flow chart, Ke Yiyong Perform the function of regulation or the special hardware based system of operation to realize, or can be referred to computer with specialized hardware The combination of order is realized.
Being described in involved unit in the embodiment of the present application can be realized by way of software, it is also possible to by hard The mode of part is realized.Described unit can also be set within a processor, for example, can be described as:A kind of processor bag Include acquiring unit, query unit, adjustment unit, determining unit, display unit.Wherein, the title of these units is in certain situation Under do not constitute restriction to the unit in itself, for example, acquiring unit is also described as " obtaining the input information of user Unit ".
As on the other hand, present invention also provides a kind of nonvolatile computer storage media, the non-volatile calculating Machine storage medium can be the nonvolatile computer storage media included in device described in above-described embodiment;Can also be Individualism, without the nonvolatile computer storage media allocated into terminal.Above-mentioned nonvolatile computer storage media is deposited One or more program is contained, when one or more of programs are performed by an equipment so that the equipment:Obtain The input information of user;Inquiry and the candidate entry for being input into information matches in the dictionary for pre-building;According to predetermined quantity The number of times of user input candidate entry in history cycle, adjusts the current word frequency of candidate entry;According to the word frequency after adjustment, it is determined that The order of candidate entry;In the order described above, candidate entry is presented.
Above description is only the preferred embodiment and the explanation to institute's application technology principle of the application.People in the art Member is it should be appreciated that involved invention scope in the application, however it is not limited to the technology of the particular combination of above-mentioned technical characteristic Scheme, while should also cover in the case where the inventive concept is not departed from, is carried out by above-mentioned technical characteristic or its equivalent feature Other technical schemes for being combined and being formed.Such as features described above has similar work(with (but not limited to) disclosed herein The technical scheme that the technical characteristic of energy is replaced mutually and formed.

Claims (19)

1. a kind of input method, it is characterised in that methods described includes:
Obtain the input information of user;
The candidate entry with the input information matches is inquired about in the dictionary for pre-building;
The number of times of candidate entry according to the user input in the history cycle of predetermined quantity, adjusts the candidate entry Current word frequency;
According to the word frequency after adjustment, the order of the candidate entry is determined;
According to the order, the candidate entry is presented.
2. method according to claim 1, it is characterised in that the predetermined quantity determines via following steps:
The total amount of user input entry species at the end of each history cycle in statistics predetermined amount of time;
Based on the total amount, the predetermined quantity is determined.
3. method according to claim 2, it is characterised in that described that the predetermined quantity is determined based on the total amount, bag Include:
From second history cycle in predetermined amount of time, user input entry species at the end of each history cycle is counted Total amount relative to previous history cycle at the end of the increment of total amount of user input entry species obtain increment set;
According to the order for counting the increment, following steps are performed to the increment in the increment set, until comparing the increasing Amount is less than preset threshold value:Whether compare the increment less than preset threshold value;Update number of comparisons;
The number of comparisons is defined as the predetermined quantity.
4. method according to claim 2, it is characterised in that described that the predetermined quantity is determined based on the total amount, bag Include:
From second history cycle in predetermined amount of time, the total of user input entry species at the end of the history cycle is counted The increment of the total amount of user input entry species at the end of measuring relative to previous history cycle, and compare counted increment and be It is no less than preset threshold value, if so, then stop count and record number of comparisons, if it is not, then recording number of comparisons;
The number of comparisons is defined as the predetermined quantity.
5. method according to claim 1, it is characterised in that the user in the history cycle according to predetermined quantity The number of times of the candidate entry is input into, the current word frequency of the candidate entry is adjusted, including:
Count the number of times of candidate entry described in the user input in each described history cycle;
Candidate entry in the number of times that will be counted less than predetermined threshold value is defined as entry to be adjusted;
Reduce the current word frequency of the entry to be adjusted.
6. method according to claim 5, it is characterised in that the current word frequency of the reduction entry to be adjusted, bag Include:
Obtain the entry quantity of the user input in each described history cycle;
According to the entry quantity, it is determined that the regulation coefficient for reducing the current word frequency;
Calculate the product of the regulation coefficient and the current word frequency, and using the product as the word frequency after reduction.
7. method according to claim 6, it is characterised in that described according to the entry quantity, it is determined that for reducing institute The regulation coefficient of current word frequency is stated, including:
Judge the entry quantity whether more than predetermined threshold;
If it is, the first regulation coefficient is defined as into the regulation coefficient for reducing the current word frequency;
If it is not, then the second regulation coefficient is defined as the regulation coefficient for reducing the current word frequency, wherein, described second Regulation coefficient is more than first regulation coefficient.
8. the method according to any one of claim 1-7, it is characterised in that the current word frequency is true by input policing What the original word frequency of candidate entry described in fixed Weight was obtained;And
The number of times of candidate entry described in the user input in the history cycle according to predetermined quantity, adjusts the candidate word The current word frequency of bar, including:
Count the number of times of candidate entry described in the user input in each described history cycle;
Candidate entry in the number of times that will be counted less than predetermined threshold value is defined as entry to be adjusted;
Reduce the weight that the input policing determines.
9. method according to claim 8, it is characterised in that the input policing include it is following at least one:
Simplicity strategy, for being input into by being input into the initial of initial consonant or initial consonant;
Fuzzy phoneme strategy, is input into for not differentiating between the easy confusion tone section for pre-setting;
Error correction strategies, for do not differentiate between pre-set easily input syllable by mistake and be input into;
By word strategy, for entry will to be input into as in preceding entry, there is provided probability of occurrence it is big in rear entry as candidate word Bar is input into;
Personalized Policies, for being input into using the setting in user account to input method rule.
10. a kind of input unit, it is characterised in that described device includes:
Acquiring unit, the input information for obtaining user;
Query unit, for inquiring about the candidate entry with the input information matches in the dictionary for pre-building;
Adjustment unit, for the number of times of candidate entry described in the user input in the history cycle according to predetermined quantity, adjustment The current word frequency of the candidate entry;
Determining unit, for according to the word frequency after adjustment, determining the order of the candidate entry;
Display unit, for according to the order, the candidate entry being presented.
11. devices according to claim 10, it is characterised in that described device also includes predetermined quantity determining unit, institute Stating predetermined quantity determining unit includes:
First statistics subelement, for counting each history cycle in predetermined amount of time at the end of user input entry species Total amount;
First determination subelement, for based on the total amount, determining the predetermined quantity.
12. devices according to claim 11, it is characterised in that first determination subelement, are further configured to:
From second history cycle in predetermined amount of time, user input entry species at the end of each history cycle is counted Total amount relative to previous history cycle at the end of the increment of total amount of user input entry species obtain increment set;
According to the order for counting the increment, following steps are performed to the increment in the increment set, until comparing the increasing Amount is less than preset threshold value:Whether compare the increment less than preset threshold value;Update number of comparisons;
The number of comparisons is defined as the predetermined quantity.
13. devices according to claim 11, it is characterised in that first determination subelement, are further configured to:
From second history cycle in predetermined amount of time, the total of user input entry species at the end of the history cycle is counted The increment of the total amount of user input entry species at the end of measuring relative to previous history cycle, and compare counted increment and be It is no less than preset threshold value, if so, then stop count and record number of comparisons, if it is not, then recording number of comparisons;
The number of comparisons is defined as the predetermined quantity.
14. devices according to claim 10, it is characterised in that the adjustment unit, including:
Second statistics subelement, the number of times for counting candidate entry described in the user input in each described history cycle;
Second determination subelement, word to be adjusted is defined as the candidate entry in the number of times that will be counted less than predetermined threshold value Bar;
First reduces subelement, the current word frequency for reducing the entry to be adjusted.
15. devices according to claim 14, it is characterised in that described first reduces subelement, is further configured to:
Obtain the entry quantity of the user input in each described history cycle;
According to the entry quantity, it is determined that the regulation coefficient for reducing the current word frequency;
Calculate the product of the regulation coefficient and the current word frequency, and using the product as the word frequency after reduction.
16. devices according to claim 15, it is characterised in that described first reduces subelement, is further configured to:
Judge the entry quantity whether more than predetermined threshold;
If it is, the first regulation coefficient to be defined as the regulation coefficient of the current word frequency for reducing the entry to be adjusted;
If it is not, then the second regulation coefficient is defined as the regulation coefficient of the current word frequency for reducing the entry to be adjusted, Wherein, second regulation coefficient is more than first regulation coefficient.
17. device according to any one of claim 10-16, it is characterised in that the current word frequency is by input plan What the original word frequency of candidate entry described in the Weight for slightly determining was obtained;And
The adjustment unit, including:
Second statistics subelement, the number of times for counting candidate entry described in the user input in each described history cycle;
Second determination subelement, word to be adjusted is defined as the candidate entry in the number of times that will be counted less than predetermined threshold value Bar;
Second reduces subelement, for reducing the weight that the input policing determines.
A kind of 18. equipment, it is characterised in that including:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are by one or more of computing devices so that one or more of processor realities The existing method as described in any in claim 1-9.
A kind of 19. computer-readable recording mediums, are stored thereon with computer program, it is characterised in that the program is by processor The method as described in any in claim 1-9 is realized during execution.
CN201710083643.0A 2017-02-16 2017-02-16 Input method and device Active CN106873799B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710083643.0A CN106873799B (en) 2017-02-16 2017-02-16 Input method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710083643.0A CN106873799B (en) 2017-02-16 2017-02-16 Input method and device

Publications (2)

Publication Number Publication Date
CN106873799A true CN106873799A (en) 2017-06-20
CN106873799B CN106873799B (en) 2020-10-09

Family

ID=59166848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710083643.0A Active CN106873799B (en) 2017-02-16 2017-02-16 Input method and device

Country Status (1)

Country Link
CN (1) CN106873799B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107885348A (en) * 2017-11-27 2018-04-06 牡丹江师范学院 The Japanese input device and method of a kind of mobile communication terminal device
CN108932069A (en) * 2018-07-11 2018-12-04 科大讯飞股份有限公司 Input method candidate entry determines method, apparatus, equipment and readable storage medium storing program for executing
CN109426354A (en) * 2017-08-25 2019-03-05 北京搜狗科技发展有限公司 A kind of input method, device and the device for input
CN109521888A (en) * 2017-09-19 2019-03-26 北京搜狗科技发展有限公司 A kind of input method, device and medium
CN109597495A (en) * 2017-09-30 2019-04-09 北京金山安全软件有限公司 Information prediction method, device and equipment
CN109725737A (en) * 2017-10-31 2019-05-07 北京金山安全软件有限公司 Information display method, device and system
CN109783244A (en) * 2017-11-10 2019-05-21 北京搜狗科技发展有限公司 Treating method and apparatus, the device for processing
CN109917927A (en) * 2017-12-13 2019-06-21 北京搜狗科技发展有限公司 A kind of candidate item determines method and apparatus
CN110502126A (en) * 2019-05-28 2019-11-26 华为技术有限公司 Input method and electronic equipment
CN111382242A (en) * 2018-12-28 2020-07-07 北京搜狗科技发展有限公司 Information providing method, device and readable medium
CN111460795A (en) * 2020-03-26 2020-07-28 云知声智能科技股份有限公司 Text error correction method and system
CN111984132A (en) * 2020-07-07 2020-11-24 北京语言大学 Method and system for inputting information according to context environment
CN112395044A (en) * 2020-11-10 2021-02-23 新华三技术有限公司合肥分公司 Command line keyword filling method and device and network equipment
CN113515618A (en) * 2020-04-09 2021-10-19 北京搜狗科技发展有限公司 Voice processing method, apparatus and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101071334A (en) * 2006-12-29 2007-11-14 腾讯科技(深圳)有限公司 Method and system for restoring candidat word order for Chinese input method
CN102346560A (en) * 2010-07-29 2012-02-08 腾讯科技(深圳)有限公司 Method and device for adjusting candidate word sequence in input method
US8463598B2 (en) * 2007-08-23 2013-06-11 Google Inc. Word detection
CN105094368A (en) * 2015-07-24 2015-11-25 上海二三四五网络科技有限公司 Control method and control device for frequency modulation ordering of input method candidate item
CN105955495A (en) * 2016-04-29 2016-09-21 百度在线网络技术(北京)有限公司 Information input method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101071334A (en) * 2006-12-29 2007-11-14 腾讯科技(深圳)有限公司 Method and system for restoring candidat word order for Chinese input method
US8463598B2 (en) * 2007-08-23 2013-06-11 Google Inc. Word detection
CN102346560A (en) * 2010-07-29 2012-02-08 腾讯科技(深圳)有限公司 Method and device for adjusting candidate word sequence in input method
CN105094368A (en) * 2015-07-24 2015-11-25 上海二三四五网络科技有限公司 Control method and control device for frequency modulation ordering of input method candidate item
CN105955495A (en) * 2016-04-29 2016-09-21 百度在线网络技术(北京)有限公司 Information input method and device

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109426354B (en) * 2017-08-25 2022-07-12 北京搜狗科技发展有限公司 Input method, device and device for input
CN109426354A (en) * 2017-08-25 2019-03-05 北京搜狗科技发展有限公司 A kind of input method, device and the device for input
CN109521888B (en) * 2017-09-19 2022-11-01 北京搜狗科技发展有限公司 Input method, device and medium
CN109521888A (en) * 2017-09-19 2019-03-26 北京搜狗科技发展有限公司 A kind of input method, device and medium
CN109597495A (en) * 2017-09-30 2019-04-09 北京金山安全软件有限公司 Information prediction method, device and equipment
CN109725737A (en) * 2017-10-31 2019-05-07 北京金山安全软件有限公司 Information display method, device and system
CN109783244A (en) * 2017-11-10 2019-05-21 北京搜狗科技发展有限公司 Treating method and apparatus, the device for processing
CN109783244B (en) * 2017-11-10 2021-06-22 北京搜狗科技发展有限公司 Processing method and device for processing
CN107885348A (en) * 2017-11-27 2018-04-06 牡丹江师范学院 The Japanese input device and method of a kind of mobile communication terminal device
CN109917927A (en) * 2017-12-13 2019-06-21 北京搜狗科技发展有限公司 A kind of candidate item determines method and apparatus
CN108932069A (en) * 2018-07-11 2018-12-04 科大讯飞股份有限公司 Input method candidate entry determines method, apparatus, equipment and readable storage medium storing program for executing
CN111382242A (en) * 2018-12-28 2020-07-07 北京搜狗科技发展有限公司 Information providing method, device and readable medium
CN110502126A (en) * 2019-05-28 2019-11-26 华为技术有限公司 Input method and electronic equipment
CN110502126B (en) * 2019-05-28 2023-12-29 华为技术有限公司 Input method and electronic equipment
CN111460795A (en) * 2020-03-26 2020-07-28 云知声智能科技股份有限公司 Text error correction method and system
CN111460795B (en) * 2020-03-26 2023-05-26 云知声智能科技股份有限公司 Text error correction method and system
CN113515618A (en) * 2020-04-09 2021-10-19 北京搜狗科技发展有限公司 Voice processing method, apparatus and medium
CN111984132B (en) * 2020-07-07 2021-07-27 北京语言大学 Method and system for inputting information according to context environment
CN111984132A (en) * 2020-07-07 2020-11-24 北京语言大学 Method and system for inputting information according to context environment
CN112395044A (en) * 2020-11-10 2021-02-23 新华三技术有限公司合肥分公司 Command line keyword filling method and device and network equipment
CN112395044B (en) * 2020-11-10 2023-04-28 新华三技术有限公司合肥分公司 Command line keyword filling method and device and network equipment

Also Published As

Publication number Publication date
CN106873799B (en) 2020-10-09

Similar Documents

Publication Publication Date Title
CN106873799A (en) Input method and device
CN109460514A (en) Method and apparatus for pushed information
CN108446382B (en) Method and apparatus for pushed information
CN107273436A (en) The training method and trainer of a kind of recommended models
CN107943583B (en) Application processing method and device, storage medium and electronic equipment
CN108805091A (en) Method and apparatus for generating model
CN108197652A (en) For generating the method and apparatus of information
CN107330715A (en) The method and apparatus for selecting display advertising material
CN108228463A (en) For detecting the method and apparatus of initial screen time
CN108322317A (en) A kind of account identification correlating method and server
CN106874416A (en) Seniority among brothers and sisters list generation method and ranking list single generating device
CN108632311A (en) Information-pushing method and device
CN110400184A (en) Method and apparatus for generating information
CN108366114A (en) Using the method, apparatus, terminal and computer readable storage medium of Anti-addiction
CN106897905A (en) Method, device and electronic equipment for pushed information
CN108197592A (en) Information acquisition method and device
WO2023000491A1 (en) Application recommendation method, apparatus and device, and computer-readable storage medium
CN107451869A (en) Method and apparatus for pushed information
CN109214501A (en) The method and apparatus of information for identification
CN107517251A (en) Information-pushing method and device
CN107392259A (en) The method and apparatus for building unbalanced sample classification model
CN110473042A (en) For obtaining the method and device of information
CN108765134A (en) Order data processing method and processing device, electronic equipment, storage medium
CN105488027B (en) The method for pushing and device of keyword
CN109165077A (en) A kind of web page processing method, device, electronic equipment and storage medium

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