[go: up one dir, main page]

WO2023236866A1 - Input method and apparatus, electronic device, and readable storage medium - Google Patents

Input method and apparatus, electronic device, and readable storage medium Download PDF

Info

Publication number
WO2023236866A1
WO2023236866A1 PCT/CN2023/098044 CN2023098044W WO2023236866A1 WO 2023236866 A1 WO2023236866 A1 WO 2023236866A1 CN 2023098044 W CN2023098044 W CN 2023098044W WO 2023236866 A1 WO2023236866 A1 WO 2023236866A1
Authority
WO
WIPO (PCT)
Prior art keywords
candidate word
input
stored information
candidate
character string
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.)
Ceased
Application number
PCT/CN2023/098044
Other languages
French (fr)
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
Publication of WO2023236866A1 publication Critical patent/WO2023236866A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; 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

Definitions

  • This application belongs to the field of communication technology, and specifically relates to an input method, device, electronic equipment and readable storage medium.
  • the interactive means for users to input 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.
  • the user can input text or other character information through the input method.
  • the user inputs pinyin in the input method interface
  • the corresponding candidate word is matched by pinyin for the user to choose
  • the user selects the candidate word he wants to input among multiple candidate words, if the candidate word is not commonly used, the user may It is necessary to select candidate words through page turning, sliding and other operations.
  • the current input method has the problem of low efficiency.
  • embodiments of the present application provide an input method, including:
  • inventions of the present application provide an electronic device.
  • the electronic device includes a processor and a memory.
  • the memory stores programs or instructions that can be run on the processor.
  • the programs or instructions are processed by the processor.
  • the processor is executed, the steps of the input method as described in the first aspect are implemented.
  • embodiments of the present application provide a readable storage medium.
  • Programs or instructions are stored on the readable storage medium.
  • the input method as described in the first aspect is implemented. step.
  • inventions of the present application provide a chip.
  • the chip includes a processor and a communication interface.
  • the communication interface is coupled to the processor.
  • the processor is used to run programs or instructions to implement the first aspect. The steps of the input method described.
  • embodiments of the present application provide a computer program product.
  • the computer program product is stored in a non-volatile storage medium.
  • the computer program product is executed by at least one processor to implement the input as described in the first aspect. Method steps.
  • an embodiment of the present application provides a communication device, which is configured to perform the steps of the input method described in the first aspect.
  • the candidate word matching content of the input method is enriched, and the user does not need to enter the string corresponding to each character in the information content of the pre-stored information.
  • This pre-stored information can be entered quickly, thereby also simplifying the user input process.
  • Figure 1 is a flow chart of an input method according to an embodiment of the present application.
  • Figure 2 is a flow chart for displaying first information according to an embodiment of the present application
  • Figure 3 is one of the schematic diagrams of the input method interface according to the embodiment of the present application.
  • Figure 4 is the second schematic diagram of the input method interface according to the embodiment of the present application.
  • Figure 5 is the third schematic diagram of the input method interface according to the embodiment of the present application.
  • Figure 6 is a flow chart for establishing an association between the pre-stored information and the candidate words according to an embodiment of the present application
  • Figure 7 is the fourth schematic diagram of the input method interface according to the embodiment of the present application.
  • Figure 8 is a flow chart for displaying candidate words according to an embodiment of the present application.
  • Figure 9 is a fifth schematic diagram of the input method interface according to the embodiment of the present application.
  • Figure 10 is the sixth schematic diagram of the input method interface according to the embodiment of the present application.
  • Figure 12 is one of the block diagrams of the input device according to the embodiment of the present application.
  • Figure 13 is the second block diagram of the input device according to the embodiment of the present application.
  • Figure 14 is a block diagram of an electronic device according to an embodiment of the present application.
  • Figure 15 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application.
  • first, second, etc. in the description and claims of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. It is to be understood that the figures so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in orders other than those illustrated or described herein, and that "first,” “second,” etc. are distinguished Objects are usually of one type, and the number of objects is not limited. For example, the first object can be one or multiple.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the related objects are in an "or” relationship.
  • an embodiment of the present invention provides an input method, which includes the following steps:
  • the first input may be the user's input to the keyboard area in the input method interface.
  • the user can input the corresponding string by inputting to the keyboard area; of course, the user can input the string in addition to the keyboard area.
  • the embodiments of the present application are not limited to this.
  • the first information includes at least one of the following:
  • Pre-stored information corresponding to a first candidate word the first candidate word being a candidate word matching the first character string
  • the mapping relationship between the first candidate word and the pre-stored information can be stored in a mapping table in advance, that is, the mapping table can pre-store the corresponding relationship between the candidate word and the pre-stored information, for example, it can be obtained by matching according to the string.
  • the corresponding pre-stored information can be obtained by matching through the mapping table.
  • the string can be "dizhi”.
  • the corresponding pre-stored information obtained through the mapping table can be a specific address, such as "XX No. XX Road, XX City, province”; the string can be "huiyi".
  • the corresponding pre-stored information obtained through the mapping table can be a quick reply phrase, such as "In a meeting, I will contact you later.””;
  • the string can be "xiaoming”.
  • the corresponding pre-stored information obtained through the mapping table can be contact information, such as the phone number "139XXXXXXX", the address "No. XX Road, XX City, XX province””etc.; the string can be "xinnianzhufu”.
  • the preset information obtained through the mapping table can be a quick reply phrase, such as "Happy New Year and all the best! ” etc., the embodiments of this application are not limited thereto.
  • the mapping table can also directly pre-store the corresponding relationship between the string and the pre-stored information.
  • the pre-stored information can be an address, contact information, password, quick reply phrase, etc.
  • the string can be "dizhi”, and the corresponding pre-stored information can be a specific address, such as "No. XX Road, XX City, XX province”; the string can be "huiyi", and the corresponding pre-stored information can be a quick reply. Phrase, such as "In a meeting, contact you later”; the string can be "xiaoming", and the corresponding pre-stored information can be contact information, such as phone number "139XXXXXXX", address "No.
  • the candidate word matching content of the input method is enriched through string matching of candidate words, and the user can quickly input the pre-stored information without entering the string corresponding to each character in the information content of the pre-stored information. This also simplifies the user input process. and in response to the first input, displaying at least one candidate word category identifier that matches the first string, which can provide the user with choices for different types of candidate words, thereby improving the user's ability to select a large number of candidate words that match the string. The efficiency of finding target candidate words.
  • Step 201 In response to the first input, display at least one candidate word matching the first string;
  • Step 202 If the first candidate word exists in the at least one candidate word, display the pre-stored information corresponding to the first candidate word.
  • the mapping table includes a mapping relationship between candidate words and pre-stored information, and the first candidate word is at least one candidate word in the mapping table.
  • the mapping table includes the mapping relationship between candidate words and pre-stored information.
  • the pre-stored information can be a specific address, such as "No. XX Road, XX City, XX province”; when the candidate word is "meeting", the pre-stored information
  • the information can be a quick reply phrase, such as "In a meeting, contact you later”; when the candidate word is "Xiao Ming", the pre-stored information can be contact information, such as phone number "139XXXXXXXX", address "XX Road, XX City, XX Province” "XX number”, etc.; when the candidate word is "New Year's greetings", the default message can be a quick reply phrase, such as "Happy New Year, all the best! etc.
  • At least one candidate word can be displayed, such as: “address”, “geology”, “resist”, “low to”, etc.; when the displayed candidate words include candidate words 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".
  • the first information may be an indication mark on the first candidate word that matches the first string.
  • the method further includes:
  • pre-stored information corresponding to the first candidate word is displayed.
  • the indication information may be to highlight the first candidate word or the area corresponding to the first candidate word, or to add a label to the area corresponding to the first candidate word, or in addition.
  • Other forms, etc., are not limited by the embodiments of this application.
  • displaying at least one candidate word matching the first string includes:
  • the displaying the pre-stored information corresponding to the first candidate word includes:
  • the pre-stored information can be directly displayed in the candidate box for displaying candidate words, such as displaying the at least one candidate word in the first candidate box 21, and displaying all candidate words in the first candidate box 21.
  • the above-mentioned pre-stored information means that at least one candidate word and the pre-stored information are simultaneously displayed in the first candidate box 21 for displaying candidate words.
  • part of the content of the pre-stored information is displayed, that is, part of the content of the pre-stored information is hidden, or a covering layer can be added to the pre-stored information to cover the pre-stored information. At least part of the content of the information, etc.;
  • the entire content of the pre-stored information is displayed.
  • displaying part of the content of the pre-stored information may include but is not limited to at least one of the following: adding a non-transparent pattern to at least part of the content of the pre-stored information to block the content of the pre-stored information; At least part of the content is replaced with preset symbols. For example, at least part of the content of the pre-stored information is displayed in cipher text. For example, if "taobaomima" is entered, the pre-stored information can be displayed as "XXXXXX", but the actual content is a string pre-stored by the user.
  • the first preset information corresponding to the first character string is displayed.
  • the user identity can be verified first, for example, security can be ensured by prompting the user to enter a password, verifying fingerprints or portrait recognition; preferably, Use face recognition to turn on the front camera for judgment when displaying pre-stored information to ensure easier interaction.
  • part of the content of the pre-stored information can be displayed (a covering layer can also be displayed on the pre-stored information to block the content of the pre-stored information).
  • the complete content of the pre-stored information can be displayed.
  • Step 601 Receive the user's third input to the target area
  • 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.
  • the predetermined area may be a preset area, such as a screen edge area, or a display area of a predetermined button, etc.
  • the third input when the predetermined area is the screen edge area, the third input may be a sliding input sliding from the screen edge area to the screen center area; when the predetermined area is the display area of the predetermined button, the third input may be a sliding input from the screen edge area to the screen center area.
  • the input may be a click input for the predetermined button.
  • the user inputs the first string, such as "dizhi", into the input method, and the corresponding candidate word is displayed.
  • the user can click button 51 to add pre-stored information.
  • the pre-stored information related to the candidate word "address” can be obtained based on local data (such as the specific address "XX province XX city".)
  • the pre-stored information can be established with The association between "addresses”; another example: the input string is a person's name (for example, the string is "xiaoming", and the corresponding candidate words include "Xiao Ming").
  • the address book can be obtained.
  • the third input may be a long press input or a repress input for the display area of the first character string, or other forms in addition. input etc.
  • the user inputs a first character string, such as "dizhi", into the input method, and the corresponding candidate word is displayed. The user can add pre-stored information by long pressing the first string "dizhi”.
  • the user can add pre-stored information by long-pressing the candidate word "address" corresponding to the first string "dizhi", such as: in response to the long-press input of the candidate word "address” corresponding to the first string "dizhi", Obtain the pre-stored information related to the "address" in the local data (such as the specific address "XX province XX city"), and establish the association between the pre-stored information and the "address”; another example: the input string is a person's name ( For example, if the string is "xiaoming" and the corresponding candidate words include "Xiao Ming"), you can respond to the long press input of the candidate word "Xiao Ming" and obtain the phone number and phone number of the contact "Xiao Ming" while obtaining the address book permission.
  • Email, address and other information are used as pre-stored information to establish an association between the pre-stored information and the name candidate corresponding to the first string, or the recommendation can be learned through artificial intelligence (AI), or the user can customize the input of the pre-stored information. etc., the embodiments of this application are not limited thereto.
  • the input method in the embodiment of the present application also provides the user with editing operations for pre-stored information.
  • the user can modify, add, delete, sort, set labels, and whether to display preset information in plain text by long pressing or using the option button on the right. Operations, etc. are not limited to the embodiments of this application.
  • displaying the first information corresponding to the first character string includes:
  • determining the candidate word category to which each candidate word belongs can be understood as: for each candidate word that matches the first string, determine the candidate word category to which it belongs, wherein multiple candidate words may belong to the same category.
  • candidate words that match the first string of characters may include candidate words A, B, C, D, E, and F; among which, candidate words A and C may belong to the first candidate word category, and candidate words B, D, and E may Belonging to the second candidate word category, candidate word F may belong to the third candidate word category.
  • determining the candidate word category to which each candidate word belongs may be to determine the candidate word category to which each candidate word belongs one by one until the candidate word category to which it belongs is determined for all candidate words; or, it may also be According to each candidate word category, candidate words belonging to the candidate word category are selected one by one from the candidate words that match the first string until all candidate words are determined to the candidate word category to which they belong, such as: with the first Candidate words for string matching may include candidate words A, B, C, D, E, and F. According to the first candidate word category, select the candidate words A, B, C, D, E, and F that belong to the first candidate word.
  • the candidate words A and C of the candidate word category are selected from the remaining candidate words B, D, E, and F according to the second candidate word to obtain the candidate words B, D, and E belonging to the second candidate word category, and according to the third candidate word
  • the word category selects the candidate word F from the remaining candidate words F; among them, when selecting the candidate word based on the candidate word category, if the corresponding candidate word is not selected for a certain candidate word category, continue The next candidate word category is selected until all candidate words are determined to the candidate word category to which they belong.
  • other methods besides the above examples may be used to determine the candidate word category to which each candidate word belongs, and the embodiments of the present application are not limited thereto.
  • 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.
  • the multiple candidate words can be divided into different categories; and if multiple candidate word categories are preset, if a certain candidate word category does not include For candidate words that match the first character string, the candidate word category identifier corresponding to the candidate word category may not be displayed to avoid redundant display of candidate word category identifiers and affect user operations.
  • a flow chart for displaying candidate words is provided. Specifically, when the first information includes the at least one candidate word category identifier, the display is consistent with the first After the first information corresponding to the string, the following steps are also included:
  • Step 801 Receive the user's second input of 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;
  • Step 802 In response to the second input, display the candidate word corresponding to the first candidate word category identifier.
  • the corresponding candidate words can be displayed.
  • at least one candidate word category identifier 71 can also be displayed.
  • the candidate word category identifier 71 is used to indicate that the candidate word matching the first string belongs to categories to provide users with the ability to select corresponding candidate words based on different candidate word categories.
  • the candidate word category identifiers can be divided according to parts of speech (such as verbs, nouns, adjectives, prepositions, adverbs, modal particles, etc.); as shown in Figure 11, the candidate words
  • the word category identifiers 81 can also be divided according to industry categories (such as computers, geography, physics, etc.); or the candidate word category identifiers can also be divided according to media categories (such as movies, music, television, etc.), etc., the embodiment of the present application does not use this method. is limited.
  • the specific content displayed in the secondary menu can also be customized by the user, or determined based on the candidate word category of historical input based on a learning algorithm, or based on the popularity of the input content at different levels (for example, it can be achieved through a big data learning algorithm). Or display and sort through AI etc., the embodiments of the present application are not limited to this.
  • Candidate word categories under different classification rules can be mixed and displayed, that is, candidate words matching the first string can be classified according to candidate word categories under different rules.
  • candidate words matching the first string can be classified according to The "verb" classification in the part-of-speech classification, the "computer” classification in the industry category classification, the "movie” classification in the media type classification, etc.
  • the specific classification method can be divided one by one according to multiple classification rules, or according to each of all classification rules.
  • Candidate word categories are divided one by one, etc., which are not limited to the embodiments of this application.
  • the user can display the candidate words under the corresponding candidate word category through the second input (such as a click input for the first candidate word category identifier), that is, adjust the display mode of the candidate words for different candidate word category identifiers, Candidate words that do not belong to this category can be hidden.
  • secondary associations can be made in this field to display more candidate words that are more relevant. The embodiments of the present application are not limited to this.
  • the execution subject may be an input device.
  • the method of performing audio data processing by the input device is taken as an example to describe the input device provided by the embodiment of the present application.
  • this embodiment of the present application provides an input device 900, which includes:
  • the first receiving module 910 is used to receive the user's first input; wherein the first input is used to input a first string;
  • the first response module 920 is configured to display the first information corresponding to the first character string in response to the first input;
  • the first information includes at least one of the following:
  • Pre-stored information corresponding to the first candidate word the first candidate word being the pre-stored information of the candidate word matching the first character string;
  • At least one candidate word category identifier that matches the first character string At least one candidate word category identifier that matches the first character string.
  • the first display unit 921 is configured to display at least one candidate word matching the first string in response to the first input;
  • the second display unit 922 is configured to display the pre-stored information corresponding to the first candidate word when the first candidate word exists in the at least one candidate word.
  • the displaying the first display unit 921 includes:
  • the second display subunit 9221 is used to display the pre-stored information in the first candidate box or display the pre-stored information in the second candidate box.
  • the first response module 920 includes:
  • the fourth display unit 924 is configured to display the entire content of the pre-stored information when the first character string does not match the target keyword.
  • An acquisition unit configured to acquire the user's identity verification information in response to the first input
  • the input device 900 further includes:
  • the second response module 940 is configured to display candidate words corresponding to the first candidate word category identifier in response to the second input.
  • the input device 900 also includes:
  • the third response module 960 is configured to respond to the third input, obtain pre-stored information corresponding to the candidate word matching the first string, and establish an association between the pre-stored information and the candidate word.
  • the device in the embodiment of the present invention receives a first input for inputting a first character string, and responds to the first input by displaying pre-stored information in the preset mapping table that matches the first character string.
  • the candidate word matching content of the input method 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. This also simplifies the user input process. and in response to the first input, displaying at least one candidate word category identifier that matches the first string, which can provide the user with choices for different types of candidate words, thereby improving the user's ability to select a large number of candidate words that match the string. The efficiency of finding target candidate words.
  • the audio data processing device in the embodiment of the present application may be an electronic device or a component in the electronic device, such as an integrated circuit or chip.
  • the electronic device may be a terminal or other devices other than the terminal.
  • the electronic device can be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted electronic device, a mobile internet device (Mobile Internet Device, MID), or augmented reality (AR)/virtual reality (VR).
  • the input device in the embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android operating system, an IOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of this application.
  • the input device provided by the embodiment of the present application can implement various processes implemented by the method embodiments of Figures 1 to 11. To avoid repetition, they will not be described again here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • Figure 15 is a schematic diagram of the hardware structure of an electronic device that implements an embodiment of the present application.
  • the electronic device 1100 includes but is not limited to: radio frequency unit 1101, network module 1102, audio output unit 1103, input unit 1104, sensor 1105, display unit 1106, user input unit 1107, interface unit 1108, memory 09, processor 1110, etc. part.
  • the electronic device 1100 may also include a power supply (such as a battery) that supplies power to various components.
  • the power supply may be logically connected to the processor 1110 through a power management system, thereby managing charging, discharging, and function through the power management system. Consumption management and other functions.
  • the structure of the electronic device shown in Figure 15 does not constitute a limitation of the electronic device.
  • the electronic device may include more or less components than shown in the figure, or combine certain components, or arrange different components, which will not be described again here. .
  • the processor 1110 is configured to: in response to the first input, display the first information corresponding to the first character string through the display unit 1106;
  • the first information includes at least one of the following:
  • Pre-stored information corresponding to the first candidate word the first candidate word being the pre-stored information of the candidate word matching the first character string;
  • At least one candidate word category identifier that matches the first character string At least one candidate word category identifier that matches the first character string.
  • the processor 1110 is further configured to: when the first candidate word exists in the at least one candidate word, In this case, the pre-stored information corresponding to the first candidate word is displayed through the display unit 1106.
  • the display unit 1106 is configured to: display the at least one candidate word in the first candidate box;
  • the display unit 1106 is also configured to display the pre-stored information in the first candidate box or display the pre-stored information in the second candidate box.
  • the processor 1110 is further configured to: display the pre-stored information through the display unit 1106 if the first string matches the target keyword. partial content; if the first character string does not match the target keyword, the entire content of the pre-stored information is displayed through the display unit 1106.
  • the processor 1110 is further configured to: in response to the first input, obtain the user's identity verification information; when the identity verification information matches the preset verification If the information matches, the first preset information corresponding to the first character string is displayed through the display unit 1106 .
  • the user input unit 1107 is further configured to: receive a second input from the user to the first candidate word category identifier; wherein, the first candidate word category identifier The candidate word category identifier is at least one of the at least one candidate word category identifier;
  • the processor 1110 is further configured to: in response to the second input, display the candidate word corresponding to the first candidate word category identification through the display unit 1106.
  • the user input unit 1107 is also configured to: receive the user's third input to a target area; wherein the target area is: a predetermined area, a display area of the first character string, and an area corresponding to the first character. At least one of the display positions of the candidate words for string matching;
  • the processor 1110 is further configured to: in response to the third input, obtain pre-stored information corresponding to the candidate word matching the first string, and establish an association between the pre-stored information and the candidate word.
  • the electronic device in the embodiment of the present invention receives the first input for inputting the first string, and displays the pre-stored information in the preset mapping table that matches the first string in response to the first input.
  • the candidate word matching content of the input method is enriched, and the user can quickly input the pre-stored information without having to enter the string corresponding to each character in the information content of the pre-stored information. , thus also simplifying the user input process.
  • at least one candidate word category identifier matching the first string is displayed, which can provide the user with choices for different types of candidate words, thereby improving the user's efficiency in finding target candidate words among a large number of candidate words that match the string. .
  • the input unit 1104 may include a graphics processor (Graphics Processing Unit, GPU) 11041 and a microphone 11042.
  • the graphics processor 11041 is responsible for the image capture device (GPU) in the video capture mode or the image capture mode. Process the image data of still pictures or videos obtained by cameras (such as cameras).
  • the display unit 1106 may include a display panel 11061, which 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 .
  • Touch panel 11071 also called touch screen.
  • the touch panel 11071 may include two parts: a touch detection device and a touch controller.
  • Other input devices 11072 may include but are not limited to physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described again here.
  • Memory 1109 may be used to store software programs as well as various data.
  • the memory 1109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, Image playback function, etc.) etc.
  • memory 1109 may include volatile memory or nonvolatile memory, or memory 1109 may include both volatile and nonvolatile memory.
  • the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically removable memory.
  • Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch link DRAM) , SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM).
  • RAM Random Access Memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • synchronous dynamic random access memory Synchronous DRAM, SDRAM
  • Double data rate synchronous dynamic random access memory Double Data Rate SDRAM, DDRSDRAM
  • enhanced SDRAM synchronous dynamic random access memory
  • Synch link DRAM synchronous link dynamic random access memory
  • SLDRAM direct memory bus random access memory
  • Direct Rambus RAM Direct Rambus RAM
  • the processor 1110 may include one or more processing units; optionally, the processor 1110 integrates an application processor and a modem processor, where the application processor mainly handles operations related to the operating system, user interface, application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the above modem processor may not be integrated into the processor 1110.
  • Embodiments of the present application also provide a readable storage medium.
  • Programs or instructions are stored on the readable storage medium.
  • the program or instructions are executed by a processor, each process of the audio data processing method embodiment is implemented, and can achieve The same technical effects are not repeated here to avoid repetition.
  • the processor is the processor in the electronic device described in the above embodiment.
  • the readable storage medium includes computer readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disk or optical disk, etc.
  • An embodiment of the present application further provides a chip.
  • the chip includes a processor and a communication interface.
  • the communication interface is coupled to the processor.
  • the processor is used to run programs or instructions to implement each of the above input method embodiments. The process can achieve the same technical effect. To avoid repetition, it will not be described again here.
  • Embodiments of the present application provide a computer program product, which is stored in a non-volatile storage medium.
  • the computer program product is executed by at least one processor to implement each process of the above input method embodiment, and can To achieve the same technical effect, to avoid repetition, we will not repeat them here.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Machine Translation (AREA)

Abstract

The present application discloses an input method and apparatus, an electronic device, and a readable storage medium. The method comprises: receiving a first input of a user, the first input being used for inputting a first character string; and in response to the first input, displaying first information corresponding to the first character string, the first information comprising at least one of: pre-stored information corresponding to a first candidate term, the first candidate term being a candidate term matching the first character string; and at least one candidate term category identifier matching the first character string.

Description

输入方法、装置、电子设备及可读存储介质Input methods, devices, electronic devices and readable storage media

相关申请的交叉引用Cross-references to related applications

本申请主张在2022年6月9日在中国提交的中国专利申请No.202210652011.2的优先权,其全部内容通过引用包含于此。This application claims priority from Chinese Patent Application No. 202210652011.2 filed in China on June 9, 2022, the entire content of which is incorporated herein by reference.

技术领域Technical field

本申请属于通信技术领域,具体涉及一种输入方法、装置、电子设备及可读存储介质。This application belongs to the field of communication technology, and specifically relates to an input method, device, electronic equipment and readable storage medium.

背景技术Background technique

电子设备在使用过程中,输入文字或其他字符信息是用户高频使用的场景之一。用户输入文字或其他字符信息的交互手段通常是输入法,即用户可以通过输入法输入文字或其他字符信息。例如:用户在输入法界面中输入拼音时,通过拼音匹配对应的候选词来供用户选择,并且用户在多个候选词中选择想要输入的候选词时,如果该候选词不常用则用户可能需要经过翻页、滑动等操作进行候选词的选择,目前的输入方法存在效率较低的问题。When using electronic devices, inputting text or other character information is one of the most frequently used scenarios by users. The interactive means for users to input 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 by pinyin for the user to choose, and when the user selects the candidate word he wants to input among multiple candidate words, if the candidate word is not commonly used, the user may It is necessary to select candidate words through page turning, sliding and other operations. The current input method has the problem of low efficiency.

发明内容Contents of the invention

本申请实施例的目的是提供一种输入方法、装置、电子设备及可读存储介质,能够解决目前的输入方法效率较低的问题。The purpose of the embodiments of the present application is to provide an input method, device, electronic device and readable storage medium, which can solve the problem of low efficiency of current input methods.

第一方面,本申请实施例提供了一种输入方法,包括:In the first aspect, embodiments of the present application provide an input method, including:

接收用户的第一输入;其中,所述第一输入用于输入第一字符串;Receive a first input from the user; wherein the first input is used to input a first character string;

响应于所述第一输入,显示与所述第一字符串对应的第一信息;In response to the first input, display first information corresponding to the first character string;

其中,所述第一信息包括以下至少一项:Wherein, the first information includes at least one of the following:

与第一候选词对应的预存信息,所述第一候选词是与所述第一字符串匹配的候选词;Pre-stored information corresponding to a first candidate word, the first candidate word being a candidate word matching the first character string;

与所述第一字符串匹配的至少一个候选词类别标识。 At least one candidate word category identifier that matches the first character string.

第二方面,本申请实施例提供了一种输入装置,包括:In a second aspect, embodiments of the present application provide an input device, including:

第一接收模块,用于接收用户的第一输入;其中,所述第一输入用于输入第一字符串;A first receiving module, configured to receive a first input from a user; wherein the first input is used to input a first character string;

第一响应模块,用于响应于所述第一输入,显示与所述第一字符串对应的第一信息;A first response module, configured to display first information corresponding to the first character string in response to the first input;

其中,所述第一信息包括以下至少一项:Wherein, the first information includes at least one of the following:

与第一候选词对应的预存信息,所述第一候选词是与所述第一字符串匹配的候选词;Pre-stored information corresponding to a first candidate word, the first candidate word being a candidate word matching the first character string;

与所述第一字符串匹配的至少一个候选词类别标识。At least one candidate word category identifier that matches the first character string.

第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的输入方法的步骤。In a third aspect, embodiments of the present application provide an electronic device. The electronic device includes a processor and a memory. The memory stores programs or instructions that can be run on the processor. The programs or instructions are processed by the processor. When the processor is executed, the steps of the input method as described in the first aspect are implemented.

第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的输入方法的步骤。In the fourth aspect, embodiments of the present application provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the programs or instructions are executed by a processor, the input method as described in the first aspect is implemented. step.

第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的输入方法的步骤。In a fifth aspect, embodiments of the present application provide a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the first aspect. The steps of the input method described.

第六方面,本申请实施例提供一种计算机程序产品,该计算机程序产品被存储在非易失的存储介质中,该计算机程序产品被至少一个处理器执行以实现如第一方面所述的输入方法的步骤。In a sixth aspect, embodiments of the present application provide a computer program product. The computer program product is stored in a non-volatile storage medium. The computer program product is executed by at least one processor to implement the input as described in the first aspect. Method steps.

第七方面,本申请实施例提供一种通信设备,其中,被配置为执行如第一方面所述的输入方法的步骤。In a seventh aspect, an embodiment of the present application provides a communication device, which is configured to perform the steps of the input method described in the first aspect.

在本申请实施例中,通过接收用于输入第一字符串的第一输入,响应于所述第一输入,显示与所述第一字符串匹配的第一候选词对应的预存信息,相较于目前通过字符串匹配候选词的方式,丰富了输入法的候选词匹配内容,并且用户在无需输入预存信息的信息内容中每个字符对应的字符串的情况下, 可快速地输入该预存信息,从而还简化了用户输入过程。以及响应于所述第一输入,显示与所述第一字符串匹配的至少一个候选词类别标识,可以提供用户针对不同类型的候选词进行选择,从而提高了候选词匹配的多样性,并提高用户在与字符串匹配大量候选词中查找目标候选词的效率。In this embodiment of the present application, by receiving a first input for inputting a first string, in response to the first input, displaying pre-stored information corresponding to the first candidate word matching the first string, compared with Compared with the current method of matching candidate words through strings, the candidate word matching content of the input method is enriched, and the user does not need to enter the string corresponding to each character in the information content of the pre-stored information. This pre-stored information can be entered quickly, thereby also simplifying the user input process. and in response to the first input, displaying at least one candidate word category identifier matching the first string, which can provide the user with choices for different types of candidate words, thereby improving the diversity of candidate word matching and improving The user's efficiency in finding target candidate words among a large number of candidate words that match a string.

附图说明Description of the drawings

图1是本申请实施例的输入方法的流程图;Figure 1 is a flow chart of an input method according to an embodiment of the present application;

图2是本申请实施例的显示第一信息的流程图;Figure 2 is a flow chart for displaying first information according to an embodiment of the present application;

图3是本申请实施例的输入法界面的示意图之一;Figure 3 is one of the schematic diagrams of the input method interface according to the embodiment of the present application;

图4是本申请实施例的输入法界面的示意图之二;Figure 4 is the second schematic diagram of the input method interface according to the embodiment of the present application;

图5是本申请实施例的输入法界面的示意图之三;Figure 5 is the third schematic diagram of the input method interface according to the embodiment of the present application;

图6是本申请实施例的建立所述预存信息与所述候选词的关联的流程图;Figure 6 is a flow chart for establishing an association between the pre-stored information and the candidate words according to an embodiment of the present application;

图7是本申请实施例的输入法界面的示意图之四;Figure 7 is the fourth schematic diagram of the input method interface according to the embodiment of the present application;

图8是本申请实施例的显示候选词的流程图;Figure 8 is a flow chart for displaying candidate words according to an embodiment of the present application;

图9是本申请实施例的输入法界面的示意图之五;Figure 9 is a fifth schematic diagram of the input method interface according to the embodiment of the present application;

图10是本申请实施例的输入法界面的示意图之六;Figure 10 is the sixth schematic diagram of the input method interface according to the embodiment of the present application;

图11是本申请实施例的输入法界面的示意图之七;Figure 11 is the seventh schematic diagram of the input method interface according to the embodiment of the present application;

图12是本申请实施例的输入装置的框图之一;Figure 12 is one of the block diagrams of the input device according to the embodiment of the present application;

图13是本申请实施例的输入装置的框图之二;Figure 13 is the second block diagram of the input device according to the embodiment of the present application;

图14是本申请实施例的电子设备的框图;Figure 14 is a block diagram of an electronic device according to an embodiment of the present application;

图15是本申请实施例的电子设备的硬件结构示意图。Figure 15 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。 The technical solutions in the embodiments of the present application will be clearly described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art fall within the scope of protection of this application.

本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second", etc. in the description and claims of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. It is to be understood that the figures so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in orders other than those illustrated or described herein, and that "first," "second," etc. are distinguished Objects are usually of one type, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the related objects are in an "or" relationship.

下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的音频数据处理方法进行详细地说明。The audio data processing method provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios.

如图1所示,本发明实施例提供一种输入方法,包括以下步骤:As shown in Figure 1, an embodiment of the present invention provides an input method, which includes the following steps:

步骤101:接收用户的第一输入;其中,所述第一输入用于输入第一字符串。Step 101: Receive a first input from a user; wherein the first input is used to input a first character string.

可选地,所述第一输入可以是用户对输入法界面中的键盘区域的输入,用户通过对键盘区域的输入,可以输入相应的字符串;当然,用户除了可以通过键盘区域输入字符串以外,还可以通过笔画、手写输入字符串或文字等,或者还可以通过语音输入等,本申请实施例不以此为限。Optionally, the first input may be the user's input to the keyboard area in the input method interface. The user can input the corresponding string by inputting to the keyboard area; of course, the user can input the string in addition to the keyboard area. , you can also input strings or words through strokes, handwriting, etc., or you can also input through voice input, etc. The embodiments of the present application are not limited to this.

步骤102:响应于所述第一输入,显示与所述第一字符串对应的第一信息。Step 102: In response to the first input, display first information corresponding to the first character string.

其中,所述第一信息包括以下至少一项:Wherein, the first information includes at least one of the following:

与第一候选词对应的预存信息,所述第一候选词是与所述第一字符串匹配的候选词;Pre-stored information corresponding to a first candidate word, the first candidate word being a candidate word matching the first character string;

与所述第一字符串匹配的至少一个候选词类别标识。At least one candidate word category identifier that matches the first character string.

可选地,所述第一候选词和所述预存信息的映射关系可以预先存储在映射表中,即所述映射表可以预先存储候选词与预存信息的对应关系,如根据字符串可以匹配得到候选词,根据匹配得到的候选词,通过所述映射表可以匹配得到相应的预存信息。具体举例来说,字符串可以是“dizhi”,匹配得到候选词“地址”时,通过映射表得到对应的预存信息可以是具体地址,如“XX 省XX市XX路XX号”;字符串可以是“huiyi”,匹配得到候选词“会议”时,通过映射表得到对应的预存信息可以是快捷回复短语,如“正在会议中,稍后联系你”;字符串可以是“xiaoming”,匹配得到候选词“小明”时,通过映射表得到对应的预存信息可以是联系人信息,如电话号码“139XXXXXXXX”、地址“XX省XX市XX路XX号”等;字符串可以是“xinnianzhufu”,匹配得到候选词“新年祝福”时,通过映射表得到预设信息可以是快捷回复短语,如“新年快乐,万事如意!”等,本申请实施例不以为限。Optionally, the mapping relationship between the first candidate word and the pre-stored information can be stored in a mapping table in advance, that is, the mapping table can pre-store the corresponding relationship between the candidate word and the pre-stored information, for example, it can be obtained by matching according to the string. Candidate words, according to the candidate words obtained by matching, the corresponding pre-stored information can be obtained by matching through the mapping table. For example, the string can be "dizhi". When the candidate word "address" is obtained by matching, the corresponding pre-stored information obtained through the mapping table can be a specific address, such as "XX No. XX Road, XX City, Province"; the string can be "huiyi". When the candidate word "meeting" is obtained by matching, the corresponding pre-stored information obtained through the mapping table can be a quick reply phrase, such as "In a meeting, I will contact you later.""; The string can be "xiaoming". When the candidate word "Xiao Ming" is matched, the corresponding pre-stored information obtained through the mapping table can be contact information, such as the phone number "139XXXXXXXX", the address "No. XX Road, XX City, XX Province""etc.; the string can be "xinnianzhufu". When the candidate word "New Year's greetings" is matched, the preset information obtained through the mapping table can be a quick reply phrase, such as "Happy New Year and all the best! ” etc., the embodiments of this application are not limited thereto.

可选地,映射表也可以直接预先存储字符串与预存信息的对应关系,如预存信息可以是地址、联系人信息、密码、快捷回复短语等。具体举例来说,字符串可以是“dizhi”,对应的预存信息可以是具体地址,如“XX省XX市XX路XX号”;字符串可以是“huiyi”,对应的预存信息可以是快捷回复短语,如“正在会议中,稍后联系你”;字符串可以是“xiaoming”,对应的预存信息可以是联系人信息,如电话号码“139XXXXXXXX”、地址“XX省XX市XX路XX号”等;字符串可以是“xinnianzhufu”,预设信息可以是快捷回复短语,如“新年快乐,万事如意!”等,本申请实施例不以为限。Optionally, the mapping table can also directly pre-store the corresponding relationship between the string and the pre-stored information. For example, the pre-stored information can be an address, contact information, password, quick reply phrase, etc. For example, the string can be "dizhi", and the corresponding pre-stored information can be a specific address, such as "No. XX Road, XX City, XX Province"; the string can be "huiyi", and the corresponding pre-stored information can be a quick reply. Phrase, such as "In a meeting, contact you later"; the string can be "xiaoming", and the corresponding pre-stored information can be contact information, such as phone number "139XXXXXXXX", address "No. XX Road, XX City, XX Province" etc.; the string may be "xinnianzhufu", and the preset information may be a quick reply phrase, such as "Happy New Year, all the best!" etc., the embodiments of this application are not limited thereto.

可选地,预存信息除了可以是文字外,还可以是图片、视频、应用或小程序链接等,如输入“健康码”,则可以打开对应小程序。Optionally, in addition to text, the pre-stored information can also be pictures, videos, links to applications or mini programs, etc. For example, if you enter a "health code", you can open the corresponding mini program.

可选地,所述映射表可以采用宏定义的方式实现,或者除此之外的其他方式等,本申请实施例不以为限。Optionally, the mapping table can be implemented in a macro-defined manner, or in other ways, which are not limited to the embodiments of this application.

可选地,所述候选词类别标识用于指示与所述第一字符串匹配的候选词所属的候选词类别,如候选词可以按照词性分类(如动词、名词、形容词、介词、副词、语气词等),或者按照行业类别分类(如建筑、计算机、地理、物理等),或者按照媒体形式分类(如电影、音乐、电视剧等),或者除此之外的其他分类形式等,本申请实施例不以此为限。Optionally, the candidate word category identifier is used to indicate the candidate word category to which the candidate word matching the first string belongs. For example, the candidate words can be classified according to parts of speech (such as verbs, nouns, adjectives, prepositions, adverbs, moods, etc.) words, etc.), or classified according to industry categories (such as architecture, computers, geography, physics, etc.), or classified according to media forms (such as movies, music, TV series, etc.), or other classification forms in addition, this application implements This example is not limited to this.

该实施例中,通过接收用于输入第一字符串的第一输入,响应于所述第一输入,显示与所述第一字符串匹配的第一候选词对应的预存信息,相较于 目前通过字符串匹配候选词的方式,丰富了输入法的候选词匹配内容,并且用户在无需输入预存信息的信息内容中每个字符对应的字符串的情况下,可快速地输入该预存信息,从而还简化了用户输入过程。以及响应于所述第一输入,显示与所述第一字符串匹配的至少一个候选词类别标识,可以提供用户针对不同类型的候选词进行选择,从而提高用户在与字符串匹配大量候选词中查找目标候选词的效率。In this embodiment, by receiving a first input for inputting a first string, in response to the first input, displaying pre-stored information corresponding to a first candidate word matching the first string, compared to At present, the candidate word matching content of the input method is enriched through string matching of candidate words, and the user can quickly input the pre-stored information without entering the string corresponding to each character in the information content of the pre-stored information. This also simplifies the user input process. and in response to the first input, displaying at least one candidate word category identifier that matches the first string, which can provide the user with choices for different types of candidate words, thereby improving the user's ability to select a large number of candidate words that match the string. The efficiency of finding target candidate words.

可选地,如图2所示,给出了一种显示第一信息的流程图,具体的所述第一信息包括所述预存信息的情况下,所述响应于所述第一输入,显示所述第一字符串对应的第一信息,包括以下步骤:Optionally, as shown in Figure 2, a flow chart for displaying the first information is provided. Specifically, when the first information includes the pre-stored information, in response to the first input, display The first information corresponding to the first character string includes the following steps:

步骤201:响应于所述第一输入,显示与所述第一字符串匹配的至少一个候选词;Step 201: In response to the first input, display at least one candidate word matching the first string;

步骤202:在所述至少一个候选词中存在所述第一候选词的情况下,显示所述第一候选词对应的预存信息。Step 202: If the first candidate word exists in the at least one candidate word, display the pre-stored information corresponding to the first candidate word.

其中,所述映射表包括候选词与预存信息的映射关系,所述第一候选词是所述映射表中的至少一个候选词。Wherein, the mapping table includes a mapping relationship between candidate words and pre-stored information, and the first candidate word is at least one candidate word in the mapping table.

例如:映射表包括候选词与预存信息的映射关系,候选词为“地址”时,预存信息可以是具体地址,如“XX省XX市XX路XX号”;候选词为“会议”时,预存信息可以是快捷回复短语,如“正在会议中,稍后联系你”;候选词是“小明”时,预存信息可以是联系人信息,如电话号码“139XXXXXXXX”、地址“XX省XX市XX路XX号”等;候选词是“新年祝福”时,预设信息可以是快捷回复短语,如“新年快乐,万事如意!”等。For example: the mapping table includes the mapping relationship between candidate words and pre-stored information. When the candidate word is "address", the pre-stored information can be a specific address, such as "No. XX Road, XX City, XX Province"; when the candidate word is "meeting", the pre-stored information The information can be a quick reply phrase, such as "In a meeting, contact you later"; when the candidate word is "Xiao Ming", the pre-stored information can be contact information, such as phone number "139XXXXXXXX", address "XX Road, XX City, XX Province" "XX number", etc.; when the candidate word is "New Year's greetings", the default message can be a quick reply phrase, such as "Happy New Year, all the best!" etc.

如图3和图4所示,当输入的第一字符串是“dizhi”时,可以显示至少一个候选词,如:“地址”、“地质”、“抵制”、“低至”等;当所显示的候选词中包括有映射表中的候选词,如“地址”时,可以显示该候选词“地址”对应的预设信息,如具体地址“XX省XX市……”。As shown in Figures 3 and 4, when the first input string is "dizhi", at least one candidate word can be displayed, such as: "address", "geology", "resist", "low to", etc.; when the When the displayed candidate words include candidate words 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...".

可选地,所述第一信息可以是与所述第一字符串匹配的第一候选词上的指示标识,所述显示所述第一字符串对应的第一信息之后,还包括: Optionally, the first information may be an indication mark on the first candidate word that matches the first string. After displaying the first information corresponding to the first string, the method further includes:

接收用户对所述指示标识的第三输入;Receive a third input from the user to the indication mark;

响应于所述第三输入,显示与所述第一候选词对应的预存信息。In response to the third input, pre-stored information corresponding to the first candidate word is displayed.

例如:在接收到用户用于输入第一字符串的第一输入的情况下,显示与所述第一字符串匹配的至少一个候选词;在所述至少一个候选词中存在与所述映射表中相同的第一候选词的情况下,在所述第一候选词上显示指示标识;其中,所述指示标识用于指示所述映射表中存在与所述第一候选词对应的预存信息,这样通过该指示标识可以便于用户获知所显示的候选词存在对应的预存信息,进一步可以通过该指示标识快速地查看相应的预存信息,从而便于用户在无需输入预存信息的信息内容中每个字符对应的字符串的情况下,快速地输入该预存信息,从而还简化了用户输入过程。For example: when receiving a first input from a user for inputting a first string, display at least one candidate word matching the first string; in the at least one candidate word, there is a mapping table corresponding to If the same first candidate word is found in the first 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, In this way, the indicator mark can be used to facilitate the user to know that the displayed candidate word has corresponding pre-stored information, and further the corresponding pre-stored information can be quickly viewed through the indicator mark, thereby facilitating the user to find the corresponding character of each character in the information content without inputting the pre-stored information. In the case of a string, the pre-stored information can be quickly input, thereby also simplifying the user input process.

可选地,所述指示信息可以是将所述第一候选词或者所述第一候选词对应的区域高亮显示,或者在所述第一候选词对应的区域添加标签,或者除此之外的其他形式等,本申请实施例不以为限。Optionally, the indication information may be to highlight the first candidate word or the area corresponding to the first candidate word, or to add a label to the area corresponding to the first candidate word, or in addition. Other forms, etc., are not limited by the embodiments of this application.

可选地,所述显示与所述第一字符串匹配的至少一个候选词,包括:Optionally, displaying at least one candidate word matching the first string includes:

在第一候选框内显示所述至少一个候选词;display the at least one candidate word in the first candidate box;

所述显示所述第一候选词对应的预存信息,包括:The displaying the pre-stored information corresponding to the first candidate word includes:

在所述第一候选框内显示所述预存信息,或者在第二候选框内显示所述预存信息。The pre-stored information is displayed in the first candidate box, or the pre-stored information is displayed in the second candidate box.

如图3所示,预存信息可以直接显示在用于显示候选词的候选框中,如在第一候选框21内显示所述至少一个候选词,以及在所述第一候选框21内显示所述预存信息,即在用于显示候选词的第一候选框21内同时显示至少一个候选词和预存信息。As shown in Figure 3, the pre-stored information can be directly displayed in the candidate box for displaying candidate words, such as displaying the at least one candidate word in the first candidate box 21, and displaying all candidate words in the first candidate box 21. The above-mentioned pre-stored information means that at least one candidate word and the pre-stored information are simultaneously displayed in the first candidate box 21 for displaying candidate words.

如图4所示,预存信息还可以显示在新增的候选框中,如在第一候选框21内显示所述至少一个候选词,以及在第二候选框22内显示所述预存信息,即候选词和预存信息显示在不同的候选框中。As shown in Figure 4, the pre-stored information can also be displayed in a newly added candidate box, 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, that is, Candidate words and pre-stored information are displayed in different candidate boxes.

可选地,当第一字符串对应有多个预存信息,或者第一候选词对应有多个预存信息时,可以在不同的预存信息上显示指示标识,以便于用户区分预 存信息的类型,或者不同候选词对应的预存信息等。如图5所示,输入的字符串为“xiaoming”时,对应的预存信息有“1XXXXX2XXX4”、“XX省XX市……”等,可以在预存信息42(如“1XXXXX2XXX4”)上添加指示标识“电话”、以及在预存信息41(如“XX省XX市……”)上添加指示标识“地址”。Optionally, when the first character string corresponds to multiple pre-stored information, or the first candidate word corresponds to multiple pre-stored information, indication marks may be displayed on different pre-stored information to facilitate the user to distinguish the pre-stored information. The type of stored information, or the pre-stored information corresponding to different candidate words, etc. As shown in Figure 5, when the input string is "xiaoming", the corresponding pre-stored information includes "1XXXXX2XXX4", "XX province XX city...", etc. You can add an indicator mark on the pre-stored information 42 (such as "1XXXXX2XXX4") "Telephone", and add the instruction mark "address" to the pre-stored information 41 (such as "XX Province, XX City...").

可选地,所述第一信息包括所述预存信息的情况下,所述显示与所述第一字符串对应的第一信息,包括:Optionally, when the first information includes the pre-stored information, the display of the first information corresponding to the first character string includes:

在所述第一字符串与目标关键词匹配的情况下,显示所述预存信息的部分内容,即隐藏所述预存信息的部分内容,或者也可以在预存信息上添加遮盖层,用于遮挡预存信息的至少部分内容等;When the first string matches the target keyword, part of the content of the pre-stored information is displayed, that is, part of the content of the pre-stored information is hidden, or a covering layer can be added to the pre-stored information to cover the pre-stored information. At least part of the content of the information, etc.;

在所述第一字符串未与目标关键词匹配的情况下,显示所述预存信息的全部内容。If the first character string does not match the target keyword, the entire content of the pre-stored information is displayed.

可选地,第一字符串与目标关键词匹配可以是:第一字符串对应的候选词为预设的关键词,例如:输入字符串“mima”,其对应的候选词“密码”为预设关键词,则确定该字符串“mima”与目标关键词匹配。Optionally, matching the first string with the target keyword may be: the candidate word corresponding to the first string is a preset keyword, for example: the input string "mima", the corresponding candidate word "password" is the preset keyword. Assuming a keyword, it is determined that the string "mima" matches the target keyword.

可选地,显示所述预存信息的部分内容,可以包括但不限于以下至少一项:在预存信息的至少部分内容上添加非透明图案,用于遮挡所述预存信息的内容;将预存信息的至少部分内容替换为预设符号,如将预存信息的至少部分内容用密文显示,如若输入“taobaomima”,预存信息可以显示为“XXXXXX”,但实际内容为用户预存的字符串。Optionally, displaying part of the content of the pre-stored information may include but is not limited to at least one of the following: adding a non-transparent pattern to at least part of the content of the pre-stored information to block the content of the pre-stored information; At least part of the content is replaced with preset symbols. For example, at least part of the content of the pre-stored information is displayed in cipher text. For example, if "taobaomima" is entered, the pre-stored information can be displayed as "XXXXXX", but the actual content is a string pre-stored by the user.

该实施例中,针对与目标关键词不匹配的第一字符串,将对应的第一预设信息的内容直接显示,从而针对非敏感信息可以便于用于直接查看;以及针对与目标关键词匹配的第一字符串,将对应的第一预设信息的内容以隐藏的方式显示,从而可以保证信息显示的安全性。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 easily used for direct viewing; and for those that match the target keyword The first string displays the content of the corresponding first preset information in a hidden manner, thereby ensuring the security of information display.

可选地,所述第一信息包括所述预存信息的情况下,所述响应于所述第一输入,显示与所述第一字符串对应的第一信息,包括:Optionally, when the first information includes the pre-stored information, in response to the first input, displaying the first information corresponding to the first character string includes:

响应于所述第一输入,获取用户的身份验证信息; In response to the first input, obtain the user's identity verification information;

在所述身份验证信息与预设验证信息相匹配的情况下,显示与所述第一字符串对应的第一预设信息。If the identity verification information matches the preset verification information, the first preset information corresponding to the first character string is displayed.

例如:在所述第一字符串与目标关键词匹配的情况下,可以先进行用户身份的验证,如可以通过提示用户输入密码、验证指纹或者人像识别的方式来保证安全性;优选地,可以使用人脸识别,在显示预存信息时打开前置摄像头来进行判断,以保证交互更为简便。如在身份验证通过之前,可以显示所述预存信息的部分内容(也可以在预存信息上显示遮盖层,用于遮挡所述预存信息的内容),在验证通过后,显示预存信息的完整内容。For example: when the first string matches the target keyword, the user identity can be verified first, for example, security can be ensured by prompting the user to enter a password, verifying fingerprints or portrait recognition; preferably, Use face recognition to turn on the front camera for judgment when displaying pre-stored information to ensure easier interaction. For example, before the identity verification is passed, part of the content of the pre-stored information can be displayed (a covering layer can also be displayed on the pre-stored information to block the content of the pre-stored information). After the authentication is passed, the complete content of the pre-stored information can be displayed.

可选地,如图6所示,给出了一种建立所述预存信息与所述候选词的关联的流程图,具体的所述显示与所述第一字符串对应的第一信息之前,还包括以下步骤:Optionally, as shown in Figure 6, a flow chart is provided for establishing an association between the pre-stored information and the candidate word. Specifically, before displaying the first information corresponding to the first character string, Also includes the following steps:

步骤601:接收用户对目标区域的第三输入;Step 601: Receive the user's third input to the target area;

步骤602:响应于所述第三输入,获取与所述第一字符串匹配的候选词对应的预存信息,并建立所述预存信息与所述候选词的关联。Step 602: In response to the third input, obtain pre-stored information corresponding to the candidate word matching the first string, and establish an association between the pre-stored information and the candidate word.

其中,所述目标区域为:预定区域、所述第一字符串的显示区域,以及与所述第一字符串匹配的候选词的显示位置中的至少一个。可选地,预定区域可以是预先设定的区域,如屏幕边缘区域,或者预定按钮的显示区域等。其中,预定区域为屏幕边缘区域的情况下,该第三输入可以是在所述屏幕边缘区域向屏幕中心区域滑动的滑动输入;在预定区域为预定按钮的显示区域的情况下,所述第三输入可以是针对该预定按钮的点击输入。如图7所示,用户在输入法中输入第一字符串,如“dizhi”,显示相应的候选词。用户可以点击按钮51来添加预存信息,如:基于本地数据可以获取候选词“地址”相关的预存信息(如具体的地址“XX省XX市……”)的情况下,可以建立该预存信息与“地址”之间的关联;又如:输入的字符串为人名(如字符串为“xiaoming”,相应的候选词包括“小明”),可以响应于针对按钮51的点击输入,在获取通讯录权限的情况下通过获取联系人“小明”的电话、邮箱、地址等信息作为预存信息,从而建立该预存信息与第一字符串对应的人名候 选词的关联,或者也可以通过人工智能(Artificial Intelligence,AI)的方式来学习推荐,或者由用户自定义输入预存信息等,本申请实施例不以为限。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. Optionally, the predetermined area may be a preset area, such as a screen edge area, or a display area of a predetermined button, etc. Wherein, when the predetermined area is the screen edge area, the third input may be a sliding input sliding from the screen edge area to the screen center area; when the predetermined area is the display area of the predetermined button, the third input may be a sliding input from the screen edge area to the screen center area. The input may be a click input for the predetermined button. As shown in Figure 7, the user inputs the first string, such as "dizhi", into the input method, and the corresponding candidate word is displayed. The user can click button 51 to add pre-stored information. For example, if the pre-stored information related to the candidate word "address" can be obtained based on local data (such as the specific address "XX province XX city..."), the pre-stored information can be established with The association between "addresses"; another example: the input string is a person's name (for example, the string is "xiaoming", and the corresponding candidate words include "Xiao Ming"). In response to the click input on button 51, the address book can be obtained. With permission, the phone number, email address, address and other information of the contact "Xiao Ming" are obtained as pre-stored information, thereby establishing a name candidate corresponding to the pre-stored information and the first string. The association of selected words may be learned and recommended through artificial intelligence (AI), or pre-stored information may be input by the user, which is not limited to the embodiments of this application.

可选地,所述目标区域为第一字符串的显示区域的情况下,该第三输入可以是针对第一字符串的显示区域的长按输入或重按输入或除此之外的其他形式的输入等。如继续参见图7,用户在输入法中输入第一字符串,如“dizhi”,显示相应的候选词。用户可以通过长按该第一字符串“dizhi”来添加预存信息,如:基于本地数据可以获取候选词“地址”相关的预存信息(如具体的地址“XX省XX市……”)的情况下,可以建立该预存信息与“地址”之间的关联;又如:输入的字符串为人名(如字符串为“xiaoming”,相应的候选词包括“小明”),可以响应于针对第一字符串的显示区域的长按输入,在获取通讯录权限的情况下通过获取联系人“小明”的电话、邮箱、地址等信息作为预存信息,从而建立该预存信息与第一字符串对应的人名候选词的关联,或者也可以通过人工智能(AI)的方式来学习推荐,或者由用户自定义输入预存信息等,本申请实施例不以为限。Optionally, when the target area is the display area of the first character string, the third input may be a long press input or a repress input for the display area of the first character string, or other forms in addition. input etc. As shown in Figure 7, the user inputs a first character string, such as "dizhi", into the input method, and the corresponding candidate word is displayed. The user can add pre-stored information by long pressing the first string "dizhi". For example, the pre-stored information related to the candidate word "address" can be obtained based on local data (such as the specific address "XX province XX city...") Next, the association between the pre-stored information and the "address" can be established; for another example: the input string is a person's name (for example, the string is "xiaoming", and the corresponding candidate words include "Xiao Ming"), you can respond to the first By long-pressing the input in the display area of the string, and obtaining the address book permission, the phone number, email address, address and other information of the contact "Xiao Ming" are obtained as pre-stored information, thereby establishing the name of the person corresponding to the pre-stored information and the first string. The association of candidate words can also be learned and recommended through artificial intelligence (AI), or pre-stored information can be customized and input by the user, etc., which are not limited to the embodiments of this application.

可选地,所述目标区域为与所述第一字符串匹配的候选词的显示位置,该第三输入可以是针对第一字符串的显示区域的长按输入或重按输入或除此之外的其他形式的输入等。如继续参见图7,用户在输入法中输入第一字符串,如“dizhi”,显示相应的候选词。用户可以通过长按该第一字符串“dizhi”对应的候选词“地址”来添加预存信息,如:响应于针对该第一字符串“dizhi”对应的候选词“地址”的长按输入,获取本地数据中“地址”相关的预存信息(如具体的地址“XX省XX市……”),并建立该预存信息与“地址”之间的关联;又如:输入的字符串为人名(如字符串为“xiaoming”,相应的候选词包括“小明”),可以响应于针对候选词“小明”的长按输入,在获取通讯录权限的情况下通过获取联系人“小明”的电话、邮箱、地址等信息作为预存信息,从而建立该预存信息与第一字符串对应的人名候选词的关联,或者也可以通过人工智能(AI)的方式来学习推荐,或者由用户自定义输入预存信息等,本申请实施例不以为限。 Optionally, the target area is the display position of the candidate word that matches the first string, and the third input may be a long press input or a repress input for the display area of the first string, or anything else. Other forms of input, etc. As shown in Figure 7, the user inputs a first character string, such as "dizhi", into the input method, and the 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", such as: in response to the long-press input of the candidate word "address" corresponding to the first string "dizhi", Obtain the pre-stored information related to the "address" in the local data (such as the specific address "XX province XX city..."), and establish the association between the pre-stored information and the "address"; another example: the input string is a person's name ( For example, if the string is "xiaoming" and the corresponding candidate words include "Xiao Ming"), you can respond to the long press input of the candidate word "Xiao Ming" and obtain the phone number and phone number of the contact "Xiao Ming" while obtaining the address book permission. Email, address and other information are used as pre-stored information to establish an association between the pre-stored information and the name candidate corresponding to the first string, or the recommendation can be learned through artificial intelligence (AI), or the user can customize the input of the pre-stored information. etc., the embodiments of this application are not limited thereto.

此外,本申请实施例中的输入方法,还提供用户针对预存信息的编辑操作,如用户可以通过长按或者右端选项按钮进行修改、添加、删除、排序、设定标签、是否明文显示预设信息的操作等,本申请实施例不以为限。In addition, the input method in the embodiment of the present application also provides the user with editing operations for pre-stored information. For example, the user can modify, add, delete, sort, set labels, and whether to display preset information in plain text by long pressing or using the option button on the right. Operations, etc. are not limited to the embodiments of this application.

可选地,所述第一信息包括所述至少一个候选词类别标识的情况下,所述响应于所述第一输入,显示与所述第一字符串对应的第一信息,包括:Optionally, when the first information includes the at least one candidate word category identifier, in response to the first input, displaying the first information corresponding to the first character string includes:

响应于所述第一输入,确定与所述第一字符串匹配的至少一个候选词;In response to the first input, determining at least one candidate word that matches the first string;

按照预设分类规则,确定每个所述候选词所属的候选词类别;Determine the candidate word category to which each candidate word belongs according to the preset classification rules;

显示所有候选词类别对应的候选词类别标识。Display the candidate word category identifiers corresponding to all candidate word categories.

可选地,预设分类规则可以是按照词性分类(如动词、名词、形容词、介词、副词、语气词等),或者按照行业类别分类(如建筑、计算机、地理、物理等),或者按照媒体形式分类(如电影、音乐、电视剧等),或者除此之外的其他分类规则等,本申请实施例不以为限。Optionally, the preset classification rules can be classified according to parts of speech (such as verbs, nouns, adjectives, prepositions, adverbs, modal particles, etc.), or according to industry categories (such as construction, computers, geography, physics, etc.), or according to media The embodiments of this application are not limited to format classification (such as movies, music, TV series, etc.), or other classification rules.

其中,确定每个所述候选词所属的候选词类别可以理解为:对与所述第一字符串匹配的每个候选词,分别确定其所属的候选词类别,其中多个候选词可以属于相同类别。如:与第一字符串匹配的候选词可以包括候选词A、B、C、D、E、F;其中,候选词A、C可以属于第一候选词类别,候选词B、D、E可以属于第二候选词类别,候选词F可以属于第三候选词类别。Wherein, determining the candidate word category to which each candidate word belongs can be understood as: for each candidate word that matches the first string, determine the candidate word category to which it belongs, wherein multiple candidate words may belong to the same category. For example: candidate words that match the first string of characters may include candidate words A, B, C, D, E, and F; among which, candidate words A and C may belong to the first candidate word category, and candidate words B, D, and E may Belonging to the second candidate word category, candidate word F may belong to the third candidate word category.

具体的,确定每个所述候选词所属的候选词类别可以是针对每个候选词逐一确定其所属的候选词类别,直到针对所有候选词均确定其所属的候选词类别;或者,还可以是按照每个候选词类别,逐一从与所述第一字符串匹配的候选词中选择属于所述候选词类别的候选词,直到所有候选词均确定其所属的候选词类别,如:与第一字符串匹配的候选词可以包括候选词A、B、C、D、E、F,按照第一候选词类别从所有候选词A、B、C、D、E、F中选择得到属于该第一候选词类别的候选词A、C,按照第二候选词从剩余的候选词B、D、E、F中选择得到属于该第二候选词类别的候选词B、D、E,按照第三候选词类别从剩余的候选词F中选择得到候选词F;其中,在基于候选词类别选择候选词时,如果针对某个候选词类别未选择得到相应的候选词,则继续 进行下一候选词类别的选择,直到所有候选词均确定其所属的候选词类别。当然,针对每个所述候选词确定其所属的候选词类别还可以采用除上述示例以外的其他方式,本申请实施例不以此为限。Specifically, determining the candidate word category to which each candidate word belongs may be to determine the candidate word category to which each candidate word belongs one by one until the candidate word category to which it belongs is determined for all candidate words; or, it may also be According to each candidate word category, candidate words belonging to the candidate word category are selected one by one from the candidate words that match the first string until all candidate words are determined to the candidate word category to which they belong, such as: with the first Candidate words for string matching may include candidate words A, B, C, D, E, and F. According to the first candidate word category, select the candidate words A, B, C, D, E, and F that belong to the first candidate word. The candidate words A and C of the candidate word category are selected from the remaining candidate words B, D, E, and F according to the second candidate word to obtain the candidate words B, D, and E belonging to the second candidate word category, and according to the third candidate word The word category selects the candidate word F from the remaining candidate words F; among them, when selecting the candidate word based on the candidate word category, if the corresponding candidate word is not selected for a certain candidate word category, continue The next candidate word category is selected until all candidate words are determined to the candidate word category to which they belong. Of course, other methods besides the above examples may be used to determine the candidate word category to which each candidate word belongs, and the embodiments of the present application are not limited thereto.

该实施例中,所述候选词类别标识用于指示与所述第一字符串匹配的候选词所属的类别,从而可以便于用户快速定位所要输入的内容。另外,如与第一字符串匹配的候选词为多个时,可以通过将该多个候选词划分为不同的类别;又如预设多个候选词类别时,如果某个候选词类别未包含与第一字符串匹配的候选词,则可以不显示所述候选词类别对应的候选词类别标识,避免候选词类别标识显示冗余,影响用户操作。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. In addition, if there are multiple candidate words matching the first string, the multiple candidate words can be divided into different categories; and if multiple candidate word categories are preset, if a certain candidate word category does not include For candidate words that match the first character string, the candidate word category identifier corresponding to the candidate word category may not be displayed to avoid redundant display of candidate word category identifiers and affect user operations.

可选地,如图8所示,给出了一种显示候选词的流程图,具体的所述第一信息包括所述至少一个候选词类别标识的情况下,所述显示与所述第一字符串对应的第一信息之后,还包括以下步骤:Optionally, as shown in Figure 8, a flow chart for displaying candidate words is provided. Specifically, when the first information includes the at least one candidate word category identifier, the display is consistent with the first After the first information corresponding to the string, the following steps are also included:

步骤801:接收用户对第一候选词类别标识的第二输入;其中,所述第一候选词类别标识为所述至少一个候选词类别标识中的至少一个;Step 801: Receive the user's second input of 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;

步骤802:响应于所述第二输入,显示所述第一候选词类别标识对应的候选词。Step 802: In response to the second input, display the candidate word corresponding to the first candidate word category identifier.

如图9所示,用户在输入字符串“dizhi”的情况下,可以显示相应的候选词。如图10所示,用户在输入字符串“dizhi”的情况下,还可以显示至少一个候选词类别标识71,该候选词类别标识71用于指示与所述第一字符串匹配的候选词所属的类别,以提供用户根据不同候选词类别选择相应的候选词,该候选词类别标识可以按照词性(如动词、名词、形容词、介词、副词、语气词等)划分;如图11所示,候选词类别标识81还可以按照行业类别(如计算机、地理、物理等)划分;或者,候选词类别标识还可以按照媒体类别(如电影、音乐、电视等)划分等,本申请实施例不以此为限。As shown in Figure 9, when the user inputs the string "dizhi", the corresponding candidate words can be displayed. As shown in Figure 10, when the user inputs the string "dizhi", at least one candidate word category identifier 71 can also be displayed. The candidate word category identifier 71 is used to indicate that the candidate word matching the first string belongs to categories to provide users with the ability to select corresponding candidate words based on different candidate word categories. The candidate word category identifiers can be divided according to parts of speech (such as verbs, nouns, adjectives, prepositions, adverbs, modal particles, etc.); as shown in Figure 11, the candidate words The word category identifiers 81 can also be divided according to industry categories (such as computers, geography, physics, etc.); or the candidate word category identifiers can also be divided according to media categories (such as movies, music, television, etc.), etc., the embodiment of the present application does not use this method. is limited.

例如:二级菜单具体显示的内容还可以由用户自定义设置,或者基于学习算法根据历史输入的候选词类别确定,或者根据输入内容在不同层级的热度(如可以通过大数据学习算法实现),或者通过AI的方式进行显示和排序 等,本申请实施例不以此为限。For example: the specific content displayed in the secondary menu can also be customized by the user, or determined based on the candidate word category of historical input based on a learning algorithm, or based on the popularity of the input content at different levels (for example, it can be achieved through a big data learning algorithm). Or display and sort through AI etc., the embodiments of the present application are not limited to this.

又例如:不同分类规则下的候选词类别可以混合显示,即针对与第一字符串匹配的候选词可以按照不同规则下的候选词类别进行分类,如与第一字符串匹配的候选词可以按照词性划分中的“动词”分类、行业类别划分中的“计算机”分类,媒体类型划分中的“电影”等,具体分类方式可以是按照多个分类规则逐一划分,或者按照所有划分规则中的每个候选词类别逐一划分等,本申请实施例不以为限。Another example: Candidate word categories under different classification rules can be mixed and displayed, that is, candidate words matching the first string can be classified according to candidate word categories under different rules. For example, candidate words matching the first string can be classified according to The "verb" classification in the part-of-speech classification, the "computer" classification in the industry category classification, the "movie" classification in the media type classification, etc. The specific classification method can be divided one by one according to multiple classification rules, or according to each of all classification rules. Candidate word categories are divided one by one, etc., which are not limited to the embodiments of this application.

这样,用户可以通过第二输入(如针对第一候选词类别标识的单击输入)显示相应候选词类别下的候选词,即针对不同候选词类别标识下,将候选词的显示方式进行调整,隐藏不属于该类别的候选词,另外还可以在此领域内做二级联想,显示更多相关性更强的候选词等,本申请实施例不以此为限。In this way, the user can display the candidate words under the corresponding candidate word category through the second input (such as a click input for the first candidate word category identifier), that is, adjust the display mode of the candidate words for different candidate word category identifiers, Candidate words that do not belong to this category can be hidden. In addition, secondary associations can be made in this field to display more candidate words that are more relevant. The embodiments of the present application are not limited to this.

本申请实施例提供的输入方法,执行主体可以为输入装置。本申请实施例中以输入装置执行音频数据处理的方法为例,说明本申请实施例提供的输入装置。For the input method provided by the embodiment of the present application, the execution subject may be an input device. In the embodiment of the present application, the method of performing audio data processing by the input device is taken as an example to describe the input device provided by the embodiment of the present application.

如图12所示,本申请实施例提供一种输入装置900,包括:As shown in Figure 12, this embodiment of the present application provides an input device 900, which includes:

第一接收模块910,用于接收用户的第一输入;其中,所述第一输入用于输入第一字符串;The first receiving module 910 is used to receive the user's first input; wherein the first input is used to input a first string;

第一响应模块920,用于响应于所述第一输入,显示与所述第一字符串对应的第一信息;The first response module 920 is configured to display the first information corresponding to the first character string in response to the first input;

其中,所述第一信息包括以下至少一项:Wherein, the first information includes at least one of the following:

与第一候选词对应的预存信息,所述第一候选词是与所述第一字符串匹配的候选词预存信息;Pre-stored information corresponding to the first candidate word, the first candidate word being the pre-stored information of the candidate word matching the first character string;

与所述第一字符串匹配的至少一个候选词类别标识。At least one candidate word category identifier that matches the first character string.

如图13所示,可选地,所述第一信息包括所述预存信息的情况下,所述第一响应模块920包括:As shown in Figure 13, optionally, when the first information includes the pre-stored information, the first response module 920 includes:

第一显示单元921,用于响应于所述第一输入,显示与所述第一字符串匹配的至少一个候选词; The first display unit 921 is configured to display at least one candidate word matching the first string in response to the first input;

第二显示单元922,用于在所述至少一个候选词中存在所述第一候选词的情况下,显示所述第一候选词对应的预存信息。The second display unit 922 is configured to display the pre-stored information corresponding to the first candidate word when the first candidate word exists in the at least one candidate word.

可选地,所述显示第一显示单元921包括:Optionally, the displaying the first display unit 921 includes:

第一显示子单元9211,用于在第一候选框内显示所述至少一个候选词;The first display subunit 9211 is used to display the at least one candidate word in the first candidate box;

所述第二显示单元922包括:The second display unit 922 includes:

第二显示子单元9221,用于在所述第一候选框内显示所述预存信息,或者在第二候选框内显示所述预存信息。The second display subunit 9221 is used to display the pre-stored information in the first candidate box or display the pre-stored information in the second candidate box.

可选地,所述第一信息包括所述预存信息的情况下,所述第一响应模块920包括:Optionally, when the first information includes the pre-stored information, the first response module 920 includes:

第三显示单元923,用于在所述第一字符串与目标关键词匹配的情况下,显示所述预存信息的部分内容;The third display unit 923 is configured to display part of the content of the pre-stored information when the first character string matches the target keyword;

第四显示单元924,用于在所述第一字符串未与目标关键词匹配的情况下,显示所述预存信息的全部内容。The fourth display unit 924 is configured to display the entire content of the pre-stored information when the first character string does not match the target keyword.

可选地,所述第一信息包括所述预存信息的情况下,所述第一响应模块920包括:Optionally, when the first information includes the pre-stored information, the first response module 920 includes:

获取单元,用于响应于所述第一输入,获取用户的身份验证信息;An acquisition unit configured to acquire the user's identity verification information in response to the first input;

第五显示单元,用于在所述身份验证信息与预设验证信息相匹配的情况下,显示与所述第一字符串对应的第一预设信息。The fifth display unit is configured to display the first preset information corresponding to the first character string when the identity verification information matches the preset verification information.

可选地,所述第一信息包括所述至少一个候选词类别标识的情况下,所述输入装置900还包括:Optionally, when the first information includes the at least one candidate word category identifier, the input device 900 further includes:

第二接收模块930,用于接收用户对第一候选词类别标识的第二输入;其中,所述第一候选词类别标识为所述至少一个候选词类别标识中的至少一个;The second receiving module 930 is configured to receive the user's second input of 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 identifier;

第二响应模块940,用于响应于所述第二输入,显示所述第一候选词类别标识对应的候选词。The second response module 940 is configured to display candidate words corresponding to the first candidate word category identifier in response to the second input.

可选地,所述输入装置900还包括:Optionally, the input device 900 also includes:

第三接收模块950,用于接收用户对目标区域的第三输入;其中,所述 目标区域为:预定区域、所述第一字符串的显示区域,以及与所述第一字符串匹配的候选词的显示位置中的至少一个;The third receiving module 950 is used to receive the user's third input to the target area; wherein, the 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;

第三响应模块960,用于响应于所述第三输入,获取与所述第一字符串匹配的候选词对应的预存信息,并建立所述预存信息与所述候选词的关联。The third response module 960 is configured to respond to the third input, obtain pre-stored information corresponding to the candidate word matching the first string, and establish an association between the pre-stored information and the candidate word.

本发明实施例中的装置,通过接收用于输入第一字符串的第一输入,响应于所述第一输入,显示预设映射表中与所述第一字符串匹配的预存信息,相较于目前通过拼音匹配候选词的方式,丰富了输入法的候选词匹配内容,并且用户在无需输入预存信息的信息内容中每个字符对应的字符串的情况下,可快速地输入该预存信息,从而还简化了用户输入过程。以及响应于所述第一输入,显示与所述第一字符串匹配的至少一个候选词类别标识,可以提供用户针对不同类型的候选词进行选择,从而提高用户在与字符串匹配大量候选词中查找目标候选词的效率。The device in the embodiment of the present invention receives a first input for inputting a first character string, and responds to the first input by displaying pre-stored information in the preset mapping table that matches the first character string. Compared with the current method of matching candidate words through Pinyin, the candidate word matching content of the input method 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. This also simplifies the user input process. and in response to the first input, displaying at least one candidate word category identifier that matches the first string, which can provide the user with choices for different types of candidate words, thereby improving the user's ability to select a large number of candidate words that match the string. The efficiency of finding target candidate words.

本申请实施例中的音频数据处理装置可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The audio data processing device in the embodiment of the present application may be an electronic device or a component in the electronic device, such as an integrated circuit or chip. The electronic device may be a terminal or other devices other than the terminal. For example, the electronic device can be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted electronic device, a mobile internet device (Mobile Internet Device, MID), or augmented reality (AR)/virtual reality (VR). ) equipment, robots, wearable devices, ultra-mobile personal computers (UMPC), netbooks or personal digital assistants (personal digital assistants, PDA), etc., and can also be servers, network attached storage (Network Attached Storage), NAS), personal computer (PC), television (TV), teller machine or self-service machine, etc., the embodiments of this application are not specifically limited.

本申请实施例中的输入装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为IOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The input device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of this application.

本申请实施例提供的输入装置能够实现图1至图11的方法实施例实现的各个过程,为避免重复,这里不再赘述。 The input device provided by the embodiment of the present application can implement various processes implemented by the method embodiments of Figures 1 to 11. To avoid repetition, they will not be described again here.

可选地,如图14所示,本申请实施例还提供一种电子设备1000,包括处理器1001和存储器1002,存储器1002上存储有可在所述处理器1001上运行的程序或指令,该程序或指令被处理器1001执行时实现上述输入方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in Figure 14, this embodiment of the present application also provides an electronic device 1000, including a processor 1001 and a memory 1002. The memory 1002 stores programs or instructions that can be run on the processor 1001. When the program or instruction is executed by the processor 1001, each step of the above input method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, the details will not be described here.

需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

图15为实现本申请实施例的一种电子设备的硬件结构示意图。Figure 15 is a schematic diagram of the hardware structure of an electronic device that implements an embodiment of the present application.

该电子设备1100包括但不限于:射频单元1101、网络模块1102、音频输出单元1103、输入单元1104、传感器1105、显示单元1106、用户输入单元1107、接口单元1108、存储器09、以及处理器1110等部件。The electronic device 1100 includes but is not limited to: radio frequency unit 1101, network module 1102, audio output unit 1103, input unit 1104, sensor 1105, display unit 1106, user input unit 1107, interface unit 1108, memory 09, processor 1110, etc. part.

本领域技术人员可以理解,电子设备1100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图15中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 1100 may also include a power supply (such as a battery) that supplies power to various components. The power supply may be logically connected to the processor 1110 through a power management system, thereby managing charging, discharging, and function through the power management system. Consumption management and other functions. The structure of the electronic device shown in Figure 15 does not constitute a limitation of the electronic device. The electronic device may include more or less components than shown in the figure, or combine certain components, or arrange different components, which will not be described again here. .

其中,用户输入单元1107用于:接收用户的第一输入;其中,所述第一输入用于输入第一字符串;Wherein, the user input unit 1107 is used to: receive the user's first input; wherein the first input is used to input a first character string;

处理器1110用于:响应于所述第一输入,通过显示单元1106显示与所述第一字符串对应的第一信息;The processor 1110 is configured to: in response to the first input, display the first information corresponding to the first character string through the display unit 1106;

其中,所述第一信息包括以下至少一项:Wherein, the first information includes at least one of the following:

与第一候选词对应的预存信息,所述第一候选词是与所述第一字符串匹配的候选词预存信息;Pre-stored information corresponding to the first candidate word, the first candidate word being the pre-stored information of the candidate word matching the first character string;

与所述第一字符串匹配的至少一个候选词类别标识。At least one candidate word category identifier that matches the first character string.

可选地,所述第一信息包括所述预存信息的情况下,处理器1110还用于:响应于所述第一输入,通过显示单元1106显示与所述第一字符串匹配的至少一个候选词;Optionally, when the first information includes the pre-stored information, the processor 1110 is further configured to: in response to the first input, display at least one candidate matching the first string through the display unit 1106 word;

处理器1110还用于:在所述至少一个候选词中存在所述第一候选词的情 况下,通过显示单元1106显示所述第一候选词对应的预存信息。The processor 1110 is further configured to: when the first candidate word exists in the at least one candidate word, In this case, the pre-stored information corresponding to the first candidate word is displayed through the display unit 1106.

可选地,显示单元1106用于:在第一候选框内显示所述至少一个候选词;Optionally, the display unit 1106 is configured to: display the at least one candidate word in the first candidate box;

显示单元1106还用于:在所述第一候选框内显示所述预存信息,或者在第二候选框内显示所述预存信息。The display unit 1106 is also configured to display the pre-stored information in the first candidate box or display the pre-stored information in the second candidate box.

可选地,所述第一信息包括所述预存信息的情况下,处理器1110还用于:在所述第一字符串与目标关键词匹配的情况下,通过显示单元1106显示所述预存信息的部分内容;在所述第一字符串未与目标关键词匹配的情况下,通过显示单元1106显示所述预存信息的全部内容。Optionally, if the first information includes the pre-stored information, the processor 1110 is further configured to: display the pre-stored information through the display unit 1106 if the first string matches the target keyword. partial content; if the first character string does not match the target keyword, the entire content of the pre-stored information is displayed through the display unit 1106.

可选地,所述第一信息包括所述预存信息的情况下,处理器1110还用于:响应于所述第一输入,获取用户的身份验证信息;在所述身份验证信息与预设验证信息相匹配的情况下,通过显示单元1106显示与所述第一字符串对应的第一预设信息。Optionally, when the first information includes the pre-stored information, the processor 1110 is further configured to: in response to the first input, obtain the user's identity verification information; when the identity verification information matches the preset verification If the information matches, the first preset information corresponding to the first character string is displayed through the display unit 1106 .

可选地,所述第一信息包括所述至少一个候选词类别标识的情况下,用户输入单元1107还用于:接收用户对第一候选词类别标识的第二输入;其中,所述第一候选词类别标识为所述至少一个候选词类别标识中的至少一个;Optionally, when the first information includes the at least one candidate word category identifier, the user input unit 1107 is further configured to: receive a second input from the user to the first candidate word category identifier; wherein, the first candidate word category identifier The candidate word category identifier is at least one of the at least one candidate word category identifier;

处理器1110还用于:响应于所述第二输入,通过显示单元1106显示所述第一候选词类别标识对应的候选词。The processor 1110 is further configured to: in response to the second input, display the candidate word corresponding to the first candidate word category identification through the display unit 1106.

可选地,用户输入单元1107还用于:接收用户对目标区域的第三输入;其中,所述目标区域为:预定区域、所述第一字符串的显示区域,以及与所述第一字符串匹配的候选词的显示位置中的至少一个;Optionally, the user input unit 1107 is also configured to: receive the user's third input to a target area; wherein the target area is: a predetermined area, a display area of the first character string, and an area corresponding to the first character. At least one of the display positions of the candidate words for string matching;

处理器1110还用于:响应于所述第三输入,获取与所述第一字符串匹配的候选词对应的预存信息,并建立所述预存信息与所述候选词的关联。The processor 1110 is further configured to: in response to the third input, obtain pre-stored information corresponding to the candidate word matching the first string, and establish an association between the pre-stored information and the candidate word.

本发明实施例中的电子设备,通过接收用于输入第一字符串的第一输入,响应于所述第一输入,显示预设映射表中与所述第一字符串匹配的预存信息,相较于目前通过拼音匹配候选词的方式,丰富了输入法的候选词匹配内容,并且用户在无需输入预存信息的信息内容中每个字符对应的字符串的情况下,可快速地输入该预存信息,从而还简化了用户输入过程。以及响应于所述第 一输入,显示与所述第一字符串匹配的至少一个候选词类别标识,可以提供用户针对不同类型的候选词进行选择,从而提高用户在与字符串匹配大量候选词中查找目标候选词的效率。The electronic device in the embodiment of the present invention receives the first input for inputting the first string, and displays the pre-stored information in the preset mapping table that matches the first string in response to the first input. Compared with the current method of matching candidate words through pinyin, the candidate word matching content of the input method is enriched, and the user can quickly input the pre-stored information without having to enter the string corresponding to each character in the information content of the pre-stored information. , thus also simplifying the user input process. and in response to the stated Upon input, at least one candidate word category identifier matching the first string is displayed, which can provide the user with choices for different types of candidate words, thereby improving the user's efficiency in finding target candidate words among a large number of candidate words that match the string. .

应理解的是,本申请实施例中,输入单元1104可以包括图形处理器(Graphics Processing Unit,GPU)11041和麦克风11042,图形处理器11041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1106可包括显示面板11061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板11061。用户输入单元1107包括触控面板11071以及其他输入设备11072中的至少一种。触控面板11071,也称为触摸屏。触控面板11071可包括触摸检测装置和触摸控制器两个部分。其他输入设备11072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that in the embodiment of the present application, the input unit 1104 may include a graphics processor (Graphics Processing Unit, GPU) 11041 and a microphone 11042. The graphics processor 11041 is responsible for the image capture device (GPU) in the video capture mode or the image capture mode. Process the image data of still pictures or videos obtained by cameras (such as cameras). The display unit 1106 may include a display panel 11061, which 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 . Touch panel 11071, also called touch screen. The touch panel 11071 may include two parts: a touch detection device and a touch controller. Other input devices 11072 may include but are not limited to physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described again here.

存储器1109可用于存储软件程序以及各种数据。存储器1109可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器1109可以包括易失性存储器或非易失性存储器,或者,存储器1109可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施 例中的存储器1109包括但不限于这些和任意其它适合类型的存储器。Memory 1109 may be used to store software programs as well as various data. The memory 1109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, Image playback function, etc.) etc. Additionally, memory 1109 may include volatile memory or nonvolatile memory, or memory 1109 may include both volatile and nonvolatile memory. Among them, the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically removable memory. Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch link DRAM) , SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM). Implementation of this application Example memory 1109 includes, but is not limited to, these and any other suitable types of memory.

处理器1110可包括一个或多个处理单元;可选的,处理器1110集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器1110中。The processor 1110 may include one or more processing units; optionally, the processor 1110 integrates an application processor and a modem processor, where the application processor mainly handles operations related to the operating system, user interface, application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the above modem processor may not be integrated into the processor 1110.

本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述音频数据处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application also provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the program or instructions are executed by a processor, each process of the audio data processing method embodiment is implemented, and can achieve The same technical effects are not repeated here to avoid repetition.

其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disk or optical disk, etc.

本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述输入方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement each of the above input method embodiments. The process can achieve the same technical effect. To avoid repetition, it will not be described again here.

应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of this application may also be called system-on-chip, system-on-a-chip, system-on-a-chip or system-on-chip, etc.

本申请实施例提供一种计算机程序产品,该计算机程序产品被存储在非易失的存储介质中,该计算机程序产品被至少一个处理器执行以实现如上述输入方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application provide a computer program product, which is stored in a non-volatile storage medium. The computer program product is executed by at least one processor to implement each process of the above input method embodiment, and can To achieve the same technical effect, to avoid repetition, we will not repeat them here.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、 方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the terms "comprising", "comprises" or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device that includes a series of elements not only includes those elements, It also includes other elements not expressly listed or inherent in the process, method, article or apparatus. Without further limitation, an element qualified by the statement "includes a..." is not excluded from the inclusion of that element, There are additional identical elements present in the method, article or apparatus. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, but may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions may be performed, for example, the methods described may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a computer software product that is essentially or contributes to the existing technology. The computer software product is stored in a storage medium (such as ROM/RAM, disk , optical disk), including several instructions to cause a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of this application.

上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。 The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Inspired by this application, many forms can be made without departing from the purpose of this application and the scope protected by the claims, all of which fall within the protection of this application.

Claims (17)

一种输入方法,包括:An input method that includes: 接收用户的第一输入;其中,所述第一输入用于输入第一字符串;Receive a first input from the user; wherein the first input is used to input a first character string; 响应于所述第一输入,显示与所述第一字符串对应的第一信息;In response to the first input, display first information corresponding to the first character string; 其中,所述第一信息包括以下至少一项:Wherein, the first information includes at least one of the following: 与第一候选词对应的预存信息,所述第一候选词是与所述第一字符串匹配的候选词;Pre-stored information corresponding to a first candidate word, the first candidate word being a candidate word matching the first character string; 与所述第一字符串匹配的至少一个候选词类别标识。At least one candidate word category identifier that matches the first character string. 根据权利要求1所述的输入方法,其中,所述第一信息包括所述预存信息的情况下,所述响应于所述第一输入,显示与所述第一字符串对应的第一信息,包括:The input method according to claim 1, wherein when the first information includes the pre-stored information, the first information corresponding to the first character string is displayed in response to the first input, include: 响应于所述第一输入,显示与所述第一字符串匹配的至少一个候选词;In response to the first input, display at least one candidate word that matches the first string; 在所述至少一个候选词中存在所述第一候选词的情况下,显示所述第一候选词对应的预存信息。If the first candidate word exists in the at least one candidate word, the pre-stored information corresponding to the first candidate word is displayed. 根据权利要求2所述的输入方法,其中,所述显示与所述第一字符串匹配的至少一个候选词,包括:The input method according to claim 2, wherein the displaying at least one candidate word matching the first character string includes: 在第一候选框内显示所述至少一个候选词;display the at least one candidate word in the first candidate box; 所述显示所述第一候选词对应的预存信息,包括:The displaying the pre-stored information corresponding to the first candidate word includes: 在所述第一候选框内显示所述预存信息,或者在第二候选框内显示所述预存信息。The pre-stored information is displayed in the first candidate box, or the pre-stored information is displayed in the second candidate box. 根据权利要求1所述的输入方法,其中,所述第一信息包括所述预存信息的情况下,所述显示与所述第一字符串对应的第一信息,包括:The input method according to claim 1, wherein when the first information includes the pre-stored information, the display of the first information corresponding to the first character string includes: 在所述第一字符串与目标关键词匹配的情况下,显示所述预存信息的部分内容;When the first character string matches the target keyword, display part of the content of the pre-stored information; 在所述第一字符串未与目标关键词匹配的情况下,显示所述预存信息的全部内容。 If the first character string does not match the target keyword, the entire content of the pre-stored information is displayed. 根据权利要求1所述的输入方法,其中,所述第一信息包括所述至少一个候选词类别标识的情况下,所述显示与所述第一字符串对应的第一信息之后,还包括:The input method according to claim 1, wherein when the first information includes the at least one candidate word category identifier, after the display of the first information corresponding to the first character string, the method further includes: 接收用户对第一候选词类别标识的第二输入;其中,所述第一候选词类别标识为所述至少一个候选词类别标识中的至少一个;Receive a second input from the user to 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; 响应于所述第二输入,显示所述第一候选词类别标识对应的候选词。In response to the second input, the candidate words corresponding to the first candidate word category identification are displayed. 根据权利要求1所述的输入方法,其中,所述显示与所述第一字符串对应的第一信息之前,还包括:The input method according to claim 1, wherein before displaying the first information corresponding to the first character string, the method further includes: 接收用户对目标区域的第三输入;receiving third input from the user to the target area; 响应于所述第三输入,获取与所述第一字符串匹配的候选词对应的预存信息,并建立所述预存信息与所述候选词的关联。In response to the third input, pre-stored information corresponding to the candidate word matching the first character string is obtained, and an association between the pre-stored information and the candidate word is established. 一种输入装置,包括:An input device including: 第一接收模块,用于接收用户的第一输入;其中,所述第一输入用于输入第一字符串;A first receiving module, configured to receive a first input from a user; wherein the first input is used to input a first character string; 第一响应模块,用于响应于所述第一输入,显示与所述第一字符串对应的第一信息;A first response module, configured to display first information corresponding to the first character string in response to the first input; 其中,所述第一信息包括以下至少一项:Wherein, the first information includes at least one of the following: 与第一候选词对应的预存信息,所述第一候选词是与所述第一字符串匹配的候选词;Pre-stored information corresponding to a first candidate word, the first candidate word being a candidate word matching the first character string; 与所述第一字符串匹配的至少一个候选词类别标识。At least one candidate word category identifier that matches the first character string. 根据权利要求7所述的输入装置,其中,所述第一信息包括所述预存信息的情况下,所述第一响应模块包括:The input device according to claim 7, wherein when the first information includes the pre-stored information, the first response module includes: 第一显示单元,用于响应于所述第一输入,显示与所述第一字符串匹配的至少一个候选词;a first display unit configured to display at least one candidate word matching the first character string in response to the first input; 第二显示单元,用于在所述至少一个候选词中存在所述第一候选词的情况下,显示所述第一候选词对应的预存信息。The second display unit is configured to display the pre-stored information corresponding to the first candidate word when the first candidate word exists in the at least one candidate word. 根据权利要求8所述的输入装置,其中,所述显示第一显示单元包括: The input device according to claim 8, wherein the displaying the first display unit includes: 第一显示子单元,用于在第一候选框内显示所述至少一个候选词;The first display subunit is used to display the at least one candidate word in 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 display the pre-stored information in the second candidate box. 根据权利要求7所述的输入装置,其中,所述第一信息包括所述预存信息的情况下,所述第一响应模块包括:The input device according to claim 7, wherein when the first information includes the pre-stored information, the first response module includes: 第三显示单元,用于在所述第一字符串与目标关键词匹配的情况下,显示所述预存信息的部分内容;A third display unit configured to display part of the pre-stored information when the first character string matches the target keyword; 第四显示单元,用于在所述第一字符串未与目标关键词匹配的情况下,显示所述预存信息的全部内容。A fourth display unit is configured to display the entire content of the pre-stored information when the first character string does not match the target keyword. 根据权利要求7所述的输入装置,其中,所述第一信息包括所述至少一个候选词类别标识的情况下,还包括:The input device according to claim 7, wherein when the first information includes the at least one candidate word category identifier, it further includes: 第二接收模块,用于接收用户对第一候选词类别标识的第二输入;其中,所述第一候选词类别标识为所述至少一个候选词类别标识中的至少一个;The second receiving module is configured to receive the user's second input of 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 identifier; 第二响应模块,用于响应于所述第二输入,显示所述第一候选词类别标识对应的候选词。A second response module, configured to respond to the second input and display candidate words corresponding to the first candidate word category identifier. 根据权利要求7所述的输入装置,其中,还包括:The input device according to claim 7, further comprising: 第三接收模块,用于接收用户对目标区域的第三输入;The third receiving module is used to receive the user's third input to the target area; 第三响应模块,用于响应于所述第三输入,获取与所述第一字符串匹配的候选词对应的预存信息,并建立所述预存信息与所述候选词的关联。A third response module, configured to respond to the third input, obtain pre-stored information corresponding to the candidate word matching the first string, and establish an association between the pre-stored information and the candidate word. 一种电子设备,包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至6中任一项所述的输入方法的步骤。An electronic device, including a processor and a memory. The memory stores programs or instructions that can be run on the processor. When the program or instructions are executed by the processor, any one of claims 1 to 6 is implemented. Steps for the input method described in the item. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至6中任一项所述的输入方法的步骤。A readable storage medium on which a program or instructions are stored. When the program or instructions are executed by a processor, the steps of the input method according to any one of claims 1 to 6 are implemented. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述 处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至6中任一项所述的输入方法的步骤。A chip, the chip includes a processor and a communication interface, the communication interface and the Coupled with a processor, the processor is used to run programs or instructions to implement the steps of the input method according to any one of claims 1 to 6. 一种计算机程序产品,所述计算机程序产品被存储在非易失的存储介质中,所述计算机程序产品被至少一个处理器执行以实现如权利要求1至6中任一项所述的输入方法的步骤。A computer program product, the computer program product is stored in a non-volatile storage medium, and the computer program product is executed by at least one processor to implement the input method as claimed in any one of claims 1 to 6 A step of. 一种通信设备,其中,被配置为执行如权利要求1至6中任一项所述的输入方法的步骤。 A communication device configured to perform the steps of the input method according to any one of claims 1 to 6.
PCT/CN2023/098044 2022-06-09 2023-06-02 Input method and apparatus, electronic device, and readable storage medium Ceased WO2023236866A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210652011.2 2022-06-09
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
WO2023236866A1 true WO2023236866A1 (en) 2023-12-14

Family

ID=83201069

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/098044 Ceased WO2023236866A1 (en) 2022-06-09 2023-06-02 Input method and apparatus, electronic device, 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
CN118069631A (en) * 2024-02-06 2024-05-24 北京原点数安科技有限公司 Data modification method, device, equipment and storage medium

Families Citing this family (1)

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

Citations (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
CN109164923A (en) * 2018-08-21 2019-01-08 平安科技(深圳)有限公司 Method, apparatus, computer equipment and the storage medium of input method recommended candidate word
CN110399046A (en) * 2019-05-31 2019-11-01 平安科技(深圳)有限公司 Method, device, equipment and storage medium for processing candidate items in input method
CN115061580A (en) * 2022-06-09 2022-09-16 维沃移动通信有限公司 Input method, input device, electronic equipment and readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6151381B2 (en) * 2013-03-15 2017-06-21 グーグル インコーポレイテッド Virtual keyboard input for international languages
CN112181167B (en) * 2020-10-27 2024-11-15 维沃移动通信有限公司 Input method candidate word processing method and electronic device
CN112631437B (en) * 2020-12-25 2025-04-15 维沃移动通信有限公司 Information recommendation method, device and electronic equipment
CN112684910A (en) * 2020-12-29 2021-04-20 维沃移动通信有限公司 Input method candidate word display method and device and electronic equipment

Patent Citations (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
CN109164923A (en) * 2018-08-21 2019-01-08 平安科技(深圳)有限公司 Method, apparatus, computer equipment and the storage medium of input method recommended candidate word
CN110399046A (en) * 2019-05-31 2019-11-01 平安科技(深圳)有限公司 Method, device, equipment and storage medium for processing candidate items 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
CN118069631A (en) * 2024-02-06 2024-05-24 北京原点数安科技有限公司 Data modification method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN115061580A (en) 2022-09-16

Similar Documents

Publication Publication Date Title
CN107102746B (en) Candidate word generation method and device and candidate word generation device
JP2006527870A (en) Configurable information identification system and method
US20180300058A1 (en) Supplementing a virtual input keyboard
WO2023236866A1 (en) Input method and apparatus, electronic device, and readable storage medium
CN112163239A (en) Privacy information protection method and device and electronic equipment
WO2021254251A1 (en) Input display method and apparatus, and electronic device
WO2025051087A1 (en) Chat content processing method and apparatus
CN111913627A (en) Recording file display method and device and electronic equipment
CN102968266A (en) Identification method and device
WO2023061276A1 (en) Data recommendation method and apparatus, electronic device, and storage medium
CN107797676A (en) A kind of input method of the single character and device
CN105354506B (en) The method and apparatus of hidden file
CN117149465A (en) Pasting method, device and electronic equipment
WO2024041510A1 (en) Contact determination method and apparatus, and electronic device and medium
WO2024149183A1 (en) Document display method and apparatus, and electronic device
CN113157966B (en) Display method, device and electronic equipment
CN116301402A (en) Password input method and device
CN116187341A (en) Semantic recognition method and device thereof
CN115993892A (en) Information input method, device and electronic equipment
CN115080170A (en) Information processing method, information processing apparatus, and electronic device
CN114356118A (en) Character input method, device, electronic equipment and medium
CN113253904A (en) Display method, display device and electronic equipment
US20100325130A1 (en) Media asset interactive search
CN112732464B (en) Pasting method, device and electronic equipment
CN118295738A (en) Program control method, device and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23819031

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 23819031

Country of ref document: EP

Kind code of ref document: A1