A method, device and apparatus for determining an input object
By calculating the re-entry cost and adjacent appearance probability of the candidate object, the target object of the input object is determined, which solves the problem of input errors caused by user accidental touches, reduces backspace and re-enter operations, and improves input efficiency and experience.
Patent Information
- Application Number
- CN201910696900.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-07-30
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2040-03-24
AI Technical Summary
During the input process, users are prone to mistaken input objects due to accidental touches, and need to perform backspace and re-enter operations, which increases the user's cost of backspace and re-enter.
By obtaining the input content and the user's operations, the candidate object's re-entering cost and adjacent appearance probability are calculated, and the target object is determined to reduce the necessity of backspace and re-entering.
It improves the accuracy of input objects, reduces the cost of backspace and retyping for users, and improves input efficiency and experience.
Smart Images

Figure CN112306253B
Abstract
Description
Technical Field
[0001] This application relates to the technical field of input methods, and particularly to a method, apparatus, and device for determining an input object. Background Art
[0002] When users use various applications, they usually use an input method to input corresponding information into the application. For example, when a user communicates with other users based on an instant messaging client, the user usually calls the input method and inputs interaction information for communicating with the other party on the input interface of the input method.
[0003] In practical applications, the user may accidentally touch the screen during the input process, so that the user needs to perform a backspace operation and a content re-entry operation. For example, after the user inputs the pinyin string "relie", the input method has presented the candidate item "热烈" (enthusiastic), and the user originally intended to click on the candidate item "热烈" presented by the input method, but may accidentally touch the keys such as "Q" and "W" on the input interface. At this time, the terminal determines that the input object is "Q" or "W" instead of the candidate item "热烈" based on the user's operation, so that the user needs to backspace and re-enter; another example is that after the user inputs the pinyin string "reliehuan", the candidate items presented by the input method are "热烈换" (enthusiastic change), which is not what the user expects to input, "热烈欢迎" (warm welcome), and the user originally intended to continue to input the pinyin string "ying", but may accidentally touch the candidate item closer to the "y" key provided by the input method when inputting "y". At this time, the terminal determines that the input object is the candidate item instead of "y" based on the user's operation, so that the user needs to backspace the candidate item that has been input onto the screen and re-enter the pinyin string "reliehuanying" or "reliehuany", resulting in a relatively high cost for the user to backspace and re-enter. Summary of the Invention
[0004] Embodiments of this application provide a method, apparatus, and device for determining an input object, so as to determine the object that the user actually expects to input according to the user's operation, so that the user does not need to backspace and re-enter the content input onto the screen because the input object determined by the terminal is correct, thereby reducing the cost for the user to backspace and re-enter.
[0005] In a first aspect, embodiments of this application provide a method for determining an input object, the method including:
[0006] Obtain the input content that has been input;
[0007] In response to an object selection operation of the user on the input interface, determine the re-entry cost of continuing to input a candidate object on the basis of the input content that has been input, where the candidate object is an input object that can be selected on the input interface;
[0008] A target object among the candidate objects is determined according to the re-input costs of the candidate objects.
[0009] In some possible implementations, the re-input cost of the candidate object is determined based on a historical re-input operation of the candidate object, where the historical re-input operation is a historical operation required to re-input the input content after continuing to input the candidate object based on the input content.
[0010] In some possible implementations, the re-input cost includes the number of key clicks and / or the re-input duration, wherein the number of key clicks refers to the number of key clicks required to re-input the input content after continuing to input the candidate object based on the input content, and the re-input duration refers to the time required to re-input the input content after continuing to input the candidate object based on the input content.
[0011] In some possible implementations, the method further includes:
[0012] Calculating the adjacent occurrence probability of the candidate object input by the user and the input content;
[0013] Then, determining the target object among the candidate objects based on the re-input cost of the candidate objects includes:
[0014] A target object among the candidate objects is determined according to the re-input cost of the candidate objects and the adjacent occurrence probability.
[0015] In some possible implementations, the method further includes:
[0016] Determining a first input candidate item determined after inputting the candidate object based on the adjacent occurrence probability;
[0017] The display order of the first input candidate items is adjusted according to the re-input cost of the candidate objects.
[0018] In some possible implementations, the method further includes:
[0019] determining a correlation degree between a target position of the object selection operation on the input interface and the candidate object;
[0020] Then, determining the target object among the candidate objects based on the re-input cost of the candidate objects includes:
[0021] A target object among the candidate objects is determined according to the re-input cost of the candidate objects and the association degree.
[0022] In some possible implementations, the method further includes:
[0023] Determining, based on the association degree, a second input candidate item determined after inputting the candidate object;
[0024] The display order of the second input candidate items is adjusted according to the re-input cost of the candidate objects.
[0025] In some possible implementations, the method further includes:
[0026] determining an initial selection object based on a position of the object selection operation on the input interface;
[0027] A third input candidate item and a fourth input candidate item are displayed, wherein the third input candidate item is determined based on the initial selection object and the input content, and the fourth input candidate item is determined based on the target object and the input content.
[0028] In a second aspect, an embodiment of the present application further provides a device for determining an input object, the device comprising:
[0029] The acquisition module is used to obtain the input content;
[0030] A first determination module, configured to determine, in response to a user's object selection operation on the input interface, a re-input cost of continuously inputting a candidate object based on the input content, wherein the candidate object is an input object that can be selected on the input interface;
[0031] The second determination module is used to determine the target object among the candidate objects according to the re-input cost of the candidate objects.
[0032] In some possible implementations, the re-input cost of the candidate object is determined based on a historical re-input operation of the candidate object, where the historical re-input operation is a historical operation required to re-input the input content after continuing to input the candidate object based on the input content.
[0033] In some possible implementations, the re-input cost includes the number of key clicks and / or the re-input duration, wherein the number of key clicks refers to the number of key clicks required to re-input the input content after continuing to input the candidate object based on the input content, and the re-input duration refers to the time required to re-input the input content after continuing to input the candidate object based on the input content.
[0034] In some possible implementations, the device further includes:
[0035] A calculation module, used to calculate the adjacent occurrence probability of the candidate object input by the user and the input content;
[0036] Then, the second determination module is specifically configured to determine the target object among the candidate objects according to the re-input cost of the candidate objects and the adjacent occurrence probability.
[0037] In some possible implementations, the device further includes:
[0038] A third determination module, configured to determine, based on the adjacent occurrence probability, a first input candidate item determined after the candidate object is input;
[0039] The first adjustment module is used to adjust the display order of the first input candidate items according to the re-input cost of the candidate objects.
[0040] In some possible implementations, the device further includes:
[0041] A fourth determination module, used to determine the degree of association between the target position of the object selection operation on the input interface and the candidate object;
[0042] Then, the second determination module is specifically configured to determine the target object among the candidate objects according to the re-input cost of the candidate objects and the association degree.
[0043] In some possible implementations, the device further includes:
[0044] A fifth determination module, configured to determine, based on the association degree, a second input candidate item determined after the candidate object is input;
[0045] The second adjustment module is used to adjust the display order of the second input candidate items according to the re-input cost of the candidate objects.
[0046] In some possible implementations, the device further includes:
[0047] A sixth determining module, configured to determine an initial selected object based on a position of the object selection operation on the input interface;
[0048] The display module is used to display a third input candidate item and a fourth input candidate item, wherein the third input candidate item is determined based on the initial selection object and the input content, and the fourth input candidate item is determined based on the target object and the input content.
[0049] In a third aspect, an embodiment of the present application further provides a device for determining an input object, characterized in that it includes a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, including for executing the method provided in the first aspect described above.
[0050] In a fourth aspect, an embodiment of the present application further provides a non-temporary computer-readable storage medium, which, when instructions in the storage medium are executed by a processor of an input device, enables the input device to execute the method provided in the first aspect described above.
[0051] In the above implementation of the embodiment of the present application, the terminal can obtain the input content, and in response to the user's object selection operation on the input interface, determine the re-entry cost of continuing to enter the candidate object based on the input content, wherein the candidate object is an input object that can be selected on the input interface, and then the terminal can determine the target object among the candidate objects according to the input cost of the candidate object, that is, the input object finally determined. It can be seen that when the user selects an object on the input interface, the terminal can determine the object input by the object selection operation performed by the user according to the re-entry cost caused by continuing to enter the object based on the input content. In this way, the terminal can determine the object corresponding to the smaller or minimum re-entry cost as the object selected by the user, so that the input object determined by the terminal is more likely to meet the object expected to be input by the user, so that the user does not need to backspace and re-enter the input content on the upper screen because the input object determined by the terminal is correct, thereby reducing the user's backspace and re-entry cost, and improving the user's input efficiency and input experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0053] Figure 1 This is a schematic diagram of an exemplary application scenario in an embodiment of the present application;
[0054] Figure 2 This is a flow chart of a method for determining an input object in an embodiment of the present application;
[0055] Figure 3 This is a schematic diagram of the structure of a device for determining an input object in an embodiment of the present application;
[0056] Figure 4 This is a schematic diagram of the structure of a device for determining an input object in an embodiment of the present application. DETAILED DESCRIPTION
[0057] When a user uses an input method to input content, it may not be possible to ensure that each object selection operation on the input method input interface can make the input object determined by the terminal the input object expected by the user. For example, when a user uses a 26-key input method to input, the letter expected to be input is "W", and the input object determined by the terminal based on the user's operation on the input interface may be "Q", "S" or "E", so that the input object determined by the terminal is different from the object expected to be input by the user. It can be understood that when the input object determined by the terminal is inconsistent with the object expected to be input by the user, the user needs to backspace and re-enter the input content, resulting in a large backspace and re-enter cost, reducing the user's input efficiency and affecting the user's input experience.
[0058] Based on this, the embodiment of the present application provides a method for determining an input object, which determines the object that the user actually wants to input according to the re-input cost caused by the user continuing to input the selected object based on the input content, so that the user does not need to backspace and re-enter the content on the screen because the input object determined by the terminal is correct, thereby reducing the user's backspace and re-input cost. Specifically, the terminal can obtain the input content that has been input, and in response to the user's object selection operation on the input interface, determine the re-input cost of continuing to input the candidate object based on the input content, wherein the candidate object is an input object that can be selected on the input interface, and then the terminal can determine the target object among the candidate objects according to the input cost of the candidate object, that is, the input object finally determined. It can be seen that when the user selects an object on the input interface, the terminal can determine the object input by the object selection operation performed by the user according to the re-input cost caused by continuing to input the object based on the input content. In this way, the terminal can determine the object corresponding to the smaller or minimum re-entry cost as the object selected by the user, so that the input object determined by the terminal is more likely to meet the object expected by the user. As a result, the user does not need to backspace and re-enter the content input on the upper screen because the input object determined by the terminal is correct, thereby reducing the user's backspace and re-entering cost and improving the user's input efficiency and input experience.
[0059] As an example, the embodiments of the present application can be applied to Figure 1The exemplary application scenario shown. In this scenario, user 101 can use the input method to input the instant messaging content "warm welcome" on terminal 102. After user 101 inputs "warm" and "huan" on the upper screen, he continues to perform the object selection operation for the "y" key on the input interface in the hope of inputting the letter "y"; at this time, the terminal can obtain the content that the user has input (that is, "warm" in the text box and "huan" on the upper screen), and respond to the object selection operation performed by the user, and determine the re-entry cost of continuing to input candidate objects such as "y", "t", "h", and "u" based on the input content. Then, the terminal can determine the target object "y" among the candidate objects according to the re-entry cost corresponding to each candidate object ("y", "t", "h", "u", etc.). In this way, even if the user's object selection operation for the "y" key deviates on the input interface (for example, "t" is selected by mistake), the terminal can also determine that the final input object is "y" instead of "t" based on the re-entry cost corresponding to each candidate object.
[0060] It is understandable that the above scenario is only an example scenario provided by the embodiment of the present application, and the embodiment of the present application is not limited to this scenario. For example, in other possible application scenarios, considering the computing power of the terminal and the limited number of entries in the local vocabulary, the terminal can request the server to perform the corresponding processing after the user performs the object selection operation, that is, use the server with strong computing power and a vocabulary with rich entries to determine the re-input cost corresponding to each candidate object, thereby further determining the input object. In short, the embodiment of the present application can be applied to any applicable application scenario, not limited to the above scenario example.
[0061] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, various non-limiting implementation methods in the embodiments of the present application are exemplarily described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.
[0062] See also Figure 2 , Figure 2 A schematic flow chart of a method for determining an input object in an embodiment of the present application is shown. The method may specifically include:
[0063] S201: Obtain input content.
[0064] In practical applications, when a user makes continuous input, there is a certain association between the content that has been input and the current input content. Based on this, when the terminal responds to the object selection operation currently performed by the user, it can determine which object on the input interface the object selection operation is directed at based on the content that the user has previously input. For example, after the user has input the Chinese characters "热烈" (which means "warmly") on the screen using the 26-key input method, the probability of the user inputting the letter "h" next is relatively high (that is, the user usually inputs "热烈欢迎" which means "warmly welcome"). Therefore, based on the input "热烈" by the user, the terminal can consider that the probability that the user's current object selection operation on the input interface is an operation directed at the "y" key is relatively high.
[0065] It should be noted that when the terminal determines the user's current object selection operation, the content that the user has input and obtained can be the content that the user has input and displayed on the screen, including the input pinyin string and / or Chinese characters, etc. For example, the content that has been input can be Figure 1 the "热烈" shown in Figure 1 or the "huan" shown in
[0066] or both "热烈" and "huan", etc. In some possible implementation manners, the content that has been input can also be the text input earlier. For example, in an instant messaging scenario, the content that has been input can also include the text that the user has sent to the other end.
[0066] S202: In response to the user's object selection operation on the input interface, determine the re-input cost of continuing to input candidate objects based on the content that has been input, where the candidate objects are input objects that can be selected on the input interface.
[0067] In this embodiment, during the process of responding to the user's object selection operation on the input interface, the re-input cost can be used to determine which object on the input interface the user's object selection operation is directed at. Among them, the re-input cost refers to the re-input cost imposed on the user when the user continues to input the candidate object based on the content that has been input.
[0068] Generally, when continuing to input candidate objects based on the already input content, if the re - input cost caused by a candidate object is relatively high, it indicates that once the candidate object does not meet the user's expected input, the user needs to spend a relatively high cost for re - input. Specifically, it may be necessary to perform more operations and / or consume more time to restore the input content on the screen to the input content before the user input this candidate object. Correspondingly, the greater the re - input cost, the smaller the possibility that this candidate object is the object expected to be input by the user, and the less likely the object selection operation is targeted at this candidate object. On the contrary, if the re - input cost caused by a candidate object is relatively low, it indicates that once the candidate object does not meet the user's expected input, the user only needs to spend a relatively low cost for re - input. Especially when the candidate object is exactly the object expected to be input by the user, the re - input cost is 0. Therefore, the smaller the re - input cost, the greater the possibility that this candidate object is the object expected to be input by the user, and the more likely the object selection operation is targeted at this candidate object.
[0069] For example, as Figure 1 shown, the user has input "热烈" (fervent) and the pinyin string "huan" on the input interface. Regarding the object selection operation when the user continues to input, when the candidate object determined by this object selection operation is "t" (which does not match the expected input "y" of the user), the user needs to click the backspace button to delete the "t" input on the screen by this object selection operation. The re - input cost caused by this candidate object "t" is the cost of restoring the current input content "热烈" and "huant" to the already input content "热烈" and "huan". When the candidate object determined by this object selection operation is "换" (change) (which does not match the expected input "y" of the user), the user needs to click the backspace button to delete the "换" input on the screen by this object selection operation, and at least four object selection operations need to be performed to complete the input of "huan". The re - input cost caused by this candidate object "换" is the cost of restoring the current input content "热烈换" to the already input content "热烈" and "huan". When the candidate object determined by this object selection operation is "y" (which matches the expected input "y" of the user), the user does not need to perform relevant re - input operations, that is, the re - input cost is 0. Thus, it can be seen that the re - input cost caused by the candidate object "换" is greater than the re - input cost caused by the candidate object "t", and the re - input cost caused by the candidate object "t" is greater than the re - input cost caused by the candidate object "y".
[0070] In an exemplary embodiment, the re-entry cost of a candidate object can be determined based on the historical re-entry operations for the candidate object. Here, the historical re-entry operation refers to the historical operation required to re-enter the already-entered content after continuing to enter the candidate object based on the already-entered content. Still taking the already-entered content as "热烈" and the pinyin string "huan" as an example, the terminal can collect the operations that the user performed in the past after entering "热烈" and "huan", and based on the user's further object selection operations, the input content "t", "huan", or "y" was entered on the screen. The user continued to perform operations on the input interface to restore the currently entered content on the screen to "热烈" and "huan", and thus the re-entry cost of the candidate object can be determined based on this re-entry operation.
[0071] In an exemplary embodiment of practical application, the re-entry cost imposed on the user by a candidate object can specifically be the number of button clicks and / or the re-entry duration.
[0072] Among them, the number of button clicks refers to the number of button clicks required to re-enter the already-entered content after continuing to enter the candidate object based on the already-entered content. For example, the re-entry cost caused by the candidate object "t" can be that the number of button clicks required to restore the input content "热烈" and "huant" after entering the candidate object to "热烈" and "huan" is 1, that is, the user needs to click the backspace button 1 time to restore the input. Another example is that the re-entry cost caused by the candidate object "换" can be that the number of button clicks required to restore the input content "热烈换" after entering the candidate object to "热烈" and "huan" is 5, that is, the user needs to click the backspace button 1 time and click the letter buttons 4 times (to enter "h", "u", "a", "n" in sequence).
[0073] The re-entry duration refers to the duration required to re-enter the already-entered content after continuing to enter the candidate object based on the already-entered content. For example, according to the historical re-entry operations collected by the terminal, it can be obtained that after the user enters the candidate object "t", the duration required for the user to restore the input content "热烈" and "huant" after entering the candidate object "t" to "热烈" and "huan" is 1 second, that is, the re-entry duration is 1 second. Another example is that after the user enters the candidate object "换", the duration required for the user to restore the input content "热烈换" after entering the candidate object "换" to "热烈" and "huan" is 2 seconds, that is, the re-entry duration is 2 seconds.
[0074] Of course, in practical applications, the re-entry cost of a candidate object can also be determined according to rules preset by technicians, and is not limited to being determined based on the above historical re-entry operations.
[0075] S203: Determine the target object among the candidate objects according to the re-input cost of the candidate objects.
[0076] In this embodiment, the candidate object may be any selectable input object on the input interface, or may be an input object in a local area on the input interface, for example, an input object within a certain length range with the position of the object selection operation on the input interface as the core. Then, after determining the re-input cost of each candidate object, the target object may be determined from multiple candidate objects by comparing the re-input costs of each candidate object.
[0077] Of course, in addition to determining the target object based on the re-entry cost of the candidate object, in other possible implementations, the terminal can also determine the target object among the candidate objects by combining the adjacent occurrence probability between the candidate object input by the user and the input content, and the re-entry cost of the candidate object. It can be understood that since there is a certain correlation between two adjacent correct inputs in actual applications, the probability between the input content and the content that the user expects to continue to input is usually greater than the probability between the input content and the content that the user does not expect to input, so the adjacent occurrence probability between the input content and the candidate object can also be considered when determining the target object.
[0078] Generally speaking, the greater the probability of adjacent appearance between the input content and the candidate object, the higher the possibility that the user will continue to input the candidate object based on the input content. Conversely, the smaller the probability of adjacent appearance between the input content and the candidate object, the lower the possibility that the user will continue to input the candidate object based on the input content. For example, in actual applications, assuming that the input content is "warm" and "huan", the probability between the two words "warm" and "welcome" (the candidate object and "y") is usually greater than the probability between "warm" and "auditory hallucination" (the candidate object is "t"). Therefore, it can be considered that the probability of adjacent appearance between "y" and the input content is greater than the probability of adjacent appearance between "t" and the input content, that is, "y" is more likely to be the content that the user expects to continue to input.
[0079] In specific implementation, the terminal can first calculate the adjacent appearance probability of the candidate object and the input content when the user enters it on the input interface, for example, it can be the multivariate probability between the candidate object and the input content; after determining the target object, the terminal can determine the target object among the candidate objects based on the calculated adjacent appearance probability between the candidate object and the input content.
[0080] In one example, weights may be set for the adjacent occurrence probabilities and re-entry costs corresponding to the candidate objects, and the score of each candidate object may be calculated according to formula (1), which is as follows:
[0081] The score of each candidate object = adjacent occurrence probability × weight 1 - re - input cost × weight 2 (1)
[0082] Then, when the terminal determines the target object, it can determine the candidate object with the largest score value among the candidate objects as the target object.
[0083] In a further possible implementation manner, the determined target object can be used to adjust the display order of the input candidates. Specifically, after the terminal calculates the adjacent occurrence probability between the candidate object input by the user and the already - input content, it can determine the first input candidate determined after inputting this candidate object based on this adjacent occurrence probability. For example, the determined first input candidate can be determined by the candidate object corresponding to a higher adjacent occurrence probability and the already - input content. Then, the terminal can adjust the display order of the first input candidate according to the re - input cost of this candidate object.
[0084] For example, assume that the content input by the user on the screen is "热烈" (enthusiastic) and "huan", and the candidate objects with relatively high adjacent occurrence probabilities with the already - input content are "y" and "t" respectively. Then, the input candidate corresponding to "huant", i.e., "幻听" (auditory hallucination), can be determined based on "热烈", "huan", and "t", and the input candidates corresponding to "huany", i.e., "欢迎" (welcome) and "幻影" (phantom), can be determined based on "热烈", "huan", and "y". Then, the first input candidates are "幻听", "欢迎", and "幻影". Then, the terminal can adjust the display order of the first input candidates from "幻听", "欢迎", "幻影" to "欢迎", "幻影", "幻听" according to the re - input costs of the candidate objects "y" and "t". In this way, the candidates that are relatively more likely to meet the user's expected input can be preferentially displayed to the user.
[0085] In still some other possible implementation manners, when the terminal determines the target object based on the re - input cost of the candidate object, it can also consider the degree of association between the target position of the object selection operation performed by the user on the input interface and the candidate object. It can be understood that the user's object selection operation usually represents the user's selection of the candidate object on the input interface. For example, when the user expects to input "y", usually a click is made on the "y" key on the input interface (i.e., an object selection operation is performed on the "y" key). Therefore, when determining the target object, a comprehensive judgment can be made by combining the re - input cost of the candidate object and the degree of association between the above - mentioned target position and the candidate object.
[0086] Specifically, when implementing, after the user performs an object selection operation, the terminal can determine the degree of association between the target position of this object selection operation on the input interface and the candidate object, and then determine the target object among the candidate objects according to the degree of association and the re - input cost corresponding to each candidate object.
[0087] In one example, weights may be set for the association degree and re-entry cost corresponding to the candidate objects, and the score of each candidate object may be calculated according to formula (2), which is as follows:
[0088] The score of each candidate object = correlation degree × weight 3 - re-entry cost × weight 4 (2)
[0089] Then, when determining the target object, the terminal may determine the candidate object with the largest score among the candidate objects as the target object.
[0090] In a further possible implementation, the determined target object can be used to adjust the display order of the input candidate items. Specifically, after the terminal determines the degree of association between the target position of the object selection operation on the input interface and the candidate object, the second input candidate item determined after the candidate object is input can be determined based on the degree of association. For example, the second input candidate item determined can be determined by the candidate object corresponding to a higher degree of association and the input content. Then, the terminal can adjust the display order of the second input candidate item according to the re-input cost of the candidate object.
[0091] For example, assuming that the content input by the user on the upper screen is "warm" and "huan", and the candidate objects with a high degree of association with the target position of the object selection operation on the input interface are "y" and "t" respectively, then the input candidate "hallucination" corresponding to "huant" can be determined based on "warm", "huan" and "t", and the input candidates "welcome" and "phantom" corresponding to "huany" can be determined based on "warm", "huan" and "y", and the second input candidate items are "hallucination", "welcome" and "phantom". Then, the terminal can adjust the display order of the second input candidate items from "hallucination", "welcome" and "phantom" to "welcome", "phantom" and "hallucination" according to the re-input cost of the candidate objects "y" and "t". In this way, the candidate items that are relatively more likely to meet the user's expected input can be displayed to the user first.
[0092] Based on the above two exemplary embodiments, in another possible embodiment, the target object can be determined based on the re-entry cost, the degree of association, and the adjacent occurrence probability corresponding to the candidate object. As an example, weights can be set for the degree of association, the adjacent occurrence probability, and the re-entry cost corresponding to the candidate object, respectively, and the score of each candidate object can be calculated according to formula (3), and the calculation formula is as follows:
[0093]
[0094] Then, when determining the target object, the terminal may determine the candidate object with the largest score among the candidate objects as the target object.
[0095] It is worth noting that in this embodiment, the determined target object may be the object that is finally input on the screen determined by the terminal in response to the object selection operation of the user on the input interface, so as to provide the user with intelligent error correction services. For example, when the object selection operation is performed on the "y" key, even if the position of the object selection operation is more inclined to the "t" key, the terminal may also use the letter "y" as the final response on-screen input content according to the re-input cost of "y" and "t".
[0096] Of course, in other implementations, it is also possible to provide the user with more abundant input candidates based on the determined target object. Specifically, after the user performs an object selection operation, the terminal can determine the position of the object selection operation on the input interface, and determine the initial selection object based on the position; then, the terminal can determine a group of input candidates based on the initial selection object and the user's input content (hereinafter referred to as the third input candidate for ease of description), and at the same time, the terminal can also determine another group of input candidates based on the determined target object and the input content (hereinafter referred to as the fourth input candidate for ease of description), and display these two groups of input candidates on the input interface.
[0097] In this way, when the initial selection object determined by the terminal is the object that the user expects to input, the user can choose to enter the third input candidate on the upper screen, and when the initial selection object determined by the terminal does not meet the object that the user expects to input, the user can choose to enter the fourth input candidate on the upper screen, thereby providing the user with more abundant input candidates. For example, when the user expects to continue to enter "y" on the basis of having entered "warm" and "huan", if the terminal determines that the initial selection object is "t" based on the position of the object selection operation on the input interface, the terminal can determine a group of input candidates as "hallucination" (the input candidate corresponding to "huant") based on the initial selection object "t", and at the same time, the terminal can determine another group of input candidates as "welcome" based on the determined target object "y", and present "hallucination" and "welcome" to the user in the candidate area at the same time, so that the user can enter "welcome" on the upper screen from the input candidates presented in the candidate area.
[0098] It should be noted that the method for determining the input object introduced in this embodiment can be applied to the terminal alone, or it can be completed by the terminal and the server in collaboration, that is, the above-mentioned process of determining the target object and determining the input candidates can also be completed by the server. The terminal can be responsible for collecting the data required by the server and sending the data to the server so that the server can perform corresponding processing. Finally, the terminal obtains the processed data from the server side, such as input candidates presented to the user.
[0099] In this embodiment, the terminal can obtain the input content, and in response to the user's object selection operation on the input interface, determine the re-entry cost of continuing to enter the candidate object based on the input content, wherein the candidate object is an input object that can be selected on the input interface, and then the terminal can determine the target object among the candidate objects according to the input cost of the candidate object, that is, the input object finally determined. It can be seen that when the user selects an object on the input interface, the terminal can determine the object input by the object selection operation performed by the user according to the re-entry cost caused by continuing to enter the object based on the input content. In this way, the terminal can determine the object corresponding to the smaller or minimum re-entry cost as the object selected and input by the user, so that the input object determined by the terminal is more likely to meet the object expected to be input by the user, so that the user does not need to backspace and re-enter the input content on the upper screen because the input object determined by the terminal is correct, thereby reducing the user's backspace and re-entry cost, and improving the user's input efficiency and input experience.
[0100] In addition, the embodiment of the present application also provides a device for determining an input object. Figure 3 , Figure 3 A schematic diagram of a device structure for determining an input object in an embodiment of the present application is shown. The device 300 may specifically include:
[0101] The acquisition module 301 is used to acquire the input content;
[0102] A first determination module 302, configured to determine, in response to a user's object selection operation on the input interface, a re-input cost of continuously inputting a candidate object based on the input content, wherein the candidate object is an input object that can be selected on the input interface;
[0103] The second determination module 303 is used to determine the target object among the candidate objects according to the re-input cost of the candidate objects.
[0104] In some possible implementations, the re-input cost of the candidate object is determined based on a historical re-input operation of the candidate object, where the historical re-input operation is a historical operation required to re-input the input content after continuing to input the candidate object based on the input content.
[0105] In some possible implementations, the re-input cost includes the number of key clicks and / or the re-input duration, wherein the number of key clicks refers to the number of key clicks required to re-input the input content after continuing to input the candidate object based on the input content, and the re-input duration refers to the time required to re-input the input content after continuing to input the candidate object based on the input content.
[0106] In some possible implementations, the device 300 further includes:
[0107] A calculation module, used to calculate the adjacent occurrence probability of the candidate object input by the user and the input content;
[0108] Then, the second determination module 303 is specifically configured to determine the target object among the candidate objects according to the re-input cost of the candidate objects and the adjacent occurrence probability.
[0109] In some possible implementations, the device 300 further includes:
[0110] A third determination module, configured to determine, based on the adjacent occurrence probability, a first input candidate item determined after the candidate object is input;
[0111] The first adjustment module is used to adjust the display order of the first input candidate items according to the re-input cost of the candidate objects.
[0112] In some possible implementations, the device 300 further includes:
[0113] A fourth determination module, used to determine the degree of association between the target position of the object selection operation on the input interface and the candidate object;
[0114] Then, the second determination module 303 is specifically configured to determine the target object among the candidate objects according to the re-input cost of the candidate objects and the association degree.
[0115] In some possible implementations, the device 300 further includes:
[0116] A fifth determination module, configured to determine, based on the association degree, a second input candidate item determined after the candidate object is input;
[0117] The second adjustment module is used to adjust the display order of the second input candidate items according to the re-input cost of the candidate objects.
[0118] In some possible implementations, the device 300 further includes:
[0119] A sixth determining module, configured to determine an initial selected object based on a position of the object selection operation on the input interface;
[0120] The display module is used to display a third input candidate item and a fourth input candidate item, wherein the third input candidate item is determined based on the initial selection object and the input content, and the fourth input candidate item is determined based on the target object and the input content.
[0121] Figure 3 The device shown is with Figure 2 The device corresponding to the method shown, the specific implementation method and the effect achieved are Figure 2 Similar to the method shown, refer to Figure 2 The description of the method shown in the figure will not be repeated here.
[0122] Reference Figure 4 , the input device 400 may include one or more of the following components: a processing component 402 , a memory 404 , a power component 406 , a multimedia component 406 , an audio component 410 , an input / output (I / O) interface 412 , a sensor component 414 , and a communication component 416 .
[0123] The processing component 402 generally controls the overall operation of the device 400, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 402 may include one or more modules to facilitate the interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate the interaction between the multimedia component 406 and the processing component 402.
[0124] The memory 404 is configured to store various types of data to support operations on the input device 400. Examples of such data include instructions for any application or method operating on the input device 400, contact data, phone book data, messages, pictures, videos, etc. The memory 404 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0125] The power supply component 406 provides power to the various components of the input device 400. The power supply component 406 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the input device 400.
[0126] The multimedia component 406 includes a screen that provides an output interface between the input device 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 406 includes a front camera and / or a rear camera. When the input device 400 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0127] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC), and when the input device 400 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 404 or sent via the communication component 416. In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.
[0128] I / O interface 412 provides an interface between processing component 402 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0129] The sensor assembly 414 includes one or more sensors for providing various aspects of status assessment for the input device 400. For example, the sensor assembly 414 can detect the open / closed state of the input device 400, the relative positioning of the components, such as the display and keypad of the device 400, and the sensor assembly 414 can also detect the position change of the input device 400 or a component of the input device 400, the presence or absence of user contact with the input device 400, the orientation or acceleration / deceleration of the input device 400, and the temperature change of the input device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0130] The communication component 416 is configured to facilitate wired or wireless communication between the input device 400 and other devices. The input device 400 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0131] In an exemplary embodiment, the input device 400 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0132] Specifically, an embodiment of the present invention provides a device for determining an input object, which may be specifically a device 400, including a memory 404 and one or more programs, wherein the one or more programs are stored in the memory 404 and are configured to be executed by one or more processors 420. The one or more programs include instructions for performing the following operations:
[0133] Get the input content;
[0134] In response to a user's object selection operation on the input interface, determining a re-input cost for continuing to input a candidate object based on the input content, the candidate object being an input object that can be selected on the input interface;
[0135] A target object among the candidate objects is determined according to the re-input costs of the candidate objects.
[0136] In some possible implementations, the re-input cost of the candidate object is determined based on a historical re-input operation of the candidate object, where the historical re-input operation is a historical operation required to re-input the input content after continuing to input the candidate object based on the input content.
[0137] In some possible implementations, the re-input cost includes the number of key clicks and / or the re-input duration, wherein the number of key clicks refers to the number of key clicks required to re-input the input content after continuing to input the candidate object based on the input content, and the re-input duration refers to the time required to re-input the input content after continuing to input the candidate object based on the input content.
[0138] In some possible implementations, the processor 420 is further configured to execute the one or more programs including instructions for performing the following operations:
[0139] Calculating the adjacent occurrence probability of the candidate object input by the user and the input content;
[0140] Then, the processor 420 is specifically configured to execute the one or more programs including instructions for performing the following operations:
[0141] A target object among the candidate objects is determined according to the re-input cost of the candidate objects and the adjacent occurrence probability.
[0142] In some possible implementations, the processor 420 is further configured to execute the one or more programs including instructions for performing the following operations:
[0143] Determining a first input candidate item determined after inputting the candidate object based on the adjacent occurrence probability;
[0144] The display order of the first input candidate items is adjusted according to the re-input cost of the candidate objects.
[0145] In some possible implementations, the processor 420 is further configured to execute the one or more programs including instructions for performing the following operations:
[0146] determining a correlation degree between a target position of the object selection operation on the input interface and the candidate object;
[0147] Then, the processor 420 is specifically configured to execute the one or more programs including instructions for performing the following operations:
[0148] A target object among the candidate objects is determined according to the re-input cost of the candidate objects and the association degree.
[0149] In some possible implementations, the processor 420 is further configured to execute the one or more programs including instructions for performing the following operations:
[0150] Determining, based on the association degree, a second input candidate item determined after inputting the candidate object;
[0151] The display order of the second input candidate items is adjusted according to the re-input cost of the candidate objects.
[0152] In some possible implementations, the processor 420 is further configured to execute the one or more programs including instructions for performing the following operations:
[0153] determining an initial selection object based on a position of the object selection operation on the input interface;
[0154] A third input candidate item and a fourth input candidate item are displayed, wherein the third input candidate item is determined based on the initial selection object and the input content, and the fourth input candidate item is determined based on the target object and the input content.
[0155] In addition, an embodiment of the present invention further provides a non-transitory computer-readable storage medium including instructions, such as a memory 404 including instructions, and the instructions can be executed by a processor 420 of the device 400 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0156] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a device for determining an input object, enables the device to perform a method for determining an input object, the method comprising:
[0157] Get the input content;
[0158] In response to a user's object selection operation on the input interface, determining a re-input cost for continuing to input a candidate object based on the input content, the candidate object being an input object that can be selected on the input interface;
[0159] A target object among the candidate objects is determined according to the re-input costs of the candidate objects.
[0160] In some possible implementations, the re-input cost of the candidate object is determined based on a historical re-input operation of the candidate object, where the historical re-input operation is a historical operation required to re-input the input content after continuing to input the candidate object based on the input content.
[0161] In some possible implementations, the re-input cost includes the number of key clicks and / or the re-input duration, wherein the number of key clicks refers to the number of key clicks required to re-input the input content after continuing to input the candidate object based on the input content, and the re-input duration refers to the time required to re-input the input content after continuing to input the candidate object based on the input content.
[0162] In some possible implementations, the method further includes:
[0163] Calculating the adjacent occurrence probability of the candidate object input by the user and the input content;
[0164] Then, determining the target object among the candidate objects based on the re-input cost of the candidate objects includes:
[0165] A target object among the candidate objects is determined according to the re-input cost of the candidate objects and the adjacent occurrence probability.
[0166] In some possible implementations, the method further includes:
[0167] Determining a first input candidate item determined after inputting the candidate object based on the adjacent occurrence probability;
[0168] The display order of the first input candidate items is adjusted according to the re-input cost of the candidate objects.
[0169] In some possible implementations, the method further includes:
[0170] determining a correlation degree between a target position of the object selection operation on the input interface and the candidate object;
[0171] Then, determining the target object among the candidate objects based on the re-input cost of the candidate objects includes:
[0172] A target object among the candidate objects is determined according to the re-input cost of the candidate objects and the association degree.
[0173] In some possible implementations, the method further includes:
[0174] Determining, based on the association degree, a second input candidate item determined after inputting the candidate object;
[0175] The display order of the second input candidate items is adjusted according to the re-input cost of the candidate objects.
[0176] In some possible implementations, the method further includes:
[0177] determining an initial selection object based on a position of the object selection operation on the input interface;
[0178] A third input candidate item and a fourth input candidate item are displayed, wherein the third input candidate item is determined based on the initial selection object and the input content, and the fourth input candidate item is determined based on the target object and the input content.
[0179] The "first" in the names of "first input candidate" and "first determination module" mentioned in the embodiments of the present application is only used as a name identifier and does not mean the first in order. The same rule applies to "second", "third", "fourth", "fifth", etc.
[0180] Those skilled in the art will readily appreciate other embodiments of the invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
[0181] It should be understood that the present invention is not limited to the precise structure described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
[0182] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for determining an input object, characterized in that: The method comprises: Get the input content; In response to an object selection operation of a user on an input interface, a re-input cost of continuously inputting a candidate object based on the input content is determined, the candidate object being an input object that can be selected on the input interface, the re-input cost of the candidate object being determined with respect to a historical re-input operation of the candidate object, the historical re-input operation being a historical operation that needs to be performed after continuously inputting the candidate object based on the input content and then re-inputting the input content, the re-input cost includes a number of key clicks and / or a re-input duration, the number of key clicks referring to a number of key clicks that need to be performed after continuously inputting the candidate object based on the input content and then re-inputting the input content, the re-input duration referring to a duration that needs to be performed after continuously inputting the candidate object based on the input content and then re-inputting the input content; A target object among the candidate objects is determined according to the re-input costs of the candidate objects.
2. The method according to claim 1, characterized in that The method further comprises: Calculating the adjacent occurrence probability of the candidate object input by the user and the input content; Then, determining the target object among the candidate objects according to the re-input cost of the candidate objects includes: A target object among the candidate objects is determined according to the re-input cost of the candidate objects and the adjacent occurrence probability.
3. The method according to claim 2, characterized in that The method further comprises: Determining a first input candidate item determined after inputting the candidate object based on the adjacent occurrence probability; The display order of the first input candidate items is adjusted according to the re-input cost of the candidate objects.
4. The method according to claim 1, characterized in that: The method further comprises: determining a degree of association between a target position of the object selection operation on the input interface and the candidate object; Then, determining the target object among the candidate objects according to the re-input cost of the candidate objects includes: A target object among the candidate objects is determined according to the re-input cost of the candidate objects and the association degree.
5. The method according to claim 4, characterized in that The method further comprises: Determining, based on the association degree, a second input candidate item determined after inputting the candidate object; The display order of the second input candidate items is adjusted according to the re-input cost of the candidate objects.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: determining an initial selection object based on a position of the object selection operation on the input interface; A third input candidate item and a fourth input candidate item are displayed, wherein the third input candidate item is determined based on the initial selection object and the input content, and the fourth input candidate item is determined based on the target object and the input content.
7. A device for determining an input object, characterized in that: The device comprises: The acquisition module is used to obtain the input content; A first determination module is configured to determine, in response to an object selection operation of a user on an input interface, a re-input cost of continuously inputting a candidate object based on the input content, wherein the candidate object is an input object that can be selected on the input interface, and the re-input cost of the candidate object is determined based on a historical re-input operation of the candidate object, wherein the historical re-input operation is a historical operation that needs to be performed to re-input the input content after continuously inputting the candidate object based on the input content, and the re-input cost includes a number of key clicks and / or a re-input duration, wherein the number of key clicks refers to a number of key clicks that need to be performed to re-input the input content after continuously inputting the candidate object based on the input content, and the re-input duration refers to a duration that needs to be performed to re-input the input content after continuously inputting the candidate object based on the input content; The second determination module is used to determine the target object among the candidate objects according to the re-input cost of the candidate objects.
8. The device according to claim 7, characterized in that The device also includes: A calculation module, used to calculate the adjacent occurrence probability of the candidate object input by the user and the input content; Then, the second determination module is specifically configured to determine the target object among the candidate objects according to the re-input cost of the candidate objects and the adjacent occurrence probability.
9. The device according to claim 8, characterized in that The device also includes: A third determination module, configured to determine, based on the adjacent occurrence probability, a first input candidate item determined after the candidate object is input; The first adjustment module is used to adjust the display order of the first input candidate items according to the re-input cost of the candidate objects.
10. The device according to claim 7, characterized in that The device also includes: A fourth determination module, used to determine the degree of association between the target position of the object selection operation on the input interface and the candidate object; Then, the second determination module is specifically configured to determine the target object among the candidate objects according to the re-input cost of the candidate objects and the association degree.
11. The device according to claim 10, characterized in that The device also includes: A fifth determination module, configured to determine, based on the association degree, a second input candidate item determined after the candidate object is input; The second adjustment module is used to adjust the display order of the second input candidate items according to the re-input cost of the candidate objects.
12. The device according to any one of claims 7 to 11, characterized in that The device also includes: A sixth determining module, configured to determine an initial selected object based on a position of the object selection operation on the input interface; The display module is used to display a third input candidate item and a fourth input candidate item, wherein the third input candidate item is determined based on the initial selection object and the input content, and the fourth input candidate item is determined based on the target object and the input content.
13. A device for determining an input object, characterized in that: The device comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, and the one or more programs include being used to execute the method as claimed in any one of claims 1 to 6.
14. A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an input device, the input device is enabled to perform the method as claimed in any one of claims 1 to 6.
Citation Information
Patent Citations
Error correction method and error correction device of characters
CN101710262A
Method and equipment for acquiring candidate character strings corresponding to input key sequence
CN102184028A
Method and device for inputting Chinese characters
CN102591472A
Input method and device of text information
CN105334952A
Input error correction method and input method device
CN106484132A
