Information prediction method, device and electronic equipment
By obtaining reference information on the input method client and uploading it to the server for attribute prediction, combined with the attribute prediction information from the server, the problem of low accuracy of client prediction candidates is solved and input efficiency is improved.
Patent Information
- Application Number
- CN201910024708.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-01-10
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2039-01-10
AI Technical Summary
In the prior art, input method clients have low accuracy in predicting input candidates, resulting in low input efficiency. In particular, due to limited computing resources and space resources, it is difficult to implement complex strategies and models to obtain more accurate results.
By obtaining the reference information related to the current input node, uploading it to the server for attribute prediction, receiving the attribute prediction information from the server, and predicting the input candidates of the next input node based on this information on the client, combined with the attribute prediction from the server to compensate the customer Insufficient end resources, improve the accuracy of input candidates.
It greatly improves the accuracy of input method client prediction of input candidates, reduces the impact of network delay on prediction, and improves input efficiency.
Smart Images

Figure CN111427460B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of software technology, and in particular to an information prediction method, apparatus, and electronic device. Background Technology
[0002] Currently, input methods employ models and strategies on both the client and server sides (i.e., cloud servers) to support user input. Each has its advantages and disadvantages: clients have no network latency and can quickly obtain predicted input candidates, but due to limited computing and spatial resources, they struggle to implement complex strategies and models to achieve more accurate results. Cloud servers, on the other hand, have far superior computing and spatial resources, enabling them to obtain better results than local servers. However, they require a network connection, which can lead to network transmission latency, making it difficult to promptly display predicted input candidates to the user for selection. Due to this network requirement, the impact of cloud servers on improving input efficiency is inconsistent. Therefore, improving the accuracy of input candidate predictions on the input method client side has become a key breakthrough in improving input efficiency in existing technologies. Summary of the Invention
[0003] This invention provides an information prediction method, apparatus, and electronic device to solve the technical problem of low accuracy in predicting input candidates by input method clients in the prior art, thereby improving input efficiency.
[0004] This invention provides an information prediction method applied to an input method client. The method includes:
[0005] Obtain reference information related to the current input node;
[0006] The reference information is uploaded to the server, and the server is requested to perform attribute prediction on the input content of the next input node based on the reference information to obtain attribute prediction information;
[0007] Receive the attribute prediction information sent by the server;
[0008] Based on the attribute prediction information, the input candidate for the next input node is predicted and output through the input method client.
[0009] Optionally, the method further includes:
[0010] Receive the target context information corresponding to the attribute prediction information sent by the server, or receive the target context information and the target attribute of the target context information;
[0011] The step of predicting and outputting the input candidates for the next input node based on the attribute prediction information via the input method client includes:
[0012] Based on the attribute prediction information and the target context information, the input method client predicts and outputs the input candidate for the next input node; or, based on the attribute prediction information, the target context information, and the target attribute, the input method client predicts and outputs the input candidate for the next input node.
[0013] Optionally, the method further includes:
[0014] Receive the first candidate option corresponding to the attribute prediction information and the second candidate option corresponding to the first candidate option from the server;
[0015] If the first candidate option is included in the input candidate options, and the user selects the first candidate option to display on the screen, the input method client will place the second candidate option in the input candidate list of subsequent input nodes.
[0016] Optionally, the reference information includes: the context information corresponding to the current input node, the string to be converted input by the user, and / or environment information.
[0017] Optionally, the attribute prediction information includes: at least one attribute of the input content and / or the probability of occurrence of the at least one attribute, wherein the at least one attribute includes: type, part of speech, and sentiment.
[0018] This application also provides an information prediction method, applied to a server, including:
[0019] Receive reference information related to the current input node uploaded by the input method client;
[0020] Based on the reference information, attribute prediction information is obtained by performing attribute prediction on the input content of the next input node.
[0021] The attribute prediction information is sent to the input method client so that the input method client can predict the input candidates for the next input node based on the attribute prediction information.
[0022] Optionally, the method further includes:
[0023] Predict and obtain a first candidate option corresponding to the reference information and a second candidate option corresponding to the first candidate option;
[0024] The first and second candidate options are sent to the input method client so that after the input method client confirms that the user has selected the first candidate option, it will place the second candidate option in the input candidate list of subsequent input nodes.
[0025] Optionally, the method further includes:
[0026] Obtain the target context information corresponding to the attribute prediction information in the reference information, or obtain the target context information and the target attribute of the target context information;
[0027] The target context information, or the target context information and the target attribute, are sent to the input method client.
[0028] Optionally, the attribute prediction information includes: at least one attribute of the input content and / or the probability of occurrence of the at least one attribute, wherein the at least one attribute includes: type, part of speech, and sentiment.
[0029] This application also provides an information prediction device applied to an input method client, including:
[0030] The acquisition unit is used to acquire reference information related to the current input node;
[0031] The sending unit is used to upload the reference information to the server and request the server to perform attribute prediction on the input content of the next input node based on the reference information to obtain attribute prediction information.
[0032] A receiving unit is configured to receive the attribute prediction information sent by the server.
[0033] The prediction unit is used to predict and output the input candidates for the next input node based on the attribute prediction information through the input method client.
[0034] Optionally, the receiving unit is further configured to: receive target context information corresponding to the attribute prediction information sent by the server, or receive the target context information and the target attribute of the target context information;
[0035] The prediction unit is specifically used to: predict and output the input candidate for the next input node based on the attribute prediction information and the target context information through the input method client; or, predict and output the input candidate for the next input node based on the attribute prediction information, the target context information, and the target attribute through the input method client.
[0036] Optionally, the receiving unit is further configured to: receive a first candidate option corresponding to the attribute prediction information and a second candidate option corresponding to the first candidate option sent by the server;
[0037] The prediction unit is further configured to: if the input candidate includes the first candidate and the user selects the first candidate for display, the input method client will place the second candidate in the input candidate list of subsequent input nodes.
[0038] Optionally, the reference information includes: the context information corresponding to the current input node, the string to be converted input by the user, and / or environment information.
[0039] Optionally, the attribute prediction information includes: at least one attribute of the input content and / or the probability of occurrence of the at least one attribute, wherein the at least one attribute includes: type, part of speech, and sentiment.
[0040] This application also provides an information prediction device, applied to a server, comprising:
[0041] The receiving module is used to receive reference information related to the current input node uploaded by the input method client;
[0042] The prediction module is used to perform attribute prediction on the input content of the next input node based on the reference information to obtain attribute prediction information.
[0043] The sending module is used to send the attribute prediction information to the input method client, so that the input method client can predict and obtain the input candidates for the next input node based on the attribute prediction information.
[0044] Optionally, the prediction module is further configured to: predict and obtain a first candidate option corresponding to the reference information and a second candidate option corresponding to the first candidate option;
[0045] The sending module is further configured to: send the first candidate option and the second candidate option to the input method client, so that after the input method client confirms that the user has selected the first candidate option to be displayed on the screen, it will place the second candidate option in the input candidate list of the subsequent input node.
[0046] Optionally, the device further includes: an acquisition module, configured to acquire target context information corresponding to the attribute prediction information in the reference information, or to acquire the target context information and the target attribute of the target context information;
[0047] The sending module is further configured to: send the target context information or the target context information and the target attribute to the input method client.
[0048] Optionally, the attribute prediction information includes: at least one attribute of the input content and / or the probability of occurrence of the at least one attribute, wherein the at least one attribute includes: type, part of speech, and sentiment.
[0049] This application also provides an electronic device, including a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:
[0050] Obtain reference information related to the current input node;
[0051] The reference information is uploaded to the server, and the server is requested to perform attribute prediction on the input content of the next input node based on the reference information to obtain attribute prediction information;
[0052] Receive the attribute prediction information sent by the server;
[0053] Based on the attribute prediction information, the input candidate for the next input node is predicted and output through the input method client.
[0054] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:
[0055] Obtain reference information related to the current input node;
[0056] The reference information is uploaded to the server, and the server is requested to perform attribute prediction on the input content of the next input node based on the reference information to obtain attribute prediction information;
[0057] Receive the attribute prediction information sent by the server;
[0058] Based on the attribute prediction information, the input candidate for the next input node is predicted and output through the input method client.
[0059] This application also provides an electronic device, including a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:
[0060] Receive reference information related to the current input node uploaded by the input method client;
[0061] Based on the reference information, attribute prediction information is obtained by performing attribute prediction on the input content of the next input node.
[0062] The attribute prediction information is sent to the input method client so that the input method client can predict the input candidates for the next input node based on the attribute prediction information.
[0063] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, performs the following steps:
[0064] Receive reference information related to the current input node uploaded by the input method client;
[0065] Based on the reference information, attribute prediction information is obtained by performing attribute prediction on the input content of the next input node.
[0066] The attribute prediction information is sent to the input method client so that the input method client can predict the input candidates for the next input node based on the attribute prediction information.
[0067] The above-described one or more technical solutions in the embodiments of this application have at least the following technical effects:
[0068] This application provides an information prediction method. The method involves obtaining reference information related to the current input node through an input method client; uploading this reference information to a server; requesting the server to perform attribute prediction on the input content of the next input node based on the reference information; obtaining attribute prediction information because this attribute prediction is performed on the next input node, it has a high tolerance for network latency; and since the prediction only targets the attributes of the input content, it greatly saves prediction time. The input method client receives the attribute prediction information sent by the server, predicts and outputs the input candidates for the next input node based on this attribute prediction information. By combining the attribute prediction from the server, the method compensates for the limited computing and spatial resources of the input method client, improves the accuracy of the input method client's prediction of input candidates, solves the technical problem of low accuracy in predicting input candidates in the prior art, and improves input efficiency. Attached Figure Description
[0069] Figure 1 A schematic diagram of a client-side process for an information prediction method provided in this application embodiment;
[0070] Figure 2 This is a schematic diagram of the server-side process of an information prediction method provided in an embodiment of this application;
[0071] Figure 3 A block diagram of the client information prediction device provided in the embodiments of this application;
[0072] Figure 4A block diagram of a server-side information prediction device provided in an embodiment of this application;
[0073] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0074] Figure 6 This is a schematic diagram of the structure of a server provided in an embodiment of this application. Detailed Implementation
[0075] The technical solution provided in this application embodiment provides an information prediction method, which assists the input method client in predicting input candidates by predicting the attributes of the input content on the server side, so as to improve the accuracy of the input method client in predicting input candidates and thus improve input efficiency.
[0076] The main implementation principles, specific implementation methods, and corresponding beneficial effects of the technical solutions of the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0077] Example
[0078] Please refer to Figure 1 This application provides an information prediction method applied to an input method client. The method includes:
[0079] S10: Obtain reference information related to the current input node;
[0080] S12: Upload the reference information to the server and request the server to perform attribute prediction on the input content of the next input node based on the reference information to obtain attribute prediction information;
[0081] S14: Receive the attribute prediction information sent by the server;
[0082] S16: Based on the attribute prediction information, the input candidates for the next input node are predicted and output through the input method client.
[0083] In the specific implementation process, during the operation of the input method client, S10 can obtain reference information related to the current input node, including: the preceding text information corresponding to the current input node, the string to be converted entered by the user, environmental information, and one or more other information.
[0084] The preceding information can be input by the user through the input method client, or it can be dialogue content received by the application. For example, if the user has already typed "I am from Northeast China, I like to eat" at the current input node, the previously typed "I am from Northeast China, I like to eat" can be obtained as the preceding information of the current input node. If the user has not entered any content at the current input node, but the current input node corresponds to a chat window that has received the message "What to eat in Beijing" from the other user, then "What to eat in Beijing" can be obtained as the preceding information of the current input node.
[0085] Environmental information can be the current geographical location of the electronic device or the application type information of the current input node, to assist the server in predicting the attributes of the content the user will input at the next input node. For example, if the application type of the current input node is food, then using food as its environmental information will make the attribute prediction more biased towards food-related candidates; if the application type of the current input node is travel, then using travel as its environmental information will make the attribute prediction more biased towards travel-related candidates.
[0086] After obtaining reference information in S10, S12 uploads the obtained reference information to the server, requesting the server to perform attribute prediction on the input content of the next input node based on the reference information. The server has richer computational, data, and spatial resources, enabling more accurate data prediction. For example, when a user inputs "Jay Chou + sang," the client will provide conversion results such as "song" and "good" based on the context of "sang." These candidates appear because the client lacks the resources and strategies to know the specific content of "Jay Chou sang" and, based on this information, the likelihood of a song title following it is higher. However, the server, with its abundant data and computational resources, can accurately identify "Jay Chou" as a singer, making it more likely that a song title will follow "Jay Chou sang," and thus predicting that the user will likely input a song title as the next input node. Therefore, this embodiment uses a server to assist the input method client in information prediction, requesting the server to predict the attributes of the input content of the next input node. This not only eliminates the need for the server to predict specific candidates, shortening the server's prediction time, but also enables the client to improve the accuracy of information prediction based on its attribute prediction information.
[0087] The attribute prediction information includes at least one attribute of the input content and / or the probability of occurrence of at least one attribute. The at least one attribute of the input content includes: type, part of speech, and sentiment. For example, based on the preceding information "sung by Jay Chou" and the user-input string "qlx" to be converted, the server predicts that the type of the input content for the next input node is "song," with a probability of occurrence of 0.8; the part of speech of the input content is "name"; and the sentiment of the input content is "positive."
[0088] In the specific implementation process, when performing attribute prediction, the server can also annotate the target context information and the target attribute of the target context information, and send the target context information or the target context information and its target attribute to the input method client for reference. For example, based on the target context information "Jay Chou" or the target context information and target attribute "Jay Chou: singer" in the context information "I like Jay Chou", the server predicts that the user's input "qlx" is intended to input "Jay Chou's" "songs". Then, the attribute prediction result "songs" and its corresponding target context information "Jay Chou" are sent to the input method client.
[0089] After performing attribute prediction, the server can further predict and obtain the first candidate option and the second candidate option corresponding to the reference information. The first and second candidate options are then sent to the input method client so that after the input method client confirms that the user has selected the first candidate option, it can place the second candidate option in the input candidate list of subsequent input nodes, thereby accelerating the subsequent prediction of the input method client.
[0090] After S12, the input method client continues to execute S14 to receive the attribute prediction information sent by the server. If the server also sends the target context information, first candidate and second candidate information corresponding to the reference information, then the client further receives the target context information, first candidate and second candidate information sent by the server.
[0091] After receiving the information corresponding to the reference information from the server in S14, the input method client executes S16 to predict and output the input candidates for the next input node based on the received attribute prediction information. The input method client can obtain, filter, and sort the candidates based on the attribute prediction information to provide more accurate input candidates to the user. For example, assuming the reference information from the server is "the next word is a noun," the client can filter out non-noun candidates from its local pool, or it can reorder the candidates to appropriately increase the score of noun candidates and decrease the score of non-noun candidates to obtain reordered input candidates.
[0092] Furthermore, if the client also receives target context information corresponding to the attribute prediction information, the client can predict and output the input candidates for the next input node based on the attribute prediction information and its target context information when performing information prediction.
[0093] For example, when a user inputs the context "I am from Northeast China, and I like to eat," the client uploads the context and other reference information to the server. The server then sends the attribute prediction information "dish name" and the corresponding target context "Northeast China." When the client predicts candidate options for the user-input string "gbr" based on the attribute "dish name" and the associated keyword "Northeast China," it can use the joint occurrence probability between "dish name," "Northeast China," and the candidate options to provide input candidate options: "Guobaorou" (sweet and sour pork) is provided to the user as the first ranked input candidate option.
[0094] If the client also receives a first and a second candidate option corresponding to the attribute prediction information, the client can predict the input candidate option for the next input node and the input candidate option for the subsequent input node based on the attribute prediction information, the first candidate option, and the second candidate option when performing information prediction. Specifically, the client can provide the candidate option predicted based on the attribute prediction information and the first candidate option as the input candidate option for the next input node to the user, and detect the user's selection. If the user selects the first candidate option, the input method client will place the second candidate option in the input candidate list of the subsequent input node for the user to choose from.
[0095] For example, if a user inputs "I am a fan of Jay Chou, I like him," the client uploads this information to the server. After attribute prediction, the server sends the following to the client: information containing the name "Jay Chou," along with the first candidate option "singing" and its corresponding second candidate option "Confession Balloon, Seven Mile Fragrance, Listen to Mom," and the first candidate option "filming" and its corresponding second candidate option "Initial D, Secret." The client then outputs the input candidates to the user based on the attribute prediction information and the first candidate option. If the user inputs "singing," the next input will show "Confession Balloon, Seven Mile Fragrance, Listen to Mom" for the user to choose from. If the user inputs "filming," the next input will show "Initial D, Secret," etc., for the user to choose from.
[0096] Please refer to Figure 2 Based on the information prediction method applied to the input method client described above, this embodiment also provides another information prediction method applied to the server, which includes:
[0097] S21: Receive reference information related to the current input node uploaded by the input method client;
[0098] S23: Based on the reference information, perform attribute prediction on the input content of the next input node to obtain attribute prediction information;
[0099] S25: The attribute prediction information is sent to the input method client so that the input method client can predict and obtain the input candidate for the next input node based on the attribute prediction information.
[0100] The reference information related to the current input node includes: the preceding text information corresponding to the current input node, the string to be converted by the user, and / or environmental information. The attribute prediction information obtained from attribute prediction includes: at least one attribute of the input content and / or the probability of occurrence of at least one attribute, wherein at least one attribute includes: type, part of speech, and sentiment tone, etc.
[0101] After receiving the reference information uploaded by the input method client in S21, the server executes S23 to predict the attributes of the input content that the user will input at the next input node based on any one or more of the information in the reference information, such as the preceding information, the string to be converted, and the environment information. For example, based on the preceding information "singing", the attribute of the next input content is predicted to be "noun". Based on "Jay Chou", the attribute of the string to be converted "jht" and the user's application environment "music app" is predicted to be "song" related to "Jay Chou".
[0102] In the specific implementation process, when the server executes S23, it can also obtain the target context information corresponding to its attribute prediction information in the reference information, or obtain the target context information and the attribute of the target context information; and send the target context information or the target context information and its target attribute to the input method client, so that the input method client can refer to the attribute prediction information and the target context information when predicting input candidates locally, so as to further improve the accuracy of information prediction by the input method client.
[0103] To further improve the accuracy and efficiency of information prediction in the input method client, after performing attribute prediction, the server can also predict and obtain the first candidate option and the second candidate option corresponding to the reference information. The first and second candidate options are then sent to the input method client so that after the input method client confirms that the user has selected the first candidate option, the second candidate option will be placed in the input candidate list of subsequent input nodes.
[0104] When performing attribute prediction and candidate prediction, the server can utilize existing input method candidate conversion strategies, databases, and computing resources. This embodiment does not limit the specific prediction strategy of the server. The server obtains attribute prediction information through any prediction strategy and sends it to the input method client. This compensates for the low accuracy of information prediction caused by insufficient resources on the input method client, thereby accelerating the prediction of input candidate options and improving the accuracy of the input method client's predictions.
[0105] In addition to the information prediction method provided in the above embodiments, this application also provides an information prediction device applied to an input method client. Please refer to... Figure 3 The device includes:
[0106] Acquisition unit 31 is used to acquire reference information related to the current input node;
[0107] Sending unit 32 is used to upload the reference information to the server and request the server to perform attribute prediction on the input content of the next input node based on the reference information to obtain attribute prediction information;
[0108] Receiving unit 33 is used to receive the attribute prediction information sent by the server;
[0109] The prediction unit 34 is used to predict and output the input candidates for the next input node based on the attribute prediction information through the input method client.
[0110] The reference information includes: the context information corresponding to the current input node, the string to be converted input by the user, and / or environmental information. The attribute prediction information includes: at least one attribute of the input content and / or the probability of occurrence of the at least one attribute, wherein the at least one attribute includes: type, part of speech, and sentiment tone.
[0111] As an optional implementation, the receiving unit 33 is further configured to: receive target context information corresponding to the attribute prediction information sent by the server, or receive the target context information and the target attribute of the target context information; the prediction unit 34 is specifically configured to: predict and output the input candidate for the next input node through the input method client based on the attribute prediction information and the target context information; or predict and output the input candidate for the next input node through the input method client based on the attribute prediction information, the target context information and the target attribute.
[0112] As an optional implementation, the receiving unit 34 is further configured to: receive a first candidate option corresponding to the attribute prediction information and a second candidate option corresponding to the first candidate option sent by the server; the prediction unit 34 is further configured to: if the input candidate option includes the first candidate option, and the user selects the first candidate option to be displayed, the input method client will place the second candidate option in the input candidate list of subsequent input nodes.
[0113] In addition to the information prediction method provided in the above embodiments, this application also provides an information prediction device applied to a server. Please refer to [link / reference]. Figure 4 The device includes:
[0114] The receiving module 41 is used to receive reference information related to the current input node uploaded by the input method client;
[0115] Prediction module 42 is used to perform attribute prediction on the input content of the next input node based on the reference information to obtain attribute prediction information;
[0116] The sending module 43 is used to send the attribute prediction information to the input method client so that the input method client can predict and obtain the input candidate of the next input node based on the attribute prediction information.
[0117] The attribute prediction information includes: at least one attribute of the input content and / or the probability of occurrence of the at least one attribute, wherein the at least one attribute includes: type, part of speech, and sentiment.
[0118] As an optional implementation, the prediction module 42 is further configured to: predict and obtain a first candidate option corresponding to the reference information and a second candidate option corresponding to the first candidate option; the sending module 43 is further configured to: send the first candidate option and the second candidate option to the input method client, so that after the input method client confirms that the user has selected the first candidate option for display, it will place the second candidate option in the input candidate list of subsequent input nodes.
[0119] As an optional implementation, the device further includes: an acquisition module 44, configured to acquire target context information corresponding to the attribute prediction information in the reference information, or to acquire the target context information and the target attribute of the target context information; the sending module 43 is further configured to: send the target context information or the target context information and the target attribute to the input method client.
[0120] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0121] Figure 5 This is a block diagram illustrating an electronic device 800 for implementing an information prediction method according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0122] Reference Figure 5 The electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input / display (I / O) interface 812, a sensor component 814, and a communication component 816.
[0123] Processing component 802 typically controls the overall operation of electronic device 800, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the methods described above. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
[0124] Memory 804 is configured to store various types of data to support the operation of device 800. Examples of this data include instructions for any application or method operating on electronic device 800, contact data, phonebook data, messages, pictures, videos, etc. 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 storage, flash memory, magnetic disk, or optical disk.
[0125] Power supply component 806 provides power to various components of electronic device 800. 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 to electronic device 800.
[0126] Multimedia component 808 includes a screen that provides a display interface between the electronic 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 touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0127] Audio component 810 is configured to display and / or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when electronic device 800 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, audio component 810 also includes a speaker for displaying audio signals.
[0128] 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 buttons, volume buttons, power buttons, and lock buttons.
[0129] Sensor assembly 814 includes one or more sensors for providing state assessments of various aspects of electronic device 800. For example, sensor assembly 814 may detect the on / off state of device 800, the relative positioning of components such as the display and keypad of electronic device 800, changes in position of electronic device 800 or a component of electronic device 800, the presence or absence of user contact with electronic device 800, orientation or acceleration / deceleration of electronic device 800, and temperature changes of electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 814 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.
[0130] Communication component 816 is configured to facilitate wired or wireless communication between electronic device 800 and other devices. Electronic device 800 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0131] In an exemplary embodiment, the electronic device 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 methods described above.
[0132] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, which can be executed by a processor 820 of an electronic device 800 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0133] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform an information prediction method, the method comprising: acquiring reference information related to a current input node; uploading the reference information to a server, requesting the server to perform attribute prediction on the input content of the next input node based on the reference information to obtain attribute prediction information; receiving the attribute prediction information sent by the server; and, based on the attribute prediction information, predicting and outputting input candidates for the next input node through an input method client.
[0134] Another non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform an information prediction method, the method comprising: receiving reference information related to the current input node uploaded by an input method client; performing attribute prediction on the input content of the next input node based on the reference information to obtain attribute prediction information; and sending the attribute prediction information to the input method client so that the input method client can predict input candidates for the next input node based on the attribute prediction information.
[0135] Figure 6 This is a schematic diagram of the server structure in an embodiment of the present invention. The server 1900 can vary significantly due to different configurations or performance, and may include one or more central processing units (CPUs) 1922 (e.g., one or more processors) and memory 1932, and one or more storage media 1930 (e.g., one or more mass storage devices) for storing application programs 1942 or data 1944. The memory 1932 and storage media 1930 can be temporary or persistent storage. The program stored in the storage media 1930 may include one or more modules (not shown in the diagram), each module including a series of instruction operations on the server. Furthermore, the CPU 1922 may be configured to communicate with the storage media 1930 and execute the series of instruction operations in the storage media 1930 on the server 1900.
[0136] Server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input display interfaces 1958, one or more keyboards 1956, and / or one or more operating systems 1941, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0137] Other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of the invention are indicated by the following claims.
[0138] It should be understood that the present invention is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.
[0139] 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 principles of the present invention should be included within the protection scope of the present invention.
Claims
1. An information prediction method, applied to an input method client, It is characterized in that include: Get reference information related to the current input node; Uploading the reference information to the server, and requesting the server to perform attribute prediction on the input content of the next input node based on the reference information to obtain attribute prediction information; receiving the attribute prediction information sent by the server; receiving target context information corresponding to the attribute prediction information sent by the server, or receiving the target context information and the target attribute of the target context information; Based on the attribute prediction information, predicting and outputting the input candidate item of the next input node through the input method client; The step of obtaining and outputting an input candidate item of the next input node through prediction by the input method client based on the attribute prediction information includes: Based on the attribute prediction information and the target context information, predicting and outputting the input candidate item of the next input node through the input method client; Alternatively, based on the attribute prediction information, the target context information and the target attribute, the input method client predicts and outputs input candidates for the next input node.
2. The method according to claim 1, It is characterized in that The method further comprises: Receiving a first candidate item corresponding to the attribute prediction information and a second candidate item corresponding to the first candidate item sent by the server; If the input candidate items include the first candidate item, and the user selects the first candidate item to be displayed on the screen, the input method client puts the second candidate item in the input candidate list of the subsequent input node for display.
3. The method according to any one of claims 1 to 2, It is characterized in that The reference information includes: The above information corresponding to the current input node, the character string to be converted input by the user and / or the environment information.
4. The method according to any one of claims 1 to 2, It is characterized in that The attribute prediction information includes: At least one attribute of the input content and / or the occurrence probability of the at least one attribute, wherein the at least one attribute includes: type, part of speech, and emotional color.
5. An information prediction method, applied to the server, It is characterized in that include: Receive reference information related to the current input node uploaded by the input method client; Obtaining target context information corresponding to the attribute prediction information in the reference information, or obtaining the target context information and a target attribute of the target context information; Based on the reference information, performing attribute prediction on the input content of the next input node to obtain attribute prediction information; Sending the attribute prediction information to the input method client, so that the input method client can predict the input candidate items of the next input node based on the attribute prediction information; The target context information or the target context information and the target attribute are sent to the input method client.
6. The method according to claim 5, It is characterized in that The method further comprises: Predicting and obtaining a first candidate item corresponding to the reference information and a second candidate item corresponding to the first candidate item; The first candidate item and the second candidate item are sent to the input method client, so that the input method client can place the second candidate item in the input candidate list of the subsequent input node for display after confirming that the user selects the first candidate item to be displayed on the screen.
7. The method according to any one of claims 5 to 6, It is characterized in that The attribute prediction information includes: At least one attribute of the input content and / or the occurrence probability of the at least one attribute, wherein the at least one attribute includes: type, part of speech, and emotional color.
8. An information prediction device, applied to an input method client, It is characterized in that include: An acquisition unit, used for acquiring reference information related to the current input node; A sending unit, configured to upload the reference information to a server, and request the server to perform attribute prediction on the input content of the next input node based on the reference information to obtain attribute prediction information; A receiving unit, configured to receive the attribute prediction information sent by the server; The receiving unit is also used for: Receiving target context information corresponding to the attribute prediction information sent by the server, or receiving the target context information and the target attribute of the target context information; A prediction unit, configured to predict and output an input candidate item of the next input node through the input method client based on the attribute prediction information; The prediction unit is specifically used for: Based on the attribute prediction information and the target context information, the input method client predicts and outputs the input candidate items of the next input node; or, based on the attribute prediction information, the target context information and the target attribute, the input method client predicts and outputs the input candidate items of the next input node.
9. The device according to claim 8, It is characterized in that The receiving unit is also used for: Receiving a first candidate item corresponding to the attribute prediction information and a second candidate item corresponding to the first candidate item sent by the server; The prediction unit is also used for: If the input candidate items include the first candidate item, and the user selects the first candidate item to be displayed on the screen, the input method client puts the second candidate item in the input candidate list of the subsequent input node for display.
10. The device according to any one of claims 8 to 9, It is characterized in that The reference information includes: The above information corresponding to the current input node, the character string to be converted input by the user and / or the environment information.
11. The device according to any one of claims 8 to 9, It is characterized in that The attribute prediction information includes: At least one attribute of the input content and / or the occurrence probability of the at least one attribute, wherein the at least one attribute includes: type, part of speech, and emotional color.
12. An information prediction device, applied to a server, It is characterized in that include: A receiving module, used for receiving reference information related to the current input node uploaded by the input method client; An acquisition module, used for acquiring target context information corresponding to the attribute prediction information in the reference information, or acquiring the target context information and a target attribute of the target context information; A prediction module, used for performing attribute prediction on the input content of the next input node based on the reference information to obtain attribute prediction information; A sending module, used for sending the attribute prediction information to the input method client, so that the input method client can predict the input candidate items of the next input node based on the attribute prediction information; The sending module is further used for sending the target context information or the target context information and the target attribute to the input method client.
13. The device according to claim 12, It is characterized in that The prediction module is also used to: Predicting and obtaining a first candidate item corresponding to the reference information and a second candidate item corresponding to the first candidate item; The sending module is also used for: The first candidate item and the second candidate item are sent to the input method client, so that the input method client can place the second candidate item in the input candidate list of the subsequent input node for display after confirming that the user selects the first candidate item to be displayed on the screen.
14. The device according to any one of claims 12 to 13, It is characterized in that The attribute prediction information includes: At least one attribute of the input content and / or the occurrence probability of the at least one attribute, wherein the at least one attribute includes: type, part of speech, and emotional color.
15. An electronic device, It is 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 reference information related to the current input node; Uploading the reference information to the server, and requesting the server to perform attribute prediction on the input content of the next input node based on the reference information to obtain attribute prediction information; receiving the attribute prediction information sent by the server; receiving target context information corresponding to the attribute prediction information sent by the server, or receiving the target context information and the target attribute of the target context information; Based on the attribute prediction information, predicting and outputting the input candidate item of the next input node through the input method client; The step of obtaining and outputting an input candidate item of the next input node through prediction by the input method client based on the attribute prediction information includes: Based on the attribute prediction information and the target context information, predicting and outputting the input candidate item of the next input node through the input method client; Alternatively, based on the attribute prediction information, the target context information and the target attribute, the input method client predicts and outputs input candidates for the next input node.
16. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by the processor, the following steps are implemented: Get reference information related to the current input node; Uploading the reference information to the server, and requesting the server to perform attribute prediction on the input content of the next input node based on the reference information to obtain attribute prediction information; receiving the attribute prediction information sent by the server; receiving target context information corresponding to the attribute prediction information sent by the server, or receiving the target context information and the target attribute of the target context information; Based on the attribute prediction information, predicting and outputting the input candidate item of the next input node through the input method client; The step of obtaining and outputting the input candidate item of the next input node through prediction by the input method client based on the attribute prediction information includes: Based on the attribute prediction information and the target context information, predicting and outputting the input candidate item of the next input node through the input method client; Alternatively, based on the attribute prediction information, the target context information and the target attribute, the input method client predicts and outputs input candidates for the next input node.
17. An electronic device, It is 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: Receive reference information related to the current input node uploaded by the input method client; Obtaining target context information corresponding to the attribute prediction information in the reference information, or obtaining the target context information and a target attribute of the target context information; Based on the reference information, performing attribute prediction on the input content of the next input node to obtain attribute prediction information; Sending the attribute prediction information to the input method client, so that the input method client can predict the input candidate items of the next input node based on the attribute prediction information; The target context information or the target context information and the target attribute are sent to the input method client.
18. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by the processor, the following steps are implemented: Receive reference information related to the current input node uploaded by the input method client; obtain target context information corresponding to the attribute prediction information in the reference information, or obtain the target context information and the target attribute of the target context information; Based on the reference information, performing attribute prediction on the input content of the next input node to obtain attribute prediction information; Sending the attribute prediction information to the input method client, so that the input method client can predict the input candidate items of the next input node based on the attribute prediction information; The target context information or the target context information and the target attribute are sent to the input method client.
Citation Information
Patent Citations
Method and system of improving accuracy degree of intelligent association of input method
CN103116601A
Method for semantic recognition and graph recommendation
CN107247731A
