CN107291260B - Information input method and device for inputting information - Google Patents

Information input method and device for inputting information Download PDF

Info

Publication number
CN107291260B
CN107291260B CN201610229222.XA CN201610229222A CN107291260B CN 107291260 B CN107291260 B CN 107291260B CN 201610229222 A CN201610229222 A CN 201610229222A CN 107291260 B CN107291260 B CN 107291260B
Authority
CN
China
Prior art keywords
screen
phrase
phrases
input string
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.)
Active
Application number
CN201610229222.XA
Other languages
Chinese (zh)
Other versions
CN107291260A (en
Inventor
费腾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201610229222.XA priority Critical patent/CN107291260B/en
Publication of CN107291260A publication Critical patent/CN107291260A/en
Application granted granted Critical
Publication of CN107291260B publication Critical patent/CN107291260B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

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)
  • Machine Translation (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The embodiment of the invention provides an information input method, an information input device and a device for inputting information, wherein the method comprises the following steps: acquiring candidate items corresponding to the input strings according to pre-stored phrases; the phrase is obtained according to the input behavior of a user and comprises at least three basic words; and outputting the candidate item corresponding to the input string. The embodiment of the invention can simplify the user operation and improve the input efficiency.

Description

Information input method and device for inputting information
Technical Field
The present invention relates to the field of input methods, and in particular, to an information input method, an information input device, and a device for inputting information.
Background
For users in chinese, japanese, korean, etc., it is generally necessary to interact with a computer through an input method system. For example, a user can type an input string through a keyboard, and then the input string is converted into a candidate item of a corresponding language and displayed by the input method system according to a preset standard mapping rule, so that the candidate item selected by the user is displayed on a screen.
In practical applications, users often encounter situations where a sentence or a long word needs to be input, and the process of inputting the sentence or the long word is described by taking the input sentence "we eat together" as an example. Firstly, after an input string of a user is received as 'womenyiqiichifan', a corresponding candidate item can be returned according to the input string, and the user selects a target candidate item 'we' to be displayed on a screen; then, returning corresponding candidate items according to the content of the user on the screen and the residual input string 'yiqiichifan', and browsing and selecting the target candidate items 'together' by the user on the screen; and finally, returning the corresponding candidate item according to the content which is displayed on the screen by the user and the residual input string 'chifan', and selecting the target candidate item 'eating' by the user to be displayed on the screen, thereby completing the input process of 'eating together' by the user.
It can be seen that, with the existing input method, a sentence or a long word is often input only by multiple times of screen-on, which results in a complicated input process and low efficiency for the user.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are provided to provide an information input method, an information input apparatus, and an apparatus for information input that overcome or at least partially solve the above problems, and that can simplify user operations and improve input efficiency.
In order to solve the above problems, the present invention discloses an information input method, comprising:
acquiring candidate items corresponding to the input strings according to pre-stored phrases; the phrase is obtained according to the input behavior of a user and comprises at least three basic words;
and outputting the candidate item corresponding to the input string.
Optionally, the phrase is obtained by:
acquiring at least one screen-up word corresponding to continuous screen-up operation;
and when the at least one screen word comprises at least three adjacent basic words, storing the at least three adjacent basic words as a word group.
Optionally, the step of obtaining at least one on-screen word corresponding to the continuous on-screen operation includes:
and when the end of the continuous screen-on operation is determined, acquiring at least one screen-on word corresponding to the continuous screen-on operation.
Optionally, the step of determining that the continuous screen-on operation is ended includes:
when receiving a click operation aiming at a preset ending key, determining that the continuous screen-loading operation is ended; wherein, the preset end key comprises: punctuation mark keys and/or backspace keys and/or space keys and/or function keys; or
And when the time interval between two screen-on operations is larger than an interval threshold value, determining that the continuous screen-on operation is ended.
Optionally, the step of obtaining the candidate item corresponding to the input string according to the pre-stored phrase includes:
matching an input string with a pre-stored phrase to acquire the phrase matched with the input string;
and taking the phrase matched with the input string as a candidate item corresponding to the input string.
Optionally, the method further comprises:
inquiring in the pre-stored phrases according to the upper text and/or the lower text corresponding to the input string to obtain phrases matched with the upper text and/or the lower text;
and when the basic words matched with the candidate items corresponding to the input string exist in the phrases matched with the above and/or the below, adjusting the ranking of the candidate items.
Optionally, the step of matching the input string with a pre-stored phrase to obtain a phrase matched with the input string includes:
matching the input string with phrases pre-stored in a cache;
when the phrase matched with the input string exists in the cache, acquiring the phrase matched with the input string from the cache;
and when the phrase matched with the input string does not exist in the cache, matching the input string with the phrase pre-stored in a word stock, and acquiring the phrase matched with the input string from the word stock.
Optionally, the method further comprises:
and storing the phrases meeting the preset hit conditions in the cache in a word stock.
Optionally, the method further comprises:
recording the screen-on time information corresponding to the candidate item;
and clearing the stored phrases according to the screen-on time information.
In another aspect, the present invention discloses an information input device, comprising:
the candidate item acquisition module is used for acquiring candidate items corresponding to the input strings according to pre-stored phrases; the phrase is obtained according to the input behavior of a user and comprises at least three basic words; and
and the candidate item output module is used for outputting the candidate items corresponding to the input strings.
In yet another aspect, an apparatus for information input is disclosed that includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured for execution by the one or more processors to include instructions for:
acquiring candidate items corresponding to the input strings according to pre-stored phrases; the phrase is obtained according to the input behavior of a user and comprises at least three basic words;
and outputting the candidate item corresponding to the input string.
The embodiment of the invention has the following advantages:
according to the embodiment of the invention, the candidate item corresponding to the input string is obtained according to the pre-stored phrase, and the candidate item corresponding to the input string is output. Because the phrase may include at least three basic words, for example, the phrase may be a long word or a sentence, the obtained candidate may include the long word or the sentence, so that the user may directly perform a screen-up operation on the candidate including the long word or the sentence, that is, may complete an input process on the long word or the sentence through one screen-up operation; or, the obtained candidate item may form a long word or a sentence with the above and/or the below, and compared with the existing scheme that the long word or the sentence needs to be displayed on the screen for a plurality of times when being input, the embodiment of the present invention can simplify the operation of the user, thereby reducing the operation times of the user in the input process and further improving the input efficiency.
In addition, because the phrases are obtained according to the input behaviors of the user in the embodiment of the invention, the stored phrases can accord with the input habits of the user, and compared with the storage of all phrases, the embodiment of the invention can greatly reduce the number of the phrases to be stored, thereby saving the storage space.
Drawings
FIG. 1 is a flow chart of steps of a first embodiment of an information input method of the present invention;
FIG. 2 is a flow chart of steps of a second embodiment of an information input method of the present invention;
FIG. 3 is a flow chart of steps of a third embodiment of an information input method of the present invention;
FIG. 4 is a block diagram of an embodiment of an information input device according to the present invention;
FIG. 5 is a block diagram of an apparatus 800 for information input in accordance with the present invention; and
fig. 6 is a schematic diagram of a server according to the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
One of the core concepts of the embodiment of the invention is to provide a method for conveniently inputting long words or sentences so as to solve the problems of complicated input process and low efficiency of a user caused by the fact that multiple screen-on operations are required in the existing input process. According to the embodiment of the invention, the candidate item corresponding to the input string is obtained according to the pre-stored phrase, and the candidate item corresponding to the input string is output. Since the phrase may include at least three basic words, for example, the phrase may be a long word or a sentence, the obtained candidate may include the long word or the sentence, so that the input process of the long word or the sentence may be completed through one screen-up operation; or, the obtained candidate item can form a long word or a sentence with the above and/or the below, and compared with the prior art that a plurality of screen-on operations are required, the operation of the user can be simplified, so that the operation times and the input time of the user can be reduced, and the input efficiency is improved. In addition, the phrases can be obtained according to the input behavior of the user, so that the stored phrases not only accord with the input habit of the user, but also do not store all the phrases, so that the number of the stored phrases can be greatly reduced, and the storage space can be saved.
Method embodiment one
Referring to fig. 1, a flowchart illustrating steps of a first embodiment of an information input method according to the present invention is shown, which may specifically include the following steps:
step 101, acquiring candidate items corresponding to input strings according to pre-stored phrases; the phrase is obtained according to the input behavior of a user and comprises at least three basic words;
and 102, outputting the candidate item corresponding to the input string.
The embodiment of the invention can be applied to input method systems of various input modes, such as pinyin input, English input, stroke input, voice input, handwriting input and the like. The user can complete the input of the input string by any input mode, that is, the user can input by a physical keyboard, a virtual keyboard, a handwriting board, a touch screen, a sound acquisition device and the like. The input string may be composed of any one or several of numbers, symbols, pinyin, English letters, etc. For convenience of description, the pinyin string is used as an input string in the embodiments of the present invention, and other types of input strings may be referred to each other.
In the embodiment of the present invention, a phrase including at least three basic words may be stored in advance. The phrases are also called short sentences and phrases. In everyday language, a phrase may refer to any aggregation of words. Specifically, the phrase including at least three basic words may be a long word, a phrase, a sentence, etc., wherein a basic word may represent a word of a minimum unit, and generally the word may not be decomposed into other words, for example, "together" may serve as a basic word, which may not be decomposed into other words, and "people-liberating force" may be further decomposed into words "people" and "liberating force", and thus "people-liberating force" is not a basic word. For convenience of description, all phrases mentioned in the embodiments of the present invention are phrases including at least three basic words, and are simply referred to as phrases in the following. For example, the phrase "we have a meal together" specifically includes the following three basic words: "We", "together", "eat".
In the technical field, a large number of phrases generally exist, and if all the phrases are stored, huge storage space is consumed, and a large number of rarely used phrases can be stored, so that waste of storage resources is caused. In order to solve the above problems, the embodiments of the present invention store phrases according to the input behavior of the user, so that the stored phrases not only conform to the input habit of the user, but also greatly reduce the number of the stored phrases, thereby saving the storage space. In addition, the input method system can store binary relations such as "together we", "eat together", and the like. Therefore, the embodiment of the invention can store the phrases comprising at least three basic words, the phrases comprising two basic words can be obtained by inquiring the binary relation in the word stock of the input method, and the phrases comprising less than three basic words can not be stored, so that the number of the stored phrases can be further reduced, and the storage space is further saved.
In an alternative embodiment of the present invention, the phrase may be obtained by:
step S11, acquiring at least one screen-up word corresponding to continuous screen-up operation;
and step S12, when the at least one screen word comprises at least three adjacent basic words, storing the at least three adjacent basic words as phrases.
In an application example of the present invention, after receiving an input string "wottingshowaimiand hengzaixiayu" from a user, the input method system may return corresponding candidates according to the input string, assuming that the input method system receives the user's candidates for: the continuous screen-on operation of "i", "listen and speak", "outside", "on the fly" and "rain" can result in the following screen-on words: "i", "listen and speak", "outside", "on" and "rain", because the above-mentioned on-screen words are basic words, that is, include 5 basic words, at least three adjacent basic words therein can be stored as phrases.
It is to be understood that the above-mentioned words corresponding to the continuous screen-up operation only include the basic words as an example, and actually, the words corresponding to the continuous screen-up operation may also include the non-basic words. For example, the user may also get the following words on screen through the continuous on screen operation: the words "i listen and speak", "outside", "on" and "raining" include two basic words, and the words "i listen and speak" include the basic words, that is, the words "outside", "on" and "raining" include 5 basic words in total, and at least three adjacent basic words can be stored as phrases. Specifically, "i listen and speak outside raining," "i listen and speak outside," and "i listen and speak outside" may be stored as a phrase. The embodiment of the invention acquires the stored phrases through the screen-up operation of the user, so that the acquired phrases are frequently used by the user and accord with the input habit of the user, and a large amount of rare phrases are not required to be stored, thereby saving the storage space.
In another optional embodiment of the present invention, the step of obtaining at least one screen-up word corresponding to the continuous screen-up operation may specifically include: and when the end of the continuous screen-on operation is determined, acquiring at least one screen-on word corresponding to the continuous screen-on operation.
The process of obtaining the phrases is put when the continuous screen-loading operation is determined to be finished, so that the obtained phrases are obtained by naturally dividing according to the input behaviors of the user. For example, when a certain continuous screen-up operation of the user is finished, the input screen-up words specifically include: the user can input the screen-up word 'we' again after the operation of continuous screen-up operation is finished, the screen-up words input by the previous continuous screen-up operation can be divided from the positions of the end of the continuous screen-up operation, and the preceding screen-up words input by the continuous screen-up operation form phrases, such as 'the weather is fine and clear today' and 'the weather is fine and clear' and the division result of 'the weather is fine and clear today' can not appear, so that the obtained phrases accord with the input habits of the user and are more reasonable.
The step of determining the end of the continuous screen-on operation may specifically include:
when receiving a click operation aiming at a preset ending key, determining that the continuous screen-loading operation is ended; the preset end key may specifically include: punctuation mark keys and/or backspace keys and/or space keys and/or function keys; or
And when the time interval between two screen-on operations is larger than an interval threshold value, determining that the continuous screen-on operation is ended.
In a specific application, a user usually presses a preset ending key such as a punctuation mark when a complete sentence or long word is input, or inputs a next sentence or long word after stopping for a certain time. Therefore, in the embodiment of the present invention, the operation of inputting various preset end keys such as a comma, a period, a question mark, a backspace key, a enter key, and the like by the user is received, or no on-screen word is received within the time corresponding to the interval threshold as a mark for connecting the end of the on-screen operation, so that the obtained word group is obtained by naturally dividing according to the input behavior of the user. Of course, the preset end key is not limited to the above listed keys, and for example, a sending function key (e.g., enter key or CTRL + enter key) in an instant messaging program (e.g., QQ, WeChat, etc.) may be used as the preset end key. It should be understood that the specific form of the preset end key in the embodiments of the present invention is not limited, for example, any one of the above listed various keys may be used as the preset end key, or a combination of any several of the above keys may also be used as the preset end key.
The interval threshold may be a preset time value, such as 2 seconds. Alternatively, the interval threshold may be determined by: and recording the screen-up time corresponding to the screen-up words, calculating to obtain an average screen-up interval according to the interval between the screen-up times corresponding to every two screen-up words, and taking the average screen-up interval as an interval threshold. Optionally, a value obtained by multiplying the average on-screen interval by a weighting coefficient may be used as an interval threshold, where the weighting coefficient value may be greater than 1, greater than 0 and less than 1, or may be adjusted based on the input behavior of the user. In summary, the embodiment of the present invention does not limit the determination manner of the interval threshold.
In another optional embodiment of the present invention, the step of obtaining the candidate item corresponding to the input string according to the pre-stored phrase may specifically include:
step S21, matching the input string with a pre-stored phrase to obtain the phrase matched with the input string;
and step S22, taking the phrase matched with the input string as a candidate item corresponding to the input string.
In a specific application, when the phrase is stored in advance, the corresponding relation between the phrase and the input string can be stored, so that when the input string is obtained, whether the phrase matched with the input string exists can be searched by inquiring the corresponding relation between the phrase stored in advance and the input string, and if the matched phrase exists, the phrase can be used as a candidate item corresponding to the input string for a user to select. Therefore, the user can input long words or sentences through one-time input and one-time screen-on operation, and compared with the prior art in which multiple screen-on operations are required, the method simplifies the user operation and improves the input efficiency.
In addition, the embodiment of the invention can also be applied to the input scene of rare professional sentences or personalized sentences obviously not conforming to the basic grammar habit. For example, a user inputs a sentence "force direction layout algorithm" through a continuous screen-up operation, because the sentence belongs to a relatively rare professional sentence, and a multivariate relation in the sentence is not usually stored in an existing input method lexicon, in an existing input process, the input usually needs to be completed through a plurality of screen-up operations. Through the embodiment of the invention, after the continuous screen-up operation is received, the sentence 'force direction layout calculation' can be stored as a phrase, when a user wants to input the sentence next time, the matched phrase 'force direction layout calculation' can be found according to the input string input by the user, and the phrase is used as a candidate item, so that the user can quickly select the phrase, and the input efficiency can be improved.
In yet another optional embodiment of the present invention, the method may further comprise: and obtaining the phrases corresponding to the input strings according to the stored phrase associations.
In an application example of the present invention, assuming that the phrase "i listen and speak out of the rain" is already stored according to the input behavior of the user, when the input string received from the user is "wottingshuo", the complete input string that can be inferred according to the input behavior of the user may be "wottingshuowaimianamizhengzaixiayu", and then the phrase corresponding to the complete input string is "i listen and speak out of the rain". Finally, the phrase "i listen and speak out of the rain" can be included in the candidate acquired by the user when inputting "wottingshuo", and the candidate is displayed to the user for the user to select. Corresponding phrases are obtained through serial association of partial input, phrases which the user wants to input can be obtained through association when the user input is not finished, and therefore the input time of the user can be saved.
In yet another optional embodiment of the present invention, the method may further comprise:
step S31, according to the upper text and/or the lower text corresponding to the input string, inquiring in the pre-stored phrases to obtain phrases matched with the upper text and/or the lower text;
and step S32, when there is a basic word matched with the candidate item corresponding to the input string in the phrase matched with the above and/or below, adjusting the ranking of the candidate item.
In an application example of the invention, the word "we discuss together" is received on the screen of the user first; then, the input string received from the user is "fangan", where the candidate item corresponding to "fangan" may include: protocol, countering, etc.; next, the phrase matching with the above "we discuss together" is obtained by querying to be "we discuss together scheme", and since the basic word "scheme" exists in the phrase "we discuss together scheme", the ranking of the candidate item "scheme" may be adjusted to adjust the candidate item "scheme" to a more advanced candidate position, for example, to a position of a preference, so that the user may directly perform screen-up processing on the candidate item, which facilitates the input of the user.
In yet another optional embodiment of the present invention, the input string may be further subjected to error correction processing to obtain a corresponding error correction string, and then candidate items corresponding to the error correction string are obtained according to a pre-stored phrase, and finally the candidate items corresponding to the error correction string are output.
In an application example of the present invention, assuming that a user wants to input a long word "we eat together," a corresponding correct input string should be "wymenyiqiichifan," and a user mistakenly inputs "wymenyiqiicifan," and "chi" is mistakenly input as "ci," the embodiment of the present invention may perform error correction processing on the input string according to an existing error correction method to obtain an error correction string "wymenyiqiifan," then match the error correction string with a stored phrase, find out that the phrase matched with the error correction string is "we eat together," use the phrase as an error correction candidate, obtain that the error correction candidate is better than an original candidate obtained by querying the original input string through calculation, and then may present the error correction candidate to the user for selection by the user. Therefore, the embodiment of the invention firstly carries out error correction processing on the input string, and then acquires the corresponding phrase from the input string after error correction, thereby improving the accuracy of acquiring the phrase.
To sum up, the embodiment of the present invention obtains the candidate item corresponding to the input string according to the pre-stored phrase, and outputs the candidate item corresponding to the input string. Because the phrase can include at least three basic words, that is, the phrase can be a long word or a sentence, the obtained candidate item can include the long word or the sentence, so that the user can directly perform the screen-up operation on the candidate item including the long word or the sentence, that is, the input process of the long word or the sentence can be completed through one screen-up operation. In addition, the phrases are obtained according to the input behavior of the user, so that the stored phrases not only accord with the input habit of the user, but also do not store all the phrases, the number of the stored phrases is greatly reduced, and the storage space is saved.
Method embodiment two
The present embodiment is an optional embodiment of the first method embodiment, and on the basis of the first method embodiment, in order to further save the storage space, the phrase obtained for the first time is stored in the cache, and the phrase meeting the preset hit condition in the cache is stored in the word stock. Referring to fig. 2, a flowchart illustrating steps of a second embodiment of the information input method of the present invention is shown, which may specifically include the following steps:
step 201, matching an input string with a phrase pre-stored in a cache; the phrase is obtained according to the input behavior of a user and comprises at least three basic words;
step 202, when the phrase matched with the input string exists in the cache, acquiring the phrase matched with the input string from the cache;
step 203, when there is no phrase matching the input string in the cache, matching the input string with phrases pre-stored in a word stock, and acquiring phrases matching the input string from the word stock;
step 204, obtaining a candidate item corresponding to the input string according to the phrase matched with the input string;
and step 205, outputting the candidate item corresponding to the input string.
In an alternative embodiment of the present invention, the method may further comprise the steps of:
and step 206, storing the phrases meeting the preset hit conditions in the cache in a word stock.
In a specific application, if all phrases are stored, a large amount of storage space is still needed, and in order to further save the storage space, the embodiment of the invention stores the phrase appearing for the first time in the cache, then further deletes the phrase stored in the cache, and stores the phrase meeting the preset hit condition in the cache in the word stock, so that only the phrase meeting the preset hit condition is stored in the word stock, namely, the phrase which makes sense to the user, and the storage space can be further saved.
The condition meeting the preset hit condition may specifically be: the number of times of hitting the phrases is greater than the preset number of times, the number of times of hitting can represent the number of times that the phrases are selected in the input process, the phrases with the number of times of hitting greater than the preset number of times can be regarded as the phrases frequently used by the user, namely the phrases meaningful to the user, and the phrases can be stored in a word stock. In an application example of the present invention, when one continuous screen-up operation of a user is finished, at least one screen-up word input by the continuous screen-up operation may be stored in a cache as a phrase, and then, the number of times of hit of the phrase in the cache is examined, if the phrase stored in the cache is screened again in a subsequent input process, that is, the phrase is hit again by the input of the user, the number of times of hit of the phrase may be increased correspondingly, and when the number of times of hit of the phrase is greater than a preset number of times, the phrase may be stored in a word stock.
In an application example of the present invention, assuming that a phrase "we eat together" is obtained through one continuous screen-on operation of a user, and the phrase appears for the first time, the phrase may be stored in a cache. In the subsequent input process, when the input string 'wo' input by the user is received, the phrase 'we eat together' can be conjectured, and can be presented to the user as a candidate, if the user inputs 'we eat together' again through the screen-up operation, the number of hits of the phrase 'we eat together' stored in the cache can be increased, and when the number of hits of the phrase 'we eat together' is greater than the preset number (for example, 3), the phrase is considered to be a phrase meaningful to the user, the phrase 'we eat together' is stored in the word stock.
It can be understood that, in the embodiment of the present invention, the preset number of times is not limited, for example, the preset number of times may also be 1 time, specifically, when a phrase appears for the first time, the phrase is stored in the cache, and when the phrase is hit again, it is considered that the phrase meets the preset hit condition, the phrase may be stored in the word stock. In short, the skilled person can set the size of the preset times according to the needs. In addition, the above-mentioned use of the number of hits as the preset hit condition is only an application example of the present invention, and in a specific application, the embodiment of the present invention also does not limit a specific manner of setting the preset hit condition, for example, whether a phrase meets the preset hit condition may be determined according to a hit probability or a word frequency of the phrase.
It should be noted that the word stock may include any word stock in the conventional technology or a combination thereof, such as a system word stock, a user word stock, and the like, or may be any word stock obtained by a person skilled in the art according to preset rules, and a storage location of the word stock may exist in a server or a client. It can be understood that the system lexicon, the user-defined lexicon, the general lexicon, the professional lexicon and the like of the input method system in the prior art are all within the scope of the lexicon of the embodiment of the invention.
In an application example of the present invention, it is assumed that the following phrases have been stored in the cache: "i listen and speak out of the rain", "listen and speak out of the rain", and "out of the rain", when the received input string is "wainianzhengzaixiayu", the phrase that can be matched by querying the cache is "out of the rain", the phrase "out of the rain" can be output as a candidate, if the user selects the candidate "out of the rain" to go on the screen, which means that the user has input the phrase "out of the rain" more than once, it can be considered that the phrase "out of the rain" is meaningful to the user, the phrase "out of the rain" can be stored in the user lexicon, and the word frequency of the phrase is increased.
In the embodiment of the invention, the phrase obtained for the first time is stored in the cache, the phrase stored in the cache is emptied after the input device is closed, and the phrase needs to be learned again after the input device is opened next time, so that the input of a user can be considered in a relatively short time.
In another optional embodiment of the present invention, the method may further comprise:
s41, acquiring current screen words corresponding to continuous screen operation of a user;
and step S42, when the current screen word and the phrase stored in the cache have a common prefix, storing the longest common prefix in the word stock.
In an application example of the present invention, it is assumed that the current screen-on word corresponding to the received user continuous screen-on operation is: "i feels very much like him, and the phrase" i feels very much like he says so "has been stored in the cache, because both have the longest common prefix" i feels very much like he ", then this longest common prefix" i feels very much like he "can be stored as a phrase in the lexicon. In a specific application, if the current screen-on word and the multi-element word stored in the cache have the longest common prefix, it is indicated that the hit probability of the longest common prefix is higher, and the longest common prefix belongs to a common prefix meaningful for a user, and the longest common prefix can also be stored in a word stock as a word group. Therefore, the phrases stored in the embodiment of the invention are more in line with the input habits of users, and the hit rate of the stored phrases can be further improved.
To sum up, the embodiment of the invention firstly matches the input string with the phrases stored in the cache, and the phrases stored in the cache are obtained according to the input behavior of the user in a shorter time, so the embodiment of the invention is more in line with the recent input habit of the user; if the phrase stored in the cache is not matched with the input string, the input string is matched with the phrase stored in the word stock, the phrase stored in the word stock cannot be emptied due to the closing of the input equipment, and the phrase matched with the input string of the user can still be obtained by inquiring from the word stock after the input equipment is restarted, so that the input efficiency can be improved.
Method embodiment three
On the basis of the first embodiment or the second embodiment, the present embodiment may further perform a cleaning operation on the stored phrases meeting the time condition, so as to save the storage space occupied by the phrases. Referring to fig. 3, a flowchart illustrating steps of a third embodiment of the information input method of the present invention is shown, which may specifically include the following steps:
step 301, obtaining candidate items corresponding to the input strings according to pre-stored phrases; the phrase is obtained according to the input behavior of a user and comprises at least three basic words;
step 302, outputting a candidate item corresponding to the input string;
step 303, recording the on-screen time information corresponding to the candidate item;
and step 304, cleaning the stored phrases according to the screen-on time information.
In an application example of the present invention, after the candidate item corresponding to the input string is output, if a screen-up operation of a user for the multiple candidate item is received, corresponding screen-up time information may be recorded, and the remaining storage space of the cache is monitored, and when it is monitored that the remaining storage space of the cache is smaller than a preset threshold, the phrase stored in the cache may be cleared. For example, a partially stored phrase may be deleted. Optionally, phrases with longer time information on screen display, such as phrases with earliest time information on screen display, may be preferentially cleared, so that the remaining phrases in the cache are frequently used by the user in the near future, so as to improve the hit probability of the phrases, and save the storage space occupied by the phrases in the cache.
Similarly, the phrases stored in the word stock can be cleaned by adopting the method, so that the phrases stored in the word stock are frequently used by the user recently, the hit probability of the phrases can be improved, and the storage space of the word stock occupied by the phrases can be saved.
Application example
For the purpose of improving understanding of the embodiments of the present invention, the following description will be given with reference to specific application examples, and the phrase storage process of the present invention and the specific process of inputting using the stored phrases are explained. For convenience of description, in the present application example, the screen words, such as screen words A, B and C, etc., are represented by capital english letters. The storage process of the phrases is first explained below:
suppose that screen-up words input by one continuous screen-up operation of the user are received: A. b, C, D, E, receiving the input punctuation mark, or receiving the input on-screen word after the time of the interval threshold is exceeded: f, then truncation may be performed from before the screen word F, considering A, B, C, D, E as a result of a continuous input, and then storing ABCDE, BCDE, CDE, ABC, ABCD, BCD as a phrase into the cache.
In the subsequent input process, the number of times of hitting the phrase stored in the cache is recorded, and when the number of times of hitting the phrase is greater than the preset number of times, the phrase can be stored in the user word stock. For example, if the user has entered a CDE multiple times such that the CDE meets a preset hit condition, the CDE may be stored in the user lexicon.
In an optional embodiment of the present invention, when the current on-screen word and the phrase stored in the cache have a common prefix, the longest common prefix in the current on-screen word and the phrase stored in the cache may be stored in the thesaurus. For example, the current screen-on word received from the user is CDFG, the cache already stores the word group CDFK, and because the CDFG and the CDFK stored in the cache have the longest common prefix CDF, which indicates that the CDF is a word frequently input by the user, the CDF can be stored as the word group in the word stock.
The following is a detailed description of how the stored phrases are used in the input process:
after the phrases are stored, candidate items corresponding to the input strings can be obtained according to the stored phrases, and association and frequency modulation functions can be realized according to the stored phrases.
By taking the stored phrases as an example, assuming that a user wants to input BCD, when receiving a plurality of characters of the input string corresponding to B, the user can associate the corresponding phrase BCD from the user lexicon, and display the BCD as a candidate to the user, so that the user can directly go to the screen. If the user screens BC and then prepares to input D, the word group BCD matched with BC is obtained by inquiring the user word stock, and the position of D in the candidate item can be adjusted to the first position so that the user can quickly select.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Device embodiment
Referring to fig. 4, a block diagram of an embodiment of an information input device according to the present invention is shown, which may specifically include the following modules:
a candidate item obtaining module 401, configured to obtain a candidate item corresponding to the input string according to a pre-stored phrase; the phrase is obtained according to the input behavior of a user and comprises at least three basic words; and
a candidate output module 402, configured to output a candidate corresponding to the input string.
In an optional embodiment of the present invention, the apparatus may further comprise: the phrase obtaining module is used for obtaining the phrases; the phrase obtaining module may specifically include:
the screen word acquisition sub-module is used for acquiring at least one screen word corresponding to continuous screen operation;
and the phrase acquisition submodule is used for storing the at least three adjacent basic words as phrases when the at least one screen word comprises the at least three adjacent basic words.
In another optional embodiment of the present invention, the screen-up word obtaining sub-module may specifically include:
and the screen word acquisition unit is used for acquiring at least one screen word corresponding to the continuous screen operation when the end of the continuous screen operation is determined.
In another optional embodiment of the present invention, the on-screen word obtaining unit may specifically include:
the first determining and ending subunit is used for determining that the continuous screen-loading operation is ended when the clicking operation aiming at a preset ending key is received; wherein, the preset end key comprises: punctuation mark keys and/or backspace keys and/or space keys and/or function keys; or
And the second determination end subunit determines that the continuous screen-on operation is ended when the time interval between two screen-on operations is greater than the interval threshold.
In another optional embodiment of the present invention, the candidate obtaining module 401 may specifically include:
the matching sub-module is used for matching the input string with a pre-stored phrase to acquire the phrase matched with the input string;
and the obtaining sub-module is used for taking the phrase matched with the input string as a candidate item corresponding to the input string.
In yet another alternative embodiment of the present invention, the apparatus may further include:
the upper text matching module is used for inquiring the pre-stored phrases according to the upper text and/or the lower text corresponding to the input string so as to obtain phrases matched with the upper text and/or the lower text;
and the sorting module is used for adjusting the sorting of the candidate items when the basic words matched with the candidate items corresponding to the input string exist in the phrases matched with the upper text and/or the lower text.
In yet another optional embodiment of the present invention, the matching sub-module may specifically include:
the first matching unit is used for matching the input string with phrases pre-stored in a cache;
the acquisition unit is used for acquiring the phrases matched with the input string from the cache when the phrases matched with the input string exist in the cache;
and the second matching unit is used for matching the input string with the phrases pre-stored in a word stock when the phrase matched with the input string does not exist in the cache, and acquiring the phrase matched with the input string from the word stock.
In yet another alternative embodiment of the present invention, the apparatus may further include:
and the storage module is used for storing the phrases which accord with the preset hit conditions in the cache in a word stock.
In yet another alternative embodiment of the present invention, the apparatus may further include:
the time recording module is used for recording the on-screen time information corresponding to the candidate items;
and the space cleaning module is used for cleaning the stored phrases according to the screen-loading time information.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 5 is a block diagram illustrating an apparatus 800 for information input, according to an example embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of the components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer-readable storage medium in which instructions, when executed by a processor of a mobile terminal, enable the mobile terminal to perform an information input method, the method comprising: acquiring candidate items corresponding to the input strings according to pre-stored phrases; the phrase is obtained according to the input behavior of a user and comprises at least three basic words; and outputting the candidate item corresponding to the input string.
Fig. 6 is a schematic structural diagram of a server in an embodiment of the present invention. The server 1900 may vary widely by configuration or performance and may include one or more Central Processing Units (CPUs) 1922 (e.g., one or more processors) and memory 1932, one or more storage media 1930 (e.g., one or more mass storage devices) storing applications 1942 or data 1944. Memory 1932 and storage medium 1930 can be, among other things, transient or persistent storage. The program stored in the storage medium 1930 may include one or more modules (not shown), each of which may include a series of instructions operating on a server. Still further, a central processor 1922 may be provided in communication with the storage medium 1930 to execute a series of instruction operations in the storage medium 1930 on the server 1900.
The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input-output interfaces 1958, one or more keyboards 1956, and/or one or more operating systems 1941, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is only limited by the appended claims
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
The information input method, the information input device and the device for inputting information provided by the invention are described in detail, specific examples are applied in the text to explain the principle and the implementation mode of the invention, and the description of the above examples is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (28)

1. An information input method, comprising:
acquiring candidate items corresponding to the input strings according to pre-stored phrases; the phrase is obtained according to the input behavior of a user and comprises at least three basic words; the basic words are used for representing words of the minimum unit;
outputting the candidate item corresponding to the input string;
acquiring current screen words corresponding to continuous screen operation of a user;
and under the condition that the current screen word and the phrases stored in the cache have a common prefix, storing the longest common prefix in the word stock as the phrase.
2. The method of claim 1, wherein the phrase is obtained by:
acquiring at least one screen-up word corresponding to continuous screen-up operation;
and when the at least one screen word comprises at least three adjacent basic words, storing the at least three adjacent basic words as a word group.
3. The method of claim 2, wherein the step of obtaining at least one onscreen word corresponding to the successive onscreen operations comprises:
and when the end of the continuous screen-on operation is determined, acquiring at least one screen-on word corresponding to the continuous screen-on operation.
4. The method of claim 3, wherein the step of determining the end of the continuous on-screen operation comprises:
when receiving a click operation aiming at a preset ending key, determining that the continuous screen-loading operation is ended; wherein, the preset end key comprises: punctuation mark keys and/or backspace keys and/or space keys and/or function keys; or
And when the time interval between two screen-on operations is larger than an interval threshold value, determining that the continuous screen-on operation is ended.
5. The method of claim 1, wherein the step of obtaining the candidate item corresponding to the input string according to the pre-stored phrase comprises:
matching an input string with a pre-stored phrase to acquire the phrase matched with the input string;
and taking the phrase matched with the input string as a candidate item corresponding to the input string.
6. The method of claim 1, further comprising:
inquiring in the pre-stored phrases according to the upper text and/or the lower text corresponding to the input string to obtain phrases matched with the upper text and/or the lower text;
and when the basic words matched with the candidate items corresponding to the input string exist in the phrases matched with the above and/or the below, adjusting the ranking of the candidate items.
7. The method according to claim 5, wherein the step of matching the input string with the pre-stored phrases to obtain the phrases matching the input string comprises:
matching the input string with phrases pre-stored in a cache;
when the phrase matched with the input string exists in the cache, acquiring the phrase matched with the input string from the cache;
and when the phrase matched with the input string does not exist in the cache, matching the input string with the phrase pre-stored in a word stock, and acquiring the phrase matched with the input string from the word stock.
8. The method of claim 7, further comprising:
and storing the phrases meeting the preset hit conditions in the cache in a word stock.
9. The method according to any one of claims 1 to 8, further comprising:
recording the screen-on time information corresponding to the candidate item;
and clearing the stored phrases according to the screen-on time information.
10. An information input device, comprising:
the candidate item acquisition module is used for acquiring candidate items corresponding to the input strings according to pre-stored phrases; the phrase is obtained according to the input behavior of a user and comprises at least three basic words; the basic words are used for representing words of the minimum unit; and
the candidate item output module is used for outputting the candidate items corresponding to the input strings;
the device further comprises:
the current screen word acquisition module is used for acquiring current screen words corresponding to continuous screen operation of a user;
and the word stock storage module is used for storing the longest public prefix as a word group in the word stock under the condition that the current screen word and the word group stored in the cache have the public prefix.
11. The apparatus of claim 10, further comprising: the phrase obtaining module is used for obtaining the phrases;
the phrase obtaining module comprises:
the screen word acquisition sub-module is used for acquiring at least one screen word corresponding to continuous screen operation;
and the phrase acquisition submodule is used for storing the at least three adjacent basic words as phrases when the at least one screen word comprises the at least three adjacent basic words.
12. The apparatus of claim 11, wherein the onscreen word capture submodule comprises:
and the screen word acquisition unit is used for acquiring at least one screen word corresponding to the continuous screen operation when the end of the continuous screen operation is determined.
13. The apparatus according to claim 12, wherein the on-screen word obtaining unit comprises:
the first determining and ending subunit is used for determining that the continuous screen-loading operation is ended when the clicking operation aiming at a preset ending key is received; wherein, the preset end key comprises: punctuation mark keys and/or backspace keys and/or space keys and/or function keys; or
And the second determination end subunit determines that the continuous screen-on operation is ended when the time interval between two screen-on operations is greater than the interval threshold.
14. The apparatus of claim 10, wherein the candidate term obtaining module comprises:
the matching sub-module is used for matching the input string with a pre-stored phrase to acquire the phrase matched with the input string;
and the obtaining sub-module is used for taking the phrase matched with the input string as a candidate item corresponding to the input string.
15. The apparatus of claim 12, further comprising:
the upper text matching module is used for inquiring the pre-stored phrases according to the upper text and/or the lower text corresponding to the input string so as to obtain phrases matched with the upper text and/or the lower text;
and the sorting module is used for adjusting the sorting of the candidate items when the basic words matched with the candidate items corresponding to the input string exist in the phrases matched with the upper text and/or the lower text.
16. The apparatus of claim 14, wherein the matching sub-module comprises:
the first matching unit is used for matching the input string with phrases pre-stored in a cache;
the acquisition unit is used for acquiring the phrases matched with the input string from the cache when the phrases matched with the input string exist in the cache;
and the second matching unit is used for matching the input string with the phrases pre-stored in a word stock when the phrase matched with the input string does not exist in the cache, and acquiring the phrase matched with the input string from the word stock.
17. The apparatus of claim 16, further comprising:
and the storage module is used for storing the phrases which accord with the preset hit conditions in the cache in a word stock.
18. The apparatus of any one of claims 10 to 17, further comprising:
the time recording module is used for recording the on-screen time information corresponding to the candidate items;
and the space cleaning module is used for cleaning the stored phrases according to the screen-loading time information.
19. An apparatus for information input comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for:
acquiring candidate items corresponding to the input strings according to pre-stored phrases; the phrase is obtained according to the input behavior of a user and comprises at least three basic words; the basic words are used for representing words of the minimum unit;
outputting the candidate item corresponding to the input string;
acquiring current screen words corresponding to continuous screen operation of a user;
and under the condition that the current screen word and the phrases stored in the cache have a common prefix, storing the longest common prefix in the word stock as the phrase.
20. The device of claim 19, wherein the device is also configured to execute the one or more programs by one or more processors includes instructions for:
acquiring at least one screen-up word corresponding to continuous screen-up operation;
and when the at least one screen word comprises at least three adjacent basic words, storing the at least three adjacent basic words as a word group.
21. The apparatus of claim 20, wherein the obtaining at least one onscreen word corresponding to the successive onscreen operations comprises:
and when the end of the continuous screen-on operation is determined, acquiring at least one screen-on word corresponding to the continuous screen-on operation.
22. The apparatus of claim 21, wherein the determining that the continuous on-screen operation is over comprises:
when receiving a click operation aiming at a preset ending key, determining that the continuous screen-loading operation is ended; wherein, the preset end key comprises: punctuation mark keys and/or backspace keys and/or space keys and/or function keys; or
And when the time interval between two screen-on operations is larger than an interval threshold value, determining that the continuous screen-on operation is ended.
23. The apparatus of claim 19, wherein the obtaining the candidate item corresponding to the input string according to the pre-stored phrase comprises:
matching an input string with a pre-stored phrase to acquire the phrase matched with the input string;
and taking the phrase matched with the input string as a candidate item corresponding to the input string.
24. The apparatus of claim 19, further comprising:
inquiring in the pre-stored phrases according to the upper text and/or the lower text corresponding to the input string to obtain phrases matched with the upper text and/or the lower text;
and when the basic words matched with the candidate items corresponding to the input string exist in the phrases matched with the above and/or the below, adjusting the ranking of the candidate items.
25. The apparatus of claim 23, wherein the matching the input string with the pre-stored phrases to obtain the phrases matching the input string comprises:
matching the input string with phrases pre-stored in a cache;
when the phrase matched with the input string exists in the cache, acquiring the phrase matched with the input string from the cache;
and when the phrase matched with the input string does not exist in the cache, matching the input string with the phrase pre-stored in a word stock, and acquiring the phrase matched with the input string from the word stock.
26. The device of claim 25, wherein the device is also configured to execute the one or more programs by one or more processors includes instructions for:
and storing the phrases meeting the preset hit conditions in the cache in a word stock.
27. The apparatus of any of claims 19 to 26, wherein the apparatus is further configured to execute the one or more programs by the one or more processors includes instructions for:
recording the screen-on time information corresponding to the candidate item;
and clearing the stored phrases according to the screen-on time information.
28. One or more machine readable media having instructions stored thereon that, when executed by one or more processors, cause an apparatus to perform the method of any of claims 1-9.
CN201610229222.XA 2016-04-13 2016-04-13 Information input method and device for inputting information Active CN107291260B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610229222.XA CN107291260B (en) 2016-04-13 2016-04-13 Information input method and device for inputting information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610229222.XA CN107291260B (en) 2016-04-13 2016-04-13 Information input method and device for inputting information

Publications (2)

Publication Number Publication Date
CN107291260A CN107291260A (en) 2017-10-24
CN107291260B true CN107291260B (en) 2021-11-02

Family

ID=60093179

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610229222.XA Active CN107291260B (en) 2016-04-13 2016-04-13 Information input method and device for inputting information

Country Status (1)

Country Link
CN (1) CN107291260B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783244B (en) * 2017-11-10 2021-06-22 北京搜狗科技发展有限公司 Processing method and device for processing
CN109917927B (en) * 2017-12-13 2022-07-08 北京搜狗科技发展有限公司 Candidate item determination method and device
CN110244860B (en) * 2018-03-08 2024-02-02 北京搜狗科技发展有限公司 Input method and device and electronic equipment
CN110389668B (en) * 2018-04-20 2024-08-16 北京搜狗科技发展有限公司 Input method, device and device for inputting
CN113703588B (en) * 2020-05-20 2024-10-29 北京搜狗科技发展有限公司 Input method, device and device for inputting
CN115373523A (en) * 2021-05-18 2022-11-22 北京搜狗科技发展有限公司 Input method, input device and input device
CN113703590A (en) * 2021-08-13 2021-11-26 北京搜狗科技发展有限公司 Input method, input device and input device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101008864A (en) * 2006-01-28 2007-08-01 北京优耐数码科技有限公司 Multifunctional and multilingual input system for numeric keyboard and method thereof
CN101290632B (en) * 2008-05-30 2011-09-14 北京搜狗科技发展有限公司 Input method for user words participating in intelligent word-making and input method system
CN101719020A (en) * 2009-12-02 2010-06-02 腾讯科技(深圳)有限公司 Method and device for acquiring new words and phrases
US9465798B2 (en) * 2010-10-08 2016-10-11 Iq Technology Inc. Single word and multi-word term integrating system and a method thereof
CN103647843B (en) * 2013-12-20 2017-01-18 百度在线网络技术(北京)有限公司 Method and device for triggering and responding to cloud input requests

Also Published As

Publication number Publication date
CN107291260A (en) 2017-10-24

Similar Documents

Publication Publication Date Title
CN107291260B (en) Information input method and device for inputting information
CN107918496B (en) Input error correction method and device for input error correction
CN107688399B (en) Input method and device and input device
CN111198620B (en) Method, device and equipment for presenting input candidate items
CN107291704B (en) Processing method and device for processing
CN107564526B (en) Processing method, apparatus and machine-readable medium
CN109002183A (en) A kind of method and device of information input
CN110633017A (en) Input method, input device and input device
CN109725736B (en) Candidate sorting method and device and electronic equipment
CN109308126B (en) Candidate word display method and device
CN110795014B (en) Data processing method and device and data processing device
CN111381685B (en) Sentence association method and sentence association device
CN112199032A (en) Expression recommendation method and device and electronic equipment
CN110780749B (en) Character string error correction method and device
CN108073294B (en) Intelligent word forming method and device for intelligent word forming
CN113589954B (en) Data processing method and device and electronic equipment
CN112987941B (en) Method and device for generating candidate words
CN110781270B (en) Method and device for constructing non-keyword model in decoding network
CN114115550A (en) Method and device for processing association candidate
CN107765884B (en) Sliding input method and device and electronic equipment
CN111198619A (en) Association candidate generation method and device
CN113589955B (en) Data processing method and device and electronic equipment
CN112306251B (en) Input method, device and device for inputting
CN113534973B (en) Input method, device and device for inputting
CN111103986A (en) User word stock management method and device and input method and device

Legal Events

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