CN111880668A - Input display method and device and electronic equipment - Google Patents

Input display method and device and electronic equipment Download PDF

Info

Publication number
CN111880668A
CN111880668A CN202010544431.XA CN202010544431A CN111880668A CN 111880668 A CN111880668 A CN 111880668A CN 202010544431 A CN202010544431 A CN 202010544431A CN 111880668 A CN111880668 A CN 111880668A
Authority
CN
China
Prior art keywords
word
input
target
character string
candidate
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
CN202010544431.XA
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 Co Ltd
Original Assignee
Vivo Mobile Communication 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 Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010544431.XA priority Critical patent/CN111880668A/en
Publication of CN111880668A publication Critical patent/CN111880668A/en
Priority to PCT/CN2021/099439 priority patent/WO2021254251A1/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
    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Abstract

The application discloses an input display method and device and electronic equipment, belongs to the technical field of communication, and can solve the problem that the flexibility of the electronic equipment for displaying words corresponding to input character strings input by a user is poor. The method comprises the following steps: receiving a first input of a target input character string by a user; and responding to the first input, selecting a target word corresponding to the target input character string from at least one preset word, and displaying at least one first candidate word comprising the target word, wherein the at least one preset word is a solid word which is stored in the electronic equipment and used by the user history, and the at least one first candidate word corresponds to the target input character string. The method is applied to the process of displaying the words corresponding to the input character strings.

Description

Input display method and device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to an input display method and device and electronic equipment.
Background
Generally, a user can input information into the electronic device through an input method, and in the using process of the input method, the electronic device can record words input by the user, that is, the electronic device can record the whole words input by the user on the upper screen, so that the user can directly display the whole words when inputting the same whole words next time.
However, since the input method only records the whole word on the screen that was input last time, the electronic device will display the whole word only when the word corresponding to the input character string that was input again by the user is the whole word that was input in history, and thus the flexibility of the electronic device in displaying the word corresponding to the input character string that was input by the user is poor.
Disclosure of Invention
The embodiment of the application aims to provide an input display method and device and electronic equipment, and the problem that the flexibility of the electronic equipment for displaying words corresponding to input character strings input by a user is poor can be solved.
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 display method, where the input display method includes: receiving a first input of a target input character string by a user; and responding to the first input, selecting a target word corresponding to the target input character string from at least one preset word, and displaying at least one first candidate word comprising the target word, wherein the at least one preset word is a physical word which is stored in the electronic equipment and used by a user history, and the at least one first candidate word corresponds to the target input character string.
In a second aspect, an embodiment of the present application provides an input display device, including: the device comprises a receiving module, a selecting module and a display module. The receiving module is used for receiving a first input of a target input character string by a user. And the selecting module is used for responding to the first input received by the receiving module, and selecting a target word corresponding to the target input character string from at least one preset word, wherein the at least one preset word is a stored entity word used by the user in history in the electronic equipment. The display module is used for displaying at least one first candidate word comprising the target word, and the at least one first candidate word corresponds to the target input character string.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions 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, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where 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 this embodiment of the application, the electronic device may determine, according to a first input of a target input character string by a user, a target word corresponding to the target input character string from at least one preset word, and display at least one first candidate word including the target word, where the at least one first candidate word corresponds to the target input character string. After the user inputs the target input character string, the electronic equipment can directly select the entity word (namely the target word) corresponding to the target input character string from at least one preset entity word used by the user history, and display the entity word corresponding to the selected target input character string without repeated screening operation of the user on the candidate word, so that the input efficiency of the user is improved, and the flexibility of the electronic equipment for displaying the word corresponding to the input character string input by the user is better.
Drawings
FIG. 1 is a schematic diagram of an input display method according to an embodiment of the present disclosure;
fig. 2 is a second schematic diagram of an input display method according to an embodiment of the present application;
fig. 3 is one of schematic diagrams of an example of an interface of a mobile phone according to an embodiment of the present application;
fig. 4 is a second schematic diagram of an example of an interface of a mobile phone according to an embodiment of the present disclosure;
fig. 5 is a third schematic diagram of an input display method according to an embodiment of the present application;
FIG. 6 is a fourth schematic diagram illustrating an input display method according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an input display device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 9 is a hardware schematic diagram of an electronic device according to an embodiment of the present application.
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 will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. 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 display 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.
An embodiment of the present application provides an input display method, and fig. 1 shows a flowchart of the input display method provided in the embodiment of the present application, where the method may be applied to an electronic device. As shown in fig. 1, the input display method provided by the embodiment of the present application may include steps 201 and 202 described below.
Step 201, the electronic device receives a first input of a target input character string by a user.
In the embodiment of the application, a user can input a target input character string in the electronic equipment through an input method (Chinese input method), so that the electronic equipment can display a word corresponding to the target input character string to the user.
It should be noted that the input character string in the embodiment of the present application may be understood as: the user can identify the input character string through pinyin, voice, strokes and the like input by the input method, so as to obtain the Chinese words corresponding to the input character string.
Optionally, in this embodiment of the application, the input method may be any one of the following: pinyin input, voice input, handwriting input, stroke input, and the like.
Optionally, in this embodiment of the application, when the electronic device displays the first interface, the first interface includes a character input area, and the user may perform a first input on the target input character string in the character input area.
Optionally, in this embodiment of the application, the first interface may be a session interface of a chat application or a text input interface of a document application. The specific method can be determined according to actual use requirements, and the embodiment of the application is not limited herein.
Step 202, in response to the first input, the electronic device selects a target word corresponding to the target input character string from at least one preset word, and displays at least one first candidate word including the target word.
In an embodiment of the application, the at least one preset word is a physical word used by a user history stored in the electronic device, and the at least one first candidate word corresponds to the target input character string.
It should be noted that the target word corresponding to the target input character string includes: the target words corresponding to the whole target input character string and the target words corresponding to the partial target input character strings in the target input character string, that is, the target words corresponding to the target input character string include the target words corresponding to at least partial target input character strings.
In the embodiment of the application, after the electronic device displays the target word, the user can select and input the target word, so that the electronic device determines the target word as the on-screen word and displays candidate words corresponding to other input character strings (the input character strings except the input character string corresponding to the target word) step by step for the user to select.
Optionally, in this embodiment of the application, the at least one preset word may be obtained by analyzing, by the electronic device, the screen-up word selected by the user history in advance through a preset model.
Optionally, in this embodiment, with reference to fig. 1, as shown in fig. 2, before step 201, the input display method provided in this embodiment further includes steps 301 to 304 described below.
Step 301, the electronic device receives a second input of the first input character string by the user.
The first input string may be the same as or different from the target input string. For the description of step 301, reference may be made to the description of step 201 above, and details are not repeated here.
Step 302, the electronic device displays at least one second candidate word corresponding to the first input character string in response to the second input.
In this embodiment, after receiving the second input, the electronic device may determine at least one candidate word corresponding to each character (e.g., pinyin character, stroke character, etc.) in the first input character string, display the candidate words corresponding to the input character strings at the front positions in the first input character string, and then, after the user selects a word required by the user from the candidate words corresponding to the input character strings, the electronic device continues to display the candidate words corresponding to the other input character strings, so that the user may select the word required by the user (i.e., the on-screen word) corresponding to the first input character string step by step.
It should be noted that the above words can be understood as follows: after the user inputs the character string, the selected word in the candidate words corresponding to the input character string is displayed from the electronic equipment.
Step 303, the electronic device receives a third input from the user.
In this embodiment of the application, the third input is input of N candidate words in the at least one second candidate word by the user, where N is a positive integer.
Optionally, in this embodiment of the application, the third input may include at least one sub-input, where each sub-input is a selection input for one candidate word, that is, an input of a selected top-screen word, and an input character string corresponding to the top-screen word selected by each sub-input is different (that is, each sub-input corresponds to a part of an input character string in the first input character string).
Step 304, in response to the third input, the electronic device selects N candidate words from the at least one second candidate word, and analyzes the N candidate words based on a preset model to obtain M entity words.
In an embodiment of the present application, the at least one preset word includes M entity words, where M is a positive integer less than or equal to N.
In this embodiment, the electronic device may select N candidate words from at least one second candidate word according to the input of the user, and after the user finishes clicking the candidate words on the screen through the input (e.g., the third input), the electronic device may input the entire on-screen word (which may be understood as an entire on-screen word or an entire sentence of text) into the preset model, so as to analyze the entity words included in the entire on-screen word through the preset model, and input the entity words and the entire on-screen word into the memory module of the input method, so as to store the entity words and the entire on-screen word.
It can be understood that after the user finishes clicking the candidate word on the screen each time, the electronic device can analyze the corresponding entity word through the preset model, so as to store the entity words and the whole on-screen word in the memory module of the input method, thereby obtaining at least one preset word.
Optionally, in this embodiment of the present application, the preset model may be a Named Entity Recognition (NER) model, and the NER model may be built in the input method.
The NER model may also be referred to as a "proper name recognition" model, which is used to recognize entities having specific meanings in the text, and mainly includes entities such as a person name, a place name, a institution name, a book name, a song title, an journal name, and a proper noun.
For example, a pinyin input method is taken as an example for description. The user can input "zhenhouhedouandhaiyiqiqiqiulongyangshanhuangdujiaba" through the pinyin input method, and the whole sentence is displayed on the screen once through multi-level candidate step by step screening of "this/weekend/and/paragraph/sea/di/go together/long run/yang/mountain bank/vacation bar". After the user performs the on-screen selection operation, the electronic device may add the whole sentence into the NER model, so that the NER model may detect the name entity "duan haidi" and the place entity "shanyang villa" contained therein, and input the name entity, the place entity, and the whole sentence into the memory module, so that the memory module may memorize the two entity words while memorizing the whole sentence.
In the embodiment of the application, the electronic equipment can memorize the whole words with definite meanings in the whole words by optimizing the memory strategy of the input method, so that the user does not need to separately select the whole words one by one when inputting the whole words next time, and the input efficiency is higher.
Optionally, in this embodiment of the present application, before the step 301, the input display method provided in this embodiment of the present application further includes the following step 401 and step 402.
Step 401, the electronic device receives a fourth input from the user.
In an embodiment of the application, the fourth input is input of a plurality of corpus data and a plurality of label information by a user, each corpus data corresponds to one label information, and each label information is used for indicating an entity word category to which one corpus data belongs.
It should be noted that one corpus data may be an entity word, or may also be text content including an entity word.
Optionally, in this embodiment of the present application, the entity word category may include at least one of the following: the names of people, places, organizations, books, songs, journals, and proper nouns.
And 402, the electronic equipment responds to the fourth input, and trains the corpus data and the labeling information by adopting a preset algorithm to obtain a preset model.
Optionally, in this embodiment of the application, the preset algorithm may be any of the following: the electronic equipment can construct an NER model through a preset algorithm based on a rule-based method, a feature template-based method, a neural network-based method and a BilSTM-CRF algorithm.
Optionally, in the embodiment of the present application, the BiLSTM-CRF is a mature method, which does not require feature engineering and can achieve an effect by using a character vector, and the electronic device may use some corpus data with entity labels to construct an NER model by using the BiLSTM-CRF method.
It should be noted that the rule-based method refers to identifying named entities by matching texts with rules by using manually written rules. The method based on the feature template refers to some binary feature functions defined manually, and tries to mine the internal and contextual composition characteristics of the named entity. The neural network-based method is to use the neural network to automatically extract features, and the method enables the training of the model to be an end-to-end integral process.
Alternatively, in this embodiment of the application, the step 202 may be specifically implemented by the following step 202a or step 202 b.
Step 202a, the electronic device responds to the first input, if the target input character string is matched with an input character string corresponding to a first word in at least one preset word, the first word is determined as the target word, and at least one first candidate word including the target word is displayed.
In this embodiment, if the target input character string can match and hit a word (e.g., a first word) in at least one predetermined word (NER entity memory word), the electronic device may preferentially display the first word.
Optionally, in this embodiment of the application, the electronic device may display the first word at a position before other candidate words corresponding to the target input character string.
The electronic device is taken as a mobile phone for illustration. As shown in fig. 3, after the user inputs the target input character string "longyangshanzhuang", the electronic device may match the target input character string with at least one preset word, and when the target input character string matches one of the at least one preset word (e.g., "longyang mountain bank"), the electronic device may display "longyang mountain bank" at a position before other candidate words (e.g., "longyang mountain bank", "long", etc.) corresponding to the target input character string (i.e., a position of a first candidate word of the at least one first candidate word), that is, at the first position, so that the user may select the on-screen word. It should be noted that the first word may be a word corresponding to the entire target input character string.
Step 202b, in response to the first input, if a prefix input character string in the target input character string is matched with an input character string corresponding to a second word in at least one preset word, the electronic device determines the second word as the target word and displays at least one first candidate word including the target word.
In this embodiment, the prefix input character string is a partial input character string having a corresponding entity word in the target input character string, that is, a partial target input character string corresponds to the second word.
Optionally, in this embodiment of the application, the prefix input character string may be a partial input character string in the target input character string, where the partial input character string has a corresponding entity word and is located at a front position.
In this embodiment, if the target input character string may hit a word (e.g., a second word) in the at least one preset word by prefix matching, the electronic device may preferentially display the second word.
Optionally, in this embodiment of the application, the electronic device may display the second word at a position before the multi-level candidate word corresponding to the target input character string.
Optionally, in this embodiment of the application, after the electronic device displays the target word corresponding to the prefix input character string, the user may select and input the target word, so that the electronic device determines the target word as an on-screen word, and displays the candidate word corresponding to the input character string before the prefix input character string step by step.
Illustratively, as shown in fig. 4, after the user inputs a target input character string "duanhhai jiuizailongyangshanhuangfujin", the handset may perform a stepwise filtering, i.e., determine that the whole sentence is "duanhhaidi/just-in-front/long-mountain banker/near", and match the target input character string with at least one preset word, upon determining that a prefix input character string "duanhhaidi" of the target input character string matches a second word "duanhhaidi" of the at least one preset word, the handset may display the "duanhhaidi" at a position before a plurality of levels of candidate words (e.g., "short", "end", etc.) corresponding to the target input character string, and, after the user makes a selection input for "duanhhaidi", the handset may continue to display candidate words (e.g., "just-in", "just-in"), and after the user makes a selection input for "just-in, the candidate word "long-Yang mountain village" corresponding to the input character string "longyangshanzhuang" may continue to be displayed, and so on until the candidate words corresponding to all input character strings are selected. Through the scheme of this application, the user only need carry out four clicks and "dudi" and "longyang mountain village" will be shown in the position that leans forward. Compared with the scheme with only integral memory, the user needs to perform 'seg/hai/di/on/long/yang/mountain/nearby' and needs to perform eight times of point selection, and the scheme can improve the input efficiency of the user.
In the embodiment of the application, the named entity recognition model is added in the input method, so that the named entity recognition is carried out on the whole screen words, and the entities are memorized on the basis of memorizing the whole screen words. Therefore, when the user inputs the entity words in the subsequent input operation, the entity words are given from the candidate words, the repeated screening operation of the user is avoided, and the input efficiency of the user is improved.
Optionally, in this embodiment of the present application, the target word is a first word. Referring to fig. 1, as shown in fig. 5, the step 202 can be specifically realized by the step 202c described below.
Step 202c, in response to the first input, the electronic device determines a target word corresponding to the target input character string from at least one preset word, and displays the first word and other first candidate words according to a target sequence.
In this embodiment of the application, the target order is a position of a first word in at least one first candidate word, and the other first candidate words are candidate words except the first word in the at least one first candidate word.
In the embodiment of the application, the electronic device can match the target input character string with at least one preset word to quickly determine corresponding entity words from the preset words, so that the words are displayed at the front position, a user can conveniently select the words, and the input efficiency of the user is improved.
Optionally, in this embodiment of the present application, the target word is a second word. Referring to fig. 1, as shown in fig. 6, the step 202 can be implemented by the step 202d described below.
Step 202d, in response to the first input, the electronic device determines a target word corresponding to the target input character string from at least one preset word, and displays the whole word, the second word and other first candidate words corresponding to the target input character string according to a first sequence.
In this embodiment of the application, the first order is that the whole word is located at a position of a first candidate word in the at least one first candidate word, and the second word is located at a position of a second candidate word in the at least one first candidate word, the whole word is a whole candidate word to be displayed on the screen, which is formed by words corresponding to the target input character string, and the other first candidate words are candidate words in the at least one first candidate word except the whole word and the second word.
It is to be understood that, in the case that the target word is a word corresponding to a partial input character string (e.g., a prefix input character string) in the target input character string, the electronic device may display the whole word at the position of the first candidate word, then display the target word corresponding to the partial input character string at the position of the second candidate word, and display other first candidate words at other positions.
In the embodiment of the application, the electronic equipment memorizes part of the entity words in the words displayed on the screen once or many times by the user, and when the words input by the user for many times are combined, the electronic equipment can also memorize the words. For example, the user inputs "section", "sea", "di", "right", "long", "yang", "mountain", and "near", respectively, the electronic device may recognize, through the NER model, that "section", "sea", "di" may constitute a person name "section" also di "," long "," yang ", and" mountain "may constitute a place name" long yang mountain ", and memorize these two entity words, thereby increasing the input efficiency of the user in subsequent inputs by the user.
The embodiment of the application provides an input display method, and electronic equipment can determine a target word corresponding to a target input character string from at least one preset word according to a first input of a target input character string by a user, and display at least one first candidate word including the target word, wherein the at least one first candidate word corresponds to the target input character string. After the user inputs the target input character string, the electronic equipment can directly select the entity word (namely the target word) corresponding to the target input character string from at least one preset entity word used by the user history, and display the entity word corresponding to the selected target input character string without repeated screening operation of the user on the candidate word, so that the input efficiency of the user is improved, and the flexibility of the electronic equipment for displaying the word corresponding to the input character string input by the user is better.
It should be noted that, in the input display method provided in the embodiment of the present application, the execution main body may be an input display device, or a control module in the input display device for executing the input display method. In the embodiment of the present application, an input display device executing an input display method is taken as an example, and the input display device provided in the embodiment of the present application is described.
Fig. 7 shows a schematic diagram of a possible structure of the input display device according to the embodiment of the present application. As shown in fig. 7, the input display device 70 may include: a receiving module 71, a selecting module 72 and a displaying module 73.
The receiving module 71 is configured to receive a first input of the target input character string by the user. A selecting module 72, configured to select, in response to the first input received by the receiving module 71, a target word corresponding to the target input character string from at least one preset word, where the at least one preset word is a physical word that has been used in the history of the user and is stored in the electronic device. And the display module 73 is configured to display at least one first candidate word including the target word, where the at least one first candidate word corresponds to the target input character string.
In a possible implementation manner, the receiving module 71 is further configured to receive a second input of the first input character string by the user before receiving the first input of the target input character string by the user. The display module 73 is further configured to display at least one second candidate word corresponding to the first input character string in response to the second input received by the receiving module 71. The receiving module 71 is further configured to receive a third input from the user. The selecting module 72 is further configured to select N candidate words from at least one second candidate word in response to the third input received by the receiving module 71. The input display device 70 provided in the embodiment of the present application further includes: and a processing module. The processing module is configured to, based on a preset model, perform parsing on the N candidate words selected by the selecting module 72 to obtain M entity words, where the at least one preset word includes M entity words, M is a positive integer less than or equal to N, and N is a positive integer.
In a possible implementation manner, the receiving module 71 is further configured to receive a fourth input of the user before receiving a second input of the first input character string by the user, where the fourth input is an input of the user to a plurality of corpus data and a plurality of label information, each corpus data corresponds to one label information, and each label information is used to indicate an entity word category to which one corpus data belongs. The input display device 70 provided in the embodiment of the present application further includes: and a training module. The training module is configured to train, in response to the fourth input received by the receiving module 71, the corpus data and the labeling information by using a preset algorithm to obtain a preset model.
In a possible implementation manner, the selecting module 72 is specifically configured to determine the first word as the target word if the target input character string matches with the input character string corresponding to the first word in the at least one preset word; or, if a prefix input character string in the target input character string is matched with an input character string corresponding to a second word in the at least one preset word, determining the second word as the target word, wherein the prefix input character string is a partial input character string with a corresponding entity word in the target input character string.
In one possible implementation, the target word is a first word. The display module 73 is specifically configured to display the first word and other first candidate words according to a target order, where the target order is a position of the first word in the at least one first candidate word, and the other first candidate words are candidate words except the first word in the at least one first candidate word.
In one possible implementation, the target word is a second word. The display module 73 is specifically configured to display an entire word, a second word, and other first candidate words corresponding to the target input character string according to a first order, where the first order is that the entire word is located at a position of a first candidate word in the at least one first candidate word, and the second word is located at a position of a second candidate word in the at least one first candidate word, the entire word is a whole candidate word to be displayed on the screen, which is formed by words corresponding to the target input character string, and the other first candidate words are candidate words in the at least one first candidate word except the entire word and the second word.
The embodiment of the application provides an input display device, after a user inputs a target input character string, an electronic device can directly select an entity word (namely a target word) corresponding to the target input character string from at least one preset entity word used by the user history, and display the entity word corresponding to the selected target input character string, and the user does not need to repeatedly screen candidate words, so that the input efficiency of the user is improved, and the flexibility of the electronic device for displaying words corresponding to the input character string input by the user is better.
The input display device in the embodiment of the present application may be a device, 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 kiosk, and the like, and the embodiments of the present application are not particularly limited.
The input display 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 display device provided in the embodiment of the present application can implement each process implemented by the above method embodiment, and is not described here again to avoid repetition.
Optionally, as shown in fig. 8, an electronic device 90 is further provided in this embodiment of the present application, and includes a processor 91, a memory 92, and a program or an instruction stored in the memory 92 and executable on the processor 91, where the program or the instruction is executed by the processor 91 to implement the processes of the foregoing method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
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 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption 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.
Wherein, the user input unit 107 is used for receiving a first input of the target input character string by the user.
And the processor 110 is configured to, in response to the first input, select a target word corresponding to the target input character string from at least one preset word, where the at least one preset word is a entity word that has been used in the history of the user and is stored in the electronic device.
A display unit 106, configured to display at least one first candidate word including a target word, where the at least one first candidate word corresponds to the target input character string.
The embodiment of the application provides an electronic device, and after a user inputs a target input character string, the electronic device can directly select an entity word (namely a target word) corresponding to the target input character string from at least one preset entity word and display the entity word corresponding to the selected target input character string, and the user does not need to repeatedly screen candidate words, so that the input efficiency of the user is improved, and the flexibility of the electronic device for displaying words corresponding to the input character string input by the user is better.
Optionally, in this embodiment of the application, the user input unit 107 is further configured to receive a second input of the first input character string by the user before receiving the first input of the target input character string by the user.
The display unit 106 is further configured to display, in response to the second input, at least one second candidate word corresponding to the first input character string.
The user input unit 107 is further configured to receive a third input from the user.
The processor 110 is further configured to, in response to a third input, select N candidate words from at least one second candidate word, and perform parsing on the N candidate words based on a preset model to obtain M entity words, where the at least one preset word includes M entity words, M is a positive integer less than or equal to N, and N is a positive integer.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the graphics processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
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 foregoing method embodiments, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described 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 foregoing method embodiments, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
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 (14)

1. An input display method, the method comprising:
receiving a first input of a target input character string by a user;
and responding to the first input, selecting a target word corresponding to the target input character string from at least one preset word, and displaying at least one first candidate word including the target word, wherein the at least one preset word is a stored entity word used by a user history in the electronic equipment, and the at least one first candidate word corresponds to the target input character string.
2. The method of claim 1, wherein prior to receiving the first user input of the target input string, the method further comprises:
receiving a second input of the first input character string by the user;
responding to the second input, and displaying at least one second candidate word corresponding to the first input character string;
receiving a third input of the user;
and responding to the third input, selecting N candidate words from the at least one second candidate word, and analyzing the N candidate words based on a preset model to obtain M entity words, wherein the at least one preset word comprises the M entity words, M is a positive integer smaller than or equal to N, and N is a positive integer.
3. The method of claim 2, wherein prior to receiving the second user input of the first input string, the method further comprises:
receiving a fourth input of a user, wherein the fourth input is input of the user to a plurality of corpus data and a plurality of label information, each corpus data corresponds to one label information, and each label information is used for indicating an entity word category to which one corpus data belongs;
and responding to the fourth input, and training the corpus data and the labeling information by adopting a preset algorithm to obtain the preset model.
4. The method according to any one of claims 1 to 3, wherein the selecting a target word corresponding to the target input character string from at least one preset word comprises:
if the target input character string is matched with an input character string corresponding to a first word in the at least one preset word, determining the first word as the target word;
and if a prefix input character string in the target input character string is matched with an input character string corresponding to a second word in the at least one preset word, determining the second word as the target word, wherein the prefix input character string is a partial input character string with a corresponding entity word in the target input character string.
5. The method of claim 4, wherein the target word is the first word;
the displaying at least one first candidate word including the target word includes:
and displaying the first word and other first candidate words according to a target sequence, wherein the target sequence is that the first word is located at the position of a first candidate word in the at least one first candidate word, and the other first candidate words are candidate words except the first word in the at least one first candidate word.
6. The method of claim 4, wherein the target word is the second word;
the displaying at least one first candidate word including the target word includes:
displaying an integral word, the second word and other first candidate words corresponding to the target input character string according to a first sequence, wherein the first sequence is that the integral word is located at a position of a first candidate word in the at least one first candidate word, the second word is located at a position of a second candidate word in the at least one first candidate word, the integral word is a whole candidate word to be displayed on a screen, which is formed by words corresponding to the target input character string, and the other first candidate words are candidate words except the integral word and the second word in the at least one first candidate word.
7. An input display device, comprising: the device comprises a receiving module, a selecting module and a display module;
the receiving module is used for receiving a first input of a target input character string by a user;
the selecting module is configured to select, in response to the first input received by the receiving module, a target word corresponding to the target input character string from at least one preset word, where the at least one preset word is a physical word that has been used in a user history and is stored in the electronic device;
the display module is configured to display at least one first candidate word including the target word, where the at least one first candidate word corresponds to the target input character string.
8. The apparatus of claim 7, wherein the receiving module is further configured to receive a second input of the first input character string from the user before receiving the first input of the target input character string from the user;
the display module is further configured to display at least one second candidate word corresponding to the first input character string in response to the second input received by the receiving module;
the receiving module is further used for receiving a third input of the user;
the selecting module is further configured to select N candidate words from the at least one second candidate word in response to the third input received by the receiving module;
the input display device further includes: a processing module;
the processing module is configured to perform parsing processing on the N candidate words selected by the selection module based on a preset model to obtain M entity words, where the at least one preset word includes the M entity words, M is a positive integer less than or equal to N, and N is a positive integer.
9. The apparatus according to claim 8, wherein the receiving module is further configured to receive a fourth input from the user before receiving a second input from the user for the first input character string, where the fourth input is an input from the user for a plurality of corpus data and a plurality of label information, each corpus data corresponds to one label information, and each label information is used to indicate an entity word category to which one corpus data belongs;
the input display device further includes: a training module;
and the training module is used for responding to the fourth input received by the receiving module, and training the corpus data and the labeling information by adopting a preset algorithm to obtain the preset model.
10. The apparatus according to any one of claims 7 to 9, wherein the selection module is specifically configured to determine a first word of the at least one preset word as the target word if the target input character string matches an input character string corresponding to the first word; or, if a prefix input character string in the target input character string is matched with an input character string corresponding to a second word in the at least one preset word, determining the second word as the target word, wherein the prefix input character string is a partial input character string having a corresponding entity word in the target input character string.
11. The apparatus of claim 10, wherein the target word is the first word;
the display module is specifically configured to display the first word and other first candidate words according to a target order, where the target order is a position of the first word at a first candidate word in the at least one first candidate word, and the other first candidate words are candidate words in the at least one first candidate word except the first word.
12. The apparatus of claim 10, wherein the target word is the second word;
the display module is specifically configured to display an entire word, the second word, and other first candidate words corresponding to the target input character string according to a first order, where the first order is a position of the entire word at a first candidate word in the at least one first candidate word, and the second word at a position of a second candidate word in the at least one first candidate word, the entire word is a whole candidate word to be displayed, which is formed by words corresponding to the target input character string, and the other first candidate words are candidate words, which are not the entire word and the second word, in the at least one first candidate word.
13. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the input display method of any one of claims 1 to 6.
14. A readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the input display method of any one of claims 1 to 6.
CN202010544431.XA 2020-06-15 2020-06-15 Input display method and device and electronic equipment Pending CN111880668A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010544431.XA CN111880668A (en) 2020-06-15 2020-06-15 Input display method and device and electronic equipment
PCT/CN2021/099439 WO2021254251A1 (en) 2020-06-15 2021-06-10 Input display method and apparatus, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010544431.XA CN111880668A (en) 2020-06-15 2020-06-15 Input display method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN111880668A true CN111880668A (en) 2020-11-03

Family

ID=73157552

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010544431.XA Pending CN111880668A (en) 2020-06-15 2020-06-15 Input display method and device and electronic equipment

Country Status (2)

Country Link
CN (1) CN111880668A (en)
WO (1) WO2021254251A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112861471A (en) * 2021-02-10 2021-05-28 上海臣星软件技术有限公司 Object display method, device, equipment and storage medium
WO2021254251A1 (en) * 2020-06-15 2021-12-23 维沃移动通信有限公司 Input display method and apparatus, and electronic device
WO2022143523A1 (en) * 2020-12-31 2022-07-07 维沃移动通信有限公司 Vocabulary display method and apparatus, and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012748A (en) * 2010-11-30 2011-04-13 哈尔滨工业大学 Statement-level Chinese and English mixed input method
CN107247519A (en) * 2017-08-16 2017-10-13 北京搜狗科技发展有限公司 A kind of input method and device
CN110569505A (en) * 2019-09-04 2019-12-13 平顶山学院 text input method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661331B (en) * 2008-08-28 2012-05-30 北京搜狗科技发展有限公司 Character and phrase input method and input method system
CN107305438B (en) * 2016-04-21 2023-03-24 北京搜狗科技发展有限公司 Method and device for sorting candidate items
CN109144286B (en) * 2017-06-27 2022-08-02 北京搜狗科技发展有限公司 Input method and device
CN109901726B (en) * 2017-12-08 2022-08-02 北京搜狗科技发展有限公司 Candidate word generation method and device and candidate word generation device
CN111880668A (en) * 2020-06-15 2020-11-03 维沃移动通信有限公司 Input display method and device and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012748A (en) * 2010-11-30 2011-04-13 哈尔滨工业大学 Statement-level Chinese and English mixed input method
CN107247519A (en) * 2017-08-16 2017-10-13 北京搜狗科技发展有限公司 A kind of input method and device
CN110569505A (en) * 2019-09-04 2019-12-13 平顶山学院 text input method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021254251A1 (en) * 2020-06-15 2021-12-23 维沃移动通信有限公司 Input display method and apparatus, and electronic device
WO2022143523A1 (en) * 2020-12-31 2022-07-07 维沃移动通信有限公司 Vocabulary display method and apparatus, and electronic device
CN112861471A (en) * 2021-02-10 2021-05-28 上海臣星软件技术有限公司 Object display method, device, equipment and storage medium

Also Published As

Publication number Publication date
WO2021254251A1 (en) 2021-12-23

Similar Documents

Publication Publication Date Title
US7764837B2 (en) System, method, and apparatus for continuous character recognition
CN107608532B (en) Association input method and device and electronic equipment
CN111880668A (en) Input display method and device and electronic equipment
CN112099704A (en) Information display method and device, electronic equipment and readable storage medium
CN112631437A (en) Information recommendation method and device and electronic equipment
CN112181253A (en) Information display method and device and electronic equipment
CN113359999B (en) Candidate word updating method and device and electronic equipment
CN113869063A (en) Data recommendation method and device, electronic equipment and storage medium
CN112148135A (en) Input method processing method and device and electronic equipment
CN114374663B (en) Message processing method and message processing device
CN113905125B (en) Video display method and device, electronic equipment and storage medium
CN113805708B (en) Information display method, information display device, electronic equipment and storage medium
CN115437548A (en) Display method and device of virtual keyboard, electronic equipment and storage medium
CN115292462A (en) Character generation method and device, mobile terminal, readable storage medium and chip
CN111966267A (en) Application comment method and device and electronic equipment
CN112764551A (en) Vocabulary display method and device and electronic equipment
CN115061580A (en) Input method, input device, electronic equipment and readable storage medium
CN112698734A (en) Candidate word display method and device and electronic equipment
CN112328096A (en) Candidate word display method and device and electronic equipment
CN113010072A (en) Searching method and device, electronic equipment and readable storage medium
CN113127653A (en) Information display method and device
CN113157966A (en) Display method and device and electronic equipment
CN112766005A (en) Text translation method, device, equipment and medium
CN112286613A (en) Interface display method and interface display device
CN112764734B (en) Auxiliary method and device for code editing and electronic equipment

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