Input method, device and device for input
By displaying the first-screen candidates in the input method application and using the target button to quickly access the non-first-screen candidates, the problem of inefficient input in the existing technology is solved, and more efficient candidate browsing and selection is achieved.
Patent Information
- Application Number
- CN202010271273.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-08
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2040-06-13
AI Technical Summary
When there are many candidates for existing input methods, users need to constantly slide and turn pages, resulting in low input efficiency.
By obtaining the candidate results corresponding to the current input information, display the first-screen candidates, and display the target keys when the number of candidates meets the preset conditions. Each target key corresponds to multiple non-top-screen candidates. The user will display it after triggering the target key. Corresponding non-first screen candidates.
This increases the number of candidate displays for each operation by the user, reduces the number of user operations, and improves input efficiency.
Smart Images

Figure CN113495656B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to an input method, device, and a device for input. Background Art
[0002] With the development of computer technology, the functions of input method applications are becoming more and more abundant. When a user inputs content, the input method application can search for entries in the vocabulary, and then display the searched entries as candidates for the user to choose.
[0003] Existing input method applications usually display candidate items in a small local area of the input interface, and the user slides and turns pages in the area to display the candidate items in sequence. However, when there are many candidate items corresponding to a certain input information, such as when inputting a simplified pinyin, the user usually needs to slide and turn pages continuously, and it takes a long time to select the required candidate item from the many candidate items displayed in sequence, which leads to low input efficiency. Summary of the invention
[0004] The embodiments of the present application provide an input method, a device and a device for input to solve the technical problem of low input efficiency in the prior art.
[0005] In a first aspect, an embodiment of the present application provides an input method, which includes: obtaining candidate results corresponding to current input information; displaying first-screen candidate items in the candidate results, and when the number of candidate items in the candidate results meets a preset condition, displaying one or more target buttons, wherein each target button corresponds to multiple non-first-screen candidate items in the candidate results; when it is detected that a user triggers any target button, displaying the non-first-screen candidate item corresponding to the triggered target button.
[0006] In the second aspect, an embodiment of the present application provides an input device, which includes: an acquisition unit, configured to acquire candidate results corresponding to current input information; an acquisition unit, configured to acquire candidate results corresponding to current input information; a first display unit, configured to display first-screen candidate items in the candidate results, and when the number of candidates in the candidate results meets a preset condition, display one or more target buttons, wherein each target button corresponds to multiple non-first-screen candidate items in the candidate results; and a second display unit, configured to display non-first-screen candidate items corresponding to the triggered target button when it is detected that a user triggers any target button.
[0007] In a third aspect, an embodiment of the present application provides a device for input, comprising 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, wherein the one or more programs include instructions for performing the following operations: obtaining candidate results corresponding to the current input information; displaying first-screen candidate items in the candidate results, and when the number of candidates in the candidate results meets a preset condition, displaying one or more target buttons, wherein each target button corresponds to multiple non-first-screen candidate items in the candidate results; when it is detected that the user triggers any target button, displaying the non-first-screen candidate items corresponding to the triggered target button.
[0008] In a fourth aspect, an embodiment of the present application provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect above.
[0009] The input method, device and device for input provided by the embodiments of the present application obtain the candidate results corresponding to the current input information, and then display the first-screen candidate items in the candidate results, and when the number of candidate items in the candidate results meets the preset conditions, display one or more target buttons, each of which corresponds to multiple non-first-screen candidate items in the candidate results, so that when it is detected that the user triggers any target button, the non-first-screen candidate items corresponding to the triggered target button can be displayed. Therefore, each time the user triggers the target button, multiple candidate items can be displayed simultaneously and conveniently and quickly, which increases the number of candidate items displayed when the user performs each operation. Compared with the method of constantly sliding and turning pages, it reduces the number of user operations and improves input efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0011] Figure 1 is a flow chart of an embodiment of an input method according to the present application;
[0012] Figure 2 is a schematic diagram of an input interface after displaying a target key according to the present application;
[0013] Figure 3 is a schematic diagram of the input interface after triggering the target key according to the present application;
[0014] Figure 4 is a flow chart of another embodiment of the input method according to the present application;
[0015] Figure 5is a schematic structural diagram of an embodiment of an input device according to the present application;
[0016] Figure 6 is a schematic structural diagram of a device for input according to the present application;
[0017] Figure 7 It is a schematic diagram of the structure of the server in some embodiments of the present application. DETAILED DESCRIPTION
[0018] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.
[0019] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0020] Please refer to Figure 1 , which shows a process 100 of an embodiment of the input method according to the present application. The above input method can be run on various electronic devices, including but not limited to: servers, smart phones, tablet computers, e-book readers, MP3 (Moving Picture Experts Group Audio Layer III) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, car computers, desktop computers, set-top boxes, smart TVs, wearable devices, etc.
[0021] The above-mentioned electronic device can be installed with various client applications. For example, input method applications, instant messaging applications, information applications, etc. The input method application mentioned in the embodiment of the present application can support multiple input methods. Among them, the input method can be a coding method used to input various symbols into electronic devices such as computers and mobile phones. Users can use the input method application to conveniently input the required characters or strings into the electronic device. It should be noted that in the embodiment of the present application, in addition to supporting common Chinese input methods (such as pinyin input method, Wubi input method, Zhuyin input method, voice input method, handwriting input method, etc.), the input method can also support input methods of other languages (such as English input method, Japanese Hiragana input method, Korean input method, etc.), and no limitation is made on the input method and the language type of the input method.
[0022] The input method in this embodiment may include the following steps:
[0023] Step 101, obtaining candidate results corresponding to current input information.
[0024] In this embodiment, the execution subject of the input method (such as the above-mentioned electronic device) can first receive the current input information. The current input information can be the information input by the user through the input method application. The user can use any input method to input the current input information. For example, you can use Pinyin, Wubi, strokes and other coded input methods, you can also use voice input methods, etc., which are not limited here. Among them, for the Pinyin input method, the current input information input can be a full spelling string, such as "zhuanli", or a simplified spelling string, such as "zl".
[0025] In this embodiment, after obtaining the current input information, the execution subject may obtain the candidate result corresponding to the current input information. In practice, the candidate result corresponding to the current input information may be obtained in a variety of ways. The candidate result may be a set or sequence containing multiple candidate items. The candidate items may include but are not limited to terms, expressions, pictures, etc.
[0026] As an example, a local word library may be stored in the local client of the input method application. At this time, the execution subject may match the current input information with the local words in the local word library to obtain the local words corresponding to the current input information. Each local word obtained is used as a candidate item corresponding to the current input information and summarized as a candidate result.
[0027] As another example, the execution subject may obtain the entry corresponding to the current input information by sending a request to a server (such as a cloud server), thereby taking each local entry obtained as a candidate item corresponding to the current input information and summarizing them into candidate results.
[0028] In some optional implementations of this embodiment, the above execution subject may also obtain candidate results through the following steps:
[0029] The first step is to query the local vocabulary for local candidates corresponding to the current input information.
[0030] The second step is to query the cloud candidate items corresponding to the current input information from the cloud vocabulary. The cloud vocabulary is a vocabulary deployed in the cloud server.
[0031] Because the client word library is limited by factors such as memory size, some relatively low-frequency entries cannot be covered, while the cloud word library is not limited by memory limitations and can contain a large number of entries. Therefore, querying the cloud candidate items corresponding to the current input information through the cloud word library can make up for the shortcomings of the client word library and better meet the user's input needs. Here, the cloud candidate items can be all the candidate items corresponding to the current input information queried from the cloud word library.
[0032] The third step is to summarize the candidate items found and generate candidate results corresponding to the current input information.
[0033] Here, each local candidate and each cloud candidate can be summarized to obtain a candidate result including each local candidate and each cloud candidate. In practice, the candidate result can include first-screen preferred items and non-first-screen candidates. The first-screen preferred items are the first batch of candidates presented in the input interface after the user enters certain input information. Non-first-screen candidates are candidates other than the first-screen candidates in the candidate result.
[0034] In the third step above, optionally, the queried candidates (including local candidates and cloud candidates) can be first mixed and sorted. In practice, various preset rules can be used for mixed sorting, such as based on word frequency, etc., which is not limited in the embodiments of the present application. Then, the candidate results corresponding to the current input information can be generated according to the sorting information. Thereby, it is convenient to display the candidates in the order of arrangement.
[0035] Step 102: display the first screen candidate items in the candidate results, and display one or more target buttons when the number of candidate items in the candidate results meets a preset condition.
[0036] In this embodiment, the candidate items in the candidate results can be arranged according to the relevance to the current input information. The relevance can be characterized by word frequency, etc. A certain number (e.g., 5) of candidate items that are ranked high in the ranking are the first screen candidate items. The above-mentioned execution entity can display the first screen candidate items in the candidate results, and when the number of candidate items in the candidate results meets the preset conditions, display one or more target buttons.
[0037] The target button can be used to trigger the display of non-first-screen candidates. Each target button corresponds to multiple non-first-screen candidates in the candidate results. Different target buttons correspond to different non-first-screen candidates. The number of non-first-screen candidates in the candidate results corresponding to each target button can be greater than the number that can be accommodated in the candidate area when the non-first-screen candidates are displayed in the original display method.
[0038] It should be noted that the style and position of the target button can be preset as needed, and this embodiment of the present application does not limit this. As an example, Figure 2 Schematic diagram of the input interface after the target key is displayed is shown. Figure 2 As shown, the target button can be displayed in the display area of the first screen candidate items. The shape can be presented as a triangle.
[0039] Here, the preset condition can be preset as needed, for example, it can be set that the number of candidate items is greater than a certain preset value, or that the number of candidate items is within a certain numerical range, etc.
[0040] In some optional implementations of this embodiment, the above execution subject may be executed according to the following steps:
[0041] The first step is to determine the maximum number of candidates that the candidate area can accommodate.
[0042] The maximum number of candidates that the candidate area can accommodate can be determined based on the number of characters in the candidate items. For example, if each candidate item contains 2 or 3 characters, the maximum number of candidates that the candidate area can accommodate can be 16. If each candidate item contains 4 characters, the maximum number of candidates that the candidate area can accommodate can be 8.
[0043] The maximum number of candidates that the candidate area can accommodate can also be determined based on the number of unit areas occupied by the candidate items. For example, the candidate area can accommodate up to 16 unit areas. Each unit area can accommodate up to 3 characters. If a candidate item contains 4 characters, it needs to occupy two unit areas.
[0044] In practice, when determining the maximum number of candidates that the first screen can accommodate, the candidates used can be determined according to the order of the non-first screen candidates in the candidate results. For example, if the first 6 non-first screen candidates in the candidate results all contain 4 characters, and the 7th and subsequent non-first screen candidates all contain 2 characters, then the number of unit areas occupied by each non-first screen candidate can be determined in order as 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, and so on. At this time, if the candidate area can accommodate a maximum of 16 unit areas, they can be arranged in the candidate area in the order of the non-first screen candidates, and a maximum of 10 non-first screen candidates can be arranged. At this time, the maximum number of candidates that the candidate area can accommodate is 10.
[0045] In the second step, if the number of candidate items in the candidate results is greater than the maximum number, one or more target buttons are displayed. The style and position of the target button can be preset as needed and are not limited here.
[0046] Therefore, when the number of candidate items exceeds a certain number, it is time-consuming to view the candidate items by touching and sliding the page in the original way. By judging whether the number of candidate items meets the preset conditions, the target button can be automatically triggered to select the most convenient display method for users to view the required candidate items, which reduces the number of user operations and improves the user's input efficiency.
[0047] In some optional implementations of this embodiment, the target button may be displayed according to the following steps:
[0048] In the first step, the non-first screen candidate items in the above candidate results are divided into multiple candidate groups in turn.
[0049] The candidate groups can be divided in a variety of ways. For example, a fixed number (such as 20) can be used as the number of non-first screen candidate items in each group, and the first screen candidate items can be divided into multiple candidate groups in sequence. The above fixed number can be preset and is not limited here.
[0050] Optionally, the target number of non-first-screen candidates in each candidate group may be determined based on the number of characters in the non-first-screen candidates, and then the non-first-screen candidates in the candidate results may be divided into multiple candidate groups in sequence according to the target number.
[0051] As an example, if the number of characters in each non-first screen candidate is 2, each group may contain 30 non-first screen candidates. In this case, every 30 non-first screen candidates may be divided into one group. If the number of characters in each non-first screen candidate is 4, each group may contain 15 non-first screen candidates. In this case, every 15 non-first screen candidates may be divided into one group.
[0052] It should be noted that the number of non-first-screen candidates in different candidate groups may also be different. If the number of characters in the non-first-screen candidates is different, for example, it includes both non-first-screen candidates with 2 characters and non-first-screen candidates with 4 characters. At this time, the number of non-first-screen candidates in each group can be determined based on the principle that the total number of characters or the total number of unit areas occupied by each group of non-first-screen candidates is the same, and then grouping can be performed.
[0053] The second step is to determine the number of candidate groups and select the first screen candidates of the number as target first screen candidates. For example, the first screen candidates of the number can be selected as target first screen candidates in the order of the first screen candidates from front to back.
[0054] The third step is to determine the corresponding rules, where the corresponding rules are used to characterize the corresponding relationship between the candidate item group and the target first screen candidate items.
[0055] Here, the correspondence between the candidate groups and the target first-screen candidates can be set based on the principle that the order of the candidate groups is equal to the order of the target first-screen candidates they correspond to. For example, the target first-screen candidate corresponding to the first candidate group is the first first-screen candidate; the target first-screen candidate corresponding to the second candidate group is the second first-screen candidate; and so on. Specifically, if each candidate group contains 12 non-first-screen candidates, the first first-screen candidate corresponds to the 6th to 17th candidates in the candidate results, and the second first-screen candidate corresponds to the 18th to 29th candidates in the candidate results.
[0056] The fourth step is to present a target button in the display area of each target first screen candidate item. The target button in the display area of each target first screen candidate item can be used to trigger the display of the candidate item group corresponding to the target first screen candidate item.
[0057] Since the candidates in the candidate results can be arranged according to the relevance to the current input information, the order of the candidate group division can represent the degree of relevance between the non-first-screen candidates in the candidate group and the current input information. Since the order of the candidate group is equal to the display order of the corresponding first-screen candidates, the higher the order of the display order of the first-screen candidates, the stronger the relevance of the corresponding non-first-screen candidates to the current input information. Therefore, the user can click the corresponding target buttons in turn according to the display order of the first-screen candidates to view the non-first-screen candidates in order of relevance from high to low.
[0058] Step 103: when it is detected that the user triggers any target button, non-first screen candidate items corresponding to the triggered target button are displayed.
[0059] In this embodiment, since each target button corresponds to multiple non-first screen candidate items in the candidate results, when it is detected that the user triggers any target button, the execution body can display the non-first screen candidate items corresponding to the triggered target button.
[0060] In practice, the display area for non-first-screen candidates can be a larger area below the first-screen candidates, so as to accommodate more non-first-screen candidates and reduce the number of operations required by users when browsing candidates.
[0061] As an example, Figure 3 FIG. 1 shows a schematic diagram of the input interface after the target key is triggered. Figure 3 As shown in the figure, after the user triggers a target button, the non-first-screen candidates are displayed in the area below the first-screen candidates.
[0062] In some optional implementations of this embodiment, the execution subject may divide the non-first-screen candidate items in the candidate results into multiple candidate groups in turn, and determine the target first-screen candidate items corresponding to each candidate group, so as to set the target button in the display area of each target first-screen candidate item. At this time, when it is detected that the user triggers any target button, the execution subject may use the target first-screen candidate item corresponding to the triggered target button as the first target first-screen candidate item, and display the candidate group corresponding to the first target first-screen candidate item.
[0063] In addition, when it is detected that the user triggers another target button, the execution entity may use the first screen candidate corresponding to the other button as the second target first screen candidate, and replace the candidate group corresponding to the first target first screen candidate with the candidate group corresponding to the second target first screen candidate.
[0064] In some optional implementations of this embodiment, when it is detected that a user triggers (such as clicking, touching, etc.) any candidate item (including first-screen candidates and non-first-screen candidates), the above-mentioned execution entity can put the candidate item triggered by the user on the screen.
[0065] The method provided by the above-mentioned embodiment of the present application obtains the candidate results corresponding to the current input information, and then displays the first-screen candidate items in the above-mentioned candidate results, and when the number of candidate items in the above-mentioned candidate results meets the preset conditions, displays one or more target buttons, each of which corresponds to multiple non-first-screen candidate items in the above-mentioned candidate results. Thus, when it is detected that the user triggers any target button, the non-first-screen candidate items corresponding to the triggered target button can be displayed. Therefore, each time the user triggers the target button, multiple candidate items can be displayed simultaneously and conveniently and quickly, which increases the number of candidate items displayed when the user performs each operation. Compared with the method of constantly sliding and turning pages, it reduces the number of user operations and improves input efficiency.
[0066] Further references Figure 4 , which shows a process 400 of another embodiment of an input method. The process 400 of the input method includes the following steps:
[0067] Step 401, obtaining candidate results corresponding to the current input information.
[0068] In this embodiment, the execution subject of the input method (such as the above-mentioned electronic device) may first receive current input information. The current input information may be a string input by a user through an input method application. Then, the candidate results corresponding to the current input information may be obtained. The candidate results may include first-screen candidates and non-first-screen candidates.
[0069] Optionally, the above-mentioned execution entity can first query local candidate items corresponding to the current input information from the local vocabulary; then, query cloud candidate items corresponding to the above-mentioned current input information from the cloud vocabulary, and the above-mentioned cloud vocabulary is a vocabulary deployed in the cloud server; then, the queried candidate items are mixed and sorted; finally, the candidate items are summarized in the sorting order to generate the candidate results corresponding to the above-mentioned current input information.
[0070] It should be noted that step 401 can be found in Figure 1 The step 101 of the corresponding embodiment will not be described in detail in the embodiment of the present application.
[0071] Step 402: display the first screen candidate items in the candidate results.
[0072] Step 403: when the number of candidate items in the candidate results meets a preset condition, the non-first screen candidate items in the candidate results are divided into a plurality of candidate item groups in sequence.
[0073] In this embodiment, when the number of candidate items in the candidate results meets a preset condition, the execution entity may divide the non-first-screen candidate items in the candidate results into a plurality of candidate item groups in sequence.
[0074] Here, the candidate item groups can be divided in a variety of ways. For example, a fixed number (such as 20) can be used as the number of non-first screen candidate items in each group, and the first screen candidate items can be divided into multiple candidate item groups in sequence. The above fixed number can be preset and is not limited here.
[0075] Optionally, the target number of non-first-screen candidates in each candidate group may be determined based on the number of characters in the non-first-screen candidates, and then the non-first-screen candidates in the candidate results may be divided into multiple candidate groups in sequence according to the target number.
[0076] As an example, if the number of characters in each non-first screen candidate is 2, each group may contain 30 non-first screen candidates. In this case, every 30 non-first screen candidates may be divided into one group. If the number of characters in each non-first screen candidate is 4, each group may contain 15 non-first screen candidates. In this case, every 15 non-first screen candidates may be divided into one group.
[0077] It should be noted that the number of non-first-screen candidates in different candidate groups may also be different. If the number of characters in the non-first-screen candidates is different, for example, it includes both non-first-screen candidates with 2 characters and non-first-screen candidates with 4 characters. At this time, the number of non-first-screen candidates in each group can be determined based on the principle that the total number of characters or the total number of unit areas occupied by each group of non-first-screen candidates is the same, and then grouping can be performed.
[0078] Step 404, determining the number of candidate item groups, and selecting the above number of first screen candidate items as target first screen candidate items.
[0079] In this embodiment, the execution subject may determine the number of candidate groups according to a preset order, and select the first screen candidate items of the number as target first screen candidate items. For example, the first screen candidate items of the number may be selected as target first screen candidate items in the order of the first screen candidate items from front to back.
[0080] Step 405: determine the corresponding rules.
[0081] In this embodiment, the corresponding rule can be used to characterize the corresponding relationship between the candidate group and the target first-screen candidate. In practice, here, the corresponding relationship between the candidate group and the target first-screen candidate can be set on the principle that the order of the candidate group is equal to the order of the target first-screen candidate to which it corresponds. For example, the target first-screen candidate corresponding to the first candidate group is the first first-screen candidate; the target first-screen candidate corresponding to the second candidate group is the second first-screen candidate; and so on. Specifically, if each candidate group contains 12 non-first-screen candidates, the first first-screen candidate corresponds to the 6th to 17th candidates in the candidate results, and the second first-screen candidate corresponds to the 18th to 29th candidates in the candidate results.
[0082] Step 406: present the target button in the display area of each target first screen candidate item.
[0083] In this embodiment, the execution subject may present a target button in the display area of each target first screen candidate item, wherein the target button in the display area of each target first screen candidate item may be used to trigger the display of the candidate item group corresponding to the target first screen candidate item.
[0084] Since the candidates in the candidate results can be arranged according to the relevance to the current input information, the order of the candidate group division can represent the degree of relevance between the non-first-screen candidates in the candidate group and the current input information. Since the order of the candidate group is equal to the display order of the corresponding first-screen candidates, the higher the order of the display order of the first-screen candidates, the stronger the relevance of the corresponding non-first-screen candidates to the current input information. Therefore, the user can click the corresponding target buttons in turn according to the display order of the first-screen candidates to view the non-first-screen candidates in order of relevance from high to low.
[0085] Step 407: when it is detected that the user triggers any target button, the target first screen candidate item corresponding to the triggered target button is used as the first target first screen candidate item, and the candidate item group corresponding to the first target first screen candidate item is displayed.
[0086] In this embodiment, when the execution subject detects that a user triggers any target button, the target first screen candidate item corresponding to the triggered target button is used as the first target first screen candidate item, and the candidate item group corresponding to the first target first screen candidate item is displayed.
[0087] In practice, the display area for non-first-screen candidates can be a larger area below the first-screen candidates, so as to accommodate more non-first-screen candidates and reduce the number of operations required by users when browsing candidates.
[0088] Step 408: when it is detected that the user triggers another target button, the first screen candidate corresponding to the other button is used as the second target first screen candidate, and the candidate group corresponding to the first target first screen candidate is replaced by the candidate group corresponding to the second target first screen candidate.
[0089] In this embodiment, when the execution entity detects that the user triggers another target button, it can use the first-screen candidate item corresponding to the other button as the second target first-screen candidate item, and replace the candidate item group corresponding to the first target first-screen candidate item with the candidate item group corresponding to the second target first-screen candidate item.
[0090] In some optional implementations of this embodiment, when it is detected that a user triggers (such as clicking, touching, etc.) any candidate item (including first-screen candidates and non-first-screen candidates), the above-mentioned execution entity can put the candidate item triggered by the user on the screen.
[0091] from Figure 2 It can be seen that Figure 1 Compared with the corresponding embodiment, the process 200 of the input method in this embodiment involves the steps of grouping the non-first screen candidate items in the above-mentioned candidate results, and setting target buttons in the display area of the first screen candidate items corresponding to each group. Since the order of the candidate groups is equal to the display order of the first screen candidate items corresponding to them, the higher the order of the display order of the first screen candidate items, the stronger the correlation between the corresponding non-first screen candidate items and the current input information. Therefore, the user can click the corresponding target buttons in turn according to the display order of the first screen candidate items, so as to view the non-first screen candidate items in order of relevance from high to low. This further reduces the number of user operations and improves input efficiency.
[0092] Further references Figure 5 As an implementation of the methods shown in the above figures, the present application provides an embodiment of an input device, and the device embodiment is Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0093] like Figure 5As shown, the input device 500 described in this embodiment includes: an acquisition unit 501, configured to acquire candidate results corresponding to current input information; a first display unit 502, configured to display first-screen candidate items in the above-mentioned candidate results, and when the number of candidate items in the above-mentioned candidate results meets a preset condition, display one or more target buttons, wherein each target button corresponds to multiple non-first-screen candidate items in the above-mentioned candidate results; a second display unit 503, configured to display non-first-screen candidate items corresponding to the triggered target button when it is detected that a user triggers any target button.
[0094] In some optional implementations of this embodiment, the acquisition unit 501 is further configured to: query local candidate items corresponding to the current input information from the local vocabulary; query cloud candidate items corresponding to the current input information from the cloud vocabulary, where the cloud vocabulary is a vocabulary deployed in the cloud server; summarize the queried candidate items to generate candidate results corresponding to the current input information.
[0095] In some optional implementations of this embodiment, the acquisition unit 501 is further configured to: perform mixed sorting on the queried candidate items; and generate candidate results corresponding to the current input information according to the sorting information.
[0096] In some optional implementations of this embodiment, the first display unit 502 is further configured to: determine the maximum number of candidate items that the candidate area can accommodate; if the number of candidate items in the candidate results is greater than the maximum number, display one or more target buttons.
[0097] In some optional implementations of the present embodiment, the first display unit 502 is further configured to: divide the non-first-screen candidates in the candidate results into a plurality of candidate groups in turn; determine the number of candidate groups, and select the first-screen candidates of the number as target first-screen candidates; determine corresponding rules, wherein the corresponding rules are used to characterize the correspondence between the candidate groups and the target first-screen candidates; present a target button in the display area of each target first-screen candidate, wherein the target button in the display area of each target first-screen candidate is used to trigger the display of the candidate group corresponding to the target first-screen candidate.
[0098] In some optional implementations of this embodiment, the above-mentioned first display unit 502 is further configured to: determine the target number of non-first screen candidates in each candidate group based on the number of characters in the non-first screen candidates; and divide the non-first screen candidates in the above-mentioned candidate results into multiple candidate groups in turn according to the above-mentioned target number.
[0099] In some optional implementations of the present embodiment, the second display unit 503 is further configured to: when it is detected that a user triggers any target button, use the target first-screen candidate item corresponding to the triggered target button as the first target first-screen candidate item, and display the candidate item group corresponding to the first target first-screen candidate item; when it is detected that a user triggers another target button, use the first-screen candidate item corresponding to the other button as the second target first-screen candidate item, and replace the candidate item group corresponding to the first target first-screen candidate item with the candidate item group corresponding to the second target first-screen candidate item.
[0100] The device provided by the above-mentioned embodiment of the present application obtains the candidate results corresponding to the current input information, and then displays the first-screen candidate items in the above-mentioned candidate results, and when the number of candidate items in the above-mentioned candidate results meets the preset conditions, displays one or more target buttons, each of which corresponds to multiple non-first-screen candidate items in the above-mentioned candidate results. Thus, when it is detected that the user triggers any target button, the non-first-screen candidate items corresponding to the triggered target button can be displayed. Therefore, each time the user triggers the target button, multiple candidate items can be displayed simultaneously and conveniently and quickly, which increases the number of candidate items displayed when the user performs each operation. Compared with the method of constantly sliding and turning pages, it reduces the number of user operations and improves input efficiency.
[0101] Figure 6 6 is a block diagram of a device 600 for input according to an exemplary embodiment, and the device 600 may be a smart terminal or a server. For example, the device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0102] Reference Figure 6 , the device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .
[0103] The processing component 602 generally controls the overall operation of the device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.
[0104] The memory 604 is configured to store various types of data to support operations on the device 600. Examples of such data include instructions for any application or method operating on the device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 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.
[0105] The power supply component 606 provides power to the various components of the device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 600.
[0106] The multimedia component 608 includes a screen that provides an output interface between the above-mentioned device 600 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 above-mentioned touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the above-mentioned touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.
[0107] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the device 600 is in an operating 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 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.
[0108] I / O interface 612 provides an interface between processing component 602 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.
[0109] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the device 600. For example, the sensor assembly 614 can detect the open / closed state of the device 600, the relative positioning of the components, such as the display and keypad of the device 600, the sensor assembly 614 can also detect the position change of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, the orientation or acceleration / deceleration of the device 600 and the temperature change of the device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 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 614 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
[0110] The communication component 616 is configured to facilitate wired or wireless communication between the device 600 and other devices. The device 600 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 616 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 616 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.
[0111] In an exemplary embodiment, the apparatus 600 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 method.
[0112] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of the device 600 to perform 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.
[0113] Figure 77 is a schematic diagram of the structure of the server in some embodiments of the present application. The server 700 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 722 (for example, one or more processors) and a memory 732, and one or more storage media 730 (for example, one or more mass storage devices) storing application programs 742 or data 744. Among them, the memory 732 and the storage medium 730 can be temporary storage or permanent storage. The program stored in the storage medium 730 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 722 can be configured to communicate with the storage medium 730 and execute a series of instruction operations in the storage medium 730 on the server 700.
[0114] The server 700 may also include one or more power supplies 726, one or more wired or wireless network interfaces 750, one or more input and output interfaces 758, one or more keyboards 756, and / or one or more operating systems 741, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0115] A non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by a processor of a device (smart terminal or server), the device is able to execute an input method, which includes: obtaining candidate results corresponding to current input information; displaying first-screen candidate items in the candidate results, and when the number of candidate items in the candidate results meets a preset condition, displaying one or more target buttons, wherein each target button corresponds to multiple non-first-screen candidate items in the candidate results; and when it is detected that a user triggers any target button, displaying the non-first-screen candidate item corresponding to the triggered target button.
[0116] Optionally, obtaining the candidate results corresponding to the current input information includes: querying local candidate items corresponding to the current input information from a local vocabulary; querying cloud candidate items corresponding to the current input information from a cloud vocabulary, wherein the cloud vocabulary is a vocabulary deployed in a cloud server; and summarizing the queried candidate items to generate the candidate results corresponding to the current input information.
[0117] Optionally, the queried candidate items are mixed and sorted; and according to the sorting information, candidate results corresponding to the current input information are generated.
[0118] Optionally, determine the maximum number of candidate items that the candidate area can accommodate; if the number of candidate items in the candidate result is greater than the maximum number, display one or more target buttons.
[0119] Optionally, the non-first-screen candidates in the candidate results are divided into multiple candidate groups in turn; the number of candidate groups is determined, and the first-screen candidates of the number are selected as target first-screen candidates; corresponding rules are determined, wherein the corresponding rules are used to characterize the corresponding relationship between the candidate groups and the target first-screen candidates; and a target button is presented in the display area of each target first-screen candidate, wherein the target button in the display area of each target first-screen candidate is used to trigger the display of the candidate group corresponding to the target first-screen candidate.
[0120] Optionally, based on the number of characters in the non-first screen candidate items, a target number of non-first screen candidate items in each candidate item group is determined; and according to the target number, the non-first screen candidate items in the candidate results are divided into multiple candidate item groups in sequence.
[0121] Optionally, when it is detected that the user triggers any target button, the target first-screen candidate item corresponding to the triggered target button is used as the first target first-screen candidate item, and the candidate item group corresponding to the first target first-screen candidate item is displayed; when it is detected that the user triggers another target button, the first-screen candidate item corresponding to the other button is used as the second target first-screen candidate item, and the candidate item group corresponding to the first target first-screen candidate item is replaced with the candidate item group corresponding to the second target first-screen candidate item.
[0122] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the application disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0123] It should be understood that the present application is not limited to the precise structures that have been 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 application is limited only by the appended claims.
[0124] The above is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
[0125] The above is a detailed introduction to an input method, a device and a device for input provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for a person skilled in the art, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. An input method, characterized in that: The method comprises: Get the candidate results corresponding to the current input information; Displaying the first-screen candidate items in the candidate results, and when the number of candidate items in the candidate results meets a preset condition, dividing the non-first-screen candidate items in the candidate results into a plurality of candidate item groups in sequence; Determine the number of candidate item groups, and select the first screen candidate items of the number as target first screen candidate items; Determine a corresponding rule, wherein the corresponding rule is used to characterize the corresponding relationship between the candidate item group and the target first screen candidate item; Presenting a target button in the display area of each target first-screen candidate item, wherein each target button corresponds to a plurality of non-first-screen candidate items in the candidate results, and the target button in the display area of each target first-screen candidate item is used to trigger display of a candidate item group corresponding to the target first-screen candidate item; When it is detected that the user triggers any target button, the non-first screen candidate items corresponding to the triggered target button are displayed.
2. The method according to claim 1, characterized in that The step of obtaining candidate results corresponding to the current input information includes: Query the local candidate items corresponding to the current input information from the local vocabulary; Querying cloud candidate items corresponding to the current input information from a cloud word library, wherein the cloud word library is a word library deployed in a cloud server; The queried candidate items are summarized to generate candidate results corresponding to the current input information.
3. The method according to claim 2, characterized in that The step of aggregating the candidate items found to generate candidate results corresponding to the current input information includes: Perform mixed sorting on the queried candidate items; Generate candidate results corresponding to the current input information according to the sorting information.
4. The method according to claim 1, characterized in that When the number of candidate items in the candidate result meets a preset condition, one or more target buttons are displayed, including: Determine the maximum number of candidates that the candidate area can accommodate; If the number of candidate items in the candidate results is greater than the maximum number, one or more target buttons are displayed.
5. The method according to claim 1, characterized in that The step of dividing the non-first screen candidate items in the candidate results into a plurality of candidate item groups in sequence includes: Determining a target number of off-the-fold candidates in each candidate group based on the number of characters in the off-the-fold candidates; According to the target number, the non-first-screen candidate items in the candidate results are divided into a plurality of candidate item groups in sequence.
6. The method according to claim 1, characterized in that When detecting that a user triggers any target button, displaying non-first screen candidate items corresponding to the triggered target button includes: When it is detected that a user triggers any target button, the target first screen candidate item corresponding to the triggered target button is used as the first target first screen candidate item, and the candidate item group corresponding to the first target first screen candidate item is displayed; When it is detected that the user triggers another target button, the first screen candidate item corresponding to the other target button is used as the second target first screen candidate item, and the candidate item group corresponding to the first target first screen candidate item is replaced with the candidate item group corresponding to the second target first screen candidate item.
7. An input device, characterized in that: The device comprises: An acquisition unit, configured to acquire candidate results corresponding to current input information; The first display unit is configured to display the first-screen candidates in the candidate results, and when the number of candidates in the candidate results meets a preset condition, divide the non-first-screen candidates in the candidate results into a plurality of candidate groups in sequence; determine the number of candidate groups, and select the first-screen candidates of the number as target first-screen candidates; determine a corresponding rule, wherein the corresponding rule is used to characterize the corresponding relationship between the candidate group and the target first-screen candidate; present a target button in the display area of each target first-screen candidate, wherein each target button corresponds to a plurality of non-first-screen candidates in the candidate results, and the target button in the display area of each target first-screen candidate is used to trigger the display of the candidate group corresponding to the target first-screen candidate; The second display unit is configured to display non-first screen candidate items corresponding to the triggered target button when it is detected that the user triggers any target button.
8. The device according to claim 7, characterized in that The acquisition unit is further configured to: Query the local candidate items corresponding to the current input information from the local vocabulary; Querying cloud candidate items corresponding to the current input information from a cloud word library, wherein the cloud word library is a word library deployed in a cloud server; The queried candidate items are summarized to generate candidate results corresponding to the current input information.
9. The device according to claim 8, characterized in that The acquisition unit is further configured to: Perform mixed sorting on the queried candidate items; Generate candidate results corresponding to the current input information according to the sorting information.
10. The device according to claim 7, characterized in that The first display unit is further configured as follows: Determine the maximum number of candidates that the candidate area can accommodate; If the number of candidate items in the candidate results is greater than the maximum number, one or more target buttons are displayed.
11. The device according to claim 7, characterized in that The first display unit is further configured as follows: Determining a target number of off-the-fold candidates in each candidate group based on the number of characters in the off-the-fold candidates; According to the target number, the non-first-screen candidate items in the candidate results are divided into a plurality of candidate item groups in sequence.
12. The device according to claim 7, characterized in that The second display unit is further configured as: When it is detected that a user triggers any target button, the target first screen candidate item corresponding to the triggered target button is used as the first target first screen candidate item, and the candidate item group corresponding to the first target first screen candidate item is displayed; When it is detected that the user triggers another target button, the first screen candidate item corresponding to the other target button is used as the second target first screen candidate item, and the candidate item group corresponding to the first target first screen candidate item is replaced with the candidate item group corresponding to the second target first screen candidate item.
13. A device for input, 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 to perform the method according to any one of claims 1 to 6.
14. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Chinese inputting method
CN1584810A
