WO2022083750A1 - 文字显示方法、装置和电子设备 - Google Patents
文字显示方法、装置和电子设备 Download PDFInfo
- Publication number
- WO2022083750A1 WO2022083750A1 PCT/CN2021/125786 CN2021125786W WO2022083750A1 WO 2022083750 A1 WO2022083750 A1 WO 2022083750A1 CN 2021125786 W CN2021125786 W CN 2021125786W WO 2022083750 A1 WO2022083750 A1 WO 2022083750A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- candidate word
- input
- target
- user
- candidate
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 81
- 230000011218 segmentation Effects 0.000 claims abstract description 97
- 230000004044 response Effects 0.000 claims abstract description 29
- 238000004891 communication Methods 0.000 claims abstract description 8
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 8
- 230000000694 effects Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 2
- 238000000926 separation method Methods 0.000 description 2
- 241000699670 Mus sp. Species 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements 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/0233—Character input methods
- G06F3/0236—Character input methods using selection techniques to select from displayed items
Definitions
- the present application belongs to the field of electronic technology, and specifically relates to a text display method, device and electronic device.
- each character such as pinyin
- the electronic device will display the characters in sequence according to the frequency of use of the multiple candidate characters corresponding to the character.
- the user needs to input some rare words, if the rare word does not exist in the thesaurus, the user needs to input each character in the rare word in turn before the rare word can be input. For example, when the user wants to output the name "Meng Jingbi", he will type in the full spelling of "Meng Jingbi".
- the three characters "Meng”, “Jing” and “Bi” can be found from the candidate words corresponding to each pinyin in turn, and then the name "Meng Jingbi" can be output.
- the user when the user wants to input text, if the text is not displayed on the first page of the candidate word, in order to improve the efficiency of text input, the user can choose the method of inputting a phrase containing the text, enter the phrase, and then delete the unnecessary words in the phrase. text to output the text.
- the user since the word "Meng" is not displayed on the first page of the candidate words in the pinyin "meng", the user can choose to input the pinyin of "Mengzi”, and select the phrase “Mencius” in the first page of the candidate words in the pinyin, and then delete The word “Zi” in the phrase “Mencius” can be obtained as "Meng".
- the purpose of the embodiments of the present application is to provide a text display method, device and electronic device, which can solve the problem of low text input efficiency in the text input process.
- an embodiment of the present application provides a text display method, the method includes: in the case of displaying a first candidate word, receiving a user's first input for the first candidate word; in response to the above-mentioned first input, displaying The first candidate word is segmented, and N first candidate word segments are obtained, where N is a positive integer greater than 1; the second input from the user for the target first candidate word segment of the N first candidate word segments is received; in response to the second input, in the The text input box displays the target first candidate word segmentation.
- an embodiment of the present application provides a text display device, the device includes: a display module, a processing module, and a receiving module: the above-mentioned receiving module is configured to receive a user's response to the first candidate word when the first candidate word is displayed.
- the first input of the candidate word; the above-mentioned processing module is used to perform word segmentation on the first candidate word in response to the first input received by the receiving module to obtain N first candidate word segmentations, where N is a positive integer greater than 1; the above-mentioned receiving The module is also used to receive the second input of the target first candidate word segmentation of the N first candidate word segmentations obtained by the processing module from the user; the above-mentioned display module is used to respond to the second input received by the receiving module, in the text input box Display the target first candidate participle.
- an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, the program or instruction being executed by the processor When executed, the steps of the method as described above in the first aspect are implemented.
- an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method in the first aspect are implemented.
- an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used for running programs or instructions to implement the method as described in the first aspect.
- the electronic device in the case of displaying the first candidate word, after the electronic device receives the first input of the first candidate word by the user, the electronic device can perform a word segmentation operation on the first candidate word, thereby obtaining the Nth A candidate word segment. In this way, after the electronic device receives the second input from the user on the target first candidate word segment among the above N first candidate word segments, it can display the target first candidate word segment on the screen. In this way, by performing the word segmentation operation on the candidate words, the user can select the part of the candidate words that he wants to display on the screen, and the text that needs to be input in the candidate words can be displayed on the screen without the user moving the cursor to delete the unnecessary parts.
- the whole input process not only reduces the text operation process, saves the text input time, but also improves the text input efficiency.
- FIG. 2 is one of the schematic diagrams of a text display method provided by an embodiment of the present application.
- FIG. 3 is the second schematic diagram of a text display method provided by an embodiment of the present application.
- FIG. 5 is a fourth schematic diagram of a text display method provided by an embodiment of the present application.
- FIG. 6 is a schematic structural diagram of a text display device provided by an embodiment of the present application.
- FIG. 8 is a second schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
- first, second and the like in the description and claims of the present 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 data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between “first”, “second”, etc.
- the objects are usually of one type, and the number of objects is not limited.
- the first object may be one or more than one.
- “and/or” in the description and the claims indicates at least one of the connected objects, and the character “/" generally indicates that the contextual objects are in an "or” relationship.
- the text display method provided by the embodiment of the present application can be applied to various text input scenarios. Take a user chatting using a chat app as an example.
- the user when the user wants to input the word “competition” in the chat interface, the user forms a word for "competition”, and then enters the pinyin "jingsai" of "competition” in the text box, and in the pinyin Select the phrase “competition” on the candidate word homepage, and then press and hold the phrase “competition” to split the phrase “competition” into two words “competition” and “race”. Finally, the user clicks and selects "competition” on the screen show.
- the user can select the part of the candidate words that he wants to display on the screen, and the text that needs to be input in the candidate words can be displayed on the screen without the user moving the cursor to delete the unnecessary parts.
- the whole input process not only reduces the text operation process, saves the text input time, but also improves the text input efficiency.
- a text display method provided by an embodiment of the present application can be applied to an electronic device.
- the text display method can be executed by software or hardware installed in the electronic device.
- the text input method provided by this embodiment of the present application may include the following steps 201 to 204 .
- Step 201 In the case of displaying the first candidate word, the electronic device receives a first input of the first candidate word by the user.
- the above-mentioned first candidate word is a candidate word that is displayed after a user inputs a character using an input method and matches the input character.
- the first candidate word in the embodiment of the present application is the first-level candidate word corresponding to the input character (ie, the candidate word displayed on the home page, and the candidate word that does not need to be further expanded by the user).
- the above-mentioned first input is used to trigger the electronic device to perform a word segmentation operation on the first candidate word.
- the above-mentioned first input may be: a user's touch input on the first candidate word, or a specific gesture input by the user, which may be specifically set according to actual requirements.
- the above-mentioned touch input may be a user's long-press input on the first candidate word.
- the text when the user wants to input text that is used less frequently, the text is usually not displayed on the first page of the candidate word. Therefore, in order to improve the efficiency of text input, users usually form words for the text they want to input. If the text that the user wants to input and other words can form a phrase, the user enters the pinyin of the phrase to display the pinyin of the phrase. Corresponding to the candidate word (ie, the above-mentioned first candidate word), the user can then perform a first input on a phrase containing the text that the user wants to input, thereby triggering the electronic device to perform a word segmentation operation on the phrase.
- the candidate word ie, the above-mentioned first candidate word
- the user can input a single character according to a normal text display method, and then perform multi-level filtering to find the single character.
- Step 202 In response to the first input, obtain N first candidate word segmentations of the first candidate word.
- N is a positive integer greater than 1.
- the above-mentioned N first candidate word segments may include at least two candidate word segments.
- the above-mentioned N first candidate word segments may include at least two candidate words.
- the electronic device may perform word segmentation on the first candidate word to obtain N first candidate word segmentations.
- the electronic device when the electronic device performs word segmentation on the first candidate word, the following at least two word segmentation methods can be used.
- the electronic device may split the first candidate word according to the number of words in the first candidate word, for example, into multiple words.
- the electronic device may use a preset splitting unit (eg, one splitting unit includes a preset number of bytes) to split the first candidate word according to the byte length of the first candidate word.
- the electronic device may split the first candidate word into multiple candidate words. Specifically, since each Chinese character corresponds to two bytes, the electronic device can split the first candidate word according to two bytes as a splitting unit, thereby splitting a plurality of single characters.
- Example 1 when the first candidate word is "Mencius", the electronic device can split "Mencius” into “Mengzi” and "Zi” as a splitting unit of two bytes.
- the electronic device may use the language model to divide the first candidate word into multiple different segmented words.
- the language model can be used for recognition.
- the language model obtained after the above-mentioned language model is adaptively learned the language model may include: thesaurus, grammar rules, spelling rules, and the like. Specifically, the language model performs word segmentation on the first candidate word, and then, the language model performs a semantic check on each word obtained after word segmentation, and determines that there is a word segmentation in the first candidate word.
- Example 2 the above language model may determine the word semantics in the first candidate word in combination with the context of the first candidate word. For example, if the input text is "cut word”, the language model performs semantic analysis on “cut word”, and obtains “cut”, “word”, “cut word”, “cut”, “open”, “word” and “language” these participles.
- the electronic device may separately display the N first candidate word segments, or may display the N first candidate word segments as a whole (ie, the first candidate word is still displayed).
- Step 203 Receive a second input from the user for the target first candidate word segment in the above N first candidate word segments.
- the target first candidate word segment is at least one first candidate word segment among the N first candidate word segments.
- the above-mentioned second input is used to select the target first candidate word segment from the N first candidate word segments. It should be noted that, for the above second input, reference may be made to the description of the above first input, which will not be repeated here.
- the above-mentioned second input may be the click input of the user clicking the target first candidate word segment, or may be the user's sliding input on the N first candidate word segments.
- Step 204 In response to the second input, display the above-mentioned target first candidate word segmentation in the text input box.
- the electronic device may display the target first candidate word segmentation on the screen. It can be understood that displaying the target first candidate word segment on the screen by the electronic device refers to displaying the target candidate word segment in the text display box of the input method.
- the electronic device in the case of displaying the first candidate word, after the electronic device receives the first input of the first candidate word by the user, it can perform a word segmentation operation on the first candidate word, thereby obtaining There are N first candidate word segments.
- the electronic device receives the second input from the user on the target first candidate word segment among the above N first candidate word segments, it can display the target first candidate word segment on the screen.
- the user can select the part of the candidate words that he wants to display on the screen, and the text that needs to be input in the candidate words can be displayed on the screen without the user moving the cursor to delete the unnecessary parts.
- the whole input process not only reduces the text operation process, saves the text input time, but also improves the text input efficiency.
- the text display method provided in the embodiment of the present application may further include the following step 202a1:
- Step 202a1 Display the N first candidate word segmentations respectively.
- the second input is a selection input for the user to select the target first candidate word segmentation.
- the electronic device displays the foregoing first candidate word.
- the text display method provided by this embodiment of the present application may further include the following step 202b1:
- Step 202b1 Receive the user's sliding input on the first candidate word.
- the above-mentioned target first candidate word segmentation is: the candidate word segmentation at the position of the sliding end point corresponding to the sliding input.
- the target first candidate word segmentation is determined by sliding input on the first candidate word, which improves the human-computer interaction performance.
- the text display method provided by the embodiment of the present application may further include the following steps 301 to 303:
- Step 301 In response to the above-mentioned second input, cancel the display of the target first candidate word segment, and display M second candidate word segments.
- the M second candidate word segments include: other first candidate word segments except the target first candidate word segment among the N first candidate word segments.
- Step 302 Receive a third input from the user for the target second candidate word segmentation of the M second candidate word segmentations.
- the target second candidate word segment is at least one second candidate word segment among the M second candidate word segments.
- Step 303 In response to the third input, the above-mentioned target second candidate word segmentation is displayed on the screen.
- the electronic device may not perform the remaining word segmentation in the first candidate word except the target first candidate word segmentation. Instead, the M second candidate word segments in the first candidate words except the target first candidate word segment are retained, and the user is allowed to continue to select the target second candidate selection word to be displayed on the screen again.
- the user is also allowed to select the candidate word that needs to be displayed on the screen again, thereby reducing the user's multiple input and word segmentation, and further improving the text input efficiency.
- the electronic device will clear the previously reserved candidate word segmentation, and display the corresponding candidate word that the user re-enters.
- the electronic device can also memorize the phrases composed of the candidate word segmentations on the upper screen. That is, after the electronic device displays the candidate words obtained after word segmentation on the screen, it can memorize and store the phrases on the screen, so that when the user wants to input the phrase again in the future, the phrase can be directly displayed on the candidate word page. Thus, the efficiency of the user's second input is improved.
- each candidate word is divided into multiple candidate words after word segmentation
- the user may select the desired candidate word segment multiple times and output the phrase composed of these candidate word segments.
- the electronic device In order to prevent the electronic device from memorizing the candidate word segment selected by the user once, ensure that the electronic device memorizes the phrase composed of the candidate word segment selected multiple times that the user wants to input, and improves the accuracy of the phrase memorized by the electronic device.
- the electronic device After the candidate words obtained after word segmentation are displayed on the screen, the electronic device can memorize the phrases displayed on the screen when the user enters text next time (ie, when the pinyin is input in the text input box again).
- the text display method provided by the embodiment of the present application may further include the following step 203a:
- Step 203a In response to the above-mentioned second input, display the target first candidate word segment in the text input box, and clear the remaining first candidate word segments in the first candidate words except the target first candidate word segment.
- the electronic device will automatically clear the remaining content, and return to the initial state of the input method input interface for the next input.
- the input method automatically clears the unnecessary remaining content, returns to the initial state, and waits for the next input.
- the solution provided by the embodiment of the present application further includes: when the electronic device inputs pinyin, special characters (for example, Long press X, so that X has a special character with pinyin separation function in the pinyin string instead of pinyin "X"), so that multiple candidate words can be input at one time, that is, multiple first candidate words can be displayed at one time.
- special characters for example, Long press X, so that X has a special character with pinyin separation function in the pinyin string instead of pinyin "X”
- the above-mentioned special characters can be any characters (such as numbers, letters or symbols), and the user long-pressing a character is equivalent to making the character a participle character, that is, even if the character has the pinyin separation function, the pinyin string in the The input of the pinyin letters before and after the special symbol is not affected.
- the special character is not used, the candidate words on the first page of the candidate word will not meet the user's expectations, and even do not contain the desired candidate words.
- the execution body may be a text display device, or a control module in the text display device for the text display method.
- the text display device provided by the embodiment of the present application is described by taking the text display device executing the text display method as an example.
- the message display device 500 includes: a receiving module 501, a processing module 502, and a display module 503, wherein:
- the receiving module 501 is used for receiving the first input of the first candidate word by the user when the first candidate word is displayed; the processing module 502 is used for obtaining the first candidate word in response to the first input received by the receiving module The N first candidate word segmentations; the receiving module 501 is also used to receive the second input from the user to the target first candidate word segmentation in the N first candidate word segmentations obtained by the processing module; the display module 503 is used to respond to the receiving module The received second input displays the target first candidate word segmentation in the text input box.
- the above-mentioned processing module 502 is further configured to cancel the display of the target first candidate word segmentation in response to the second input received by the receiving module 501; the above-mentioned display module 503 is also configured to respond to the second input received by the receiving module 501.
- the second input received by the receiving module 501, and M second candidate word segmentations are displayed, and the above-mentioned M second candidate word segmentations include: other first candidate word segmentations except the target first candidate word segmentation in the above-mentioned N first candidate word segmentations;
- the above-mentioned receiving module 501 is also used for receiving the third input from the user to the target second candidate word segmentation of the above-mentioned M second candidate word segmentations;
- the above-mentioned display module 503 is also used for responding to the third input received by the receiving module 501, displaying Target second candidate token.
- the above-mentioned processing module 502 is further configured to, in response to the second input received by the receiving module 501, clear the remaining first candidate word segmentations except the target first candidate word segmentation in the above-mentioned first candidate words. .
- the above-mentioned processing module 502 is specifically configured to perform word segmentation on the first candidate word to obtain N first candidate word segmentations.
- the above-mentioned display module 503 is specifically configured to: respectively display the above-mentioned N first candidate word segmentations; wherein, the second input is a selection input of the target first candidate word segmentation selected by the user.
- the receiving module 501 is specifically configured to receive a user's sliding input on the above-mentioned first candidate word; wherein, the above-mentioned target first candidate word segmentation is: the position of the sliding end point corresponding to the sliding input. candidate participles.
- the electronic device in the case of displaying the first candidate word, after the electronic device receives the first input of the first candidate word by the user, it can perform a word segmentation operation on the first candidate word, thereby obtaining There are N first candidate word segments.
- the electronic device receives the second input from the user on the target first candidate word segment among the above N first candidate word segments, it can display the target first candidate word segment on the screen.
- the user can select the part of the candidate words that he wants to display on the screen, and the text that needs to be input in the candidate words can be displayed on the screen without the user moving the cursor to delete the unnecessary parts.
- the whole input process not only reduces the text operation process, saves the text input time, but also improves the text input efficiency.
- the text display device in the embodiments of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
- the apparatus may be a mobile electronic device or a non-mobile electronic device.
- the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
- UMPC ultra-mobile personal computer
- netbook or a personal digital assistant
- non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
- Network Attached Storage NAS
- personal computer personal computer, PC
- television television
- teller machine or self-service machine etc.
- the text input device in the embodiment of the present application may be a device with an operating system.
- the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
- an embodiment of the present application further provides an electronic device 600, including a processor 601, a memory 602, a program or instruction stored in the memory 602 and executable on the processor 601, the When the program or the instruction is executed by the processor 601, each process of the above-mentioned embodiment of the text display method can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
- the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
- FIG. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
- the electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110, etc. part.
- the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions.
- a power source such as a battery
- the structure of the electronic device shown in FIG. 8 does not constitute a limitation on the electronic device.
- the electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
- the above-mentioned user input unit 107 in the case of displaying the first candidate word, receives the user's first input on the first candidate word; the above-mentioned processor 110 is used for responding to the first input received by the user input unit 107, Obtain N first candidate word segments of the first candidate word; the above-mentioned user input unit 107 is further configured to receive a second input from the user to the target first candidate word segment in the above-mentioned N first candidate word segments obtained by the processor 110; the above The display unit 106 is configured to display the target first candidate word segmentation in the text input box in response to the second input received by the user input unit 107 .
- the electronic device in the case of displaying the first candidate word, after the electronic device receives the first input of the first candidate word by the user, the electronic device can perform a word segmentation operation on the first candidate word, thereby obtaining N In this way, after the electronic device receives the user's second input of the target first candidate word segment among the above N first candidate word segments, it can display the target first candidate word segment on the screen. In this way, by performing the word segmentation operation on the candidate words, the user can select the part of the candidate words that he wants to display on the screen, and the text that needs to be input in the candidate words can be displayed on the screen without the user moving the cursor to delete the unnecessary parts.
- the whole input process not only reduces the text operation process, saves the text input time, but also improves the text input efficiency.
- the above-mentioned processor 110 is specifically configured to perform word segmentation on the first candidate word to obtain N first candidate word segmentations.
- the processor 110 is further configured to clear the target first candidate word segment in response to the second input received by the user input unit 107; the display unit 106 is further configured to respond to the user input The second input received by the unit 107, and displays M second candidate word segmentations, and the above M second candidate word segmentations include: other first candidate word segmentations except the target first candidate word segmentation in the above N first candidate word segmentations; the above The user input unit 107 is further configured to receive a third input from the user to the target second candidate word segment in the above-mentioned M second candidate word segments; the above-mentioned display unit 106 is further configured to respond to the third input received by the user input unit 107 , displays the target second candidate token.
- the user is also allowed to select the screen again, thereby reducing the user's multiple input and word segmentation, and further improving the text input efficiency.
- the processor 110 is further configured to, in response to the second input received by the user input unit 107, clear the remaining first candidate word segments in the first candidate word except the target first candidate word segment. .
- the above-mentioned display unit 106 is further configured to display N first candidate word segments respectively; wherein, the second input is a selection input of the user selecting the target first candidate word segment.
- the above-mentioned user input unit 107 is specifically configured to receive a user's sliding input on the first candidate word; wherein, the target first candidate word segmentation is: on the position where the sliding end point corresponding to the sliding input is located candidate participles.
- the target first candidate word segmentation is determined by sliding input on the first candidate word, which improves the human-computer interaction performance.
- the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042. Such as camera) to obtain still pictures or video image data for processing.
- the display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
- the user input unit 107 includes a touch panel 1071 and other input devices 1072 .
- the touch panel 1071 is also called a touch screen.
- the touch panel 1071 may include two parts, a touch detection device and a touch controller.
- Other input devices 1072 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 repeated here.
- Memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems.
- the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 110 .
- the embodiments of the present application further provide a readable storage medium for text input, and the above-mentioned readable storage medium stores programs or instructions.
- the programs or instructions are executed by a processor, each process of the above-mentioned text display method embodiment can be achieved, and can achieve The same technical effect, in order to avoid repetition, will not be repeated here.
- the above-mentioned processor is the processor in the above-mentioned electronic device in the above-mentioned embodiment.
- the above-mentioned readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
- An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run a program or an instruction to implement each process of the above embodiment of the text display method, and The same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
- the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Machine Translation (AREA)
- Document Processing Apparatus (AREA)
Abstract
一种文字显示方法、装置和电子设备,属于通信技术领域。能够解决在用户输入使用频率较低的文字的场景下,所存在的文字输入效率低的问题。该方法包括:在显示第一候选词的情况下,接收用户对第一候选词的第一输入(201);响应于第一输入,获取第一候选词的N个第一候选分词(202);接收用户对N个第一候选分词的目标第一候选分词的第二输入(203);响应于第二输入,在文字输入框显示目标第一候选分词(204)。该方法应用于文字输入场景中。
Description
相关申请的交叉引用
本申请主张在2020年10月23日在中国提交的中国专利申请号202011149843.X的优先权,其全部内容通过引用包含于此。
本申请属于电子技术领域,具体涉及一种文字显示方法、装置和电子设备。
目前,用户在使用键盘(如,实体键盘或虚拟键盘)输入文字时,由于键盘输入的每个字符(如,拼音)通常对应多个候选文字,因此,当用户使用键盘输入某一字符时,电子设备会按照该字符对应的多个候选文字的使用频率依次进行显示。此外,当用户需要输入某些生僻词时,若词库中不存在该生僻词,则需要用户依次输入该生僻词中的每个文字,才可以输入该生僻词。例如,当用户想要输出“孟竞壁”这个人名时,则会键入“孟竞壁”的全拼,若词库基于该全拼未查找到该人名,则需要用户分别按照“孟”“竞”“壁”这三个文字的拼音,依次从每个拼音对应的候选词中查找出“孟”“竞”“壁”这三个文字,这才可输出“孟竞壁”这个人名。
然而,当用户想要输入文字时,若该文字未显示在候选词首页中,为了提高文字输入效率,用户可以选择输入包含该文字的词组的方式,输入该词组,然后删除该词组中不需要的文字,从而输出该文字。例如,由于“孟”字并未显示在拼音“meng”的候选词首页,用户可以选择输入“孟子”的拼音,并在该拼音的候选词首页中选择“孟子”这个词组,然后,在删除“孟子”这个词组的“子”,便可获得“孟”字。
如此,不仅增加了文字输入的操作难度,还会存在输入文字误删除的情况,影响文字的输入效率。
发明内容
本申请实施例的目的是提供一种文字显示方法、装置和电子设备,能够解决文字输入过程中存在的文字输入效率低的问题。
为了解决上述技术问题,本申请是这样实现的:
第一方面,本申请实施例提供了一种文字显示方法,该方法包括:在显示第一候选词的情况下,接收用户对第一候选词的第一输入;响应于上述第一输入,将第一候选词进行分词,得到N个第一候选分词,N为大于1的正整数;接收用户对N个第一候选分词的目标第一候选分词的第二输入;响应于第二输入,在文字输入框显示目标第一候选分词。
第二方面,本申请实施例提供了一种文字显示装置,该装置包括:显示模块、处理模块和接收模块:上述接收模块,用于在显示第一候选词的情况下,接收用户对第一候选词的第一输入;上述处理模块,用于响应于接收模块接收到的第一输入,将第 一候选词进行分词,得到N个第一候选分词,N为大于1的正整数;上述接收模块,还用于接收用户对处理模块得到的N个第一候选分词的目标第一候选分词的第二输入;上述显示模块,用于响应于接收模块接收到的第二输入,在文字输入框显示目标第一候选分词。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在上述存储器上并可在上述处理器上运行的程序或指令,上述程序或指令被上述处理器执行时实现如第一方面上述的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,上述可读存储介质上存储程序或指令,上述程序或指令被处理器执行时实现如第一方面上述的方法的步骤。
第五方面,本申请实施例提供了一种芯片,上述芯片包括处理器和通信接口,上述通信接口和处理器耦合,上述处理器用于运行程序或指令,实现如第一方面上述的方法。
在本申请实施例中,在显示第一候选词的情况下,当电子设备接收到用户对第一候选词的第一输入之后,便可对第一候选词执行分词操作,从而得到N个第一候选分词,如此,当电子设备接收到用户对上述N个第一候选分词中的目标第一候选分词的第二输入之后,便可将目标第一候选分词上屏显示。这样,通过对候选词进行分词操作,便可使得用户从候选词中选择想要上屏的部分,无需用户移动光标删除不需要的部分,便可将候选词中需要输入的文字上屏显示,整个输入过程不仅减少了文字操作流程,节省了文字输入时间,还提高了文字输入效率。
图1是本申请实施例提供的一种文字显示方法的流程图;
图2是本申请实施例提供的一种文字显示方法的示意图之一;
图3是本申请实施例提供的一种文字显示方法的示意图之二;
图4是本申请实施例提供的一种文字显示方法的示意图之三;
图5是本申请实施例提供的一种文字显示方法的示意图之四;
图6是本申请实施例提供的一种文字显示装置的结构示意图;
图7是本申请实施例提供的一种电子设备的硬件结构示意图之一;
图8是本申请实施例提供的一种电子设备的硬件结构示意图之二。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一, 字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的一种文字显示方法进行详细地说明。
本申请实施例提供的文字显示方法可以应用于各种文字输入场景中。以用户使用聊天APP进行聊天为例。
在现有技术中,当用户想要在聊天界面中输入“竞”字,则用户为“竞”组词。然后,在文本框中输入“竞赛”的拼音“jingsai”,并在该拼音的词首页中选择“竞赛”这个词组,将“竞赛”词组上屏显示后,再删除“竞赛”这个词组的“赛”单字,便可获得“竞”字,然而这样会增加用户的操作,影响文字输入效率。在本申请实施例中,当用户想要在聊天界面中输入“竞”字时,用户为“竞”组词,然后在文本框中输入“竞赛”的拼音“jingsai”,并在该拼音的候选词首页中选择“竞赛”这个词组,然后对“竞赛”词组长按操作,从而将“竞赛”词组拆分成“竞”“赛”两个单字,最后用户单击选择“竞”上屏显示。这样,通过对候选词进行分词操作,便可使得用户从候选词中选择想要上屏的部分,无需用户移动光标删除不需要的部分,便可将候选词中需要输入的文字上屏显示,整个输入过程不仅减少了文字操作流程,节省了文字输入时间,还提高了文字输入效率。
本申请实施例提供的一种文字显示方法,该文字显示方法可以应用于电子设备,换言之,该文字显示方法可以由安装在电子设备中的软件或硬件来执行。如图1所示,本申请实施例提供的文字输入方法可以包括下述的步骤201至步骤204。
步骤201:在显示第一候选词的情况下,电子设备接收用户对第一候选词的第一输入。
在本申请实施例中,上述第一候选词为用户使用输入法输入字符后展示的与该输入字符匹配的候选词。进一步的,本申请实施例中的第一候选词为该输入字符对应的第一级候选词(即首页展示的候选词,无需用户进一步展开的候选词)。
在本申请实施例中,上述第一输入用于触发电子设备执行对第一候选词的分词操作。示例性的,上述的第一输入可以为:用户对第一候选词的触控输入,或者是用户输入的特定手势,具体的可以根据实际需求设定。在一种示例中,上述触控输入可以为用户对该第一候选词的长按输入。
可选地,在本申请实施例中,当用户想要输入使用频率较低的文字时,由于该文字通常并未显示在候选词首页中。因此,为了提高文字输入效率,用户通常会对想要输入的文字进行组词,若该用户想要输入的文字与其他文字可以组成词组,则用户输入该词组的拼音,从而展示该词组的拼音对应候选词(即上述的第一候选词),进而,用户便可对包含用户想要输入的文字的词组进行第一输入,从而触发电子设备对该词组进行分词操作。
举例说明,假设用户想要输出“孟竞壁”这个人名,由于“孟竞壁”不是常用的词组,因此,用户可以分别为“孟”“竞”“壁”这三个单字进行组词。如图2所示,以“孟”为例,用户为“孟”组词,在文字输入框中选择输入“孟子”的拼音,并在该拼音对应的候选词首页中查找到“孟子”(即上述第一候选词)这个词组,然后长按“孟子”这个词组(即上述第一输入),触发电子设备对“孟子”这个词组进行分词操作,例如,拆分为“孟”和“子”。
应注意的是,如果用户想要输入的文字无法成词,则用户可以按照正常的文字显示方法进行单字输入,进而进行多级筛选,查找出该单字。
步骤202:响应于该第一输入,获取第一候选词的N个第一候选分词。
其中,N为大于1的正整数。
在本申请实施例中,上述N个第一候选分词可以包括至少两个候选分词。在一种示例中,上述N个第一候选分词可以包括至少两个候选单词。
可选地,在本申请实施例中,电子设备在接收到第一输入后,可以将第一候选词进行分词,得到N个第一候选分词。
进一步可选地,电子设备在将第一候选词进行分词时,可以使用以下至少两种分词方式。
方式1:电子设备可以将第一候选词按照第一候选词中单字的数量进行拆分,如拆分为多个单字。示例性的,电子设备可以按照第一候选词的字节长度以预设拆分单元(如,一个拆分单元包括预设个数的字节)对第一候选词进行拆分。在一种示例中,电子设备可以将第一候选词拆分为多个候选单字。具体的,由于每个汉字对应两个字节,因此,电子设备可以按照两个字节为拆分单元对第一候选词进行拆分,从而拆分出多个单字。
示例1,当第一候选词为“孟子”时,电子设备可以两个字节为拆分单元将“孟子”拆分为“孟”和“子”。
方式2:电子设备可以使用语言模型将第一候选词分成多个不同的分词。电子设备在识别输入框中的输入文字时,可以使用语言模型进行识别。其中,上述语言模型经自适应学习后得到的语言模型,该语言模型可以包括:词库、语法规则、拼写规则等。具体的,语言模型对第一候选词进行分词,然后,语言模型会将分词后的得到的每个词语进行语义检查,确定出第一候选词中存在分词。
示例2,上述语言模型可以结合第一候选词的语境,确定第一候选词中的词语语义。例如,若该输入文字为“切开词语”,该语言模型对“切开词语”进行语义分析,得到“切开”“词语”“切词”“切”“开”“词”“语”这几个分词。
可选地,在本申请实施例中,电子设备可以分别显示N个第一候选分词,也可以将N个第一候选分词作为整体进行显示(即仍然显示第一候选词)。
步骤203:接收用户对上述N个第一候选分词中的目标第一候选分词的第二输入。
在本申请实施例中,上述目标第一候选分词为上述N个第一候选分词中的至少一个第一候选分词。
在本申请实施例中,上述第二输入用于从N个第一候选分词中选择出目标第一候选分词。应注意的是,上述第二输入可以参照上述第一输入的描述,此处不再赘述。例如,上述第二输入可以为用户点击目标第一候选分词的点击输入,也可以为用户在N个第一候选分词上的滑动输入。
步骤204:响应于第二输入,在文字输入框显示上述目标第一候选分词。
在本申请实施例中,电子设备在显示目标第一候选分词后,可以对目标第一候选分词 进行上屏显示。可以理解,电子设备将目标第一候选分词上屏显示是指,将目标候选分词显示到输入法的文本显示框中。
本申请实施例提供的文字显示方法,在显示第一候选词的情况下,当电子设备接收到用户对第一候选词的第一输入之后,便可对第一候选词执行分词操作,从而得到N个第一候选分词,如此,当电子设备接收到用户对上述N个第一候选分词中的目标第一候选分词的第二输入之后,便可将目标第一候选分词上屏显示。这样,通过对候选词进行分词操作,便可使得用户从候选词中选择想要上屏的部分,无需用户移动光标删除不需要的部分,便可将候选词中需要输入的文字上屏显示,整个输入过程不仅减少了文字操作流程,节省了文字输入时间,还提高了文字输入效率。
可选的,本申请实施例中,在上述步骤203之前,本申请实施例提供的文字显示方法还可以包括下述步骤202a1:
步骤202a1:分别显示N个第一候选分词。
其中,第二输入为用户选中目标第一候选分词的选择输入。
举例说明,如图3中的(a)所示,当用户想要输入“切词”这个词语时,可以选择为该“切词”组词,例如“切开词语”,然后,在文字输入框中输入“切开词语”的拼音“qiekaiciyu”,在该拼音对应的候选词中选择“切开词语”并对“切开词语”进行长按操作(即上述第一输入)。接着,如图3中的(b)所示,电子设备将“切开词语”分别显示“切”“开”“词”“语”。最后,如图3中的(b)和(c)所示,用户点击“切”单字后将“切”单字上屏显示,如图3中的(c)和(d)所示,用户点击“词”单字后将“词”单字上屏显示。
如此,通过将N个第一候选分词分开显示,从而减少用户的误操作,方便用户将目标第一候选分词上屏,提高了用户输入的效率。
可选的,本申请实施例中,在用户执行上述步骤203的过程中,电子设备显示上述第一候选词。
示例性的,在上述步骤203之前,本申请实施例提供的文字显示方法还可以包括下述步骤202b1:
步骤202b1:接收用户在第一候选词上的滑动输入。
其中,上述目标第一候选分词为:滑动输入对应的滑动终点所在位置上的候选分词。
举例说明,如图4中的(a)所示,当用户想要输入“竞”这个词语时,可以选择为该“竞”组词,例如“竞赛”,然后,在文字输入框中输入“竞赛”的拼音“jingsai”,并点击候选词首页中的候选词“竞赛”,如图4中的(b)所示,使得“竞赛”文字输入框中,然后用户在文字输入框中显示的“竞赛”上来回滑动(即上述滑动输入)当用户想要上屏单字“竞”,则可以滑动至“竞”字上方,此时,当用户松手后,电子设备会将“竞”字上屏显示。
如此,通过在第一候选词上的滑动输入确定目标第一候选分词,提高了人机交互性能。
可选的,本申请实施例中,电子设备在上述步骤203之后,本申请实施例提供的文字显示方法还可以包括下述步骤301至步骤303:
步骤301:响应于上述第二输入,取消对目标第一候选分词的显示,并显示M个第二候选分词。
其中,上述M个第二候选分词包括:上述N个第一候选分词中除目标第一候选分词以外的其他第一候选分词。
举例说明,结合图3中的(a)、(b)、(c)所示,电子设备将“切”单字上屏显示后,可以继续显示除了“切”单字的剩下的“开”“词”“语”部分。
步骤302:接收用户对上述M个第二候选分词的目标第二候选分词的第三输入。
其中,上述目标第二候选分词为上述M个第二候选分词中的至少一个第二候选分词。
步骤303:响应于第三输入,将上述目标第二候选分词上屏显示。
示例性的,电子设备执行完一次切词并选择想要输入的单词上屏后,为了进一步的提高文字输入效率,电子设备可以不将第一候选词中除目标第一候选分词中剩余分词进行删除,而是将第一候选词中除目标第一候选分词以外的M个第二候选分词进行保留,并允许用户再次从中继续选择想要上屏的目标第二候选选择单词上屏。
如此,当在文字输入框显示目标第一候选分词后,还允许用户再次选择需要上屏的候选词,从而减少用户的多次输入和分词,进一步提高了文字输入效率。
应注意的是,如果用户一次切词并选择上屏后,继续输入,电子设备则会清空之前的保留候选分词,显示用户重新的输入对应的候选词。
需要说明的是,电子设备还能够对上屏的候选分词组成的词组进行记忆。即,电子设备对分词后得到的候选单词进行上屏后,可以对上屏的词组进行记忆并存储,从而使得用户后续再次想要输入该词组时,可以直接在候选词页面中显示该词组,从而提高了用户第二次输入的效率。
进一步的,由于每个候选词进行分词后通常会拆分出多个候选分词,因此,用户可能会分次多次从中选择出想要的候选分词,从而输出这些候选分词所组成的词组。为了避免电子设备记忆用户单次所选择的候选分词,保证电子设备记忆用户想要输入的由多次选择出的候选分词组成的词组,提高电子设备记忆的词组的准确度。电子设备可以在对分词后得到的候选单词进行上屏后,在用户下一次进行文本输入时(即,再次在文字输入框中输入拼音时),对上屏的词组进行记忆。
举例说明,结合图3,用户将“切”和“词”上屏显示后,得到了想要的“切词”后,电子设备可以将“切词”作为词组进行记忆。这样,当用户想要再次输入“切词”时,由于电子设备已经记忆了“切词”,因此,当用户输入“切词”的拼音后,会直接在候选词页面中显示“切词”以供用户选择。
可选的,本申请实施例中,电子设备在上述步骤203之后,本申请实施例提供的文字显示方法还可以包括下述步骤203a:
步骤203a:响应于上述第二输入,在文字输入框显示目标第一候选分词,并清空第一候选词中除目标第一候选分词以外的其余第一候选分词。
示例性的,用户在将目标第一候选分词上屏显示后,电子设备会自动清空剩余内容, 回到输入法输入界面的初始状态,以待下一次输入。用户选择上屏后输入法自动清空不需要的剩余内容,回到初始状态,以待下一次输入。
可选地,在本申请实施例中,在步骤201之前,本申请实施例提供的方案还包括:电子设备在输入拼音时,可以在输入多个候选词的拼音之间添加特殊字符(例如,长按X,使得X在拼音串中位具备拼音分隔功能的特殊字符,而不是拼音“X”),如此,可以实现一次输入多个候选词,即可以一次显示多个第一候选词。需要说明的是,上述的特殊字符可以为任意字符(如数字、字母或符号),用户长按某一字符相当于使得该字符为分词字符,即使得该字符具备拼音分隔功能,该拼音串中该特殊符号的前后拼音字母的输入不受影响,对于较长的拼音串,如果不使用该特殊字符,则会导致候选词首页的候选词不符合用户预期,甚至不包含想要的候选词。
举例说明,当用户想要输出“孟竞壁”,如图5中的(a)所示,用户使用26键输入法输入拼音串“mengziXjingzhengXbihu”,其中,大写字母“X”为分隔符号(即上述特殊字符),如此,电子设备会以“X”为分隔符号对该拼音串“mengziXjingzhengXbihu”进行分隔,使得电子设备可以分别为拼音串“mengzi”和“jingzheng”以及“bihu”查找对应的候选词,如图5中的(b)所示,“mengziXjingzhengXbihu”对应的候选词为“孟子X竞争X壁虎。之后,可以对“孟子”“竞争”“壁虎”分别进行分词,最后,从拆分后的分词中分别选择“孟”、“竞”、“壁”上屏显示,最终输出目标文字“孟竞壁”。
需要说明的是,本申请实施例提供的文字显示方法,执行主体可以为文字显示装置,或者该文字显示装置中的用于文字显示方法的控制模块。本申请实施例中以文字显示装置执行文字显示方法为例,说明本申请实施例提供的文字显示装置。
本申请实施例提供消息显示装置,如图6所示,该消息显示装置500包括:接收模块501、处理模块502和显示模块503,其中:
接收模块501,用于在显示第一候选词的情况下,接收用户对第一候选词的第一输入;处理模块502,用于响应于接收模块接收到的第一输入,获取第一候选词的N个第一候选分词;接收模块501,还用于接收用户对处理模块得到的N个第一候选分词中的目标第一候选分词的第二输入;显示模块503,用于响应于接收模块接收到的第二输入,在文字输入框显示目标第一候选分词。
可选的,本申请实施例中,上述处理模块502,还用于响应于接收模块501接收到的第二输入,取消对目标第一候选分词的显示;上述显示模块503,还用于响应于接收模块501接收到的第二输入,并显示M个第二候选分词,上述M个第二候选分词包括:上述N个第一候选分词中除目标第一候选分词以外的其他第一候选分词;上述接收模块501,还用于接收用户对上述M个第二候选分词的目标第二候选分词的第三输入;上述显示模块503,还用于响应于接收模块501接收到的第三输入,显示目标第二候选分词。
可选的,本申请实施例中,上述处理模块502,还用于响应于接收模块501接收到的第二输入,清空上述第一候选词中除目标第一候选分词以外的其余第一候选分词。
可选的,本申请实施例中,上述处理模块502,具体用于对第一候选词进行分词,得到N个第一候选分词。
可选的,本申请实施例中,上述显示模块503,具体用于:分别显示上述N个第一候选分词;其中,第二输入为用户选中目标第一候选分词的选择输入。
可选的,本申请实施例中,接收模块501,具体用于接收用户在上述第一候选词上的滑动输入;其中,上述目标第一候选分词为:该滑动输入对应的滑动终点所在位置上的候选分词。
本申请实施例提供的文字显示装置,在显示第一候选词的情况下,当电子设备接收到用户对第一候选词的第一输入之后,便可对第一候选词执行分词操作,从而得到N个第一候选分词,如此,当电子设备接收到用户对上述N个第一候选分词中的目标第一候选分词的第二输入之后,便可将目标第一候选分词上屏显示。这样,通过对候选词进行分词操作,便可使得用户从候选词中选择想要上屏的部分,无需用户移动光标删除不需要的部分,便可将候选词中需要输入的文字上屏显示,整个输入过程不仅减少了文字操作流程,节省了文字输入时间,还提高了文字输入效率。
本申请实施例中的文字显示装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的文字输入装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的文字输入能够实现图1至图5的方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选的,如图7所示,本申请实施例还提供一种电子设备600,包括处理器601,存储器602,存储在存储器602上并可在上述处理器601上运行的程序或指令,该程序或指令被处理器601执行时实现上述文字显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述的移动电子设备和非移动电子设备。
图8为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。
本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图8中示出的电子设备结构并不构成对电子设备的 限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,上述用户输入单元107,在显示第一候选词的情况下,接收用户对第一候选词的第一输入;上述处理器110,用于响应于用户输入单元107接收到的第一输入,获取第一候选词的N个第一候选分词;上述用户输入单元107,还用于接收用户对处理器110得到的上述N个第一候选分词中的目标第一候选分词的第二输入;上述显示单元106,用于响应于用户输入单元107接收到的第二输入,在文字输入框显示目标第一候选分词。
本申请实施例提供的电子设备,在显示第一候选词的情况下,当电子设备接收到用户对第一候选词的第一输入之后,便可对第一候选词执行分词操作,从而得到N个第一候选分词,如此,当电子设备接收到用户对上述N个第一候选分词中的目标第一候选分词的第二输入之后,便可将目标第一候选分词上屏显示。这样,通过对候选词进行分词操作,便可使得用户从候选词中选择想要上屏的部分,无需用户移动光标删除不需要的部分,便可将候选词中需要输入的文字上屏显示,整个输入过程不仅减少了文字操作流程,节省了文字输入时间,还提高了文字输入效率。
可选的,本申请实施例中,上述处理器110,具体用于对第一候选词进行分词,得到N个第一候选分词。
可选的,本申请实施例中,上述处理器110,还用于响应于用户输入单元107接收到的第二输入,清除目标第一候选分词;上述显示单元106,还用于响应于用户输入单元107接收到的第二输入,并显示M个第二候选分词,上述M个第二候选分词包括:上述N个第一候选分词中除目标第一候选分词以外的其他第一候选分词;上述用户输入单元107,还用于接收用户对上述M个第二候选分词中的目标第二候选分词的第三输入;上述显示单元106,还用于响应于用户输入单元107接收到的第三输入,显示目标第二候选分词。
如此,当对目标第一候选分词上屏后,还允许用户再次选择上屏,从而减少用户的多次输入和分词,进一步提高了文字输入效率。
可选的,本申请实施例中,上述处理器110,还用于响应于用户输入单元107接收到的第二输入,清空第一候选词中除目标第一候选分词以外的其余第一候选分词。
可选的,本申请实施例中,上述显示单元106,还用于分别显示N个第一候选分词;其中,第二输入为用户选中目标第一候选分词的选择输入。
如此,通过将N个第一候选分词分开显示,从而减少用户的误操作,方便用户将目标第一候选分词上屏,提高了用户输入的效率。
可选的,本申请实施例中,上述用户输入单元107,具体用于接收用户在第一候选词上的滑动输入;其中,目标第一候选分词为:该滑动输入对应的滑动终点所在位置上的候选分词。
如此,通过在第一候选词上的滑动输入确定目标第一候选分词,提高了人机交互性能。
应理解的是,本申请实施例中,输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106 可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器109可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。
本申请实施例还提供一种文字输入可读存储介质,上述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述文字显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,上述处理器为上述实施例中上述的电子设备中的处理器。上述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,上述芯片包括处理器和通信接口,上述通信接口和上述处理器耦合,上述处理器用于运行程序或指令,实现上述文字显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例上述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。
Claims (15)
- 一种文字显示方法,所述方法包括:在显示第一候选词的情况下,接收用户对所述第一候选词的第一输入;响应于所述第一输入,获取所述第一候选词的N个第一候选分词,N为大于1的正整数;接收用户对所述N个第一候选分词中的目标第一候选分词的第二输入;响应于所述第二输入,在文字输入框显示所述目标第一候选分词。
- 根据权利要求1所述的方法,其中,所述接收用户对所述N个第一候选分词中的目标第一候选分词的第二输入之后,所述方法还包括:响应于所述第二输入,取消对所述目标第一候选分词的显示,并显示M个第二候选分词;所述M个第二候选分词包括:所述N个第一候选分词中除所述目标第一候选分词以外的其他第一候选分词;接收用户对所述M个第二候选分词中的目标第二候选分词的第三输入;响应于所述第三输入,显示所述目标第二候选分词。
- 根据权利要求2所述的方法,其中,所述响应于所述第二输入,在文字输入框显示所述目标第一候选分词,包括:响应于所述第二输入,在文字输入框显示所述目标第一候选分词,并清空所述第一候选词中除所述目标第一候选分词以外的其余第一候选分词。
- 根据权利要求1至3任一项所述的方法,其中,所述获取所述第一候选词的N个第一候选分词,包括:对所述第一候选词进行分词,得到N个第一候选分词。
- 根据权利要求1至3任一项所述的方法,其中,所述接收用户对所述N个第一候选分词中的目标第一候选分词的第二输入,包括:接收用户在所述第一候选词上的滑动输入;其中,所述目标第一候选分词为:所述滑动输入对应的滑动终点所在位置上的候选分词。
- 一种文字显示装置,所述装置包括:显示模块、处理模块和接收模块:所述接收模块,用于在显示第一候选词的情况下,接收用户对所述第一候选词的第一输入,N为大于1的正整数;所述处理模块,用于响应于所述接收模块接收到的所述第一输入,获取所述第一候选词的N个第一候选分词;所述接收模块,还用于接收用户对所述处理模块得到的所述N个第一候选分词中的目标第一候选分词的第二输入;所述显示模块,用于响应于所述接收模块接收到的所述第二输入,在文字输入框显示所述目标第一候选分词。
- 根据权利要求6所述的装置,其中,所述处理模块,还用于响应于所述接收模块接收到的所述第二输入,取消对所述目标第一候选分词的显示;所述显示模块,还用于响应于所述接收模块接收到的所述第二输入,显示M个第 二候选分词,所述M个第二候选分词包括:所述N个第一候选分词中除所述目标第一候选分词以外的其他第一候选分词;所述接收模块,还用于接收用户对所述M个第二候选分词中的目标第二候选分词的第三输入;所述显示模块,还用于响应于所述接收模块接收到的所述第三输入,显示所述目标第二候选分词。
- 根据权利要求6所述的装置,其中,所述处理模块,还用于响应于所述接收模块接收到的所述第二输入,清空所述第一候选词中除所述目标第一候选分词以外的其余第一候选分词。
- 根据权利要求6至8任一项所述的装置,其中,所述处理模块,具体用于对所述第一候选词进行分词,得到N个第一候选分词。
- 根据权利要求6至8任一项所述的装置,其中,所述接收模块,具体用于接收用户在所述第一候选词上的滑动输入;其中,所述目标第一候选分词为:所述滑动输入对应的滑动终点所在位置上的候选分词。
- 一种电子设备,其中,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-5任一项所述的文字显示方法的步骤。
- 一种可读存储介质,其中,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-5任一项所述的文字显示方法的步骤。
- 一种电子设备,被配置成用于执行如权利要求1-5任一项所述的文字显示方法的步骤。
- 一种文字显示装置,被配置成用于执行如权利要求1-5任一项所述的文字显示方法的步骤。
- 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1-5任一项所述的文字显示方法的步骤。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011149843.X | 2020-10-23 | ||
CN202011149843.XA CN112269475A (zh) | 2020-10-23 | 2020-10-23 | 文字显示方法、装置和电子设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022083750A1 true WO2022083750A1 (zh) | 2022-04-28 |
Family
ID=74342451
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/125786 WO2022083750A1 (zh) | 2020-10-23 | 2021-10-22 | 文字显示方法、装置和电子设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112269475A (zh) |
WO (1) | WO2022083750A1 (zh) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112269475A (zh) * | 2020-10-23 | 2021-01-26 | 维沃移动通信有限公司 | 文字显示方法、装置和电子设备 |
CN112949261A (zh) * | 2021-02-04 | 2021-06-11 | 维沃移动通信有限公司 | 文本还原方法、装置及电子设备 |
CN113076010B (zh) * | 2021-03-26 | 2023-06-23 | 维沃移动通信有限公司 | 输入方法、输入装置、电子设备及介质 |
CN113359999B (zh) * | 2021-05-24 | 2023-06-27 | 维沃移动通信有限公司 | 候选词更新方法、装置和电子设备 |
CN117850605A (zh) * | 2022-09-30 | 2024-04-09 | 华为终端有限公司 | 一种输入方法、电子设备和存储介质 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140282201A1 (en) * | 2013-03-15 | 2014-09-18 | Research In Motion Limited | Method and apparatus for word prediction selection |
CN104679278A (zh) * | 2015-02-28 | 2015-06-03 | 广州三星通信技术研究有限公司 | 字符输入方法及装置 |
CN107491502A (zh) * | 2017-07-31 | 2017-12-19 | 深圳市金立通信设备有限公司 | 一种选择词条的方法及终端 |
CN107797676A (zh) * | 2016-09-05 | 2018-03-13 | 北京搜狗科技发展有限公司 | 一种单字输入方法及装置 |
CN112269475A (zh) * | 2020-10-23 | 2021-01-26 | 维沃移动通信有限公司 | 文字显示方法、装置和电子设备 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2778860A1 (en) * | 2013-03-15 | 2014-09-17 | BlackBerry Limited | Method and apparatus for word prediction selection |
-
2020
- 2020-10-23 CN CN202011149843.XA patent/CN112269475A/zh active Pending
-
2021
- 2021-10-22 WO PCT/CN2021/125786 patent/WO2022083750A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140282201A1 (en) * | 2013-03-15 | 2014-09-18 | Research In Motion Limited | Method and apparatus for word prediction selection |
CN104679278A (zh) * | 2015-02-28 | 2015-06-03 | 广州三星通信技术研究有限公司 | 字符输入方法及装置 |
CN107797676A (zh) * | 2016-09-05 | 2018-03-13 | 北京搜狗科技发展有限公司 | 一种单字输入方法及装置 |
CN107491502A (zh) * | 2017-07-31 | 2017-12-19 | 深圳市金立通信设备有限公司 | 一种选择词条的方法及终端 |
CN112269475A (zh) * | 2020-10-23 | 2021-01-26 | 维沃移动通信有限公司 | 文字显示方法、装置和电子设备 |
Also Published As
Publication number | Publication date |
---|---|
CN112269475A (zh) | 2021-01-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022083750A1 (zh) | 文字显示方法、装置和电子设备 | |
CN110083254B (zh) | 多手势文本输入预测 | |
KR102249054B1 (ko) | 온스크린 키보드에 대한 빠른 작업 | |
WO2022017525A1 (zh) | 页面显示方法、装置和电子设备 | |
WO2014159473A2 (en) | Automatic supplementation of word correction dictionaries | |
WO2022135474A1 (zh) | 信息推荐方法、装置及电子设备 | |
WO2014000267A1 (en) | Cross-lingual input method editor | |
US10915697B1 (en) | Computer-implemented presentation of synonyms based on syntactic dependency | |
CN107544684B (zh) | 一种候选词显示方法及装置 | |
CN107092424B (zh) | 一种纠错项的显示方法、装置和用于纠错项的显示的装置 | |
EP2909702B1 (en) | Contextually-specific automatic separators | |
WO2022247789A1 (zh) | 候选词更新方法、装置和电子设备 | |
WO2022105754A1 (zh) | 输入文字的方法、装置和电子设备 | |
US20180067645A1 (en) | System and method for efficient text entry with touch screen | |
CN107797676B (zh) | 一种单字输入方法及装置 | |
US20160092104A1 (en) | Methods, systems and devices for interacting with a computing device | |
WO2022143341A1 (zh) | 输入法候选词显示方法、装置及电子设备 | |
CN107132927B (zh) | 输入字符的识别方法及装置和用于识别输入字符的装置 | |
US20170371424A1 (en) | Predictive Text Typing Employing An Augmented Computer Keyboard | |
WO2022143523A1 (zh) | 词汇显示方法、装置和电子设备 | |
WO2022188805A1 (zh) | 关键字搜索方法、装置及电子设备 | |
WO2022194207A1 (zh) | 输入方法、装置、电子设备及可读存储介质 | |
WO2022135294A1 (zh) | 候选词显示方法及装置、电子设备 | |
CN113157966B (zh) | 显示方法、装置及电子设备 | |
CN111966267A (zh) | 应用评论方法、装置和电子设备 |
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: 21882162 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: 21882162 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 28.11.2023) |