Input method and device

By automatically identifying and adding uncommon vocabulary in electronic devices and displaying candidate vocabulary after the user enters an encoded string, the problem of cumbersome operation of inputting uncommon vocabulary is solved, and a fast and convenient input experience is achieved.

CN112346578BActive Publication Date: 2025-02-14VIVO MOBILE COMM HANGZHOU CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202011272588.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-13
Publication Date
2025-02-14
Estimated Expiration
2041-02-14

AI Technical Summary

Technical Problem

In the prior art, users need to determine each uncommon word one by one when inputting uncommon words, resulting in cumbersome operations and low input efficiency.

Method used

Automatically recognize and add uncommon vocabulary to the uncommon vocabulary library in the target interface. After receiving the user input an encoded string associated with the uncommon vocabulary, the candidate vocabulary associated with the encoded string, including the target uncommon vocabulary.

Benefits of technology

Without determining each uncommon word in the uncommon vocabulary one by one, users can quickly and conveniently enter uncommon vocabulary to improve input experience and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112346578B_ABST
    Figure CN112346578B_ABST
Patent Text Reader

Abstract

The present application discloses an input method and device, belonging to the field of communication technology. It can solve the problem that the operation process of inputting uncommon words is cumbersome and the input efficiency is low. The method comprises: when the target interface includes a target uncommon word, the target uncommon word is added to the uncommon word library; receiving a first input for inputting a target coding string in the target interface, the target coding string is associated with the target uncommon word; in response to the first input, M candidate words associated with the target coding string are displayed, the M candidate words include the target uncommon word determined from the uncommon word library, and M is a positive integer. The method can be applied to the scene of inputting uncommon words.
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 communication technology, and in particular, to an input method and device. Background Art

[0002] With the development of electronic equipment technology, input method technology, which serves as a bridge between users and electronic equipment, has also developed rapidly. Users can input various characters into electronic equipment through input methods.

[0003] At present, when a user inputs an uncommon word into an electronic device for the first time, the user needs to determine each character included in the uncommon word one by one. For example, taking an uncommon word including multiple uncommon characters as an example, in a group chat interface, if an uncommon word appears in the chat content sent by user A, and user B also needs to enter the uncommon word in the reply message, then user B needs to query the pinyin of each of the multiple uncommon characters, and when entering the pinyin, determine each uncommon character one by one to enter the uncommon word.

[0004] This makes the user's input of uncommon words complicated and inefficient. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide an input method and device that can solve the problem of cumbersome operation process and low input efficiency in inputting uncommon words.

[0006] In order to solve the above technical problems, this application is implemented as follows:

[0007] In a first aspect, an embodiment of the present application provides an input method, the method comprising: when a target interface includes a target uncommon word, adding the target uncommon word to an uncommon word library; receiving a first input in the target interface for inputting a target coded string, the target coded string being associated with the target uncommon word; in response to the first input, displaying M candidate words associated with the target coded string, the M candidate words including the target uncommon word determined from the uncommon word library, where M is a positive integer.

[0008] In a second aspect, an embodiment of the present application provides an input device, which includes: a processing module, a receiving module and a display module. The processing module is used to add the target uncommon vocabulary to the uncommon vocabulary library when the target interface includes the target uncommon vocabulary; the receiving module is used to receive a first input for inputting a target coded string in the target interface, and the target coded string is associated with the target uncommon vocabulary; the display module is used to display M candidate words associated with the target coded string in response to the first input received by the receiving module, and the M candidate words include the target uncommon vocabulary determined from the uncommon vocabulary library, and M is a positive integer.

[0009] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method of the first aspect.

[0010] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method of the first aspect are implemented.

[0011] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method of the first aspect.

[0012] In an embodiment of the present application, when the target interface includes a target uncommon word, the target uncommon word is added to the uncommon word library; and a first input for inputting a target coding string associated with the target uncommon word in the target interface is received; and in response to the first input, M candidate words associated with the target coding string are displayed, the M candidate words including the target uncommon word determined from the uncommon word library, and M is a positive integer. Through this method, the electronic device automatically identifies the target uncommon word in the target interface and adds the target uncommon word to the uncommon word library. Subsequently, if the user needs to input the target uncommon word, the user triggers the electronic device to display the M candidate words including the target uncommon word by inputting the target coding string associated with the target uncommon word. Compared with the related art, this method does not need to determine each uncommon word in the uncommon word one by one after the user inputs the target coding string, so that the uncommon word can be input quickly and conveniently, thereby improving the user's input experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 One of the schematic diagrams of an input method provided in an embodiment of the present application;

[0014] Figure 2 A schematic diagram of the operation of an electronic device displaying a target uncommon word provided by an embodiment of the present application;

[0015] Figure 3 A second schematic diagram of an input method provided in an embodiment of the present application;

[0016] Figure 4 A third schematic diagram of an input method provided in an embodiment of the present application;

[0017] Figure 5 A fourth schematic diagram of an input method provided in an embodiment of the present application;

[0018] Figure 6 A fifth schematic diagram of an input method provided in an embodiment of the present application;

[0019] Figure 7 A schematic diagram of the structure of an input device provided in an embodiment of the present application;

[0020] Figure 8 One of the hardware schematic diagrams of the electronic device provided in the embodiment of the present application;

[0021] Fig. 9 The second hardware schematic diagram of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0022] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0023] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. And the objects distinguished by "first", "second", etc. are usually a class, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated before and after are in an "or" relationship.

[0024] The input method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0025] The input method provided in the embodiment of the present application can be applied in the following scenarios:

[0026] Scenario 1: When a user inputs an uncommon word for the first time, the user needs to query the pinyin of each of the multiple uncommon words, and when inputting the pinyin, confirm each word in the uncommon word one by one.

[0027] Scenario 2: When a user inputs an uncommon word, the user can trigger the electronic device to switch to a handwriting input method, and input the uncommon word through handwriting operations on the electronic device.

[0028] In an embodiment of the present application, when the target interface includes a target uncommon word, the target uncommon word is added to the uncommon word library; and a first input for inputting a target coding string associated with the target uncommon word in the target interface is received; and in response to the first input, M candidate words associated with the target coding string are displayed, the M candidate words including the target uncommon word determined from the uncommon word library, and M is a positive integer. Through this method, the electronic device automatically identifies the target uncommon word in the target interface and adds the target uncommon word to the uncommon word library. Subsequently, if the user needs to input the target uncommon word, the user triggers the electronic device to display the M candidate words including the target uncommon word by inputting the target coding string associated with the target uncommon word. Compared with the related art, this method does not need to determine each uncommon word in the uncommon word one by one after the user inputs the target coding string, so that the uncommon word can be input quickly and conveniently, thereby improving the user's input experience.

[0029] like Figure 1 As shown, an embodiment of the present application provides an input method, which may include the following steps 101 to 103.

[0030] Step 101: When a target interface includes a target rare word, the electronic device adds the target rare word to a rare word library.

[0031] It should be noted that, in the embodiment of the present application, the above-mentioned target interface is an interface for displaying target uncommon words. Specifically, the target interface can be a chat interface of an electronic device (for example, a chat interface of a chat group), a content reading interface (for example, an interface for reading articles through a browser, a reader, editing software, etc.), etc. The specific interface can be determined according to actual usage requirements. The following embodiment is exemplified by taking the chat interface of a group as an example of the target interface.

[0032] Optionally, in the embodiment of the present application, the above-mentioned target uncommon words refer to some words that are relatively uncommon, uncommon, or difficult to input using ordinary input methods. The target uncommon words can be words in Chinese or any other language. Specifically, the target uncommon words can be any of the following: uncommon Chinese characters, relatively uncommon professional terms, uncommon words in other languages, etc. It can be determined according to actual use needs, and the embodiment of the present application does not make specific limitations.

[0033] It should be noted that the manner in which the electronic device identifies the target uncommon words in the target interface can be found in the specific description of the following step 104, which will not be described in detail here.

[0034] Optionally, in the embodiments of the present application, the above-mentioned rare vocabulary library may be a rare vocabulary library based on a certain application program, or a rare vocabulary library set by a certain user, or only a rare vocabulary library based on the current target interface. Specifically, one way is: when the electronic device recognizes that the target interface includes a target rare vocabulary, a rare vocabulary library can be created based on the target interface (the rare vocabulary library can be used to add all the rare vocabularies in the interface), and the target rare vocabulary is added to the rare vocabulary library. Another way is: when the electronic device recognizes that the target interface includes a target rare vocabulary, the electronic device can also add the target rare vocabulary to an existing rare vocabulary library, where the rare vocabulary library can be user-based or application-based. It can be specifically determined according to actual usage requirements, and the embodiments of the present application do not make specific limitations.

[0035] Step 102, the electronic device receives a first input for inputting a target encoding string in the target interface.

[0036] Wherein, the above-mentioned target encoding string is associated with the target rare vocabulary.

[0037] It should be noted that, in the embodiments of the present application, the above-mentioned target encoding string is used to indicate the target rare vocabulary. Specifically, the target encoding string may have different encoding methods based on different input methods. Specifically, the target encoding string may be any one of the following: the pinyin associated with the target rare vocabulary, the first letter of the pinyin associated with the target rare vocabulary, the stroke encoding associated with the target rare vocabulary, etc. Exemplarily, assuming the target rare vocabulary is "chì chù", then the encoding string of the associated pinyin is "chi chu"; the encoding string of the first letter of the associated pinyin is "cc"; the encoding string of the associated Wubi code is "TTTH FHK". The embodiments of the present application do not make specific limitations on the specific encoding method of the encoding string, and the target encoding string associated with the target rare vocabulary can be determined according to the encoding method associated with the actually used input method.

[0038] Optionally, in the embodiments of the present application, the above-mentioned first input is that the user inputs the target encoding string in the target interface. Specifically, the first input may be an input of the target encoding string by voice, and the content of the voice is used to indicate the target encoding string; the first input may also be an input of the target encoding string manually through a preset input method. The present application does not make specific limitations on the input method of the target encoding string. For example, it may be that the user inputs through a physical keyboard for the target interface; it may also be that after the user triggers the electronic device to display a virtual keyboard in the target interface, an input operation is performed on the virtual keyboard in the target interface, etc. It can be specifically determined according to actual usage requirements, and the embodiments of the present application do not make specific limitations.

[0039] Step 103: In response to the first input, the electronic device displays M candidate words associated with the target encoded string.

[0040] Among them, the above M candidate words include the target rare word determined from the rare word library, and M is a positive integer.

[0041] It should be noted that in the embodiments of the present application, the above M candidate words are words associated with the target editing string, and the M candidate words may include words belonging to the rare word library (for example, the target rare word), and words not belonging to the rare word library (for example, the first candidate word in the following embodiments).

[0042] Optionally, in the embodiments of the present application, the manner in which the electronic device determines the M candidate words may be: the electronic device sequentially compares the received target encoded string with the rare word library and the general input method vocabulary library; then, the electronic device forms the M candidate words by combining the target rare word determined from the rare word library and associated with the target encoded string, and multiple first candidate words determined from the general input method vocabulary library, and displays them in the candidate area. Among them, the candidate area can be used to display the M candidate words for the user to select.

[0043] Exemplarily, assuming that the encoded string of the pinyin input by the user is "chi chu" (i.e., the target encoded string), the electronic device can display "chì chù" matched from the rare word library, and "chī chū", "chí chú", and "chí chú" matched from the general input method vocabulary library in the candidate area of the target interface. In this way, the electronic device can display 4 candidate words (i.e., M = 4) associated with the target encoded string "chi chu", namely "chì chù", "chī chū", "chí chú", and "chí chú" in the candidate area, so as to facilitate the user to select the word that the user needs to input.

[0044] Exemplarily, Figure 2 is a schematic diagram of the operation of the electronic device for displaying the target rare word. As Figure 2 shown in (a) in, the electronic device 001 currently displays the chat interface 002 between Xiao Li and Xiao Wang (i.e., the target interface). After the electronic device 001 detects that the target rare word "fǔ lóng diǎn dàng" exists in the chat content of the chat interface 002, it adds "fǔ lóng diǎn dàng" to the rare word library. User Xiao Li needs to reply in this chat interface. As Figure 2As shown in (b), after the user enters the character string "ffdd" (i.e., the target coded character string) in the message reply field 006, the electronic device 001 displays the words associated with "ffdd" in the candidate area 007, such as: "Fulongdian", "Fuliduoduo", "Falai" and "Legal", etc., among which "Fulongdian" is the target uncommon word obtained by matching "ffdd" with the uncommon word library. Afterwards, the user can select the word the user needs in the candidate area 007 for input.

[0045] In an embodiment of the present application, an input method is provided. When a target interface includes a target uncommon word, the target uncommon word is added to an uncommon word library; and a first input of a target coding string associated with the target uncommon word is received in the target interface; and in response to the first input, M candidate words associated with the target coding string are displayed, and the M candidate words include the target uncommon word determined from the uncommon word library, and M is a positive integer. Through this method, the electronic device automatically identifies the target uncommon word in the target interface and adds the target uncommon word to the uncommon word library. Subsequently, if the user needs to input the target uncommon word, the user triggers the electronic device to display the M candidate words including the target uncommon word by inputting the target coding string associated with the target uncommon word. Compared with the related art, this method does not need to determine each uncommon word in the uncommon word one by one after the user inputs the target coding string, so that the uncommon word can be input quickly and conveniently, thereby improving the user's input experience.

[0046] Optional, combined Figure 1 ,like Figure 3 As shown, before the above step 101, the input method provided in the embodiment of the present application may further include the following step 104.

[0047] Step 104: When a preset condition is met, the electronic device recognizes uncommon words in the target interface.

[0048] The above-mentioned preset conditions include at least one of the following: receiving a preset input of the user for the target interface; reaching a preset recognition time interval; and each time the target interface receives a message.

[0049] Optionally, in an embodiment of the present application, the above-mentioned preset condition is receiving a preset input from a user for a target interface, which means that when the electronic device receives a preset input from a user for a target interface, the electronic device is triggered to recognize uncommon words in the target interface. The preset input may be a physical key input to the electronic device, and the physical key is used to trigger the electronic device to recognize uncommon words in the target interface; the preset input may also be a voice input from the user, and the content of the voice input is used to instruct the electronic device to recognize uncommon words in the target interface; the preset input may also be a touch input to the target interface of the electronic device, and the touch input may be any of the following: single click, double click, long press, slide along a preset track, etc. The specific operation may be determined according to actual use requirements, and the embodiment of the present application does not make specific limitations.

[0050] Optionally, in an embodiment of the present application, the above-mentioned preset condition is reaching a preset recognition time interval, which means that the electronic device recognizes uncommon words in the target interface according to a preset time period, that is, when the time interval associated with the preset time period is reached, the electronic device automatically starts to recognize uncommon words in the target interface. It should be noted that if the interface of the electronic device is an interface that is updated in real time, then the automatic recognition can be for the updated content, or for the entire interface, etc. The specific conditions can be determined according to actual use needs, and the embodiments of the present application do not make specific limitations.

[0051] Optionally, in an embodiment of the present application, the above-mentioned preset condition is that every time the target interface receives a message, it means that every time the currently displayed target interface receives a message, the electronic device automatically detects the content of the message to identify uncommon words. When an uncommon word is identified, the electronic device can directly add the uncommon word to the uncommon word library. It should be noted that in order to reduce the workload of the electronic device for detection, the electronic device can determine a message received at the most recent moment, and detect uncommon words in the content of the message. In this way, every time the target interface receives a message, the content of the message is identified as an uncommon word, thereby shortening the detection cycle and making the uncommon word detection more real-time.

[0052] Optionally, in an embodiment of the present application, the method in which the electronic device recognizes uncommon words in the target interface can be specifically implemented through the following steps A and B.

[0053] Step A: The electronic device identifies all words in the target interface, and matches the original encoding strings associated with all words with the preset encoding strings associated with the user input method vocabulary.

[0054] Optionally, in the embodiments of the present application, during the process of matching the original coding string with the preset coding string associated with the user input method dictionary, the matching can be performed according to a preset matching priority. The preset matching priority can be set according to the user's usage habits, syntactic structure habits, vocabulary composition habits, etc. The embodiments of the present application do not make specific limitations.

[0055] Step B: The electronic device determines the words in which the original coding string does not match the preset coding string as target rare words.

[0056] It should be noted that the essence of the above recognition process is: whether each word can be quickly input through the user input method dictionary. If not, the word is a target rare word. That is, the original coding string associated with each word is compared with the preset coding string associated with the same word in the user input method dictionary. When the original coding string does not match the preset coding string, the word is determined as a target rare word.

[0057] Exemplarily, as Figure 2 shown in (a) of, the electronic device compares the original coding string "fldd" associated with the word "fulong diandang" in the chat interface with the preset string "fulongdd" of "fulong diandang" in the user input method dictionary (wherein, in the user input method dictionary: "fldd" is associated with "fuli duoduo"). When "fldd" in the user input method dictionary is not associated with "fulong diandang" (that is, the original coding string does not match the preset coding string), the electronic device determines "fulong diandang" as a target rare word and can add it to the rare word library.

[0058] It can be understood that since the electronic device can identify the rare words in the target interface and add the identified target rare words to the rare word library when the preset input for the target interface is received, the preset recognition time interval is reached, or each message is received by the target interface and other preset conditions are met. In this way, the user can determine the triggering method for identifying the target interface according to actual usage needs, thereby facilitating the user and improving the user experience.

[0059] Optionally, in combination with Figure 1 , as Figure 4 shown, M candidate words are displayed in the candidate area; the target rare words include S rare words, the M candidate words include the S rare words and M - S first candidate words, and the M - S first candidate words do not belong to the rare word library. S is a positive integer, and S is less than or equal to M. After the above step 103, the input method provided by the embodiments of the present application further includes the following steps 105 and 106.

[0060] Step 105, the electronic device receives a second input for the first target rare word among the S rare words.

[0061] It should be noted that in the embodiments of the present application, the above-mentioned S rare words are rare words determined from the rare word library and associated with the target coding string. The M - S first candidate words are words matched from other word libraries except rare words and associated with the target coding string. Among them, the other word library can be any one of the following: user word library, input method word library, general word library, etc. As in the above Figure 2 exemplary, the target coding string "ffdd" can be associated with "auxiliary long pawn" and "fu lu pawn" in the rare word library (i.e., S = 2, including two target rare words), and can be associated with "a lot of benefits", "sent", "legal", etc. in the general word library (i.e., M = 5, M - S = 3, that is, three first candidate words).

[0062] Optionally, in the embodiments of the present application, the above-mentioned candidate area refers to the area where the electronic device displays multiple candidate words after the user inputs the coding string. For example, Figure 2 candidate area 007 in the above. It should be noted that the candidate area can be independently displayed in a certain area of the target interface, or can be displayed together with the input method keyboard (such as Figure 2 the display method in the above). The specific display position and display method can be determined according to actual usage requirements, and the embodiments of the present application do not make specific limitations.

[0063] Optionally, in the embodiments of the present application, the above-mentioned second input is used to determine the first target rare word from the S rare words. Specifically, the first input can be a touch input for the first target rare word among the S approval words when the electronic device displays the S rare words. The first input can also be a touch input for the first identifier among the S identifiers associated with the S rare words (each rare word is associated with an identifier), and the electronic device determines the rare word associated with the first identifier as the first target rare word in response to the touch input. Among them, the touch input can be any one of the following: single click, double click, long press, drag along a preset trajectory, etc. Specifically, it can be determined according to actual usage requirements, and the embodiments of the present application do not make specific limitations.

[0064] Step 106, the electronic device displays the first target rare word in the input box on the target interface in response to the second input.

[0065] Optionally, in the embodiments of the present application, the input box on the above-mentioned target interface refers to an input box where the user can input the reply content, and the user can edit the input content in the input box and then send it. For example, the input box on the target interface can specifically be Figure 2 Message reply column 006 shown in (b) etc.

[0066] It should be noted that displaying the first target uncommon word in the input box of the target interface can facilitate the user to reconfirm whether the input content is what the user needs, and can re-edit the content in the input box, thereby facilitating user use.

[0067] It is understandable that, when the target uncommon words include multiple uncommon words, the electronic device can display multiple uncommon words and the first candidate word in the candidate area, and the user can select the first target uncommon word from the multiple uncommon words, thereby triggering the electronic device to display the first target uncommon word in the input field of the target interface. That is, when the target uncommon words include multiple uncommon words, the user can manually select the first target uncommon word the user needs, so that the first target uncommon word the user needs can be input more quickly and accurately.

[0068] Optional, combined Figure 1 ,like Figure 5 As shown, the target encoding string includes a first string and a second string, the first string is used to indicate a candidate word matching the target string, and the second string is used to indicate a target contact, and the target contact is one of the multiple contacts included in the target interface. The "displaying M candidate words associated with the target encoding string" in the above step 103 can be specifically implemented by the following steps 103a and 103b.

[0069] Step 103a: The electronic device determines M candidate words according to the first character string.

[0070] It should be noted that, in the embodiment of the present application, the second string is used to indicate that the target interface includes one of the multiple contacts. Specifically, the second string can be any of the following: a nickname of the indicated contact, a phone number of the indicated contact, a string identifier of the indicated contact, etc.

[0071] For example, assuming that the target interface is a group chat interface including user A, user B and user C, and user A mentions "Fulong Pawn" in one of his chat contents, and user B mentions "Fulong Pawn" in another of his chat contents. Then, the user can input the target encoding string as "ffdd-A", where the first string "ffdd" is used to indicate the target uncommon word, and "-A" is the second string to indicate the target contact user A.

[0072] It should be noted that, in the embodiment of the present application, the above-mentioned determination of M candidate words based on the first character string means that the electronic device matches the first character string with the uncommon word library and other word libraries to obtain M candidate words that meet the requirements. The M candidate words may include multiple uncommon words. Among them, the following second character string is used to quickly determine the target uncommon word from multiple uncommon words based on the historical chat records of the target contact, that is, the historical chat records of the target contact include the target uncommon word.

[0073] Step 103b: The electronic device determines a target uncommon word from the M candidate words according to the second character string, and displays the target uncommon word.

[0074] Optionally, in an embodiment of the present application, the specific method for the electronic device to determine the target uncommon vocabulary from the M candidate vocabulary based on the second character string may be: the electronic device first determines M candidate vocabulary from the uncommon vocabulary library based on the first character string (wherein the M candidate vocabulary may include multiple uncommon vocabulary); then, the electronic device may detect all chat records of the target contact indicated by the second character based on the second character, and then determine the target uncommon vocabulary belonging to the above-mentioned M candidate vocabulary from these chat records.

[0075] Exemplarily, assume that the target interface is a group chat interface including user A, user B, and user C, and user A mentions "Fulong Pawn" in a chat content, and user B mentions "Fulong Pawn" in a chat content. If the user can input the target coding string as "ffdd-A", wherein the first string is "ffdd" used to indicate the target uncommon word, and "-A" is the second string used to indicate the target contact user A. Then, the electronic device can filter out "Fulong Pawn" and "Fulu Pawn" according to the first string "ffdd", and then compare the target uncommon word associated with "ffdd" from the chat record of user A according to the second string "-A" to obtain "Fulong Pawn". Subsequently, after determining the target uncommon word, the electronic device can display the target uncommon word as "Fulong Pawn".

[0076] It is understandable that the electronic device can indicate M candidate words matching the target string according to the first string, and then the electronic device can determine the target uncommon word from the M candidate words according to the second string, and display the target uncommon word. In this way, the electronic device can quickly and accurately determine the target uncommon word from multiple candidate words according to the target contact, and display it, so as to facilitate the user's use.

[0077] Optional, combined Figure 1 ,like Figure 6As shown, the target rare words include S rare words. The above step 103 can be specifically implemented by the following step 103c and step 103d, and either step 103c or step 103d is executed.

[0078] Step 103c: When the electronic device responds to the first input and the target rare words include M rare words, the electronic device displays the M rare words according to the first sorting rule.

[0079] Among them, the above first sorting rule includes at least one of the following: the usage frequency of the rare words associated with the target coding string in the target interface; the sending time of the rare words associated with the target coding string in the target interface; the target priority of the rare words associated with the target coding string in the target interface.

[0080] It should be noted that the above target priority can be determined by other content in the target content except for the rare words. For example, words, symbols (such as the following "@", "&"), expressions, etc. other than the rare words in a sentence.

[0081] Optionally, in the embodiments of the present application, the above first sorting rule is the usage frequency of the rare words associated with the target coding string in the target interface, which means that the electronic device can set the display order of the M rare words according to the high and low usage frequencies of the rare words. Among them, the display order can be directly proportional or inversely proportional to the usage frequency.

[0082] Exemplarily, assume that the word "辅窿典当" appears 3 times in a certain chat interface, and the word "福禄典当" only appears 1 time. Then when the user inputs the target string "fldd", the electronic device can display "辅窿典当" at the first position in the candidate area and display "福禄典当" at the second position next to the first position. Among them, the position on the left of the candidate area is the position for displaying words with a higher usage frequency.

[0083] Optionally, in the embodiments of the present application, the sending time of the rare words associated with the target coding string in the target interface indicates that the electronic device can set the display order of the M rare words according to the sending time of the content including the rare words. Among them, the display order can be that the ones received later are displayed first, and the ones received earlier are displayed later, that is, they are displayed in reverse order of the receiving time.

[0084] Exemplarily, assume that in a certain chat interface, five minutes ago, the content sent by user A included "Fulong Pawnshop"; one minute ago, the content sent by user B included "Fulu Pawnshop". Then, when the user inputs the target string "fldd", the electronic device can display "Fulong Pawnshop" at the left position in the candidate area and "Fulu Pawnshop" at the right position. Among them, the left position in the candidate area is used to display the vocabulary that is closest to the current time and matches the target string.

[0085] Optionally, in the embodiments of the present application, the target priority of the rare vocabulary associated with the target encoding string in the above target interface refers to the priority determined by the electronic device according to other content in the target content except for the rare vocabulary, and the display order of M rare vocabularies is set. Among them, the target content can be a sentence or a paragraph sent by a user, and the target content includes the target rare vocabulary. The target priority can be determined by whether the target content includes a preset priority identifier. If it includes the preset priority identifier, the target rare vocabulary in the sentence is preferentially displayed. The user can set the preset priority identifier according to actual usage requirements. For example, it can be "@", "&", etc.

[0086] Exemplarily, assume that in a certain chat group, a chat record of user A is "Xiaoli, I recommend it to you today. The Fulong Pawnshop you mentioned last time is very good, @". Then, the electronic device can, according to the sentence including the preset priority identifier "@", when the user inputs the target string "fldd", display the high-priority target rare vocabulary "Fulong Pawnshop" at the left position in the candidate area. Among them, the left position in the candidate area is used to display the vocabulary with a higher priority among the vocabularies that match the target string.

[0087] Step 103d: In response to the first input, when the target rare vocabulary includes S rare vocabularies and M candidate vocabularies include S rare vocabularies and M - S first candidate vocabularies, the electronic device displays the S rare vocabularies and the M - S first candidate vocabularies according to the second sorting rule.

[0088] Among them, the display rule of the above S rare vocabularies is the first sorting rule. The second sorting rule is that the S rare vocabularies are displayed in the first area, and the M - S first candidate vocabularies are displayed in the second area. The first area and the second area are different display areas.

[0089] It should be noted that in the embodiments of the present application, the specific sorting method for displaying the M - S first candidate vocabularies according to the first sorting rule can refer to the specific description of the first sorting rule in step 103c above, and will not be elaborated here.

[0090] Optionally, in an embodiment of the present application, the priority of the first area is higher than the priority of the second area. Specifically, in actual use, the first area and the second area can be two different areas that are set apart, and the first area and the second area can also be sub-areas at two different positions of the same area. The embodiment of the present application is not specifically limited. Exemplarily, the first area can be the top area of ​​the electronic screen, and the second area can be the bottom area of ​​the electronic device; the first area can be the left area of ​​the candidate area, and the second area can be the right area of ​​the candidate area.

[0091] It is understandable that, since the electronic device can display uncommon words according to the first sorting rule, and display multiple uncommon words and multiple first candidate words according to the second sorting rule, the electronic device can display words with a high probability of being used by the user at a position convenient for the user to select according to the user's usage habits, so as to facilitate the user's operation, thereby saving the user's time and improving the user's usage experience.

[0092] It should be noted that the input method provided in the embodiment of the present application can be executed by an input device or a control module in the input device for executing the input method. In the embodiment of the present application, the input method is executed by an input device as an example to illustrate the device provided in the embodiment of the present application.

[0093] like Figure 7 As shown, an embodiment of the present application provides an input device 700. The input device 700 may include: a processing module 701, a receiving module 702 and a display module 703. The processing module 701 may be used to add the target uncommon vocabulary to the uncommon vocabulary library when the target interface includes the target uncommon vocabulary. The receiving module 702 may be used to receive a first input for inputting a target coded string in the target interface, and the target coded string is associated with the target uncommon vocabulary. The display module 703 is used to display M candidate words associated with the target coded string in response to the first input received by the receiving module 702, and the M candidate words include the target uncommon vocabulary determined from the uncommon vocabulary library, where M is a positive integer.

[0094] Optionally, in the embodiment of the present application, M candidate words are displayed in the candidate area, the target uncommon words include S uncommon words, the M candidate words include S uncommon words and MS first candidate words, the MS first candidate words do not belong to the uncommon word library, S is a positive integer, and S is less than or equal to M. The receiving module 702 can also be used to receive a second input of a first target uncommon word among the S uncommon words after displaying the M candidate words associated with the target coded string. The display module 703 can also be used to display the first target uncommon word in the input box of the target interface in response to the second input received by the receiving module 702.

[0095] Optionally, in an embodiment of the present application, the target encoded string includes a first string and a second string, the first string is used to indicate a candidate word matching the target string, and the second string is used to indicate a target contact, which is one of the multiple contacts in the target interface. The processing module 701 can be specifically used to determine M candidate words according to the first string; and determine the target uncommon word from the M candidate words according to the second string; and control the display module to display the target uncommon word.

[0096] Optionally, in an embodiment of the present application, the target uncommon words include S uncommon words. Display module 703 can be specifically used to display the M uncommon words according to the first sorting rule when the target uncommon words include M uncommon words; or, when the target uncommon words include S uncommon words and the M candidate words include S uncommon words and MS first candidate words, display the S uncommon words and the MS first candidate words according to the second sorting rule, and the display rule of the S uncommon words is the first sorting rule. Among them, the first sorting rule includes at least one of the following: the frequency of use of the uncommon words associated with the target coding string in the target interface; the sending time of the uncommon words associated with the target coding string in the target interface; the target priority of the uncommon words associated with the target coding string in the target interface. The second sorting rule is that the S uncommon words are displayed in the first area, and the MS first candidate words are displayed in the second area, and the first area and the second area are different display areas.

[0097] Optionally, in the embodiment of the present application, the processing module 701 can also be used to identify uncommon words in the target interface when a preset condition is met. The preset condition includes at least one of the following: receiving a preset input of the user for the target interface; reaching a preset recognition time interval; and each time the target interface receives a message.

[0098] The input device in the embodiment of the present application may be a functional entity and / or functional module that executes the input method in the electronic device, or may be a component, integrated circuit, or chip in the terminal. The device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device may be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0099] The input device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0100] The input device provided in the embodiment of the present application can achieve Figures 1 to 7 In order to avoid repetition, the various processes implemented by the input device in the method embodiment will not be described here.

[0101] In an embodiment of the present application, an input device is provided. When a target interface includes a target uncommon word, the target uncommon word is added to an uncommon word library; and a first input for inputting a target coding string associated with the target uncommon word in the target interface is received; and in response to the first input, M candidate words associated with the target coding string are displayed, and the M candidate words include the target uncommon word determined from the uncommon word library, and M is a positive integer. Through this method, the input device automatically identifies the target uncommon word in the target interface and adds the target uncommon word to the uncommon word library. Subsequently, if the user needs to input the target uncommon word, the user triggers the input device to display the M candidate words including the target uncommon word by inputting the target coding string associated with the target uncommon word. Compared with the related art, this method does not need to determine each uncommon word in the uncommon word one by one after the user inputs the target coding string, so that the uncommon word can be input quickly and conveniently, thereby improving the user's input experience.

[0102] Optional, such as Figure 8As shown, an embodiment of the present application also provides an electronic device 800, including a processor 801, a memory 802, and a program or instruction stored in the memory 802 and executable on the processor 801. When the program or instruction is executed by the processor 801, each process of the above-mentioned input method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0103] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0104] Fig. 9 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0105] The electronic device 2000 includes but is not limited to: a radio frequency unit 2001, a network module 2002, an audio output unit 2003, an input unit 2004, a sensor 2005, a display unit 2006, a user input unit 2007, an interface unit 2008, a memory 2009, and a processor 2010 and other components.

[0106] Among them, the input unit 2004 may include a graphics processor 20041 and a microphone 20042, the display unit 2006 may include a display panel 20061, the user input unit 2007 may include a touch panel 20071 and other input devices 20072, and the memory 2009 can be used to store software programs (such as an operating system, an application required for at least one function) and various data.

[0107] Those skilled in the art will appreciate that the electronic device 2000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 2010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0108] The processor 2010 may be used to add the target uncommon word to the uncommon word library when the target interface includes the target uncommon word. The user input unit 2007 may be used to receive a first input for inputting a target coded string in the target interface, the target coded string being associated with the target uncommon word. The display unit 2006 may be used to display M candidate words associated with the target coded string in response to the first input received by the user input unit 2007, the M candidate words including the target uncommon word determined from the uncommon word library, where M is a positive integer.

[0109] In an embodiment of the present application, an electronic device is provided. When a target interface includes a target uncommon word, the target uncommon word is added to an uncommon word library; and a first input for inputting a target coding string associated with the target uncommon word in the target interface is received; and in response to the first input, M candidate words associated with the target coding string are displayed, and the M candidate words include the target uncommon word determined from the uncommon word library, and M is a positive integer. Through this method, the electronic device automatically identifies the target uncommon word in the target interface and adds the target uncommon word to the uncommon word library. Subsequently, if the user needs to input the target uncommon word, the user triggers the electronic device to display the M candidate words including the target uncommon word by inputting the target coding string associated with the target uncommon word. Compared with the related art, this method does not need to determine each uncommon word in the uncommon word one by one after the user inputs the target coding string, so that the uncommon word can be input quickly and conveniently, thereby improving the user's input experience.

[0110] Optionally, in the embodiment of the present application, M candidate words are displayed in the candidate area, the target uncommon words include S uncommon words, the M candidate words include S uncommon words and MS first candidate words, the MS first candidate words do not belong to the uncommon word library, S is a positive integer, and S is less than or equal to M. The user input unit 2007 can also be used to receive a second input of a first target uncommon word among the S uncommon words after displaying the M candidate words associated with the target coded string. The display unit 2006 can also be used to display the first target uncommon word in the input box of the target interface in response to the second input received by the user input unit 2007.

[0111] It is understandable that, when the target uncommon words include multiple uncommon words, the electronic device can display multiple uncommon words and the first candidate word in the candidate area, and the user can select the first target uncommon word from the multiple uncommon words, thereby triggering the electronic device to display the first target uncommon word in the input field of the target interface. That is, when the target uncommon words include multiple uncommon words, the user can manually select the first target uncommon word the user needs, so that the first target uncommon word the user needs can be input more quickly and accurately.

[0112] Optionally, in an embodiment of the present application, the target encoded string includes a first string and a second string, the first string is used to indicate a candidate word matching the target string, and the second string is used to indicate a target contact, which is one of the multiple contacts in the target interface. The processor 2010 can be specifically used to determine M candidate words according to the first string; and determine the target uncommon word from the M candidate words according to the second string; and control the display module to display the target uncommon word.

[0113] It is understandable that the electronic device can indicate M candidate words matching the target string according to the first string, and then the electronic device can determine the target uncommon word from the M candidate words according to the second string, and display the target uncommon word. In this way, the electronic device can quickly and accurately determine the target uncommon word from multiple candidate words according to the target contact, and display it, so as to facilitate the user's use.

[0114] Optionally, in an embodiment of the present application, the target uncommon words include S uncommon words. The display unit 2006 can be specifically used to display the M uncommon words according to the first sorting rule when the target uncommon words include M uncommon words; or, when the target uncommon words include S uncommon words and the M candidate words include S uncommon words and MS first candidate words, display the S uncommon words and the MS first candidate words according to the second sorting rule, and the display rule of the S uncommon words is the first sorting rule. Among them, the first sorting rule includes at least one of the following: the frequency of use of the uncommon words associated with the target coding string in the target interface; the sending time of the uncommon words associated with the target coding string in the target interface; the target priority of the uncommon words associated with the target coding string in the target interface. The second sorting rule is that the S uncommon words are displayed in the first area, and the MS first candidate words are displayed in the second area, and the first area and the second area are different display areas.

[0115] It is understandable that, since the electronic device can display uncommon words according to the first sorting rule, and display multiple uncommon words and multiple first candidate words according to the second sorting rule, the electronic device can display words with a high probability of being used by the user at a position convenient for the user to select according to the user's usage habits, so as to facilitate the user's operation, thereby saving the user's time and improving the user's usage experience.

[0116] Optionally, in the embodiment of the present application, the processor 2010 may also be used to identify uncommon words in the target interface when a preset condition is met. The preset condition includes at least one of the following: receiving a preset input of the user for the target interface; reaching a preset recognition time interval; and each time the target interface receives a message.

[0117] It is understandable that, since the electronic device can recognize the uncommon words in the target interface when receiving the preset input of the user for the target interface, reaching the preset recognition time interval, or when the target interface receives a message each time, and other preset conditions are met, the recognized target uncommon words are added to the uncommon word library. In this way, the user can determine the triggering method for recognizing the target interface according to actual usage needs, thereby facilitating the user and improving the user's usage experience.

[0118] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned input method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0119] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0120] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, which is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-mentioned input method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0121] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0122] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0123] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0124] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. An input method, characterized in that: The method comprises: In the case where the target interface includes a target uncommon word, adding the target uncommon word to an uncommon word library; Receiving a first input for inputting a target coded string in the target interface, the target coded string being associated with the target uncommon word; the target coded string comprising a first string and a second string, the first string being used to indicate a candidate word matching the target coded string, the second string being used to indicate a target contact, the target contact being one of a plurality of contacts in the target interface; In response to the first input, determining M candidate words according to the first character string; According to the second character string, the target uncommon word is determined from the M candidate words and displayed, the M candidate words include the target uncommon word determined from the uncommon word library, and M is a positive integer.

2. The method according to claim 1, characterized in that The M candidate words are displayed in the candidate area; the target uncommon words include S uncommon words, the M candidate words include the S uncommon words and MS first candidate words, the MS first candidate words do not belong to the uncommon word library, S is a positive integer, and S is less than or equal to M; After displaying the M candidate words associated with the target encoding string, the method further includes: receiving a second input of a first target uncommon word among the S uncommon words; In response to the second input, the first target uncommon word is displayed in the input box of the target interface.

3. The method according to claim 1, characterized in that The target rare words include S rare words; Display M candidate words associated with the target encoded string, including: In the case where the target uncommon words include M uncommon words, displaying the M uncommon words according to a first sorting rule; or, In the case where the target uncommon words include S uncommon words, and the M candidate words include the S uncommon words and MS first candidate words, the S uncommon words and the MS first candidate words are displayed according to a second sorting rule, and the display rule of the S uncommon words is the first sorting rule; The first sorting rule includes at least one of the following: the usage frequency of the uncommon words associated with the target code string in the target interface; the sending time of the uncommon words associated with the target code string in the target interface; the target priority of the uncommon words associated with the target code string in the target interface; The second sorting rule is that the S uncommon words are displayed in a first area, and the MS first candidate words are displayed in a second area, and the first area and the second area are different display areas.

4. The method according to any one of claims 1 to 3, characterized in that In the case where the target interface includes a target uncommon word, before adding the target uncommon word to the uncommon word library, the method includes: Under the condition that preset conditions are met, identifying uncommon words in the target interface; The preset condition includes at least one of the following: receiving a preset input from a user for the target interface; reaching a preset recognition time interval; and receiving a message at the target interface.

5. An input device, characterized in that: The device comprises: a processing module, a receiving module and a display module; The processing module is used to add the target uncommon words to the uncommon word library when the target interface includes the target uncommon words; The receiving module is used to receive a first input for inputting a target coded string in the target interface, wherein the target coded string is associated with the target uncommon word; the target coded string includes a first string and a second string, wherein the first string is used to indicate a candidate word matching the target coded string, and the second string is used to indicate a target contact, wherein the target contact is one of the multiple contacts in the target interface; The processing module is further configured to determine M candidate words according to the first character string in response to the first input received by the receiving module; and determine the target uncommon word from the M candidate words according to the second character string; The display module is used to display the target uncommon words determined by the processing module, the M candidate words include the target uncommon words determined from the uncommon word library, and M is a positive integer.

6. The device according to claim 5, characterized in that The M candidate words are displayed in the candidate area; the target uncommon words include S uncommon words, the M candidate words include the S uncommon words and MS first candidate words, the MS first candidate words do not belong to the uncommon word library, S is a positive integer, and S is less than or equal to M; The receiving module is further configured to receive a second input of a first target uncommon word among the S uncommon words after displaying the M candidate words associated with the target coded character string; The display module is further configured to display the first target uncommon vocabulary in the input box of the target interface in response to the second input received by the receiving module.

7. The device according to claim 5, characterized in that The target rare words include S rare words; The display module is specifically configured to display the M uncommon words according to a first sorting rule when the target uncommon words include M uncommon words; or, when the target uncommon words include S uncommon words and the M candidate words include the S uncommon words and MS first candidate words, display the S uncommon words and the MS first candidate words according to a second sorting rule, and the display rule of the S uncommon words is the first sorting rule; The first sorting rule includes at least one of the following: the usage frequency of the uncommon words associated with the target code string in the target interface; the sending time of the uncommon words associated with the target code string in the target interface; the target priority of the uncommon words associated with the target code string in the target interface; The second sorting rule is that the S uncommon words are displayed in a first area, and the MS first candidate words are displayed in a second area, and the first area and the second area are different display areas.

8. The device according to any one of claims 5 to 7, characterized in that The processing module is further used to identify uncommon words in the target interface when a preset condition is met; The preset condition includes at least one of the following: receiving a preset input from a user for the target interface; reaching a preset recognition time interval; and each time the target interface receives a message.

Citation Information

Patent Citations

  • Vocabulary recommendation method and apparatus

    CN105302335A