CN115061580A - Input method, input device, electronic equipment and readable storage medium - Google Patents

Input method, input device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN115061580A
CN115061580A CN202210652011.2A CN202210652011A CN115061580A CN 115061580 A CN115061580 A CN 115061580A CN 202210652011 A CN202210652011 A CN 202210652011A CN 115061580 A CN115061580 A CN 115061580A
Authority
CN
China
Prior art keywords
candidate word
input
character string
displaying
stored information
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
CN202210652011.2A
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 CN202210652011.2A priority Critical patent/CN115061580A/en
Publication of CN115061580A publication Critical patent/CN115061580A/en
Priority to PCT/CN2023/098044 priority patent/WO2023236866A1/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/0236Character input methods using selection techniques to select from displayed items
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques

Abstract

The application discloses an input method, an input device, electronic equipment and a readable storage medium, wherein the method comprises the following steps: receiving a first input of a user; wherein the first input is for inputting a first string; displaying first information corresponding to the first character string in response to the first input; wherein the first information comprises at least one of: prestored information corresponding to a first candidate word, wherein the first candidate word is a candidate word matched with the first character string; at least one candidate word category identification matching the first string.

Description

Input method, input device, electronic equipment and readable storage medium
Technical Field
The application belongs to the technical field of communication, and particularly relates to an input method, an input device, electronic equipment and a readable storage medium.
Background
In the using process of the electronic equipment, inputting characters or other character information is one of scenes in which a user uses the electronic equipment with high frequency. The interactive means for inputting the text or other character information by the user is usually an input method, i.e. the user can input the text or other character information by the input method. For example: when a user inputs pinyin in an input method interface, the user can select the candidate words by pinyin matching with the corresponding candidate words, and when the user selects the candidate words to be input from a plurality of candidate words, if the candidate words are not frequently used, the user may need to select the candidate words through operations of page turning, sliding and the like, and the current input method has the problem of low efficiency.
Disclosure of Invention
An object of the embodiments of the present application is to provide an input method, an input apparatus, an electronic device, and a readable storage medium, which can solve the problem of low efficiency of the current input method.
In a first aspect, an embodiment of the present application provides an input method, including:
receiving a first input of a user; wherein the first input is for inputting a first string;
displaying first information corresponding to the first character string in response to the first input;
wherein the first information comprises at least one of:
pre-stored information corresponding to a first candidate word, wherein the first candidate word is a candidate word matched with the first character string;
at least one candidate word category identification matching the first string.
In a second aspect, an embodiment of the present application provides an input device, including:
the first receiving module is used for receiving a first input of a user; wherein the first input is used for inputting a first character string;
a first response module, configured to display, in response to the first input, first information corresponding to the first character string;
wherein the first information comprises at least one of:
pre-stored information corresponding to a first candidate word, wherein the first candidate word is a candidate word matched with the first character string;
at least one candidate word category identification matching the first string.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, where the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the input method according to the first aspect.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the input 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 steps of the input method according to the first aspect.
In a sixth aspect, the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the steps of the input method according to the first aspect.
In the embodiment of the application, the first input for inputting the first character string is received, the pre-stored information corresponding to the first candidate word matched with the first character string is displayed in response to the first input, compared with the current mode of matching the candidate word through the character string, the candidate word matching content of the input method is enriched, and the user can quickly input the pre-stored information under the condition that the user does not need to input the character string corresponding to each character in the information content of the pre-stored information, so that the input process of the user is simplified. And responding to the first input, displaying at least one candidate word category identification matched with the first character string, and providing a user to select different types of candidate words, so that the diversity of candidate word matching is improved, and the efficiency of searching a target candidate word in a large number of candidate words matched with the character string by the user is improved.
Drawings
FIG. 1 is a flow chart of an input method of an embodiment of the present application;
FIG. 2 is a flow chart of displaying first information according to an embodiment of the present application;
FIG. 3 is one of the schematic diagrams of an input method interface of an embodiment of the present application;
FIG. 4 is a second schematic diagram of an input method interface according to an embodiment of the present application;
FIG. 5 is a third schematic diagram of an input method interface according to an embodiment of the present application;
fig. 6 is a flowchart of establishing association between the pre-stored information and the candidate word according to the embodiment of the present application;
FIG. 7 is a fourth schematic diagram of an input method interface according to an embodiment of the present application;
FIG. 8 is a flowchart of displaying candidate words according to an embodiment of the present application;
FIG. 9 is a fifth schematic view of an input method interface according to an embodiment of the present application;
FIG. 10 is a sixth schematic view of an input method interface in accordance with an embodiment of the present application;
FIG. 11 is a seventh schematic view of an input method interface according to an embodiment of the present application;
FIG. 12 is one of block diagrams of an input device of an embodiment of the present application;
FIG. 13 is a second block diagram of an input device according to an embodiment of the present application;
FIG. 14 is a block diagram of an electronic device of an embodiment of the application;
fig. 15 is a hardware configuration 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 described clearly 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 that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
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 following describes the audio data processing method provided in the embodiments of the present application in detail through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
As shown in fig. 1, an embodiment of the present invention provides an input method, including the following steps:
step 101: receiving a first input of a user; wherein the first input is for inputting a first string.
Optionally, the first input may be input by a user to a keyboard region in the input method interface, and the user may input a corresponding character string through the input to the keyboard region; of course, the user may input a character string through a stroke, handwriting, or a character or the like, or may also input a character string through voice, besides the character string through the keyboard region, which is not limited in this embodiment of the application.
Step 102: in response to the first input, displaying first information corresponding to the first string.
Wherein the first information comprises at least one of:
pre-stored information corresponding to a first candidate word, wherein the first candidate word is a candidate word matched with the first character string;
at least one candidate word category identification matching the first string.
Optionally, a mapping relationship between the first candidate word and the pre-stored information may be pre-stored in a mapping table, that is, the mapping table may pre-store a corresponding relationship between the candidate word and the pre-stored information, for example, the candidate word may be obtained by matching according to the character string, and the corresponding pre-stored information may be obtained by matching according to the candidate word obtained by matching through the mapping table. For example, the character string may be "dizhi", and when the candidate word "address" is obtained by matching, the corresponding pre-stored information obtained through the mapping table may be a specific address, such as "XX number XX in XX province and XX city"; the character string may be 'huiyi', and when the candidate word 'conference' is obtained by matching, the corresponding pre-stored information obtained through the mapping table may be a quick reply phrase, such as 'being in a conference, contacting you later'; the character string may be "xiaoming", and when the candidate word "xiaoming" is obtained by matching, the corresponding pre-stored information obtained through the mapping table may be contact information, such as a telephone number "139 XXXXXXXX", an address "XX road XX number XX in XX province XX city", and the like; the character string may be "xinnianzhufu", and when the candidate word "new year blessing" is obtained by matching, the preset information obtained through the mapping table may be a quick reply phrase, such as "happy new year, everything as one you! "and the like, and the examples in this application are not intended to be limiting.
Optionally, the mapping table may also directly pre-store a corresponding relationship between the character string and pre-stored information, for example, the pre-stored information may be an address, contact information, a password, a quick reply phrase, or the like. For example, the string may be "dizhi", and the corresponding pre-stored information may be a specific address, such as "XX number XX of XX city XX, XX province"; the string may be "huiyi" and the corresponding pre-stored information may be a quick reply phrase, such as "being in a meeting, contacting you later"; the character string may be "xiaoming", and the corresponding pre-stored information may be contact information, such as a phone number "139 XXXXXXXX", an address "XX road XX number XX in XX city of XX province", and the like; the string may be "xinnianzhufu" and the predetermined information may be a quick reply phrase, such as "happy new year, everything about you! "and the like, and the examples in this application are not intended to be limiting.
Optionally, the pre-stored information may be a picture, a video, an application, or an applet link, besides text, and if a "health code" is input, the corresponding applet may be opened.
Optionally, the mapping table may be implemented in a macro-defined manner, or in other manners besides the macro-defined manner, and the embodiment of the present application is not limited to this.
Optionally, the candidate word category identifier is used to indicate a candidate word category to which a candidate word matching the first character string belongs, for example, the candidate word may be classified according to part of speech (such as verb, noun, adjective, preposition, adverb, and so on), or may be classified according to industry categories (such as building, computer, geography, physics, and so on), or may be classified according to media forms (such as movie, music, tv play, and so on), or other classification forms in addition thereto, and the embodiments of the present application are not limited thereto.
In the embodiment, by receiving a first input for inputting a first character string and responding to the first input, pre-stored information corresponding to a first candidate word matched with the first character string is displayed, compared with the current mode of matching candidate words through character strings, the method enriches the matching content of candidate words of the input method, and a user can quickly input the pre-stored information without inputting the character string corresponding to each character in the information content of the pre-stored information, thereby further simplifying the input process of the user. And responding to the first input, displaying at least one candidate word category identification matched with the first character string, and providing a user to select different types of candidate words, so that the efficiency of searching a target candidate word in a large number of candidate words matched with the character string by the user is improved.
Optionally, as shown in fig. 2, a flowchart for displaying first information is provided, and in a case that the first information includes the pre-stored information, the displaying the first information corresponding to the first character string in response to the first input includes the following steps:
step 201: in response to the first input, displaying at least one candidate word that matches the first character string;
step 202: and displaying pre-stored information corresponding to the first candidate word under the condition that the first candidate word exists in the at least one candidate word.
The mapping table comprises a mapping relation between candidate words and pre-stored information, and the first candidate word is at least one candidate word in the mapping table.
For example: the mapping table includes a mapping relationship between the candidate word and the pre-stored information, and when the candidate word is "address", the pre-stored information may be a specific address, such as "XX number XX in XX city of XX province"; when the candidate word is "meeting", the pre-stored information may be a quick reply phrase, such as "being in meeting, contacting you later"; when the candidate word is "Xiaoming", the pre-stored information may be contact information, such as a phone number "139 XXXXXXX", an address "XX road XX number XX of XX city, XX province", and the like; when the candidate word is "blessing a new year", the preset message may be a quick reply phrase, such as "happy new year, everything about you! "and the like.
As shown in fig. 3 and 4, when the first character string input is "dizhi", at least one candidate word may be displayed, such as: "address," "geology," "rejection," "low to," etc.; when the candidate word displayed includes a candidate word in the mapping table, such as "address", preset information corresponding to the candidate word "address", such as "XX province XX city … …", may be displayed.
Optionally, the first information may be an indication identifier on a first candidate word matched with the first character string, and after the displaying the first information corresponding to the first character string, the method further includes:
receiving a third input of the indication identifier by the user;
in response to the third input, displaying pre-stored information corresponding to the first candidate word.
For example: displaying at least one candidate word matched with a first character string under the condition that first input used for inputting the first character string by a user is received; under the condition that a first candidate word which is the same as the first candidate word in the mapping table exists in the at least one candidate word, displaying an indication mark on the first candidate word; the indication mark is used for indicating that pre-stored information corresponding to the first candidate word exists in the mapping table, so that a user can conveniently know that the displayed candidate word has the corresponding pre-stored information through the indication mark, and further the corresponding pre-stored information can be quickly checked through the indication mark, so that the user can conveniently and quickly input the pre-stored information under the condition that a character string corresponding to each character in the information content of the pre-stored information does not need to be input, and the input process of the user is simplified.
Optionally, the indication information may be that the first candidate word or a region corresponding to the first candidate word is highlighted, or a label is added to the region corresponding to the first candidate word, or other forms besides the above, which is not limited in this embodiment of the application.
Optionally, the displaying at least one candidate word matching the first character string includes:
displaying the at least one candidate word within a first candidate box;
the displaying the pre-stored information corresponding to the first candidate word includes:
and displaying the pre-stored information in the first candidate frame or displaying the pre-stored information in the second candidate frame.
As shown in fig. 3, the pre-stored information may be directly displayed in the candidate box for displaying the candidate words, such as displaying the at least one candidate word in the first candidate box 21, and displaying the pre-stored information in the first candidate box 21, i.e. simultaneously displaying the at least one candidate word and the pre-stored information in the first candidate box 21 for displaying the candidate words.
As shown in fig. 4, the pre-stored information may also be displayed in the newly added candidate boxes, such as displaying the at least one candidate word in the first candidate box 21, and displaying the pre-stored information in the second candidate box 22, i.e. the candidate word and the pre-stored information are displayed in different candidate boxes.
Optionally, when the first character string corresponds to a plurality of pieces of pre-stored information, or the first candidate word corresponds to a plurality of pieces of pre-stored information, the indication identifier may be displayed on different pieces of pre-stored information, so that the user may distinguish types of the pre-stored information, or the pre-stored information corresponding to different candidate words, and the like. As shown in fig. 5, when the input character string is "xiaoming", the corresponding pre-stored information includes "1 xxxxxx 2XXX 4", "XX province XX city … …", etc., and the pre-stored information 42 (e.g., "1 xxxxxx 2XXX 4") may be added with an indication "telephone", and the pre-stored information 41 (e.g., "XX province XX city … …") may be added with an indication "address".
Optionally, in a case that the first information includes the pre-stored information, the displaying the first information corresponding to the first character string includes:
under the condition that the first character string is matched with the target keyword, displaying part of content of the pre-stored information, namely hiding part of content of the pre-stored information, or adding a cover layer on the pre-stored information for shielding at least part of content of the pre-stored information and the like;
and under the condition that the first character string is not matched with the target keyword, displaying all contents of the pre-stored information.
Alternatively, the matching of the first character string with the target keyword may be: the candidate word corresponding to the first character string is a preset keyword, for example: and inputting a character string 'mima', wherein a candidate word 'password' corresponding to the character string 'mima' is a preset keyword, and determining that the character string 'mima' is matched with the target keyword.
Optionally, the part of the content of the pre-stored information displayed may include, but is not limited to, at least one of the following: adding a non-transparent pattern on at least part of the content of the pre-stored information, wherein the non-transparent pattern is used for shielding the content of the pre-stored information; at least part of the content of the pre-stored information is replaced by a preset symbol, for example, at least part of the content of the pre-stored information is displayed by a ciphertext, for example, if the 'taobaomamma' is input, the pre-stored information can be displayed as 'XXXXXXX', but the actual content is a character string pre-stored by the user.
In the embodiment, for the first character string which is not matched with the target keyword, the content of the corresponding first preset information is directly displayed, so that the non-sensitive information can be conveniently used for direct viewing; and displaying the content of the corresponding first preset information in a hidden mode aiming at the first character string matched with the target keyword, so that the safety of information display can be ensured.
Optionally, in a case that the first information includes the pre-stored information, the displaying the first information corresponding to the first character string in response to the first input includes:
acquiring authentication information of a user in response to the first input;
and displaying first preset information corresponding to the first character string under the condition that the identity authentication information is matched with preset authentication information.
For example: under the condition that the first character string is matched with the target keyword, the identity of the user can be verified firstly, for example, the security can be ensured by prompting the user to input a password, verifying a fingerprint or identifying a portrait; preferably, face recognition can be used, and the front-facing camera is turned on to judge when pre-stored information is displayed, so that interaction is more convenient. For example, before the identity authentication is passed, part of the content of the pre-stored information may be displayed (a cover layer may also be displayed on the pre-stored information to cover the content of the pre-stored information), and after the identity authentication is passed, the complete content of the pre-stored information is displayed.
Optionally, as shown in fig. 6, a flowchart for establishing association between the pre-stored information and the candidate word is provided, and before the specific step of displaying the first information corresponding to the first character string, the method further includes the following steps:
step 601: receiving a third input of the target area by the user;
step 602: and responding to the third input, acquiring prestored information corresponding to the candidate word matched with the first character string, and establishing the association between the prestored information and the candidate word.
Wherein the target area is: at least one of a predetermined area, a display area of the first character string, and a display position of a candidate word matching the first character string. Alternatively, the predetermined area may be a predetermined area, such as a screen edge area, or a display area of a predetermined button, or the like. In the case that the predetermined area is a screen edge area, the third input may be a slide input that slides from the screen edge area to a screen center area; in a case where the predetermined area is a display area of a predetermined button, the third input may be a click input for the predetermined button. As shown in fig. 7, the user inputs a first character string, such as "dizhi", in the input method, and displays a corresponding candidate word. The user can click on button 51 to add pre-stored information such as: in the case that pre-stored information related to the candidate word "address" can be obtained based on local data (e.g., … … "XX province XX city"), an association between the pre-stored information and the "address" can be established; for another example: the input character string is a name (for example, the character string is "xiaoming", and the corresponding candidate word includes "xiaoming"), information such as a phone, a mailbox, an address and the like of the contact "xiaoming" is acquired as pre-stored information in response to a click input to the button 51 under the condition of acquiring the address list authority, so as to establish association between the pre-stored information and the name candidate word corresponding to the first character string, or a recommendation may be learned in an Artificial Intelligence (AI) manner, or the pre-stored information is input by a user in a customized manner, which is not limited in the embodiment of the present application.
Alternatively, in the case where the target region is the display region of the first character string, the third input may be a long press input or a heavy press input for the display region of the first character string, or other forms of input in addition thereto. As further shown in fig. 7, the user enters a first character string, such as "dizhi", in the input method and the corresponding candidate word is displayed. The user can add pre-stored information by long pressing the first string "dizhi", such as: in the case that pre-stored information related to the candidate word "address" can be obtained based on local data (e.g., … … "XX province XX city"), an association between the pre-stored information and the "address" can be established; for another example: the input character string is a name (for example, the character string is "xiaoming", and the corresponding candidate word includes "xiaoming"), information such as a phone, a mailbox, an address of the contact "xiaoming" is acquired as pre-stored information in response to a long press input to a display area of the first character string under the condition of acquiring the address list authority, so as to establish association between the pre-stored information and the name candidate word corresponding to the first character string, or recommendation may be learned in an Artificial Intelligence (AI) manner, or pre-stored information is input by a user in a customized manner, which is not limited in the embodiment of the present application.
Alternatively, the target region is a display position of a candidate word matching the first character string, and the third input may be a long press input or a heavy press input for the display region of the first character string, or other forms of input besides the long press input or the heavy press input, or the like. As further shown in fig. 7, the user enters a first character string, such as "dizhi", in the input method and the corresponding candidate word is displayed. The user may add pre-stored information by long-pressing the candidate word "address" corresponding to the first character string "dizhi", such as: in response to a long press input of a candidate word "address" corresponding to the first character string "dizhi", obtaining pre-stored information (such as a specific address "XX province, XX city … …") related to the "address" in local data, and establishing association between the pre-stored information and the "address"; for another example: the input character string is a name (for example, the character string is "xiaoming", and the corresponding candidate word includes "xiaoming"), and in response to a long press input for the candidate word "xiaoming", information such as a telephone, a mailbox, and an address of a contact "xiaoming" is acquired as pre-stored information under the condition of acquiring the address book authority, so as to establish association between the pre-stored information and the name candidate word corresponding to the first character string, or the recommendation may be learned in an Artificial Intelligence (AI) manner, or the pre-stored information is input by a user in a customized manner, which is not limited in the embodiment of the present application.
In addition, the input method in the embodiment of the present application further provides an editing operation for the pre-stored information by the user, for example, the user may perform an operation of modifying, adding, deleting, sorting, setting a label, and whether to display the preset information in the plaintext or not by pressing a long-time or right-end option button, and the embodiment of the present application is not limited.
Optionally, in a case that the first information includes the at least one candidate word category identifier, the displaying, in response to the first input, first information corresponding to the first character string includes:
determining, in response to the first input, at least one candidate word that matches the first character string;
determining the candidate word category of each candidate word according to a preset classification rule;
and displaying candidate word category identifications corresponding to all candidate word categories.
Alternatively, the preset classification rule may be according to part-of-speech classification (such as verb, noun, adjective, preposition, adverb, and so on), or according to industry category classification (such as building, computer, geography, physics, and so on), or according to media form classification (such as movie, music, tv play, and so on), or other classification rules besides the foregoing, and the embodiments of the present application are not limited thereto.
Determining the candidate word category to which each candidate word belongs may be understood as: and respectively determining the candidate word category to which each candidate word matched with the first character string belongs, wherein a plurality of candidate words can belong to the same category. Such as: the candidate words that match the first string may include candidate word A, B, C, D, E, F; candidate A, C may belong to a first candidate category, candidate B, D, E may belong to a second candidate category, and candidate F may belong to a third candidate category.
Specifically, determining the candidate word category to which each candidate word belongs may be determining the candidate word category to which each candidate word belongs one by one, until determining the candidate word category to which each candidate word belongs for all candidate words; or, according to each candidate word category, selecting candidate words belonging to the candidate word category one by one from the candidate words matched with the first character string until all candidate words determine the candidate word category to which the candidate words belong, such as: the candidate words matching the first character string may include candidate word A, B, C, D, E, F, candidate word A, C belonging to the first candidate word category is selected from all candidate words A, B, C, D, E, F according to the first candidate word category, candidate word B, D, E belonging to the second candidate word category is selected from the remaining candidate words B, D, E, F according to the second candidate word, and candidate word F is selected from the remaining candidate words F according to the third candidate word category; when the candidate words are selected based on the candidate word categories, if a corresponding candidate word is not selected for a certain candidate word category, the selection of the next candidate word category is continued until all the candidate words determine the candidate word categories to which the candidate words belong. Of course, determining the candidate word category to which each candidate word belongs may also be performed in other manners besides the above examples, and this is not limited in this embodiment of the application.
In this embodiment, the candidate word category identifier is used to indicate a category to which a candidate word matching the first character string belongs, so that a user can quickly locate content to be input. In addition, if there are a plurality of candidate words matching the first character string, the plurality of candidate words may be divided into different categories; if a candidate word category does not include a candidate word matched with the first character string, the candidate word category identifier corresponding to the candidate word category may not be displayed, so as to avoid that the candidate word category identifier is displayed redundantly to influence the user operation.
Optionally, as shown in fig. 8, a flowchart for displaying candidate words is provided, where in a case that the specific first information includes the at least one candidate word category identifier, after the first information corresponding to the first character string is displayed, the method further includes the following steps:
step 801: receiving second input of the user for the first candidate word category identification; wherein the first candidate word category identifier is at least one of the at least one candidate word category identifier;
step 802: and responding to the second input, and displaying a candidate word corresponding to the first candidate word category identification.
As shown in fig. 9, in case that the user inputs the character string "dizhi", the corresponding candidate word may be displayed. As shown in fig. 10, in case that the user inputs the character string "dizhi", at least one candidate word category identifier 71 may be further displayed, where the candidate word category identifier 71 is used to indicate a category to which a candidate word matching the first character string belongs, so as to provide for the user to select a corresponding candidate word according to different candidate word categories, and the candidate word category identifiers may be divided according to parts of speech (such as verbs, nouns, adjectives, prepositions, adverbs, inflectives, etc.); as shown in fig. 11, the candidate word category identification 81 may also be divided by industry category (e.g., computer, geographic, physical, etc.); alternatively, the candidate word category identifier may be further divided according to media categories (such as movies, music, television, and the like), and the like, which is not limited in this embodiment of the application.
For example: the content specifically displayed in the secondary menu may also be set by a user in a self-defined manner, or determined according to the candidate word category input by the history based on a learning algorithm, or displayed and ordered in a manner of AI or according to the popularity of the input content at different levels (for example, the popularity may be realized by a big data learning algorithm), and the like, which is not limited in the embodiment of the present application.
Another example is: the candidate word categories under different classification rules may be displayed in a mixed manner, that is, the candidate words matched with the first character string may be classified according to the candidate word categories under different rules, for example, the candidate words matched with the first character string may be classified according to a verb in part-of-speech classification, a computer in industry category classification, a movie in media type classification, and the like.
In this way, the user may display the candidate words in the corresponding candidate word category through a second input (e.g., a click input for the first candidate word category identifier), that is, adjust a display manner of the candidate words to hide candidate words not belonging to the category, and perform a second-level association in this field to display more candidate words with stronger relevance, which is not limited in the embodiment of the present application.
According to the input method provided by the embodiment of the application, the execution main body can be an input device. In the embodiment of the present application, a method for executing audio data processing by an input device is taken as an example, and the input device provided in the embodiment of the present application is described.
As shown in fig. 12, an embodiment of the present application provides an input device 900, including:
a first receiving module 910, configured to receive a first input of a user; wherein the first input is for inputting a first string;
a first response module 920, configured to display, in response to the first input, first information corresponding to the first character string;
wherein the first information comprises at least one of:
pre-storing information corresponding to a first candidate word, wherein the first candidate word is candidate word pre-storing information matched with the first character string;
at least one candidate word category identification matching the first string.
As shown in fig. 13, optionally, in a case that the first information includes the pre-stored information, the first response module 920 includes:
a first display unit 921 for displaying at least one candidate word matched with the first character string in response to the first input;
the second display unit 922 is configured to display pre-stored information corresponding to the first candidate word when the first candidate word exists in the at least one candidate word.
Optionally, the display first display unit 921 includes:
a first display subunit 9211, configured to display the at least one candidate word in the first candidate frame;
the second display unit 922 includes:
a second display subunit 9221, configured to display the pre-stored information in the first candidate frame, or display the pre-stored information in the second candidate frame.
Optionally, in a case that the first information includes the pre-stored information, the first response module 920 includes:
a third display unit 923, configured to display a part of the content of the pre-stored information when the first character string matches a target keyword;
a fourth display unit 924, configured to display the entire content of the pre-stored information if the first character string does not match the target keyword.
Optionally, in a case that the first information includes the pre-stored information, the first response module 920 includes:
an acquisition unit configured to acquire authentication information of a user in response to the first input;
and the fifth display unit is used for displaying the first preset information corresponding to the first character string under the condition that the identity authentication information is matched with the preset authentication information.
Optionally, in a case that the first information includes the at least one candidate word class identifier, the input device 900 further includes:
a second receiving module 930, configured to receive a second input of the first candidate word category identification from the user; wherein the first candidate word category identifier is at least one of the at least one candidate word category identifier;
a second response module 940, configured to display, in response to the second input, a candidate word corresponding to the first candidate word category identifier.
Optionally, the input device 900 further includes:
a third receiving module 950, configured to receive a third input of the target area from the user; wherein the target area is: at least one of a predetermined area, a display area of the first character string, and a display position of a candidate word matching the first character string;
a third response module 960, configured to, in response to the third input, obtain pre-stored information corresponding to the candidate word that matches the first character string, and establish an association between the pre-stored information and the candidate word.
The device in the embodiment of the invention, by receiving the first input for inputting the first character string and responding to the first input, displays the pre-stored information matched with the first character string in the preset mapping table, enriches the matching content of the candidate words of the input method compared with the current mode of matching the candidate words through pinyin, and can quickly input the pre-stored information under the condition that the user does not need to input the character string corresponding to each character in the information content of the pre-stored information, thereby simplifying the input process of the user. And responding to the first input, displaying at least one candidate word category identification matched with the first character string, and providing a user to select different types of candidate words, so that the efficiency of searching a target candidate word in a large number of candidate words matched with the character string by the user is improved.
The audio data processing apparatus in the embodiment of the present application may be an electronic device, and may also be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be a device other than a terminal. The electronic Device may be, for example, a Mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic Device, a Mobile Internet Device (MID), an Augmented Reality (AR)/Virtual Reality (VR) Device, a robot, a wearable Device, an ultra-Mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and may also be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine, 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, which is not specifically limited in the embodiments of the present application.
The input device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to fig. 11, and is not described herein again to avoid repetition.
Optionally, as shown in fig. 14, an electronic device 1000 is further provided in this embodiment of the present application, and includes a processor 1001 and a memory 1002, where the memory 1002 stores a program or an instruction that can be executed on the processor 1001, and when the program or the instruction is executed by the processor 1001, the steps of the input method embodiment are implemented, and the same technical effect can be achieved, and details are not repeated 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. 15 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application.
The electronic device 1100 includes, but is not limited to: a radio frequency unit 1101, a network module 1102, an audio output unit 1103, an input unit 1104, a sensor 1105, a display unit 1106, a user input unit 1107, an interface unit 1108, a memory 09, a processor 1110, and the like.
Those skilled in the art will appreciate that the electronic device 1100 may further include a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 1110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 15 does not constitute a limitation to the electronic device, and the electronic device may include more or less components than those shown in the drawings, or combine some components, or arrange different components, and thus, the description is omitted here.
Wherein the user input unit 1107 is configured to: receiving a first input of a user; wherein the first input is used for inputting a first character string;
processor 1110 is configured to: in response to the first input, displaying first information corresponding to the first character string through a display unit 1106;
wherein the first information comprises at least one of:
pre-storing information corresponding to a first candidate word, wherein the first candidate word is candidate word pre-storing information matched with the first character string;
at least one candidate word category identification matching the first string.
Optionally, in a case that the first information includes the pre-stored information, the processor 1110 is further configured to: in response to the first input, displaying, by the display unit 1106, at least one candidate word matching the first character string;
processor 1110 is further configured to: when the first candidate word exists in the at least one candidate word, pre-stored information corresponding to the first candidate word is displayed through the display unit 1106.
Optionally, the display unit 1106 is configured to: displaying the at least one candidate word within a first candidate box;
the display unit 1106 is further configured to: and displaying the pre-stored information in the first candidate frame or displaying the pre-stored information in the second candidate frame.
Optionally, in a case that the first information includes the pre-stored information, the processor 1110 is further configured to: under the condition that the first character string is matched with a target keyword, displaying partial content of the pre-stored information through a display unit 1106; in the case where the first character string does not match the target keyword, the entire contents of the pre-stored information are displayed through the display unit 1106.
Optionally, in a case that the first information includes the pre-stored information, the processor 1110 is further configured to: acquiring authentication information of a user in response to the first input; and displaying first preset information corresponding to the first character string through a display unit 1106 under the condition that the identity authentication information is matched with preset authentication information.
Optionally, in a case that the first information includes the at least one candidate word class identifier, the user input unit 1107 is further configured to: receiving a second input of the first candidate word category identification from the user; wherein the first candidate word category identifier is at least one of the at least one candidate word category identifier;
processor 1110 is further configured to: in response to the second input, displaying, by the display unit 1106, a candidate word corresponding to the first candidate word category identification.
Optionally, the user input unit 1107 is also used to: receiving a third input of the target area by the user; wherein the target area is: at least one of a predetermined area, a display area of the first character string, and a display position of a candidate word matching the first character string;
processor 1110 is further configured to: responding to the third input, acquiring prestored information corresponding to the candidate word matched with the first character string, and establishing association between the prestored information and the candidate word.
The electronic equipment in the embodiment of the invention receives the first input for inputting the first character string, responds to the first input, and displays the pre-stored information matched with the first character string in the preset mapping table, compared with the current mode of matching the candidate words through pinyin, the matching content of the candidate words of the input method is enriched, and the user can quickly input the pre-stored information under the condition of not inputting the character string corresponding to each character in the information content of the pre-stored information, thereby further simplifying the input process of the user. And responding to the first input, displaying at least one candidate word category identification matched with the first character string, and providing a user to select different types of candidate words, so that the efficiency of searching a target candidate word in a large number of candidate words matched with the character string by the user is improved.
It should be understood that in the embodiment of the present application, the input Unit 1104 may include a Graphics Processing Unit (GPU) 11041 and a microphone 11042, and the Graphics processor 11041 processes image data of still pictures or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1106 may include a display panel 11061, and the display panel 11061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1107 includes at least one of a touch panel 11071 and other input devices 11072. A touch panel 11071, also called a touch screen. The touch panel 11071 may include two portions of a touch detection device and a touch controller. Other input devices 11072 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 1109 may be used to store software programs as well as various data. The memory 1109 may mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area may store an operating system, an application program or instruction (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 1109 may include volatile memory or nonvolatile memory, or the memory 1109 may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM), a Static Random Access Memory (Static RAM, SRAM), a Dynamic Random Access Memory (Dynamic RAM, DRAM), a Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), a Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, ddr SDRAM), an Enhanced Synchronous SDRAM (ESDRAM), a Synchronous Link DRAM (SLDRAM), and a Direct Memory bus RAM (DRRAM). The memory 1109 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 1110 may include one or more processing units; optionally, the processor 1110 integrates an application processor, which primarily handles operations related to the operating system, user interface, and applications, and a modem processor, which primarily handles wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into processor 1110.
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 each process of the above-mentioned audio data processing method embodiment, 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 described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read only memory ROM, a random access memory RAM, a magnetic or optical disk, and the like.
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 run a program or an instruction to implement each process of the above input method embodiment, and can achieve the same technical effect, and the 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.
Embodiments of the present application provide a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the processes of the above-mentioned input method embodiments, and can achieve the same technical effects, and in order to avoid repetition, details are not described here again.
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 computer 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, 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 method, comprising:
receiving a first input of a user; wherein the first input is used for inputting a first character string;
displaying first information corresponding to the first character string in response to the first input;
wherein the first information comprises at least one of:
pre-stored information corresponding to a first candidate word, wherein the first candidate word is a candidate word matched with the first character string;
at least one candidate word category identification matching the first character string.
2. The input method according to claim 1, wherein in a case where the first information includes the pre-stored information, the displaying of the first information corresponding to the first character string in response to the first input includes:
in response to the first input, displaying at least one candidate word that matches the first character string;
and displaying pre-stored information corresponding to the first candidate word under the condition that the first candidate word exists in the at least one candidate word.
3. The method of claim 2, wherein the displaying at least one candidate word matching the first character string comprises:
displaying the at least one candidate word within a first candidate box;
the displaying of the pre-stored information corresponding to the first candidate word includes:
and displaying the pre-stored information in the first candidate frame or displaying the pre-stored information in the second candidate frame.
4. The input method according to claim 1, wherein in a case where the first information includes the pre-stored information, the displaying the first information corresponding to the first character string includes:
under the condition that the first character string is matched with a target keyword, displaying partial content of the pre-stored information;
and under the condition that the first character string is not matched with the target keyword, displaying all contents of the pre-stored information.
5. The input method according to claim 1, wherein, in a case where the first information includes the at least one candidate word class identifier, after the displaying the first information corresponding to the first character string, the method further includes:
receiving a second input of the first candidate word category identification from the user; the first candidate word category identification is at least one of the at least one candidate word category identification;
and responding to the second input, and displaying a candidate word corresponding to the first candidate word category identification.
6. The input method according to claim 1, wherein before displaying the first information corresponding to the first character string, the input method further comprises:
receiving a third input of the target area by the user;
and responding to the third input, acquiring prestored information corresponding to the candidate word matched with the first character string, and establishing the association between the prestored information and the candidate word.
7. An input device, comprising:
the first receiving module is used for receiving a first input of a user; wherein the first input is for inputting a first string;
a first response module, configured to display, in response to the first input, first information corresponding to the first character string;
wherein the first information comprises at least one of:
pre-stored information corresponding to a first candidate word, wherein the first candidate word is a candidate word matched with the first character string;
at least one candidate word category identification matching the first string.
8. The input device as claimed in claim 7, wherein in case that the first information comprises the pre-stored information, the first response module comprises:
the first display unit is used for responding to the first input and displaying at least one candidate word matched with the first character string;
and the second display unit is used for displaying pre-stored information corresponding to the first candidate word under the condition that the first candidate word exists in the at least one candidate word.
9. The input device according to claim 8, wherein the displaying the first display unit comprises:
a first display subunit, configured to display the at least one candidate word in a first candidate frame;
the second display unit includes:
and the second display subunit is used for displaying the pre-stored information in the first candidate frame or displaying the pre-stored information in the second candidate frame.
10. The input device as claimed in claim 7, wherein in the case that the first information includes the pre-stored information, the first response module comprises:
the third display unit is used for displaying partial content of the pre-stored information under the condition that the first character string is matched with a target keyword;
and the fourth display unit is used for displaying the whole content of the pre-stored information under the condition that the first character string is not matched with the target keyword.
11. The input device according to claim 7, wherein if the first information includes the at least one candidate word class identifier, further comprising:
the second receiving module is used for receiving second input of the first candidate word category identification by the user; the first candidate word category identification is at least one of the at least one candidate word category identification;
and the second response module is used for responding to the second input and displaying the candidate words corresponding to the first candidate word category identification.
12. The input device of claim 7, further comprising:
the third receiving module is used for receiving a third input of the user to the target area;
and the third response module is used for responding to the third input, acquiring prestored information corresponding to the candidate word matched with the first character string, and establishing the association between the prestored information and the candidate word.
13. An electronic device comprising a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions when executed by the processor implementing the steps of the input method of any one of claims 1 to 6.
14. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the input method according to any one of claims 1 to 6.
CN202210652011.2A 2022-06-09 2022-06-09 Input method, input device, electronic equipment and readable storage medium Pending CN115061580A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210652011.2A CN115061580A (en) 2022-06-09 2022-06-09 Input method, input device, electronic equipment and readable storage medium
PCT/CN2023/098044 WO2023236866A1 (en) 2022-06-09 2023-06-02 Input method and apparatus, electronic device, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210652011.2A CN115061580A (en) 2022-06-09 2022-06-09 Input method, input device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN115061580A true CN115061580A (en) 2022-09-16

Family

ID=83201069

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210652011.2A Pending CN115061580A (en) 2022-06-09 2022-06-09 Input method, input device, electronic equipment and readable storage medium

Country Status (2)

Country Link
CN (1) CN115061580A (en)
WO (1) WO2023236866A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023236866A1 (en) * 2022-06-09 2023-12-14 维沃移动通信有限公司 Input method and apparatus, electronic device, and readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107885346A (en) * 2017-10-25 2018-04-06 努比亚技术有限公司 A kind of candidate's words recommending method, terminal and computer-readable recording medium
CN109164923B (en) * 2018-08-21 2022-06-17 平安科技(深圳)有限公司 Method and device for recommending candidate words by input method, computer equipment and storage medium
CN110399046A (en) * 2019-05-31 2019-11-01 平安科技(深圳)有限公司 The processing method of candidate item, device, equipment and storage medium in input method
CN115061580A (en) * 2022-06-09 2022-09-16 维沃移动通信有限公司 Input method, input device, electronic equipment and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023236866A1 (en) * 2022-06-09 2023-12-14 维沃移动通信有限公司 Input method and apparatus, electronic device, and readable storage medium

Also Published As

Publication number Publication date
WO2023236866A1 (en) 2023-12-14

Similar Documents

Publication Publication Date Title
JP2006527870A (en) Configurable information identification system and method
CN111880668A (en) Input display method and device and electronic equipment
WO2023236866A1 (en) Input method and apparatus, electronic device, and readable storage medium
CN111538830A (en) French retrieval method, French retrieval device, computer equipment and storage medium
CN113869063A (en) Data recommendation method and device, electronic equipment and storage medium
CN108073293B (en) Method and device for determining target phrase
CN113010248A (en) Operation guiding method and device and electronic equipment
CN115174506B (en) Session information processing method, apparatus, readable storage medium and computer device
CN112383662A (en) Information display method and device and electronic equipment
CN114374663B (en) Message processing method and message processing device
CN113157966B (en) Display method and device and electronic equipment
CN113782027A (en) Audio processing method and audio processing device
CN111913627A (en) Recording file display method and device and electronic equipment
CN113362426A (en) Image editing method and image editing device
CN112684912A (en) Candidate information display method and device and electronic equipment
CN112764601B (en) Information display method and device and electronic equipment
CN111611030A (en) Data processing method and device and data processing device
US20100325130A1 (en) Media asset interactive search
CN110929122A (en) Data processing method and device and data processing device
CN116225272A (en) Display method and device and electronic equipment
CN115933945A (en) Screen locking interface display method and device and electronic equipment
CN117010326A (en) Text processing method and device, and training method and device for text processing model
CN115904095A (en) Information input method and device, electronic equipment and readable storage medium
CN115309487A (en) Display method, display device, electronic equipment and readable storage medium
CN115424603A (en) Voice generation method and device, electronic equipment and storage medium

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