CN105334952B - A kind of input method and device of text information - Google Patents
A kind of input method and device of text information Download PDFInfo
- Publication number
- CN105334952B CN105334952B CN201410332496.2A CN201410332496A CN105334952B CN 105334952 B CN105334952 B CN 105334952B CN 201410332496 A CN201410332496 A CN 201410332496A CN 105334952 B CN105334952 B CN 105334952B
- Authority
- CN
- China
- Prior art keywords
- text information
- occurrence
- text
- screen
- gone
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements 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/0233—Character input methods
- G06F3/0237—Character input methods using prediction or retrieval techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements 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/0233—Character input methods
- G06F3/0236—Character 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)
- User Interface Of Digital Computer (AREA)
- Input From Keyboards Or The Like (AREA)
- Document Processing Apparatus (AREA)
- Machine Translation (AREA)
Abstract
The embodiment of the invention provides a kind of input method of text information and device, the method includes: to determine the first text information and the second text information when monitoring that deleting current all or part has gone up screen text information;Wherein, first text information includes all having gone up the corresponding key-press input string of screen text information, all having gone up screen text information and deleted backspace number used;Second text information includes the text information re-entered after first text information occurs;The select probability that second text information is shielded in selection is calculated according to first text information;When the select probability is greater than preset probability threshold value, second text information is shown in specified position.The embodiment of the present invention can be effectively reduced the keying speed of user, improve input efficiency, and realization quickly and easily inputs, and improve user experience, it is possible to reduce the consumption of apparatus system resource.
Description
Technical field
The present invention relates to the technical fields of input method, input method and a kind of text more particularly to a kind of text information
The input unit of information.
Background technique
Widely available with mobile device, user handles this or that commonly using mobile device, for example, chat, on
Net, hair microblogging etc., user often needs to use input method system input word content therewith.
Use habit is inputted according to mobile device, user inputs commonly using input method nine grids keyboard, has
Comfortable generous thumb key, can rapidly input word content, and reduce error rate when input.
User is when inputting text, in fact it could happen that diverts attention or position clicks the reasons such as mistake and causes maloperation, select
Having selected is not required text.For example, it is assumed that user what is desired is that " you dare " or other, but due to maloperation select
" hello " carries out inputting screen.
User needs to delete " hello " and then re-enters other words, also, user will may also pass through the side such as page turning
Formula can just find desired text, this not only makes user's operation cumbersome, reduce input efficiency, and re-enter meeting
Increase the consumption of mobile device resource.
Summary of the invention
The embodiment of the present invention is defeated to improve the technical problem to be solved is that providing a kind of input method of text information
Enter efficiency.
Correspondingly, the embodiment of the invention also provides a kind of input units of text information, to guarantee the above method
It realizes and applies.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of input methods of text information, comprising:
When monitoring that deleting current all or part has gone up screen text information, the first text information and the second text are determined
Information;Wherein, first text information includes all having gone up the corresponding key-press input string of screen text information, all having gone up screen text
Backspace number used in this information and deletion;Second text information includes that institute is again after first text information occurs
The text information of input;
The select probability that second text information is shielded in selection is calculated according to first text information;
When the select probability is greater than preset probability threshold value, second text envelope is shown in specified position
Breath.
It is preferably, described that according to first text information to calculate second text information general by the selection shielded in selection
The step of rate includes:
Search the first history frequency of occurrence of first text information;
Search the second history frequency of occurrence of second text information;
The second text information of candidate being shown is determined in second text information;
It is calculated using the following equation the select probability that second text information is shielded in selection:
Wherein, p is the select probability, and Py-A-c is first text information, and Py is that the whole has gone up screen text
The corresponding key-press input string of information, A are that the whole has gone up screen text information, and c is the backspace number, BiFor second text
This information, count (Py-A-c) are the first history frequency of occurrence, count (Py-A-c-Bi) it is that second history occurs
The frequency, n are the quantity of candidate second text information, and i is positive integer.
Preferably, the first history frequency of occurrence and the second history frequency of occurrence obtain in the following manner:
When monitoring that deleting first all or part has gone up screen text information, it is corresponding screen text information will have all been gone up
Key-press input string, whole, which have gone up screen text information and deleted backspace number used, is recorded as the first text information;
Being recorded in the text information inputted after first text information occurs is the second text information;
Count the first history frequency of occurrence of first text information;
Count the second history frequency of occurrence of second text information.
Preferably, described that the second text information of candidate shown in first screen is determined in second text information
The step of include:
Calculate the frequency of occurrences of second text information;The frequency of occurrences include the second history frequency of occurrence with
The ratio of the first history frequency of occurrence;
Maximum one or more second text informations of the probability of occurrence are extracted as the time shown in first screen
Select the second text information.
Preferably, described the step of showing second text information in specified position, includes:
Candidate second text information is shown in specified position.
The embodiment of the invention also discloses a kind of input units of text information characterized by comprising
Text information determining module, for determining when monitoring that deleting current all or part has gone up screen text information
First text information and the second text information;Wherein, first text information is corresponding including all having gone up screen text information
Key-press input string has all gone up screen text information and has deleted backspace number used;Second text information includes described
The text information that one text information is re-entered after occurring;
Select probability computing module, for calculating second text information by selection according to first text information
The select probability of screen;
Display module, for showing institute in specified position when the select probability is greater than preset probability threshold value
State the second text information.
Preferably, the select probability computing module includes:
First searches submodule, for searching the first history frequency of occurrence of first text information;
Second searches submodule, for searching the second history frequency of occurrence of second text information;
Candidate determines submodule, for determining the second text envelope of candidate being shown in second text information
Breath;
Formula computational submodule, it is general for being calculated using the following equation the selection that second text information is shielded in selection
Rate:
Wherein, p is the select probability, and Py-A-c is first text information, and Py is that the whole has gone up screen text
The corresponding key-press input string of information, A are that the whole has gone up screen text information, and c is the backspace number, BiFor second text
This information, count (Py-A-c) are the first history frequency of occurrence, count (Py-A-c-Bi) it is that second history occurs
The frequency, n are the quantity of candidate second text information, and i is positive integer.
Preferably, the first history frequency of occurrence and the second history frequency of occurrence obtain in the following manner:
When monitoring that deleting first all or part has gone up screen text information, it is corresponding screen text information will have all been gone up
Key-press input string, whole, which have gone up screen text information and deleted backspace number used, is recorded as the first text information;
Being recorded in the Textual information inputted after first text information occurs is the second text information;
Count the first history frequency of occurrence of first text information;
Count the second history frequency of occurrence of second text information.
Preferably, the candidate determining submodule includes:
Probability of occurrence computational submodule, for calculating the frequency of occurrences of second text information;The frequency of occurrences packet
Include the ratio of the second history frequency of occurrence Yu the first history frequency of occurrence;
Extracting sub-module is shielded for extracting maximum one or more second text informations of the probability of occurrence and being used as in head
Middle the second text information of candidate shown.
Preferably, the display module includes:
Candidate shows submodule, for showing candidate second text information in specified position.
Compared with prior art, the embodiment of the present invention includes following advantages:
The embodiment of the present invention determines the first text envelope when monitoring that deleting current all or part has gone up screen text information
It is general to calculate the selection that the second text information is shielded in selection in first screen according to first text information for breath and the second text information
Rate shows the second text information in head screen, takes full advantage of text information when select probability is greater than preset probability threshold value
Information that this feedback of text information is deleted after shielding on repeated code this attribute, user, by will be inputted after user's backspace
Text information carries out the mode of association, directly shows the text information that may be inputted, user is avoided to repeatedly input key-press input
The operation such as string, page turning, on the one hand, the keying speed of user can be effectively reduced, improve input efficiency, realized quickly and easily defeated
Enter, improves user experience, on the other hand, it is possible to reduce equipment inputs the response of the operations such as key-press input string, page turning to user, subtracts
The consumption of few apparatus system resource.
The embodiment of the present invention is ranked up the text information that may be inputted after backspace behavior by probability from high to low, side
Just make user be selected text information again, improve the simplicity of operation.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of the input method embodiment of text information of the invention;
Fig. 2 is a kind of flow example figure of normal input text information;
Fig. 3 is the flow example figure of input text information in a kind of technology of formerly reduction scene;
Fig. 4 is a kind of input process exemplary diagram of text information of the invention;
Fig. 5 is a kind of flow example figure of normal input text information;
Fig. 6 is a kind of input process exemplary diagram of text information of the invention;
Fig. 7 is a kind of flow example figure of normal input text information;
Fig. 8 is the flow example figure of input text information in a kind of technology of formerly reduction scene;
Fig. 9 is a kind of input process exemplary diagram of text information of the invention;
Figure 10 is a kind of structural block diagram of the input unit embodiment of text information of the invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real
Applying mode, the present invention is described in further detail.
User in text information input process often due to shielding in input error or wrong choice text information, without
It obtains not backspace to delete accidentally defeated part and re-start input, so that reducing input efficiency and reducing user's input experience.
In practical applications, find that the text information that user inputs before and after backspace behavior is that there are one through further investigation
Set pattern rule, therefore one of the core concepts of the embodiments of the present invention is proposed, it analyzes and will use using user's backspace behavior
Family needs the text information re-entered to be supplied to user, so that the input feedback information for efficiently using user promotes user's input
Efficiency, the i.e. embodiment of the present invention can provide active association when backspace deleting act occurs after upper screen for a kind of text information,
And the backspace behavioural analysis based on user actively shields in head when user deletes certain text informations and shows user next very
It is possible that will continue to the text information of input.
Certainly, one of the core idea of the embodiments of the present invention can be applied and go up the situation of screen in text information,
It can apply in the not upper situation shielded of text information, the embodiments of the present invention are not limited thereto.
Referring to Fig.1, a kind of step flow chart of the input method embodiment of text information of the invention is shown, can wrap
Include following steps:
Step 101, when monitor to delete it is current it is all or part of go up screen text information when, determine the first text information with
Second text information;
Wherein, first text information may include all having gone up the corresponding key-press input string of screen text information, whole
It has gone up screen text information and has deleted backspace number used;Second text information may include that first text information goes out
The text information re-entered after now;
It should be noted that clicking candidate after upper screen can input the candidate text information of key-press input string acquisition for user
The behavior of text information, backspace can delete the behavior of the text information of input for user.The key-press input string can be spelling
Sound, five, stroke, the corresponding key-press input string of input modes such as English, the embodiments of the present invention are not limited thereto;The text
Information can be text, or number, can also for " " ", this is also not added in symbols, the embodiment of the present invention such as " % "
With limitation.
In the concrete realization, user can be deleted by backspace event and currently completely or partially go up screen text information, should
Backspace event can be triggered by backspace key.Backspace key, also referred to as Hui Gejian may be used to one lattice of cursor left, delete simultaneously
Character in cursor left position.In general, mark of the backspace key on keyboard (keyboard and dummy keyboard including reality) is
" ← ", English alphabet are BackSpace.
It, can by the first text information Py-A-c, (Py be that the whole go up and shields text in advance using the embodiment of the present invention
The corresponding key-press input string of information, A are that the whole has gone up screen text information, and c is the backspace number) and its corresponding second
Text information BiStorage is in the database.First text information Py-A-c can be triple data, and the second text information can be with
For the event occurred under conditions of the triple data occur, four-tuple data Py- can be formed with the triple data
A-c-Bi。
In the concrete realization, text information there may be repeated code in input process, i.e., press by two candidate text informations
Key input string form is the same, for example, 26 in keyboard key full form is consistent, (phonetic such as " I " and " holding " is complete
The button character string of spelling is all " wo "), 26 key simplicity forms in real keyboard it is consistent (such as " owner " and " director "
The button character string of phonetic simplicity is all " zr "), 9 key full forms in nine grids keyboard it is consistent (such as " result " and
The button character string of the spelling of " marriage " is all " 543486 "), 9 key simplicity forms in nine grids keyboard it is consistent (such as
The button character string of the phonetic simplicity of " owner " and " director " is all " 97 ") etc..
And it all goes up the corresponding key-press input string Py of screen text information and has been determined for repeated code.For example, user is in key
The key-press input string that inputs in the environment of 26 keys in disk is " woyou ", upper screen " I has ", this when repeated code text
This information has " I again " etc., but is not in " I walks ";In another example and the environment of 9 keys in nine grids keyboard
The key-press input string of lower input is " 96968 ", and the text information of repeated code is possible to be " I walks ", therefore the text associated after backspace
This information may also be different.
In practical applications, input method possibly can not know the text information that user deletes, and therefore, all go up screen text
Information A and backspace number c can be concured, and know the text information deleted by user.Such as: user inputs key-press input
It goes here and there " woyou ", selects to shield on " I has ", if c=1, i.e. backspace is primary, then may determine that deleted text information is
" having ", if c=2, i.e., twice, i.e., backspace twice, then may determine that deleted text information is " I has " to backspace.
It, can be currently all or part of by the deletion when monitoring that deleting current all or part has gone up screen text information
It has gone up screen text information and has determined that current all gone up shields the corresponding key-press input string Py of text information, it is current all to have gone up screen text
Information A, it is current to delete backspace number c used, obtain triple data Py-A-c, i.e. the first text information, according to this three
Tuple data searches occurred four-tuple data Py-A-c-Bi, that is, can determine the second text information Bi。
Wherein, screen text information A and the second text information B has all been gone upiMay be identical, for example, many users can delete
Fall " I " will continue to input " I " later.
Step 102, the select probability that second text information is shielded in selection is calculated according to first text information;
It should be noted that first screen can be that can carry out candidate text envelope without carrying out the candidate operations such as page turning and sliding
Cease the interface of input method of selection.
In one preferred embodiment of the invention, step 102 may include following sub-step:
Sub-step S11 searches the first history frequency of occurrence of first text information;
Sub-step S12 searches the second history frequency of occurrence of second text information;
In the concrete realization, the first history frequency of occurrence can be time of first text information appeared in log history
Number, the second history frequency of occurrence can be number of second text information appeared in log history.
In a preferred example of an embodiment of the present invention, the first history frequency of occurrence and second history occur
The frequency can obtain in the following manner:
Sub-step S21 will all go up screen text when monitoring that deleting first all or part has gone up screen text information
The corresponding key-press input string of information, whole, which have gone up screen text information and deleted backspace number used, is recorded as the first text envelope
Breath;
Sub-step S22 is recorded in the second text information inputted after first text information occurs;
Sub-step S23 counts the first history frequency of occurrence of first text information;
Sub-step S24 counts the second history frequency of occurrence of second text information.
Preferably, the habit of the input text information of each user is not quite similar, therefore in order to meet user individual
Demand, further increase the second text information hit user demand probability, the first history frequency of occurrence and the second history go out
The existing frequency can input the second text envelope of the first history frequency of occurrence and input of the first text information for the active user of record
Second history frequency of occurrence of breath.
Certainly, there may be non-uniform for the first text information and the second text information that user inputs in different situations
Situation, such as the text information of chat class are larger, but the text information for class of doing shopping may be less, is easy to appear Sparse
Problem, therefore the case where in order to avoid Sparse, the first history frequency of occurrence and the second history frequency of occurrence can be record
Total user input the first text information the first history frequency of occurrence and input the second text information the second history occur
The frequency;First history frequency of occurrence and the second history frequency of occurrence also can input the first text information for the total user of record
The first history frequency of occurrence and input the second text information the second history frequency of occurrence, with active user input the first text
Second history frequency of occurrence of the second text information of the first history frequency of occurrence of information and input, mix according to a certain percentage and
At, the embodiments of the present invention are not limited thereto.
In the concrete realization, if user clicks backspace key and deletes the text information for having gone up screen, add up backspace number
C if c is not 0, enters the training process of backspace association until user acts next time when, that is, counts the of the first text information
The second history frequency of occurrence count (Py-A-c-B of one history frequency of occurrence count (Py-A-c) and the second text informationi),
Otherwise it is assumed that user normally inputs text information, the training process without backspace association.
Sub-step S13 determines the second text information of candidate shown in second text information;
In practical applications, since position for display is limited, it is therefore desirable to determine the second text of candidate shown
This information.
In a preferred example of an embodiment of the present invention, sub-step S13 can further include following sub-step:
Sub-step S131 calculates the frequency of occurrences of second text information;The frequency of occurrences may include described
The ratio of two history frequency of occurrences and the first history frequency of occurrence;
Sub-step S132 extracts maximum one or more second text informations of the probability of occurrence as being shown
The second text information of candidate.
In the concrete realization, it can be ranked up, then be determined first from high to low according to the frequency of occurrences of four-tuple data
Shield the number for the second text information that can be accommodated, such as n, n is positive integer, then preceding n second text is extracted in the sequence
This information is as the second text information of candidate being shown in first screen.
The embodiment of the present invention is ranked up the text information that may be inputted after backspace behavior by probability from high to low, side
Just make user be selected text information again, improve the simplicity of operation.
Sub-step S14 is calculated using the following equation the select probability that second text information is shielded in selection:
Wherein, p is the select probability, and Py-A-c is first text information, and Py is that the whole has gone up screen text
The corresponding key-press input string of information, A are that the whole has gone up screen text information, and c is the backspace number, BiFor second text
This information, count (Py-A-c) are the first history frequency of occurrence, count (Py-A-c-Bi) it is that second history occurs
The frequency, n are the quantity of candidate second text information, and i is positive integer.
Step 103, when the select probability is greater than preset probability threshold value, second text is shown in specified position
This information.
In the concrete realization, specified position can shield headed by, be also possible to association region (such as head screen nearby generation
The interface of the shapes such as bubble), it can also be the arbitrary region of equipment current interface, the embodiments of the present invention are not limited thereto.
In one preferred embodiment of the invention, step 103 may include following sub-step:
Sub-step S31 shows candidate second text information in specified position.
If select probability p is greater than probability threshold value, indicate to have more than the second text envelope that certain probability can be shown in first screen
Next text information that user will input is hit in breath, then can shield in head and show the second text information;If select probability p
Less than or equal to probability threshold value, indicate that next text that user will input can be hit in the second text information that first screen is shown
This informational probability is too low, then can abandon shielding the second text information of displaying in head.
The embodiment of the present invention determines the first text envelope when monitoring that deleting current all or part has gone up screen text information
It is general to calculate the selection that the second text information is shielded in selection in first screen according to first text information for breath and the second text information
Rate shows the second text information in head screen, takes full advantage of text information when select probability is greater than preset probability threshold value
Information that this feedback of text information is deleted after shielding on repeated code this attribute, user, by will be inputted after user's backspace
Text information carries out the mode of association, directly shows the text information that may be inputted, user is avoided to repeatedly input key-press input
The operation such as string, page turning, on the one hand, the keying speed of user can be effectively reduced, improve input efficiency, realized quickly and easily defeated
Enter, improves user experience, on the other hand, it is possible to reduce equipment inputs the response of the operations such as key-press input string, page turning to user, subtracts
The consumption of few apparatus system resource.
Below by way of the examples of several application scenarios, embodiments of the present invention is further illustrated:
Application scenarios one
User inputs key-press input string " 543486 " in input method nine grids keyboard, and input method system returns to " marriage ", " knot
The candidate text information of the corresponding Pinyin Input of key-press inputs string " 543486 " such as fruit ", " raging fire " and " taking over ", is shown in input
On method system interface, it is assumed that user needs to shield in " result ", but because shielding in maloperation selection " marriage ", is shown in using journey
In sequence edit box, such as chat window of short message editing frame, immediate communication tool etc., input error is found later, therefore is moved back
Lattice twice, delete " marriage " for having gone up screen;
In the process normally inputted, as shown in Fig. 2, the then defeated key-press input string " 543486 " of user's weight, obtain with
The same candidate text information of first result, " marriage ", " result ", " raging fire " and " taking over ", i.e., preferred " marriage ", secondary choosing " knot
Fruit ", user can choose shields in time choosing " result ";
Using the technology of first reduction scene, as shown in figure 3, user is without input Pinyin string " 543486 " again, input
Method system shows original candidate text information automatically, " marriage ", " result ", " raging fire " and " taking over ", still preferred " marriage ",
Secondary choosing " result ", user can choose shields in time choosing " result ";
Using the embodiment of the present invention, as shown in figure 4, determining that current all gone up shields the corresponding key-press input string of text information
Py is " 543486 ", and currently all having gone up screen text information A is " marriage ", and current deletion backspace number c used is " 2 ", really
Surely deleted text information is " marriage ", then triple data Py-A-c is " 543486- marriage -2 ", is inquired in triple number
The text information B inputted when occurring according to " 543486- marriage -2 "i, " result ", " raging fire ", " taking over " and " connecing goods ", wherein
" result " is located at first choice, and user can choose shields in preferred " result ".
By way of this example, the advantages of this example is relative to first technology (hereinafter referred to as " the first technology ") for restoring scene exists
In:
1, the candidate that user can be desired in preferred selection, and formerly the result of technology is in secondary choosing, due to computer version etc.
Input method system brought the habit for shielding first candidate on user space, select first candidate smaller very than other candidate costs
It is more;Another extreme situation: assuming that the not instead of time choosing " result " that user wants, is located at the second screen and (shields relative to head
For) first candidate's " connecing goods ", then in first technology, user also needs to click a page turning key, the second screen candidate
The desired text information of selection, and in this example, since " marriage " has conceded the valuable position of first screen, " connecing goods " is able to shield in head
Show, so as to avoid a page turning key.
2, for user when inputting different contents, the probability of error is different, it is more likely that input distribution after backspace and
Distribution when normal input has very big difference, so simulating the distribution of the input after backspace with the input distribution normally inputted
Biggish error is had, and formerly technology is exactly that the upper screen normally inputted distribution is taken to carry out the text information shielded upper after backspace
Prediction clicks delete key, has given input method system some feedback letters in fact after user will accidentally shield on text information
Breath, if being really to shield on missing, just the upper text information shielded will not be entered again, thus first technology is not
Can maximally utilise it is first shield limited spacial flex, relatively (such as nearly word form, sound are close in text information for this phenomenon
Word etc.) when can be particularly evident.
Application scenarios two
User inputs key-press input string " niyou " in the keyboard of reality, input method system return " you again ", " you have ",
The candidate text information of the corresponding Pinyin Input of the key-press inputs string such as " you ", " Buddhist nun ", " " and " greasy " " niyou ", is shown in defeated
Enter on method system interface, it is assumed that shield in user demand " you have ", but wrong choice " you due to distraction etc.
Shield on again ", be shown in application program edit box, find input error later, therefore backspace is primary, deletes part and gone up screen
" again ";
In the process normally inputted, as shown in figure 5, the then defeated key-press input string " you " of user's weight, obtains candidate text
Information, " having ", " again ", " oil ", " you ", " trip " and " friend ", user can choose shields on " having ";
What it is due to deletion is that the text information shielded has been gone up in part, can not trigger the technology of formerly reduction scene;
Using the embodiment of the present invention, as shown in fig. 6, determining that current all gone up shields the corresponding key-press input string of text information
Py is " niyou ", and the current screen text information A that all go up is " you again ", and current to delete backspace number c used be " 1 ", determining
Deleted text information is " again ", although it is many with the text information of " again " repeated code, such as " by ", " excellent ", " friend " etc.,
It is that the lower text information of confidence level can be effectively removed with the presence of " you " above, such as " excellent ", " friend " etc., then ternary
Group data Py-A-c is " niyou- you again -1 ", inquires the text inputted when triple data " niyou- you again -1 " occur
Information Bi, " having ", " trip ", " by ", " friend ", " right side " and " postal ", user can choose shields on " having ".
Application scenarios three
Even if user is using communication tool and other users to chat, key-press input string is inputted in nine grids input keyboard
" 96 ", input method system return to the corresponding Pinyin Inputs of key-press inputs string " 96 " such as " we ", " ", " ", " nest " and " holding "
Candidate text information is shown on input method system interface, and active user selects to shield on " me ", is shown in application program edit box
In, chat environment changes later, therefore backspace is primary, deletes " I " for having gone up screen;
In the process normally inputted, as shown in fig. 7, the then defeated key-press input string " 64 " of user's weight, obtains candidate text
Information, " you ", " quasi- ", " mud ", " Buddhist nun " and " greasy ", user can choose shields on " you ";
Using the technology of first reduction scene, as shown in figure 8, input method system shows original candidate text envelope again
Breath, " I ", " ", " ", " nest " and " holding ", there is no " you " needed for user;
Using the embodiment of the present invention, as shown in figure 9, determining that current all gone up shields the corresponding key-press input string of text information
Py is " wo ", and currently all having gone up screen text information A is " I ", and current deletion backspace number c used is " 1 ", and determination is deleted
The text information removed is " I ", then triple data Py-A-c is " wo- I -1 ", and inquiry goes out in triple data " wo- I -1 "
The text information B inputted nowi, " you ", " I ", " having ", " " and " that ", user can choose shields on preferred " you ".
Chat window of the user in immediate communication tool conversate thinking frequent occurrence conversion, " I " and " you " etc.
Thinking conversion occurs between word.
For example, user A and user B conversates at night, " I is stranded " is thought in user A plan, inputted " I " it
Afterwards, feel to think word less courtesy, therefore want to change another saying " you are stranded " into, that is, after needing to delete " I ",
It inputs again " you ".
In another example user A and user B conversates at night, " I am tired " is thought in user A plan, is inputting " I "
Later, feel to think word less courtesy, therefore want to change another saying " you are stranded " into, delete immediately " I ", but
That user A feels not saying so mild and indirect in face of friend again, therefore is also intended to " I is stranded ", i.e., delete " I " it
Afterwards, " I " is inputted again.
Even and if in fact, having concentrated user's input behavior of the overwhelming majority, user using inner in communication tool etc
The case where surmising language, wish to speaking but not to do so on a second thought frequent occurrence, is related to extremely high frequency text information as " I " and " you " and thinking occurs
There are many case where conversion, and the text information jumped also comparatively disperses, and are not exclusively the text informations of repeated code part.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method
It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to
According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should
Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented
Necessary to example.
Referring to Fig.1 0, a kind of structural block diagram of the input unit embodiment of text information of the present invention is shown, it specifically can be with
Including following module:
Text information determining module 1001, for monitor to delete it is current it is all or part of go up shield text information when,
Determine the first text information and the second text information;Wherein, first text information may include all having gone up screen text envelope
Corresponding key-press input string is ceased, screen text information has all been gone up and deletes backspace number used;Second text information can
To include the text information re-entered after first text information occurs;
Select probability computing module 1002, it is selected for calculating second text information according to first text information
Select the select probability of screen;
Display module 1003, for being opened up in specified position when the select probability is greater than preset probability threshold value
Show second text information.
In one preferred embodiment of the invention, the select probability computing module 1002 may include following submodule
Block:
First searches submodule, for searching the first history frequency of occurrence of first text information;
Second searches submodule, for searching the second history frequency of occurrence of second text information;
Candidate determines submodule, for determining in second text information in the second text envelope of candidate being shown
Breath;
Formula computational submodule, it is general for being calculated using the following equation the selection that second text information is shielded in selection
Rate:
Wherein, p is the select probability, and Py-A-c is first text information, and Py is that the whole has gone up screen text
The corresponding key-press input string of information, A are that the whole has gone up screen text information, and c is the backspace number, BiFor second text
This information, count (Py-A-c) are the first history frequency of occurrence, count (Py-A-c-Bi) it is that second history occurs
The frequency, n are the quantity of candidate second text information, and i is positive integer.
In a preferred example of an embodiment of the present invention, the first history frequency of occurrence and second history occur
The frequency can obtain in the following manner:
When monitoring that deleting first all or part has gone up screen text information, it is corresponding screen text information will have all been gone up
Key-press input string, whole, which have gone up screen text information and deleted backspace number used, is recorded as the first text information;
Being recorded in the Textual information inputted after first text information occurs is the second text information;
Count the first history frequency of occurrence of first text information;
Count the second history frequency of occurrence of second text information.
In a preferred example of an embodiment of the present invention, the candidate determining submodule can further include following son
Module:
Probability of occurrence computational submodule, for calculating the frequency of occurrences of second text information;The frequency of occurrences packet
Include the ratio of the second history frequency of occurrence Yu the first history frequency of occurrence;
Extracting sub-module is shielded for extracting maximum one or more second text informations of the probability of occurrence and being used as in head
Middle the second text information of candidate shown.
In one preferred embodiment of the invention, the display module 1003 may include following submodule:
Candidate shows submodule, for showing candidate second text information in specified position.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple
Place illustrates referring to the part of embodiment of the method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these
Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices
Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices
In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet
The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that
Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart
And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap
Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Input method to a kind of text information provided by the present invention and a kind of input unit of text information above, into
It has gone and has been discussed in detail, used herein a specific example illustrates the principle and implementation of the invention, the above implementation
The explanation of example is merely used to help understand method and its core concept of the invention;Meanwhile for the general technology people of this field
Member, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion this explanation
Book content should not be construed as limiting the invention.
Claims (8)
1. a kind of input method of text information characterized by comprising
When monitoring that deleting current all or part has gone up screen text information, the first text information and the second text envelope are determined
Breath;Wherein, first text information includes all having gone up the corresponding key-press input string of screen text information, all having gone up screen text
Backspace number used in information and deletion;Second text information include after first text information occurs institute it is again defeated
The text information entered;
It is general that the selection that second text information is shielded in selection is calculated according to first text information and the second text information
Rate;
When the select probability is greater than preset probability threshold value, second text information is shown in specified position;
It is described that the choosing that second text information is shielded in selection is calculated according to first text information and the second text information
The step of selecting probability includes: the first history frequency of occurrence for searching first text information;Search second text information
The second history frequency of occurrence;The second text information of candidate being shown is determined in second text information;Use with
Lower formula calculates the select probability that second text information is shielded in selection:
Wherein, p be the select probability, triple data Py-A-c be first text information, Py be the whole on
Shield the corresponding key-press input string of text information, A is that the whole has gone up screen text information, and c is the backspace number, BiIt is described
Second text information, count (Py-A-c) are the first history frequency of occurrence, Py-A-c-BiFor four-tuple data, count
(Py-A-c-Bi) it is the second history frequency of occurrence, n is the quantity of candidate second text information, and i is positive integer.
2. the method according to claim 1, wherein the first history frequency of occurrence and second history go out
The existing frequency obtains in the following manner:
When monitoring that deleting first all or part has gone up screen text information, the corresponding key of screen text information will have all been gone up
Input string, whole, which have gone up screen text information and deleted backspace number used, is recorded as the first text information;
Being recorded in the text information inputted after first text information occurs is the second text information;
Count the first history frequency of occurrence of first text information;
Count the second history frequency of occurrence of second text information.
3. the method according to claim 1, wherein described determine in second text information in head screen
The step of candidate second text information shown includes:
Calculate the frequency of occurrences of second text information;The frequency of occurrences include the second history frequency of occurrence with it is described
The ratio of first history frequency of occurrence;
Maximum one or more second text informations of the frequency of occurrences are extracted as candidate the shown in first screen
Two text informations.
4. the method according to claim 1, wherein described show second text envelope in specified position
The step of breath includes:
Candidate second text information is shown in specified position.
5. a kind of input unit of text information characterized by comprising
Text information determining module, for determining first when monitoring that deleting current all or part has gone up screen text information
Text information and the second text information;Wherein, first text information includes all having gone up the corresponding key of screen text information
Input string has all gone up screen text information and has deleted backspace number used;Second text information includes first text
The text information that this information is re-entered after occurring;
Select probability computing module, for calculating second text envelope according to first text information and the second text information
The select probability that breath is shielded in selection;
Display module, for showing described the in specified position when the select probability is greater than preset probability threshold value
Two text informations;
The select probability computing module includes: the first lookup submodule, and first for searching first text information goes through
History frequency of occurrence;Second searches submodule, for searching the second history frequency of occurrence of second text information;Candidate determines
Submodule, for determining the second text information of candidate being shown in second text information;Formula computational submodule,
The select probability shielded in selection for being calculated using the following equation second text information:
Wherein, p be the select probability, triple data Py-A-c be first text information, Py be the whole on
Shield the corresponding key-press input string of text information, A is that the whole has gone up screen text information, and c is the backspace number, BiIt is described
Second text information, count (Py-A-c) are the first history frequency of occurrence, Py-A-c-BiFor four-tuple data, count
(Py-A-c-Bi) it is the second history frequency of occurrence, n is the quantity of candidate second text information, and i is positive integer.
6. device according to claim 5, which is characterized in that the first history frequency of occurrence and second history go out
The existing frequency obtains in the following manner:
When monitoring that deleting first all or part has gone up screen text information, the corresponding key of screen text information will have all been gone up
Input string, whole, which have gone up screen text information and deleted backspace number used, is recorded as the first text information;
Being recorded in the Textual information inputted after first text information occurs is the second text information;
Count the first history frequency of occurrence of first text information;
Count the second history frequency of occurrence of second text information.
7. device according to claim 5, which is characterized in that the candidate determines that submodule includes:
Frequency of occurrences computational submodule, for calculating the frequency of occurrences of second text information;The frequency of occurrences includes institute
State the ratio of the second history frequency of occurrence Yu the first history frequency of occurrence;
Extracting sub-module, for extract maximum one or more second text informations of the frequency of occurrences be used as head screen in into
The second text information of candidate of row display.
8. device according to claim 5, which is characterized in that the display module includes:
Candidate shows submodule, for showing candidate second text information in specified position.
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410332496.2A CN105334952B (en) | 2014-07-11 | 2014-07-11 | A kind of input method and device of text information |
PCT/CN2015/083756 WO2016004893A1 (en) | 2014-07-11 | 2015-07-10 | Text information input method and device |
KR1020167031676A KR102327418B1 (en) | 2014-07-11 | 2015-07-10 | Text information input method and device |
JP2016564625A JP6667452B2 (en) | 2014-07-11 | 2015-07-10 | Method and apparatus for inputting text information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410332496.2A CN105334952B (en) | 2014-07-11 | 2014-07-11 | A kind of input method and device of text information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105334952A CN105334952A (en) | 2016-02-17 |
CN105334952B true CN105334952B (en) | 2018-12-18 |
Family
ID=55063602
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410332496.2A Active CN105334952B (en) | 2014-07-11 | 2014-07-11 | A kind of input method and device of text information |
Country Status (4)
Country | Link |
---|---|
JP (1) | JP6667452B2 (en) |
KR (1) | KR102327418B1 (en) |
CN (1) | CN105334952B (en) |
WO (1) | WO2016004893A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112306253A (en) * | 2019-07-30 | 2021-02-02 | 北京搜狗科技发展有限公司 | Method, device and equipment for determining input object |
CN111221603A (en) * | 2019-10-30 | 2020-06-02 | 深圳前海微众银行股份有限公司 | Information input method and device based on input box |
CN113534973A (en) * | 2020-04-16 | 2021-10-22 | 北京搜狗科技发展有限公司 | Input method, input device and input device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101382866A (en) * | 2008-09-26 | 2009-03-11 | 腾讯科技(深圳)有限公司 | System and method for correcting input characters |
CN101989128A (en) * | 2009-08-03 | 2011-03-23 | 北京搜狗科技发展有限公司 | Method and device for showing candidate words in fixed position |
CN102193645A (en) * | 2010-03-16 | 2011-09-21 | 腾讯科技(深圳)有限公司 | Character inputting method and system |
US8630847B2 (en) * | 2007-06-25 | 2014-01-14 | Google Inc. | Word probability determination |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3003605B2 (en) * | 1996-12-25 | 2000-01-31 | 日本電気株式会社 | Word correction device and word correction method |
JP2003131776A (en) * | 2001-10-29 | 2003-05-09 | Sony Corp | Information-processing device, character string-inputting device and confirmed history-controlling method |
KR100736561B1 (en) * | 2005-12-28 | 2007-07-09 | 엘지전자 주식회사 | Mobile communication terminal and device for wrong word correction and correction method thereof |
CN101241514B (en) * | 2008-03-21 | 2014-11-05 | 北京搜狗科技发展有限公司 | Method for creating error-correcting database, automatic error correcting method and system |
CN101350004B (en) * | 2008-09-11 | 2010-08-11 | 北京搜狗科技发展有限公司 | Method for forming personalized error correcting model and input method system of personalized error correcting |
CN100559332C (en) * | 2008-10-17 | 2009-11-11 | 腾讯科技(深圳)有限公司 | Recover the system and method for deleted characters |
CN102156551B (en) * | 2011-03-30 | 2014-04-23 | 北京搜狗科技发展有限公司 | Method and system for correcting error of word input |
CN103049458B (en) * | 2011-10-17 | 2016-06-08 | 北京搜狗科技发展有限公司 | A kind of method and system revising user thesaurus |
US8881005B2 (en) * | 2012-04-20 | 2014-11-04 | King Abdulaziz City For Science And Technology | Methods and systems for large-scale statistical misspelling correction |
JP5931627B2 (en) | 2012-07-23 | 2016-06-08 | 京セラ株式会社 | Portable terminal device, program, and input correction method |
JP2014191355A (en) * | 2013-03-26 | 2014-10-06 | Oki Data Corp | Character input device, and character input method |
CN104461042B (en) * | 2013-09-16 | 2017-12-26 | 百度在线网络技术(北京)有限公司 | Based on the Japanese input method and system for retracting key and carrying out automatically error correction |
-
2014
- 2014-07-11 CN CN201410332496.2A patent/CN105334952B/en active Active
-
2015
- 2015-07-10 WO PCT/CN2015/083756 patent/WO2016004893A1/en active Application Filing
- 2015-07-10 KR KR1020167031676A patent/KR102327418B1/en active IP Right Grant
- 2015-07-10 JP JP2016564625A patent/JP6667452B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8630847B2 (en) * | 2007-06-25 | 2014-01-14 | Google Inc. | Word probability determination |
CN101382866A (en) * | 2008-09-26 | 2009-03-11 | 腾讯科技(深圳)有限公司 | System and method for correcting input characters |
CN101989128A (en) * | 2009-08-03 | 2011-03-23 | 北京搜狗科技发展有限公司 | Method and device for showing candidate words in fixed position |
CN102193645A (en) * | 2010-03-16 | 2011-09-21 | 腾讯科技(深圳)有限公司 | Character inputting method and system |
Also Published As
Publication number | Publication date |
---|---|
CN105334952A (en) | 2016-02-17 |
JP2017528777A (en) | 2017-09-28 |
JP6667452B2 (en) | 2020-03-18 |
KR102327418B1 (en) | 2021-11-17 |
WO2016004893A1 (en) | 2016-01-14 |
KR20170028875A (en) | 2017-03-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108139849B (en) | Action suggestions for user-selected content | |
US20150278359A1 (en) | Method and apparatus for generating a recommendation page | |
US20160055246A1 (en) | Providing automatic actions for mobile onscreen content | |
US9129009B2 (en) | Related links | |
EP2885755B1 (en) | Agent system, agent control method and agent control program with ability of natural conversation with users | |
US20110316796A1 (en) | Information Search Apparatus and Information Search Method | |
CN103092826B (en) | A kind of method and apparatus of input information architecture input entry according to user | |
CN105930527B (en) | Searching method and device | |
WO2015170151A1 (en) | Methods and systems for personalizing aggregated search results | |
US9329778B2 (en) | Supplementing a virtual input keyboard | |
CN108133058B (en) | Video retrieval method | |
CN110222194A (en) | Data drawing list generation method and relevant apparatus based on natural language processing | |
CN105334952B (en) | A kind of input method and device of text information | |
WO2015198112A1 (en) | Processing search queries and generating a search result page including search object related information | |
KR102180487B1 (en) | Text mining method, text mining program, and text mining device | |
US9569484B2 (en) | Query generation system for an information retrieval system | |
JP6162134B2 (en) | Social page trigger | |
US9720914B2 (en) | Navigational aid for electronic books and documents | |
CN105589570B (en) | A kind of method and apparatus handling input error | |
CN110083677A (en) | Searching method, device, equipment and the storage medium of contact person | |
US10628493B2 (en) | Method and system for generating search query suggestions | |
CN104978047B (en) | Across the keyboard association method of one kind and device | |
CN111353070A (en) | Video title processing method and device, electronic equipment and readable storage medium | |
US9311362B1 (en) | Personal knowledge panel interface | |
WO2015198114A1 (en) | Processing search queries and generating a search result page including search object information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |