Input method candidate word processing method and electronic device

By adjusting the sort of candidate words in the pinyin input method, and adjusting the display order of candidate words according to the user's control input, the problem of cumbersome operation in the existing pinyin input method is solved, and the target word is quickly found in the input method interface Function.

CN112181167BActive Publication Date: 2024-11-15VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011168402.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-27
Publication Date
2024-11-15
Estimated Expiration
2040-10-27

AI Technical Summary

Technical Problem

The existing pinyin input method makes it cumbersome to use when users select target words, and users need to keep turning pages or sliding among a large number of candidate words to find target words.

Method used

By receiving the string input by the user, obtaining the candidate words associated with it, and responding to the control operations input by the user, adjusting the sort of candidate words, and rearranging the candidate words according to preset rules so that the user can quickly find the target words.

Benefits of technology

It simplifies user operations, reduces page turn and slide operations in the selection process of users, and improves the efficiency of finding target words in the input method interface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112181167B_ABST
    Figure CN112181167B_ABST
Patent Text Reader

Abstract

The present application discloses an input method candidate word processing method and an electronic device, belonging to the field of electronic technology, to solve the problem that the existing input method causes the user to have cumbersome operations when selecting a target word. The method comprises: receiving a first string input by a user, obtaining a first candidate word associated with the first string; receiving a first input of the user to a first control; and adjusting the order of the plurality of first candidate words in response to the first input. The input method candidate word processing method in the present application is applied to an electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of electronic technology, and specifically relates to an input method candidate word processing method and an electronic device. Background Art

[0002] In electronic devices, input method programs are used by users to edit text. A common input method is the pinyin input method. In existing pinyin input methods, after a user edits the pinyin, multiple groups of candidate words matching the pinyin are displayed, so that the user can select a target word from the candidate words.

[0003] Usually, a set of pinyin corresponds to many phrases, and even more phrases can be extended based on similar pinyin. Therefore, after the user edits the pinyin, if there is no target word in the currently displayed groups of candidate words, it is necessary to select the target word from a large number of candidate words. Common implementation methods are: users keep turning pages and sliding down. It can be seen that the existing input method makes it cumbersome for users to select target words.

[0004] Therefore, in the process of implementing the present application, the inventors found that there are at least the following problems in the prior art: the existing input method causes cumbersome operations for users to select target words. Summary of the invention

[0005] The purpose of the embodiment of the present application is to provide an input method candidate word processing method, which can solve the problem that the existing input method causes cumbersome operations for users to select target words.

[0006] In order to solve the above technical problems, this application is implemented as follows:

[0007] In a first aspect, an embodiment of the present application provides an input method candidate word processing method, the method comprising: receiving a first character string input by a user, obtaining a first candidate word associated with the first character string; receiving a first input of the user to a first control; and adjusting the order of multiple first candidate words in response to the first input.

[0008] In a second aspect, an embodiment of the present application provides an input method candidate word processing device, the device comprising: a first candidate word acquisition module, used to receive a first character string input by a user, and obtain a first candidate word associated with the first character string; a first input receiving module, used to receive a first input of the user to a first control; a first input response module, used to adjust the order of multiple first candidate words in response to the first input.

[0009] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method of the first aspect.

[0010] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method of the first aspect are implemented.

[0011] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method of the first aspect.

[0012] Thus, in an embodiment of the present application, a user inputs a first character string in an input method interface, such as any pinyin, and first obtains a first candidate word associated with the first character string. Usually, there are multiple first candidate words. Furthermore, part of the first candidate words and the first control can be displayed. If the currently displayed first candidate words do not have the target word required by the user, the user can make a first input to the first control, such as the user clicking on the option "rearrange in XX order", etc., so that in response to the first input, the multiple first candidate words can be sorted and adjusted according to the preset rules associated with the first input, such as in XX order. It can be seen that in this embodiment, the multiple first candidate words after sorting are adjusted and associated with the user's needs, so that the user can quickly determine the target word among the multiple first candidate words after sorting, without having to keep turning pages, thereby simplifying user operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 is a flow chart of a method for processing candidate words of an input method according to an embodiment of the present application;

[0014] Figure 2 to Figure 8 It is a schematic diagram of the interface display of the input method candidate word processing method according to an embodiment of the present application;

[0015] Fig. 9 is a block diagram of an input method candidate word processing device according to an embodiment of the present application;

[0016] Fig.10 This is one of the hardware structure diagrams of the electronic device according to the embodiment of the present application.

[0017] Fig.11 This is the second schematic diagram of the hardware structure of the electronic device according to the embodiment of the present application. DETAILED DESCRIPTION

[0018] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are 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 ordinary technicians in this field without creative work are within the scope of protection of this application.

[0019] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0020] The input method candidate word processing method provided by the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.

[0021] Figure 1 A flowchart of a method for processing candidate words of an input method according to an embodiment of the present application is shown, including:

[0022] Step S1: receiving a first character string input by a user, and obtaining a first candidate word associated with the first character string.

[0023] The implementation of the user inputting the first character string includes touch input and air input performed by the user on the screen, which are not limited to click, slide and other inputs; and also includes input performed by the user on physical keys on the device, which are not limited to press and other inputs. Moreover, the implementation of the user inputting the first character string includes one or more inputs, wherein the multiple inputs can be continuous or intermittent.

[0024] Optionally, the first character string is pinyin or the like.

[0025] The first candidate words associated with the first character string include a phrase corresponding to the input pinyin, a phrase corresponding to a pinyin similar to the input pinyin, and so on.

[0026] Optionally, there are multiple first candidate words.

[0027] Optionally, after this step, according to the existing input method candidate word processing method, part of the first candidate words can be displayed on the current interface for user selection.

[0028] See also Figure 2 ,Application scenarios such as: in the input method interface, the user enters "qishi", and multiple first candidate words such as "knight" are displayed.

[0029] Step S2: receiving a first input from a user to a first control.

[0030] The first input includes a touch input and air input performed by a user on the screen, and is not limited to inputs such as clicks and slides; the first input also includes an input performed by a user on a physical button on the device, and is not limited to inputs such as pressing. Moreover, the first input includes one or more inputs, wherein the multiple inputs may be continuous or intermittent.

[0031] In this embodiment, while the current interface displays part of the first candidate words, the first control is displayed. In case there is no target word among the first candidate words displayed on the current interface, the user inputs the first control, thereby adjusting the sorting of the first candidate words to help quickly find the target word.

[0032] See also Figure 3 ,Application scenarios such as: In the input method interface, the "Category Filter" option is displayed, and the user clicks the "Category Filter" option.

[0033] Step S3: In response to the first input, adjusting the ranking of the plurality of first candidate words.

[0034] Optionally, the ranking of all first candidate words may be adjusted.

[0035] In an application scenario, after the user clicks the "Category Filter" option, the first candidate word obtained in the above step is sorted and adjusted according to the rules set in the "Category Filter".

[0036] Optionally, in different application scenarios, different rules may be set based on different first controls to achieve different arrangements.

[0037] Furthermore, a plurality of first candidate words after adjustment and sorting are displayed.

[0038] Optionally, several first candidate words with a high ranking are displayed in the current interface. In this way, the first candidate words currently displayed are displayed after the ranking is adjusted based on the user input, which meets the user's needs. The user can quickly find the target word in the first candidate words currently displayed without turning pages.

[0039] Thus, in an embodiment of the present application, a user inputs a first character string in an input method interface, such as any pinyin, and first obtains a first candidate word associated with the first character string. Usually, there are multiple first candidate words. Furthermore, part of the first candidate words and the first control can be displayed. If the currently displayed first candidate words do not have the target word required by the user, the user can make a first input to the first control, such as the user clicking on the option "rearrange in XX order", etc., so that in response to the first input, the multiple first candidate words can be sorted and adjusted according to the preset rules associated with the first input, such as in XX order. It can be seen that in this embodiment, the multiple first candidate words after sorting are adjusted and associated with the user's needs, so that the user can quickly determine the target word among the multiple first candidate words after sorting, without having to keep turning pages, thereby simplifying user operations.

[0040] In another embodiment of the present application, the first control includes a target label control.

[0041] The target tag corresponding to the target tag control includes at least one of a part-of-speech tag and a domain tag.

[0042] In this embodiment, on the one hand, the target tag corresponding to the target tag control includes a part-of-speech tag, so that the first candidate words can be sorted and adjusted according to the part of speech of each first candidate word.

[0043] For reference, this embodiment provides a tag classification management solution for vocabulary.

[0044] See also Figure 4 For example, first, a label is established, including label A, label B, label C, etc. Further, label A includes label A1, label A2, etc. And so on. Secondly, a data relationship between vocabulary and label is established, and the vocabulary is managed by label. One vocabulary can match multiple labels.

[0045] Specifically, noun, verb, pronoun, adjective, quantifier and other part-of-speech tags are established according to the Chinese word class grammar. Furthermore, noun tags include noun, concrete noun, abstract noun and other part-of-speech tags; verb tags include verb, intransitive verb, transitive verb and other part-of-speech tags; pronoun tags include pronoun, personal pronoun, demonstrative pronoun, interrogative pronoun and other part-of-speech tags. And so on. Furthermore, the vocabulary is managed by tags, and a vocabulary can match multiple part-of-speech tags. For example, the part-of-speech tags matched by "Shang Meilin" include noun tags and concrete noun tags; the part-of-speech tags matched by "Revelation" include: verb tags, noun tags, abstract noun tags.

[0046] The above steps are an example of label classification management of vocabulary according to Chinese word class grammar.

[0047] In this embodiment, on the other hand, the target tag corresponding to the target tag control includes a field tag, so that the first candidate words can be sorted and adjusted according to the usage field of each first candidate word.

[0048] Specifically, first, according to the fields in which the vocabulary is used, field labels such as "Life, Art and Culture", "Nature and Natural Science", and "Society" are established. Furthermore, the "Life, Art and Culture" label includes field labels such as food, clothing, animation, and comics; the "Nature and Natural Science" label includes field labels such as biology. Furthermore, the food label includes field labels such as Western food and the eight major cuisines. And so on. Furthermore, the vocabulary is managed by labels, and one vocabulary can match multiple field labels. For example, the field labels matching "Three Fresh Shark Fins" include the food label and the "Life, Art and Culture" label; the field labels matching "Pajamas" include the clothing label and the "Life, Art and Culture" label.

[0049] The above steps are an example of label classification management of vocabulary according to usage fields.

[0050] Based on the above-mentioned label classification management scheme for vocabulary, the corresponding relationship between vocabulary and label can be established, which is used for adjusting the ranking of the first candidate word in this embodiment.

[0051] Correspondingly, in the process of the input method candidate word processing method of this embodiment, step S2 includes:

[0052] Sub-step A1: receiving a first input from a user to a target label control.

[0053] See also Figure 5 ,Application scenario, for example, after the user clicks the "Category Filter" option, multiple part-of-speech label controls are displayed, such as the "Noun" label control, etc. Further, when the user clicks the "Noun" label control, the "Noun" label control becomes the target label control.

[0054] Alternatively, see Figure 6 The displayed multiple part-of-speech tag controls can be switched between selected / unselected states by the user by clicking, and the user can also select multiple part-of-speech tag controls at the same time as target tag controls.

[0055] The target label control is any displayed label control.

[0056] Optionally, the label control of this embodiment includes any one of a label, an option, an icon, a display bar, etc.

[0057] Correspondingly, step S3 includes:

[0058] Sub-step A2: Obtain a second candidate word in the first candidate words that matches the target tag indicated by the target tag control.

[0059] Optionally, after step S1, part or all of the first candidate words may be displayed first according to the original arrangement order of the plurality of first candidate words.

[0060] Correspondingly, based on the original arrangement order, multiple labels matching the first candidate words are identified in turn, and it is recorded whether each label matching the first candidate word is consistent with the target label.

[0061] The specific steps are as follows:

[0062] First, in the relationship between vocabulary and labels maintained by the label classification management, identify the labels that match each first candidate word in turn. If the label that matches the first candidate word is consistent with the target label, it is recorded in the matching record; if it does not match, it is recorded in the unmatched record. Among them, in order to avoid errors, the deduplication results of all the first candidate word labels can be obtained. For example, when the target label is a noun label, and the labels that match the first candidate word are: noun label and abstract noun label, then a duplicate noun label can be removed.

[0063] Among them, the number of the second candidate words is at least one.

[0064] Sub-step A3: Arrange the second candidate word in the first position.

[0065] The first position is before the positions of other candidate words, and the other candidate words are the candidate words in the first candidate word except the second candidate word.

[0066] Optionally, the second candidate words are arranged in front, and the other candidate words are arranged in the back; further, among the second candidate words, they are arranged in sequence according to the original arrangement order; among the other candidate words, they are also arranged in sequence according to the original arrangement order.

[0067] In this embodiment, the ranking of the first candidate words can be adjusted according to the part of speech, field, etc. of the first candidate words, so that multiple first candidate words are preferentially displayed according to the target tag such as the target part of speech, target field, etc. selected by the user. In this way, the first candidate words matching the target tag are preferentially displayed to the user, which facilitates the user to quickly filter, avoids tedious search operations, and simplifies user operations.

[0068] In addition, compared with the stroke sequence screening, tone screening, and associated phrase screening methods, this embodiment can avoid the phenomenon of unknown stroke order, uncertain tone, no or uncertain associated phrases, thereby achieving effective screening and easy operation, meeting the user's needs for flexible finding of target words.

[0069] In another embodiment of the present application, the number of target label controls is at least two, the second candidate word includes a first target candidate word and a second target candidate word, and the first position includes a first target position and a second target position.

[0070] In the process of the input method candidate word processing method of this embodiment, step A3 includes:

[0071] Sub-step B1: respectively obtain the number of times the first target candidate word and the second target candidate word match at least two target tags.

[0072] Sub-step B2: arranging the first target candidate word at the first target position, and arranging the second target candidate word at the second target position.

[0073] The number of times the first target candidate word matches at least two target tags is greater than the number of times the second target candidate word matches at least two target tags; and the first target position is before the second target position.

[0074] In the sorting of the second candidate words in this embodiment, the more times the target tags are matched, the earlier the display position is; if the number of times the target tags are matched is the same, they are sorted in the original sorting order.

[0075] Among them, for any label matched by the second candidate word, if it is consistent with a target label, it is considered that the number of times it matches the target label is once, and so on.

[0076] Specifically, in the relationship between words and tags maintained by the tag classification management, the tags matched by the second candidate word are identified, the number of tags matched by the second candidate word that are consistent with at least two target tags is calculated, and the second candidate word is placed in the corresponding frequency record. In this way, after each second candidate word is processed in turn, it is arranged from high to low according to the frequency record, and the ranking result of the second candidate word can be obtained.

[0077] Exemplarily, assuming that the target tag is a noun tag and a quantifier tag, the original arrangement order of multiple first candidate words is "actually", "announcement", and "knight". First, the first candidate words are processed in order. The first first candidate word processed is "actually". The tag matched by "actually" is an adverb, and the number of matches is zero. It is put into the zero record. At this time, the zero record includes "actually". The next first candidate word processed is "announcement". The tag matched by "announcement" is a noun, and the number of matches is once. It is put into the one record. At this time, the one record includes "announcement". The next one to be processed is "knight", and the corresponding number of matches is also once, which is also put into the one record. At this time, the one record includes "announcement" and "knight". The first candidate words are processed in sequence, and zero records and one records are obtained. They are arranged from high to low according to the number of matches. The corresponding order is "announcement", "knight", and "actually". This is the result after the first candidate word is adjusted and sorted. Among them, "announcement" and "knight" are the second candidate words in this embodiment.

[0078] The above is an example of adjusting the ranking of the first candidate word in the input method.

[0079] In this embodiment, when there are too many first candidate words presented by the pinyin input method, multiple part-of-speech tags can be classified using the Chinese word class grammar, and / or multiple field tags can be classified using the vocabulary usage field to sort and adjust the first candidate words, so as to screen out a small range of second candidate words through a new sorting method. Furthermore, multiple tags can be selected at the same time to refine the screened second candidate words, thereby further narrowing the selection range of candidate words, helping users to quickly find the target word, avoiding users from turning pages to search, and simplifying user operations.

[0080] In another embodiment of the present application, the target label control is a child control of the first label control.

[0081] In this embodiment, multiple levels of controls can be established according to the subordinate relationship between tags. For example, if tag A includes tag A1, the tag A control can be displayed. After the user inputs the tag A control, the tag A1 control is displayed, that is, the tag A1 control is a child control of the tag A control.

[0082] Therefore, in this embodiment, the target label control is a child control of the first label control.

[0083] For reference, this embodiment provides a hierarchical management solution for vocabulary.

[0084] Exemplarily, first, a multi-level classification is performed according to the fields in which the vocabulary is used. The multi-level classification structure is as follows: the label classification includes multiple first-level field labels, including life, art and culture, nature and natural sciences, society, etc. Further, each first-level field label includes a second-level field label. Under the life, art and culture labels, there are second-level field labels such as food, clothing, animation, and comics. Under the nature and natural science labels, there are second-level field labels such as biology. Further, each second-level field label includes a third-level field label. Under the food label, there are third-level field labels such as Western food-related and eight major cuisines. By analogy, it also includes fourth-level and other multi-level field labels.

[0085] Furthermore, the relationship between vocabulary and multi-level domain label structure is established. Under each label, the corresponding vocabulary is maintained. A vocabulary can only be placed under a first-level domain label and can only be placed under a parallel-level domain label. For example, under the food label, there are vocabulary: three fresh shark fins, Yongzhou blood duck, etc., and under the clothing label, there are vocabulary: pajamas, beret, etc.

[0086] The hierarchical management scheme based on the above vocabulary is used to adjust the ranking of the first candidate words during input method.

[0087] Among them, this embodiment is preferably applied to the hierarchical management of field labels. In the scenario where the first candidate word needs to be actively screened, the target word is usually not a common popular word, but an uncommon word or a word in a specific field. Therefore, according to this scenario, a multi-level classification based on the use field of the word is added to cover various fields. In more application scenarios, it can also be applied to the hierarchical management of part-of-speech tags.

[0088] In the process of the input method candidate word processing method of this embodiment, after sub-step A2, it also includes:

[0089] Sub-step C1: Obtain a third candidate word in the first candidate words that matches the first label indicated by the first label control.

[0090] Optionally, the first tab control in this embodiment is any one of a label, an icon, an option, a display bar, etc.

[0091] See also Figure 7 , application scenarios, such as, the user clicks the "hierarchical filtering" option, and the first-level field label control, such as the "Life, Art and Culture" label control, is displayed. The user clicks any first-level field label control, such as the "Life, Art and Culture" label control, and the second-level field label controls included in the first-level field label control, such as the "Food" label control, are displayed. The user clicks any second-level field label control, such as the "Food" label control.

[0092] Therefore, in this step, based on obtaining the second candidate word in the first candidate words that matches the target tag indicated by the target tag control, the third candidate word in the first candidate words that matches the first tag indicated by the first tag control is also obtained.

[0093] Correspondingly, after sub-step A3, the following is further included:

[0094] Sub-step C2: Arrange the third candidate word in the second position.

[0095] Among them, the first position is before the second position.

[0096] In this embodiment, it is calculated in sequence whether the tag matched by the first candidate word meets any of the following conditions: condition one, whether it is consistent with the target tag; condition two, whether it is consistent with the first tag, or whether it is consistent with the previous level tag to which the first tag belongs, until the first level tag. The first candidate word that meets any condition is put into the matching record, wherein the first candidate word that meets condition one is the second candidate word, and the first candidate word that meets condition two is the third candidate word.

[0097] Exemplarily, the target pinyin is "jishen", and the original arrangement order of the first candidate word is: "fuselage", "chicken kidney", "Jishen". The hierarchical label control expanded by the user input is: life, art and culture>food>eight major cuisines, and the selected target label control is "eight major cuisines". Assume that the label matched by "chicken kidney" is the diet label. Process the first candidate word in the original order. The first candidate word processed in the first process is "fuselage". The first-level domain label matched by "fuselage" is the machinery label, which is inconsistent with the label in the life, art and culture fields, and "fuselage" is placed in the unmatched record. The first candidate word processed in the second process is "chicken kidney", and the diet label matched by "chicken kidney" is the upper level of the eight major cuisine labels, so "chicken kidney" is placed in the matching record. The candidate word processed in the third process is "Jishen", and the first-level domain label matched by "Jishen" is the music label, which is inconsistent with the label in the life, art and culture fields, so "fuselage" is placed in the unmatched record. The first candidate word is processed in sequence, and the matching records are added to the unmatched records. The results after adjusting the sorting are "chicken kidney", "fuselage", and "Jishen". Among them, "chicken kidney" is the third candidate word.

[0098] It can be seen that the first candidate word that is consistent with the target label, that is, the second candidate word, is ranked in the front; the first candidate word that is inconsistent with the target label and consistent with the target label's parent label, that is, the third candidate word, is ranked in the middle; the first candidate word that is inconsistent with both the target label and its parent label, that is, the other candidate words, is ranked at the back. Among them, in the ranking of the second candidate word, the ranking of the third candidate word, and the ranking of the other candidate words, they are displayed in the original arrangement order.

[0099] Optionally, the third candidate words matching the adjacent level tags of the target tag are displayed first, and the third candidate words matching the other level tags are displayed in sequence.

[0100] In an embodiment of the present application, in addition to displaying multiple label controls in parallel for users to select in parallel, multiple label controls can also be displayed in a hierarchical manner, so that users can filter layer by layer in sequence to narrow the selection range and refine the selection scenarios, thereby assisting users to quickly find target words and simplifying user operations.

[0101] In the process of the input method candidate word processing method of another embodiment of the present application, before step S2, it also includes:

[0102] Step D1: receiving a second input of a fourth candidate word in the first candidate words by a user.

[0103] The second input includes the touch input and air input performed by the user on the screen, and is not limited to the input of clicking, sliding, etc.; the second input also includes the input performed by the user on the physical button on the device, and is not limited to the input of pressing, etc. Moreover, the second input includes one or more inputs, wherein the multiple inputs can be continuous or intermittent.

[0104] Existing pinyin input methods are generally divided into nine-key pinyin and full pinyin. After a user uses the pinyin input method to input pinyin, the differences between the candidate words and the target words that appear are divided into several situations: different pinyin, the same pinyin and the same tone, and the same pinyin but different tones. This embodiment provides a method for quickly finding similar candidate words with the same pinyin and tone through the fourth candidate word, and quickly screening out the target word.

[0105] See also Figure 8 ,The application scenario is as follows: the user selects and long presses the fourth candidate word that has the same pronunciation and tone as the target word.

[0106] Among them, Figure 8 In the figure, “candidate word” represents the fourth candidate word in this embodiment, and the fourth candidate word is one of the first candidate words.

[0107] Step D2: in response to the second input, obtaining a fifth candidate word in the first candidate words, and displaying the first control.

[0108] Among them, the fifth candidate word matches the pinyin and tone of the fourth candidate word.

[0109] In this step, a fifth candidate word that matches the pinyin and tone of the fourth candidate word is obtained from among the multiple first candidate words.

[0110] Optionally, there are multiple fifth candidate words.

[0111] Optionally, the pinyin and tone of the fifth candidate word are matched with those of the fourth candidate word, and the fifth candidate word is considered to have the same pinyin and tone as the fourth candidate word.

[0112] Correspondingly, step S3 includes:

[0113] Sub-step D3: Arrange the fifth candidate word in the third position.

[0114] The third position is before the positions of other candidate words, and the other candidate words are the candidate words in the first candidate word except the fifth candidate word.

[0115] Before this step, the user performs a first input on the displayed first control.

[0116] See also Figure 8 , application scenario, for example, a user clicks the control where the "candidate word" is located.

[0117] Optionally, after this step, part or all of the first candidate words may be displayed, wherein the fifth candidate word is displayed preferentially.

[0118] Optionally, after this step, part or all of the fifth candidate words may be displayed.

[0119] Application scenarios include: after inputting the target pinyin "qishi", the first candidate words such as "notice", "knight", and "actually" appear. The user long presses "actually" to display the fifth candidate words such as "strange stone" and "at that time" which are homophonic and homophonic with "actually".

[0120] Optionally, after this step, part of the fifth candidate words and the second control may be displayed, and after the user inputs into the second control, another part of the fifth candidate words may be displayed.

[0121] See also Figure 8 , the application scenario is, for example, displaying the fifth candidate words in batches. Among them, one batch of the fifth candidate words and the option of "changing a batch" are displayed. If there is no target word in the currently displayed fifth candidate words, the user can click the option of "changing a batch" to switch to the next batch of fifth candidate words.

[0122] Optionally, a "Cancel" option may also be displayed. The user may click the "Cancel" option to exit the current display mode.

[0123] Optionally, the fifth candidate word is displayed around the fourth candidate word to enhance the display effect.

[0124] Optionally, after the user long presses the fourth candidate word, if the target word is in the currently displayed fifth candidate word, the user can directly slide the finger to the target word and release the finger to select it, which is more in line with touch operation.

[0125] In this embodiment, by selecting the fourth candidate word, a fifth candidate word with the same pronunciation and tone can be associated, thereby achieving further refined screening of the first candidate word to assist the user in quickly finding the target word, avoiding the user from turning pages to search, and simplifying user operations.

[0126] In summary, the purpose of this application is to provide a method for classifying and adjusting the order of candidate words in combination with the user when he needs to find the target word, so as to assist the user to quickly find the target word. Based on the multiple embodiments provided above, when the target word is difficult to find among the candidate words that appear, it can be quickly found through a variety of screening schemes. These include: classifying and managing the part-of-speech tags of the candidate words, so that the candidate words can be secondary screened by the tags when input; classifying and managing the field-level tags of the candidate words, so that the candidate words can be secondary screened by the tags when input; by selecting candidate words with the same pinyin and tone, the candidate words are secondary screened by the same pinyin and tone. The above-mentioned multiple screening schemes may appear alone in one embodiment, or may appear in combination in one embodiment. At the same time, when the user needs to actively screen the candidate words, the user has no additional learning cost for the screening and classification of the vocabulary, and it is easy to understand and will not be confused.

[0127] It should be noted that the input method candidate word processing method provided in the embodiment of the present application can be executed by an input method candidate word processing device, or a control module in the input method candidate word processing device for executing the input method candidate word processing method. In the embodiment of the present application, the input method candidate word processing device executing the input method candidate word processing method is taken as an example to illustrate the device of the input method candidate word processing method provided in the embodiment of the present application.

[0128] Fig. 9 A block diagram of an input method candidate word processing device according to another embodiment of the present application is shown, comprising:

[0129] A first candidate word acquisition module 10, configured to receive a first character string input by a user and acquire a first candidate word associated with the first character string;

[0130] A first input receiving module 20, used to receive a first input of a user to a first control;

[0131] The first input response module 30 is used to adjust the ranking of the plurality of first candidate words in response to the first input.

[0132] Thus, in an embodiment of the present application, a user inputs a first character string in an input method interface, such as any pinyin, and first obtains a first candidate word associated with the first character string. Usually, there are multiple first candidate words. Furthermore, part of the first candidate words and the first control can be displayed. If the currently displayed first candidate words do not have the target word required by the user, the user can make a first input to the first control, such as the user clicking on the option "rearrange in XX order", etc., so that in response to the first input, the multiple first candidate words can be sorted and adjusted according to the preset rules associated with the first input, such as in XX order. It can be seen that in this embodiment, the multiple first candidate words after sorting are adjusted and associated with the user's needs, so that the user can quickly determine the target word among the multiple first candidate words after sorting, without having to keep turning pages, thereby simplifying user operations.

[0133] Optionally, the first control includes a target label control;

[0134] The first input receiving module 20 comprises:

[0135] The label control input receiving unit is used to receive a first input of a user to a target label control; wherein the target label corresponding to the target label control includes: at least one of a part-of-speech label and a domain label;

[0136] The first input response module 30 comprises:

[0137] A second candidate word acquisition unit, configured to acquire a second candidate word from the first candidate words that matches a target tag indicated by a target tag control;

[0138] The second candidate word arrangement unit is used to arrange the second candidate word in a first position; wherein the first position is before the positions of other candidate words, and the other candidate words are the candidate words in the first candidate word except the second candidate word.

[0139] Optionally, the number of target label controls is at least two, the second candidate word includes a first target candidate word and a second target candidate word, and the first position includes a first target position and a second target position;

[0140] The second candidate word arrangement unit includes:

[0141] A matching number acquisition subunit, used to respectively acquire the number of times the first target candidate word and the second target candidate word match at least two target tags;

[0142] A second candidate word ranking subunit, configured to arrange the first target candidate word at a first target position, and arrange the second target candidate word at a second target position;

[0143] The number of times the first target candidate word matches at least two target tags is greater than the number of times the second target candidate word matches at least two target tags; and the first target position is before the second target position.

[0144] Optionally, the target label control is a child control of the first label control;

[0145] The first input response module 30 further includes:

[0146] A third candidate word acquisition unit, configured to acquire a third candidate word from the first candidate words that matches the first label indicated by the first label control;

[0147] A third candidate word arranging unit, used for arranging the third candidate word at the second position;

[0148] Among them, the first position is before the second position.

[0149] Optionally, the device further comprises:

[0150] A second input receiving module, used for receiving a second input of a user for a fourth candidate word in the first candidate word;

[0151] A second input response module, configured to obtain a fifth candidate word from the first candidate words in response to the second input, and display a first control; wherein the fifth candidate word matches the fourth candidate word in terms of pinyin and tone;

[0152] The first input response module 30 comprises:

[0153] The fifth candidate word arrangement unit is used to arrange the fifth candidate word in a third position; wherein the third position is before the positions of other candidate words, and the other candidate words are the candidate words in the first candidate word except the fifth candidate word.

[0154] The input method candidate word processing device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device can be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0155] The input method candidate word processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0156] The input method candidate word processing device provided in the embodiment of the present application can achieve Figures 1 to 8 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0157] Alternatively, if Fig.10 As shown, an embodiment of the present application also provides an electronic device 100, including a processor 101, a memory 102, and a program or instruction stored in the memory 102 and executable on the processor 101. When the program or instruction is executed by the processor 101, each process of the above-mentioned input method candidate word processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0158] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0159] Fig.11 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0160] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.

[0161] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.11 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0162] Among them, the user input unit 1007 is used to receive a first string input by a user and receive the user's first input to a first control; the processor 1010 is used to obtain a first candidate word associated with the first string and adjust the order of multiple first candidate words in response to the first input.

[0163] Thus, in an embodiment of the present application, a user inputs a first character string in an input method interface, such as any pinyin, and first obtains a first candidate word associated with the first character string. Usually, there are multiple first candidate words. Furthermore, part of the first candidate words and the first control can be displayed. If the currently displayed first candidate words do not have the target word required by the user, the user can make a first input to the first control, such as the user clicking on the option "rearrange in XX order", etc., so that in response to the first input, the multiple first candidate words can be sorted and adjusted according to the preset rules associated with the first input, such as in XX order. It can be seen that in this embodiment, the multiple first candidate words after sorting are adjusted and associated with the user's needs, so that the user can quickly determine the target word among the multiple first candidate words after sorting, without having to keep turning pages, thereby simplifying user operations.

[0164] Optionally, the first control includes a target label control; the user input unit 1007 is also used to receive the user's first input to the target label control; wherein the target label corresponding to the target label control includes: at least one of a part-of-speech tag and a domain tag; the processor 1010 is also used to obtain a second candidate word in the first candidate word that matches the target label indicated by the target label control; arrange the second candidate word in a first position; wherein the first position is before the positions of other candidate words, and the other candidate words are candidate words in the first candidate word except the second candidate word.

[0165] Optionally, the number of target label controls is at least two, the second candidate word includes a first target candidate word and a second target candidate word, and the first position includes a first target position and a second target position; the processor 1010 is also used to respectively obtain the number of times the first target candidate word and the second target candidate word match at least two of the target labels; arrange the first target candidate word at the first target position, and arrange the second target candidate word at the second target position; wherein the number of times the first target candidate word matches at least two of the target labels is greater than the number of times the second target candidate word matches at least two of the target labels; and the first target position is before the second target position.

[0166] Optionally, the target label control is a child control of the first label control; the processor 1010 is further used to obtain a third candidate word in the first candidate words that matches the first label indicated by the first label control; and arrange the third candidate word in a second position; wherein the first position is before the second position.

[0167] Optionally, the user input unit 1007 is also used to receive the user's second input for the fourth candidate word in the first candidate words; the processor 1010 is also used to obtain the fifth candidate word in the first candidate words in response to the second input; wherein the fifth candidate word matches the pinyin and tone of the fourth candidate word; the fifth candidate word is arranged in a third position; wherein the third position is before the positions of other candidate words, and the other candidate words are the candidate words in the first candidate words except the fifth candidate word; the display unit 1006 is used to display the first control.

[0168] The purpose of this application is to provide a method for classifying and adjusting the order of candidate words in combination with the user when he needs to find the target word, so as to assist the user to quickly find the target word. Based on the multiple embodiments provided above, when the target word is difficult to find among the candidate words that appear, it can be quickly found through a variety of screening schemes. These include: classifying and managing the part-of-speech tags of the candidate words, so that the candidate words can be secondary screened by the tags when input; classifying and managing the field-level tags of the candidate words, so that the candidate words can be secondary screened by the tags when input; by selecting candidate words with the same pinyin and tone, the candidate words are secondary screened by the same pinyin and tone. The above-mentioned multiple screening schemes may appear alone in one embodiment, or may appear in combination in one embodiment. At the same time, when the user needs to actively screen the candidate words, the user has no additional learning cost for the screening and classification of the vocabulary, and it is easy to understand and will not be confused.

[0169] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 1009 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1010.

[0170] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned input method candidate word processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0171] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0172] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned input method candidate word processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0173] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0174] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0175] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0176] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for processing candidate words of an input method, characterized in that: The method comprises: receiving a first character string input by a user, and obtaining a first candidate word associated with the first character string; receiving a first input of the user to a first control; In response to the first input, adjusting the ranking of the plurality of first candidate words; The first control includes a target label control; The receiving a first input of the user to the first control includes: Receiving a first input of the user to the target tag control; wherein the target tag corresponding to the target tag control includes: at least one of a part-of-speech tag and a domain tag; The adjusting the order of the plurality of first candidate words comprises: Obtaining a second candidate word from the first candidate words that matches the target tag indicated by the target tag control; Arrange the second candidate word in a first position; wherein the first position is before the positions of other candidate words, and the other candidate words are the candidate words in the first candidate words except the second candidate word; The number of the target label controls is at least two, the second candidate words include a first target candidate word and a second target candidate word, and the first position includes a first target position and a second target position; The step of arranging the second candidate word in the first position includes: Respectively obtaining the number of times the first target candidate word and the second target candidate word match at least two of the target tags; Arranging the first target candidate word at the first target position, and arranging the second target candidate word at the second target position; The number of times the first target candidate word matches at least two of the target tags is greater than the number of times the second target candidate word matches at least two of the target tags; and the first target position is before the second target position.

2. The method according to claim 1, characterized in that The target label control is a child control of the first label control; After obtaining a second candidate word in the first candidate words that matches the target tag indicated by the target tag control, the method further includes: Obtaining a third candidate word in the first candidate words that matches the first label indicated by the first label control; The step of arranging the second candidate word after the first position further includes: arranging the third candidate word in a second position; Wherein, the first position is before the second position.

3. The method according to claim 1, characterized in that Before receiving the first input of the user to the first control, the method further includes: receiving a second input from the user regarding a fourth candidate word in the first candidate words; In response to the second input, a fifth candidate word in the first candidate words is obtained, and a first control is displayed; wherein the fifth candidate word matches the pinyin and tone of the fourth candidate word; The step of adjusting the ranking of the plurality of first candidate words in response to the first input comprises: Arrange the fifth candidate word at a third position; wherein the third position is before positions of other candidate words, and the other candidate words are the candidate words in the first candidate words except the fifth candidate word.

4. An input method candidate word processing device, characterized in that: The device comprises: A first candidate word acquisition module, configured to receive a first character string input by a user, and acquire a first candidate word associated with the first character string; A first input receiving module, used for receiving a first input of the user to a first control; A first input response module, configured to adjust the order of the plurality of first candidate words in response to the first input; The first control includes a target label control; The first input receiving module comprises: A label control input receiving unit, configured to receive a first input of the user to the target label control; wherein the target label corresponding to the target label control includes: at least one of a part-of-speech label and a domain label; The first input response module includes: A second candidate word acquisition unit, configured to acquire a second candidate word from the first candidate words that matches the target tag indicated by the target tag control; A second candidate word arrangement unit, configured to arrange the second candidate word in a first position; wherein the first position is before positions of other candidate words, and the other candidate words are candidate words in the first candidate words except the second candidate word; The number of the target label controls is at least two, the second candidate words include a first target candidate word and a second target candidate word, and the first position includes a first target position and a second target position; The second candidate word arrangement unit comprises: A matching number acquisition subunit, used to respectively acquire the number of times the first target candidate word and the second target candidate word match at least two of the target tags; a second candidate word sorting subunit, configured to sort the first target candidate word at the first target position, and sort the second target candidate word at the second target position; The number of times the first target candidate word matches at least two of the target tags is greater than the number of times the second target candidate word matches at least two of the target tags; and the first target position is before the second target position.

5. The device according to claim 4, characterized in that The target label control is a child control of the first label control; The first input response module further includes: A third candidate word acquisition unit, configured to acquire a third candidate word from among the first candidate words that matches the first label indicated by the first label control; A third candidate word arranging unit, used for arranging the third candidate word at a second position; Wherein, the first position is before the second position.

6. The device according to claim 4, characterized in that The device further comprises: A second input receiving module, configured to receive a second input of the user for a fourth candidate word in the first candidate words; A second input response module, configured to obtain a fifth candidate word from the first candidate words in response to the second input, and display a first control; wherein the fifth candidate word matches the pinyin and tone of the fourth candidate word; The first input response module includes: The fifth candidate word arrangement unit is used to arrange the fifth candidate word in a third position; wherein the third position is before the positions of other candidate words, and the other candidate words are the candidate words in the first candidate words except the fifth candidate word.