Input method, device and electronic device

By performing a half -sentence association in the input method, the half -sentence association candidate combined with the text that has been entered with the input box has been generated, and it is displayed to solve the low probability problem of being selected by the user's fast input period prediction results, and improved the efficiency of user input efficiency. Essence

CN114690912BActive Publication Date: 2025-01-24BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202011631484.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-30
Publication Date
2025-01-24
Estimated Expiration
2040-12-30

AI Technical Summary

Technical Problem

When the existing input method is input quickly, the probability of long sentence prediction results being clicked on the screen is low, which makes it impossible to effectively improve the user input efficiency.

Method used

After the user places the candidate on the screen into the input box, half-sentence association is performed to obtain a half-sentence association candidate that can form a complete sentence with the sentence of the candidate in the input text of the input box, and is displayed.

Benefits of technology

By displaying half-sentence association candidates in advance, the probability of users viewing and displaying the association results is increased, thereby improving user input efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114690912B_ABST
    Figure CN114690912B_ABST
Patent Text Reader

Abstract

Embodiments of the present invention provide an input method, device and electronic device, wherein the method comprises: after a user puts a candidate on the screen of an input box, performing half-sentence association to obtain a half-sentence association candidate; wherein the half-sentence association candidate and the sentence in which the candidate is located in the input text of the input box form a complete sentence; displaying the half-sentence association candidate; and then advancing the timing of association to avoid the user having no time or being too late to view the association result during the input process, so as to increase the probability of the user viewing and displaying the association result; thereby improving the user's input efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of input methods, and in particular to an input method, device and electronic equipment. Background Art

[0002] With the development of computer technology, electronic devices such as mobile phones and tablet computers are becoming more and more popular, bringing great convenience to people's lives, studies and work. These electronic devices are usually installed with input method applications (input methods for short), so that users can use the input methods to input information. In order to save the user's input cost and improve the user's input efficiency, the input method provides many functions such as the long sentence prediction function, that is, in the process of the user touching the key to input the input sequence, the long sentence prediction is performed, and the long sentence prediction results are displayed for the user to choose. Since the long sentence prediction depends on the user's keystrokes, when the user presses the key too fast, there is often no time or too late to view the long sentence prediction results; resulting in a low probability of the long sentence prediction results being selected on the screen, which cannot improve the user's input efficiency. Summary of the invention

[0003] The embodiment of the present invention provides an input method to improve input efficiency.

[0004] Correspondingly, an embodiment of the present invention further provides an input device and an electronic device to ensure the implementation and application of the above method.

[0005] In order to solve the above problems, an embodiment of the present invention discloses an input method, which specifically includes: after the user puts a candidate on the screen to an input box, performing half-sentence association to obtain a half-sentence association candidate; wherein the half-sentence association candidate and the sentence where the candidate is located in the input text of the input box form a complete sentence; and displaying the half-sentence association candidate.

[0006] Optionally, the half-sentence association is performed to obtain half-sentence association candidates, including: obtaining local association candidates obtained by local association; selecting target local association candidates from local association candidates displayed on other screens of the local candidate column, wherein the other screens are screens other than the first screen of the local candidate column; and using the target local association candidate as a half-sentence association candidate.

[0007] Optionally, selecting a target local association candidate from local association candidates displayed on other screens of the local candidate column includes: selecting a primary local association candidate from local association candidates displayed on other screens of the local candidate column, wherein the primary local association candidate and the sentence in which the candidate is located in the input text of the input box form a complete sentence; and selecting the top N primary local association candidates with the highest candidate scores from the primary local association candidates as the target local association candidates.

[0008] Optionally, the method also includes: obtaining the last code of the input sequence input by the user before the candidate appears on the screen, displaying a long sentence association candidate; judging whether the candidate on the screen matches the long sentence association candidate; if the candidate on the screen matches the long sentence association candidate, counting the probability that the user has entered the same text as the long sentence association candidate in the input box after historically clicking the candidate; if the candidate on the screen does not match the long sentence association candidate, or the probability is less than a preset probability, executing the step of performing half-sentence association to obtain a half-sentence association candidate.

[0009] Optionally, performing half-sentence association to obtain half-sentence association candidates includes: acquiring input information; performing half-sentence association based on the input information to obtain half-sentence association candidates.

[0010] Optionally, displaying the half-sentence association candidates includes: displaying the half-sentence association candidates in a cloud candidate column.

[0011] Optionally, the method further includes: determining whether the sentence where the candidate is located in the text input into the input box is a complete sentence; if the sentence where the candidate is located in the text input into the input box is not a complete sentence, executing the step of performing half-sentence association to obtain a half-sentence association candidate.

[0012] An embodiment of the present invention also discloses an input device, which specifically includes: an association module, which is used to perform half-sentence association after the user puts the candidate on the screen to the input box, and obtain a half-sentence association candidate; wherein the half-sentence association candidate and the sentence where the candidate is located in the input text of the input box form a complete sentence; and a display module is used to display the half-sentence association candidate.

[0013] Optionally, the association module includes: a first half-sentence association sub-module, used to obtain local association candidates obtained by local association; select target local association candidates from local association candidates displayed on other screens of the local candidate column, wherein the other screens are screens other than the first screen of the local candidate column; and use the target local association candidate as a half-sentence association candidate.

[0014] Optionally, the first half-sentence association submodule is used to select primary local association candidates from the local association candidates displayed on other screens in the local candidate column, and the primary local association candidates and the sentence in which the candidate is located in the input text of the input box form a complete sentence; from the primary local association candidates, the first N primary local association candidates with the highest candidate scores are selected as target local association candidates.

[0015] Optionally, the device also includes: a matching and statistical module, which is used to obtain the last code of the input sequence input by the user before the candidate is displayed on the screen, and display the long sentence association candidate; determine whether the candidate on the upper screen matches the long sentence association candidate; if the candidate on the upper screen matches the long sentence association candidate, then count the probability that the user has entered the same text as the long sentence association candidate in the input box after the candidate is displayed on the screen; the association module is used to execute the step of performing half-sentence association to obtain half-sentence association candidates if the candidate on the upper screen does not match the long sentence association candidate, or the probability is less than a preset probability.

[0016] Optionally, the association module includes: a second half-sentence association submodule, used to obtain input information; and perform half-sentence association according to the input information to obtain half-sentence association candidates.

[0017] Optionally, the display module is used to display the half-sentence association candidates in the cloud candidate column.

[0018] Optionally, the device also includes: a judgment module, used to judge whether the sentence where the candidate is located in the text input into the input box is a complete sentence; the association module, used to execute the step of performing half-sentence association to obtain half-sentence association candidates if the sentence where the candidate is located in the text input into the input box is not a complete sentence.

[0019] An embodiment of the present invention further discloses a readable storage medium. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the input method as described in any one of the embodiments of the present invention.

[0020] An embodiment of the present invention also discloses an electronic device, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations: after a user puts a candidate on the screen to an input box, performing half-sentence association to obtain half-sentence association candidates; wherein the half-sentence association candidates and the sentence in which the candidate is located in the input text of the input box form a complete sentence; and displaying the half-sentence association candidates.

[0021] Optionally, the half-sentence association is performed to obtain half-sentence association candidates, including: obtaining local association candidates obtained by local association; selecting target local association candidates from local association candidates displayed on other screens of the local candidate column, wherein the other screens are screens other than the first screen of the local candidate column; and using the target local association candidate as a half-sentence association candidate.

[0022] Optionally, selecting a target local association candidate from local association candidates displayed on other screens of the local candidate column includes: selecting a primary local association candidate from local association candidates displayed on other screens of the local candidate column, wherein the primary local association candidate and the sentence in which the candidate is located in the input text of the input box form a complete sentence; and selecting the top N primary local association candidates with the highest candidate scores from the primary local association candidates as the target local association candidates.

[0023] Optionally, it also includes instructions for performing the following operations: when obtaining the last code of the input sequence input by the user before the candidate appears on the screen, the long sentence association candidate is displayed; judging whether the candidate on the upper screen matches the long sentence association candidate; if the candidate on the upper screen matches the long sentence association candidate, then counting the probability that the user has entered the same text as the long sentence association candidate in the input box after previously appearing on the screen; if the candidate on the upper screen does not match the long sentence association candidate, or the probability is less than a preset probability, then executing the step of performing half-sentence association to obtain a half-sentence association candidate.

[0024] Optionally, performing half-sentence association to obtain half-sentence association candidates includes: acquiring input information; performing half-sentence association based on the input information to obtain half-sentence association candidates.

[0025] Optionally, displaying the half-sentence association candidates includes: displaying the half-sentence association candidates in a cloud candidate column.

[0026] Optionally, it also includes instructions for performing the following operations: determining whether the sentence where the candidate is located in the text already entered in the input box is a complete sentence; if the sentence where the candidate is located in the text already entered in the input box is not a complete sentence, executing the step of performing half-sentence association to obtain half-sentence association candidates.

[0027] The embodiments of the present invention include the following advantages:

[0028] In an embodiment of the present invention, after the user uploads the candidate to the input box, half-sentence association can be performed to obtain half-sentence association candidates that can form a complete sentence with the sentence where the candidate is located in the text already input in the input box, and then the half-sentence association candidates are displayed; and then by advancing the timing of association, it is avoided that the user does not have time or is too late to view the association results during the input process, so as to increase the probability of the user viewing and displaying the association results; thereby improving the user's input efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 is a flow chart of steps of an input method embodiment of the present invention;

[0030] Figure 2 is a flowchart of steps of an optional embodiment of an input method of the present invention;

[0031] Figure 3 is a flowchart of steps of another optional embodiment of the input method of the present invention;

[0032] Figure 4 is a flowchart of steps of another optional embodiment of the input method of the present invention;

[0033] Figure 5 is a structural block diagram of an input device embodiment of the present invention;

[0034] Figure 6 is a structural block diagram of an optional embodiment of an input device of the present invention;

[0035] Figure 7 A structural block diagram of an electronic device for input according to an exemplary embodiment;

[0036] Figure 8 It is a structural schematic diagram of an electronic device for input according to another exemplary embodiment of the present invention. DETAILED DESCRIPTION

[0037] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0038] One of the core concepts of an embodiment of the present invention is to perform half-sentence association and display the half-sentence association result after the user screens the candidates and before entering the input sequence; and then, by advancing the association timing, it is avoided that the user does not have time or is too late to view the long sentence prediction results during the input process, so as to increase the probability of the user viewing and displaying the association results; thereby improving the user input efficiency.

[0039] Reference Figure 1 , shows a flow chart of steps of an input method embodiment of the present invention, which may specifically include the following steps:

[0040] Step 102: After the user uploads the candidate to the input box, a half-sentence association is performed to obtain a half-sentence association candidate; wherein the half-sentence association candidate and the sentence in which the candidate is located in the input text of the input box form a complete sentence.

[0041] Step 104: display the half-sentence association candidates.

[0042] In the embodiment of the present invention, when a user uses an input method to input text, he can input an input sequence to input text into the input box; of course, he can also input text into the input box through voice input. The text may include a variety of words, letters, symbols, etc., which are not limited in the embodiment of the present invention.

[0043] Among them, after receiving the input sequence input by the user, the input method can convert the input sequence into corresponding candidates and display them; then the user can select the candidate he needs from the displayed candidates and put it on the input box for input.

[0044] In an embodiment of the present invention, after the user puts the candidate on the screen to the input box and before inputting the input sequence, a half-sentence association can be performed to determine a half-sentence association candidate that can form a complete sentence with the sentence where the candidate is located in the input text in the input box. The half-sentence association candidate can include one or more, and then the half-sentence association candidates can be displayed.

[0045] In summary, in the embodiments of the present invention, after the user uploads the candidate to the input box, half-sentence association can be performed to obtain half-sentence association candidates that can form a complete sentence with the sentence where the candidate is located in the text already input in the input box, and then the half-sentence association candidates are displayed; and then by advancing the timing of association, it is avoided that the user does not have time or is too late to view the association results during the input process, so as to increase the probability of the user viewing and displaying the association results; thereby improving the user input efficiency.

[0046] In an optional embodiment of the present invention, after the user uploads the candidate to the input box, one of the purposes of performing half-sentence association is to generate a candidate that can form a complete sentence with the sentence in the text already input in the input box where the candidate is located. Therefore, after the candidate is uploaded, when the sentence in the text already input in the input box where the candidate is located is a complete sentence, there is no need to perform half-sentence association; and when the sentence in the text already input in the input box where the candidate is located is not a complete sentence, half-sentence association can be performed to improve the efficiency of the user inputting a complete sentence.

[0047] Reference Figure 2 , shows a flow chart of steps of an optional embodiment of an input method of the present invention, which may specifically include the following steps:

[0048] Step 202: After the user uploads the candidate to the input box, determine whether the sentence where the candidate is located in the input text of the input box is a complete sentence.

[0049] In the embodiment of the present invention, after the user uploads the candidate to the input box, it can be determined whether the sentence in the text inputted in the input box where the candidate is located is a complete sentence. If it is determined that the sentence in the text inputted in the input box where the candidate is located is a complete sentence, step 204 can be executed. If it is determined that the sentence in the text inputted in the input box where the candidate is located is not a complete sentence, other operations can be performed, such as local association, error correction, etc.; or no operation can be performed, which is not limited by the embodiment of the present invention.

[0050] In the embodiment of the present invention, the candidates on the upper screen may be located at various positions of the text input in the input box, such as the end of the text input, the middle of the text input, the beginning of the text input, and so on.

[0051] In an embodiment of the present invention, it is possible to determine whether the sentence in the text inputted in the input box where the candidate on the upper screen is located is a complete sentence based on the punctuation marks in the text inputted in the input box and / or by semantic analysis of the text inputted. The punctuation marks can be divided into two types: a first type and a second type; the first type of punctuation marks may refer to punctuation marks used at the end of a complete sentence; the second type of punctuation marks may refer to punctuation marks other than the first type of punctuation marks.

[0052] In one example, for the case where the candidate on the upper screen is located at the end of the text already entered in the input box, it can be determined whether the sentence in the text already entered in the input box where the candidate on the upper screen is located is a complete sentence based on the punctuation marks in the text already entered in the input box. Wherein, if the last punctuation mark in the text already entered in the input box is at the end of the text already entered, and the type of the last punctuation mark is of the first type; it can be determined that the sentence in the text already entered in the input box where the candidate on the upper screen is located is a complete sentence. If the last punctuation mark in the text already entered in the input box is at the end of the text already entered, and the type of the last punctuation mark is of the second type; it can be determined that the sentence in the text already entered in the input box where the candidate on the upper screen is located is not a complete sentence. If the last punctuation mark in the text already entered in the input box is not at the end of the text already entered, it can be determined that the sentence in the text already entered in the input box where the candidate on the upper screen is located is not a complete sentence.

[0053] In another example, for the case where the candidate on the upper screen is located at the end of the text entered in the input box, it can be determined whether the sentence in the text entered in the input box where the candidate on the upper screen is located is a complete sentence based on the punctuation marks in the text entered in the input box and through semantic analysis of the text entered. Wherein, based on the above example, if the last punctuation mark in the text entered in the input box is not at the end of the text entered, when the type of the last punctuation mark is the first type, the text after the last punctuation mark can be semantically analyzed to determine whether the text after the last punctuation mark is a complete sentence. If the text after the last punctuation mark is a complete sentence, it can be determined that the sentence in the text entered in the input box where the candidate on the upper screen is located is a complete sentence. If the text after the last punctuation mark is not a complete sentence, it can be determined that the sentence in the text entered in the input box where the candidate on the upper screen is located is not a complete sentence. When the type of the last punctuation mark is the second type, it can be determined that the last punctuation mark in the input text is the first type; then the text after the last punctuation mark of the first type can be semantically analyzed to determine whether the text after the last punctuation mark of the first type is a complete sentence. If the text after the last punctuation mark of the first type is a complete sentence, it can be determined that the sentence in the input text of the input box where the candidate on the screen is located is a complete sentence; if the text after the last punctuation mark of the first type is not a complete sentence, it can be determined that the sentence in the input text of the input box where the candidate on the screen is located is not a complete sentence.

[0054] In another example, for the case where the candidate on the upper screen is located in the middle or beginning of the text already entered in the input box, it can be determined whether the sentence in the text already entered in the input box where the candidate on the upper screen is located is a complete sentence based on the punctuation marks in the text already entered in the input box and through semantic analysis of the text already entered. Among them, the punctuation mark (which can be called punctuation mark 1) that is closest to the candidate on the upper screen and of the first type before the candidate on the upper screen can be determined, and the punctuation mark (which can be called punctuation mark 2) that is closest to the candidate on the upper screen and of the first type after the candidate on the upper screen is determined. Among them, if only punctuation mark 1 is found, the text after punctuation mark 1 is subjected to speech analysis; if the sentence composed of the text after punctuation mark 1 is a complete sentence, it is determined that the sentence in the text already entered in the input box where the candidate is located is a complete sentence; if the sentence composed of the text after punctuation mark 1 is not a complete sentence, it is determined that the sentence in the text already entered in the input box where the candidate is located is not a complete sentence. If only punctuation mark 2 is found, the text before punctuation mark 2 is subjected to speech analysis; if the sentence composed of the text before punctuation mark 2 is a complete sentence, it is determined that the sentence in the text already entered in the input box where the candidate is located is a complete sentence; if the sentence composed of the text before punctuation mark 2 is not a complete sentence, it is determined that the sentence in the text already entered in the input box where the candidate is located is not a complete sentence. If punctuation mark 1 and punctuation mark 2 are found, it is possible to determine whether the sentence composed of the text before punctuation mark 1 and punctuation mark 2 is a complete sentence by performing semantic analysis on the text before punctuation mark 1 and punctuation mark 2. If the sentence composed of the text before punctuation mark 1 and punctuation mark 2 is a complete sentence, it can be determined that the sentence in the text already entered in the input box where the candidate is located is a complete sentence. If the sentence composed of the text before punctuation mark 1 and punctuation mark 2 is not a complete sentence, it can be determined that the sentence in the text already entered in the input box where the candidate is located is not a complete sentence.

[0055] In one example, no matter where the candidate on the upper screen is located in the text already entered in the input box, it is possible to determine whether the sentence in the text already entered in the input box where the candidate is located is a complete sentence by performing semantic analysis on the text already entered in the input box. Among them, semantic analysis can be performed on the text already entered in the input box to select a complete sentence from the input text. If the selected complete sentence does not contain the candidate on the upper screen, it can be determined that the sentence in the text already entered in the input box where the candidate is located is not a complete sentence; if the selected complete sentence contains the candidate on the upper screen, it can be determined that the sentence in the text already entered in the input box where the candidate is located is a complete sentence.

[0056] Step 204: If the sentence where the candidate is located in the text inputted in the input box is not a complete sentence, perform half-sentence association to obtain half-sentence association candidates, and the half-sentence association candidates and the sentence where the candidate is located in the text inputted in the input box form a complete sentence.

[0057] Among them, the method of performing half-sentence association and obtaining half-sentence association candidates will be explained later.

[0058] Step 206: display the half-sentence association candidates.

[0059] In summary, in an embodiment of the present invention, after the user selects a candidate on the screen, it can be determined whether the sentence in the text already entered in the input box where the candidate is located is a complete sentence; if the sentence in the text already entered in the input box where the candidate is located is not a complete sentence, half-sentence association is performed to obtain and display half-sentence association candidates; and further, when the sentence in the text already entered in the input box where the candidate is located is not a complete sentence, half-sentence association can be performed to improve the efficiency of the user in entering complete sentences.

[0060] In the embodiment of the present invention, there may be multiple ways of associating a half-sentence, and various ways of associating a half-sentence are described below.

[0061] Reference Figure 3 , shows a step flow chart of another optional embodiment of the input method of the present invention.

[0062] Step 302: After the user puts the candidate on the screen into the input box, obtain the local association candidate obtained by local association.

[0063] Step 304: Select a target local association candidate from the local association candidates displayed on other screens of the local candidate column, wherein the other screens are screens other than the first screen of the local candidate column.

[0064] Step 306: Use the target local association candidate as a half-sentence association candidate.

[0065] In the embodiment of the present invention, after the user puts the candidate on the screen, the input method can also perform local association to obtain local association candidates; and display the local association candidates in the local candidate column. The local association candidates may include word candidates and long-tail word candidates; the word candidate may refer to a candidate including one word, and the long-tail word candidate may refer to a candidate including at least two words, consisting of at least two words.

[0066] When displaying local association candidates in the local candidate column, the word candidates will be displayed on the first screen of the local candidate column, and the long-tail word candidates will be displayed on other screens of the local candidate column; the other screens are screens other than the first screen of the local candidate column, such as the second screen and the third screen. When the user selects the local association candidate on the upper screen, he often does not flip the screen to find the required local association candidate, making it difficult for the user to view the long-tail word candidate. However, some long-tail words can form a complete sentence with the sentence where the candidate on the upper screen is located in the text entered in the input box; therefore, in an embodiment of the present invention, the target local association candidate can be selected from the long-tail word candidates of the local association candidates on other screens of the local candidate column as a half-sentence association candidate.

[0067] Wherein, step 304 may include the following sub-steps 3042 to 3044:

[0068] Sub-step 3042: Select a primary local association candidate from the local association candidates displayed on other screens of the local candidate column, and the primary local association candidate and the sentence where the candidate is located in the input text of the input box form a complete sentence.

[0069] Sub-step 3042: Select the first N primary local association candidates with the highest candidate scores from the primary local association candidates as target local association candidates.

[0070] In an embodiment of the present invention, long-tail word candidates can be selected from the local association candidates displayed on other screens of the local candidate column; then, from the long-tail word candidates, long-tail word candidates that can form a complete sentence with the sentence where the upper-screen candidate is located in the input text of the input box are selected as primary local association candidates.

[0071] In the embodiment of the present invention, while performing local association to determine the local association candidates, the candidate score of each local association candidate can also be determined. Then, the first N primary local association candidates with the highest candidate scores can be selected from the primary local association candidates as the target local association candidates. The N is a positive integer and can be set as required, and the embodiment of the present invention does not limit this.

[0072] In one example, one way to determine the sentence where the candidate in the input text of the input box is located can be to determine the sentence where the candidate in the input text of the input box is located based on the punctuation marks in the input text. Among them, the punctuation mark that is closest to the candidate on the upper screen and of the first type before the candidate on the upper screen (can be called punctuation mark 1) can be determined, and the punctuation mark that is closest to the candidate on the upper screen and of the first type after the candidate on the upper screen is determined (can be called punctuation mark 2). Among them, if only punctuation mark 1 is found, the text after punctuation mark 1 can be determined as the sentence where the candidate on the upper screen is located. If only punctuation mark 2 is found, the text before punctuation mark 2 can be determined as the sentence where the candidate on the upper screen is located. If punctuation mark 1 and punctuation mark 2 are found, the sentence composed of the text between punctuation mark 1 and punctuation mark 2 can be determined as the sentence where the candidate on the upper screen is located.

[0073] In one example, one way to determine the sentence where the candidate is located in the text input into the input box may be to determine the sentence where the candidate is located in the text input into the input box by semantic analysis of the text input. Among them, based on the above embodiment in which a complete sentence is selected from the input text, a complete sentence (which may be referred to as complete sentence 1) that is located before the candidate on the upper screen and closest to the candidate on the upper screen may be determined; and a complete sentence (which may be referred to as complete sentence 2) that is located after the candidate on the upper screen and closest to the candidate on the upper screen may be determined. If only complete sentence 1 is found, the text after complete sentence 1 may be determined as the sentence where the candidate on the upper screen is located. If only complete sentence 2 is found, the text before complete sentence 2 may be determined as the sentence where the candidate on the upper screen is located. If complete sentence 1 and complete sentence 2 are found, the text between complete sentence 1 and complete sentence 2 may be determined as the sentence where the candidate on the upper screen is located.

[0074] Step 308: display the half-sentence association candidates.

[0075] In one example of the present invention, half-sentence association candidates can be displayed in a cloud candidate bar; the position of the cloud candidate bar can be set as required, such as being set in the upper right corner of an input method keyboard, etc., and the embodiment of the present invention does not limit this; and then, after the user selects the candidates on the screen, the half-sentence association candidates can be browsed in the cloud candidate bar, thereby increasing the probability of long-tail word candidates in local association candidates.

[0076] In summary, in the embodiments of the present invention, local association candidates obtained by local association can be obtained; from the local association candidates displayed on other screens in the local candidate column, primary local association candidates are selected, and the sentence where the candidate is located constitutes a complete sentence in the input text of the input box; from the primary local association candidates, the top N primary local association candidates with the highest candidate scores are selected as target local association candidates, and then the target local association candidates are used as half-sentence association candidates and displayed in the cloud candidate column; thereby, the probability of users viewing local association candidates on other screens except the first screen in the local candidate column of the upper screen can be increased, thereby improving the utilization rate of local association candidates and saving resources.

[0077] Reference Figure 4 , showing a step flow chart of another optional embodiment of the input method of the present invention.

[0078] Step 402: After the user puts the candidate on the screen to the input box, the long sentence association candidate is displayed when the last code of the input sequence input by the user before the candidate is put on the screen is obtained.

[0079] Step 404: Determine whether the candidate on the upper screen matches the long sentence association candidate.

[0080] Among them, the candidates in the input box displayed by the user on the screen may refer to the candidates displayed in the local candidate column.

[0081] In the embodiment of the present invention, when the user inputs an input sequence, a long sentence association can be performed on the input sequence input by the user, and corresponding long sentence association candidates can be determined and displayed. The display position of the long sentence association candidate can be the same as the display position of the half sentence association candidate, such as both in the cloud candidate column.

[0082] Before the user clicks on the candidate displayed in the local candidate column to be screened, after the user enters the last code of the input sequence corresponding to the candidate, the cloud candidate column can display the long sentence association candidate corresponding to the input sequence, and the local candidate column displays the corresponding candidate. When the user clicks on the candidate from the local candidate column to be screened, if the candidate that the user screens from the local candidate column matches the long sentence association candidate; the long sentence association candidate will continue to be displayed. If the user screens the candidate from the local candidate column but does not click on the long sentence association candidate, it may be because the user has not developed the habit of clicking on the long sentence association candidate and did not click on the long sentence association candidate; it may also be that the long sentence association candidate is not what the user needs to input, and the long sentence association candidate is not clicked. In order to avoid the situation where the user has not developed the habit of clicking on the long sentence association candidate and does not click on the long sentence association candidate; the long sentence association candidate displayed when the last code of the input sequence entered by the user before the candidate is screened can be obtained; then it is determined whether the candidate on the screen matches the long sentence association candidate.

[0083] If the candidate on the upper screen matches the long sentence association candidate, step 406 can be executed to determine whether the user did not click on the long sentence association candidate because the long sentence association candidate is not what the user needs or because the user is not used to clicking on the long sentence association candidate. When the candidate on the upper screen does not match the long sentence association candidate, the long sentence association candidate may not be displayed, and then step 408 is executed.

[0084] Among them, the number of texts of the candidate on the upper screen can be determined, and then according to the number of texts, the long sentence association candidate is divided into multiple parts from front to back; wherein the number of texts in each part is the same as the number of texts of the candidate on the upper screen. Then each part is matched with the candidate on the upper screen. If there is a part that matches the candidate on the upper screen, it can be determined that the candidate on the upper screen matches the long sentence association candidate. If no part matches the candidate on the upper screen, it can be determined that the candidate on the upper screen does not match the long sentence association candidate.

[0085] Step 406: If the candidate on the previous screen matches the long sentence association candidate, count the probability that the user has entered the same text as the long sentence association candidate in the input box after clicking the candidate in the past.

[0086] In an embodiment of the present invention, if the candidate on the upper screen matches the long sentence association candidate, the probability that the user has entered the same text as the long sentence association candidate in the input box after clicking the candidate in the past can be counted; then, based on the probability, it can be determined whether the user did not click on the long sentence association candidate because the long sentence association candidate is not what the user needs or because the user is not accustomed to clicking on the long sentence association candidate.

[0087] Among them, the first frequency of the user displaying the candidate on the screen and the second frequency of the user entering the same text as the long sentence association candidate in the input box after displaying the candidate on the screen can be counted; then the ratio of the second frequency to the first frequency is calculated to determine the above probability.

[0088] If the probability is greater than or equal to the preset probability, it means that the long sentence association candidate is what the user needs to input, but the user has not developed the habit of clicking on the long sentence association candidate and not displaying it on the screen; at this time, the long sentence association candidate can continue to be displayed, and step 408 is not executed. If the probability is less than the preset probability, it means that the long sentence association candidate is not what the user needs to input, and step 408 can be executed at this time. Among them, the preset probability can be set according to demand, and the embodiment of the present invention does not limit this.

[0089] Step 408: If the candidate on the upper screen does not match the long sentence association candidate, or the probability is less than a preset probability, a half-sentence association is performed to obtain a half-sentence association candidate.

[0090] The step 408 may include the following sub-steps 4082 to 4084:

[0091] Sub-step 4082: Obtain input information.

[0092] Sub-step 4084, performing half-sentence association based on the input information to obtain half-sentence association candidates.

[0093] In the embodiment of the present invention, input information may be acquired, and then half-sentence association may be performed based on the input information to determine corresponding half-sentence association candidates.

[0094] The input information may include all information related to the input, such as text entered in the input box, input scene, input-related information such as location, time, weather, application usage information, etc. When the input scene is a chat scene, the input information may also include interaction information.

[0095] The half-sentence association module can be used to perform half-sentence association based on input information and output half-sentence association candidates. The half-sentence association model can be various types of models, such as sentence models, statistical models, generative models, retrieval models, etc., which are not limited in the present embodiment.

[0096] Step 410: display the half-sentence association candidates.

[0097] In summary, in the embodiments of the present invention, the long sentence association candidate displayed when the last code of the input sequence input by the user before the candidate is displayed on the upper screen can be obtained; then, it is determined whether the candidate on the upper screen matches the long sentence association candidate. If the candidate on the upper screen matches the long sentence association candidate, the probability that the user has entered the same text as the long sentence association candidate in the input box after previously displaying the candidate on the upper screen is counted; if the candidate on the upper screen does not match the long sentence association candidate, or the probability is less than a preset probability, a half-sentence association is performed to obtain and display a half-sentence association candidate; and further, when the candidate on the upper screen does not match the long sentence association candidate, or the displayed long sentence candidate is not the candidate required by the user, a half-sentence association is performed; thereby, the shortcomings of long sentence association can be made up and the user input efficiency can be improved.

[0098] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0099] Reference Figure 5, shows a structural block diagram of an input device embodiment of the present invention, which may specifically include the following modules:

[0100] The association module 502 is used to perform half-sentence association after the user puts the candidate on the screen to the input box, and obtain a half-sentence association candidate; wherein the half-sentence association candidate and the sentence where the candidate is located in the input text of the input box form a complete sentence;

[0101] The display module 504 is used to display the half-sentence association candidates.

[0102] Reference Figure 6 , shows a structural block diagram of an optional embodiment of an input device of the present invention.

[0103] In an optional embodiment of the present invention, the association module 502 includes:

[0104] The first half-sentence association submodule 5022 is used to obtain local association candidates obtained by local association; select target local association candidates from local association candidates displayed on other screens of the local candidate column, wherein the other screens are screens other than the first screen of the local candidate column; and use the target local association candidate as a half-sentence association candidate.

[0105] In an optional embodiment of the present invention, the first half-sentence association submodule 5022 is used to select primary local association candidates from the local association candidates displayed on other screens in the local candidate column, and the primary local association candidates and the sentence in which the candidate is located in the input text of the input box form a complete sentence; from the primary local association candidates, the first N primary local association candidates with the highest candidate scores are selected as target local association candidates.

[0106] In an optional embodiment of the present invention, the device further comprises:

[0107] The matching and statistics module 506 is used to obtain the last code of the input sequence input by the user before the candidate is displayed on the screen; determine whether the candidate on the screen matches the long sentence association candidate; if the candidate on the screen matches the long sentence association candidate, then count the probability that the user has entered the same text as the long sentence association candidate in the input box after the candidate is displayed on the screen;

[0108] The association module 502 is used to execute the step of performing half-sentence association to obtain a half-sentence association candidate if the candidate on the upper screen does not match the long sentence association candidate, or the probability is less than a preset probability.

[0109] In an optional embodiment of the present invention, the association module 502 includes:

[0110] The second half-sentence association submodule 5024 is used to obtain input information; perform half-sentence association according to the input information to obtain half-sentence association candidates.

[0111] In an optional embodiment of the present invention, the display module 504 is used to display the half-sentence association candidates in the cloud candidate column.

[0112] In an optional embodiment of the present invention, the device further comprises:

[0113] A judgment module 508 is used to judge whether the sentence where the candidate is located in the input text of the input box is a complete sentence;

[0114] The association module 502 is used to execute the step of performing half-sentence association to obtain half-sentence association candidates if the sentence where the candidate is located in the input text of the input box is not a complete sentence.

[0115] In summary, in the embodiments of the present invention, after the user uploads the candidate to the input box, half-sentence association can be performed to obtain half-sentence association candidates that can form a complete sentence with the sentence where the candidate is located in the text already input in the input box, and then the half-sentence association candidates are displayed; and then by advancing the timing of association, it is avoided that the user does not have time or is too late to view the association results during the input process, so as to increase the probability of the user viewing and displaying the association results; thereby improving the user input efficiency.

[0116] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0117] Figure 7 1 is a block diagram of an electronic device 700 for input according to an exemplary embodiment. For example, the electronic device 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0118] Reference Figure 7 , the electronic device 700 may include one or more of the following components: a processing component 702 , a memory 704 , a power component 706 , a multimedia component 708 , an audio component 710 , an input / output (I / O) interface 712 , a sensor component 714 , and a communication component 716 .

[0119] The processing component 702 generally controls the overall operation of the electronic device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 702 may include one or more modules to facilitate the interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate the interaction between the multimedia component 708 and the processing component 702.

[0120] The memory 704 is configured to store various types of data to support operations on the electronic device 700. Examples of such data include instructions for any application or method operating on the electronic device 700, contact data, phone book data, messages, pictures, videos, etc. The memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, 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 disk or optical disk.

[0121] The power component 706 provides power to the various components of the electronic device 700. The power component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 700.

[0122] The multimedia component 708 includes a screen that provides an output interface between the electronic device 700 and the 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 input signals from the 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 boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front camera and / or a rear camera. When the electronic device 700 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0123] The audio component 710 is configured to output and / or input audio signals. For example, the audio component 710 includes a microphone (MIC), and when the electronic device 700 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 704 or sent via the communication component 716. In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.

[0124] I / O interface 712 provides an interface between processing component 702 and peripheral interface modules, such as 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.

[0125] The sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for the electronic device 700. For example, the sensor assembly 714 can detect the open / closed state of the electronic device 700, the relative positioning of components, such as the display and keypad of the electronic device 700, and the sensor assembly 714 can also detect the position change of the electronic device 700 or a component of the electronic device 700, the presence or absence of user contact with the electronic device 700, the orientation or acceleration / deceleration of the electronic device 700, and the temperature change of the electronic device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0126] The communication component 716 is configured to facilitate wired or wireless communication between the electronic device 700 and other devices. The electronic device 700 can 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 716 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 716 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0127] In an exemplary embodiment, the electronic device 700 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, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0128] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions, and the instructions can be executed by a processor 720 of an electronic device 700 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0129] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute an input method, the method comprising: after a user puts a candidate on the screen to an input box, performing half-sentence association to obtain a half-sentence association candidate; wherein the half-sentence association candidate and the sentence in which the candidate is located in the input text of the input box form a complete sentence; and displaying the half-sentence association candidate.

[0130] Optionally, the half-sentence association is performed to obtain half-sentence association candidates, including: obtaining local association candidates obtained by local association; selecting target local association candidates from local association candidates displayed on other screens of the local candidate column, wherein the other screens are screens other than the first screen of the local candidate column; and using the target local association candidate as a half-sentence association candidate.

[0131] Optionally, selecting a target local association candidate from local association candidates displayed on other screens of the local candidate column includes: selecting a primary local association candidate from local association candidates displayed on other screens of the local candidate column, wherein the primary local association candidate and the sentence in which the candidate is located in the input text of the input box form a complete sentence; and selecting the top N primary local association candidates with the highest candidate scores from the primary local association candidates as the target local association candidates.

[0132] Optionally, the method also includes: obtaining the last code of the input sequence input by the user before the candidate appears on the screen, displaying a long sentence association candidate; judging whether the candidate on the screen matches the long sentence association candidate; if the candidate on the screen matches the long sentence association candidate, counting the probability that the user has entered the same text as the long sentence association candidate in the input box after historically clicking the candidate; if the candidate on the screen does not match the long sentence association candidate, or the probability is less than a preset probability, executing the step of performing half-sentence association to obtain a half-sentence association candidate.

[0133] Optionally, performing half-sentence association to obtain half-sentence association candidates includes: acquiring input information; performing half-sentence association based on the input information to obtain half-sentence association candidates.

[0134] Optionally, displaying the half-sentence association candidates includes: displaying the half-sentence association candidates in a cloud candidate column.

[0135] Optionally, the method further includes: determining whether the sentence where the candidate is located in the text input into the input box is a complete sentence; if the sentence where the candidate is located in the text input into the input box is not a complete sentence, executing the step of performing half-sentence association to obtain a half-sentence association candidate.

[0136] Figure 8 : is a structural diagram of an electronic device 800 for input according to another exemplary embodiment of the present invention. The electronic device 800 may be a server, which may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 822 (for example, one or more processors) and a memory 832, and one or more storage media 830 (for example, one or more mass storage devices) storing application programs 842 or data 844. Among them, the memory 832 and the storage medium 830 may be temporary storage or permanent storage. The program stored in the storage medium 830 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 822 may be configured to communicate with the storage medium 830 and execute a series of instruction operations in the storage medium 830 on the server.

[0137] The server may also include one or more power supplies 826, one or more wired or wireless network interfaces 850, one or more input and output interfaces 858, one or more keyboards 856, and / or one or more operating systems 841, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0138] In an exemplary embodiment, the server is configured to have one or more central processors 822 execute one or more programs including instructions for performing the following operations: after the user uploads a candidate to an input box, perform half-sentence association to obtain half-sentence association candidates; wherein the half-sentence association candidates and the sentence in which the candidate is located in the input text of the input box form a complete sentence; and display the half-sentence association candidates.

[0139] Optionally, the half-sentence association is performed to obtain half-sentence association candidates, including: obtaining local association candidates obtained by local association; selecting target local association candidates from local association candidates displayed on other screens of the local candidate column, wherein the other screens are screens other than the first screen of the local candidate column; and using the target local association candidate as a half-sentence association candidate.

[0140] Optionally, selecting a target local association candidate from local association candidates displayed on other screens of the local candidate column includes: selecting a primary local association candidate from local association candidates displayed on other screens of the local candidate column, wherein the primary local association candidate and the sentence in which the candidate is located in the input text of the input box form a complete sentence; and selecting the top N primary local association candidates with the highest candidate scores from the primary local association candidates as the target local association candidates.

[0141] Optionally, it also includes instructions for performing the following operations: when obtaining the last code of the input sequence input by the user before the candidate appears on the screen, the long sentence association candidate is displayed; judging whether the candidate on the upper screen matches the long sentence association candidate; if the candidate on the upper screen matches the long sentence association candidate, then counting the probability that the user has entered the same text as the long sentence association candidate in the input box after previously appearing on the screen; if the candidate on the upper screen does not match the long sentence association candidate, or the probability is less than a preset probability, then executing the step of performing half-sentence association to obtain a half-sentence association candidate.

[0142] Optionally, performing half-sentence association to obtain half-sentence association candidates includes: acquiring input information; performing half-sentence association based on the input information to obtain half-sentence association candidates.

[0143] Optionally, displaying the half-sentence association candidates includes: displaying the half-sentence association candidates in a cloud candidate column.

[0144] Optionally, it also includes instructions for performing the following operations: determining whether the sentence where the candidate is located in the text already entered in the input box is a complete sentence; if the sentence where the candidate is located in the text already entered in the input box is not a complete sentence, executing the step of performing half-sentence association to obtain half-sentence association candidates.

[0145] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0146] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0147] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0148] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0149] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0150] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0151] The above is a detailed introduction to an input method, an input device and an electronic device provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. An input method, characterized in that: include: When obtaining the last code of the input sequence input by the user before the candidate on the screen, the long sentence association candidate is displayed; Determine whether the candidate on the upper screen matches the long sentence association candidate; If the candidate on the previous screen matches the long sentence association candidate, then the probability of the user entering the same text as the long sentence association candidate in the input box after previously selecting the candidate is counted; If the candidate on the screen does not match the long sentence association candidate, or the probability is less than a preset probability, after the user puts the candidate on the screen into the input box, a half-sentence association is performed to obtain a half-sentence association candidate; wherein the half-sentence association candidate and the sentence where the candidate is located in the input text of the input box form a complete sentence; The half-sentence association candidates are displayed.

2. The method according to claim 1, characterized in that The performing of half-sentence association to obtain half-sentence association candidates includes: Obtain local association candidates obtained by local association; Selecting a target local association candidate from local association candidates displayed on other screens of the local candidate column, wherein the other screens are screens other than the first screen of the local candidate column; The target local association candidate is used as the half-sentence association candidate.

3. The method according to claim 2, characterized in that The step of selecting a target local association candidate from the local association candidates displayed on other screens of the local candidate column includes: Selecting a primary local association candidate from the local association candidates displayed on other screens of the local candidate column, wherein the primary local association candidate and the sentence in which the candidate is located in the input text of the input box form a complete sentence; From the primary local association candidates, the top N primary local association candidates with the highest candidate scores are selected as target local association candidates.

4. The method according to claim 1, characterized in that: The performing of half-sentence association to obtain half-sentence association candidates includes: Get input information; Perform half-sentence association according to the input information to obtain half-sentence association candidates.

5. The method according to claim 1, characterized in that The displaying of the half-sentence association candidates comprises: The half-sentence association candidates are displayed in the cloud candidate column.

6. The method according to claim 1, characterized in that The method further comprises: Determine whether the sentence where the candidate is located in the input text of the input box is a complete sentence; If the sentence where the candidate is located in the input text of the input box is not a complete sentence, the step of performing half-sentence association to obtain half-sentence association candidates is executed.

7. An input device, characterized in that: include: The matching and statistics module is used to display the long sentence association candidates when obtaining the last code of the input sequence input by the user before the candidate on the screen; Determine whether the candidate on the upper screen matches the long sentence association candidate; if the candidate on the upper screen matches the long sentence association candidate, count the probability that the user has historically entered the same text as the long sentence association candidate in the input box after selecting the candidate; An association module, for performing half-sentence association after the user puts the candidate on the screen into the input box if the candidate on the screen does not match the long sentence association candidate, or the probability is less than a preset probability, to obtain a half-sentence association candidate; wherein the half-sentence association candidate and the sentence where the candidate is located in the input text of the input box form a complete sentence; A display module is used to display the half-sentence association candidates.

8. An electronic device, characterized in that: The system comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations: When obtaining the last code of the input sequence input by the user before the candidate on the screen, the long sentence association candidate is displayed; Determine whether the candidate on the upper screen matches the long sentence association candidate; If the candidate on the previous screen matches the long sentence association candidate, then the probability of the user entering the same text as the long sentence association candidate in the input box after previously selecting the candidate is counted; If the candidate on the screen does not match the long sentence association candidate, or the probability is less than a preset probability, after the user puts the candidate on the screen into the input box, a half-sentence association is performed to obtain a half-sentence association candidate; wherein the half-sentence association candidate and the sentence where the candidate is located in the input text of the input box form a complete sentence; The half-sentence association candidates are displayed.

9. A readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the input method as described in any one of method claims 1-6.

Citation Information

Patent Citations

  • Input method, input device and terminal

    CN102629160A