Input method, device and device for input

By selecting and storing sentences from the user's historical input content, and prompting the content that is not on the screen when the input intention is detected, the problem of low sentence input efficiency in existing input method applications is solved, automatic detection and prompting are realized, and the efficiency is improved Enter efficiency.

CN113703588BActive Publication Date: 2024-10-29BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202010432859.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-20
Publication Date
2024-10-29
Estimated Expiration
2040-05-20

AI Technical Summary

Technical Problem

When using existing input methods to input sentences, users need to input them word by word, resulting in low input efficiency.

Method used

Select sentences that meet the preset conditions from the user's historical input content and store them in the lexicon. When the user's input intention for a sentence in the lexicon is detected, the sentence is used as the target sentence to prompt for content that is not on the screen. as a candidate.

Benefits of technology

There is no need for users to enter sentences word by word, which improves input efficiency and meets users' personalized input habits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113703588B_ABST
    Figure CN113703588B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses an input method, device and device for input. The embodiment of the method includes: selecting sentences that meet preset conditions from the user's historical input content; storing the selected sentences in a first word library; when it is detected that the user has an input intention for any sentence in the first word library, the sentence with the input intention is used as the target sentence, and the unscreened content in the target sentence is used as the first candidate item for prompting. This implementation method improves input efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to an input method, device, and a device for input. Background Art

[0002] With the development of computer technology, the functions of input method applications are becoming more and more abundant. When a user uses an input method application to input content, the application can usually provide the user with candidate words that may be associated with the word input by the user, so as to save the user's input cost and improve input efficiency.

[0003] However, in addition to words, users are usually accustomed to inputting some personalized sentences, such as catchphrases in sentence form, etc. Existing input method applications only support prompting the next candidate word based on the word input by the user. If a sentence needs to be input, the user still needs to input word by word to form a sentence, resulting in low user input efficiency. Summary of the invention

[0004] The embodiments of the present application provide an input method, a device and a device for input to improve input efficiency.

[0005] In a first aspect, an embodiment of the present application provides an input method, the method comprising: selecting sentences that meet preset conditions from the user's historical input content; storing the selected sentences into a first vocabulary library; when it is detected that the user has an input intention to any sentence in the first vocabulary library, taking the sentence with the input intention as the target sentence, and prompting the unscreened content in the target sentence as the first candidate item.

[0006] In a second aspect, an embodiment of the present application provides an input device, comprising: a selection unit, configured to select sentences that meet preset conditions from the user's historical input content; a first storage unit, configured to store the selected sentences into a first vocabulary library; and a first prompt unit, configured to, when detecting that the user has an input intention to any sentence in the first vocabulary library, use the sentence with the input intention as the target sentence and use the non-screen content in the target sentence as a first candidate item for prompting.

[0007] In a third aspect, an embodiment of the present application provides a device for input, 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. The one or more programs include instructions for performing the following operations: selecting sentences that meet preset conditions from the user's historical input content; storing the selected sentences into a first vocabulary library; when it is detected that the user has an input intention for any sentence in the first vocabulary library, using the sentence with the input intention as the target sentence, and prompting the unscreened content in the target sentence as the first candidate item.

[0008] In a fourth aspect, an embodiment of the present application provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect above.

[0009] The input method, device and device for input provided by the embodiment of the present application select sentences that meet preset conditions from the user's historical input content, and then store the selected sentences in the first word library, so that when it is detected that the user has the intention to input any sentence in the first word library, the sentence with the input intention is used as the target sentence, and then the unscreened content in the target sentence is prompted as the first candidate item. Therefore, when a sentence needs to be input, the sentence that the user needs to input can be automatically detected, and the user does not need to input word by word, which improves the input efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0011] Figure 1 is a flow chart of an embodiment of an input method according to the present application;

[0012] Figure 2 is a schematic diagram of the sentence prompting process according to the present application;

[0013] Figure 3 is a flow chart of another embodiment of the input method according to the present application;

[0014] Figure 4 is another schematic diagram of the sentence prompting process according to the present application;

[0015] Figure 5 is a schematic structural diagram of an embodiment of an input device according to the present application;

[0016] Figure 6 is a schematic structural diagram of a device for input according to the present application;

[0017] Figure 7 It is a schematic diagram of the structure of the server in some embodiments of the present application. DETAILED DESCRIPTION

[0018] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0019] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0020] Please refer to Figure 1 , which shows a process 100 of an embodiment of the input method according to the present application. The above input method can be run on various electronic devices, including but not limited to: servers, smart phones, tablet computers, e-book readers, MP3 (Moving Picture Experts Group Audio Layer III) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, car computers, desktop computers, set-top boxes, smart TVs, wearable devices, etc.

[0021] The input method application mentioned in the embodiment of the present application can support multiple input methods. Among them, the input method can be a coding method used to input various symbols into electronic devices such as computers and mobile phones. Users can use the input method application to conveniently input the required characters or strings into electronic devices. It should be noted that in the embodiment of the present application, in addition to supporting common Chinese input methods (such as pinyin input method, Wubi input method, Zhuyin input method, voice input method, handwriting input method, etc.), the input method can also support input methods of other languages ​​(such as English input method, Japanese Hiragana input method, Korean input method, etc.), and no limitation is made on the input method and the language type of the input method.

[0022] The input method in this embodiment may include the following steps:

[0023] Step 101, selecting sentences that meet preset conditions from the user's historical input content.

[0024] In this embodiment, the execution subject of the input method (such as the above-mentioned electronic device) can first obtain the user's historical input content. The historical input content can be the historical content input by the user through the input method application. For example, it can include but is not limited to: words, sentences, symbols, emoticons, etc. The user can use any input method to input the current input information. For example, you can use Pinyin, Wubi, strokes and other coded input methods, you can also use voice input methods, etc., which are not limited here.

[0025] In one scenario, the user's input content can be recorded by the execution subject in real time and stored locally in the form of logs, such as in a data packet of a local input method application. In this case, the execution subject can directly obtain the historical input content locally.

[0026] In another scenario, the user's input content can be recorded in real time and sent to the server. The server can be an input method server that provides support for input method applications. The input method server can be a cloud server or a physical server. The input method server can store a large number of users' historical input content and update the historical input content of each user in real time. At this time, the above-mentioned execution entity can send a data acquisition request with a user tag to the server, so as to obtain the historical input content of the user returned by the server. Among them, the cloud server is a simple, efficient, safe and reliable computing service with elastically scalable processing power, and its management method is simpler and more efficient than that of a physical server.

[0027] In this embodiment, after obtaining the historical input content, the above-mentioned execution subject can analyze the historical input content and select sentences that meet the preset conditions from the historical input content. The preset conditions here can be preset as needed. For example, it can be set to sentences with a frequency of occurrence greater than a preset frequency (such as 4 times), so that when the user enters the same sentence multiple times, the sentence can be stored in the vocabulary, so that it can be displayed as a candidate item later.

[0028] In practice, sentences in historical input content can be identified by identifying punctuation marks, and then sentences in historical input content can be selected. In the process of identifying sentences, some punctuation marks can be first used as designated punctuation marks, such as commas "," and periods ".". Then, for each content in the historical input content, the designated punctuation marks in the content can be identified in the order of characters from left to right (that is, the order of characters input from first to last). And based on the identified designated punctuation marks, the sentences in the content are determined.

[0029] Specifically, when the first designated punctuation mark is identified, the content before the punctuation mark and the punctuation mark can be combined into a sentence. For example, a certain content is "If you have any questions, please feel free to contact us." After the comma "," in the sentence is identified, "If you have any questions," can be considered as a sentence.

[0030] When punctuation marks are continuously recognized, the content after the last specified punctuation mark and before the current specified punctuation mark and the current punctuation mark can be combined into a sentence. Continuing with the above example, after the period "." is recognized, the content "Welcome to contact anytime" after the last specified punctuation mark and before the current specified punctuation mark and the period "." can be combined into a sentence. The sentence is "Welcome to contact anytime."

[0031] It should be noted that some users are not accustomed to entering punctuation marks at the end of the last sentence, such as only entering "If you have any questions, please feel free to contact me." Therefore, after the specified punctuation mark is identified, if there is still a character string after the specified punctuation mark, but the specified punctuation mark does not exist in the character string after the specified punctuation mark, the content after the identified specified punctuation mark can be directly regarded as a sentence, such as "Please feel free to contact me."

[0032] It should also be noted that since some users are accustomed to inputting spaces or other characters between sentences to replace punctuation marks, such as "If you have any questions, please feel free to contact us", the sentences in each content can also be determined by identifying spaces or other characters.

[0033] In addition, in scenarios such as instant messaging (such as chatting), the user can also identify sentences through user operations. For example, if a user inputs a certain content and sends it to the other end user, the content can be considered as a sentence. In addition, the number of words in the content can also be limited. For example, if a user inputs a certain content and sends it to the other end user, if the number of words in the content is greater than a preset number of words, the content can be considered as a sentence. The above user operations are not limited to sending operations, but can also be confirmation operations, etc., which will not be described in detail in this embodiment.

[0034] Step 102, storing the selected sentence into a first vocabulary.

[0035] In this embodiment, the execution subject can store the selected sentences into the first word library. Since different users have different input habits, the first word library can be a personalized user unigram word library, so that the sentences that the user is accustomed to input can be recorded. In practice, each sentence recorded in the first word library can contain punctuation marks, so that the user does not need to input punctuation marks, which helps to further improve input efficiency.

[0036] It should be noted that the first word library can be stored locally in the execution subject as a local word library of the input method application, or can be stored in a server. This embodiment does not limit this.

[0037] Step 103, when it is detected that the user has an input intention for any sentence in the first vocabulary, the sentence with the input intention is used as the target sentence, and the unscreened content in the target sentence is used as the first candidate item for prompting.

[0038] In this embodiment, the execution subject can obtain the content input by the user in various input methods in real time, such as a coded string, voice, etc., and can detect in real time whether the user has the intention to input any sentence in the first vocabulary based on the content input by the user. When it is detected that the user has the intention to input any sentence in the first vocabulary, the execution subject can use the sentence that the user has the intention to input as the target sentence, and use the unscreened content in the target sentence as a candidate (which can be called the first candidate) for prompting.

[0039] Specifically, the execution subject can detect whether the user has the intention to input the sentence by matching the content input by the user with a sentence in the first word library. For example, if the encoded string input by the user can correspond to a plurality of consecutive characters (the number of characters is not limited) at the beginning of a sentence in the first word library, it can be considered that the user has the intention to input the sentence.

[0040] As an example, Figure 2 A schematic diagram of the sentence prompting process is shown in FIG. Figure 2 As shown in the figure, the user first inputs the pinyin string "zhege" (or "zg", "zhg", etc.), and the candidate word "this" may be presented. After the user selects the candidate word "this", he continues to input the pinyin character "k". At this time, the content "this" and "k" input by the user match the first three characters of the sentence "this looks simple," recorded in the first word library. Therefore, it can be considered that the user has the input intention for the sentence "this looks simple,".

[0041] Afterwards, the content "It looks simple" that has not yet appeared on the screen in the sentence "This looks simple" can be prompted as a candidate. In this way, during the user input process, the previous sentence that has been input can be used to associate the content of the next sentence. The associated content meets the user's personalized input habits, thereby improving input efficiency.

[0042] In this embodiment, after the unscreened content in the target sentence is prompted as the first candidate item, if it is detected that the user performs a screen operation on the first candidate item, the target sentence can be screened, thereby improving the user's input efficiency.

[0043] In some optional implementations of the present embodiment, the above-mentioned execution entity can also splice the content that has been displayed on the screen and the content that has not been displayed on the screen, and display them separately. Continuing with the above example, the target sentence is "This looks simple," and after the user displays the word "this" on the screen, he continues to enter the pinyin character "k." At this time, "this" and "looks simple," can be spliced ​​into the target sentence "This looks simple," and the spliced ​​sentence can be displayed in the candidate box. Among them, "this" and "looks simple," in the spliced ​​sentence can be displayed in different styles. The differences between the two different styles can be reflected in aspects such as color, font, and font size. In this way, the user can be given a complete sentence prediction experience.

[0044] When the user clicks "This looks simple," in the candidate box, since the input box already contains the content "This" that has been put on the screen, only "Looks simple," can be put on the screen, so that the target sentence "This looks simple," is presented in the input box. In addition, when the user clicks "This looks simple," the content "This" that has been put on the screen in the input box can also be directly replaced with "This looks simple," so that the target sentence "This looks simple," is presented in the input box.

[0045] The input method provided in the embodiment of the present application selects sentences that meet preset conditions from the user's historical input content, and then stores the selected sentences in the first word library, so that when it is detected that the user has the intention to input any sentence in the first word library, the sentence with the input intention is used as the target sentence, and then the unscreened content in the target sentence is used as the first candidate item for prompting. Therefore, when a sentence needs to be input, the sentence that the user needs to input can be automatically detected, and the user does not need to input word by word, thereby improving input efficiency.

[0046] Further references Figure 3 , which shows a process 200 of another embodiment of an input method. The process 300 of the input method includes the following steps:

[0047] Step 301: Select sentences that meet preset conditions from the user's historical input content.

[0048] Step 302: store the selected sentence into the first vocabulary.

[0049] Steps 301 to 302 in this embodiment can be found in Figure 1 Steps 101 to 102 of the illustrated embodiment will not be described in detail here.

[0050] Step 303, determining the contextual relationship between the selected sentences, taking every two sentences having the contextual relationship as a bigram, and storing each bigram in the second vocabulary.

[0051] In this embodiment, the execution subject of the input method can analyze the historical input content to determine the contextual relationship of the sentence. In practice, the sentences before and after some punctuation marks (such as commas ",") are sentences with contextual relationships. For example, a user's input content is "This looks simple, but it is complicated to implement.". Then the sentence "This looks simple," before the comma has a contextual relationship with the sentence "It is complicated to implement." after the comma. The sentence "It is complicated to implement." is the following sentence of the sentence "This looks simple,".

[0052] In addition, multiple consecutive pieces of content entered by the user in batches can also be considered to have a contextual relationship. For example, the user first enters "get off work" and sends it to the other end user. Then he enters "where should we go to eat" and continues to send it to the other end user. At this time, it can be considered that the sentence "get off work" and the sentence "where should we go to eat" have a contextual relationship.

[0053] In the present embodiment, after determining the contextual relationship between the selected sentences, every two sentences with the contextual relationship can be taken as a bigram, and each bigram is stored in the second vocabulary. The second vocabulary can be a bigram. The structure of the bigram can be implemented in the form of a word search tree or a multi-level index. In practice, if sentence A has a contextual relationship with sentence B, and sentence B is the following sentence of sentence A, it can be expressed as A->B.

[0054] Optionally, since different users have different input habits, the second word library may be a personalized user bigram word library, so that the sentences that the user is accustomed to input may be recorded.

[0055] Step 304: when it is detected that the user intends to input any sentence in the first vocabulary, the sentence with the input intention is used as the target sentence, and the unscreened content in the target sentence is used as the first candidate item for prompting.

[0056] Step 304 in this embodiment can be seen in Figure 1 Step 103 of the illustrated embodiment will not be described in detail here.

[0057] Step 305: After detecting that the user performs a screen-up operation on the first candidate item, a following sentence of the target sentence is selected from the second vocabulary, and the following sentence is prompted as a second candidate item.

[0058] In this embodiment, since the second word library records sentences with contextual relationships, when it is detected that the user performs a screen-up operation on the first candidate item, not only can the first candidate item be screened, but also the following sentence of the target sentence can be selected from the second word library and prompted as a candidate item (which can be called the second candidate item). In this way, when a certain sentence is screened or input, the following sentence can be automatically associated and prompted, that is, the content of the next sentence can be associated with the previous sentence that has been input, thereby improving the input efficiency. At the same time, the associated following sentence is obtained by statistics from the user's historical input, so that the user's personalized input habits are still met.

[0059] It should be noted that if the second vocabulary stores at least two subsequent sentences of the target sentence, some of the subsequent sentences may be selected for prompting, or all subsequent sentences may be prompted, which is not limited in this embodiment.

[0060] In some optional implementations of this embodiment, the execution subject may also count the frequency of each sentence in the first word library in the historical input content, and store the frequency of each sentence in the first word library. In addition, the frequency of each bigram in the historical input content may be counted, and the frequency of each bigram may be stored in the second word library.

[0061] Based on this, in some optional implementations of this embodiment, the execution subject may select the following sentence of the target sentence from the second vocabulary through the following steps:

[0062] The first step is to query the frequency of the target sentence from the first vocabulary.

[0063] In the second step, the second vocabulary is searched for candidate bigrams with the target sentence as the preceding sentence, and the frequency of each candidate bigram is read.

[0064] In the third step, another sentence other than the target sentence in each candidate bigram is taken as a candidate sentence, and the conditional probability of each candidate sentence is determined based on the frequency of the target sentence and the frequency of each candidate bigram.

[0065] Among them, conditional probability refers to the probability of an event occurring under the condition that another event has already occurred. Therefore, the conditional probability of each candidate sentence is the probability that the candidate sentence will be displayed on the screen as the following sentence when the target sentence is displayed on the screen as the previous sentence. For example, the target sentence is represented as A, and the following sentence of the target sentence is represented as B, then the conditional probability can be expressed as P(B|A), P(B|A) = P(AB) / P(A). Among them, P(AB) is the probability of the tuple consisting of A and B. P(A) is the probability of A. P(AB) can be read from the second vocabulary, and P(A) can be read from the first vocabulary.

[0066] In the fourth step, based on the conditional probabilities of the candidate sentences, the subsequent sentence of the target sentence is selected from the candidate sentences. In practice, the candidate sentences can be selected in descending order of conditional probability by a preset number (such as 1 or 2, etc.) as the subsequent sentence. Alternatively, the candidate sentence with the highest conditional probability can be directly selected as the subsequent sentence.

[0067] By calculating the conditional probabilities of the candidate probabilities to select the subsequent sentence, the subsequent sentence prompted can better conform to the user's input habit.

[0068] In some alternative implementation manners of this embodiment, after the subsequent sentence is prompted as the second candidate, if the execution entity detects that the user performs a screen-up operation on the second candidate, the second candidate can be screened up, so that the user does not need to input the subsequent sentence, further improving the user's input efficiency.

[0069] In some alternative implementation manners of this embodiment, after the subsequent sentence is prompted as the second candidate, if it is not detected that the user performs a screen-up operation on the second candidate (such as performing a screen-up operation on other candidates, or directly inputting other content), it can be detected whether the user has an input intention for the subsequent sentence. When it is detected that the user has an input intention for the subsequent sentence, the subsequent sentence can be prompted as the second candidate. For the detection method of the input intention here, reference can be made to Figure 1 the detection method of the input intention for any sentence in the first word library in step 103 of the corresponding embodiment.

[0070] In some alternative implementation manners of this embodiment, the execution entity can detect whether the user has an input intention for the subsequent sentence according to the following steps: First, the encoded string of the user is obtained in real time. If the encoded string corresponds to at least one character at the beginning of the subsequent sentence, it is determined that the user has an input intention for the subsequent sentence.

[0071] As an example, Figure 4 shows another schematic diagram of the sentence prompting process. As Figure 4 shown, after the sentence "This seems simple," is screened up, the user inputs the encoded string "sh". The encoded string "sh" can correspond to the first character "实" in the subsequent sentence "It is very complicated to implement.", that is, the first two characters of the encoding of the first character "实" are also "sh". Therefore, it can be determined that the user has an input intention for the subsequent sentence "It is very complicated to implement.".

[0072] The method provided by the above-mentioned embodiment of the present application automatically searches for the following sentence of a sentence after the user displays a sentence on the screen, so that the user does not need to enter the subsequent sentence, thereby further improving the user's input efficiency. The prompted following sentence is obtained through contextual relationship analysis based on the user's historical input content, and thus conforms to the user's input habits.

[0073] Further references Figure 5 As an implementation of the methods shown in the above figures, the present application provides an embodiment of an input device, and the device embodiment is Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0074] like Figure 5 As shown, the input device 500 described in this embodiment includes: a selection unit 501, configured to select sentences that meet preset conditions from the user's historical input content; a first storage unit 502, configured to store the selected sentences into a first vocabulary library; a first prompt unit 503, configured to, when detecting that the user has an input intention to any sentence in the above-mentioned first vocabulary library, use the sentence with the input intention as the target sentence, and use the non-screen content in the above-mentioned target sentence as the first candidate item for prompting.

[0075] In some optional implementations of the present embodiment, the device further includes: a second storage unit configured to determine the contextual relationship between the selected sentences, treat every two sentences having the contextual relationship as a bigram, and store each bigram into a second vocabulary; a second prompt unit configured to, after detecting that the user performs an on-screen operation on the first candidate item, select the following sentence of the target sentence from the second vocabulary, and prompt the following sentence as the second candidate item.

[0076] In some optional implementations of this embodiment, the above-mentioned device also includes: a first statistical unit, configured to count the frequency of each sentence in the above-mentioned first vocabulary appearing in the above-mentioned historical input content, and store the frequency of each sentence in the above-mentioned first vocabulary; a second statistical unit, configured to count the frequency of each bigram appearing in the above-mentioned historical input content, and store the frequency of each bigram in the above-mentioned second vocabulary.

[0077] In some optional implementations of the present embodiment, the second prompt unit is further configured to: query the frequency of the target sentence from the first vocabulary; query candidate bigrams with the target sentence as the previous sentence from the second vocabulary, and read the frequency of each candidate bigram; take another sentence other than the target sentence in each candidate bigram as a candidate sentence, and determine the conditional probability of each candidate sentence based on the frequency of the target sentence and the frequency of each candidate bigram; and select the following sentence of the target sentence from the candidate sentences based on the conditional probability of each candidate sentence.

[0078] In some optional implementations of the present embodiment, the above-mentioned device also includes: a detection unit, which is configured to detect whether the user has the input intention for the above-mentioned following sentence if it is not detected that the user performs an on-screen operation on the above-mentioned second candidate item; when it is detected that the user has the input intention for the above-mentioned following sentence, the above-mentioned following sentence is prompted as the second candidate item.

[0079] In some optional implementations of the present embodiment, the detection unit is further configured to obtain the encoded string of the user in real time; if the encoded string corresponds to at least one character at the beginning of the following sentence, it is determined that the user has the intention to input the following sentence.

[0080] In some optional implementations of this embodiment, each sentence recorded in the first vocabulary library contains punctuation marks.

[0081] The device provided by the above embodiment of the present application selects sentences that meet the preset conditions from the user's historical input content, and then stores the selected sentences in the first word library, so that when it is detected that the user has the intention to input any sentence in the above first word library, the sentence with the input intention is used as the target sentence, and then the unscreened content in the above target sentence is prompted as the first candidate item. Therefore, when a sentence needs to be input, the sentence that the user needs to input can be automatically detected, and the user does not need to input word by word, which improves the input efficiency.

[0082] Figure 6 6 is a block diagram of a device 600 for input according to an exemplary embodiment, and the device 600 may be a smart terminal or a server. For example, the device 600 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.

[0083] Reference Figure 6, the device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .

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

[0085] The memory 604 is configured to store various types of data to support operations on the device 600. Examples of such data include instructions for any application or method operating on the device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 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.

[0086] The power supply component 606 provides power to the various components of the device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 600.

[0087] The multimedia component 608 includes a screen that provides an output interface between the above-mentioned device 600 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 above-mentioned touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the above-mentioned touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.

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

[0089] I / O interface 612 provides an interface between processing component 602 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.

[0090] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the device 600. For example, the sensor assembly 614 can detect the open / closed state of the device 600, the relative positioning of the components, such as the display and keypad of the device 600, the sensor assembly 614 can also detect the position change of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, the orientation or acceleration / deceleration of the device 600 and the temperature change of the device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 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 614 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

[0091] The communication component 616 is configured to facilitate wired or wireless communication between the device 600 and other devices. The device 600 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 616 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 616 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.

[0092] In an exemplary embodiment, the apparatus 600 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 method.

[0093] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of the device 600 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.

[0094] Figure 7 7 is a schematic diagram of the structure of the server in some embodiments of the present application. The server 700 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 722 (for example, one or more processors) and a memory 732, and one or more storage media 730 (for example, one or more mass storage devices) storing application programs 742 or data 744. Among them, the memory 732 and the storage medium 730 can be temporary storage or permanent storage. The program stored in the storage medium 730 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 722 can be configured to communicate with the storage medium 730 and execute a series of instruction operations in the storage medium 730 on the server 700.

[0095] The server 700 may also include one or more power supplies 726, one or more wired or wireless network interfaces 750, one or more input and output interfaces 758, one or more keyboards 756, and / or one or more operating systems 741, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0096] A non-temporary computer-readable storage medium, when the instructions in the above storage medium are executed by the processor of a device (smart terminal or server), the device is able to execute an input method, the above method comprising: selecting sentences that meet preset conditions from the user's historical input content; storing the selected sentences into a first vocabulary library; when it is detected that the user has an input intention for any sentence in the first vocabulary library, taking the sentence with the input intention as the target sentence, and prompting the unscreened content in the target sentence as the first candidate item.

[0097] Optionally, the device is configured to execute the one or more programs including instructions for performing the following operations by one or more processors: determining the contextual relationship between the selected sentences, treating each two sentences having the contextual relationship as a bigram, and storing each bigram into a second vocabulary library; and, after detecting that the user performs an on-screen operation on the first candidate item, selecting the following sentence of the target sentence from the second vocabulary library, and prompting the following sentence as the second candidate item.

[0098] Optionally, the device is configured to execute the one or more programs including instructions for performing the following operations by one or more processors: counting the frequency of each sentence in the first vocabulary library appearing in the historical input content, and storing the frequency of each sentence in the first vocabulary library; counting the frequency of each bigram appearing in the historical input content, and storing the frequency of each bigram in the second vocabulary library.

[0099] Optionally, the selecting the following sentence of the target sentence from the second vocabulary includes: querying the frequency of the target sentence from the first vocabulary; querying candidate bigrams with the target sentence as the previous sentence from the second vocabulary, and reading the frequency of each candidate bigram; taking another sentence other than the target sentence in each candidate bigram as a candidate sentence, and determining the conditional probability of each candidate sentence based on the frequency of the target sentence and the frequency of each candidate bigram; and selecting the following sentence of the target sentence from the candidate sentences based on the conditional probability of each candidate sentence.

[0100] Optionally, the device is configured to execute the one or more programs including instructions for performing the following operations by one or more processors: if it is not detected that the user performs an on-screen operation on the second candidate item, detecting whether the user has an input intention for the following sentence; when it is detected that the user has an input intention for the following sentence, prompting the following sentence as the second candidate item.

[0101] Optionally, detecting whether the user has the intention to input the following sentence includes: acquiring the user's encoded string in real time; if the encoded string corresponds to at least one character at the beginning of the following sentence, determining that the user has the intention to input the following sentence.

[0102] Optionally, each sentence recorded in the first vocabulary library contains punctuation marks.

[0103] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the application disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0104] It should be understood that the present application is not limited to the precise structures that have been 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 present application is limited only by the appended claims.

[0105] The above is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

[0106] The above is a detailed introduction to an input method, a device and a device for input provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for a person skilled in the art, according to the idea of ​​the present application, 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 application.

Claims

1. An input method, characterized in that: The method comprises: Select sentences that meet preset conditions from the user's historical input content; Storing the selected sentence in a first vocabulary; Determine the contextual relationship between the selected sentences, take every two sentences with the contextual relationship as a bigram, and store each bigram in a second vocabulary; When it is detected that the user has an input intention for any sentence in the first vocabulary, the sentence with the input intention is used as a target sentence, and the unscreened content in the target sentence is used as a first candidate item for prompting, which includes: detecting whether the user has an input intention for the sentence by matching the content input by the user with the sentences in the first vocabulary; After detecting that the user performs a screen-up operation on the first candidate item, selecting a following sentence of the target sentence from the second word library, and prompting the following sentence as a second candidate item; If the user is not detected to perform the on-screen operation on the second candidate item, it is detected whether the user has the intention to input the following sentence; when it is detected that the user has the intention to input the following sentence, the following sentence is prompted as the second candidate item, including: obtaining the user's encoded string in real time; if the encoded string corresponds to at least one character at the beginning of the following sentence, it is determined that the user has the intention to input the following sentence.

2. The method according to claim 1, characterized in that The method further comprises: Counting the frequency of each sentence in the first word library appearing in the historical input content, and storing the frequency of each sentence in the first word library; The frequency of each bigram in the historical input content is counted, and the frequency of each bigram is stored in the second word library.

3. The method according to claim 2, characterized in that The step of selecting the following sentence of the target sentence from the second vocabulary library includes: Querying the frequency of the target sentence from the first vocabulary; From the second vocabulary, query candidate bigrams with the target sentence as the preceding sentence, and read the frequency of each candidate bigram; Taking another sentence other than the target sentence in each candidate bigram as a candidate sentence, and determining the conditional probability of each candidate sentence based on the frequency of the target sentence and the frequency of each candidate bigram; Based on the conditional probability of each candidate sentence, the following sentence of the target sentence is selected from the candidate sentences.

4. The method according to claim 1, characterized in that: Each sentence recorded in the first word library contains punctuation marks.

5. An input device, characterized in that: The device comprises: A selection unit, configured to select a sentence satisfying a preset condition from the historical input content of the user; A first storage unit is configured to store the selected sentence into a first vocabulary; a second storage unit configured to determine a contextual relationship between the selected sentences, treat each two sentences having the contextual relationship as a bigram, and store each bigram in a second vocabulary; The first prompting unit is configured to, when detecting that the user has an input intention for any sentence in the first vocabulary, use the sentence with the input intention as a target sentence and use the unscreened content in the target sentence as a first candidate item for prompting, including: detecting whether the user has an input intention for the sentence by matching the content input by the user with the sentences in the first vocabulary; A second prompting unit is configured to select a following sentence of the target sentence from the second word library after detecting that the user performs a screen-up operation on the first candidate item, and prompt the following sentence as a second candidate item; The detection unit is configured to detect whether the user has the intention to input the following sentence if the user is not detected to perform the on-screen operation on the second candidate item; when it is detected that the user has the intention to input the following sentence, the following sentence is prompted as the second candidate item. The detection unit is further configured to: obtain the user's encoded string in real time; if the encoded string corresponds to at least one character at the beginning of the following sentence, determine that the user has the intention to input the following sentence.

6. The device according to claim 5, characterized in that The device also includes: A first statistical unit is configured to count the frequency of each sentence in the first vocabulary appearing in the historical input content, and store the frequency of each sentence in the first vocabulary; The second statistical unit is configured to count the frequency of each bigram appearing in the historical input content, and store the frequency of each bigram in the second vocabulary.

7. The device according to claim 5, characterized in that The second prompting unit is further configured to: Querying the frequency of the target sentence from the first vocabulary; From the second vocabulary, query candidate bigrams with the target sentence as the preceding sentence, and read the frequency of each candidate bigram; Taking another sentence other than the target sentence in each candidate bigram as a candidate sentence, and determining the conditional probability of each candidate sentence based on the frequency of the target sentence and the frequency of each candidate bigram; Based on the conditional probability of each candidate sentence, the following sentence of the target sentence is selected from the candidate sentences.

8. The device according to claim 5, characterized in that Each sentence recorded in the first word library contains punctuation marks.

9. A device for input, 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: Select sentences that meet preset conditions from the user's historical input content; Storing the selected sentence in a first vocabulary; Determine the contextual relationship between the selected sentences, take every two sentences with the contextual relationship as a bigram, and store each bigram in a second vocabulary; When it is detected that the user has an input intention for any sentence in the first vocabulary, the sentence with the input intention is used as a target sentence, and the unscreened content in the target sentence is used as a first candidate item for prompting, which includes: detecting whether the user has an input intention for the sentence by matching the content input by the user with the sentences in the first vocabulary; After detecting that the user performs a screen-up operation on the first candidate item, selecting a following sentence of the target sentence from the second word library, and prompting the following sentence as a second candidate item; If the user is not detected to perform the on-screen operation on the second candidate item, it is detected whether the user has the intention to input the following sentence; when it is detected that the user has the intention to input the following sentence, the following sentence is prompted as the second candidate item, including: obtaining the user's encoded string in real time; if the encoded string corresponds to at least one character at the beginning of the following sentence, it is determined that the user has the intention to input the following sentence.

10. The device according to claim 9, characterized in that The device is configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations: Counting the frequency of each sentence in the first word library appearing in the historical input content, and storing the frequency of each sentence in the first word library; The frequency of each bigram in the historical input content is counted, and the frequency of each bigram is stored in the second word library.

11. The device according to claim 10, characterized in that The step of selecting the following sentence of the target sentence from the second vocabulary library includes: Querying the frequency of the target sentence from the first vocabulary; From the second vocabulary, query candidate bigrams with the target sentence as the preceding sentence, and read the frequency of each candidate bigram; Taking another sentence other than the target sentence in each candidate bigram as a candidate sentence, and determining the conditional probability of each candidate sentence based on the frequency of the target sentence and the frequency of each candidate bigram; Based on the conditional probability of each candidate sentence, the following sentence of the target sentence is selected from the candidate sentences.

12. The device according to claim 9, characterized in that Each sentence recorded in the first word library contains punctuation marks.

13. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Phase level forecast inputting method based on personal corpus

    CN101833547A

  • Method and device used for establishing user binary relation bases

    CN103064967A

  • Systems and methods regarding keyword extraction

    CN103201718A

  • Method and equipment for providing input candidate vocabulary entries based on local word bank

    CN103984688A

  • Method and device for providing input candidate items

    CN106527752A