Request processing method, device and medium
By determining the appropriate time range based on the historical behavior data of the candidates in the cloud input method and sending a request to request cloud candidates, the problem of traditional cloud input method increasing the burden on the server and cloud candidate lag is solved, and faster and more timely cloud candidate presentation is achieved.
Patent Information
- Application Number
- CN202110261239.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-10
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2041-03-10
AI Technical Summary
While improving the input accuracy, the traditional cloud input method increases the burden on the server, which may lead to server failure. The return of cloud candidates has a certain lag relative to the candidate display, and it is impossible to provide cloud candidates to users in a timely manner.
By presenting candidates and timing the presentation time, an appropriate time range is determined based on the candidate's historical behavior data, and a request is sent within this time range to request cloud candidates. Historical behavior data includes screen-up behavior data and/or trigger behavior data to reflect the user's behavioral laws.
This method can reduce the burden on the server while improving the presentation speed of cloud candidates, avoid server failures caused by frequent requests, and provide cloud candidates to users in a timely manner.
Smart Images

Figure CN115079836B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a request processing method, device and medium. Background Art
[0002] Traditional input methods are limited by the memory capacity and CPU power of local computers, and use smaller vocabulary and language models, resulting in limited input accuracy. Cloud input methods are input methods that rely on cloud computing technology. With the powerful storage and computing power of server clusters, they have advantages that traditional input methods cannot match: larger and newer vocabulary, more advanced language models, and these advantages significantly improve input accuracy. The client can send a request to the cloud, which can include an input string. The cloud determines the cloud candidate corresponding to the request and then returns the cloud candidate to the client for the user to choose. Providing cloud candidates quickly and reducing the burden on the server are the goals pursued in the field of input methods.
[0003] In order to improve the speed of providing cloud candidates, a request processing method is to send requests frequently. For example, after detecting the update of the input string, the request is sent immediately. This method will increase the burden on the server and even cause failures on the server.
[0004] In order to reduce the burden on the server, a request processing method sends a request after receiving a user's trigger operation for more candidate items. Since it takes a certain amount of time from the sending of the request to the return of the cloud candidate, and after receiving the trigger operation, the client will display more candidates; therefore, the return of the cloud candidate has a certain lag relative to the display of more candidates, so it will not be possible to provide the user with cloud candidates in a timely manner. Summary of the invention
[0005] Embodiments of the present invention provide a request processing method, device and medium, which can improve the presentation speed of cloud candidates while reducing the burden on the server.
[0006] In order to solve the above problem, an embodiment of the present invention discloses a request processing method, including:
[0007] Display candidate items and time the display time;
[0008] When the timing value is within the time range, a request is sent; the request is used to request cloud candidates; the time range is obtained based on the historical behavior data corresponding to the candidate items, and the historical behavior data includes: the on-screen behavior data when the candidate items are displayed, and / or, the trigger behavior data for the preset control when the candidate items are displayed; the preset control is used to trigger the display of more candidate items.
[0009] On the other hand, an embodiment of the present invention discloses a request processing device, including:
[0010] A display timing module, used to display candidate items and time the display time; and
[0011] A request sending module is used to send a request when the timing value is within a time range; the request is used to request a cloud candidate; the time range is obtained based on the historical behavior data corresponding to the candidate item, and the historical behavior data includes: on-screen behavior data when displaying the candidate item, and / or, trigger behavior data for a preset control when displaying the candidate item; the preset control is used to trigger the display of more candidate items.
[0012] In another aspect, an embodiment of the present invention discloses an apparatus for processing a request, 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. The one or more programs include instructions for performing the following operations:
[0013] Display candidate items and time the display time;
[0014] When the timing value is within the time range, a request is sent; the request is used to request cloud candidates; the time range is obtained based on the historical behavior data corresponding to the candidate items, and the historical behavior data includes: the on-screen behavior data when the candidate items are displayed, and / or, the trigger behavior data for the preset control when the candidate items are displayed; the preset control is used to trigger the display of more candidate items.
[0015] On the other hand, an embodiment of the present invention discloses a machine-readable medium having instructions stored thereon, which, when executed by one or more processors, enables the device to perform one or more of the request processing methods described above.
[0016] The embodiments of the present invention include the following advantages:
[0017] The embodiment of the present invention sends a request when the timing value of the presentation time is within the time range; the timing of sending the request can be controlled according to the triggering behavior law reflected by the time range, which can not only overcome the problem of frequently sending requests, but also improve the presentation speed of cloud candidates; therefore, the embodiment of the present invention can improve the presentation speed of cloud candidates while reducing the burden on the server. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0019] Figure 1 It is a schematic diagram of an application environment of a request processing method according to an embodiment of the present invention;
[0020] Figure 2 is a flowchart of steps of an embodiment of a request processing method of the present invention;
[0021] Figure 3 is a structural block diagram of an input device embodiment of the present invention;
[0022] Figure 4 is a block diagram of an apparatus 800 for processing a request according to the present invention; and
[0023] Figure 5 It is a schematic diagram of the structure of the server in some embodiments of the present invention. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0025] In response to the current technical problem of the contradiction between quickly providing cloud candidates and reducing the burden on the server, an embodiment of the present invention provides a request processing solution, which may include: displaying candidate items and timing the display time; sending a request when the timing value is within a time range; the request is used to request cloud candidates; the time range can be obtained based on historical behavior data corresponding to the candidate items, and the historical behavior data may specifically include: on-screen behavior data when displaying candidate items, and / or, trigger behavior data for preset controls when displaying candidate items; the preset control is used to trigger the display of more candidate items.
[0026] The inventor of this patent has discovered through research that, through the collection, accumulation and analysis of historical behavior data corresponding to candidate items, the user's triggering behavior for preset controls when the candidate items are displayed often follows a pattern; in this way, a time range can be obtained based on the analysis of the historical behavior data corresponding to the candidate items, and this time range can reflect the pattern of the user's triggering behavior for preset controls when the candidate items are displayed (hereinafter referred to as the triggering behavior pattern).
[0027] The embodiment of the present invention sends a request when the timing value of the presentation time is within the time range; the timing of sending the request can be controlled according to the triggering behavior law reflected by the time range, which can not only overcome the problem of frequently sending requests, but also improve the presentation speed of cloud candidates; therefore, the embodiment of the present invention can improve the presentation speed of cloud candidates while reducing the burden on the server.
[0028] The request processing method provided by the embodiment of the present invention can be applied to Figure 1 In the application environment shown, Figure 1 As shown, the client 100 and the server 200 are located in a wired or wireless network, and the client 100 and the server 200 perform data exchange through the wired or wireless network.
[0029] Optionally, the client 100 can be run on a terminal, which specifically includes but is not limited to: a smart phone, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a laptop computer, a car computer, a desktop computer, a set-top box, a smart TV, a wearable device, etc. The client 100 can correspond to a website or an APP (Application). The client 100 can correspond to an application such as an input method APP.
[0030] The server of the embodiment of the present invention may be a cloud server (cloud). The cloud is a simple, efficient, safe, reliable, and elastically scalable computing service. The resource information in the cloud is dynamic, so that its processing capacity can be elastically scalable.
[0031] The embodiments of the present invention can be applied to input method programs of various input methods such as keyboard symbols, handwriting, and voice. Taking the keyboard symbol input method as an example, the user can input text through a coded string, and the input string can refer to the coded string input by the user. In the field of input methods, for input method programs such as Chinese, Japanese, Korean, or other languages, the input string input by the user can usually be converted into a candidate of the corresponding language. The following is mainly explained by taking Chinese as an example, and other languages such as Japanese and Korean can be referenced to each other. It can be understood that the above-mentioned Chinese input method can include but is not limited to full spelling, simplified spelling, strokes, Wubi, etc., and the embodiments of the present invention do not limit the specific input method program corresponding to a certain language.
[0032] Taking Chinese input as an example, the types of encoded character strings may include: Pinyin string, character string (such as Wubi string, etc.) Taking English input as an example, the types of encoded character strings may include: letter string, etc.
[0033] In actual applications, for the input method of keyboard symbols, the user can input the above input string through a physical keyboard or a virtual keyboard. For example, for a terminal with a touch screen, a virtual keyboard can be set in the input interface to input the input string by triggering the virtual keys included in the above virtual keyboard. Optionally, examples of the above virtual keyboard may include: a 9-key keyboard and a 26-key keyboard. In addition, it can be understood that in addition to the virtual keys corresponding to letters, the above input interface can also be provided with symbol keys, number keys, such as function keys for switching between Chinese and English, or toolbar keys, etc. It can be understood that the embodiment of the present invention does not limit the specific keys included in the input interface.
[0034] According to some embodiments, the input string may include, but is not limited to, a key symbol or a combination of multiple key symbols input by the user through keys. The key symbol may specifically include pinyin, strokes, kana, and the like.
[0035] In the embodiment of the present invention, the candidate may be used to represent one or more characters provided by the input method program to be selected by the user. The candidate may be characters in languages such as Chinese characters, English characters, and Japanese characters, and the candidate may also be a combination of symbols in the form of emoticons, pictures, and the like. The emoticons include but are not limited to pictures composed of lines, symbols, and words. For example, examples of the emoticons may include: “:P”, “:-o”, “:-)”, and the like.
[0036] The cloud candidates can be candidates provided by the server. The cloud candidates can be associative candidates or non-associative candidates that match the input string. For example, if the input string is "meilijianh", the corresponding non-associative candidates can include "Mei Li Jianhua", etc. Another example, if the input string is "meilijianh", the corresponding associative candidates can include "United States of America", etc. It can be understood that the embodiments of the present invention do not limit the specific cloud candidates and the specific determination methods of the cloud candidates.
[0037] Method Embodiment 1
[0038] This embodiment describes the process of obtaining the time range based on the analysis of the historical behavior data corresponding to the candidate items.
[0039] The analysis of the historical behavior data corresponding to the candidate items can be performed by the client or the server. It can be understood that the embodiments of the present invention do not limit the specific execution entity for the analysis of the historical behavior data corresponding to the candidate items.
[0040] The historical behavior data corresponding to the candidate items can be the historical behavior data of the user when the candidate items are presented. Specifically, the historical behavior data can include: the on-screen behavior data when the candidate items are presented, and / or the trigger behavior data for the preset control when the candidate items are presented.
[0041] In the embodiments of the present invention, "on-screen" refers to the operation of outputting and displaying the content in the preview window to the application window. Specifically for the input method program, "on-screen" can refer to the operation of outputting and displaying the candidate items in the candidate window to the application window.
[0042] During the input process, the input method program usually presents a first preset number of candidate items in the candidate window for the user to select. If one of the candidate items A meets the user's needs, the candidate item A can be put on the screen in response to the user's on-screen operation.
[0043] There can also be a preset control displayed in the candidate window. In the case where none of the first preset number of candidate items meet the user's needs, the user can generate a trigger behavior for the preset control, and then the input method program can respond to this trigger behavior and present a second preset number of candidate items in the candidate window. The second preset number is usually greater than the first preset number; therefore, the preset control can be used to trigger more candidate items.
[0044] The on-screen behavior data may specifically refer to the on-screen behavior data for candidate items. The trigger behavior data may specifically refer to the trigger behavior data for preset controls when the candidate items are displayed. The on-screen behavior data and / or the trigger behavior data may come from at least some users on the Internet. Accordingly, the client of the input method program may collect the on-screen behavior data and / or the trigger behavior data, and regularly report the collected on-screen behavior data and / or the trigger behavior data to the server.
[0045] The embodiment of the present invention may analyze the on-screen behavior data or the triggering behavior data separately to obtain the time range, or the embodiment of the present invention may combine and analyze the on-screen behavior data or the triggering behavior data to obtain the time range.
[0046] In an optional embodiment of the present invention, the process of analyzing the historical behavior data may include: determining a mapping relationship between presentation time and behavior frequency based on the historical behavior data; and determining a time range based on the mapping relationship.
[0047] For historical behavior data corresponding to a historical behavior, the historical behavior data may include: time information of the historical behavior.
[0048] The time information may be the display time corresponding to the historical behavior, and the display time may indicate that the historical behavior is executed when the candidate item is displayed for a duration corresponding to the display time. Alternatively, the time information may be the execution time information; in this case, the display time corresponding to the historical behavior may be determined based on the execution time information and the start display time of the candidate item.
[0049] The embodiment of the present invention can analyze the historical behavior data corresponding to multiple historical behaviors to obtain a mapping relationship between the display time and the behavior frequency. The behavior frequency can include: the occurrence frequency or the number of occurrences corresponding to the historical behavior. The mapping relationship can represent the occurrence frequency or the number of occurrences of the historical behavior when the candidate item is displayed for a corresponding length of time.
[0050] In a specific implementation, the above mapping relationship may include:
[0051] a first mapping relationship between presentation time and screen frequency; and / or
[0052] The second mapping relationship between display time and trigger frequency.
[0053] Referring to Table 1, a schematic diagram of a mapping relationship between display time and behavior frequency in an embodiment of the present invention is shown, wherein T1, T2...Tn represent display time, F11, F12...Fn1 represent on-screen frequency, and F12, F22...Fn2 represent trigger frequency.
[0054] Table 1
[0055] Display time Screen frequency Trigger frequency T1 F11 F12 T2 F21 F22 T3 F31 F32 … … … Tn Fn1 Fn2
[0056] The embodiment of the present invention can analyze the above mapping relationship to determine the rule between the above behavior frequency and the display time, and then determine the time range according to the rule.
[0057] The embodiment of the present invention can provide the above mapping relationship and the following technical solution for determining the time range:
[0058] Technical solution 1,
[0059] In technical solution 1, the time range is determined based on the above-mentioned mapping relationship, which may specifically include: determining the first display time corresponding to the highest screen frequency based on the first mapping relationship; and determining the time range based on the above-mentioned first display time.
[0060] Analysis of the first mapping relationship shows that the screen frequency increases with the increase of display time. After the screen frequency increases to the maximum screen frequency, it decreases with the increase of display time. According to the above rule of the first mapping relationship, the screen frequency after the first display time shows a downward trend; thus, the reason why it is still not on the screen after the first display time may be that the candidate does not meet the user's needs. Therefore, after the first display time, cloud candidates can be requested from the server to present cloud candidates in a timely manner when the preset control is triggered.
[0061] In a specific implementation, the first presentation time or the time after the first presentation time can be used as the lower limit of the time range, and the upper limit of the time range can be determined according to the preset duration. The preset duration can represent the length of the time range, and those skilled in the art can determine the preset duration according to actual application requirements. The embodiment of the present invention does not limit the specific preset duration.
[0062] Technical solution 2,
[0063] In Technical Solution 2, the time range is determined based on the above-mentioned mapping relationship, which may specifically include: determining the second presentation time corresponding to the highest trigger frequency based on the second mapping relationship; determining the time range based on the above-mentioned second presentation time and the request processing time; the above-mentioned request processing time is used to characterize the time elapsed from the request being sent to the cloud candidate and returned.
[0064] An analysis of the second mapping relationship shows that the trigger frequency increases with the increase of the display time. After the trigger frequency increases to the maximum trigger frequency, it decreases with the increase of the display time.
[0065] According to the above rule of the second mapping relationship, the second presentation time corresponds to the triggering behavior with the highest frequency, so that the cloud candidates can be prepared before the second presentation time, so as to present the cloud candidates in time when the preset control is triggered.
[0066] In a specific implementation, the upper limit of the time range can be determined based on the second presentation time and the request processing time. For example, the upper limit of the time range can be determined based on the difference between the second presentation time and the request processing time. After determining the upper limit of the time range, the lower limit of the time range can be determined based on the preset time.
[0067] Technical solution 3,
[0068] In Technical Solution 3, the time range is determined based on the above-mentioned mapping relationship, which may specifically include: determining the corresponding third presentation time when the screen frequency and the trigger frequency match based on the first mapping relationship and the second mapping relationship; determining the time range based on the above-mentioned third presentation time and the request processing time; the above-mentioned request processing time is used to characterize the time elapsed from the request being sent to the cloud candidate and returned.
[0069] After the candidate items are displayed, the user usually browses the candidate items first. If a candidate item that meets the requirements is found during the browsing process, the candidate item will be displayed on the screen. If no candidate item that meets the requirements is found after browsing all the candidate items, the preset control will be triggered. Therefore, the triggering behavior usually lags behind the displaying behavior, that is, the display time corresponding to the triggering behavior is usually later than the display time corresponding to the displaying behavior.
[0070] The inventor of this patent has found through research that the growth trend corresponding to the trigger frequency usually corresponds to the downward trend corresponding to the screen frequency. Therefore, technical solution 3 can determine the corresponding third display time when the screen frequency and the trigger frequency match. The matching of the screen frequency and the trigger frequency can include: the difference between the screen frequency and the trigger frequency is less than the threshold, etc., which can correspond to the situation where the screen frequency and the trigger frequency are the same or similar.
[0071] According to the rules of the first mapping relationship and the second mapping relationship, after the third presentation time, the probability of triggering the behavior is usually higher than the probability of the on-screen behavior. Therefore, the cloud candidates can be prepared before the third presentation time so that the cloud candidates can be presented in time when the preset control is triggered.
[0072] In a specific implementation, the upper limit of the time range can be determined based on the third presentation time and the request processing time. For example, the upper limit of the time range can be determined based on the difference between the third presentation time and the request processing time. After determining the upper limit of the time range, the lower limit of the time range can be determined based on the preset time.
[0073] The above technical solutions 1 to 3 have introduced in detail the process of determining the time range based on the above mapping relationship. It can be understood that those skilled in the art can adopt any one or a combination of technical solutions 1 to 3 according to actual application requirements.
[0074] In a specific implementation, any one of Technical Solutions 1 to 3 may be executed based on the historical behavior data of multiple users or the historical behavior data of the current user to determine the time range.
[0075] In an optional embodiment of the present invention, the method may further include: determining a time range based on historical behavior data of multiple users; and adjusting the time range based on the historical behavior data of the current user. The time range may be adjusted so that the adjusted time range conforms to the operation habits of the current user.
[0076] For example, the historical behavior data of the current user includes: the display time corresponding to the triggering behavior. The historical behavior data of the current user can be analyzed to obtain the fourth display time corresponding to the highest triggering frequency of the current user. If the fourth display time is less than the sum of the upper limit of the time range and the request processing time, the upper limit of the time range can be lowered.
[0077] For example, the historical behavior data of the current user includes: the display time corresponding to the on-screen behavior. The historical behavior data of the current user can be analyzed to obtain the fifth display time corresponding to the current user's highest on-screen frequency. If the fifth display time is greater than the sum of the lower limit of the time range and the request processing time, the lower limit of the time range can be increased.
[0078] It can be understood that those skilled in the art can adjust the time range according to actual application requirements, and the embodiment of the present invention does not limit the specific adjustment process.
[0079] In summary, the request processing method of the embodiment of the present invention obtains a time range based on the historical behavior data analysis corresponding to the candidate items, and the time range can reflect the triggering behavior pattern of the user when the candidate items are displayed.
[0080] Method Example 2
[0081] Reference Figure 2 , shows a flowchart of a request processing method embodiment of the present invention, which may specifically include the following steps:
[0082] Step 201: Display candidate items and count the display time;
[0083] Step 202: If the timing value is within the time range, send a request; the request is used to request cloud candidates; the time range may be obtained based on historical behavior data corresponding to the candidate items;
[0084] The above-mentioned historical behavior data may include: on-screen behavior data when displaying candidate items, and / or, triggering behavior data for preset controls when displaying candidate items; the above-mentioned preset controls are used to trigger the display of more candidate items.
[0085] Figure 2 The method embodiment shown can be executed by a client. It can be understood that the embodiment of the present invention does not limit the specific execution subject of the method embodiment.
[0086] In step 201, during the input process, candidate items corresponding to the input string may be displayed, and the candidate items may be updated according to the update of the input string.
[0087] The candidate items displayed in step 201 may refer to the candidate items when the preset control is not triggered. The candidate items in step 201 may be displayed in a first candidate window, and the first candidate window may be located above the input keyboard to update the candidate items during the input process.
[0088] When the preset control is triggered, a second candidate window may be displayed, and more candidate items may be displayed in the second candidate window.
[0089] The size of the second candidate window may be greater than the size of the first candidate window, so that the number of candidate items displayed by the second candidate window may be greater than the number of candidate items displayed by the first candidate window.
[0090] For example, the first candidate window is a rectangular window, whose length and width are L1 and W1 respectively, and the second candidate window is a rectangular window, whose length and width are L2 and W2 respectively, and optionally, L1 is equal to L2, and W1 is less than W2. It can be understood that the embodiment of the present invention does not limit the specific sizes of the first candidate window and the second candidate window.
[0091] In step 202, when the timing value is within the time range, the request is sent. Since the time range can be obtained based on the historical behavior data corresponding to the candidate items, the time range can reflect the triggering behavior rules of the user when the candidate items are displayed; therefore, the presentation speed of cloud candidates can be improved while reducing the burden on the server.
[0092] When the historical behavior data includes on-screen behavior data, the on-screen behavior law can be obtained based on the on-screen behavior data, and the triggering behavior law can be determined based on the law that the triggering behavior usually lags behind the on-screen behavior, thereby obtaining a time range that conforms to the triggering behavior law.
[0093] In the case where the historical behavior data includes triggering behavior data, the triggering behavior law can be obtained based on the triggering behavior data, and then the time range that conforms to the triggering behavior law can be obtained.
[0094] When the historical behavior data includes on-screen behavior data and trigger behavior data, the on-screen behavior rules can be obtained based on the on-screen behavior data, and the trigger behavior rules can be obtained based on the trigger behavior data. Then, based on the on-screen behavior rules and the trigger behavior rules and the relationship between them, the time range that conforms to the trigger behavior rules can be obtained.
[0095] Optionally, the above time range may be obtained based on a mapping relationship between display time and behavior frequency, wherein the above mapping relationship may be obtained based on historical behavior data.
[0096] In a specific implementation, the above mapping relationship may include:
[0097] a first mapping relationship between presentation time and screen frequency; and / or
[0098] The second mapping relationship between display time and trigger frequency.
[0099] In a specific implementation, the above-mentioned time range can be obtained based on the first presentation time corresponding to the highest screen frequency, wherein the above-mentioned first presentation time can be obtained based on the first mapping relationship.
[0100] In a specific implementation, the above time range can be obtained based on the second presentation time corresponding to the highest trigger frequency and the request processing time. The second presentation time can be obtained based on the second mapping relationship. The request processing time is used to characterize the time taken from the request being sent to the cloud candidate and returned.
[0101] In a specific implementation, the above-mentioned time range can be obtained based on the corresponding third presentation time and the request processing time when the screen frequency and the trigger frequency match. The above-mentioned third presentation time can be obtained based on the first mapping relationship and the second mapping relationship. The request processing time is used to characterize the time taken from the request being sent to the cloud candidate and returned.
[0102] In a specific implementation, the above time range may be obtained based on historical behavior data of multiple users or the current user.
[0103] In a specific implementation, the above time range may be obtained by adjusting a time range obtained based on historical behavior data of multiple users according to the historical behavior data of the current user.
[0104] The request in the embodiment of the present invention may include: an input string, or the request in the embodiment of the present invention may include: an input string and its corresponding context.
[0105] After sending the request, the cloud candidate corresponding to the request may also be received. Further, after receiving a trigger operation for a preset control, the cloud candidate may also be displayed, for example, in the second candidate window.
[0106] In a specific implementation, the request may correspond to several cloud candidates, and the embodiment of the present invention does not limit the specific number of cloud candidates corresponding to the request.
[0107] In a specific implementation, a temporary word library can be set up locally on the client, and the temporary word library can be used to store temporary cloud entries corresponding to cloud candidates returned by the service client. In this way, the temporary word library can be searched according to the input string, and cloud candidates can be provided in real time during the input process, which can not only improve the speed of providing cloud candidates, but also reduce the number of requests sent and the burden on the server.
[0108] The temporary vocabulary may record information such as temporary cloud entries, input strings, word frequencies, and update time. The word frequency may represent the frequency of input of the temporary cloud entry by the current user. The update time may be the update time of the word frequency. A capacity upper limit may be set for the temporary vocabulary. When the capacity of the temporary vocabulary reaches the capacity upper limit, the temporary cloud entry may be deleted from the temporary vocabulary based on the word frequency and / or update time. For example, temporary cloud entries with a lower word frequency may be deleted, or temporary cloud entries with an earlier update time may be deleted.
[0109] In summary, the request processing method of the embodiment of the present invention sends a request when the timing value of the presentation time is within the time range; it can control the timing of sending the request according to the triggering behavior law reflected by the time range, which can not only overcome the problem of frequent request sending, but also improve the presentation speed of cloud candidates; therefore, the embodiment of the present invention can improve the presentation speed of cloud candidates while reducing the burden on the server.
[0110] In an example of the present invention, user A uses a nine-square keyboard to input, and presses the keys "6", "3", "4", "5", "4", "5", "4", "2", "6", and "4" respectively. The input method can display the syllable string "mei'li'liang" in the syllable area, and display the corresponding non-cloud candidates in the first candidate window. The non-cloud candidates displayed in the first candidate window specifically include: "no power", "no few cars", "United States of America", etc. When the timing value of the display time is within the time range, a request can be sent and the cloud candidate "Mei Lijiang" can be obtained from the server. The cloud candidate "Mei Lijiang" can be displayed in the upper right corner of the first candidate window, and the cloud logo corresponding to the cloud candidate "Mei Lijiang" can also be displayed to identify the cloud association candidate "Mei Lijiang" as a cloud candidate.
[0111] In this example, the time range can be obtained from the historical behavior data of multiple users, and the multiple users may include or exclude user A; or, the time range can be obtained from the historical behavior data of user A; or, the time range can be first obtained based on the historical behavior data of multiple users, and then the time range can be adjusted based on the historical behavior data of user A. Since the time range can reflect the triggering behavior law; therefore, the embodiment of the present invention can obtain the cloud candidate "Mei Li Jiang" from the server before user A triggers the preset control, which can not only overcome the problem of frequently sending requests, but also improve the presentation speed of cloud candidates.
[0112] It should be noted that, for the method embodiments, for the sake of simplicity of description, they are all described as a series of motion combinations, but those skilled in the art should know that the embodiments of the present invention are not limited by the described sequence of actions, because according to the embodiments of the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the motions involved are not necessarily required by the embodiments of the present invention.
[0113] Device Embodiment
[0114] Reference Figure 3 , shows a structural block diagram of an input device embodiment of the present invention, which may specifically include:
[0115] A display timing module 301 is used to display candidate items and time the display time; and
[0116] The request sending module 302 is used to send a request when the timing value is within a time range; the above request is used to request a cloud candidate; the above time range is obtained based on the historical behavior data corresponding to the candidate item, and the above historical behavior data may include: the on-screen behavior data when displaying the candidate item, and / or, the triggering behavior data for the preset control when displaying the candidate item; the above preset control is used to trigger the display of more candidate items.
[0117] Optionally, the above device may further include:
[0118] A mapping determination module, used to determine the mapping relationship between the display time and the behavior frequency based on the above historical behavior data;
[0119] The time range determination module is used to determine the time range according to the above mapping relationship.
[0120] Optionally, the above mapping relationship may include:
[0121] a first mapping relationship between presentation time and screen frequency; and / or
[0122] The second mapping relationship between display time and trigger frequency.
[0123] Optionally, the time range determination module may include:
[0124] A first presentation time determination module, used to determine a first presentation time corresponding to the highest screen frequency according to a first mapping relationship;
[0125] The first time range determination module is used to determine the time range according to the above-mentioned first presentation time.
[0126] Optionally, the time range determination module may include:
[0127] A second presentation time determination module, used to determine a second presentation time corresponding to the highest trigger frequency according to a second mapping relationship;
[0128] The second time range determination module is used to determine the time range according to the second presentation time and the request processing time; the request processing time is used to represent the time elapsed from the request being sent to the cloud candidate and returning.
[0129] Optionally, the time range determination module may include:
[0130] A third presentation time determination module, configured to determine, based on the first mapping relationship and the second mapping relationship, a corresponding third presentation time when the on-screen frequency and the trigger frequency match;
[0131] The third time range determination module is used to determine the time range according to the third presentation time and the request processing time; the request processing time is used to represent the time elapsed from when the request is sent to the cloud candidate and returned.
[0132] Optionally, the above device may further include:
[0133] A fourth time range determination module, used to determine a time range based on historical behavior data of multiple users;
[0134] The adjustment module is used to adjust the above time range according to the historical behavior data of the current user.
[0135] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0136] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0137] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0138] An embodiment of the present invention provides a device for processing requests, including 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: displaying candidate items and timing the display time; sending a request when the timing value is within a time range; the request is used to request cloud candidates; the time range is obtained based on historical behavior data corresponding to the candidate items, and the historical behavior data includes: on-screen behavior data when displaying candidate items, and / or, trigger behavior data for preset controls when displaying candidate items; the preset control is used to trigger the display of more candidate items.
[0139] Figure 4 8 is a block diagram of an apparatus 800 for processing a request according to an exemplary embodiment. For example, the apparatus 800 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.
[0140] Reference Figure 4 , the device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0141] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0142] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 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.
[0143] The power supply component 806 provides power to the various components of the device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.
[0144] The multimedia component 808 includes a screen that provides an output interface between the device 800 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 808 includes a front camera and / or a rear camera. When the device 800 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 rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0145] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a voice input mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0146] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0147] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor assembly 814 can also detect the position change of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 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 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0148] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 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 816 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 816 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, Radio Frequency Identification) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0149] In an exemplary embodiment, the apparatus 800 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.
[0150] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 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.
[0151] Figure 51 is a schematic diagram of the structure of the server in some embodiments of the present invention. The server 1900 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1922 (for example, one or more processors) and memory 1932, and one or more storage media 1930 (for example, one or more mass storage devices) storing application programs 1942 or data 1944. Among them, the memory 1932 and the storage medium 1930 can be short-term storage or permanent storage. The program stored in the storage medium 1930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 1922 can be configured to communicate with the storage medium 1930 and execute a series of instruction operations in the storage medium 1930 on the server 1900.
[0152] The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input and output interfaces 1958, one or more keyboards 1956, and / or, one or more operating systems 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
[0153] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a device (server or terminal), enables the device to perform Figure 2 The request processing method shown.
[0154] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by the processor of a device (server or terminal), the device is able to execute a request processing method, the method comprising: displaying candidate items and timing the display time; sending a request when the timing value is within a time range; the request is used to request cloud candidates; the time range is obtained based on historical behavior data corresponding to the candidate items, the historical behavior data comprising: on-screen behavior data when displaying candidate items, and / or, trigger behavior data for preset controls when displaying candidate items; the preset controls are used to trigger the display of more candidate items.
[0155] The embodiment of the present invention discloses A1, a request processing method, the method comprising:
[0156] Display candidate items and time the display time;
[0157] When the timing value is within the time range, a request is sent; the request is used to request cloud candidates; the time range is obtained based on the historical behavior data corresponding to the candidate items, and the historical behavior data includes: the on-screen behavior data when the candidate items are displayed, and / or, the trigger behavior data for the preset control when the candidate items are displayed; the preset control is used to trigger the display of more candidate items.
[0158] A2. The method according to A1, further comprising:
[0159] Determine a mapping relationship between display time and behavior frequency based on the historical behavior data;
[0160] A time range is determined according to the mapping relationship.
[0161] A3. According to the method described in A2, the mapping relationship includes:
[0162] a first mapping relationship between presentation time and screen frequency; and / or
[0163] The second mapping relationship between display time and trigger frequency.
[0164] A4. The method according to A3, wherein determining the time range based on the mapping relationship comprises:
[0165] Determine, according to the first mapping relationship, a first presentation time corresponding to the highest screen frequency;
[0166] A time range is determined according to the first presentation time.
[0167] A5. The method according to A3, wherein determining the time range based on the mapping relationship comprises:
[0168] Determine, according to the second mapping relationship, a second presentation time corresponding to the highest trigger frequency;
[0169] The time range is determined according to the second presentation time and the request processing time; the request processing time is used to represent the time elapsed from when the request is sent to and returned from the cloud candidate.
[0170] A6. The method according to A3, wherein determining the time range based on the mapping relationship comprises:
[0171] Determine, according to the first mapping relationship and the second mapping relationship, a corresponding third presentation time when the screen frequency and the trigger frequency match;
[0172] The time range is determined according to the third presentation time and the request processing time; the request processing time is used to represent the time elapsed from when the request is sent to the cloud candidate and returned.
[0173] A7. The method according to A1, further comprising:
[0174] Determine the time range based on the historical behavior data of multiple users;
[0175] The time range is adjusted according to the historical behavior data of the current user.
[0176] The embodiment of the present invention discloses B8, an input device, comprising:
[0177] A display timing module, used to display candidate items and time the display time; and
[0178] A request sending module is used to send a request when the timing value is within a time range; the request is used to request a cloud candidate; the time range is obtained based on the historical behavior data corresponding to the candidate item, and the historical behavior data includes: on-screen behavior data when displaying the candidate item, and / or, trigger behavior data for a preset control when displaying the candidate item; the preset control is used to trigger the display of more candidate items.
[0179] B9. The device according to B8, further comprising:
[0180] A mapping determination module, used to determine a mapping relationship between presentation time and behavior frequency based on the historical behavior data;
[0181] The time range determination module is used to determine the time range according to the mapping relationship.
[0182] B10. According to the apparatus described in B9, the mapping relationship includes:
[0183] a first mapping relationship between presentation time and screen frequency; and / or
[0184] The second mapping relationship between display time and trigger frequency.
[0185] B11. According to the device described in B10, the time range determination module includes:
[0186] A first presentation time determination module, used to determine a first presentation time corresponding to the highest screen frequency according to a first mapping relationship;
[0187] The first time range determining module is used to determine the time range according to the first presentation time.
[0188] B12. According to the device described in B10, the time range determination module includes:
[0189] A second presentation time determination module, used to determine a second presentation time corresponding to the highest trigger frequency according to a second mapping relationship;
[0190] The second time range determination module is used to determine the time range according to the second presentation time and the request processing time; the request processing time is used to represent the time elapsed from the request being sent to the cloud candidate and returning.
[0191] B13. According to the device described in B10, the time range determination module includes:
[0192] A third presentation time determination module, configured to determine, based on the first mapping relationship and the second mapping relationship, a corresponding third presentation time when the on-screen frequency and the trigger frequency match;
[0193] The third time range determination module is used to determine the time range according to the third presentation time and the request processing time; the request processing time is used to represent the time elapsed from the request being sent to the cloud candidate and returning.
[0194] B14. The device according to B8, further comprising:
[0195] A fourth time range determination module, used to determine a time range based on historical behavior data of multiple users;
[0196] The adjustment module is used to adjust the time range according to the historical behavior data of the current user.
[0197] The embodiment of the present invention discloses C15, a device for processing a request, 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:
[0198] Display candidate items and time the display time;
[0199] When the timing value is within the time range, a request is sent; the request is used to request cloud candidates; the time range is obtained based on the historical behavior data corresponding to the candidate items, and the historical behavior data includes: the on-screen behavior data when the candidate items are displayed, and / or, the trigger behavior data for the preset control when the candidate items are displayed; the preset control is used to trigger the display of more candidate items.
[0200] C16. The device according to C15, wherein the device is further configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations:
[0201] Determine a mapping relationship between display time and behavior frequency based on the historical behavior data;
[0202] A time range is determined according to the mapping relationship.
[0203] C17. According to the apparatus of C16, the mapping relationship comprises:
[0204] a first mapping relationship between presentation time and screen frequency; and / or
[0205] The second mapping relationship between display time and trigger frequency.
[0206] C18. According to the apparatus of C17, determining the time range according to the mapping relationship comprises:
[0207] Determine, according to the first mapping relationship, a first presentation time corresponding to the highest screen frequency;
[0208] A time range is determined according to the first presentation time.
[0209] C19. According to the apparatus of C17, determining the time range according to the mapping relationship comprises:
[0210] Determine, according to the second mapping relationship, a second presentation time corresponding to the highest trigger frequency;
[0211] The time range is determined according to the second presentation time and the request processing time; the request processing time is used to represent the time elapsed from when the request is sent to and returned from the cloud candidate.
[0212] C20. According to the apparatus of C17, determining the time range according to the mapping relationship comprises:
[0213] Determine, according to the first mapping relationship and the second mapping relationship, a corresponding third presentation time when the screen frequency and the trigger frequency match;
[0214] The time range is determined according to the third presentation time and the request processing time; the request processing time is used to represent the time elapsed from when the request is sent to the cloud candidate and returned.
[0215] C21. The device according to C15, wherein the device is further configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations:
[0216] Determine the time range based on the historical behavior data of multiple users;
[0217] The time range is adjusted according to the historical behavior data of the current user.
[0218] The embodiment of the present invention discloses D22, a machine-readable medium having instructions stored thereon, which, when executed by one or more processors, enables the device to execute the request processing method as described in one or more of A1 to A7.
[0219] 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.
[0220] It should be understood that the present invention is not limited to the exact construction that has 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 invention is limited only by the appended claims.
[0221] 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.
[0222] The request processing method, input device, device for processing requests, and machine-readable medium provided by the present invention are introduced in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A request processing method, characterized in that: The method comprises: Determine, based on the on-screen behavior data and the triggering behavior data in the historical behavior data, a first mapping relationship between the presentation time and the on-screen frequency and a second mapping relationship between the presentation time and the triggering frequency; Determine a first presentation time corresponding to the highest screen appearance frequency according to the first mapping relationship, and determine a third presentation time according to the first mapping relationship and the second mapping relationship, after which the probability of triggering the behavior is higher than the probability of the screen appearance behavior; Obtaining request processing time, where the request processing time is used to represent the time elapsed from when the request is sent to when the cloud candidate returns; The time range is determined by taking the first presentation time as the lower limit of the time range and the difference between the third presentation time and the request processing time as the upper limit of the time range; Displaying candidate items and timing the display time of the candidate items; When the timing value is within the time range, the request is sent; the request is used to request the cloud candidate; the time range is obtained based on the historical behavior data corresponding to the candidate item, and the historical behavior data includes: the on-screen behavior data when the candidate item is displayed, and / or, the trigger behavior data for the preset control when the candidate item is displayed; the preset control is used to trigger the display of more candidate items; In response to receiving a trigger operation for a preset control, the cloud candidates are presented.
2. The method according to claim 1, characterized in that The method further comprises: Determine the time range based on the historical behavior data of multiple users; The time range is adjusted according to the historical behavior data of the current user.
3. An input device, characterized in that: include: A mapping determination module, used to determine a first mapping relationship between presentation time and presentation frequency and a second mapping relationship between presentation time and trigger frequency according to the presentation behavior data and the trigger behavior data in the historical behavior data; Determine a first presentation time corresponding to the highest screen appearance frequency according to the first mapping relationship, and determine a third presentation time according to the first mapping relationship and the second mapping relationship, after which the probability of triggering the behavior is higher than the probability of the screen appearance behavior; Obtaining request processing time, where the request processing time is used to represent the time elapsed from when the request is sent to when the cloud candidate returns; a time range determination module, configured to determine the time range by taking the first presentation time as the lower limit of the time range and the difference between the third presentation time and the request processing time as the upper limit of the time range; A display timing module, used to display candidate items and time the display time of the candidate items; as well as A request sending module, used for sending the request when the timing value is within the time range; The request is used to request the cloud candidate; The time range is obtained based on the historical behavior data corresponding to the candidate items, and the historical behavior data includes: the on-screen behavior data when the candidate items are displayed, and / or, the triggering behavior data for the preset control when the candidate items are displayed; the preset control is used to trigger the display of more candidate items; A presentation module is used to present the cloud candidate in response to receiving a trigger operation for a preset control.
4. A device for processing a request, characterized in that The system 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, wherein the one or more programs include instructions for performing the following operations: Determine, based on the on-screen behavior data and the triggering behavior data in the historical behavior data, a first mapping relationship between the presentation time and the on-screen frequency and a second mapping relationship between the presentation time and the triggering frequency; Determine a first presentation time corresponding to the highest screen appearance frequency according to the first mapping relationship, and determine a third presentation time according to the first mapping relationship and the second mapping relationship, after which the probability of triggering the behavior is higher than the probability of the screen appearance behavior; Obtaining request processing time, where the request processing time is used to represent the time elapsed from when the request is sent to when the cloud candidate returns; The time range is determined by taking the first presentation time as the lower limit of the time range and the difference between the third presentation time and the request processing time as the upper limit of the time range; Displaying candidate items and timing the display time of the candidate items; If the timing value is within the time range, sending the request; The request is used to request the cloud candidate; The time range is obtained based on the historical behavior data corresponding to the candidate items, and the historical behavior data includes: the on-screen behavior data when the candidate items are displayed, and / or, the triggering behavior data for the preset control when the candidate items are displayed; the preset control is used to trigger the display of more candidate items; In response to receiving a trigger operation for a preset control, the cloud candidates are presented.
5. A machine-readable medium having instructions stored thereon, which, when executed by one or more processors, causes a device to execute the request processing method according to claim 1 or 2.
Citation Information
Patent Citations
Input method and device and device for input
CN106896975A