A method and device for prompting an entry and a device for prompting an entry

By searching for and storing abbreviations of target words with a preset length, the method and device enhance vocabulary diversity in input method applications, allowing for the prompt of both full names and abbreviations, thus improving user experience.

CN113534972BActive Publication Date: 2025-01-03BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010292430.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-04-14
Publication Date
2025-01-03
Estimated Expiration
2040-06-26

AI Technical Summary

Technical Problem

Existing input method applications lack the ability to store abbreviations of proper nouns due to their low frequency of use, resulting in a limited vocabulary diversity and insufficient entry options.

Method used

A method and device that search for target words with a preset length, find their abbreviations from non-included words, and establish a correspondence between them, allowing for the storage and prompt of both target words and their abbreviations, thereby enhancing the vocabulary's diversity.

Benefits of technology

Enables the storage of abbreviations of proper nouns, improving vocabulary diversity and facilitating the prompt of both full names and abbreviations during input, enhancing user experience and information richness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113534972B_ABST
    Figure CN113534972B_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, and device for suggesting terms. An embodiment of the method includes: searching for a target word with a length greater than or equal to a preset value from a dictionary; searching for abbreviations of the target word from words not previously included in the dictionary; storing each abbreviation in the dictionary and establishing a correspondence between each abbreviation and the target word; when a user's input word is detected to be any target word or any abbreviation in the dictionary, searching for a word in the dictionary that corresponds to the input word, and suggesting the word that corresponds to the input word. This implementation improves the diversity of terms in the dictionary.
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 specifically to a method and device for prompting an entry, and a device for prompting an entry. Background Art

[0002] With the development of computer technology, users have higher and higher requirements for the use of input method applications, and users usually hope that the vocabulary of input method applications can cover more words. However, due to the limitation of storage space, it is usually impossible to store all words in the vocabulary.

[0003] In the existing method, usually only frequently used words (such as words frequently used in daily life) and some proper nouns (such as Beijing Institute of Technology, Harbin Institute of Technology, etc.) are stored in the vocabulary. However, since proper nouns are usually long, users are more accustomed to using their abbreviations, such as Beijing Institute of Technology, Harbin Institute of Technology, etc. However, since the frequency of use of these abbreviations usually cannot reach the frequency of use of daily language, and these words are not proper nouns, it is usually difficult to store these words in the vocabulary, resulting in a lack of words of this form in the vocabulary of the input method application, and the types of entries in the vocabulary are not rich enough. Summary of the invention

[0004] The embodiments of the present application provide a method and device for prompting a term, and a device for prompting a term, so as to store abbreviations in a vocabulary, thereby improving the diversity of terms in the vocabulary.

[0005] In a first aspect, an embodiment of the present application provides a method for entry prompting, the method comprising: searching for a target word whose length is greater than or equal to a preset value from a vocabulary; searching for an abbreviation of the target word from words that have not been selected into the vocabulary; storing each abbreviation into the vocabulary, and establishing a correspondence between each abbreviation and the target word; when it is detected that the user's input word is any target word or any abbreviation in the vocabulary, searching for a word that has a corresponding relationship with the input word from the vocabulary, and prompting the word that has a corresponding relationship with the input word.

[0006] In a second aspect, an embodiment of the present application provides an entry prompt device, which includes: a first search unit, configured to search for a target word whose length is greater than or equal to a preset value from a vocabulary; a second search unit, configured to search for an abbreviation of the target word from words that have not been selected into the vocabulary; an establishment unit, configured to store each abbreviation into the vocabulary, and establish a correspondence between each abbreviation and the target word; and a prompt unit, configured to search for a word that has a corresponding relationship with the input word from the vocabulary when it is detected that the user's input word is any target word or any abbreviation in the vocabulary, and to prompt the word that has a corresponding relationship with the input word.

[0007] In a third aspect, an embodiment of the present application provides a device for prompting entries, 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: searching for a target word whose length is greater than or equal to a preset value from a vocabulary; searching for an abbreviation of the target word from words that have not been selected into the vocabulary; storing each abbreviation in the vocabulary, and establishing a correspondence between each abbreviation and the target word; when it is detected that the user's input word is any target word or any abbreviation in the vocabulary, searching for a word that has a corresponding relationship with the input word from the vocabulary, and prompting the word that has a corresponding relationship with the input word.

[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 entry prompt method, device and device for prompting an entry provided by the embodiment of the present application are to search for a target word whose length is greater than or equal to a preset value from the word library, and then search for the abbreviation of the target word from the words that have not been selected in the word library, and then store each abbreviation in the word library, establish a corresponding relationship between each abbreviation and the target word, so that when it is detected that the user's input word is any target word or any abbreviation in the word library, the word with a corresponding relationship with the input word is searched from the word library, and the word is prompted. Thus, the abbreviation of the target word (such as the full name of a proper noun) with a longer length in the word library can be stored in the word library, which improves the diversity of the words in the word library. At the same time, when the user enters a target word, the abbreviation of the word can be prompted, and when the user enters an abbreviation, the target word of the word can also be prompted, which facilitates the user to enter and understand the full name and abbreviation of the word, and improves the richness of information display during the input process. 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 a method for prompting a term according to the present application;

[0012] Figure 2 is a flow chart of another embodiment of the entry prompt method according to the present application;

[0013] Figure 3 is a structural schematic diagram of an embodiment of a term prompt device according to the present application;

[0014] Figure 4 is a schematic diagram of the structure of a device for prompting a term according to the present application;

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

[0016] 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.

[0017] 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.

[0018] Please refer to Figure 1 , which shows a process 100 of an embodiment of the entry prompt method according to the present application. The above entry prompt 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.

[0019] The electronic device may be installed with various types of client applications, such as input method applications, web browser applications, instant messaging tools, shopping applications, search applications, email clients, social platform software, etc. Content can be input through the input method applications.

[0020] 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.

[0021] The entry prompt method in this embodiment may include the following steps:

[0022] Step 101, searching a word library for a target word whose length is greater than or equal to a preset value.

[0023] In this embodiment, the execution subject of the entry prompt method (such as the above-mentioned electronic device) may be installed with an input method application. The above-mentioned input method application may be configured with a word library. The above-mentioned word library may be various word libraries set in the input method application, such as a system word library, a personalized word library, etc. When the input method application is installed for the first time, the word library can be sent to the input method application through the server.

[0024] In practice, the words in the vocabulary may include frequently used words (such as words frequently used in daily life) and some proper nouns (such as "Beijing Institute of Technology", "Harbin Institute of Technology", etc.). The proper nouns in the vocabulary are usually full names.

[0025] In this embodiment, the execution subject can search for words whose length is greater than or equal to a preset value (such as words whose length is greater than or equal to 5) from the word library, and use the searched words as target words. For example, "Beijing Institute of Technology", "Harbin Institute of Technology" and so on in the above examples. In practice, the words whose length is greater than or equal to the preset value in the word library are usually some proper nouns. Therefore, the target words can include proper nouns.

[0026] Step 102, searching for the abbreviation of the target word from words not included in the word library.

[0027] In this embodiment, since the words in the word library usually include frequently used words and some proper nouns, words with low usage frequency and not belonging to proper nouns (such as abbreviations of proper nouns, etc.) are usually not selected in the word library. The above-mentioned execution subject can search for abbreviations of the target word from words that are not selected in the word library.

[0028] It should be noted that, for a certain target word, the target word may have an abbreviation or may not have an abbreviation, and this embodiment of the present application does not limit this.

[0029] In practice, the abbreviation of the target word can be found in a variety of ways. As an example, the abbreviation of the target word can be found by querying a dictionary. In practice, a dictionary can contain a large number of words. When a certain word has an abbreviation, the dictionary can also contain the abbreviation corresponding to the word, and the corresponding relationship between the word and its abbreviation. The above-mentioned execution subject can query each target word from the dictionary, and determine whether each target word has a corresponding abbreviation through the dictionary.

[0030] In some optional implementations of this embodiment, the execution subject may search for the abbreviation of the target word through the following steps:

[0031] First step, aggregate the found target words into a target word set.

[0032] Second step, take each word not selected into the above thesaurus as a candidate word, and search for target words that partially match the candidate word from the above target word set.

[0033] Here, a target word partially matching a candidate word can mean that the target word contains each character of the candidate word, and the relative order of each character of the candidate word in the target word is the same as the relative order in the candidate word. Among them, the relative order refers to the order of a certain number of elements (such as each character of the candidate word) in the whole (such as the target word) without considering other elements.

[0034] For example, the target word is "Beijing Institute of Technology", and the candidate word is "BIT". Since the target word "Beijing Institute of Technology" contains each character in the candidate word (which are "北", "理", "工" respectively), and the relative order of each character in the candidate word in the target word "Beijing Institute of Technology" is "北", "理", "工" in sequence, which is the same as the relative order of each character in the candidate word "BIT". Thus, it can be considered that the target word "Beijing Institute of Technology" partially matches the candidate word "BIT".

[0035] Third step, if found, take the above candidate word as the abbreviation of the target word that partially matches the candidate word.

[0036] As an example, the target word is "Beijing Institute of Technology", and the candidate word is "BIT". The target word and the candidate word partially match. At this time, the candidate word "BIT" can be taken as the abbreviation of the target word "Beijing Institute of Technology".

[0037] In some alternative implementation manners of this embodiment, after finding a target word that partially matches a candidate word in the above second step, the candidate word can also be analyzed, and according to the analysis result, it is determined whether the candidate word is the abbreviation of the corresponding target word (that is, the target word that partially matches the candidate word). For example, after finding a target word that partially matches a candidate word in the above second step, it can be determined whether the candidate word meets a preset condition. If it meets the preset condition, take the above candidate word as the abbreviation of the corresponding target word (that is, the target word that partially matches the candidate word). Among them, the preset condition can be set as needed, and can be set as one condition or multiple conditions.

[0038] As an example, the preset condition can be set based on the input frequency. If the input frequency of a certain candidate word is greater than or equal to the first preset threshold, it can be considered that the candidate word meets the preset condition. Otherwise, it can be considered that the candidate word does not meet the preset condition.

[0039] As another example, the preset condition can also be set based on the number of users who have input the to-be-selected word. If the number of users who have input a certain to-be-selected word is greater than or equal to the second preset threshold, it can be considered that the to-be-selected word meets the preset condition. Otherwise, it can be considered that the to-be-selected word does not meet the preset condition.

[0040] As yet another example, the preset condition can also be set based on both the input frequency and the number of users who have input the to-be-selected word. If the input frequency of a certain to-be-selected word is greater than or equal to the first preset threshold and the number of users who have input the to-be-selected word is greater than or equal to the second preset threshold, it can be considered that the to-be-selected word meets the preset condition. Otherwise, it can be considered that the to-be-selected word does not meet the preset condition.

[0041] It should be noted that the preset condition can be set otherwise according to needs, and the embodiments of the present application do not limit this. In addition, information such as the input frequency of the to-be-selected word and the number of users who have input the to-be-selected word can be queried from the server by sending a request.

[0042] Step 103, store the abbreviations in the thesaurus and establish the corresponding relationship between each abbreviation and the target word.

[0043] In this embodiment, the above-mentioned execution subject can store the found abbreviations in the thesaurus and establish the corresponding relationship between each abbreviation and the target word.

[0044] In practice, the corresponding relationship between the abbreviation and the target word can be established by setting a label for the abbreviation. For example, for the abbreviation "HIT", the target word "Harbin Institute of Technology" or the number of the target word can be used as the label of the abbreviation "HIT".

[0045] It should be noted that the way to establish the corresponding relationship is not limited to setting labels, and other ways can also be adopted according to needs to establish the corresponding relationship, such as creating key-value pairs, establishing a correspondence table, etc., which are not limited here.

[0046] It can be understood that since there may be some abbreviations of the target words in the thesaurus, after the above-mentioned execution subject stores the found abbreviations in the thesaurus, it can also perform a deduplication operation on the thesaurus to avoid duplicate abbreviations in the thesaurus. In addition, before storing a certain abbreviation in the thesaurus, it can also be checked whether the abbreviation already exists in the thesaurus. If it does not exist, the abbreviation is stored in the thesaurus and the corresponding relationship between the abbreviation and the corresponding target word is established; if it already exists, the corresponding relationship with the corresponding target word can be directly established for the abbreviation in the thesaurus.

[0047] Step 104, when it is detected that the user's input word is any target word or any abbreviation in the word library, a word corresponding to the input word is searched from the word library, and the word corresponding to the input word is prompted.

[0048] In this embodiment, when the execution subject detects that the user's input word is any target word in the above word library, it can search for a word that has a corresponding relationship with the target word (i.e., an abbreviation of the target word) from the above word library, and prompt the word that has a corresponding relationship with the input word. For example, when the user inputs the target word "Harbin Institute of Technology", the corresponding abbreviation "Harbin Institute of Technology" can be prompted.

[0049] In this embodiment, when the execution subject detects that the user's input word is any abbreviation in the above word library, it can search for a word that has a corresponding relationship with the input word (i.e., the target word of the abbreviation) from the above word library, and prompt the word that has a corresponding relationship with the input word. For example, when the user enters the abbreviation "Beijing Institute of Technology", the corresponding target word (i.e., the full name of the abbreviation) "Beijing Institute of Technology" can be prompted.

[0050] It should be noted that the above-mentioned execution subject can prompt another word in the input interface of the input method application. For example, the input word and another word corresponding to the input word can be displayed as candidates in the input interface at the same time. It is also possible to prompt another word in the form of a pop-up window after the input word is on the screen. The embodiment of the present application does not limit the prompt position of the word.

[0051] In some optional implementations of this embodiment, when it is detected that the user intends to input any target word or any abbreviation in the above-mentioned vocabulary, the word indicated by the above-mentioned input intention can be used as the input word, and the word corresponding to the input word can be searched from the above-mentioned vocabulary. For example, when it is detected that the user voice records the voice of "Beiligong", or inputs "beiligong" through the pinyin input method, this can detect that the user has the input intention of the abbreviation "Beiligong" in the vocabulary. At this time, the abbreviation "Beiligong" can be used as the input word, and the target word corresponding to the input word, that is, "Beijing Institute of Technology" can be searched from the vocabulary.

[0052] In the above implementation, optionally, after searching for a word that has a corresponding relationship with the input word, the above execution subject may display the above input word and the word that has a corresponding relationship with the input word as candidate items at the same time. In practice, the above execution subject may use the input word as the first candidate item and the word that has a corresponding relationship with the input word as the second candidate item, and display at least two candidate items including the input word and the word that has a corresponding relationship with the input word. Continuing with the above example, after finding the target word "Beijing Institute of Technology" that has a corresponding relationship with the input word "BIT" from the thesaurus, the abbreviation "BIT" and the target word "Beijing Institute of Technology" may be displayed as candidate items at the same time.

[0053] In addition, optionally, after searching for a word corresponding to the input word, the execution subject may display the input word as a candidate and display entry prompt information including the word corresponding to the input word. In practice, the prompt information may be presented in a pop-up window or the like.

[0054] Therefore, when the user enters an abbreviation, the target word of the word can also be prompted, and when the user enters the target word, the abbreviation of the target word can also be prompted, which facilitates the user to enter and understand the full name and abbreviation of the word, and improves the richness of information displayed during the input process.

[0055] In some optional implementations of this embodiment, the execution subject may also use the current upper screen content as the user's input word, and when it is detected that the input word is any target word or any abbreviation in the word library, a word corresponding to the input word is searched from the word library. Then, the entry prompt information is displayed, and the entry prompt information may include the above-mentioned word corresponding to the input word to prompt the word corresponding to the input word. In addition, after the prompt information is displayed, if it is detected that the user triggers the prompted word (i.e., the word corresponding to the input word), the upper screen content may be replaced with the prompted word.

[0056] The method provided by the above-mentioned embodiment of the present application searches for a target word whose length is greater than or equal to a preset value from the vocabulary, and then searches for the abbreviation of the target word from the words that have not been selected into the vocabulary, and then stores each abbreviation in the vocabulary, establishes a correspondence between each abbreviation and the target word, so that when it is detected that the user's input word is any target word or any abbreviation in the vocabulary, the word with a corresponding relationship with the input word is searched from the vocabulary, and the word is prompted. In this way, the abbreviations of target words with longer lengths in the vocabulary (such as the full name of a proper noun) can also be stored in the vocabulary, thereby improving the diversity of words in the vocabulary. At the same time, when the user enters a target word, the abbreviation of the word can be prompted, and when the user enters an abbreviation, the target word of the word can also be prompted, which facilitates the user to enter and understand the full name and abbreviation of the word, and improves the richness of information displayed during the input process.

[0057] Further references Figure 2 , which shows a process 200 of another embodiment of a term prompt method. The process 200 of the term prompt method includes the following steps:

[0058] Step 201, searching a word library for a target word whose length is greater than or equal to a preset value.

[0059] Step 201 in this embodiment can be found in Figure 1 Step 101 of the illustrated embodiment will not be described in detail here.

[0060] Step 202: The searched target words are grouped into a target word set.

[0061] In this embodiment, after obtaining the target word set, the execution subject may respectively take each word that is not included in the selected word library as a candidate word, and execute the following steps 203 to 205 for each candidate word.

[0062] Step 203: Take each word that is not included in the selected word library as a candidate word, and search for a target word that partially matches the candidate word from the target word set.

[0063] In this embodiment, the execution subject of the entry prompt method can take each word that is not included in the selected word library as a candidate word, and search for a target word that partially matches the candidate word from the target word set. Here, a target word that partially matches the candidate word can mean that the target word contains each character of the candidate word, and the relative order of each character of the candidate word in the target word is consistent with the relative order in the candidate word.

[0064] Specifically, the execution subject may respectively use each target word in the target word set as a target word to be matched, and execute the following steps:

[0065] The first step is to determine whether the target word to be matched contains all the characters of the word to be selected.

[0066] The second step is, if it is included, then checking whether the relative order of each character of the above-mentioned word to be selected in the above-mentioned target word to be matched is consistent with the relative order in the above-mentioned word to be selected.

[0067] The third step is to determine that the target word to be matched partially matches the word to be selected if they are consistent.

[0068] It should be noted that the relative order refers to the order of certain elements (such as the characters of the word to be selected) in the whole (such as the target word) without considering other elements.

[0069] For example, if the target word is "Beijing Institute of Technology" and the candidate word is "BIT". Since each character in the candidate word (i.e., "B", "I", "T") is included in the target word "Beijing Institute of Technology", and the relative order of these characters in the target word "Beijing Institute of Technology" is "B", "I", "T" in sequence. Thus, it can be considered that the target word "Beijing Institute of Technology" partially matches the candidate word "BIT".

[0070] Step 204, if found, determine whether the input frequency of the above candidate word is greater than or equal to the first preset threshold, and determine whether the number of users who have input the above candidate word is greater than or equal to the second preset threshold.

[0071] In this embodiment, for each candidate word, if a target word that partially matches the candidate word is found from the target word set, the above execution entity can determine whether the input frequency of the candidate word is greater than or equal to the first preset threshold, and determine whether the number of users who input the candidate word is greater than or equal to the second preset threshold.

[0072] Here, information such as the input frequency of the candidate word and the number of users who have input the candidate word can be queried from the server by sending a request.

[0073] Step 205, if the input frequency is greater than or equal to the first preset threshold and the number of users is greater than or equal to the second preset threshold, determine that the candidate word meets the preset conditions.

[0074] Step 206, if the preset conditions are met, use the candidate word as the abbreviation of the partially matching target word.

[0075] Step 207, store each abbreviation in the thesaurus and establish the corresponding relationship between each abbreviation and the target word.

[0076] Step 207 in this embodiment can refer to Figure 1 Step 103 of the shown embodiment, which will not be elaborated here.

[0077] Step 208, when detecting the input intention of any target word or any abbreviation in the thesaurus by the user, use the word indicated by the input intention as the input word, and search in the thesaurus for the word that has a corresponding relationship with the input word.

[0078] In this embodiment, when the user's input intention for any target word or any abbreviation in the above-mentioned word library is detected (such as voice input of any target word or abbreviation, or input of the pinyin of any target word or abbreviation), the above-mentioned execution subject can use the word indicated by the above-mentioned input intention as the input word, and search the above-mentioned word library for a word that has a corresponding relationship with the input word. When the input word is a target word (such as the full name of a proper noun), the word that has a corresponding relationship with the input word is the abbreviation of the target word. When the input word is an abbreviation, the word that has a corresponding relationship with the input word is the target word corresponding to the abbreviation (such as the full name of a proper noun).

[0079] For example, when the user enters the voice of "Beiligong" or inputs "beiligong" through the pinyin input method, it can be detected that the user intends to input the abbreviation "Beiligong" in the vocabulary. At this time, the abbreviation "Beiligong" can be used as an input word to search for a target word that has a corresponding relationship with the input word from the vocabulary, that is, "Beijing Institute of Technology University".

[0080] Step 209: Display the input word and words that have a corresponding relationship with the input word as candidate items.

[0081] In this embodiment, after searching for a word that has a corresponding relationship with the input word, the execution entity may display the input word and the searched word that has a corresponding relationship with the input word as candidate items at the same time.

[0082] In practice, the execution entity may use the input word as the first candidate item and the word corresponding to the input word as the second candidate item, and display at least two candidate items including the input word and the word corresponding to the input word.

[0083] Continuing with the above example, after finding the target word "Beijing Institute of Technology" that corresponds to the input word "BIT" in the word library, the abbreviation "BIT" and the target word "Beijing Institute of Technology" can be displayed as candidate items at the same time.

[0084] from Figure 2 It can be seen that Figure 1 Compared with the corresponding embodiment, the entry prompt method in this embodiment involves the step of determining the abbreviation of the target word based on the matching of the candidate word and the target word, the input frequency of the candidate word, and the number of users who input the candidate word. In this way, the abbreviations of the words in the word library can be automatically detected and stored in the word library, which improves the diversity of the words in the word library. At the same time, when the user enters a target word, the abbreviation of the word can be prompted, and when the user enters an abbreviation, the target word of the word can also be prompted, which facilitates the user to input and understand the full name and abbreviation of the word, and improves the richness of information displayed during the input process.

[0085] Further references Figure 3 As an implementation of the methods shown in the above figures, the present application provides an embodiment of a term prompt device, which is similar to Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0086] like Figure 3 As shown, the entry prompt device 300 described in this embodiment includes: a first search unit 301, configured to search for a target word whose length is greater than or equal to a preset value from a vocabulary; a second search unit 302, configured to search for an abbreviation of the target word from words that have not been selected into the above vocabulary; an establishment unit 303, configured to store each abbreviation into the above vocabulary, and establish a corresponding relationship between each abbreviation and the target word; a prompt unit 304, configured to search for a word that has a corresponding relationship with the above input word from the above vocabulary when it is detected that the user's input word is any target word or any abbreviation in the above vocabulary, and prompt the above word that has a corresponding relationship with the above input word.

[0087] In some optional implementations of the present embodiment, the second search unit 302 is further configured to: add the searched target words to a target word set; take each word that is not selected in the vocabulary as a candidate word, and perform the following steps: search for a target word that partially matches the candidate word from the target word set; if found, determine whether the candidate word meets a preset condition; if the preset condition is met, use the candidate word as an abbreviation of the partially matched target word.

[0088] In some optional implementations of the present embodiment, the second search unit 302 is further configured to: take each target word in the target word set as a target word to be matched, and perform the following steps: determine whether the target word to be matched contains the characters of the word to be selected; if so, detect whether the relative order of the characters of the word to be selected in the target word to be matched is consistent with the relative order in the word to be selected; if consistent, determine that the target word to be matched partially matches the word to be selected.

[0089] In some optional implementations of the present embodiment, the second search unit 302 is further configured to: determine whether the input frequency of the word to be selected is greater than or equal to a first preset threshold, and determine whether the number of users who input the word to be selected is greater than or equal to a second preset threshold; if the input frequency is greater than or equal to the first preset threshold and the number of users is greater than or equal to the second preset threshold, it is determined that the word to be selected meets the preset conditions.

[0090] In some optional implementations of the present embodiment, the prompt unit 304 is further configured to: when detecting the user's input intention for any target word or any abbreviation in the vocabulary, take the word indicated by the input intention as the input word, and search the vocabulary for a word corresponding to the input word.

[0091] In some optional implementations of the present embodiment, the prompt unit 304 is further configured to: display the input word and the word corresponding to the input word as candidate items; or, display the input word as a candidate item and display entry prompt information, wherein the entry prompt information includes the word corresponding to the input word.

[0092] In some optional implementations of the present embodiment, the prompt unit 304 is further configured to: take the current upper screen content as the user's input word, and when it is detected that the input word is any target word or any abbreviation in the vocabulary, search the vocabulary for a word that has a corresponding relationship with the input word; and display entry prompt information, wherein the entry prompt information includes the word that has a corresponding relationship with the input word.

[0093] The device provided by the above-mentioned embodiment of the present application searches for a target word whose length is greater than or equal to a preset value from the word library, and then searches for the abbreviation of the target word from the words that have not been selected into the word library, and then stores each abbreviation in the word library, and establishes a corresponding relationship between each abbreviation and the target word, so that when it is detected that the user's input word is any target word or any abbreviation in the word library, the word with a corresponding relationship with the input word is searched from the word library, and the word is prompted. In this way, the abbreviations of the target words with a longer length in the word library (such as the full name of a proper noun) can also be stored in the word library, which improves the diversity of the words in the word library. At the same time, when the user enters a target word, the abbreviation of the word can be prompted, and when the user enters an abbreviation, the target word of the word can also be prompted, which facilitates the user to enter and understand the full name and abbreviation of the word, and improves the richness of information display during the input process.

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

[0095] Reference Figure 4, the device 400 may include one or more of the following components: a processing component 402 , a memory 404 , a power component 406 , a multimedia component 408 , an audio component 410 , an input / output (I / O) interface 412 , a sensor component 414 , and a communication component 416 .

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

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

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

[0099] The multimedia component 408 includes a screen that provides an output interface between the above-mentioned device 400 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 can 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 408 includes a front camera and / or a rear camera. When the device 400 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.

[0100] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC), and when the device 400 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 404 or sent via the communication component 416. In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.

[0101] I / O interface 412 provides an interface between processing component 402 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.

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

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

[0104] In an exemplary embodiment, the apparatus 400 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.

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

[0106] Figure 5 5 is a schematic diagram of the structure of the server in some embodiments of the present application. The server 500 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 522 (for example, one or more processors) and a memory 532, and one or more storage media 530 (for example, one or more mass storage devices) storing application programs 542 or data 544. Among them, the memory 532 and the storage medium 530 can be short-term storage or permanent storage. The program stored in the storage medium 530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 522 can be configured to communicate with the storage medium 530 and execute a series of instruction operations in the storage medium 530 on the server 500.

[0107] The server 500 may also include one or more power supplies 526, one or more wired or wireless network interfaces 550, one or more input and output interfaces 558, one or more keyboards 556, and / or one or more operating systems 541, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0108] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a device (smart terminal or server), enables the device to execute a word entry prompt method, the method comprising: searching for a target word whose length is greater than or equal to a preset value from a vocabulary; searching for an abbreviation of the target word from words that have not been selected from the vocabulary; storing each abbreviation in the vocabulary, and establishing a correspondence between each abbreviation and the target word; when it is detected that the user's input word is any target word or any abbreviation in the vocabulary, searching for a word that has a corresponding relationship with the input word from the vocabulary, and prompting the word that has a corresponding relationship with the input word.

[0109] Optionally, searching for the abbreviation of the target word from words that have not been selected into the vocabulary includes: adding the searched target words to a target word set; taking each word that has not been selected into the vocabulary as a candidate word, and executing the following steps: searching for a target word that partially matches the candidate word from the target word set; if found, determining whether the candidate word meets a preset condition; if the preset condition is met, using the candidate word as the abbreviation of the partially matching target word.

[0110] Optionally, searching for a target word that partially matches the word to be selected from the target word set includes: taking each target word in the target word set as a target word to be matched, and executing the following steps: determining whether the target word to be matched contains each character of the word to be selected; if so, detecting whether the relative order of each character of the word to be selected in the target word to be matched is consistent with the relative order in the word to be selected; if consistent, determining that the target word to be matched partially matches the word to be selected.

[0111] Optionally, determining whether the word to be selected meets a preset condition includes: determining whether the input frequency of the word to be selected is greater than or equal to a first preset threshold, and determining whether the number of users who have input the word to be selected is greater than or equal to a second preset threshold; if the input frequency is greater than or equal to the first preset threshold and the number of users is greater than or equal to the second preset threshold, it is determined that the word to be selected meets the preset condition.

[0112] Optionally, when it is detected that the user's input word is any target word or any abbreviation in the vocabulary, a word corresponding to the input word is searched from the vocabulary, including: when it is detected that the user has an input intention for any target word or any abbreviation in the vocabulary, the word indicated by the input intention is used as the input word, and a word corresponding to the input word is searched from the vocabulary.

[0113] Optionally, prompting the word that has a corresponding relationship with the input word includes: displaying the input word and the word that has a corresponding relationship with the input word as candidate items; or displaying the input word as a candidate item and displaying entry prompt information, wherein the entry prompt information includes the word that has a corresponding relationship with the input word.

[0114] Optionally, when it is detected that the user's input word is any target word or any abbreviation in the vocabulary, a word corresponding to the input word is searched from the vocabulary, and the word corresponding to the input word is prompted, including: taking the current upper screen content as the user's input word, and when it is detected that the input word is any target word or any abbreviation in the vocabulary, a word corresponding to the input word is searched from the vocabulary; and entry prompt information is displayed, and the entry prompt information includes the word corresponding to the input word.

[0115] 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.

[0116] 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.

[0117] 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.

[0118] The above is a detailed introduction to a method and device for prompting an entry provided by the present application, and a device for prompting an entry. 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 general technical personnel in this field, 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. A method for prompting a term, characterized in that: The method comprises: From the vocabulary, search for a target word whose length is greater than or equal to a preset value; Add the found target words to the target word set; Each word that is not selected in the word library is used as a candidate word, and the following steps are performed: Searching for a target word that partially matches the word to be selected from the target word set; If found, determining whether the input frequency of the word to be selected is greater than or equal to a first preset threshold, and determining whether the number of users who have input the word to be selected is greater than or equal to a second preset threshold; If the input frequency is greater than or equal to the first preset threshold and the number of users is greater than or equal to the second preset threshold, it is determined that the candidate word meets the preset condition; If the preset condition is met, the word to be selected is used as the abbreviation of the partially matched target word; Storing the abbreviations in the word library and establishing a corresponding relationship between each abbreviation and the target word; When it is detected that the user's input word is any target word or any abbreviation in the word library, a word corresponding to the input word is searched from the word library, and the word corresponding to the input word is prompted.

2. The method according to claim 1, characterized in that The step of searching the target word set for a part of the target word that matches the word to be selected includes: Each target word in the target word set is used as a target word to be matched, and the following steps are performed: Determine whether the target word to be matched contains each character of the word to be selected; If included, then checking whether the relative order of each character of the word to be selected in the target word to be matched is consistent with the relative order in the word to be selected; If they are consistent, it is determined that the target word to be matched partially matches the word to be selected.

3. The method according to claim 1, characterized in that When it is detected that the input word of the user is any target word or any abbreviation in the word library, searching the word library for a word having a corresponding relationship with the input word includes: When the user's input intention for any target word or any abbreviation in the word library is detected, the word indicated by the input intention is used as the input word, and a word having a corresponding relationship with the input word is searched from the word library.

4. The method according to claim 3, characterized in that Prompting the word corresponding to the input word includes: Displaying the input word and the words corresponding to the input word as candidate items; or The input word is displayed as a candidate item, and entry prompt information is displayed, wherein the entry prompt information includes the word that has a corresponding relationship with the input word.

5. The method according to claim 4, characterized in that When it is detected that the user's input word is any target word or any abbreviation in the word library, searching the word library for a word corresponding to the input word and prompting the word corresponding to the input word includes: Taking the current upper screen content as the user's input word, when detecting that the input word is any target word or any abbreviation in the word library, searching the word library for a word that has a corresponding relationship with the input word; The entry prompt information is displayed, and the entry prompt information includes the word that has a corresponding relationship with the input word.

6. A device for prompting a term, characterized in that: The device comprises: The first search unit is configured to search for a target word whose length is greater than or equal to a preset value from the word library; The second search unit is configured as Add the found target words to the target word set; Each word that is not selected in the word library is used as a candidate word, and the following steps are performed: Searching for a target word that partially matches the word to be selected from the target word set; If found, determining whether the input frequency of the word to be selected is greater than or equal to a first preset threshold, and determining whether the number of users who have input the word to be selected is greater than or equal to a second preset threshold; If the input frequency is greater than or equal to the first preset threshold and the number of users is greater than or equal to the second preset threshold, it is determined that the candidate word meets the preset condition; If the preset condition is met, the word to be selected is used as the abbreviation of the partially matched target word; An establishing unit, configured to store each abbreviation into the word library and establish a corresponding relationship between each abbreviation and a target word; The prompt unit is configured to search for a word corresponding to the input word from the word library when it is detected that the user's input word is any target word or any abbreviation in the word library, and prompt the word corresponding to the input word.

7. The device according to claim 6, characterized in that The second search unit is further configured to: Each target word in the target word set is used as a target word to be matched, and the following steps are performed: Determine whether the target word to be matched contains each character of the word to be selected; If included, then checking whether the relative order of each character of the word to be selected in the target word to be matched is consistent with the relative order in the word to be selected; If they are consistent, it is determined that the target word to be matched partially matches the word to be selected.

8. The device according to claim 6, characterized in that The prompt unit is further configured to: When the user's input intention for any target word or any abbreviation in the word library is detected, the word indicated by the input intention is used as the input word, and a word having a corresponding relationship with the input word is searched from the word library.

9. The device according to claim 8, characterized in that The prompt unit is further configured to: Displaying the input word and the words corresponding to the input word as candidate items; or The input word is displayed as a candidate item, and entry prompt information is displayed, wherein the entry prompt information includes the word that has a corresponding relationship with the input word.

10. The device according to claim 9, characterized in that The prompt unit is further configured to: Taking the current upper screen content as the user's input word, when detecting that the input word is any target word or any abbreviation in the word library, searching the word library for a word that has a corresponding relationship with the input word; The entry prompt information is displayed, and the entry prompt information includes the word that has a corresponding relationship with the input word.

11. A device for prompting a word entry, characterized in that: The invention comprises a memory and one or more programs, wherein the one or more programs are stored in the memory, and when the programs are executed by one or more processors, the steps of any method described in claims 1-5 are implemented.

12. 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 5 is implemented.