A method and device for associative pre-fetching and a device for associative pre-fetching

By prefetching the association candidate results after the user inputs information and sending a request when the conditions are met, the problem of association candidate display delay is solved, input efficiency is improved, and resources are saved.

CN114442816BActive Publication Date: 2024-08-30BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
View PDF 18 Cites 0 Cited by

Patent Information

Application Number
CN202011219447.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-04
Publication Date
2024-08-30
Estimated Expiration
2040-11-04

AI Technical Summary

Technical Problem

In the existing technology, there is a delay or lag in the Lenovo candidate display process, which affects the user's input efficiency, mainly because it takes a certain amount of time for the server to process data and return data.

Method used

A method of associative prefetching is proposed, which obtains the user's input information, sends an associative prefetch request when preset conditions are met, obtains the target candidate results and the target association results, and displays the target association results when the user displays the target candidate results on the screen. Avoid delays and lags.

Benefits of technology

It improves input efficiency, avoids resource consumption caused by frequently sending Lenovo prefetch requests, and ensures the smoothness of Lenovo candidate display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114442816B
    Figure CN114442816B
Patent Text Reader

Abstract

The embodiment of the present application discloses an associative pre-fetching method, device and device for associative pre-fetching. The embodiment of the method includes: obtaining user input information; sending an associative pre-fetching request to obtain the target candidate result corresponding to the input information and the target associative result corresponding to the target candidate result when the preset conditions are met; displaying the target candidate result, and displaying the target associative result when the user displays the target candidate result on the screen. This implementation solves the problem of delay or freeze in the associative candidate display process and improves input efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to an associative prefetching method, device and a device for associative prefetching. Background Art

[0002] When a user uses an input method application to input content, it can usually provide the user with association candidates based on the user's input content and the previous context information, so as to save the user's input cost and improve input efficiency. For example, when the user puts "right away" on the screen, association candidates such as "class" and "come back" can be provided.

[0003] In the prior art, after a user inputs information corresponding to a candidate item on the screen, an association request is usually sent to the server to obtain the association candidate corresponding to the candidate item. Since it takes a certain amount of time for the server to process and return data, this method will cause delays or freezes in the association candidate display process, affecting the user's input efficiency. Summary of the invention

[0004] The embodiments of the present application propose an associative pre-fetching method, device and device for associative pre-fetching to solve the technical problem of delay or freeze in the associative candidate display process in the prior art.

[0005] In a first aspect, an embodiment of the present application provides an associative prefetching method, the method comprising: obtaining user input information; sending an associative prefetching request to obtain a target candidate result corresponding to the input information and a target associative result corresponding to the target candidate result when a preset condition is met; displaying the target candidate result, and displaying the target associative result when the user displays the target candidate result on the screen.

[0006] In the second aspect, an embodiment of the present application provides an associative pre-fetching device, which includes: a first acquisition unit, configured to acquire user input information; a second acquisition unit, configured to send an associative pre-fetching request when a preset condition is met, so as to acquire a target candidate result corresponding to the input information and a target associative result corresponding to the target candidate result; a display unit, configured to display the target candidate result, and display the target associative result when the user displays the target candidate result on the screen.

[0007] In a third aspect, an embodiment of the present application provides a device for associative prefetching, 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 user input information; when preset conditions are met, sending an associative prefetch request to obtain a target candidate result corresponding to the input information and a target associative result corresponding to the target candidate result; displaying the target candidate result, and displaying the target associative result when the user displays the target candidate result on the screen.

[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 associative prefetching method, device and device for associative prefetching provided in the embodiments of the present application obtain the user's input information, and send an associative prefetching request when the preset conditions are met, so as to obtain the target candidate results corresponding to the input information and the target associative results corresponding to the target candidate results; thereby displaying the target candidate results, and displaying the target associative results when the user displays the target candidate results on the screen. Therefore, on the one hand, the target associative results are pre-fetched after obtaining the user's input information, compared with the method of sending a request to obtain associative candidates after the user displays the candidate items on the screen, delays or freezes in the associative candidate display process are avoided, thereby improving input efficiency. On the other hand, by setting preset conditions and sending an associative prefetching request when the preset conditions are met, resource consumption caused by frequent sending of associative prefetching requests is avoided. 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 associative prefetching method according to the present application;

[0012] Figure 2 is a decomposed flow chart of step 102 of the associative prefetching method according to the present application;

[0013] Figure 3 is another decomposed flow chart of step 102 of the associative prefetching method according to the present application;

[0014] Figure 4 is a structural schematic diagram of an embodiment of an associative pre-fetching device according to the present application;

[0015] Figure 5is a structural schematic diagram of a device for associative prefetching according to the present application;

[0016] Figure 6 It is a schematic diagram of the structure of the server in some embodiments of the present application. DETAILED DESCRIPTION

[0017] 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.

[0018] 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.

[0019] Please refer to Figure 1 , which shows a process 100 of an embodiment of the associative prefetching method according to the present application. The above associative prefetching 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.

[0020] 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 electronic devices. 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.

[0021] The associative prefetching method in this embodiment may include the following steps:

[0022] Step 101: Obtain user input information.

[0023] In this embodiment, the execution subject of the Lenovo prefetch method (such as the above-mentioned electronic device) can obtain the input information of the user. The input information can be the information input by the user through the input method application. The user can use any input method to input information. For example, encoding input methods such as pinyin, Wubi, and strokes can be used, or a voice input method can be used, etc., which is not limited here.

[0024] As an example, when the user inputs in pinyin input mode, the input information can refer to the input string, specifically, it can refer to the encoded string input by the user. For example, if the user wants to input "马上", the encoded string input using the pinyin input method can be "mashang". When the user inputs in voice input mode, the input information can refer to the voice input by the user.

[0025] Step 102, when the preset condition is met, send a Lenovo prefetch request to obtain the target candidate result corresponding to the input information and the target Lenovo result corresponding to the target candidate result.

[0026] In this embodiment, after obtaining the input information of the user, the above-mentioned execution subject can detect whether the preset condition is met based on the input information. When the preset condition is met, a Lenovo prefetch request can be sent to the server to obtain the target candidate result corresponding to the input information and the target Lenovo result corresponding to the target candidate result.

[0027] Here, the server can refer to the server that provides support for the input method application. The server can be a single server or a server cluster composed of multiple servers. The type of the server is not limited here. For example, it can be a physical server or a cloud server, etc. The Lenovo prefetch request sent to the server can include, but is not limited to, the above-mentioned input information obtained and the context of the above-mentioned input information (such as the latest sentence on the screen), etc.

[0028] Here, the target candidate result can be parsed by the server based on the input information. The target candidate result can be one or more. Each target candidate result can be a candidate item corresponding to the input information. For example, if the input information is the input string "zaihaibianzhua", the target candidate result can include the candidate item "在海边抓" obtained after performing phonetic-character conversion (i.e., pinyin to text) on the input string "zaihaibianzhua".

[0029] Here, the target Lenovo result corresponding to the target candidate result can be one or more. Each target Lenovo result can be an associated candidate item corresponding to the target candidate result. For example, if the target candidate result is "在海边抓", the target Lenovo result can include associated candidate items such as "螃蟹" and "小鱼".

[0030] Here, the preset condition may refer to the condition for presetting the sending of an associative prefetch request. This condition can be set as needed. For example, when the current input information is the same as a certain historical input information, and it is known from historical data that the user triggered the associative candidate items returned by the server after inputting this historical input information, it can be considered that the preset condition is met, and at this time, an associative prefetch request can be sent. For another example, the local thesaurus can be used to determine the candidate items corresponding to the current input information and the associative candidate items corresponding to these candidate items. When the associative candidate items meet a certain condition (such as the word frequency being greater than a certain preset value, the probability of being displayed on the screen being greater than a certain preset value), an associative prefetch request is sent.

[0031] In some alternative implementation manners of this embodiment, as Figure 2 shown, the above step 102 can be decomposed into the following sub-steps S11 to sub-step S12 for execution:

[0032] Sub-step S11, obtaining the local associative result corresponding to the input information.

[0033] Here, the local candidate results corresponding to the input information can be obtained first. Among them, the local candidate results can be obtained using the local thesaurus. The local candidate results can be one or more. Each local candidate result can be a candidate item corresponding to the input information. For example, if the input information is the input string "qingtian", the local candidate results obtained using the local thesaurus may include "sunny day", "propping up the sky", "sweet and refreshing", etc.

[0034] Then, the local associative results corresponding to the local candidate results can be determined. Here, the local associative results can be obtained from the local thesaurus. For each local candidate result, the local associative result corresponding to this local candidate result can be the associative candidate item corresponding to this local candidate result. For example, if the local candidate results include "sunny day", "propping up the sky", "sweet and refreshing", etc., the local associative result corresponding to the local associative result "sunny day" can be "thunderbolt", the local associative result corresponding to the local associative result "propping up the sky" can be "pillar", and the local associative result corresponding to the local associative result "sweet and refreshing" can be "delicious", etc.

[0035] Sub-step S12, sending an associative prefetch request when the expected value of the local associative result is greater than or equal to a preset threshold.

[0036] Here, the expected value can be a numerical value used to measure the probability of the local associative result being hit. This numerical value can be calculated based on a preset formula or obtained by statistical analysis of historical data. Among them, the probability of the local associative result being hit can refer to the probability of being displayed on the screen by the user or the probability of being returned as the target associative result by the server, etc.

[0037] As an example, the expected value of the local associative result can be determined according to the following steps:

[0038] Step 1: Obtain the context of the input information.

[0039] Step 2: Based on the input information and the context, determine the first probability of a local candidate result being hit. The first probability of a local candidate result being hit can refer to the probability of the local candidate result being selected by the user, or the word frequency of the local candidate result, etc. The first probability can be obtained by statistically analyzing a large amount of historical data.

[0040] For example, let py_cand_i represent a certain local candidate result, py represent the input information (such as the input string), and context represent the context. Then the first probability of the local candidate result being hit can be P(py_cand_i|py,context), which represents the conditional probability that the local candidate result is py_cand_i when the input information is py and the context is context. For example, if the context is "Xiaoming", the input information is the input string "shuo", and the local candidate result corresponding to the input string "shuo" is "say", the first probability of "say" being hit is 0.8.

[0041] Step 3: Based on the context and the local candidate result, determine the second probability of a local associated result being hit. The second probability of a local associated result being hit can refer to the probability of the local associated result being selected by the user, or the probability of the local associated result being returned by the server as the target associated result, etc. The second probability can also be obtained by statistically analyzing a large amount of historical data.

[0042] For example, let asso_cand_j represent the local associated result of the local candidate result py_cand_i. Then the second probability of the local associated result being hit can be P(asso_cand_j|context, py_cand_i), which represents the probability that the local associated result asso_cand_i is hit when the local candidate result py_cand_i selected by the user (i.e., when the context for association is context and py_cand_i). For example, if the context is "Xiaoming", the input information is the input string "shuo", the local candidate result selected by the user is "say", and the second probability of the local associated result asso_cand_j "he" being hit is 0.7.

[0043] Step 4: Based on the above first probability and the above second probability, determine the expected value of the above local associated result.

[0044] Here, if there is only one local candidate result, the first probability of hitting the local candidate result and the second probability of hitting the local association result can be multiplied, and the obtained product is used as the expected value of the local association result (which can be expressed as asso_sum[i]). Here, asso_sum[i] = P(py_cand_i|py,context)×P(asso_cand_j|context,py_cand_i).

[0045] In the case where there are at least two local candidate results, for each local candidate result, the expected value of the local association result corresponding to the local candidate result can be determined based on the first probability of the local candidate result being hit and the second probability of the local association result corresponding to the local candidate result being hit (such as taking the product of the first probability and the second probability as the expected value). Then, the expected values ​​of the local association results are summed to obtain a final expected value (which can be expressed as Σasso_sum[i]).

[0046] By sending the associative pre-fetch request through the above sub-steps S11 to S12, the associative pre-fetch request can be sent when the preset conditions are met to obtain the target associative result. By setting the preset conditions for sending the associative pre-fetch request, the associative pre-fetch request can be sent when the preset conditions are met, thereby avoiding the waste of resources caused by frequently sending the associative pre-fetch request.

[0047] In some optional implementations of this embodiment, such as Figure 3 As shown, the above step 102 can be decomposed into the following sub-steps S21 to S23:

[0048] Sub-step S21, obtaining input related information.

[0049] Here, the input related information may include but is not limited to at least one of the following: the context of the input information, local candidate results of the input information, local association results of the local candidate results, length information of the local association results, user information, operating system information, input scene information, etc.

[0050] Sub-step S22, inputting the input related information into the pre-trained decision model to obtain a decision result indicating whether it is necessary to send an associative pre-fetch request.

[0051] Here, the model can extract features from the input related information and process the features to obtain a decision result indicating whether an associative prefetch request needs to be sent. Here, the decision model can be pre-trained by a machine learning method (such as a supervised learning method). And the basic model used to train the decision model can be a classification model, such as a support vector machine (SVM), a convolutional neural network (CNN), etc.

[0052] Optionally, the decision model is trained by the following steps: first, a sample set is obtained. The sample set may include input-related information and annotation information of multiple input information samples, and the annotation information may be used to indicate whether the target association result of the input information sample is displayed on the screen by the user. Then, the input-related information is input into the binary classification model, and the annotation information corresponding to the input-related information is used as the target output of the binary classification model. The binary classification model is trained using a machine learning method to obtain a decision model.

[0053] Sub-step S23, when the decision result indicates that an associative prefetch request needs to be sent, sending an associative prefetch request.

[0054] By sending the associative prefetch request through the above sub-steps S21 to S23, the decision model can automatically decide whether to send the associative prefetch request. When the decision model determines that the associative prefetch request needs to be sent, the request is sent to avoid wasting resources due to frequent sending of associative prefetch requests.

[0055] Step 103, displaying target candidate results, and displaying target association results when the user opens the target candidate results.

[0056] In this embodiment, after obtaining the target candidate result corresponding to the input information and the target association result corresponding to the target candidate result, the above-mentioned execution subject can display the target candidate result.

[0057] For example, the target candidate result can be displayed as a candidate corresponding to the input information. At the same time, other candidate items corresponding to the input information can also be displayed, such as candidates selected from the local vocabulary. Thus, after obtaining the user's input information, the local candidate results and the target candidate results (such as the candidate results returned by the cloud server) can be displayed at the same time.

[0058] In this embodiment, when the user displays the target candidate result on the screen, the above-mentioned execution subject can display the target association result corresponding to the target candidate result. For example, the target association result corresponding to the target candidate result can be displayed as a new candidate. In addition, when the user selects the target candidate result, the target candidate result can be displayed on the screen.

[0059] Since the target association results corresponding to the target candidate results have been obtained in advance, the target association results can be displayed quickly after the user displays the target candidate results, avoiding freezes and delays.

[0060] The method provided by the above-mentioned embodiment of the present application obtains the user's input information, and sends an association pre-fetch request when the preset conditions are met, so as to obtain the target candidate results corresponding to the input information and the target association results corresponding to the target candidate results; thereby displaying the target candidate results, and displaying the target association results when the user displays the target candidate results on the screen. Therefore, on the one hand, the target association results are pre-fetched after obtaining the user's input information, which avoids delays or freezes in the association candidate display process and improves input efficiency, compared to the method of sending a request to obtain the association candidates after the user displays the candidate items on the screen. On the other hand, by setting preset conditions and sending an association pre-fetch request when the preset conditions are met, resource consumption caused by frequent sending of association pre-fetch requests is avoided.

[0061] Further references Figure 4 As an implementation of the methods shown in the above figures, the present application provides an embodiment of an associative pre-fetching device, which is similar to Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0062] like Figure 4 As shown, the above-mentioned associative pre-fetching device 400 of this embodiment includes: a first acquisition unit 401, configured to obtain the user's input information; a second acquisition unit 402, configured to send an associative pre-fetching request when a preset condition is met, so as to obtain the target candidate results corresponding to the above-mentioned input information and the target associative results corresponding to the above-mentioned target candidate results; a display unit 403, configured to display the above-mentioned target candidate results, and display the above-mentioned target associative results when the user displays the above-mentioned target candidate results on the screen.

[0063] In some optional implementations of this embodiment, the second acquisition unit 402 is further configured to: acquire a local association result corresponding to the input information; and send an association pre-fetch request when the expected value of the local association result is greater than or equal to a preset threshold.

[0064] In some optional implementations of the present embodiment, the expected value of the above-mentioned local association result is determined by the following steps: obtaining the context of the above-mentioned input information; determining the first probability of the above-mentioned local candidate result hitting based on the above-mentioned input information and the above-mentioned context; determining the second probability of the above-mentioned local association result hitting based on the above-mentioned context and the above-mentioned local candidate result; determining the expected value of the above-mentioned local association result based on the above-mentioned first probability and the above-mentioned second probability.

[0065] In some optional implementations of the present embodiment, the above-mentioned determination of the expected value of the local association result based on the above-mentioned first probability and the above-mentioned second probability includes: in the case where there are at least two local candidate results, for each local candidate result, determining the expected value of the local association result corresponding to the local candidate result based on the first probability of hitting the local candidate result and the second probability of hitting the local association result corresponding to the local candidate result; and summing the expected values ​​of each local association result to obtain a final expected value.

[0066] In some optional implementations of the present embodiment, the second acquisition unit 402 is further configured to: acquire input-related information; input the input-related information into a pre-trained decision model to obtain a decision result indicating whether an associative prefetch request needs to be sent; and send the associative prefetch request when the decision result indicates that an associative prefetch request needs to be sent.

[0067] In some optional implementations of this embodiment, the above-mentioned input-related information includes at least one of the following: the context of the above-mentioned input information, local candidate results of the above-mentioned input information, local association results of the above-mentioned local candidate results, length information of the above-mentioned local association results, user information, operating system information, and input scene information.

[0068] In some optional implementations of the present embodiment, the decision model is trained through the following steps: obtaining a sample set, the sample set including input-related information and annotation information of multiple input information samples, the annotation information being used to indicate whether a target association result of the input information sample is displayed on the screen by the user; inputting the input-related information into a binary classification model, taking the annotation information corresponding to the inputted input-related information as the target output of the binary classification model, and training the binary classification model using a machine learning method to obtain a decision model.

[0069] The device provided by the above-mentioned embodiment of the present application obtains the user's input information, and sends an associative pre-fetch request when the preset conditions are met, so as to obtain the target candidate results corresponding to the input information and the target associative results corresponding to the target candidate results; thereby displaying the target candidate results, and displaying the target associative results when the user displays the target candidate results on the screen. Therefore, on the one hand, the target associative results are pre-fetched after obtaining the user's input information, compared with the method of sending a request to obtain associative candidates after the user displays the candidate items on the screen, which avoids delays or freezes in the associative candidate display process and improves input efficiency. On the other hand, by setting preset conditions and sending an associative pre-fetch request when the preset conditions are met, resource consumption caused by frequent sending of associative pre-fetch requests is avoided.

[0070] Figure 5 1 is a block diagram of a device 500 for input according to an exemplary embodiment, and the device 500 may be a smart terminal or a server. For example, the device 500 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.

[0071] Reference Figure 5 , the device 500 may include one or more of the following components: a processing component 502 , a memory 504 , a power component 506 , a multimedia component 508 , an audio component 510 , an input / output (I / O) interface 512 , a sensor component 514 , and a communication component 516 .

[0072] The processing component 502 generally controls the overall operation of the device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.

[0073] The memory 504 is configured to store various types of data to support operations on the device 500. Examples of such data include instructions for any application or method operating on the device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 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.

[0074] The power supply component 506 provides power to the various components of the device 500. The power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 500.

[0075] The multimedia component 508 includes a screen that provides an output interface between the above-mentioned device 500 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 508 includes a front camera and / or a rear camera. When the device 500 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.

[0076] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the device 500 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 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.

[0077] I / O interface 512 provides an interface between processing component 502 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.

[0078] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 can detect the open / closed state of the device 500, the relative positioning of the components, such as the display and keypad of the device 500, the sensor assembly 514 can also detect the position change of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, the orientation or acceleration / deceleration of the device 500 and the temperature change of the device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 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 514 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

[0079] The communication component 516 is configured to facilitate wired or wireless communication between the device 500 and other devices. The device 500 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 516 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 516 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.

[0080] In an exemplary embodiment, the apparatus 500 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above methods.

[0081] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, and the instructions can be executed by the processor 520 of the device 500 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0082] Figure 6 6 is a schematic diagram of the structure of the server in some embodiments of the present application. The server 600 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 622 (for example, one or more processors) and a memory 632, and one or more storage media 630 (for example, one or more mass storage devices) storing application programs 642 or data 644. Among them, the memory 632 and the storage medium 630 can be short-term storage or permanent storage. The program stored in the storage medium 630 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 622 can be configured to communicate with the storage medium 630 and execute a series of instruction operations in the storage medium 630 on the server 600.

[0083] The server 600 may also include one or more power supplies 626, one or more wired or wireless network interfaces 650, one or more input and output interfaces 658, one or more keyboards 656, and / or one or more operating systems 641, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.

[0084] A non-temporary computer-readable storage medium, when the instructions in the above storage medium are executed by the processor of a device (smart terminal or server), the device can execute an associative pre-fetching method, the above method comprising: obtaining user input information; sending an associative pre-fetching request to obtain a target candidate result corresponding to the input information and a target associative result corresponding to the target candidate result when a preset condition is met; displaying the target candidate result, and displaying the target associative result when the user displays the target candidate result on the screen.

[0085] Optionally, sending the associative pre-fetch request when a preset condition is met includes: obtaining a local associative result corresponding to the input information; and sending the associative pre-fetch request when an expected value of the local associative result is greater than or equal to a preset threshold.

[0086] Optionally, the expected value of the local association result is determined by the following steps: obtaining the context of the input information; determining a first probability of hitting the local candidate result based on the input information and the context; determining a second probability of hitting the local association result based on the context and the local candidate result; and determining the expected value of the local association result based on the first probability and the second probability.

[0087] Optionally, determining the expected value of the local association result based on the first probability and the second probability includes: when there are at least two local candidate results, for each local candidate result, determining the expected value of the local association result corresponding to the local candidate result based on the first probability of hitting the local candidate result and the second probability of hitting the local association result corresponding to the local candidate result; and summing the expected values ​​of each local association result to obtain a final expected value.

[0088] Optionally, sending an associative prefetch request when a preset condition is met includes: obtaining input-related information; inputting the input-related information into a pre-trained decision model to obtain a decision result indicating whether it is necessary to send an associative prefetch request; and sending the associative prefetch request when the decision result indicates that it is necessary to send an associative prefetch request.

[0089] Optionally, the input-related information includes at least one of the following: the context of the input information, local candidate results of the input information, local association results of the local candidate results, length information of the local association results, user information, operating system information, and input scenario information.

[0090] Optionally, the decision model is trained through the following steps: obtaining a sample set, the sample set including input-related information and annotation information of multiple input information samples, the annotation information being used to indicate whether a target association result of the input information sample is displayed on the screen by the user; inputting the input-related information into a binary classification model, using the annotation information corresponding to the input-related information as the target output of the binary classification model, and training the binary classification model using a machine learning method to obtain a decision model.

[0091] 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.

[0092] 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.

[0093] 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.

[0094] The above is a detailed introduction to an associative prefetching method, device and a device for associative prefetching 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 general technical personnel in this field, 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 associative prefetching method, characterized in that: The method comprises: Get user input information; When a preset condition is met, sending an associative pre-fetch request to obtain a target candidate result corresponding to the input information and a target associative result corresponding to the target candidate result; Displaying the target candidate results, and displaying the target association results when the user opens the target candidate results; The sending of the associative pre-fetch request when the preset condition is met includes: Obtaining a local association result corresponding to the input information; When the expected value of the local association result is greater than or equal to a preset threshold, sending an association pre-fetch request; The expected value of the local association result is determined by the following steps: Obtaining the context of the input information; Based on the input information and the above context, determining a first probability of a local candidate result hitting; Based on the above text and the local candidate results, determine a second probability of the local association result hitting; Determining an expected value of the local association result based on the first probability and the second probability; The determining, based on the first probability and the second probability, an expected value of the local association result includes: In the case where there are at least two local candidate results, for each local candidate result, based on a first probability of hitting the local candidate result and a second probability of hitting the local association result corresponding to the local candidate result, determining an expected value of the local association result corresponding to the local candidate result; The expected values ​​of each local association result are summed to obtain the final expected value.

2. An associative pre-fetching device, the associative pre-fetching device is used to execute the method according to claim 1; characterized in that: The device comprises: A first acquisition unit is configured to acquire user input information; A second acquisition unit is configured to send an associative pre-fetch request to acquire a target candidate result corresponding to the input information and a target associative result corresponding to the target candidate result when a preset condition is met; A display unit is configured to display the target candidate result and display the target association result when the user displays the target candidate result on the screen; sending the association pre-fetch request when the preset condition is met includes: Obtaining a local association result corresponding to the input information; When the expected value of the local association result is greater than or equal to a preset threshold, sending an association pre-fetch request; The expected value of the local association result is determined by the following steps: Obtaining the context of the input information; Based on the input information and the above context, determining a first probability of the local candidate result hitting; Based on the above text and the local candidate results, determine a second probability of the local association result hitting; Determining an expected value of the local association result based on the first probability and the second probability; The determining, based on the first probability and the second probability, an expected value of the local association result includes: In the case where there are at least two local candidate results, for each local candidate result, based on a first probability of hitting the local candidate result and a second probability of hitting the local association result corresponding to the local candidate result, determining an expected value of the local association result corresponding to the local candidate result; The expected values ​​of each local association result are summed to obtain the final expected value.

3. A device for associative prefetching, the associative prefetching device being used to execute the method according to claim 1; 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: Get user input information; When a preset condition is met, sending an associative pre-fetch request to obtain a target candidate result corresponding to the input information and a target associative result corresponding to the target candidate result; Displaying the target candidate results, and displaying the target association results when the user opens the target candidate results; The sending of the associative pre-fetch request when the preset condition is met includes: Obtaining a local association result corresponding to the input information; When the expected value of the local association result is greater than or equal to a preset threshold, sending an association pre-fetch request; The expected value of the local association result is determined by the following steps: Obtaining the context of the input information; Based on the input information and the above context, determining a first probability of the local candidate result hitting; Based on the above text and the local candidate results, determine a second probability of the local association result hitting; Determining an expected value of the local association result based on the first probability and the second probability; The determining, based on the first probability and the second probability, an expected value of the local association result includes: In the case where there are at least two local candidate results, for each local candidate result, based on a first probability of hitting the local candidate result and a second probability of hitting the local association result corresponding to the local candidate result, determining an expected value of the local association result corresponding to the local candidate result; The expected values ​​of each local association result are summed to obtain the final expected value.

4. 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 claim 1 is implemented.

Citation Information

Patent Citations

  • Method and system for pre-fetching webpage

    CN102222098A

  • Method and device for achievement of intelligent association in input method and terminal device

    CN103677299A

  • Associating input method and device

    CN104375663A

  • Candidate word recommendation method and apparatus

    CN106896932A

  • Implementation method for associational word search based on redis technology

    CN106919682A