Text input processing method and device, storage medium and electronic equipment
By introducing character key combinations into the input method, the problem of accidentally touching the wrong keys during typing in the prior art is solved, and the efficiency of key input is improved.
Patent Information
- Application Number
- CN202411441600.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-15
- Publication Date
- 2025-04-15
AI Technical Summary
When typing, the existing input methods are small in single-character key area, which can easily cause the user to accidentally touch the wrong key position, resulting in low key input efficiency.
By displaying a character input interface including at least one character key combination, the user can select character key combination for input, and then in response to the user's key input operation, determine the candidate text set corresponding to the key input operation and display it.
Due to the large key area of character key combinations, the error touch rate of the user accidentally touches the wrong key when typing, thereby improving the user's key input efficiency.
Smart Images

Figure CN119828914A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a text input processing method, device, storage medium and electronic device. Background Art
[0002] An input method is a software tool used to input natural language text into a computer or mobile device. With the advent of the digital age, input methods also support more and more text input functions, such as pinyin input text, handwriting recognition input text, voice recognition input text, etc. In related technologies, input methods not only support multiple input methods, but also support multi-language input. The rich input functions of input methods provide convenience for users. Summary of the invention
[0003] The embodiments of the present application provide a text input processing method, device, computer storage medium and electronic device. The technical solution is as follows:
[0004] In a first aspect, an embodiment of the present application provides a text input processing method, the method comprising:
[0005] Displaying a character input interface, wherein the character input interface includes at least one character combination key position;
[0006] In response to a key input operation input by a user, a candidate character set corresponding to the key input operation is determined, and the candidate character set is displayed.
[0007] In a possible implementation manner, in response to a key input operation input by a user, determining a candidate character set corresponding to the key input operation includes:
[0008] In response to a key input operation input by a user, obtaining at least one target key corresponding to the key input operation, and determining a target character sequence corresponding to all the target key;
[0009] A candidate character matching process is performed based on the target character sequence to obtain a candidate character set.
[0010] In a possible implementation manner, determining the target character sequence corresponding to all the target key positions includes:
[0011] If there is a character combination key position in the target key position, then at least one candidate character sequence is obtained by performing character combination based on all the target key positions, and a target character sequence is selected from the candidate character sequence;
[0012] If there is no character combination key position in the target key position, the character combinations corresponding to all the target key positions are taken as the target character sequence.
[0013] In a possible implementation manner, the step of obtaining at least one candidate character sequence by combining characters based on all the target key positions, and selecting a target character sequence from the candidate character sequence includes:
[0014] Acquire the first user operation information corresponding to each of the target key positions, determine the target key position selected character from the key position character set corresponding to the target key position based on the first user operation information, generate a candidate character sequence based on all the target key position selected characters, and use the candidate character sequence as the target character sequence; or,
[0015] Based on the key position character sets corresponding to all the target key positions, character combinations are performed to obtain at least two candidate character sequences, the at least two candidate character sequences are displayed to the user, and the target character sequence selected by the user is determined.
[0016] In a possible implementation manner, the step of obtaining at least one candidate character sequence by combining characters based on all the target key positions, and selecting a target character sequence from the candidate character sequence includes:
[0017] Combining characters based on the key character sets corresponding to all the target key positions to obtain at least two candidate character sequences;
[0018] Acquire the input text, determine the associative text corresponding to the input text, and perform sequence matching on the at least two candidate character sequences based on the associative text to obtain a target character sequence; or determine the character sequence composition probability corresponding to each of the candidate character sequences, and select the target character sequence based on the character sequence composition probability.
[0019] In a possible implementation manner, the method further includes:
[0020] Determine at least one set of key character sets from all basic characters, and determine key layout positions corresponding to the key character sets;
[0021] Character combination keys are configured in a character input interface based on the key character set and the key layout position.
[0022] In a possible implementation manner, determining at least one set of key position character sets from all basic characters includes:
[0023] Determine a candidate key position character set from all basic characters, and determine a statistical click frequency corresponding to the candidate key position character set;
[0024] A target number of key character sets are selected from the candidate key character sets in order of frequency based on the statistical click frequency.
[0025] In a second aspect, an embodiment of the present application provides a text input processing device, the device comprising:
[0026] A character display module, used for displaying a character input interface, wherein the character input interface includes at least one character combination key position;
[0027] The text display module is used to respond to a key input operation input by a user, determine a candidate text set corresponding to the key input operation, and display the candidate text set.
[0028] In a possible implementation manner, the text display module includes:
[0029] A character sequence determination unit, configured to, in response to a key position input operation input by a user, obtain at least one target key position corresponding to the key position input operation, and determine a target character sequence corresponding to all the target key positions;
[0030] The candidate character matching unit is used to perform candidate character matching processing based on the target character sequence to obtain a candidate character set.
[0031] In a possible implementation manner, the character sequence determination unit includes:
[0032] A first character sequence determination unit is configured to, if there is a character combination key position in the target key position, obtain at least one candidate character sequence by performing character combination based on all the target key positions, and select a target character sequence from the candidate character sequences;
[0033] The second character sequence determination unit is configured to take the character combinations corresponding to all the target key positions as the target character sequence if there is no character combination key position in the target key position.
[0034] In a possible implementation manner, the first character sequence determination unit is specifically configured to:
[0035] Acquire the first user operation information corresponding to each of the target key positions, determine the target key position selected character from the key position character set corresponding to the target key position based on the first user operation information, generate a candidate character sequence based on all the target key position selected characters, and use the candidate character sequence as the target character sequence; or,
[0036] Based on the key position character sets corresponding to all the target key positions, character combinations are performed to obtain at least two candidate character sequences, the at least two candidate character sequences are displayed to the user, and the target character sequence selected by the user is determined.
[0037] In a possible implementation manner, the first character sequence determination unit is specifically configured to:
[0038] Combining characters based on the key character sets corresponding to all the target key positions to obtain at least two candidate character sequences;
[0039] Acquire the input text, determine the associative text corresponding to the input text, and perform sequence matching on the at least two candidate character sequences based on the associative text to obtain a target character sequence; or determine the character sequence composition probability corresponding to each of the candidate character sequences, and select the target character sequence based on the character sequence composition probability.
[0040] In a possible implementation manner, the text input processing device further includes:
[0041] A key character determination module, used to determine at least one set of key character sets from all basic characters, and determine the key layout position corresponding to the key character set;
[0042] A character key configuration module is used to configure character combination key positions in a character input interface based on the key character set and the key layout position.
[0043] In a possible implementation manner, the key character determination module includes:
[0044] A character statistics unit, used to determine a candidate key position character set from all basic characters, and determine a statistical click frequency corresponding to the candidate key position character set;
[0045] The character selection unit is used to select a target number of key position character sets from the candidate key position character sets in order of frequency according to the statistical click frequency.
[0046] In a third aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium has a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the above-mentioned method.
[0047] In a fourth aspect, an embodiment of the present application provides an electronic device, which may include: a memory and a processor; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the memory and executing the above method.
[0048] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0049] The text input processing method provided by the embodiment of the present application facilitates the user to select a character combination key position for input by displaying a character input interface including at least one character combination key position, and then, in response to the key position input operation input by the user, determines a candidate text set corresponding to the key position input operation, and displays the candidate text set. Since a character combination key position is a key position where several characters are combined together, the character combination key position has a larger key area than a single character key position, which can reduce the false touch rate of the user accidentally touching the wrong key position when typing, thereby improving the key position input efficiency of the user when typing. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0051] Figure 1 This is a schematic diagram of an application scenario of a text input processing method provided in an embodiment of the present application;
[0052] Figure 2 It is a flowchart of a text input processing method provided in an embodiment of the present application;
[0053] Figure 3 is a schematic diagram of a virtual keyboard displayed in a character interface provided in an embodiment of the present application;
[0054] Figure 4 is a schematic diagram of a virtual keyboard displayed in another character interface provided in an embodiment of the present application;
[0055] Figure 5 It is a flowchart of another text input processing method provided in an embodiment of the present application;
[0056] Figure 6 is a structural diagram of a text input processing device provided in an embodiment of the present application;
[0057] Figure 7 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0058] In order to make the purpose, features, and advantages of the embodiments of the present application more obvious and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0059] In the description of the present application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In the description of the present application, it should be noted that, unless otherwise clearly specified and limited, "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood in specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are an "or" relationship.
[0060] In the related art, the input method software is configured with 26 letter keys. The number of keys is large, so the contact area of each key is small. When typing, users may easily accidentally touch a key that is not the expected input. After accidentally touching a key, they need to delete the wrong character that has been entered and re-enter the correct character. Therefore, there is a problem of low key input efficiency.
[0061] In order to solve the above technical problems, the present application is described in detail below in conjunction with specific embodiments.
[0062] See also Figure 1 , is a schematic diagram of an application scenario of a text input processing method provided in an embodiment of the present application. Figure 1 As shown, the application scenario of the text input processing method may include at least a client cluster and a server 100 .
[0063] In some embodiments, a client cluster may include at least one client, such as Figure 1 As shown, it specifically includes client 1 corresponding to user 1, client 2 corresponding to user 2, ..., client n corresponding to user n, where n is an integer greater than 0.
[0064] Each client in the client cluster may be an electronic device with communication function, including but not limited to: wearable device, handheld device, personal computer, tablet computer, vehicle-mounted device, smart phone, computing device or other processing device connected to a wireless modem, etc. Electronic devices may be called different names in different networks, such as: user equipment, access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device, cellular phone, cordless phone, personal digital assistant (PDA), electronic device in 5G network or future evolution network, etc.
[0065] In an embodiment of the present application, when an electronic device executes a text input processing method, the following steps are specifically performed: displaying a character input interface, the character input interface including at least one character combination key position; in response to a key input operation input by a user, determining a candidate text set corresponding to the key input operation, and displaying the candidate text set.
[0066] Exemplarily, the electronic device is installed with input method software. When the user inputs text through the input method software, the electronic device can obtain a candidate text set through the above text input processing method and display the candidate text set to the user.
[0067] The server 100 may be a single server device, such as a rack-mounted, blade, tower, or cabinet-mounted server device, or a workstation, mainframe computer, or other hardware device with strong computing power; or it may be a server cluster composed of a plurality of servers, wherein each server in the service cluster may be symmetrically composed, wherein each server has equivalent functions and status in the transaction link, and each server may independently provide services to the outside, and the independent service may be understood as requiring no assistance from another server.
[0068] In the embodiment of the present application, the server 100 may specifically be a background server of the input method software.
[0069] In some embodiments, the server 100 may establish a communication connection with at least one client in the client cluster, and the data interaction in the text screening process is completed based on the communication connection. For example, the electronic device determines the candidate text set corresponding to the key input operation in response to the key input operation input by the user, which may be: the electronic device sends the key input operation input by the user to the server, the server determines the candidate text set based on the key input operation and feeds the candidate text set back to the electronic device, and the electronic device displays the candidate text set.
[0070] In some other embodiments, the candidate character set may also be determined by the electronic device (without the need for determination by the server), and then the electronic device displays the candidate character set.
[0071] It should be noted that the server 100 and at least one client in the client cluster establish a communication connection through a network for interactive communication, wherein the network may be a wireless network or a wired network, the wireless network includes but is not limited to a cellular network, a wireless local area network, an infrared network or a Bluetooth network, and the wired network includes but is not limited to an Ethernet, a universal serial bus (USB) or a controller local area network. In one or more embodiments of the specification, technologies and / or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. are used to represent data (such as a target compressed package) exchanged through a network. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec), etc. may be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies may also be used to replace or supplement the above data communication technologies.
[0072] In one embodiment, Figure 2 As shown, a text input processing method is proposed, which can be implemented by a computer program and can be run on a text input processing device based on the von Neumann system. The computer program can be integrated into an application or run as an independent tool application.
[0073] Specifically, the execution subject of the text input processing method is an electronic device, and the text input processing method includes:
[0074] S202, displaying a character input interface.
[0075] Among them, the character input interface includes at least one character combination key position.
[0076] The character input interface refers to the user interface provided by the input method software when the user calls the input method software to input text. The character input interface includes multiple virtual keys, each virtual key is configured with a character, some virtual key positions can be configured with one character, and some virtual key positions can be configured with multiple characters. For a virtual key position configured with one character, the character configured on the virtual key position may include any one of letters, numbers, strokes, and punctuation marks. For a virtual key position configured with multiple characters, the characters on the virtual key position may include at least two of letters, numbers, strokes, and punctuation marks.
[0077] In the embodiment of the present application, a character combination key position refers to a virtual key position configured with at least two letters. It is understandable that the input method software has a variety of text input methods. When different text input methods are used for text input, the meanings of the characters input through the character combination key positions are also different. For example, taking the pinyin input method as an example, the characters input through the character combination key positions when the pinyin input method is used for text input are pinyin characters. For another example, taking the Wubi input method as an example, the characters input through the character combination key positions when the Wubi input method is used for text input are radical characters.
[0078] In some embodiments, a text input operation input by a user may be received, and in response to the text input operation, a character input interface including at least one character combination key position is displayed to the user, wherein the text input operation refers to an operation of calling input method software to input text.
[0079] For example, see Figure 3 A schematic diagram of a virtual keyboard displayed in a character interface is shown in FIG. Figure 3 In the virtual keyboard shown, there are 18 virtual keys for inputting text, including 8 character combination keys, specifically: key "WE", key "RT", key "IO", key "SD", key "FG", key "JK", key "XC", key "BN". For a character combination key configured with two letters, the user can select a letter from the character combination key for input by single-clicking or double-clicking, or the user can select a letter from the character combination key for input by sliding left, right, up, or down after clicking the key.
[0080] For example, see Figure 4 FIG. 1 is a schematic diagram of another virtual keyboard displayed in a character interface. Figure 4 In the virtual keyboard shown, there are a total of 14 virtual keys for inputting text, including 12 character combination keys, specifically: key "QW", key "ER", key "TY", key "UI", key "AS", key "DF", key "GH", key "JK", key "ZX", key "CV" and key "BN".
[0081] It is understandable that the above Figure 3 and Figure 4 The number of character combination key positions shown is for illustration only, and the embodiment of the present application does not impose any specific limitation on the number of character combination key positions.
[0082] S204, in response to a key input operation input by the user, determining a candidate character set corresponding to the key input operation, and displaying the candidate character set.
[0083] Among them, the key input operation refers to the operation of inputting one or more virtual keys in the character display interface. The virtual key input by the key input operation can be at least one character combination key. The virtual key input by the key input operation can also be a non-character combination key, such as a virtual key configured with a single character, a virtual key configured with a number and a letter, a virtual key configured with a letter and a punctuation mark, a virtual key configured with a number and a punctuation mark, a virtual key configured with multiple punctuation marks, and the like.
[0084] The candidate character set refers to a set of candidate characters that match the characters indicated by the virtual key positions input through the key input operation. For example, when the Pinyin input mode is used for input, the characters indicated by the virtual key positions input through the key input operation are Pinyin characters, and the candidate character set includes candidate characters that match the Pinyin characters. For another example, when the Wubi input mode is used for input, the characters indicated by the virtual key positions input through the key input operation are radical characters, and the candidate character set includes candidate characters that match the radical characters.
[0085] In some embodiments, a key input operation input by a user may be received, and in response to the key input operation, a target character corresponding to the key input operation may be obtained, a candidate text set for the target character may be determined, and the candidate text set may be displayed. The target character is the character indicated by the virtual key position input by the key input operation, and the number of target characters may be one or more. When the key input operation is an operation for multiple virtual key positions, the number of target characters is multiple, wherein the multiple virtual key positions may include the same key position or different key positions; when the key input operation is an operation for one virtual key position, the number of target characters is one.
[0086] Specifically, obtaining the target character corresponding to the key input operation can be understood as follows: when the virtual key input by the key input operation includes a character combination key, a target letter selected by the key input operation from at least two letters configured by the character combination key can be determined as the target character. When the virtual key input by the key input operation includes a virtual key configured with a single character, the single character configured by the virtual key can be determined as the target character.
[0087] Specifically, determining a candidate character set for a target character can be understood as: when the target character is a pinyin character, determining a candidate character having the pinyin indicated by the pinyin character, and determining a candidate character set including the candidate character; when the target character is a root character, determining a candidate character having the root structure indicated by the root character, and determining a candidate character set including the candidate character.
[0088] Specifically, the method of displaying the candidate character set may be: displaying the candidate character set in the character display area in the character input interface. It is understandable that the number of all candidate characters in the candidate character set may be less than a preset number threshold, the number of all candidate characters in the candidate character set may also be equal to the preset number threshold, and the number of all candidate characters in the candidate character set may also be greater than the preset number threshold, wherein the preset number threshold is the maximum number of characters that can be displayed in the character display area. In a scenario where the number of all candidate characters in the candidate character set is greater than the preset number threshold, a sliding display method may be used to display the candidate character set. At this time, a slider control may be configured in the character display area. When a user performs a touch operation on the slider control, the candidate characters in the candidate character set may be switched to be displayed in the character display area. When no user performs a touch operation on the slider control, some of the candidate characters in the candidate character set are kept displayed in the character display area, and the number of some of the candidate characters is equal to the preset number threshold. In a scenario where the number of all candidate characters in the candidate character set is greater than a preset threshold number, the candidate character set can also be displayed in an expanded list manner. At this time, an expanded list control can be configured in the character display area. When a user performs a touch operation on the expanded list control, the area of the character display area can be increased to display the candidate character set in the form of a list. When no user performs a touch operation on the expanded list control, some candidate characters in the candidate character set continue to be displayed in the character display area, and the number of some candidate characters is equal to the preset threshold number.
[0089] The text input processing method provided by the embodiment of the present application facilitates the user to select a character combination key position for input by displaying a character input interface including at least one character combination key position, and then, in response to the key position input operation input by the user, determines a candidate text set corresponding to the key position input operation, and displays the candidate text set. Since a character combination key position is a key position where several characters are combined together, the character combination key position has a larger key area than a single character key position, which can reduce the false touch rate of the user accidentally touching the wrong key position when typing, thereby improving the key position input efficiency of the user when typing.
[0090] See next Figure 5 , Figure 5It is a flowchart of another embodiment of a text input processing method proposed in this application.
[0091] Specifically, the execution subject of the text input processing method is an electronic device, and the text input processing method includes:
[0092] S502, displaying a character input interface.
[0093] Specifically, the implementation of step S502 can be found in Figure 2 The description of the relevant parts in the illustrated embodiment will not be repeated here.
[0094] Optionally, before executing step S502, or before executing the text input processing method provided by the embodiment of the present application, character combination key positions may be configured. The method for configuring character combination key positions may specifically include the following steps:
[0095] A2: determining at least one set of key character sets from all basic characters, and determining key layout positions corresponding to the key character sets;
[0096] The basic characters include 26 English letters. The key character set may include at least two letters, and the key character set is used to configure the character combination key. The key layout position refers to the position of the virtual key configured with all the letters in the key character set in the virtual keyboard.
[0097] Specifically, determining at least one group of key character sets from all basic characters can be: determining a candidate key character set from all basic characters, determining a statistical click frequency corresponding to the candidate key character set; and selecting a target number of key character sets from the candidate key character set based on the frequency order of the statistical click frequency.
[0098] Among them, the candidate key position character set can be a set consisting of two letters located in adjacent positions selected from a preset character sequence, and the preset character sequence can refer to a character sequence consisting of 26 keyboard letters, such as the preset character sequence can be a character sequence consisting of 26 keyboard letters using the QWERTY keyboard layout, and the preset character sequence can also be a character sequence consisting of 26 keyboard letters using the Dvorak layout, Colemak layout or Azerty layout. Taking the 26 keyboard letters of the QWERTY keyboard layout as an example, usually, QWERTYUIOP is a group of character sequences, ASDFGHJKL is a group of character sequences, and ZXCVBNM is a group of character sequences. In the above three groups of character sequences, any two adjacent letters can be combined to obtain multiple candidate key position character sets.
[0099] The statistical click frequency refers to the probability that two or more letters in the candidate key character set are input as adjacent letters when inputting text. The statistical click frequency can be obtained based on a large amount of text input data.
[0100] A target number of key character sets are selected from the candidate key character sets in order of frequency based on the statistical click frequencies. Specifically, the candidate key character sets corresponding to the target number of statistical click frequencies are determined as the key character sets in the statistical click frequencies from low to high.
[0101] A4: The character combination key positions are configured in the character input interface based on the key character set and the key layout position.
[0102] Specifically, a character combination key position for displaying all letters in a key position character set may be generated, and the character combination key position may be configured at a key position layout position in a character input interface.
[0103] Therefore, by configuring letter combinations with relatively low click frequencies in the same virtual key position, the touch area of the virtual key position is increased, and the key position mis-touch rate can be reduced.
[0104] S504: In response to a key input operation input by the user, obtain at least one target key corresponding to the key input operation, and determine a target character sequence corresponding to all target key positions.
[0105] It is understandable that the target key refers to the virtual key input by the key input operation. The target key can be any one of a character combination key, a virtual key configured with a single character, a virtual key configured with a number and a letter, and a virtual key configured with a letter and a punctuation mark.
[0106] In some embodiments, determining the target character sequences corresponding to all target key positions may include the following steps:
[0107] B2: If there is a character combination key position in the target key position, character combination is performed based on all target key positions to obtain at least one candidate character sequence, and a target character sequence is selected from the candidate character sequence;
[0108] When executing step B2, a feasible implementation method includes the following steps:
[0109] b2: obtaining first user operation information corresponding to each target key position, determining a selected character of the target key position from a key character set corresponding to the target key position based on the first user operation information, generating a candidate character sequence based on all the selected characters of the target key positions, and using the candidate character sequence as the target character sequence; or,
[0110] b4: performing character combination based on the key character sets corresponding to all target key positions to obtain at least two candidate character sequences, displaying at least two candidate character sequences to the user, and determining the target character sequence selected by the user.
[0111] In step b2, the first user operation information refers to the key input operation information of the user when inputting each target key position. When the target key position input by the user is a character combination key position, the first user operation information can indicate a character selected from multiple letters configured by the user in the character combination key position. When the single letter key position input by the user is a single letter key position, the first user operation information can indicate the letter character configured in the single letter key position. It can be understood that when the user selects a character from multiple letters configured in the character combination key position, it is specifically an operation of sliding left to select a character after clicking or pressing the character combination key position, an operation of sliding right to select a character after clicking or pressing the character combination key position, an operation of sliding up to select a character after clicking or pressing the character combination key position, an operation of sliding down to select a character after clicking or pressing the character combination key position, an operation of single-clicking to select the first character in the character combination key position and a double-clicking to select the second character in the character combination key position, or an operation of pressing for a short time to select the first character in the character combination key position and a long time to select the second character in the character combination key position.
[0112] It can also be understood that the first user operation information may not indicate a certain character selected by the user from the multiple letters configured in the character combination key position. The electronic device automatically determines the character that the user expects to input (i.e., the character selected by the target key position) based on the multiple letters configured in the character combination key position clicked by the user. For example, taking the character combination key position "SD" as an example, a user clicking the key position "SD" once can indicate inputting the letter character "S" or the letter character "D". As for which character "S" and "D" is input by clicking the key position "SD" once, it can be determined based on the candidate ranking of "S" and "D", and the candidate ranking of "S" and "D" can be determined based on the ranking of the frequencies of selection of related phrases in the vocabulary. For example, the frequency of selection of the phrase consisting of the letter character configured in the key position input by the user before clicking the key position "SD" once and "S" in the vocabulary is a first frequency, and the frequency of selection of the phrase consisting of the letter character configured in the key position input by the user before clicking the key position "SD" once and "D" in the vocabulary is a second frequency. If the first frequency is greater than the second frequency, then when clicking the key position "SD" once, the candidate ranking of "S" can be set before the candidate ranking of "D", and then the letter character "S" is the character that the user expects to input by clicking the key position "SD" once. For another example, when the first user operation information instructs the user to configure a character selected from multiple letters in the character combination key position, taking the character combination key position "SD" as an example, the user can also input the letter character "S" by pressing and then swiping left, and input the letter character "D" by pressing and then swiping right.
[0113] The key position character set includes all the alphabetic characters configured in the target key position. For a certain target key position that is a character combination key position, the key position character set corresponding to the target key position includes all the alphabetic characters configured in the character combination key position, and the target key position selected character selected by the user can be determined from the key position character set based on the first user operation information. For a certain target key position that is a single letter key position, the key position character set corresponding to the target key position includes the single letter character configured in the single letter key position, and the target key position selected character determined from the key position character set based on the first user operation information is the single letter character. For example, the alphabetic characters configured in a certain letter combination key position are "SD", and the first user operation information records: the user selected the alphabetic character "S" from the key position "SD", then it can be determined that the target key position selected character is "S". For another example, the alphabetic characters configured in a certain single letter key position are "A", and the first user operation information records: the user entered the key position "A", then it can be determined that the target key position selected character is "A".
[0114] It is understandable that each target key position can determine a target key position selected character, and a candidate character sequence including all target key position selected characters can be generated according to the key position input order of the target key position, and the candidate character sequence is used as the target character sequence. Among them, the target character sequence is the same as the candidate character sequence, and the arrangement order of each target key position selected character in the candidate character sequence is the same as the key position input order of the target key position corresponding to each target key position selected character. For example, at least one target key position corresponding to the key position input operation includes: key position "SD", key position "A", key position "I", key position "SD" is the first input key position, key position "A" is the second input key position, key position "I" is the third input key position, and the target key position selected character corresponding to key position "SD" is "S", and the generated candidate character sequence can be {S, A, I}.
[0115] Therefore, when there is a character combination key at the target key position, the user can select a desired letter from the multiple letters configured in the character combination key position when inputting the character combination key position, which provides convenience for the user to input the letters configured in the character combination key position configuration.
[0116] In step b4, a candidate character is selected from each key position character set, and a candidate character sequence including all candidate characters is generated according to the key position input order of the target key position corresponding to each candidate character, and any two candidate character sequences are different character sequences. For example, at least one target key position corresponding to the key position input operation includes: key position "SD", key position "IO", key position "U", key position "SD" is the first input key position, key position "IO" is the second input key position, and key position "U" is the third input key position, and the generated candidate character sequence includes: {S, I, U}, {D, I, U}, {S, O, U}, {D, O, U}.
[0117] Therefore, the user does not need to select a letter from the multiple letters configured in the character combination key position for input when inputting the character combination key position. After the user enters all the target key positions, all possible candidate character sequences can be displayed to the user, and the user can select the target character sequence from the candidate character sequences.
[0118] When executing step B2, another feasible implementation may include the following steps:
[0119] c2: performing character combination based on the key character set corresponding to all target key positions to obtain at least two candidate character sequences; c4: obtaining the input text, determining the associated text corresponding to the input text, and performing sequence matching on at least two candidate character sequences based on the associated text to obtain the target character sequence; or,
[0120] c2: Perform character combination based on the key character set corresponding to all target key positions to obtain at least two candidate character sequences; c6: Determine the character sequence composition probability corresponding to each candidate character sequence, and select the target character sequence based on the character sequence composition probability.
[0121] In step c2, a candidate character is selected from each key character set, and a candidate character sequence including all candidate characters is generated according to the key input order of the target key corresponding to each candidate character, and any two candidate character sequences are different character sequences.
[0122] In step c4, the input text refers to the text input in the text input box, and the input text may include the characters input in the text input box. Associative text refers to the text that may form a context with the input text obtained by performing text association processing on the input text, and the association means used in the text association processing may include big data association, user preference association, phrase association, two-part allegorical saying association, idiom association, etc. When the pinyin input method is used to input text, the target character sequence can be matched from at least two candidate character sequences by the pinyin of the first character in the associative text. When the Wubi input method is used to input text, the target character sequence can be matched from at least two candidate character sequences by the root structure of the first character in the associative text.
[0123] Therefore, through context association of the input text, the target character sequence is automatically determined according to the character combination key positions input by the user. The user does not need to specifically select the desired letters from the character combination key positions for input. This can reduce the user's error rate when typing and provide convenience for the user to input text.
[0124] In step c6, the character sequence composition probability refers to the probability that the candidate character sequence constitutes pinyin. The range of Chinese character quantity corresponding to each candidate character sequence can be determined, and the range of Chinese character quantity refers to the range of the number of Chinese characters corresponding to the pinyin constituted by the candidate character sequence. The character sequence composition probability corresponding to each candidate character sequence is determined based on the range of Chinese character quantity corresponding to each candidate character sequence, wherein the Chinese characters corresponding to the pinyin constituted by the candidate character sequence refer to the Chinese characters having the pinyin constituted by the candidate character sequence. For a candidate character sequence with a larger number of Chinese characters covered by the range of Chinese character quantity, the corresponding character sequence composition probability is also larger. For example, for a candidate character sequence with a Chinese character quantity range of 0, the corresponding character sequence composition probability is 0. Selecting a target character sequence based on the character sequence composition probability can specifically be: taking the candidate character sequence with the largest character sequence composition probability as the target character sequence. For example, all target key positions are: key position "WE" and key position "IO", and the subsequent character sequences they constitute include: {W, O}, {W, I}, {E, O}, {E, I}. It can be determined that the character composition probability corresponding to {W, O} is the largest, and the character composition probability corresponding to {E, I} is the second largest. The character composition probability corresponding to {W, I} and the character composition probability corresponding to {E, O} are both 0. Therefore, {W, O} can be determined as the target character sequence.
[0125] Therefore, the target character sequence is automatically determined from the candidate character sequence according to the character combination key positions input by the user through the character sequence composition probability. The user does not need to specifically select the desired letters from the character combination key positions for input. This can reduce the user's error rate when typing and provide convenience for the user to input text.
[0126] B4: If the target key position does not contain a character combination key position, the character combinations corresponding to all target key positions are taken as the target character sequence.
[0127] In step B4, when there are no character combination keys in the target key positions, it means that the target key positions are all single letter keys, and the letters configured in each target key position are combined according to the key input order of each target key position to obtain the character combinations corresponding to all target key positions, and the character combinations corresponding to all target key positions are used as the target character sequence.
[0128] S506, performing candidate character matching processing based on the target character sequence to obtain a candidate character set.
[0129] In some embodiments, when the target character sequence constitutes a pinyin character, a candidate character having the pinyin indicated by the pinyin character is determined from the word library, and a candidate character set including the candidate character is generated. When the target character sequence constitutes a root character, a candidate character having the root structure indicated by the root character is determined from the word library, and a candidate character set including the candidate character is generated.
[0130] S508, displaying a candidate character set.
[0131] In some embodiments, when displaying a set of candidate characters, the candidate characters in the set of candidate characters are displayed according to the priority corresponding to the candidate characters, wherein the priority can be comprehensively determined based on factors such as the number of historical input times of the candidate characters and the degree of obscurity of the candidate characters. The embodiments of the present application do not impose specific restrictions on the factors for determining the priority.
[0132] In the text input processing method provided in the embodiment of the present application, a character input interface is displayed, the character input interface includes at least one character combination key position, in response to a key position input operation input by a user, at least one target key position corresponding to the key position input operation is obtained, a target character sequence corresponding to all target key positions is determined, candidate text matching processing is performed based on the target character sequence to obtain a candidate text set, and the candidate text set is displayed. Thus, by configuring multiple letters on the same virtual key position, the contact area of the character combination key position is increased, the false touch rate of the user accidentally touching the wrong key position when typing can be reduced, and the key position input efficiency of the user when typing can be improved.
[0133] The following will be combined Figure 6 , the text input processing device provided in the embodiment of the present application is introduced in detail. It should be noted that, Figure 6 The text input processing device shown is used to execute the present application Figure 1 to Figure 5 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 1 to Figure 5 The embodiment shown.
[0134] See also Figure 6 , which shows a schematic diagram of the structure of the text input processing device of an embodiment of the present application. The text input processing device 1 can be implemented as all or part of the device through software, hardware or a combination of both. According to some embodiments, the text input processing device 1 includes a character display module 11 and a text display module 12, which are specifically used to:
[0135] The character display module 11 is used to display a character input interface, wherein the character input interface includes at least one character combination key position;
[0136] The text display module 12 is used to respond to a key input operation input by a user, determine a candidate text set corresponding to the key input operation, and display the candidate text set.
[0137] Optionally, the text display module 12 includes:
[0138] A character sequence determination unit, configured to, in response to a key position input operation input by a user, obtain at least one target key position corresponding to the key position input operation, and determine a target character sequence corresponding to all the target key positions;
[0139] The candidate character matching unit is used to perform candidate character matching processing based on the target character sequence to obtain a candidate character set.
[0140] Optionally, the character sequence determination unit includes:
[0141] A first character sequence determination unit is configured to, if there is a character combination key position in the target key position, obtain at least one candidate character sequence by performing character combination based on all the target key positions, and select a target character sequence from the candidate character sequences;
[0142] The second character sequence determination unit is configured to take the character combinations corresponding to all the target key positions as the target character sequence if there is no character combination key position in the target key position.
[0143] Optionally, the first character sequence determination unit is specifically configured to:
[0144] Acquire the first user operation information corresponding to each of the target key positions, determine the target key position selected character from the key position character set corresponding to the target key position based on the first user operation information, generate a candidate character sequence based on all the target key position selected characters, and use the candidate character sequence as the target character sequence; or,
[0145] Based on the key position character sets corresponding to all the target key positions, character combinations are performed to obtain at least two candidate character sequences, the at least two candidate character sequences are displayed to the user, and the target character sequence selected by the user is determined.
[0146] Optionally, the first character sequence determination unit is specifically configured to:
[0147] Combining characters based on the key character sets corresponding to all the target key positions to obtain at least two candidate character sequences;
[0148] Acquire the input text, determine the associative text corresponding to the input text, and perform sequence matching on the at least two candidate character sequences based on the associative text to obtain a target character sequence; or determine the character sequence composition probability corresponding to each of the candidate character sequences, and select the target character sequence based on the character sequence composition probability.
[0149] Optionally, the text input processing device 1 further includes:
[0150] A key character determination module, used to determine at least one set of key character sets from all basic characters, and determine the key layout position corresponding to the key character set;
[0151] A character key configuration module is used to configure character combination key positions in a character input interface based on the key character set and the key layout position.
[0152] Optionally, the key character determination module includes:
[0153] A character statistics unit, used to determine a candidate key position character set from all basic characters, and determine a statistical click frequency corresponding to the candidate key position character set;
[0154] The character selection unit is used to select a target number of key position character sets from the candidate key position character sets in order of frequency according to the statistical click frequency.
[0155] The text input processing device provided by the embodiment of the present application displays a character input interface including at least one character combination key position, so that the user can select a character combination key position for input, and then, in response to the key position input operation input by the user, determines the candidate text set corresponding to the key position input operation, and displays the candidate text set. Since the character combination key position is a key position where several characters are combined together, the character combination key position has a larger key area than the single character key position, which can reduce the false touch rate of the user accidentally touching the wrong key position when typing, thereby improving the key position input efficiency of the user when typing.
[0156] Please refer to Figure 7 , Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Exemplarily, the electronic device in the embodiment of the present application may be a server, and the electronic device may include one or more of the following components: a processor 110, a memory 120, an input device 130, an output device 140, and a bus 150. The processor 110, the memory 120, the input device 130, and the output device 140 may be connected via the bus 150.
[0157] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.
[0158] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 120 includes a non-transitory computer-readable storage medium. The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (e.g., a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The operating system may be an Android system, including a system deeply developed based on the Android system, an IOS system developed by Apple, including a system deeply developed based on the IOS system or other systems.
[0159] In order for the operating system to distinguish the specific application scenarios of third-party applications, it is necessary to open up data communication between third-party applications and the operating system so that the operating system can obtain the current scenario information of third-party applications at any time, and then perform targeted system resource adaptation based on the current scenario.
[0160] The input device 130 is used to receive input commands or data, and includes but is not limited to a keyboard, a mouse, a camera, a microphone, or a touch device. The output device 140 is used to output commands or data, and includes but is not limited to a display device and a speaker. In one example, the input device 130 and the output device 140 can be combined, and the input device 130 and the output device 140 are touch screen displays.
[0161] The touch display screen can be designed as a full screen, a curved screen or a special-shaped screen. The touch display screen can also be designed as a combination of a full screen and a curved screen, or a combination of a special-shaped screen and a curved screen, which is not limited in the embodiments of the present application.
[0162] In addition, those skilled in the art will appreciate that the structure of the electronic device shown in the above drawings does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the electronic device also includes a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (WiFi) module, a power supply, a Bluetooth module and other components, which will not be described in detail here.
[0163] exist Figure 7 In the electronic device shown, the processor 110 can be used to call the program of the text input processing method stored in the memory 120, and specifically perform the following operations:
[0164] Displaying a character input interface, wherein the character input interface includes at least one character combination key position;
[0165] In response to a key input operation input by a user, a candidate character set corresponding to the key input operation is determined, and the candidate character set is displayed.
[0166] In some embodiments, when the processor 110 performs the step of determining a candidate character set corresponding to the key input operation in response to the key input operation input by the user, the processor 110 specifically performs the following operations:
[0167] In response to a key input operation input by a user, obtaining at least one target key corresponding to the key input operation, and determining a target character sequence corresponding to all the target key;
[0168] A candidate character matching process is performed based on the target character sequence to obtain a candidate character set.
[0169] In some embodiments, when the processor 110 executes the step of determining the target character sequence corresponding to all the target key positions, the processor 110 specifically performs the following operations:
[0170] If there is a character combination key position in the target key position, then at least one candidate character sequence is obtained by performing character combination based on all the target key positions, and a target character sequence is selected from the candidate character sequence;
[0171] If there is no character combination key in the target key position, the character combinations corresponding to all the target key positions are taken as the target character sequence.
[0172] In one embodiment, when the processor 110 performs the step of obtaining at least one candidate character sequence by combining characters based on all the target key positions and selecting a target character sequence from the candidate character sequence, the processor 110 specifically performs the following operations:
[0173] Acquire the first user operation information corresponding to each of the target key positions, determine the target key position selected character from the key position character set corresponding to the target key position based on the first user operation information, generate a candidate character sequence based on all the target key position selected characters, and use the candidate character sequence as the target character sequence; or,
[0174] Based on the key position character sets corresponding to all the target key positions, character combinations are performed to obtain at least two candidate character sequences, the at least two candidate character sequences are displayed to the user, and the target character sequence selected by the user is determined.
[0175] In some embodiments, when the processor 110 performs the step of obtaining at least one candidate character sequence by combining characters based on all the target key positions and selecting a target character sequence from the candidate character sequence, the processor 110 specifically performs the following operations:
[0176] Combining characters based on the key character sets corresponding to all the target key positions to obtain at least two candidate character sequences;
[0177] Acquire the input text, determine the associative text corresponding to the input text, and perform sequence matching on the at least two candidate character sequences based on the associative text to obtain a target character sequence; or determine the character sequence composition probability corresponding to each of the candidate character sequences, and select the target character sequence based on the character sequence composition probability.
[0178] In some embodiments, the processor 110 further performs the following operations:
[0179] Determine at least one set of key character sets from all basic characters, and determine key layout positions corresponding to the key character sets;
[0180] Character combination keys are configured in a character input interface based on the key character set and the key layout position.
[0181] In some embodiments, the processor 110 performs the following operations during the step of determining at least one set of key character sets from all basic characters:
[0182] Determine a candidate key position character set from all basic characters, and determine a statistical click frequency corresponding to the candidate key position character set;
[0183] A target number of key character sets are selected from the candidate key character sets in order of frequency based on the statistical click frequency.
[0184] An embodiment of the present application further provides a computer-readable storage medium, which stores at least one instruction, and the at least one instruction is used to be executed by a processor to implement the text input processing method as described in the above embodiments.
[0185] An embodiment of the present application further provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the text input processing method described in the above embodiments.
[0186] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.
[0187] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A text input processing method, characterized in that: The method comprises: Displaying a character input interface, wherein the character input interface includes at least one character combination key position; In response to a key input operation input by a user, a candidate character set corresponding to the key input operation is determined, and the candidate character set is displayed.
2. The method according to claim 1, characterized in that The step of determining, in response to a key input operation input by a user, a candidate character set corresponding to the key input operation comprises: In response to a key input operation input by a user, obtaining at least one target key corresponding to the key input operation, and determining a target character sequence corresponding to all the target key; A candidate character matching process is performed based on the target character sequence to obtain a candidate character set.
3. The method according to claim 2, characterized in that The step of determining the target character sequence corresponding to all the target key positions includes: If there is a character combination key position in the target key position, then at least one candidate character sequence is obtained by performing character combination based on all the target key positions, and a target character sequence is selected from the candidate character sequence; If there is no character combination key in the target key position, the character combinations corresponding to all the target key positions are taken as the target character sequence.
4. The method according to claim 3, characterized in that The step of obtaining at least one candidate character sequence by combining characters based on all the target key positions and selecting a target character sequence from the candidate character sequence comprises: Acquire the first user operation information corresponding to each of the target key positions, determine the target key position selected character from the key position character set corresponding to the target key position based on the first user operation information, generate a candidate character sequence based on all the target key position selected characters, and use the candidate character sequence as the target character sequence; or, Based on the key position character sets corresponding to all the target key positions, character combinations are performed to obtain at least two candidate character sequences, the at least two candidate character sequences are displayed to the user, and the target character sequence selected by the user is determined.
5. The method according to claim 3, characterized in that: The step of obtaining at least one candidate character sequence by combining characters based on all the target key positions and selecting a target character sequence from the candidate character sequence comprises: Combining characters based on the key character sets corresponding to all the target key positions to obtain at least two candidate character sequences; Acquire the input text, determine the associative text corresponding to the input text, and perform sequence matching on the at least two candidate character sequences based on the associative text to obtain a target character sequence; or determine the character sequence composition probability corresponding to each of the candidate character sequences, and select the target character sequence based on the character sequence composition probability.
6. The method according to claim 1, characterized in that The method further comprises: Determine at least one set of key character sets from all basic characters, and determine key layout positions corresponding to the key character sets; Character combination keys are configured in a character input interface based on the key character set and the key layout position.
7. The method according to claim 6, characterized in that The step of determining at least one set of key position character sets from all basic characters includes: Determine a candidate key position character set from all basic characters, and determine a statistical click frequency corresponding to the candidate key position character set; A target number of key character sets are selected from the candidate key character sets in order of frequency based on the statistical click frequency.
8. A text input processing device, characterized in that: The device comprises: A character display module, used for displaying a character input interface, wherein the character input interface includes at least one character combination key position; The text display module is used to respond to a key input operation input by a user, determine a candidate text set corresponding to the key input operation, and display the candidate text set.
9. A computer storage medium, characterized in that The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Method used for inputting text into electronic device
CN103135787A
Handheld electronic device having improved display and selection of disambiguation choices, and associated method
US20060202866A1