CN112346578A - Input method and device - Google Patents

Input method and device Download PDF

Info

Publication number
CN112346578A
CN112346578A CN202011272588.8A CN202011272588A CN112346578A CN 112346578 A CN112346578 A CN 112346578A CN 202011272588 A CN202011272588 A CN 202011272588A CN 112346578 A CN112346578 A CN 112346578A
Authority
CN
China
Prior art keywords
target
uncommon
vocabulary
candidate
vocabularies
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011272588.8A
Other languages
Chinese (zh)
Inventor
陈琛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202011272588.8A priority Critical patent/CN112346578A/en
Publication of CN112346578A publication Critical patent/CN112346578A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses an input method and device, and belongs to the technical field of communication. The problems that the operation process of inputting the rarely-used words is complicated and the input efficiency is low can be solved. The method comprises the following steps: under the condition that the target interface comprises the target uncommon vocabulary, adding the target uncommon vocabulary to a uncommon vocabulary library; receiving a first input in the target interface for inputting a target encoding string, the target encoding string being associated with the target uncommon word; in response to the first input, displaying M candidate words associated with the target encoded string, the M candidate words including the target uncommon word identified from the uncommon word library, M being a positive integer. The method can be applied to the scene of inputting the uncommon vocabulary.

Description

Input method and device
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to an input method and device.
Background
With the development of electronic device technology, the technology of input method as a bridge between users and electronic devices is also rapidly developed. A user may input various characters into the electronic device through an input method.
Currently, when a user inputs a 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 a rarely-used word including a plurality of rarely-used words as an example, in a group chat interface, if a rarely-used word appears in the chat content sent by the user a and the user B also needs to input the rarely-used word in a reply message, the user B needs to query the pinyin of each rarely-used word in the rarely-used words and determine each rarely-used word one by one when inputting the pinyin so as to input the rarely-used word.
Therefore, the operation process of inputting the uncommon vocabulary by the user is complicated, and the input efficiency is low.
Disclosure of Invention
The embodiment of the application aims to provide an input method and device, which can solve the problems of complicated operation process and low input efficiency of inputting uncommon words.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an input method, where the method includes: under the condition that the target interface comprises the target uncommon vocabulary, adding the target uncommon vocabulary to a uncommon vocabulary library; receiving a first input in the target interface for inputting a target encoding string, the target encoding string being associated with the target uncommon word; in response to the first input, displaying M candidate words associated with the target encoded string, the M candidate words including the target uncommon word identified from the uncommon word library, M being a positive integer.
In a second aspect, an embodiment of the present application provides an input device, including: the device comprises a processing module, a receiving module and a display module. The processing module is used for adding the target uncommon vocabulary to the uncommon vocabulary library under the condition that the target interface comprises the target uncommon vocabulary; a receiving module for receiving a first input for inputting a target encoding string in the target interface, the target encoding string being associated with the target uncommon word; a display module, configured to display, in response to the first input received by the receiving module, M candidate words associated with the target code string, where the M candidate words include the target uncommon word determined from the uncommon word library, and M is a positive integer.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium on which a program or instructions are stored, which when executed by a processor, implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, and the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, under the condition that the target interface comprises the target uncommon vocabulary, the target uncommon vocabulary is added to the uncommon vocabulary library; receiving a first input used for inputting a target code character string associated with the target uncommon word in the target interface; and in response to the first input, displaying M candidate words associated with the target encoded string, the M candidate words including the target uncommon word determined from the uncommon word library, M being a positive integer. By the method, the electronic equipment automatically identifies the target uncommon vocabulary in the target interface, adds the target uncommon vocabulary to the uncommon vocabulary library, and then triggers the electronic equipment to display M candidate vocabularies comprising the target uncommon vocabulary by inputting a target coding character string associated with the target uncommon vocabulary if the user needs to input the target uncommon vocabulary. Compared with the related technology, the method does not need to determine each uncommon word in the uncommon vocabulary one by one after the user inputs the target coding character string, so that the uncommon vocabulary can be input quickly and conveniently, and the input experience of the user is improved.
Drawings
Fig. 1 is a schematic diagram of an input method according to an embodiment of the present application;
fig. 2 is an operation diagram of an electronic device displaying a target uncommon word according to an embodiment of the present disclosure;
fig. 3 is a second schematic diagram of an input method according to an embodiment of the present application;
fig. 4 is a third schematic diagram of an input method according to an embodiment of the present application;
fig. 5 is a fourth schematic diagram of an input method according to an embodiment of the present application;
fig. 6 is a fifth schematic diagram of an input method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an input device according to an embodiment of the present disclosure;
fig. 8 is a hardware schematic diagram of an electronic device according to an embodiment of the present disclosure;
fig. 9 is a second hardware schematic diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. The objects distinguished by "first", "second", and the like are usually a class, and the number of the objects is not limited, and for example, the first object may be one or a plurality of objects. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The input method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
The input method provided by the embodiment of the application can be applied to the following scenes:
in the scene 1, when a user inputs a rarely-used word for the first time, the user needs to query the pinyin of each rarely-used word in the rarely-used words, and when the pinyin is input, each word in the rarely-used word is determined one by one.
And 2, when the user inputs a rarely-used word, the user can trigger the electronic equipment to be switched to a handwriting input method, and the rarely-used word is input through handwriting operation on the electronic equipment.
In the embodiment of the application, under the condition that the target interface comprises the target uncommon vocabulary, the target uncommon vocabulary is added to the uncommon vocabulary library; receiving a first input used for inputting a target code character string associated with the target uncommon word in the target interface; and in response to the first input, displaying M candidate words associated with the target encoded string, the M candidate words including the target uncommon word determined from the uncommon word library, M being a positive integer. By the method, the electronic equipment automatically identifies the target uncommon vocabulary in the target interface, adds the target uncommon vocabulary to the uncommon vocabulary library, and then triggers the electronic equipment to display M candidate vocabularies comprising the target uncommon vocabulary by inputting a target coding character string associated with the target uncommon vocabulary if the user needs to input the target uncommon vocabulary. Compared with the related technology, the method does not need to determine each uncommon word in the uncommon vocabulary one by one after the user inputs the target coding character string, so that the uncommon vocabulary can be input quickly and conveniently, and the input experience of the user is improved.
As shown in fig. 1, an embodiment of the present application provides an input method, which may include steps 101 to 103 described below.
Step 101, under the condition that the target interface comprises the target uncommon vocabulary, the electronic equipment adds the target uncommon vocabulary to a uncommon vocabulary library.
In the embodiment of the present application, the target interface is an interface for displaying a target uncommon word. Specifically, the target interface may be a chat interface of the electronic device (e.g., a chat interface of a chat group), a content reading interface (e.g., an interface for reading an article through a browser, a reader, editing software, etc.), and the like. The determination can be specifically carried out according to the actual use requirement. The following embodiments are exemplified by a chat interface in which the target interface is a group.
Optionally, in the embodiment of the present application, the target uncommon words refer to words that are rarely used or difficult to input by using a common input method. The target uncommon word can be a word in Chinese or any other language. The specific uncommon target words can be any one of the following: rarely used Chinese characters, rarely used professional terms, rarely used words in other languages, and the like. The determination may be specifically performed according to actual use requirements, and the embodiment of the present application is not specifically limited.
It should be noted that, the way for the electronic device to identify the uncommon word of the target in the target interface can refer to the following detailed description in step 104, which is not repeated herein.
Optionally, in this embodiment of the application, the uncommon vocabulary library may be a rarely-used vocabulary library based on a certain application program, may also be a rarely-used vocabulary library set by a certain user, and may also be a rarely-used vocabulary library based on only a current target interface. Specifically, one way is: in the case that the electronic device recognizes that the target interface includes the target uncommon word, a uncommon word library (which can be used for adding all the uncommon words in the interface) can be created based on the target interface, and the target uncommon word can be added to the uncommon word library. The other mode is as follows: in the case where the electronic device recognizes that the target interface includes the target uncommon vocabulary, the electronic device may also add the target uncommon vocabulary to an already existing uncommon vocabulary library, wherein the uncommon vocabulary library may be user-based or application-based. The determination may be specifically performed according to actual use requirements, and the embodiment of the present application is not specifically limited.
Step 102, the electronic device receives a first input for inputting a target encoding string in a target interface.
The target code character string is associated with the target uncommon word.
It should be noted that, in the embodiment of the present application, the target code string is used to indicate the target uncommon word. Specifically, the target encoding character string may have different encoding modes based on different input methods. Specifically, the target encoding string may be any one of: pinyin related to the target uncommon vocabulary, the first letter of the pinyin related to the target uncommon vocabulary, stroke codes related to the target uncommon vocabulary and the like. For example, assuming that the target uncommon word is "generate", then the code string of the associated pinyin is "chi chu"; the first letter code string of the associated pinyin is 'cc'; the associated five-stroke code string is "TTTH FHK". The specific coding mode of the coding character string is not specifically limited in the embodiment of the application, and the target coding character string associated with the target uncommon vocabulary can be determined according to the coding mode associated with the actually used input method.
Optionally, in this embodiment of the application, the first input user inputs the target encoding character string in the target interface. Specifically, the first input may be an input for inputting a target encoding string by voice, and the content of the voice is used for indicating the target encoding string; the first input may also be an input for manually inputting the target encoding character string by a preset input method. The input mode of the target code character string is not specifically limited, for example, the input can be performed on the target interface through a physical keyboard by a user; the virtual keyboard may also be input in the target interface after the user triggers the electronic device to display the virtual keyboard in the target interface, and the like, which may be specifically determined according to actual use requirements, and the embodiment of the present application is not specifically limited.
Step 103, the electronic equipment responds to the first input and displays M candidate words associated with the target code character string.
The M candidate words comprise the target uncommon word determined from the uncommon word library, and M is a positive integer.
It should be noted that, in the embodiment of the present application, the M candidate words are words associated with a target edit string, and the M candidate words may include words belonging to the uncommon word library (for example, a target uncommon word) and words not belonging to the uncommon word library (for example, a first candidate word in the following embodiments).
Optionally, in this embodiment of the present application, the manner in which the electronic device determines the M candidate words may be: the electronic equipment compares the rarely-used vocabulary library with the universal input method vocabulary library in sequence according to the received target coding character string; then, the electronic equipment forms M candidate words by the target uncommon word which is determined from the uncommon word library and is associated with the target coding character string and a plurality of first candidate words which are determined from the universal input method word library and are displayed in the candidate area. Wherein, the candidate area can be used to display the M candidate vocabularies for the user to select.
For example, assuming that the code string of the pinyin input by the user is "chi chu" (i.e., the target code string), the electronic device may display "sweet" obtained from matching in the uncommon vocabulary library, and "eat", "brush", and "hesitate " obtained from matching in the universal input method vocabulary library, etc. in the candidate area of the target interface. In this manner, the electronic apparatus can display 4 candidate words (i.e., M is equal to 4) associated with the target code string "chi chu" for "dividend", "stull", and "hesitate " in the candidate area, thereby facilitating the user to select the word that the user needs to input.
For example, fig. 2 is an operation diagram of the electronic device displaying the uncommon word. As shown in fig. 2 (a), the electronic device 001 currently displays a chat interface 002 (i.e., a target interface) of the plum and the queen, and after detecting that the target uncommon word "porthole book" exists in the chat content in the chat interface 002, the electronic device 001 may add the "porthole book" to the uncommon word bank. The user smallish needs to reply in the chat interface, as shown in fig. 2 (b), after the user can input the character string "ffdd" (i.e., the target code character string) in the message reply field 006, the electronic device 001 displays words associated with "ffdd" in the candidate area 007, such as: "Fundao", "Fuliduo", "outgoing", and "legal", etc., wherein "Fundao" is the target uncommon word obtained by matching "ffdd" with the uncommon word library. Thereafter, the user can select a word desired by the user in the candidate region 007 for input.
The embodiment of the application provides an input method, under the condition that a target interface comprises a target uncommon word, the target uncommon word is added to a uncommon word library; receiving a first input of a target code character string associated with the target uncommon word input in the target interface; and in response to the first input, displaying M candidate words associated with the target encoded string, the M candidate words including the target uncommon word determined from the uncommon word library, M being a positive integer. By the method, the electronic equipment automatically identifies the target uncommon vocabulary in the target interface, adds the target uncommon vocabulary to the uncommon vocabulary library, and then triggers the electronic equipment to display M candidate vocabularies comprising the target uncommon vocabulary by inputting a target coding character string associated with the target uncommon vocabulary if the user needs to input the target uncommon vocabulary. Compared with the related technology, the method does not need to determine each uncommon word in the uncommon vocabulary one by one after the user inputs the target coding character string, so that the uncommon vocabulary can be input quickly and conveniently, and the input experience of the user is improved.
Optionally, with reference to fig. 1, as shown in fig. 3, before the step 101, the input method provided in the embodiment of the present application may further include the following step 104.
And step 104, under the condition that the preset conditions are met, the electronic equipment identifies uncommon words in the target interface.
Wherein the preset conditions include at least one of the following conditions: receiving preset input of a user for a target interface; reaching a preset identification time interval; the target interface receives every message.
Optionally, in this embodiment of the application, the preset condition is that a preset input of the user for the target interface is received, which means that the electronic device is triggered to recognize the uncommon word in the target interface when the input of the user for the target interface is received by the electronic device as the preset input. The preset input can be physical key input to the electronic equipment, and the physical key is used for triggering the electronic equipment to identify a uncommon word in a target interface; the preset input can also be voice input of a user, and the content of the voice input is used for indicating the electronic equipment to identify a uncommon word in the target interface; the preset input may also be a touch input to a target interface of the electronic device, where the touch input may be any one of: single click, double click, long press, sliding according to a preset trajectory, etc. The method can be determined according to actual use requirements, and the embodiment of the application is not particularly limited.
Optionally, in this embodiment of the application, the preset condition that the preset recognition time interval is reached means that the electronic device recognizes the uncommon vocabulary in the target interface according to the preset time period, that is, the electronic device automatically starts recognizing the uncommon vocabulary in the target interface when the time interval associated with the preset time period is reached. If the interface of the electronic device is updated in real time, the automatic identification may be to identify the updated content, or to identify the entire interface. The method can be determined according to actual use requirements, and the embodiment of the application is not particularly limited.
Optionally, in the embodiment of the application, the preset condition is that each time the target interface receives one message, that is, each time the currently displayed target interface receives one message, the electronic device automatically detects the content of the message to identify the uncommon vocabulary, and under the condition that the uncommon vocabulary is identified, the electronic device can directly add the uncommon vocabulary to the uncommon vocabulary library. It should be noted that, in order to reduce the workload of detecting by the electronic device, the electronic device may determine a message received at the latest time, and detect a word uncommon to the content of the message. Therefore, under the condition that the target interface receives one message every time, the content of the message is subjected to rarely-used word recognition, the detection period can be further shortened, and the real-time performance of rarely-used word detection is better.
Optionally, in this embodiment of the application, the manner in which the electronic device identifies the uncommon word in the target interface may be specifically implemented by the following step a and step B.
Step A, the electronic equipment identifies all vocabularies in the target interface and matches original code character strings associated with all the vocabularies with preset code character strings associated with a word bank of a user input method.
Optionally, in the embodiment of the present application, in the process of matching the original code character string with the preset code character string associated with the user input method lexicon, the matching may be performed according to a preset matching priority, and the preset matching priority may be set according to a use habit, a grammar structure habit, a vocabulary formation habit, and the like of a tool user. The embodiments of the present application are not particularly limited.
And step B, the electronic equipment determines the vocabulary of which the original code character string is not matched with the preset code character string as the target uncommon vocabulary.
It should be noted that the essence of the above identification process is: whether each vocabulary can be rapidly input through a user input method lexicon or not, and if not, the vocabulary is a target rarely-used vocabulary. Namely, the original coded character string associated with each vocabulary is compared with the preset coded character string associated with the same vocabulary in the user input method lexicon, and the vocabulary is determined to be the target uncommon vocabulary under the condition that the original coded character string is not matched with the preset coded character string.
Illustratively, as shown in FIG. 2 (a), the electronic device compares the primary encoding string "fldd" associated with "FulingDang" in the chat interface with the preset string "fulongdd" in the user input method thesaurus (where "fldd" is associated with "Fulingduo" in the user input method thesaurus). When the 'fldd' in the user input method word bank is not associated with the 'porthole dictionary' (namely the original coding character string is not matched with the preset coding character string), the electronic equipment determines the 'porthole dictionary' as the target uncommon word and can add the target uncommon word into the uncommon word bank.
It can be understood that the electronic device can identify the uncommon vocabulary in the target interface and add the identified target uncommon vocabulary to the uncommon vocabulary library when preset conditions such as preset input of a user for the target interface is received, a preset identification time interval is reached, or the target interface receives a message and the like are met. Therefore, the user can determine the trigger mode for identifying the target interface according to the actual use requirement, so that convenience is brought to the user, and the use experience of the user is improved.
Optionally, with reference to fig. 1, as shown in fig. 4, M candidate words are displayed in the candidate area; the target uncommon vocabulary comprises S uncommon vocabularies, the M candidate vocabularies comprise the S uncommon vocabularies and M-S first candidate vocabularies, the M-S first candidate vocabularies do not belong to the uncommon vocabulary library, S is a positive integer, and S is less than or equal to M. After the step 103, the input method provided in the embodiment of the present application further includes the following steps 105 and 106.
Step 105, the electronic device receives a second input of the first target uncommon word in the S uncommon words.
In the embodiment of the present application, the S uncommon words are the uncommon words associated with the target code string determined from the uncommon word library. The M-S first candidate words are words which are matched from other word libraries except the uncommon words and are associated with the target code string. Wherein, the other vocabulary library can be any one of the following items: user vocabulary library, input method vocabulary library, universal vocabulary library, etc. As exemplified above in FIG. 2, the target code string "ffdd" may be associated in a obscure vocabulary library: "Secondary vault classical" and "happiness family" (i.e., S2, including two target uncommon words) are associated in a universal vocabulary library: "how much welfare", "sent", and "legal", etc. (i.e., M-5, M-S-3, i.e., the three first candidate words).
Optionally, in this embodiment of the application, the candidate area is an area where the electronic device displays a plurality of candidate words after the user inputs the encoded character string. E.g., candidate region 007 in fig. 2, etc. It should be noted that the candidate area may be displayed independently with a certain area of the target interface, or may be displayed together with the input method keyboard (as in the display mode in fig. 2). The specific display position and the display mode may be determined according to actual use requirements, and the embodiment of the present application is not particularly limited.
Optionally, in the embodiment of the present application, the second input is used to determine the first target uncommon word from the S uncommon words. Specifically, the first input may be a touch input of a first target uncommon word in the S approved words under the condition that the S uncommon words are displayed by the electronic device. The first input may also be a touch input to a first identifier of the S identifiers when the electronic device displays S identifiers associated with the S uncommon words (one identifier is associated with each uncommon word), and the electronic device determines the uncommon word associated with the first identifier as the first target uncommon word in response to the touch input. The touch input may be any one of the following: single click, double click, long press, drag according to a preset trajectory, etc. The method can be determined according to actual use requirements, and the embodiment of the application is not particularly limited.
And 106, responding to the second input by the electronic equipment, and displaying the first target uncommon word in an input box of a target interface.
Optionally, in this embodiment of the application, the input box of the target interface is an input box in which the user can input reply content, and the user can edit the input content in the input box and then send the edited content. For example, the input box of the target interface may be specifically the message reply bar 006 shown in (b) in fig. 2, or the like.
It should be noted that displaying the first target uncommon word in the input box of the target interface can facilitate the user to confirm again whether the input content is the content required by the user, and can perform re-editing operation on the content in the input field, thereby facilitating the user to use.
It is understood that, in the case that the target uncommon vocabulary includes a plurality of uncommon vocabularies, the electronic device may display the plurality of uncommon vocabularies and the first candidate vocabulary in the candidate area, and the user may select the first target uncommon vocabulary from the plurality of uncommon vocabularies, thereby triggering the electronic device to display the first target uncommon vocabulary in the input field of the target interface. That is, when the target uncommon vocabulary includes a plurality of uncommon vocabularies, the user can manually select the first target uncommon vocabulary required by the user, so that the first target uncommon vocabulary required by the user can be more quickly and accurately input.
Optionally, referring to fig. 5 in conjunction with fig. 1, 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, the second string is used to indicate a target contact, and the target contact is one of the contacts in the target interface. The "displaying M candidate words associated with the target code string" in step 103 described above can be specifically realized by the following steps 103a and 103 b.
Step 103a, the electronic device determines M candidate words according to the first character string.
In this embodiment, the second character string is used to indicate that one of the contacts is included in the target interface. Specifically, the second character string may be any one of: a nickname for the indicated contact, a phone number for the indicated contact, a string identification for the indicated contact, etc.
Illustratively, assume that the target interface is a group chat interface including user a, user B, and user C, user a mentions "porthole" in a piece of chat content, and user B mentions "porthole" in a piece of chat content. Then the user may enter the target code string as "ffdd-a", where the first string is "ffdd" to indicate the target uncommon word and the second string is "— a" to indicate the target contact user a.
It should be noted that, in the embodiment of the present application, the determining M candidate vocabularies according to the first character string means that the electronic device matches the first character string with the uncommon vocabulary library and other vocabulary libraries to obtain M candidate vocabularies meeting the requirement. The M candidate words may include uncommon words. The second character string is used for rapidly determining the target uncommon vocabulary from the plurality of uncommon vocabularies according to the historical chat records of the target contact, namely the historical chat records of the target contact comprise the target uncommon vocabulary.
And step 103b, the electronic equipment determines the target uncommon vocabulary from the M candidate vocabularies according to the second character string and displays the target uncommon vocabulary.
Optionally, in this embodiment of the application, the specific way for the electronic device to determine the target uncommon word from the M candidate words according to the second character string may be: the electronic equipment firstly determines M candidate words from a uncommon word library according to the first character string (wherein the M candidate words can comprise a plurality of uncommon words); then, the electronic device may detect all the chat records of the target contact indicated by the second character according to the second character, and further determine a target uncommon word belonging to the M candidate words from the chat records.
Illustratively, assume that the target interface is a group chat interface including user a, user B, and user C, user a mentions "porthole" in a piece of chat content, and user B mentions "porthole" in a piece of chat content. If the user can enter the target code string as "ffdd-A", where the first string is "ffdd" to indicate the target uncommon word and the second string is "-A" to indicate the target contact user A. Then, the electronic device may filter "gallery allusion" and "happiness allusion" for "ffdd" according to the first character string, and then compare the "ffdd" associated target uncommon vocabulary of "gallery allusion" from the chat records of the user a according to the second character string "-a". Subsequently, the electronic device can display the target uncommon word as "portugal" after determining the target uncommon word.
It is understood that the electronic device may indicate M candidate words matching the target character string according to the first character string, and then the electronic device determines the target uncommon word from the M candidate words according to the second character string and displays the target uncommon word. Therefore, the electronic equipment can quickly and accurately determine the target uncommon vocabulary from the candidate vocabularies according to the target contact person and display the target uncommon vocabulary, so that the electronic equipment is convenient for users to use.
Optionally, referring to fig. 1, as shown in fig. 6, the target uncommon vocabulary includes S uncommon vocabularies. The step 103 may be implemented by the following steps 103c and 103d, and the step 103c and the step 103d are alternatively executed.
Step 103c, the electronic equipment responds to the first input, and under the condition that the target uncommon vocabulary comprises M uncommon vocabularies, the electronic equipment displays the M uncommon vocabularies according to the first sequencing rule.
Wherein the first ordering rule comprises at least one of: the use frequency of the uncommon vocabulary associated with the target coding character string in the target interface; sending time of the uncommon vocabulary associated with the target code character string in the target interface; and target priority of the obscure vocabulary associated with the target code character string in the target interface.
It should be noted that the target priority may be determined by other contents than the uncommon word in the target content. For example, words other than uncommon words, symbols (e.g., "@", "&" below), expressions, etc. in a sentence.
Optionally, in this embodiment of the application, the first ordering rule is a usage frequency of the uncommon vocabulary associated with the target code string in the target interface, and means that the electronic device may set a display order of the M uncommon vocabularies according to the usage frequency of the uncommon vocabulary. Wherein, the display order can be directly proportional to the use frequency or inversely proportional.
For example, assuming that "Suanjudo" appears 3 times and "Fuludian" appears only 1 time in a certain chat interface, the electronic device may display "Suanjudo" at a first location in the candidate area and "Fuludian" at a second location next to the first location when the user inputs that the target string is "fldd". Wherein, the left position of the candidate area is the position for displaying the vocabulary with higher use frequency.
Optionally, in this embodiment of the application, the sending time of the uncommon vocabulary associated with the target code string in the target interface indicates that the electronic device may set the display sequence of the M uncommon vocabularies according to the sending time of the content including the uncommon vocabulary. The display order may be a priority display in which the reception time is later, a later display in which the reception time is earlier, or a display in which the reception time is reversed.
Illustratively, assume that user A sends content that includes "Secondary Advance" five minutes ago in a chat interface; if "happiness, salary, etc. is included in the content sent by the user B one minute ago, then, when the user inputs that the target character string is" fldd ", the electronic device may display" happiness, salary, etc. at the left position of the candidate area and "happiness, salary, etc. at the right position. The left position of the candidate area is used for displaying the vocabulary which is closest to the current time and is matched with the target character string.
Optionally, in this embodiment of the application, the target priority of the uncommon vocabulary associated with the target code character string in the target interface refers to a priority that the electronic device can determine according to other contents in the target content except the uncommon vocabulary, and set a display order of the M uncommon vocabularies. The target content may be a sentence or a piece of content sent by a user, and the target content includes the target uncommon word. The target priority may be determined by whether a preset priority flag is included in the target content, and if the preset priority flag is included, the target uncommon word in the sentence is preferentially displayed. The preset priority identification user can set according to actual use requirements, for example, the preset priority identification user can be "@", "&" and the like.
For example, assuming that in a certain chat group, one chat record of the user a is "little lie," you recommend today, and the vault name you say last time is good at @ ", the electronic device may include a preset priority identifier" @ "according to the sentence, and when the user inputs the target character string as" fldd ", the electronic device may display a high-priority target uncommon word" vault name "in a left position of the candidate area, where the left position of the candidate area is used for displaying a higher-priority word in words matched with the target character string.
Step 103d, the electronic device responds to the first input, and displays the S uncommon words and the M-S first candidate words according to a second sorting rule under the condition that the target uncommon words comprise S uncommon words and the M candidate words comprise S uncommon words and the M-S first candidate words.
The display rule of the S uncommon words is a first sorting rule, the second sorting rule is that the S uncommon words are displayed in a first area, the M-S first candidate words are displayed in a second area, and the first area and the second area are different display areas.
It should be noted that, in the embodiment of the present application, reference may be made to the detailed description about the first sorting rule in step 103c for a specific sorting manner for displaying the M-S first candidate words according to the first sorting rule, which is not described herein again.
Optionally, in this embodiment of the application, the priority of the first area is higher than the priority of the second area. Specifically, in the actual use process, the first area and the second area may be two different areas which are separately arranged, and the first area and the second area may also be two sub-areas at different positions of the same area. The embodiments of the present application are not particularly limited. For example, the first area may be a top area of the electronic screen, and the second area may be a bottom area of the electronic device; the first area may be a left area of the candidate area and the second area may be a right area of the candidate area.
It can be understood that the electronic device can display the uncommon vocabulary according to the first sorting rule and display the plurality of uncommon vocabularies and the plurality of first candidate vocabularies according to the second sorting rule. Therefore, the electronic equipment can display the vocabulary with higher user use probability in the position convenient for the user to select according to the use habit of the user, so that the user can operate conveniently, the time of the user is saved, and the user use experience is improved.
It should be noted that, in the input method provided in the embodiment of the present application, the execution main body may be an input device, or a control module in the input device for executing the input method. In the embodiment of the present application, an input method executed by an input device is taken as an example to describe the device provided in the embodiment of the present application.
As shown in fig. 7, an input device 700 is provided in the present embodiment. 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 configured to add the target uncommon word to the uncommon word library in a case where the target interface includes the target uncommon word. A receiving module 702 may be configured to receive a first input in a target interface for inputting a target encoding string associated with the target uncommon word. A display module 703, configured to display M candidate words associated with the target code string in response to the first input received by the receiving module 702, where the M candidate words include the target uncommon word determined from the uncommon word library, and M is a positive integer.
Optionally, in the embodiment of the present application, M candidate vocabularies are displayed in the candidate area, the target uncommon vocabulary includes S uncommon vocabularies, the M candidate vocabularies include S uncommon vocabularies and M-S first candidate vocabularies, the M-S first candidate vocabularies do not belong to the uncommon vocabulary library, S is a positive integer, and S is less than or equal to M. The receiving module 702 may be further configured to receive a second input of the first target uncommon word of the S uncommon words after displaying the M candidate words associated with the target encoding string. The display module 703 may be further configured to display the first target uncommon word in an input box of a target interface in response to the second input received by the receiving module 702.
Optionally, in this embodiment of the present application, the target encoding character string includes a first character string and a second character string, where the first character string is used to indicate a candidate vocabulary matching the target character string, and the second character string is used to indicate a target contact, and the target contact is one of a plurality of contacts in the target interface. The processing module 701 may be specifically configured to determine M candidate vocabularies according to the first character string; determining the target uncommon vocabulary from the M candidate vocabularies according to the second character string; and controlling a display module to display the target uncommon vocabulary.
Optionally, in the embodiment of the present application, the target uncommon word includes S uncommon words. The display module 703 may be specifically configured to display the M uncommon vocabularies according to the first ordering rule when the target uncommon vocabularies include the M uncommon vocabularies; or under the condition that the target uncommon vocabulary comprises S uncommon vocabularies and M candidate vocabularies comprise S uncommon vocabularies and M-S first candidate vocabularies, the S uncommon vocabularies and the M-S first candidate vocabularies are displayed according to a second sorting rule, and the display rule of the S uncommon vocabularies is a first sorting rule. Wherein the first ordering rule comprises at least one of: the use frequency of the uncommon vocabulary associated with the target code character string in the target interface; the sending time of the uncommon vocabulary associated with the target code character string in the target interface; target priority of the uncommon vocabulary 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, the M-S first candidate words are displayed in a second area, and the first area and the second area are different display areas.
Optionally, in this embodiment of the application, the processing module 701 may be further configured to identify an uncommon word in the target interface when a preset condition is met. Wherein the preset condition comprises at least one of the following: receiving preset input of a user for a target interface; reaching a preset identification time interval; the target interface receives every message.
The input device in the embodiment of the present application may be a functional entity and/or a functional module in an electronic device, which executes an input method, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and 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, and the like, and the embodiments of the present application are not particularly limited.
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 (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The input device provided in the embodiment of the present application can implement each process implemented by the input device in the method embodiments of fig. 1 to fig. 7, and is not described here again to avoid repetition.
The embodiment of the application provides an input device, which is used for adding a target uncommon word to a uncommon word library under the condition that a target interface comprises the target uncommon word; receiving a first input used for inputting a target code character string associated with the target uncommon word in the target interface; and in response to the first input, displaying M candidate words associated with the target encoded string, the M candidate words including the target uncommon word determined from the uncommon word library, M being a positive integer. By the method, the input device automatically identifies the target uncommon vocabulary in the target interface, the target uncommon vocabulary is added to the uncommon vocabulary library, and then if the user needs to input the target uncommon vocabulary, the user triggers the input device to display M candidate vocabularies comprising the target uncommon vocabulary by inputting a target coding character string associated with the target uncommon vocabulary. Compared with the related technology, the method does not need to determine each uncommon word in the uncommon vocabulary one by one after the user inputs the target coding character string, so that the uncommon vocabulary can be input quickly and conveniently, and the input experience of the user is improved.
Optionally, as shown in fig. 8, an electronic device 800 is further provided in this embodiment of the present application, and includes a processor 801, a memory 802, and a program or an instruction stored in the memory 802 and executable on the processor 801, where the program or the instruction is executed by the processor 801 to implement each process of the above-mentioned input method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
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.
Among other things, the input unit 2004 may include a graphic 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 may be used to store software programs (e.g., an operating system, an application program required for at least one function), and various data.
Those skilled in the art will appreciate that the electronic device 2000 may further include a power supply (e.g., a battery) for supplying power to various components, and the power supply may be logically connected to the processor 2010 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system. The electronic device structure shown in fig. 9 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The processor 2010 may be configured to add the target uncommon word to the uncommon word library if the target interface includes the target uncommon word. A user input unit 2007 may be used to receive a first input in the target interface for inputting a target encoded string associated with the target uncommon word. A display unit 2006, configured to display M candidate words associated with the target code string in response to the first input received by the user input unit 2007, where the M candidate words include the target uncommon word determined from the uncommon word library, and M is a positive integer.
The embodiment of the application provides electronic equipment, wherein under the condition that a target interface comprises a target uncommon word, the target uncommon word is added to a uncommon word library; receiving a first input used for inputting a target code character string associated with the target uncommon word in the target interface; and in response to the first input, displaying M candidate words associated with the target encoded string, the M candidate words including the target uncommon word determined from the uncommon word library, M being a positive integer. By the method, the electronic equipment automatically identifies the target uncommon vocabulary in the target interface, adds the target uncommon vocabulary to the uncommon vocabulary library, and then triggers the electronic equipment to display M candidate vocabularies comprising the target uncommon vocabulary by inputting a target coding character string associated with the target uncommon vocabulary if the user needs to input the target uncommon vocabulary. Compared with the related technology, the method does not need to determine each uncommon word in the uncommon vocabulary one by one after the user inputs the target coding character string, so that the uncommon vocabulary can be input quickly and conveniently, and the input experience of the user is improved.
Optionally, in the embodiment of the present application, M candidate vocabularies are displayed in the candidate area, the target uncommon vocabulary includes S uncommon vocabularies, the M candidate vocabularies include S uncommon vocabularies and M-S first candidate vocabularies, the M-S first candidate vocabularies do not belong to the uncommon vocabulary library, S is a positive integer, and S is less than or equal to M. The user input unit 2007 may be further configured to receive a second input of the first target uncommon word of the S uncommon words after displaying the M candidate words associated with the target encoding string. The display unit 2006 may also be used to display the first target uncommon word in an input box of a target interface in response to the second input received by the user input unit 2007.
It is understood that, in the case that the target uncommon vocabulary includes a plurality of uncommon vocabularies, the electronic device may display the plurality of uncommon vocabularies and the first candidate vocabulary in the candidate area, and the user may select the first target uncommon vocabulary from the plurality of uncommon vocabularies, thereby triggering the electronic device to display the first target uncommon vocabulary in the input field of the target interface. That is, when the target uncommon vocabulary includes a plurality of uncommon vocabularies, the user can manually select the first target uncommon vocabulary required by the user, so that the first target uncommon vocabulary required by the user can be more quickly and accurately input.
Optionally, in this embodiment of the present application, the target encoding character string includes a first character string and a second character string, where the first character string is used to indicate a candidate vocabulary matching the target character string, and the second character string is used to indicate a target contact, and the target contact is one of a plurality of contacts in the target interface. The processor 2010 may be specifically configured to determine M candidate words according to the first character string; determining the target uncommon vocabulary from the M candidate vocabularies according to the second character string; and controlling a display module to display the target uncommon vocabulary.
It is understood that the electronic device may indicate M candidate words matching the target character string according to the first character string, and then the electronic device determines the target uncommon word from the M candidate words according to the second character string and displays the target uncommon word. Therefore, the electronic equipment can quickly and accurately determine the target uncommon vocabulary from the candidate vocabularies according to the target contact person and display the target uncommon vocabulary, so that the electronic equipment is convenient for users to use.
Optionally, in the embodiment of the present application, the target uncommon word includes S uncommon words. The display unit 2006 is specifically configured to display the M uncommon vocabularies according to the first sorting rule when the target uncommon vocabularies include the M uncommon vocabularies; or under the condition that the target uncommon vocabulary comprises S uncommon vocabularies and M candidate vocabularies comprise S uncommon vocabularies and M-S first candidate vocabularies, the S uncommon vocabularies and the M-S first candidate vocabularies are displayed according to a second sorting rule, and the display rule of the S uncommon vocabularies is a first sorting rule. Wherein the first ordering rule comprises at least one of: the use frequency of the uncommon vocabulary associated with the target code character string in the target interface; the sending time of the uncommon vocabulary associated with the target code character string in the target interface; target priority of the uncommon vocabulary 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, the M-S first candidate words are displayed in a second area, and the first area and the second area are different display areas.
It can be understood that the electronic device can display the uncommon vocabulary according to the first sorting rule and display the plurality of uncommon vocabularies and the plurality of first candidate vocabularies according to the second sorting rule. Therefore, the electronic equipment can display the vocabulary with higher user use probability in the position convenient for the user to select according to the use habit of the user, so that the user can operate conveniently, the time of the user is saved, and the user use experience is improved.
Optionally, in this embodiment of the application, the processor 2010 may be further configured to identify an uncommon word in the target interface when a preset condition is met. Wherein the preset condition comprises at least one of the following: receiving preset input of a user for a target interface; reaching a preset identification time interval; the target interface receives every message.
It can be understood that the electronic device can identify the uncommon vocabulary in the target interface and add the identified target uncommon vocabulary to the uncommon vocabulary library when preset conditions such as preset input of a user for the target interface is received, a preset identification time interval is reached, or the target interface receives a message and the like are met. Therefore, the user can determine the trigger mode for identifying the target interface according to the actual use requirement, so that convenience is brought to the user, and the use experience of the user is improved.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements the processes of the above-mentioned embodiment of the input method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
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 Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the input method embodiment, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. An input method, characterized in that the method comprises:
under the condition that a target interface comprises a target uncommon word, adding the target uncommon word to a uncommon word library;
receiving a first input in the target interface for inputting a target encoding string, the target encoding string being associated with the target uncommon word;
in response to the first input, displaying M candidate words associated with the target encoded string, the M candidate words including the target uncommon word determined from the uncommon word library, M being a positive integer.
2. The method of claim 1, wherein the M candidate words are displayed in a candidate area; the target uncommon vocabulary comprises S uncommon vocabularies, the M candidate vocabularies comprise the S uncommon vocabularies and M-S first candidate vocabularies, the M-S first candidate vocabularies do not belong to the uncommon vocabulary library, S is a positive integer, and S is less than or equal to M;
after the displaying of the M candidate words associated with the target encoding string, the method further comprises:
receiving a second input of a first target uncommon word in the S uncommon words;
and responding to the second input, and displaying the first target uncommon word in an input box of the target interface.
3. The method of claim 1, wherein the target encoding string comprises a first string and a second string, wherein the first string is used for indicating a candidate word matched with the target string, and the second string is used for indicating a target contact, and the target contact is one of a plurality of contacts in the target interface;
the displaying of the M candidate words associated with the target encoding string includes:
determining the M candidate vocabularies according to the first character string;
and according to the second character string, determining the target uncommon vocabulary from the M candidate vocabularies, and displaying the target uncommon vocabulary.
4. The method of claim 1, wherein the target uncommon vocabulary comprises S uncommon vocabularies;
the displaying of the M candidate words associated with the target encoding string includes:
under the condition that the target uncommon vocabulary comprises M uncommon vocabularies, displaying the M uncommon vocabularies according to a first ordering rule; alternatively, the first and second electrodes may be,
under the condition that the target uncommon words comprise S uncommon words and M candidate words comprise the S uncommon words and M-S first candidate words, displaying the S uncommon words and the M-S first candidate words according to a second sorting rule, wherein the display rule of the S uncommon words is the first sorting rule;
wherein the first ordering rule comprises at least one of: the use frequency of the uncommon vocabulary associated with the target coding character string in the target interface; sending time of the uncommon vocabulary associated with the target code character string in the target interface; target priority of the uncommon vocabulary associated with the target coding character string in the target interface;
the second sorting rule is that the S uncommon words are displayed in a first area, the M-S first candidate words are displayed in a second area, and the first area and the second area are different display areas.
5. The method of any one of claims 1 to 4, wherein in the case that the target interface includes a target uncommon word, prior to adding the target uncommon word to the uncommon word library, the method comprises:
under the condition that a preset condition is met, recognizing a rarely-used word in the target interface;
wherein the preset condition comprises at least one of the following: receiving preset input of a user aiming at the target interface; reaching a preset identification time interval; the target interface receives a message.
6. An input device, the device comprising: the processing module, the receiving module and the display module;
the processing module is used for adding the target uncommon vocabulary to a uncommon vocabulary library under the condition that the target interface comprises the target uncommon vocabulary;
the receiving module is used for receiving a first input for inputting a target code character string in the target interface, wherein the target code character string is associated with the target uncommon word;
the display module is used for responding to the first input received by the receiving module, and displaying M candidate words related to the target code character string, wherein the M candidate words comprise the target uncommon word determined from the uncommon word library, and M is a positive integer.
7. The apparatus of claim 6, wherein the M candidate words are displayed in a candidate area; the target uncommon vocabulary comprises S uncommon vocabularies, the M candidate vocabularies comprise the S uncommon vocabularies and M-S first candidate vocabularies, the M-S first candidate vocabularies do not belong to the uncommon vocabulary library, S is a positive integer, and S is less than or equal to M;
the receiving module is further used for receiving a second input of a first target uncommon word in the S uncommon words after the M candidate words associated with the target coding character string are displayed;
the display module is further used for responding to the second input received by the receiving module and displaying the first target uncommon word in an input box of the target interface.
8. The apparatus of claim 6, wherein the target encoding string comprises a first string and a second string, wherein the first string is used for indicating a candidate word matching the target string, and the second string is used for indicating a target contact, and the target contact is one of a plurality of contacts in the target interface;
the processing module is specifically configured to determine the M candidate vocabularies according to the first character string; determining the target uncommon vocabulary from the M candidate vocabularies according to the second character string; and controlling a display module to display the target uncommon vocabulary.
9. The apparatus of claim 6, wherein the target uncommon vocabulary comprises S uncommon vocabularies;
the display module is specifically used for displaying the M uncommon vocabularies according to a first sequencing rule under the condition that the target uncommon vocabularies comprise the M uncommon vocabularies; or when the target uncommon vocabulary comprises S uncommon vocabularies and M candidate vocabularies comprise the S uncommon vocabularies and M-S first candidate vocabularies, displaying the S uncommon vocabularies and the M-S first candidate vocabularies according to a second sequencing rule, wherein the display rule of the S uncommon vocabularies is the first sequencing rule;
wherein the first ordering rule comprises at least one of: the use frequency of the uncommon vocabulary associated with the target coding character string in the target interface; sending time of the uncommon vocabulary associated with the target code character string in the target interface; target priority of the uncommon vocabulary associated with the target coding character string in the target interface;
the second sorting rule is that the S uncommon words are displayed in a first area, the M-S first candidate words are displayed in a second area, and the first area and the second area are different display areas.
10. The device according to any one of claims 6 to 9, wherein the processing module is further configured to identify an uncommon word in the target interface if a preset condition is met;
wherein the preset condition comprises at least one of the following: receiving preset input of a user aiming at the target interface; reaching a preset identification time interval; the target interface receives one message at a time.
CN202011272588.8A 2020-11-13 2020-11-13 Input method and device Pending CN112346578A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011272588.8A CN112346578A (en) 2020-11-13 2020-11-13 Input method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011272588.8A CN112346578A (en) 2020-11-13 2020-11-13 Input method and device

Publications (1)

Publication Number Publication Date
CN112346578A true CN112346578A (en) 2021-02-09

Family

ID=74363784

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011272588.8A Pending CN112346578A (en) 2020-11-13 2020-11-13 Input method and device

Country Status (1)

Country Link
CN (1) CN112346578A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113126781A (en) * 2021-04-27 2021-07-16 深圳市艾酷通信软件有限公司 Information display method, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113126781A (en) * 2021-04-27 2021-07-16 深圳市艾酷通信软件有限公司 Information display method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108491433B (en) Chat response method, electronic device and storage medium
RU2377664C2 (en) Text input method
US20170076181A1 (en) Converting text strings into number strings, such as via a touchscreen input
CN110060674B (en) Table management method, device, terminal and storage medium
CN107918496B (en) Input error correction method and device for input error correction
CN107544684B (en) Candidate word display method and device
CN107688399B (en) Input method and device and input device
WO2022083750A1 (en) Text display method and apparatus and electronic device
WO2021254251A1 (en) Input display method and apparatus, and electronic device
CN109002183B (en) Information input method and device
CN111984589A (en) Document processing method, document processing device and electronic equipment
CN112631437A (en) Information recommendation method and device and electronic equipment
CN107797676B (en) Single character input method and device
CN112764734B (en) Auxiliary method and device for code editing and electronic equipment
CN113743102A (en) Method and device for recognizing characters and electronic equipment
CN112346578A (en) Input method and device
CN112558784A (en) Method and device for inputting characters and electronic equipment
CN112148135A (en) Input method processing method and device and electronic equipment
CN114430832A (en) Data processing method and device, electronic equipment and storage medium
CN113138676B (en) Expression symbol display method and device
CN115437548A (en) Display method and device of virtual keyboard, electronic equipment and storage medium
CN108073294B (en) Intelligent word forming method and device for intelligent word forming
CN113157966B (en) Display method and device and electronic equipment
CN111966267A (en) Application comment method and device and electronic equipment
CN112417095A (en) Voice message processing method and device

Legal Events

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