Input method, device, electronic equipment and readable storage medium
By displaying pre-stored candidate word information and category identifiers in the input method, the problem of low efficiency in existing input methods is solved, and a fast and efficient input process and diverse candidate word selection are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-09
- Publication Date
- 2026-03-24
AI Technical Summary
Existing input methods are inefficient, requiring users to flip through pages or swipe to select candidate words when inputting text or character information, resulting in low input efficiency.
By receiving the first string input by the user, the system displays candidate words that match the string, along with their corresponding pre-stored information and category identifiers, thus enriching the candidate word matching content and simplifying the user input process.
It improves the efficiency of users in quickly finding target candidate words from a large number of candidate words, simplifies the input process, and enhances the diversity and selectivity of candidate word matching.
Smart Images

Figure CN115061580B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of communication, and particularly relates to an input method and device, electronic equipment and a readable storage medium. BACKGROUND
[0002] In the use process of the electronic equipment, inputting text or other character information is one of the high-frequency use scenarios of the user. The interactive means of the user inputting text or other character information is usually an input method, that is, the user can input text or other character information through the input method. For example, when the user inputs pinyin in the input method interface, the corresponding candidate word is matched through the pinyin to be provided for the user to select, and when the user selects the candidate word that the user wants to input from the multiple candidate words, if the candidate word is not commonly used, the user may need to perform page turning, sliding and other operations for the selection of the candidate word. The current input method has the problem of low efficiency. SUMMARY
[0003] The purpose of the embodiments of the present application is to provide an input method, device, electronic equipment and readable storage medium, which can solve the problem of low efficiency of the current input method.
[0004] In a first aspect, the embodiments of the present application provide an input method, comprising:
[0005] receiving a first input of a user; wherein the first input is used for inputting a first string;
[0006] displaying first information corresponding to the first string in response to the first input;
[0007] The first information comprises at least one of the following:
[0008] pre-stored information corresponding to a first candidate word, wherein the first candidate word is a candidate word matched with the first string;
[0009] at least one candidate word category identifier matched with the first string.
[0010] In a second aspect, the embodiments of the present application provide an input device, comprising:
[0011] a first receiving module configured to receive a first input of a user; wherein the first input is used for inputting a first string;
[0012] a first response module configured to display first information corresponding to the first string in response to the first input;
[0013] The first information comprises at least one of the following:
[0014] the pre-stored information corresponding to the first candidate word, the first candidate word being a candidate word matched with the first string;
[0015] at least one candidate word category identifier matched with the first string.
[0016] In a third aspect, an electronic device is provided, which includes a processor and a memory. The memory stores programs or instructions executable on the processor. When the programs or instructions are executed by the processor, the steps of the input method according to the first aspect are implemented.
[0017] In a fourth aspect, a readable storage medium is provided, which stores programs or instructions. When the programs or instructions are executed by a processor, the steps of the input method according to the first aspect are implemented.
[0018] In a fifth aspect, a chip is provided, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is configured to execute programs or instructions, so as to implement the steps of the input method according to the first aspect.
[0019] In a sixth aspect, a computer program product is provided, which is stored in a storage medium. The computer program product is executed by at least one processor to implement the steps of the input method according to the first aspect.
[0020] In the embodiments of the present application, by receiving a first input for inputting a first string, in response to the first input, pre-stored information corresponding to a first candidate word matched with the first string is displayed. Compared with the current way of matching candidate words by strings, the input method of the present application enriches the matching content of candidate words of the input method, and the user can quickly input the pre-stored information without inputting a string corresponding to each character of the information content of the pre-stored information, thereby simplifying the input process of the user. In addition, in response to the first input, at least one candidate word category identifier matched with the first string is displayed, which can provide the user with the option of selecting different types of candidate words, thereby improving the diversity of candidate word matching and improving the efficiency of the user in searching for a target candidate word from a large number of candidate words matched with strings. BRIEF DESCRIPTION OF DRAWINGS
[0021] Figure 1 is a flowchart of the input method according to the embodiments of the present application;
[0022] Figure 2 is a flowchart of displaying first information according to the embodiments of the present application;
[0023] Figure 3 is one of the schematic diagrams of the input method interface according to the embodiments of the present application;
[0024] Figure 4 FIG. 2 is a schematic diagram of an input method interface according to an embodiment of the present application;
[0025] Figure 5 FIG. 3 is a schematic diagram of an input method interface according to an embodiment of the present application;
[0026] Figure 6 FIG. 4 is a flowchart of establishing the association between the pre-stored information and the candidate word according to an embodiment of the present application;
[0027] Figure 7 FIG. 5 is a schematic diagram of an input method interface according to an embodiment of the present application;
[0028] Figure 8 FIG. 6 is a flowchart of displaying the candidate word according to an embodiment of the present application;
[0029] Figure 9 FIG. 7 is a schematic diagram of an input method interface according to an embodiment of the present application;
[0030] Figure 10 FIG. 8 is a schematic diagram of an input method interface according to an embodiment of the present application;
[0031] Figure 11 FIG. 9 is a schematic diagram of an input method interface according to an embodiment of the present application;
[0032] Figure 12 FIG. 10 is a block diagram of an input device according to an embodiment of the present application;
[0033] Figure 13 FIG. 11 is a block diagram of an input device according to an embodiment of the present application;
[0034] Figure 14 FIG. 12 is a block diagram of an electronic device according to an embodiment of the present application;
[0035] Figure 15 FIG. 13 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0036] The technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.
[0037] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally a class and do not limit the number of objects, for example, the first object can be one or more. In addition, "and / or" in the specification and claims indicates at least one of the connected objects, and the character " / " generally indicates that the objects before and after are in an "or" relationship.
[0038] The audio data processing method provided by the embodiments of the present application will be described in detail below in combination with the drawings, specific embodiments and application scenarios.
[0039] As shown in the Figure 1 The embodiments of the present application provide an input method, comprising the following steps:
[0040] Step 101: receiving a first input of a user; wherein the first input is used to input a first string.
[0041] Optionally, the first input can be an input of a user to a keyboard area in an input method interface. The user can input a corresponding string through the input to the keyboard area. Of course, in addition to inputting a string through the keyboard area, the user can also input a string or character through strokes, handwriting, or voice input, etc. The embodiments of the present application are not limited thereto.
[0042] Step 102: displaying first information corresponding to the first string in response to the first input.
[0043] The first information comprises at least one of the following:
[0044] Pre-stored information corresponding to a first candidate word, the first candidate word being a candidate word matched with the first string;
[0045] At least one candidate word category identifier matched with the first string.
[0046] Optionally, the mapping relationship between the first candidate word and the pre-stored information can be pre-stored in a mapping table, that is, the mapping table can pre-store the corresponding relationship between the candidate word and the pre-stored information, such as that the candidate word can be matched according to the string, and the corresponding pre-stored information can be matched through the mapping table according to the matched candidate word. For example, the string can be "dizhi", the candidate word "address" is matched, and the corresponding pre-stored information obtained through the mapping table can be a specific address, such as "XX Province XX City XX Road XX No.". The string can be "huiyi", the candidate word "meeting" is matched, and the corresponding pre-stored information obtained through the mapping table can be a quick reply phrase, such as "in the meeting, contact you later". The string can be "xiaoming", the candidate word "xiaoming" is matched, and the corresponding pre-stored information obtained through the mapping table can be contact information, such as a telephone number "139XXXXXXXX", an address "XX Province XX City XX Road XX No.", etc. The string can be "xinnianzhufu", the candidate word "new year's greetings" is matched, and the pre-stored information obtained through the mapping table can be a quick reply phrase, such as "Happy New Year, everything goes well!", etc. The embodiments of the present application are not limited.
[0047] Optionally, the mapping table can also directly pre-store the corresponding relationship between the string and the pre-stored information, such as that the pre-stored information can be an address, contact information, a password, a quick reply phrase, etc. For example, the string can be "dizhi", and the corresponding pre-stored information can be a specific address, such as "XX Province XX City XX Road XX No.". The string can be "huiyi", and the corresponding pre-stored information can be a quick reply phrase, such as "in the meeting, contact you later". The string can be "xiaoming", and the corresponding pre-stored information can be contact information, such as a telephone number "139XXXXXXXX", an address "XX Province XX City XX Road XX No.", etc. The string can be "xinnianzhufu", and the pre-stored information can be a quick reply phrase, such as "Happy New Year, everything goes well!", etc. The embodiments of the present application are not limited.
[0048] Optionally, in addition to being a text, the pre-stored information can also be a picture, a video, an application or a small program link, etc. For example, inputting "health code" can open the corresponding small program.
[0049] Optionally, the mapping table can be implemented in the form of macro definition, or other forms, etc. The embodiments of the present application are not limited.
[0050] Optionally, the candidate word category identifier is used to indicate a candidate word category to which the candidate word matching the first string belongs, such as a part-of-speech classification (e.g., a verb, a noun, an adjective, a preposition, an adverb, a modal particle, etc.), or an industry category classification (e.g., construction, computer, geography, physics, etc.), or a media form classification (e.g., a movie, music, a TV series, etc.), or other classification forms, etc. The embodiments of the present application are not limited thereto.
[0051] In this embodiment, by receiving a first input for inputting a first string, in response to the first input, pre-stored information corresponding to a first candidate word matching the first string is displayed. Compared with the current string matching candidate word method, the input method candidate word matching content is enriched, and the user can quickly input the pre-stored information without inputting a string corresponding to each character of the information content of the pre-stored information, thereby simplifying the user input process. In response to the first input, at least one candidate word category identifier matching the first string is displayed, which can provide the user with the selection of different types of candidate words, thereby improving the user's efficiency in finding the target candidate word from a large number of candidate words matching the string.
[0052] Optionally, as shown in Figure 2 A flowchart for displaying first information is given, and in the case of the first information including the pre-stored information, the first information corresponding to the first string is displayed in response to the first input, including the following steps:
[0053] Step 201: In response to the first input, at least one candidate word matching the first string is displayed.
[0054] Step 202: In the case that the first candidate word exists in the at least one candidate word, the pre-stored information corresponding to the first candidate word is displayed.
[0055] The mapping table includes a mapping relationship between the candidate word and the pre-stored information, and the first candidate word is at least one candidate word in the mapping table.
[0056] For example, the mapping table includes a mapping relationship between the candidate word and the pre-stored information, when the candidate word is "address", the pre-stored information can be a specific address, such as "XX Province XX City XX Road XX"; when the candidate word is "meeting", the pre-stored information can be a quick reply phrase, such as "I am in a meeting, I will contact you later"; when the candidate word is "Xiaoming", the pre-stored information can be a contact information, such as a telephone number "139XXXXXXXX", an address "XX Province XX City XX Road XX", etc.; when the candidate word is "New Year's greetings", the pre-stored information can be a quick reply phrase, such as "Happy New Year, everything goes well!", etc.
[0057] As Figure 3 and Figure 4 shown, when the input first string is "dizhi", at least one candidate word can be displayed, such as "address", "geology", "resist", "as low as", etc.; when the displayed candidate word includes a candidate word in the mapping table, such as "address", the preset information corresponding to the candidate word "address" can be displayed, such as the specific address "XX province XX city …".
[0058] Optionally, the first information can be an indication mark on the first candidate word matched with the first string, and the display of the first information corresponding to the first string further includes:
[0059] receiving a third input of the user on the indication mark;
[0060] in response to the third input, displaying the pre-stored information corresponding to the first candidate word.
[0061] For example, in the case of receiving a first input of the user for inputting a first string, at least one candidate word matched with the first string is displayed; in the case that there is a same first candidate word in the mapping table in the at least one candidate word, an indication mark is displayed on the first candidate word; wherein the indication mark is used to indicate that there is pre-stored information corresponding to the first candidate word in the mapping table, so that the user can know that there is pre-stored information corresponding to the displayed candidate word through the indication mark, and further can quickly view the corresponding pre-stored information through the indication mark, thereby facilitating the user to quickly input the pre-stored information without inputting the string corresponding to each character of the information content of the pre-stored information, and thus simplifying the user input process.
[0062] Optionally, the indication information can be a highlight display of the first candidate word or a region corresponding to the first candidate word, or adding a label to the region corresponding to the first candidate word, or other forms, etc., which are not limited by the embodiments of the present application.
[0063] Optionally, the display of the at least one candidate word matched with the first string includes:
[0064] displaying the at least one candidate word in a first candidate box;
[0065] the display of the pre-stored information corresponding to the first candidate word includes:
[0066] displaying the pre-stored information in the first candidate box or displaying the pre-stored information in a second candidate box.
[0067] As Figure 3As shown, the pre-stored information can 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, that is, simultaneously displaying the at least one candidate word and the pre-stored information in the first candidate box 21 for displaying the candidate words.
[0068] As shown, the pre-stored information can 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, that is, simultaneously displaying the at least one candidate word and the pre-stored information in the first candidate box 21 for displaying the candidate words. Figure 4 As shown, the pre-stored information can 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, that is, simultaneously displaying the at least one candidate word and the pre-stored information in the first candidate box 21 for displaying the candidate words.
[0069] As shown, the pre-stored information can 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, that is, simultaneously displaying the at least one candidate word and the pre-stored information in the first candidate box 21 for displaying the candidate words. Figure 5 As shown, the pre-stored information can 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, that is, simultaneously displaying the at least one candidate word and the pre-stored information in the first candidate box 21 for displaying the candidate words.
[0070] Optionally, in the case that the first information includes the pre-stored information, the displaying the first information corresponding to the first string includes:
[0071] In the case that the first string matches the target keyword, displaying part of the pre-stored information, that is, hiding part of the pre-stored information, or adding a covering layer on the pre-stored information for shielding at least part of the content of the pre-stored information, etc.
[0072] In the case that the first string does not match the target keyword, displaying all the content of the pre-stored information.
[0073] Optionally, the matching of the first string and the target keyword can be that the candidate word corresponding to the first string is a preset keyword, for example, inputting the string "mima", the corresponding candidate word "password" is a preset keyword, and it is determined that the string "mima" matches the target keyword.
[0074] Optionally, displaying part of the pre-stored information can include, but is not limited to, at least one of the following: adding a non-transparent pattern on at least part of the pre-stored information to shield the content of the pre-stored information; replacing at least part of the pre-stored information with a preset symbol, such as displaying at least part of the pre-stored information as ciphertext, for example, if "taobaomima" is input, the pre-stored information can be displayed as "XXXXXX", but the actual content is the string pre-stored by the user.
[0075] In this embodiment, for the first string that does not match the target keyword, the content of the corresponding first preset information is directly displayed, so that the non-sensitive information can be directly viewed; and for the first string that matches the target keyword, the content of the corresponding first preset information is displayed in a hidden manner, so that the security of information display can be ensured.
[0076] Optionally, when the first information includes the pre-stored information, the displaying the first information corresponding to the first string in response to the first input includes:
[0077] In response to the first input, obtaining identity verification information of the user;
[0078] When the identity verification information matches the preset verification information, displaying first preset information corresponding to the first string.
[0079] For example, when the first string matches the target keyword, the identity of the user can be verified first, such as by prompting the user to input a password, verifying a fingerprint, or using portrait recognition to ensure security; preferably, face recognition can be used, and the front camera can be turned on to determine when the pre-stored information is displayed, so that the interaction is more convenient. Before the identity verification is passed, part of the pre-stored information can be displayed (a cover layer can also be displayed on the pre-stored information to shield the content of the pre-stored information), and after the identity verification is passed, the complete content of the pre-stored information is displayed.
[0080] Optionally, as shown in the following flowchart, before the displaying the first information corresponding to the first string, the following steps are further included: Figure 6
[0081] Step 601: receiving a third input of a target region by the user;
[0082] Step 602: in response to the third input, obtaining pre-stored information corresponding to a candidate word matching the first string, and establishing an association between the pre-stored information and the candidate word.
[0083] The target region is at least one of a predetermined region, a display region of the first string, and a display position of a candidate word matched with the first string. Optionally, the predetermined region can be a region preset in advance, such as a screen edge region or a display region of a predetermined button. When the predetermined region is a screen edge region, the third input can be a sliding input from the screen edge region to a screen center region. When the predetermined region is a display region of a predetermined button, the third input can be a click input on the predetermined button. Figure 7 As shown in FIG. 51, a user inputs a first string, such as “dizhi”, in an input method, and a corresponding candidate word is displayed. The user can click a button 51 to add pre-stored information. For example, if the local data can be used to obtain pre-stored information related to the candidate word “address” (such as a specific address “XX province XX city”), an association between the pre-stored information and the “address” can be established. For another example, if the input string is a person name (such as a string “xiaoming” and the corresponding candidate word includes “xiaoming”), an association between the pre-stored information and the person name candidate word corresponding to the first string can be established by obtaining the telephone, email, address, and the like of the contact “xiaoming” as the pre-stored information in the case of obtaining the contact list permission. Alternatively, the pre-stored information can be learned and recommended by using artificial intelligence (AI), or the pre-stored information can be input by the user in a self-defined manner, and the like, which are not limited in the embodiments of the present application.
[0084] Optionally, when the target region is a display region of the first string, the third input can be a long press input or a double press input on the display region of the first string, or other forms of input, and the like. As shown in FIG. 52, a user inputs a first string, such as “dizhi”, in an input method, and a corresponding candidate word is displayed. The user can add pre-stored information by long pressing the first string “dizhi”. For example, if the local data can be used to obtain pre-stored information related to the candidate word “address” (such as a specific address “XX province XX city”), an association between the pre-stored information and the “address” can be established. For another example, if the input string is a person name (such as a string “xiaoming” and the corresponding candidate word includes “xiaoming”), an association between the pre-stored information and the person name candidate word corresponding to the first string can be established by obtaining the telephone, email, address, and the like of the contact “xiaoming” as the pre-stored information in the case of obtaining the contact list permission. Alternatively, the pre-stored information can be learned and recommended by using artificial intelligence (AI), or the pre-stored information can be input by the user in a self-defined manner, and the like, which are not limited in the embodiments of the present application. Figure 7
[0085] Optionally, the target region is a display position of a candidate word matched with the first string, and the third input can be a long press input or a double press input on a display region of the first string or other forms of input. Figure 7 In the input method, a user inputs a first string, such as "dizhi", and a corresponding candidate word is displayed. The user can add pre-stored information by long pressing the candidate word "address" corresponding to the first string "dizhi". For example, in response to a long press input on the candidate word "address" corresponding to the first string "dizhi", pre-stored information related to "address" (such as a specific address "XX Province XX City...") in local data is obtained, and an association between the pre-stored information and "address" is established. For another example, the input string is a person's name (for example, the string is "xiaoming" and the corresponding candidate word includes "xiaoming"), and in response to a long press input on the candidate word "xiaoming", the phone, email, address, and other information of the contact person "xiaoming" are obtained as pre-stored information by obtaining the contact person "xiaoming" under the condition of obtaining the address book permission, thereby establishing an association between the pre-stored information and the person's name candidate word corresponding to the first string. Alternatively, the pre-stored information can be learned and recommended by artificial intelligence (AI), or the user can input the pre-stored information by self-definition, and the embodiments of the present application are not limited thereto.
[0086] In addition, the input method in the embodiments of the present application also provides editing operations of the user on the pre-stored information, such as modification, addition, deletion, sorting, setting a label, and whether to display the pre-stored information in plaintext by long pressing or a right option button, and the embodiments of the present application are not limited thereto.
[0087] Optionally, when the first information includes the at least one candidate word category identifier, the displaying the first information corresponding to the first string in response to the first input includes:
[0088] In response to the first input, at least one candidate word matched with the first string is determined.
[0089] According to a preset classification rule, a candidate word category to which each candidate word belongs is determined.
[0090] A candidate word category identifier corresponding to each candidate word category is displayed.
[0091] Optionally, the preset classification rule can be a part-of-speech classification (such as a verb, a noun, an adjective, a preposition, an adverb, and a modal particle), or an industry category classification (such as architecture, computer, geography, and physics), or a media form classification (such as a movie, music, and a TV series), or other classification rules, and the embodiments of the present application are not limited thereto.
[0092] Determining the candidate word category to which each candidate word belongs can be understood as follows: for each candidate word that matches the first string, its candidate word category is determined, where multiple candidate words may belong to the same category. For example, candidate words that match the first string may include candidate words A, B, C, D, E, and F; where candidate words A and C may belong to the first candidate word category, candidate words B, D, and E may belong to the second candidate word category, and candidate word F may belong to the third candidate word category.
[0093] Specifically, determining the candidate word category to which each candidate word belongs can be done by determining the candidate word category for each candidate word one by one until the candidate word category to which all candidate words belong is determined; or, it can be done by selecting candidate words belonging to the candidate word category one by one from the candidate words matching the first string according to each candidate word category until the candidate word category to which all candidate words belong is determined. For example, the candidate words matching the first string may include candidate words A, B, C, D, E, and F. Candidate words A and C belonging to the first candidate word category are selected from all candidate words A, B, C, D, E, and F according to the first candidate word category. Candidate words B, D, and E belonging to the second candidate word category are selected from the remaining candidate words B, D, E, and F according to the second candidate word category. Candidate word F is selected from the remaining candidate words F according to the third candidate word category. When selecting candidate words based on candidate word categories, if no corresponding candidate word is selected for a certain candidate word category, the selection of the next candidate word category continues until the candidate word category to which all candidate words belong is determined. Of course, other methods besides the above examples can be used to determine the candidate word category for each candidate word, and this application embodiment is not limited thereto.
[0094] In this embodiment, the candidate word category identifier is used to indicate the category to which the candidate word matching the first string belongs, thereby facilitating the user to quickly locate the content to be input. Furthermore, if there are multiple candidate words matching the first string, these multiple candidate words can be divided into different categories; or, if multiple candidate word categories are preset, if a certain candidate word category does not contain a candidate word matching the first string, the candidate word category identifier corresponding to that category can be hidden, avoiding redundancy in the display of candidate word category identifiers and affecting user operation.
[0095] Optionally, such as Figure 8 The diagram illustrates a flowchart for displaying candidate words. Specifically, when the first information includes at least one candidate word category identifier, after displaying the first information corresponding to the first string, the flowchart further includes the following steps:
[0096] Step 801: Receive a second input from the user regarding the first candidate word category identifier; wherein the first candidate word category identifier is at least one of the at least one candidate word category identifiers;
[0097] Step 802: In response to the second input, display the candidate words corresponding to the first candidate word category identifier.
[0098] like Figure 9 As shown, when a user inputs the string "dizhi", corresponding candidate words can be displayed. For example... Figure 10 As shown, when a user inputs the string "dizhi", at least one candidate word category identifier 71 can be displayed. This candidate word category identifier 71 indicates the category to which the candidate word matching the first string belongs, allowing the user to select the corresponding candidate word based on different candidate word categories. This candidate word category identifier can be divided according to part of speech (such as verb, noun, adjective, preposition, adverb, modal particle, etc.); for example... Figure 11 As shown, the candidate word category identifier 81 can also be divided according to industry category (such as computer, geography, physics, etc.); or, the candidate word category identifier can also be divided according to media category (such as film, music, television, etc.), etc., and the embodiments of this application are not limited thereto.
[0099] For example, the specific content displayed in the secondary menu can be customized by the user, or determined based on the candidate word categories of historical input using a learning algorithm, or based on the popularity of the input content at different levels (such as through big data learning algorithms), or displayed and sorted using AI, etc. The embodiments of this application are not limited thereto.
[0100] For example, candidate word categories under different classification rules can be displayed in a mixed manner. That is, candidate words that match the first string can be classified according to candidate word categories under different rules. For example, candidate words that match the first string can be classified according to "verb" in part-of-speech classification, "computer" in industry classification, "movie" in media type classification, etc. The specific classification method can be to classify according to multiple classification rules one by one, or to classify according to each candidate word category in all classification rules one by one, etc. The embodiments of this application are not limited to this.
[0101] In this way, users can display candidate words under the corresponding candidate word category through a second input (such as a click input for the first candidate word category identifier). That is, the display method of candidate words can be adjusted for different candidate word category identifiers, and candidate words that do not belong to the category can be hidden. In addition, secondary association can be made in this field to display more relevant candidate words, etc. The embodiments of this application are not limited thereto.
[0102] The input method provided in the embodiments of the present application can be executed by an input device. The input device is taken as an example in the embodiments of the present application to execute the method for processing audio data, and the input device provided in the embodiments of the present application is described.
[0103] As shown in Figure 12 , the embodiments of the present application provide an input device 900, comprising:
[0104] A first receiving module 910 is configured to receive a first input of a user; wherein the first input is used to input a first character string;
[0105] A first response module 920 is configured to display first information corresponding to the first character string in response to the first input;
[0106] The first information comprises at least one of the following:
[0107] Pre-stored information corresponding to a first candidate word, wherein the first candidate word is a candidate word pre-stored in the first character string;
[0108] At least one candidate word category identifier matched with the first character string.
[0109] As shown in Figure 13 , optionally, when the first information comprises the pre-stored information, the first response module 920 comprises:
[0110] A first display unit 921 is configured to display at least one candidate word matched with the first character string in response to the first input;
[0111] A 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.
[0112] Optionally, the first display unit 921 comprises:
[0113] A first display sub-unit 9211 is configured to display the at least one candidate word in a first candidate box;
[0114] The second display unit 922 comprises:
[0115] A second display sub-unit 9221 is configured to display the pre-stored information in the first candidate box or display the pre-stored information in a second candidate box.
[0116] Optionally, when the first information comprises the pre-stored information, the first response module 920 comprises:
[0117] The third display unit 923 is configured to display part of the pre-stored information in the case where the first string matches the target keyword.
[0118] The fourth display unit 924 is configured to display all of the pre-stored information in the case where the first string does not match the target keyword.
[0119] Optionally, in the case where the first information comprises the pre-stored information, the first response module 920 comprises:
[0120] The acquisition unit is configured to acquire identity authentication information of the user in response to the first input.
[0121] The fifth display unit is configured to display first pre-set information corresponding to the first string in the case where the identity authentication information matches pre-set authentication information.
[0122] Optionally, in the case where the first information comprises the at least one candidate word category identifier, the input device 900 further comprises:
[0123] The second receiving module 930 is configured to receive a second input of a user on a first candidate word category identifier, wherein the first candidate word category identifier is at least one of the at least one candidate word category identifier.
[0124] The second response module 940 is configured to display a candidate word corresponding to the first candidate word category identifier in response to the second input.
[0125] Optionally, the input device 900 further comprises:
[0126] The third receiving module 950 is configured to receive a third input of a user on a target region, wherein the target region is at least one of a pre-determined region, a display region of the first string, and a display position of a candidate word matching the first string.
[0127] The third response module 960 is configured to acquire pre-stored information corresponding to a candidate word matching the first string and establish an association between the pre-stored information and the candidate word in response to the third input.
[0128] Compared with the current way of matching candidate words by pinyin, the input method candidate word matching content is enriched, and the user can quickly input the pre-stored information without inputting the string corresponding to each character of the information content of the pre-stored information, thereby simplifying the user input process. In response to the first input, at least one candidate word category identifier matching the first string is displayed, which can provide the user with the selection of different types of candidate words, thereby improving the efficiency of the user in finding the target candidate word from a large number of candidate words matching the string.
[0129] The audio data processing apparatus in the embodiments of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a notebook computer, a palm 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. The electronic device can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, and the like. The embodiments of the present application are not limited in this regard.
[0130] The input apparatus in the embodiments of the present application can be an apparatus having an operating system. The operating system can be an Android operating system, an IOS operating system, or other possible operating systems, and the embodiments of the present application are not limited in this regard.
[0131] The input apparatus provided in the embodiments of the present application can achieve Figures 1 to 11 The method embodiments achieve various processes, and details are not repeated here to avoid repetition.
[0132] Optionally, as Figure 14As shown, the embodiments of the present application further provide an electronic device 1000, comprising a processor 1001 and a memory 1002, wherein the memory 1002 stores a program or instructions executable on the processor 1001, the program or instructions are executed by the processor 1001 to implement the steps of the above input method embodiments, and achieve the same technical effects. To avoid repetition, details are not described here.
[0133] It should be noted that the electronic device in the embodiments of the present application includes the mobile electronic device and the non-mobile electronic device described above.
[0134] Figure 15 To implement the hardware structure of an electronic device in the embodiments of the present application.
[0135] 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 1109, and a processor 1110, etc.
[0136] Those skilled in the art can understand that the electronic device 1100 can further include a power supply (such as a battery) for supplying power to each component, and the power supply can be logically connected to the processor 1110 through a power management system, so as to realize the functions of power management, such as charging, discharging, and power consumption management, through the power management system. Figure 15 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and the electronic device can include more or fewer components than the figure, or combine certain components, or different component arrangements, which are not described here.
[0137] The user input unit 1107 is configured to receive a first input of a user, wherein the first input is used to input a first character string.
[0138] The processor 1110 is configured to display first information corresponding to the first character string through the display unit 1106 in response to the first input.
[0139] The first information includes at least one of the following:
[0140] Pre-stored information corresponding to a first candidate word, wherein the first candidate word is a candidate word pre-stored in the first character string;
[0141] At least one candidate word category identifier matched with the first character string.
[0142] Optionally, when the first information comprises the pre-stored information, the processor 1110 is further configured to display, in response to the first input, at least one candidate word matching the first string via the display unit 1106.
[0143] The processor 1110 is further configured to display, via the display unit 1106, the first candidate word corresponding to the pre-stored information when the first candidate word exists in the at least one candidate word.
[0144] Optionally, the display unit 1106 is configured to display the at least one candidate word in the first candidate box.
[0145] The display unit 1106 is further configured to display the pre-stored information in the first candidate box or display the pre-stored information in a second candidate box.
[0146] Optionally, when the first information comprises the pre-stored information, the processor 1110 is further configured to display, via the display unit 1106, part of the pre-stored information when the first string matches a target keyword, and display, via the display unit 1106, all of the pre-stored information when the first string does not match the target keyword.
[0147] Optionally, when the first information comprises the pre-stored information, the processor 1110 is further configured to acquire, in response to the first input, identity authentication information of a user, and display, via the display unit 1106, first pre-stored information corresponding to the first string when the identity authentication information matches preset authentication information.
[0148] Optionally, when the first information comprises the at least one candidate word category identifier, the user input unit 1107 is further configured to receive a second input of a user on a first candidate word category identifier, wherein the first candidate word category identifier is at least one of the at least one candidate word category identifier.
[0149] The processor 1110 is further configured to display, via the display unit 1106, a candidate word corresponding to the first candidate word category identifier in response to the second input.
[0150] Optionally, the user input unit 1107 is further configured to receive a third input of a user on a target region, wherein the target region is at least one of a predetermined region, a display region of the first string, and a display position of a candidate word matching the first string.
[0151] The processor 1110 is further configured to acquire, in response to the third input, pre-stored information corresponding to a candidate word matching the first string, and establish an association between the pre-stored information and the candidate word.
[0152] The electronic device in the embodiments of the present application, by receiving a first input for inputting a first string, in response to the first input, displaying pre-stored information in a preset mapping table matching the first string, compared with the current way of matching candidate words by pinyin, the input method candidate word matching content is enriched, and the user can quickly input the pre-stored information without inputting the string corresponding to each character in the information content of the pre-stored information, thereby also simplifying the user input process. And in response to the first input, display at least one candidate word category identifier matching the first string, can provide user selection for different types of candidate words, thereby improving the user's efficiency in finding the target candidate word among a large number of candidate words matching the string.
[0153] It should be understood that in the embodiments of the present application, the input unit 1104 can include a graphics processor (GPU) 11041 and a microphone 11042. The graphics processor 11041 processes image data of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1106 can include a display panel 11061, which can be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 1107 includes at least one of a touch panel 11071 and other input devices 11072. The touch panel 11071 is also called a touch screen. The touch panel 11071 can include two parts: a touch detection device and a touch controller. The other input devices 11072 can include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, on-off buttons, etc.), trackballs, mice, joysticks, etc., which will not be described here.
[0154] The memory 1109 can be used to store software programs and various data. The memory 1109 can mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area can store an operating system, application programs or instructions required by at least one function (such as a sound playing function, an image playing function, etc.), and the like. In addition, the memory 1109 can include a volatile memory or a non-volatile memory, or the memory 1109 can include both volatile and non-volatile memories. The non-volatile memory can be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a Random Access Memory (RAM), a Static RAM (SRAM), a Dynamic RAM (DRAM), a Synchronous DRAM (SDRAM), a Double Data Rate SDRAM (DDR SDRAM), an Enhanced SDRAM (ESDRAM), a Synch link DRAM (SLDRAM), and a Direct Rambus 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 memories.
[0155] The processor 1110 can include one or more processing units; optionally, the processor 1110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and an application program, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 1110.
[0156] The embodiments of the present application also provide a readable storage medium, the readable storage medium stores programs or instructions, the programs or instructions are executed by a processor to realize various processes of the above-mentioned audio data processing method embodiments, and the same technical effects can be achieved. To avoid repetition, details are not described here.
[0157] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes a computer readable storage medium, such as a computer readable only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0158] The embodiment of the present application further provides a chip, which comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running programs or instructions to realize the processes of the above input method embodiments and achieve the same technical effects. To avoid repetition, details are not described here.
[0159] It should be understood that the chip mentioned in the embodiment of the present application can also be referred to as a system level chip, a system chip, a chip system or a system on chip, etc.
[0160] The embodiment of the present application provides a computer program product, which is stored in a storage medium, and is executed by at least one processor to realize the processes of the above input method embodiments and achieve the same technical effects. To avoid repetition, details are not described here.
[0161] It should be noted that in this document, the term "comprise", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such a process, method, article or device. Without more limitations, the element defined by the statement "comprises a" does not exclude the presence of additional identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the present application is not limited to the order of performing the functions as shown or discussed, but can also include performing the functions in a substantially simultaneous manner or in the opposite order, for example, the described method can be performed in an order different from that described, and various steps can also be added, omitted or combined. In addition, the features described with reference to some examples can be combined in other examples.
[0162] Through the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned example methods can be realized by means of software and a necessary general hardware platform, and of course, can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a computer software product in essence or in the form of a part that contributes to the prior art, which is stored in a storage medium (such as a ROM / RAM, a magnetic disc, an optical disc), and includes a plurality of instructions for causing a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application.
[0163] The embodiments of the present application are described above in combination with the drawings, but the present application is not limited to the above-mentioned specific embodiments, and the above-mentioned specific embodiments are only illustrative and not restrictive. Those skilled in the art can make many forms under the inspiration of the present application without departing from the scope of the present application and the scope protected by the claims.
Claims
1. An input method, characterized in that, include: Receive the user's first input; wherein the first input is used to input a first string; In response to the first input, display the first information corresponding to the first string; The first information includes at least one of the following: The pre-stored information corresponding to the first candidate word, where the first candidate word is a candidate word that matches the first string; At least one candidate word category identifier that matches the first string; When the first information includes the pre-stored information, displaying the first information corresponding to the first string includes: If the first string matches the target keyword, a portion of the pre-stored information is displayed; If the first string does not match the target keyword, display the full content of the pre-stored information.
2. The input method according to claim 1, characterized in that, When the first information includes the pre-stored information, the step of displaying the first information corresponding to the first string in response to the first input includes: In response to the first input, at least one candidate word that matches the first string is displayed; If the first candidate word exists among the at least one candidate word, the pre-stored information corresponding to the first candidate word is displayed.
3. The input method according to claim 2, characterized in that, The display of at least one candidate word matching the first string includes: Display at least one candidate word within the first candidate box; The step of displaying the pre-stored information corresponding to the first candidate word includes: The pre-stored information is displayed in the first candidate box or in the second candidate box.
4. The input method according to claim 1, characterized in that, When the first information includes at least one candidate word category identifier, after displaying the first information corresponding to the first string, the method further includes: Receive a second input from the user for a first candidate word category identifier; wherein the first candidate word category identifier is at least one of the at least one candidate word category identifiers; In response to the second input, the candidate words corresponding to the first candidate word category identifier are displayed.
5. The input method according to claim 1, characterized in that, Before displaying the first information corresponding to the first string, the method further includes: Receive third-party input from the user regarding the target area; In response to the third input, pre-stored information corresponding to candidate words that match the first string is obtained, and the association between the pre-stored information and the candidate words is established.
6. An input device, characterized in that, include: A first receiving module is configured to receive a first input from a user; wherein the first input is used to input a first string; The first response module is used to respond to the first input and display first information corresponding to the first string; The first information includes at least one of the following: The pre-stored information corresponding to the first candidate word, where the first candidate word is a candidate word that matches the first string; At least one candidate word category identifier that matches the first string; When the first information includes the pre-stored information, the first response module includes: The third display unit is used to display part of the pre-stored information when the first string matches the target keyword; The fourth display unit is used to display the entire content of the pre-stored information when the first string does not match the target keyword.
7. The input device according to claim 6, characterized in that, When the first information includes the pre-stored information, the first response module includes: A first display unit is configured to display at least one candidate word matching the first string in response to the first input; The second display unit is used to display pre-stored information corresponding to the first candidate word when the first candidate word exists among the at least one candidate word.
8. The input device according to claim 7, characterized in that, The first display unit includes: The first display subunit is used to display the at least one candidate word within the first candidate box; The second display unit includes: The second display subunit is used to display the pre-stored information in the first candidate box or in the second candidate box.
9. The input device according to claim 6, characterized in that, If the first information includes the at least one candidate word category identifier, it also includes: The second receiving module is configured to receive a second input from a user regarding a first candidate word category identifier; wherein the first candidate word category identifier is at least one of the at least one candidate word category identifiers; The second response module is used to respond to the second input by displaying the candidate word corresponding to the first candidate word category identifier.
10. The input device according to claim 6, characterized in that, Also includes: The third receiving module is used to receive third input from the user regarding the target area; The third response module is used to respond to the third input, obtain pre-stored information corresponding to the candidate words that match the first string, and establish an association between the pre-stored information and the candidate words.
11. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the input method as described in any one of claims 1 to 5.
12. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the input method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Method, device and equipment for processing candidate items in input method and storage medium
CN110399046A
Input method candidate word processing method and electronic equipment
CN112181167A