CN111522448A - Method, device and equipment for providing input candidate items - Google Patents

Method, device and equipment for providing input candidate items Download PDF

Info

Publication number
CN111522448A
CN111522448A CN201910107652.8A CN201910107652A CN111522448A CN 111522448 A CN111522448 A CN 111522448A CN 201910107652 A CN201910107652 A CN 201910107652A CN 111522448 A CN111522448 A CN 111522448A
Authority
CN
China
Prior art keywords
input
conversion result
content
server
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910107652.8A
Other languages
Chinese (zh)
Other versions
CN111522448B (en
Inventor
余天照
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201910107652.8A priority Critical patent/CN111522448B/en
Publication of CN111522448A publication Critical patent/CN111522448A/en
Application granted granted Critical
Publication of CN111522448B publication Critical patent/CN111522448B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • G06F3/0237Character input methods using prediction or retrieval techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)
  • Machine Translation (AREA)

Abstract

The invention discloses a method, a device and equipment for inputting candidate items, which comprises the following steps: the method comprises the steps that a server side obtains a first conversion result obtained by a client side aiming at a character string input by a user, and analyzes the context content of the client side according to the content input by the user, wherein the input content at least comprises the first conversion result; and merging the first conversion result and the context content to obtain merged content, and sending the merged content to the client, wherein the merged content serves as a server-side input candidate on the client. Therefore, the server side sends the combined content obtained based on the character strings input by the user to the client side, so that the server side provides input candidate items different from those of the client side for the user in the input process of the user, the input candidate items obtained by the user are enriched, the input cost of the user in the next step can be saved, and the input efficiency of the user is improved.

Description

Method, device and equipment for providing input candidate items
Technical Field
The present invention relates to the field of input methods, and in particular, to a method, an apparatus, and a device for providing input candidate items.
Background
For a character string input by a user, the input method system can convert the character string and provide the conversion result as an input candidate for the user to select. For example, the user inputs a character string "anjian", and the input method system may provide conversion results of "key press", "security check", "case", and the like as input candidates to the user. Generally, an input method system converts a character string by using a word stock local to a client to obtain an input candidate. However, due to limitations in storage space, processing power, etc. on the client, the word stock local to the client often cannot provide longer and newly appearing entries. In order to enable the input method system to provide the entries as input candidates, the input method system is also provided with a word stock on the server side. Therefore, for the character string input by the user, the input method system can not only convert the character string by using the local word stock of the client side to obtain the input candidate item, but also convert the character string by using the word stock of the server side to obtain the input candidate item, so that the user can obtain more abundant input candidate entries, and the user input is simpler and more convenient.
However, in many cases, for a character string input by a user, a conversion result of the character string using the server-side word stock and a conversion result of the character string using the client-side local word stock are the same, and the user cannot obtain different input candidates from the client and the server, which makes the input candidates obtained by the user still insufficient, and thus may make the input operation of the user more cumbersome.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a method, a device and equipment for providing input candidate items, so that a server side can provide the input candidate items different from those of a client side for a user, the input candidate items obtained by the user are richer, and the input operation of the user is simpler and more convenient.
In a first aspect, to solve the above technical problem, an embodiment of the present invention provides a method for providing input candidates, where the method is applied to a server side, and includes:
acquiring a first conversion result of a character string input by a user on a client;
analyzing context of the input content according to the input content, wherein the input content at least comprises the first conversion result;
composing a merged content with the context with the first conversion result;
sending the merged content to the client;
and the merged content is used as a server-side input candidate on the client side.
In some possible embodiments, the entered content further includes a text entered on the client prior to the entry of the character string.
In some possible embodiments, the analyzing the context of the input content according to the input content includes:
acquiring the input content as a current text;
determining the current context entry;
if the context probability of the current context and the context entry is greater than the probability threshold, taking the content formed by the current context and the context entry as the current context again, and returning to execute the determination of the context entry of the current context;
if the context probability of the current context and the context entry is not larger than a probability threshold, determining the part of the current context except the input content as the context;
wherein the context probability represents a likelihood that the current above and below terms are entered as context by a user.
In some possible embodiments, the first conversion result is a conversion result obtained by converting the character string using a thesaurus at the server side.
In some possible embodiments, the method further comprises:
sending the first conversion result to the client;
if the first conversion result meets a preset condition, the merged content is used as the server-side input candidate item on the client side; and if the first conversion result does not meet the preset condition, taking the first conversion result as the input candidate item of the server side on the client side.
In some possible embodiments, the analyzing the following content of the input content according to the input content includes: if the first conversion result meets a preset condition, analyzing the following content of the input content according to the input content;
the sending of the first conversion result to the client specifically includes: and if the first conversion result does not meet the preset condition, sending the first conversion result to the client.
In some possible embodiments, the preset conditions include: the first conversion result is the same as the second conversion result, and/or the third conversion result is a low-frequency conversion result relative to the first conversion result;
the second conversion result is obtained by converting the character string by using the word stock of the client; the third conversion result is another conversion result obtained by converting the character string by using the word stock of the server side in addition to the first conversion result.
In a second aspect, an embodiment of the present application further provides a method for providing input candidates, where the method is applied to a client, and includes:
receiving the merged content sent by the server; the merged content is composed of a first conversion result and the context of the input content, the first conversion result is the conversion result of the character string input by the user on the client, and the input content at least comprises the first conversion result;
and determining the merged content as a server-side input candidate.
In some possible embodiments, the method further comprises:
sending the text which is input before the character string is input on the client to the server;
wherein the entered content further comprises a text entered on the client prior to the entry of the character string.
In some possible embodiments, the method further comprises:
receiving the first conversion result sent by the server; the first conversion result is obtained by converting the character string by utilizing a word stock of the server side;
and if the first conversion result does not meet the preset condition, determining the first conversion result as the server-side input candidate item.
Correspondingly, the determining the merged content as a server-side input candidate specifically includes: and if the received first conversion result meets a preset condition, determining the merged content as the server-side input candidate item.
In a third aspect, an embodiment of the present application further provides an apparatus for providing input candidates, where the apparatus is applied to a server side, and includes:
the system comprises an acquisition module, a conversion module and a conversion module, wherein the acquisition module is used for acquiring a first conversion result of a character string input by a user on a client;
an analysis module for analyzing context of the input content according to the input content, the input content at least including the first conversion result;
a composition module, configured to compose a merged content with the context content according to the first conversion result;
a sending module, configured to send the merged content to the client;
and the merged content is used as a server-side input candidate on the client side.
In some possible embodiments, the entered content further includes a text entered on the client prior to the entry of the character string.
In some possible embodiments, the analysis module includes:
an acquisition unit configured to acquire the input content as a current context;
a first determining unit, configured to determine the current above context entry;
a returning unit, configured to, if the context probability of the current context and the context entry is greater than a probability threshold, take a content composed of the current context and the context entry as the current context again, and return to execute the determining of the context entry of the current context;
a second determining unit, configured to determine, if a context probability between the current context and the context entry is not greater than a probability threshold, a portion of the current context other than the already-input content as the context;
wherein the context probability represents a likelihood that the current above and below terms are entered as context by a user.
In some possible embodiments, the first conversion result is a conversion result obtained by converting the character string using a thesaurus at the server side.
In some possible embodiments, the method further comprises:
a conversion result sending module, configured to send the first conversion result to the client;
if the first conversion result meets a preset condition, the merged content is used as the server-side input candidate item on the client side; and if the first conversion result does not meet the preset condition, taking the first conversion result as the input candidate item of the server side on the client side.
In some possible embodiments, the analysis module is specifically configured to, if the first conversion result satisfies a preset condition, analyze context content of the input content according to the input content;
the conversion result sending module is specifically configured to send the first conversion result to the client if the first conversion result does not satisfy a preset condition.
In some possible embodiments, the preset conditions include: the first conversion result is the same as the second conversion result, and/or the third conversion result is a low-frequency conversion result relative to the first conversion result;
the second conversion result is obtained by converting the character string by using the word stock of the client; the third conversion result is another conversion result obtained by converting the character string by using the word stock of the server side in addition to the first conversion result.
In a fourth aspect, an embodiment of the present application further provides an apparatus for providing input candidates, where the apparatus is applied to a terminal, and the apparatus includes:
the receiving module is used for receiving the combined content sent by the server side; the merged content is composed of a first conversion result and the context of the input content, the first conversion result is the conversion result of the character string input by the user on the client, and the input content at least comprises the first conversion result;
and the determining module is used for determining the merged content as a server-side input candidate item.
In some possible embodiments, the method further comprises:
a sending module, configured to send, to the server, a text that has been input on the client before the character string is input;
wherein the entered content further comprises a text entered on the client prior to the entry of the character string.
In some possible embodiments, the method further comprises:
a conversion result receiving module, configured to receive the first conversion result sent by the server; the first conversion result is obtained by converting the character string by utilizing a word stock of the server side;
and the candidate determining module is used for determining the first conversion result as the server-side input candidate if the first conversion result does not meet a preset condition.
Correspondingly, the determining module is specifically configured to determine the merged content as the server-side input candidate item if the received first conversion result meets a preset condition.
In a fifth aspect, an embodiment of the present application further provides an apparatus for providing input candidates, including a memory, and one or more programs, where the one or more programs are stored in the memory, and configured to be executed by the one or more processors to implement the one or more programs including a method for providing input candidates according to the first aspect or a method for providing input candidates according to the second aspect.
In a sixth aspect, embodiments of the present application further provide a non-transitory computer-readable storage medium, where instructions of the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method for providing input candidates according to the first aspect or perform the method for providing input candidates according to the second aspect.
Compared with the prior art, the embodiment of the invention has the following advantages:
in the embodiment of the invention, a server side can obtain a first conversion result obtained by a client side aiming at a character string input by a user, and analyzes the context content of the input content according to the input content of the user, wherein the input content at least comprises the first conversion result; after the first conversion result and the context content are obtained, the first conversion result and the context content can be merged to obtain merged content composed of the first conversion result and the context content, and the merged content is sent to the client, wherein the merged content serves as a server-side input candidate on the client. Therefore, when the server side provides the input candidate items, the combined content obtained based on the character strings input by the user is sent to the client side, so that even if the conversion results obtained by the client side and the server side aiming at the character strings input by the user are the same, the server side also provides the input candidate items containing the conversion results and the predicted context content for the user, namely the candidate items containing the content which can be continuously input subsequently by the user, so that the resources of the server side are fully utilized, the server side provides the input candidate items which are different from the client side for the user in the input process of the user, and the input candidate items obtained by the user are enriched; moreover, based on the characteristics of larger word bank and stronger computing power of the server side, the hit rate of the input candidate items provided by the server side for the expected input of the user is relatively high, so that the input cost of the user in the next step can be saved, and the input efficiency of the user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a block diagram of an exemplary application scenario in an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for providing candidate input items according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a method for distinguishing input candidates provided by a client and a server by using different display areas;
FIG. 4 is a diagram illustrating a client displaying candidate input items;
FIG. 5 is a diagram illustrating the use of special tokens to distinguish between client-side and server-side provided input candidates;
FIG. 6 is a flowchart illustrating another method for providing input candidates according to an embodiment of the present invention;
FIG. 7 is a flowchart illustrating a method for providing input candidates according to another embodiment of the present invention;
FIG. 8 is a diagram illustrating an exemplary apparatus for providing candidate input items according to an embodiment of the present invention;
FIG. 9 is a diagram illustrating an alternative exemplary apparatus for providing input candidates according to the present invention;
FIG. 10 is a diagram illustrating an exemplary configuration of an apparatus for providing candidate input items according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a server in an embodiment of the present invention.
Detailed Description
Compared with a local word library of the client, the word library of the server can provide more entries, and the computing capability of the server is generally better than that of the client, so that the server can generally provide richer input candidates for the user based on the character strings input by the user. However, the inventor has found that, in the existing input method system, the positioning of the server side is usually supplementary to the client side, that is, if the client and the server obtain different preferred input candidates based on the character string input by the user, the provided preferred input candidates at the server side are presented in a specific area on the input interface, however, if the client side and the server side obtain the same preferred input candidates based on the character string input by the user, the input interface typically presents only the input candidates provided by the client, which is equivalent to the server side not actually providing the input candidates to the user, therefore, resources of the server side are wasted, and the input candidate items obtained by the user are not abundant enough, so that the user may need more input operations to achieve the expected input result.
In order to solve the above problems, in the embodiment of the present invention, the merged content including the conversion result and the association result provided by the server is displayed on the client, so that the server can provide the user with input candidates different from those of the client, the input candidates obtained by the user are richer, and the input operation of the user is simpler. Specifically, the server may obtain a first conversion result obtained by the client for a character string input by the user, and analyze context content of the input content according to the content input by the user, where the input content at least includes the first conversion result; after the first conversion result and the context content are obtained, the first conversion result and the context content can be merged to obtain merged content composed of the first conversion result and the context content, and the merged content is sent to the client, wherein the merged content serves as a server-side input candidate on the client. Therefore, when the server side provides the input candidate items, the combined content obtained based on the character strings input by the user is sent to the client side, so that even if the conversion results obtained by the client side and the server side aiming at the character strings input by the user are the same, the server side also provides the input candidate items containing the conversion results and the predicted context content for the user, namely the input candidate items containing the contents which can be continuously input subsequently by the user, so that the resources of the server side are fully utilized, the server side provides the input candidate items which are different from the client side for the user in the input process of the user, and the input candidate items obtained by the user are enriched; moreover, based on the characteristics of larger word bank and stronger computing power of the server side, the hit rate of the input candidate items provided by the server side for the expected input of the user is relatively high, so that the input cost of the user in the next step can be saved, and the input efficiency of the user is improved.
For example, embodiments of the present invention may be applied to an exemplary application scenario as shown in FIG. 1. In this scenario, a user 101 inputs a character string on a client 102, and the client may send a request for obtaining input candidates to the server 103, where the request may include the character string input by the user 101 on the client 102; the server 103 may parse the received request and obtain a first conversion result based on the character string included in the request, and then the server 103 may analyze the context of the first conversion result according to the first conversion result and compose a merged content with the analyzed context and the first conversion result; after obtaining the merged content, the server 103 may send the merged content to the client 102, so that the client 102 may display the received merged content to the user 101 and mark it as a server-side input candidate.
It should be noted that the above application scenarios are only presented to facilitate understanding of the present invention, and the embodiments of the present invention are not limited in any way in this respect. Rather, embodiments of the present invention may be applied to any scenario where applicable. For example, in other possible application scenarios, the request sent by the client 102 to the server 103 may not include the character string input by the user 101 on the client 102, but may include the conversion result obtained by the client 102 based on the character string, and the server 103 may predict the context content and then obtain the merged content directly based on the conversion result of the client 102 without performing a conversion process or the like.
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for providing input candidates according to an embodiment of the present invention, where the method may be applied to a server side, and the method specifically may include:
s201: a first conversion result of a character string input by a user on a client is obtained.
In this embodiment, the server side is to provide an input candidate item different from that of the client side to the user based on the character string input by the user, based on which, the server side may first obtain a conversion result of the character string input by the user on the client side.
It should be noted that the first conversion result is obtained by completely converting the character string input by the user, and may be not only a conversion result obtained by converting the character string based on the word stock of the server side by the server side, but also a conversion result obtained by converting the character string based on the local word stock of the client side by the client side. In an exemplary implementation of obtaining the first conversion result, a user inputs a character string on a client, the client may generate a request for obtaining an input candidate, where the request may include the character string input by the user, and then the client may send the request to the server; the server side can analyze the received request and convert the analyzed character string input by the user on the client side, so that a first conversion result is obtained. For example, a user inputs a character string of "niyouaiqiiyi" on a client, the client can send the character string to a server along with a generated request, and the server converts the character string to obtain a first conversion result of "you have love art".
Since the client may also convert the character string input by the user in practical applications, in addition to the above embodiment, in another exemplary implementation of obtaining the first conversion result, the server may also obtain the first conversion result obtained based on the character string conversion from the client. Specifically, after the user inputs the character string on the client, the client may convert the character string to obtain a first conversion result, and then may generate a request for obtaining the input candidate, and send the first conversion result obtained by the client conversion to the server along with the request, and the server may analyze the received request to obtain the first conversion result. For example, the user may input a character string "niyouaiqiiyi" on the client, and the client may convert the character string to obtain a first conversion result "you have an odd skill", and then the client may send the "you have an odd skill" along with the generated request for obtaining the input candidate to the server, so that the server may analyze the request to obtain the first conversion result "you have an odd skill".
Further, whether the client sends the character string to the server or sends the conversion result obtained based on the character string to the server may be determined by the client according to the probability that the client will correspond the character string to the first conversion result. Specifically, after the client converts the character string input by the user, if the probability corresponding to the character string and the conversion result obtained by conversion is greater than a preset value, which indicates that the conversion result is a high possibility that the entry is expected to be input by the user, the client may use the conversion result as a first conversion result and send the first conversion result to the server; and if the probability corresponding to the character string and the conversion result is not greater than the preset value, which indicates that the conversion result is a relatively high possibility that the entry expected to be input by the user is the conversion result, the client side can send the character string to the server side, and the server side converts the character string to obtain a first conversion result.
For example, if a user inputs a character string "niyouaiqiiyi" on a client, the client may have various possibilities such as "you have a fancy art" and "you have a fancy art" after converting the character string, and if the client determines that the probability that the conversion result is "you have a fancy art" is greater than 75% based on "niyouaiqiiyi", the client considers that the possibility that the content that the user inputs the character string is expected to be "you have a fancy art" is high, and then "you have a fancy art" may be sent to the server as the first conversion result; however, if the client determines that the conversion result is the probability that "you love the odd art" based on "niyouaiqiyi" and the probability that "you love the odd art" based on "niyouaiqiyi" determines that the conversion result is lower than 75%, the possibility that the content expected to be input by the user inputting the character string is "you love the odd art" and "you love the odd art" is low, the client may send the character string "niyouaiqiyi" to the server, and the server performs conversion based on the character string to obtain the first conversion result.
S202: the context of the input content is analyzed according to the input content, wherein the input content at least comprises a first conversion result.
In this embodiment, after the server side obtains the first conversion result, the following content of the first conversion result may be predicted. For example, if the first conversion result obtained by the server is "love art", the following contents of "love art" may be predicted to be "member", "account password", and the like.
In practical applications, when analyzing the context of the input content according to the input content, the input content may include not only the first conversion result but also the context that has been input before the character string is input on the client. In specific implementation, the client may send the text that has been input before the character string is input on the client to the server, so that the server may predict the text content by combining the content that has been input on the screen by the user and the acquired first conversion result. For example, before the user inputs the character string "aiqiyi", the user has already input a text of "you have", and when analyzing and predicting the text content, the server side may analyze the text content in combination with the first conversion result "aiqiyi" corresponding to the text of "you have" and the character string "aiqiyi", that is, analyze the text content such as "member", "account password", and the like according to the "your aiqiyi".
It should be noted that, in this embodiment, the following content analyzed by the server may be composed of a plurality of entries. For example, when analyzing the existing input content "you have a strange art of love", the obtained contextual content may be "member? ". That is, the entered content and the parsed context content may be combined into one complete phrase.
As an exemplary implementation of analyzing the context, the server side may continuously predict the context entries by using probabilities. Specifically, the server may obtain an already input content as a current context, determine a context entry that may correspond to the current context, if a context probability between the current context and the context entry is greater than a probability threshold, take a content composed of the current context and the context entry as a new current context, and continue to determine a new context entry that may correspond to the new current context, where the context probability represents a possibility that the current context and the context entry are input as contexts by a user; then, the server may determine whether the context probability between the new current context and the new context entry is greater than the probability threshold, and repeat the above process until the context probability between the new current context and the new context entry is not greater than the probability threshold, at which time, a portion of the new current context other than the already input content may be determined as the context. Based on the above process, context comprising multiple context entries may be determined using context probabilities between the current context and the context entries.
For example, assuming that the server end uses the input content "you have an love art" as the current context, it can determine that the corresponding context entry is "member" based on the current context, then the server end can determine whether the context probabilities of the current context "you have an love art" and the context entry "member" are greater than the preset probability threshold, if so, it makes up the "you have an love art" and the "member" into a new current context "you have an love art member", and continues to execute the step of determining the context entry, assuming that it determines that the context entry corresponding to the new current context is "do", it can continue to determine whether the context probability between the "you have an love art member" and the "do" is greater than the preset probability threshold, repeat the above process until the context probability between the new current context and the new context entry is not greater than the exit probability threshold, the above-repeated process is executed, at this time, after the above process is repeated for a plurality of times, the obtained new current context may be "do you have a fancy art member? "then can the new current above belong to the part of the already input content" do you have a special skill "? "determine the contextual content, the determined contextual content comprising a plurality of terms, respectively" member "," do ", and"? ".
In the foregoing embodiments, the following content is determined by a binary relationship between the current context and the following entry, in other possible embodiments, a multivariate relationship may also be used to determine the following content, and since the multivariate relationship is used to determine the following content, a corresponding specific implementation means exists in the prior art, which is not described herein again.
S203: and combining the first conversion result with the analyzed following content to form combined content.
S204: and sending the merged content to the client, wherein the merged content serves as a server-side input candidate on the client.
It is understood that the analyzed context may be a content that the user desires to continue to input after inputting the first conversion result, and therefore, after determining the context, the server may combine the first conversion result and the analyzed context into a merged content, and send the merged content to the client to be displayed on the client as an input candidate.
Therefore, if the input content expected by the user is the merged content, the user can directly click the input candidate item corresponding to the merged content to complete the input, so that the user does not need to continuously input the character string after inputting the character string of part of the content, the input cost of the user in the next step is saved, and the user can conveniently input the character string. For example, as shown in fig. 3, the character string input by the user is "niyouaiqiiyi", and the input candidate of the merged content displayed to the user on the client is "do you have a fancy art member? "is the user expecting to input" do you have a fancy member? "only the character string" niyouaiqiiyi "may be input in the process, and the character strings corresponding to other contents do not need to be input. For another example, as shown in fig. 4, the user has already input "you have" on the screen before inputting the character string "aiqiyii", and the input candidate of the merged content displayed to the user on the client may be "is an odd-loved member? ". Thus, the user is expecting to input "do you have a fancy member? In the whole process, the character "you have" can be input on the screen first, and then "do love art members can be obtained by inputting the character string" aiqiiyi? "so that the user can be saved from" member? The input cost of the contents is convenient for the user to input.
Note that, when displaying the input candidate corresponding to the merged content, the client may display in different areas on the input method interface. For example, in the example shown in fig. 3, the input candidate item "do you have a strange art member? "can be displayed in the display area 1, and the input candidates obtained based on the local thesaurus of the client, such as" you love odd art "," you love odd ", etc., can be displayed in the display area 2. Then, the input candidates displayed in the display area 1 may be generally characterized as input candidates provided by the server side.
In addition to the above-mentioned input candidates provided by the client and the server may be distinguished by using different display areas, the input candidates may also be distinguished by a special mark displayed on the input method interface. For example, in the example shown in fig. 5, the input candidate provided by the server (i.e. the input candidate corresponding to the merged content) "do you have a fanciful member? "the input candidate item" you have a special skill "provided by the client can be displayed in the same display area, and for the input candidate item" do you have a special skill member? "cloud tag can be used for identification, and the identification represents that the input candidate item is provided by the server side, and the input candidate item without the cloud tag" your love art "represents that the input candidate item is provided by the client side. Of course, fig. 5 is merely an exemplary illustration and is not intended to limit the embodiments in which the provider of the input candidate is distinguished using a special label. For example, other special marks may be used, or the position of the special mark may be any position near the input candidate.
In a further embodiment, the input candidates provided by the client and the server can be further distinguished by combining the two embodiments. That is, while the input candidates provided by the client and the server are distinguished by using different display areas, the input candidates provided by the server may be identified by using a special mark displayed on the input method interface.
It is understood that the display area of the input candidates reserved for the server side on the input interface of the client side is usually limited, if the input candidates have more characters (for example, the input candidates are "pig-eight mirrors, people are not inside and outside", etc.), so that the display area is only enough to display one input candidate provided by the server side. Of course, in practical application, the number of characters of the input candidate provided by the server may not be considered, and only one input preference may be set to be displayed in the display area, which is not limited herein.
As an example, the server may determine the first conversion result according to the size of the probability that the conversion result is desired to be input by the user, and in general, the greater the probability that the conversion result is desired to be input by the user, the greater the possibility that the user desires to input the conversion result is, and therefore, the conversion result with the highest probability value may be used as the first conversion result. In practical application, the conversion result is a probability that a user desires to input, and may be embodied as a word frequency of the conversion result input in the user history input behavior, where generally, the word frequency is larger, the corresponding probability value is larger, and the word frequency is smaller, and the corresponding probability value is smaller. For example, if the character string input by the user is "anjian", the conversion result obtained based on the character string "anjian" may include "case", "key press", "security check", "press", and the like, and if the word frequency of each conversion result input in the user history input behavior is 580 times, 450 times, 120 times, and 15 times in this order, the probability that the content actually expected to be input when the user inputs the character string "anjian" is "case" may be considered to be the maximum, and "case" may be used as the first conversion result.
Accordingly, a plurality of input candidates provided by the server side can be presented in the display area. Specifically, if a plurality of conversion results are obtained based on the character string input by the user, the server may analyze, for each conversion result, the input candidate corresponding to the conversion result, so that a plurality of input candidates may be obtained based on the plurality of conversion results. In this way, the client can present a plurality of input candidates analyzed by the server in a display area on the input method display interface.
In this embodiment, the server may obtain a first conversion result obtained by the client for the character string input by the user, and analyze context content of the input content according to the content input by the user, where the input content at least includes the first conversion result; after the first conversion result and the context content are obtained, the first conversion result and the context content can be merged to obtain merged content composed of the first conversion result and the context content, and the merged content is sent to the client, wherein the merged content serves as a server-side input candidate on the client. Therefore, when the server side provides the input candidate items, the combined content obtained based on the character strings input by the user is sent to the client side, so that even if the conversion results obtained by the client side and the server side aiming at the character strings input by the user are the same, the server side also provides the input candidate items containing predicted context content for the user, namely the candidate items containing the content which can be continuously input subsequently by the user, so that the resources of the server side are fully utilized, the server side provides the input candidate items different from the client side for the user in the input process of the user, and the input candidate items obtained by the user are enriched; moreover, based on the characteristics of larger word bank and stronger computing power of the server side, the hit rate of the input candidate items provided by the server side for the expected input of the user is relatively high, so that the input cost of the user in the next step can be saved, and the input efficiency of the user is improved.
In the foregoing embodiment, the server sends the merged content to the client, and in practical applications, because the thesaurus of the server can provide more entries than the local thesaurus of the client, when the first conversion result obtained by the server is a result obtained by converting the character string based on the thesaurus of the server, the first conversion result obtained by the server may not be consistent with the conversion result of the character string by the client. Hereinafter, a detailed description will be given with reference to fig. 5.
Referring to fig. 6, fig. 6 is a schematic flow chart illustrating a method for providing input candidates according to an embodiment of the present invention, where the method specifically includes:
s601: the server converts the character string input by the user on the client to obtain a first conversion result.
In this embodiment, the first conversion result obtained by the server may be obtained by converting a character string input by a user based on a word bank of the server. Meanwhile, the client can also convert the character string input by the user based on the local word stock of the client to obtain a second conversion result. Since the thesaurus at the server side can provide more entries than the local thesaurus at the client side, the first conversion result and the second conversion result may not be the same in some scenarios. It is noted that the first conversion result and the second conversion result are both the results of complete conversion of the character string. For example, a user inputs a character string of "niyouaiqiiyi" on a client, a first conversion result obtained by converting the character string by the server side may be "you love odd art", a second conversion result obtained by converting the character string by the client side may be "you love odd art", and the first conversion result is different from the second conversion result.
Correspondingly, when the client requests the server to provide the input candidate items, the request sent to the server contains the character string input by the user.
S602: the server side analyzes the context content of the input content according to the input content, wherein the input content at least comprises a first conversion result.
S603: and the server side and the following content form merged content according to the first conversion result.
In this embodiment, the specific implementation processes of step S602 and step S603 are respectively similar to the specific implementation processes of step S202 and step S203 in the previous embodiment, and reference may be made to the description of the relevant parts of the previous embodiment, which is not described herein again.
S604: and the server side sends the merged content and the first conversion result to the client side.
Unlike the previous embodiment, since the server side may obtain the first conversion result based on the character string input by the user and the second conversion result obtained by the client side, the server side may simultaneously send the merged content and the first conversion result to the client side.
S605: the client compares whether the received first conversion result is consistent with a second conversion result, wherein the second conversion result is obtained by converting the character string based on a local word stock of the client, if so, the step S606 is executed, and if not, the step S607 is executed.
S606: and the client determines the first conversion result as a server input candidate.
It can be understood that, if the client determines, through comparison, that the first conversion result is inconsistent with the second conversion result, the client may display the first conversion result provided by the server to the user as an input candidate of the server, so as to provide the user with the conversion result of the server for the character string.
S607: and the client determines the merged content as a server input candidate.
It can be understood that, if the client determines that the first conversion result is consistent with the second conversion result through comparison, in order to provide richer input candidate items for the user, the client may display the merged content sent by the server as the input candidate items of the server to the user, so that resources of the server may be fully utilized, more input candidate items are provided for the user, and waste of server resources is avoided.
In this embodiment, when the conversion results of the character strings input by the user are inconsistent between the client and the server based on different lexicons, the client may display the conversion result provided by the server on the input method interface, so that, even if the conversion results obtained by the client and the server for the character strings input by the user are the same, the server provides the user with input candidate items containing the conversion result and predicted context content, that is, candidate items containing the content that the user may continue to input subsequently, and displays the input candidate items on the input method interface of the client, thereby fully utilizing the resources of the server, and allowing the server to provide the user with input candidate items different from the client in the input process of the user, and enriching the input candidate items obtained by the user; moreover, based on the characteristics of larger word bank and stronger computing power of the server side, the hit rate of the input candidate items provided by the server side for the expected input of the user is relatively high, so that the input cost of the next step of the user can be saved.
In the above embodiment, the client determines the consistency between the first conversion result and the second conversion result, but when the first conversion result is inconsistent with the second conversion result, the client generally uses the first conversion result as a candidate for the server-side input and displays the candidate on the input method interface, and for the merged content, the client may not display on the input method interface. Therefore, in other possible embodiments, the server may determine consistency of the first conversion result and the second conversion result, and when it is determined that the first conversion result is inconsistent with the second conversion result, the server may not obtain the merged content based on the input content analysis, so that computing resources of the server may be reduced. Specifically, referring to fig. 7, fig. 7 is a schematic flow chart illustrating a further method for providing input candidates according to an embodiment of the present invention, where the method specifically includes:
s701: and the server side acquires a second conversion result and the character string input by the user on the client side, wherein the second conversion result is obtained by converting the character string based on a local word stock of the client side.
In specific implementation, after the user inputs the character string on the client, the client can convert the character string by using a local lexicon to obtain a second conversion result. Then, the client may send the second conversion result and the character string input by the user to the server along with the acquisition request of the input candidate generated on the client, so that the server may parse the second conversion result and the character string input by the user on the client from the acquisition request.
S702: the server converts the character string input by the user on the client to obtain a first conversion result.
After the server side obtains the character string, the character string can be converted by utilizing a word stock on the server side, and a second conversion result is obtained. Since the thesaurus at the server side can provide more entries than the local thesaurus at the client side, the first conversion result and the second conversion result may be the same or different. It is noted that the first conversion result and the second conversion result are both the results of complete conversion of the character string.
S703: the server compares whether the first conversion result is consistent with the second conversion result, if not, step S704 is executed, and if so, step S705 is executed.
S704: and the server side sends the first conversion result to the client side, so that the client side takes the first conversion result as a server side input candidate item.
It can be understood that, if the server determines that the first conversion result is inconsistent with the second conversion result through comparison, since the client usually displays the first conversion result on the input method interface as an input candidate provided by the server, the server may send the first conversion result to the client and display the first conversion result on the input method interface of the client, and may not analyze the merged content based on the first conversion result, so that the computing resource of the server may be saved while providing the input candidate of the server for the user.
S705: the server side analyzes the context content of the input content according to the input content, wherein the input content at least comprises a first conversion result.
S706: and the server side and the following content form merged content according to the first conversion result.
S707: and the server side sends the merged content to the client side, so that the client side takes the merged content as a server side input candidate item.
In this embodiment, the specific implementation process of steps S705 to S707 is similar to the specific implementation process of steps S202 to S204 in the above embodiment, and specific reference may be made to the description of the relevant parts in the previous embodiment, which is not described herein again.
In this embodiment, the server side can determine whether to analyze the merged content according to the consistency of the first conversion result and the second conversion result, so that when the first conversion result is inconsistent with the second conversion result, the server side does not need to analyze the merged content based on the first conversion result, and thus the input candidate item of the server side can be provided for the user, and meanwhile, the computing resource of the server side can be saved.
In practical application, in a conversion result obtained by converting a character string input by a user by using a word stock at a server side, if the word frequencies of the other conversion results are lower than those of the first conversion result except the first conversion result, the possibility that the first conversion result is the content expected to be input by the user when the character string is input by the user is higher, and the possibility that the other conversion results are the content expected to be input by the user is lower. For convenience of description, the conversion results other than the first conversion result are described as a third conversion result, and accordingly, the third conversion result may include one or more conversion results. Based on this, in addition to the above embodiment, the server may predict the context of the input content when determining that the first conversion result is the same as the second conversion result, or the server may perform analysis prediction on the context according to the input content when determining that the third conversion result is a low-frequency conversion result relative to the first conversion result.
That is, in some possible embodiments, the server side needs the first conversion result to satisfy a preset condition when determining to analyze the context of the input content according to the input content, and the preset condition may be the first conversion result and the second conversion result, or may be a conversion result of which the third conversion result is low frequency with respect to the first conversion result, or may be a combination of the first conversion result and the second conversion result, that is, the third conversion result is low frequency with respect to the first conversion result while the first conversion result is the same as the second conversion result.
In some embodiments of determining whether the third conversion result is a low-frequency conversion result, after obtaining a plurality of conversion results based on the character string input by the user, the server may determine whether the word frequency of each conversion result exceeds a preset value, and use a conversion result with a word frequency lower than the preset value as the third conversion result, and correspondingly use a conversion result with a word frequency not lower than the preset value as the first conversion result. Of course, the third conversion result may also be determined based on the word frequency difference between the two conversion results. Specifically, in some other embodiments of determining whether the third conversion result is a low-frequency conversion result, the server may calculate a word frequency difference between the two conversion results, determine whether the difference is greater than a preset value, determine, if the word frequency difference is greater than the preset value, the conversion result with a smaller word frequency as the third conversion result, and correspondingly determine, as the first conversion result, the conversion result with a larger word frequency.
Correspondingly, the server side may also determine whether to send the first conversion result to the client side based on whether the first conversion result satisfies a preset condition. Specifically, if the server determines that the first conversion result meets the preset condition, that is, the first conversion result is the same as the second conversion result, and/or the third conversion result is a low-frequency conversion result relative to the first conversion result, the server may send the merged content to the client, and the client may display the merged content as a server input candidate on the input method interface to provide more input candidates for the user; if the first conversion result does not meet the preset condition, that is, the first conversion result is not the same as the second conversion result, and/or the third conversion result is not a low-frequency conversion result relative to the first conversion result, the server may send the first conversion result to the client, and the client may display the first conversion result as a server candidate on the input method display interface to provide more input candidates for the user.
In addition, the embodiment of the invention also provides a device for providing the input candidate item. Referring to fig. 8, fig. 8 is a schematic structural diagram illustrating an apparatus for providing input candidates according to an embodiment of the present invention, where the apparatus 800 may specifically include:
an obtaining module 801, configured to obtain a first conversion result of a character string input by a user on a client;
an analysis module 802 configured to analyze context of an input content according to the input content, where the input content at least includes the first conversion result;
a composing module 803, configured to compose a merged content with the context content according to the first conversion result;
a sending module 804, configured to send the merged content to the client;
and the merged content is used as a server-side input candidate on the client side.
In some possible embodiments, the entered content further includes a text entered on the client prior to the entry of the character string.
In some possible embodiments, the analysis module 802 includes:
an acquisition unit configured to acquire the input content as a current context;
a first determining unit, configured to determine the current above context entry;
a returning unit, configured to, if the context probability of the current context and the context entry is greater than a probability threshold, take a content composed of the current context and the context entry as the current context again, and return to execute the determining of the context entry of the current context;
a second determining unit, configured to determine, if a context probability between the current context and the context entry is not greater than a probability threshold, a portion of the current context other than the already-input content as the context;
wherein the context probability represents a likelihood that the current above and below terms are entered as context by a user.
In some possible embodiments, the first conversion result is a conversion result obtained by converting the character string using a thesaurus at the server side.
In some possible embodiments, the apparatus 800 further comprises:
a conversion result sending module, configured to send the first conversion result to the client;
if the first conversion result meets a preset condition, the merged content is used as the server-side input candidate item on the client side; and if the first conversion result does not meet the preset condition, taking the first conversion result as the input candidate item of the server side on the client side.
In some possible embodiments, the analysis module 802 is specifically configured to, if the first conversion result satisfies a preset condition, analyze context of the input content according to the input content;
the conversion result sending module is specifically configured to send the first conversion result to the client if the first conversion result does not satisfy a preset condition.
In some possible embodiments, the preset conditions include: the first conversion result is the same as the second conversion result, and/or the third conversion result is a low-frequency conversion result relative to the first conversion result;
the second conversion result is obtained by converting the character string by using the word stock of the client; the third conversion result is another conversion result obtained by converting the character string by using the word stock of the server side in addition to the first conversion result.
In this embodiment, when providing the input candidate items, the server side sends the merged content obtained based on the character string input by the user to the client side, so that even if the conversion results obtained by the client side and the server side for the character string input by the user are the same, the server side provides the input candidate items containing predicted context content for the user, that is, the candidate items containing the content that the user may continue to input subsequently, thereby fully utilizing the resources of the server side, so that in the input process of the user, the server side provides the input candidate items different from the client side for the user, and the input candidate items obtained by the user are enriched; moreover, based on the characteristics of larger word bank and stronger computing power of the server side, the hit rate of the input candidate items provided by the server side for the expected input of the user is relatively high, so that the input cost of the user in the next step can be saved, and the input efficiency of the user is improved.
In addition, the embodiment of the application also provides a device for providing the input candidate item, and the device is applied to the terminal. Referring to fig. 9, fig. 9 is a schematic structural diagram illustrating an apparatus for providing input candidates according to an embodiment of the present invention, where the apparatus 900 may specifically include:
a receiving module 901, configured to receive a merged content sent by a server; the merged content is composed of a first conversion result and the context of the input content, the first conversion result is the conversion result of the character string input by the user on the client, and the input content at least comprises the first conversion result;
a determining module 902, configured to determine the merged content as a server-side input candidate.
In some possible embodiments, the apparatus 900 further comprises:
a sending module, configured to send, to the server, a text that has been input on the client before the character string is input;
wherein the entered content further comprises a text entered on the client prior to the entry of the character string.
In some possible embodiments, the apparatus 900 further comprises:
a conversion result receiving module, configured to receive the first conversion result sent by the server; the first conversion result is obtained by converting the character string by utilizing a word stock of the server side;
and the candidate determining module is used for determining the first conversion result as the server-side input candidate if the first conversion result does not meet a preset condition.
Correspondingly, the determining module 902 is specifically configured to determine the merged content as the server-side input candidate if the received first conversion result meets a preset condition.
Referring to fig. 10, the apparatus 1000 may include one or more of the following components: processing component 1002, memory 1004, power component 1006, multimedia component 1008, audio component 1010, input/output (I/O) interface 1012, sensor component 1014, and communications component 1016.
The processing component 1002 generally controls the overall operation of the device 1000, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 1002 may include one or more processors 1020 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 1002 may include one or more modules that facilitate interaction between processing component 1002 and other components. For example, the processing component 1002 can include a multimedia module to facilitate interaction between the multimedia component 1008 and the processing component 1002.
The memory 1004 is configured to store various types of data to support operation at the device 1000. Examples of such data include instructions for any application or method operating on device 1000, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1004 may be implemented by any type or combination of volatile or non-volatile memory devices 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 or optical disks.
The power supply component 1006 provides power to the various components of the device 1000. The power components 10010 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 1000.
The multimedia component 1008 includes a screen that provides an output interface between the device 1000 and a 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 an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1008 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 1000 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1010 is configured to output and/or input audio signals. For example, audio component 1010 includes a Microphone (MIC) configured to receive external audio signals when apparatus 1000 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 1004 or transmitted via the communication component 1016. In some embodiments, audio component 1010 also includes a speaker for outputting audio signals.
I/O interface 1012 provides an interface between processing component 1002 and peripheral interface modules, which may be 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.
The sensor assembly 1014 includes one or more sensors for providing various aspects of status assessment for the device 1000. For example, sensor assembly 1014 may detect the open/closed status of device 1000, the relative positioning of components, such as a display and keypad of apparatus 1000, sensor assembly 1014 may also detect a change in position of apparatus 1000 or a component of apparatus 1000, the presence or absence of user contact with apparatus 1000, orientation or acceleration/deceleration of apparatus 1000, and a change in temperature of apparatus 1000. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1014 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1014 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1016 is configured to facilitate communications between the apparatus 1000 and other devices in a wired or wireless manner. The device 1000 may 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 1016 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1016 further includes a Near Field Communication (NFC) module to facilitate short-range communications. 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.
In an exemplary embodiment, the apparatus 1000 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, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
Specifically, the present invention provides an apparatus for providing input candidates, which may be embodied as a device 1000, including a memory 1004 and one or more programs, wherein the one or more programs are stored in the memory 1004 and configured to be executed by one or more processors 1020, and the one or more programs include instructions for:
acquiring a first conversion result of a character string input by a user on a client;
analyzing context of the input content according to the input content, wherein the input content at least comprises the first conversion result;
composing a merged content with the context with the first conversion result;
sending the merged content to the client;
and the merged content is used as a server-side input candidate on the client side.
In some possible embodiments, the entered content further includes a text entered on the client prior to the entry of the character string.
In some possible implementations, the processor 1020 is specifically configured to execute the one or more programs including instructions for:
acquiring the input content as a current text;
determining the current context entry;
if the context probability of the current context and the context entry is greater than the probability threshold, taking the content formed by the current context and the context entry as the current context again, and returning to execute the determination of the context entry of the current context;
if the context probability of the current context and the context entry is not larger than a probability threshold, determining the part of the current context except the input content as the context;
wherein the context probability represents a likelihood that the current above and below terms are entered as context by a user.
In some possible embodiments, the first conversion result is a conversion result obtained by converting the character string using a thesaurus at the server side.
In some possible embodiments, the processor 1020 is further configured to execute the one or more programs including instructions for:
sending the first conversion result to the client;
if the first conversion result meets a preset condition, the merged content is used as the server-side input candidate item on the client side; and if the first conversion result does not meet the preset condition, taking the first conversion result as the input candidate item of the server side on the client side.
In some possible implementations, the processor 1020 is specifically configured to execute the one or more programs including instructions for: if the first conversion result meets a preset condition, analyzing the following content of the input content according to the input content; and if the first conversion result does not meet the preset condition, sending the first conversion result to the client.
In some possible embodiments, the preset conditions include: the first conversion result is the same as the second conversion result, and/or the third conversion result is a low-frequency conversion result relative to the first conversion result;
the second conversion result is obtained by converting the character string by using the word stock of the client; the third conversion result is another conversion result obtained by converting the character string by using the word stock of the server side in addition to the first conversion result.
Alternatively, an embodiment of the present invention provides an apparatus for providing input candidates, which may be embodied as a device 1000, including a memory 1004, and one or more programs, where the one or more programs are stored in the memory 1004 and configured to be executed by one or more processors 1020, and the one or more programs include instructions for:
receiving the merged content sent by the server; the merged content is composed of a first conversion result and the context of the input content, the first conversion result is the conversion result of the character string input by the user on the client, and the input content at least comprises the first conversion result;
and determining the merged content as a server-side input candidate.
In some possible embodiments, the processor 1020 is further configured to execute the one or more programs including instructions for:
sending the text which is input before the character string is input on the client to the server;
wherein the entered content further comprises a text entered on the client prior to the entry of the character string.
In some possible embodiments, the processor 1020 is further configured to execute the one or more programs including instructions for:
receiving the first conversion result sent by the server; the first conversion result is obtained by converting the character string by utilizing a word stock of the server side;
and if the first conversion result does not meet the preset condition, determining the first conversion result as the server-side input candidate item.
Accordingly, in some possible embodiments, the processor 1020 is specifically configured to execute the one or more programs including instructions for:
and if the received first conversion result meets a preset condition, determining the merged content as the server-side input candidate item.
Embodiments of the present invention also provide a non-transitory computer-readable storage medium, such as the memory 1004, comprising instructions executable by the processor 1020 of the device 1000 to perform the above-described method. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a method of providing input candidates, the method comprising:
acquiring a first conversion result of a character string input by a user on a client;
analyzing context of the input content according to the input content, wherein the input content at least comprises the first conversion result;
composing a merged content with the context with the first conversion result;
sending the merged content to the client;
and the merged content is used as a server-side input candidate on the client side.
Alternatively, the method comprises:
receiving the merged content sent by the server; the merged content is composed of a first conversion result and the context of the input content, the first conversion result is the conversion result of the character string input by the user on the client, and the input content at least comprises the first conversion result;
and determining the merged content as a server-side input candidate.
Fig. 11 is a schematic structural diagram of a server in an embodiment of the present invention. The server 1100 may vary widely in configuration or performance and may include one or more Central Processing Units (CPUs) 1122 (e.g., one or more processors) and memory 1132, one or more storage media 1130 (e.g., one or more mass storage devices) storing applications 1142 or data 1144. Memory 1132 and storage media 1130 may be, among other things, transient storage or persistent storage. The program stored on the storage medium 1130 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, the central processor 1122 may be provided in communication with the storage medium 1130 to execute a series of instruction operations in the storage medium 1130 on the server 1100.
The server 1100 may also include one or more power supplies 1126, one or more wired or wireless network interfaces 1150, one or more input-output interfaces 1158, one or more keyboards 1156, and/or one or more operating systems 1141, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements 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 invention is only limited by the appended claims
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. A method for providing input candidates, applied to a server side, includes:
acquiring a first conversion result of a character string input by a user on a client;
analyzing context of the input content according to the input content, wherein the input content at least comprises the first conversion result;
composing a merged content with the context with the first conversion result;
sending the merged content to the client;
and the merged content is used as a server-side input candidate on the client side.
2. The method of claim 1, wherein the entered content further comprises a text entered on the client prior to the entry of the string.
3. The method of claim 1, wherein analyzing context of the input content according to the input content comprises:
acquiring the input content as a current text;
determining the current context entry;
if the context probability of the current context and the context entry is greater than the probability threshold, taking the content formed by the current context and the context entry as the current context again, and returning to execute the determination of the context entry of the current context;
if the context probability of the current context and the context entry is not larger than a probability threshold, determining the part of the current context except the input content as the context;
wherein the context probability represents a likelihood that the current above and below terms are entered as context by a user.
4. A method for providing input candidates, applied to a client, includes:
receiving the merged content sent by the server; the merged content is composed of a first conversion result and the context of the input content, the first conversion result is the conversion result of the character string input by the user on the client, and the input content at least comprises the first conversion result;
and determining the merged content as a server-side input candidate.
5. The method of claim 4, further comprising:
sending the text which is input before the character string is input on the client to the server;
wherein the entered content further comprises a text entered on the client prior to the entry of the character string.
6. The method of claim 4, further comprising:
receiving the first conversion result sent by the server; the first conversion result is obtained by converting the character string by utilizing a word stock of the server side;
and if the first conversion result does not meet the preset condition, determining the first conversion result as the server-side input candidate item.
Correspondingly, the determining the merged content as a server-side input candidate specifically includes: and if the received first conversion result meets a preset condition, determining the merged content as the server-side input candidate item.
7. An apparatus for providing input candidates, wherein the apparatus is applied to a server side, and comprises:
the system comprises an acquisition module, a conversion module and a conversion module, wherein the acquisition module is used for acquiring a first conversion result of a character string input by a user on a client;
an analysis module for analyzing context of the input content according to the input content, the input content at least including the first conversion result;
a composition module, configured to compose a merged content with the context content according to the first conversion result;
a sending module, configured to send the merged content to the client;
and the merged content is used as a server-side input candidate on the client side.
8. An apparatus for providing input candidates, the apparatus being applied to a terminal, comprising:
the receiving module is used for receiving the combined content sent by the server side; the merged content is composed of a first conversion result and the context of the input content, the first conversion result is the conversion result of the character string input by the user on the client, and the input content at least comprises the first conversion result;
and the determining module is used for determining the merged content as a server-side input candidate item.
9. An apparatus for providing input candidates, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs are configured to be executed by the one or more processors to perform the method for providing input candidates according to any one of the preceding claims 1 to 3, or the method for providing input candidates according to any one of the preceding claims 4 to 6.
10. A non-transitory computer readable storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the method of providing input candidates of any of the preceding claims 1 to 3 or the method of providing input candidates of any of the preceding claims 4 to 6.
CN201910107652.8A 2019-02-02 2019-02-02 Method, device and equipment for providing input candidate items Active CN111522448B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910107652.8A CN111522448B (en) 2019-02-02 2019-02-02 Method, device and equipment for providing input candidate items

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910107652.8A CN111522448B (en) 2019-02-02 2019-02-02 Method, device and equipment for providing input candidate items

Publications (2)

Publication Number Publication Date
CN111522448A true CN111522448A (en) 2020-08-11
CN111522448B CN111522448B (en) 2024-04-30

Family

ID=71900640

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910107652.8A Active CN111522448B (en) 2019-02-02 2019-02-02 Method, device and equipment for providing input candidate items

Country Status (1)

Country Link
CN (1) CN111522448B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113515199A (en) * 2021-04-15 2021-10-19 维沃移动通信有限公司 Text display method and device, electronic equipment and storage medium
CN113515199B (en) * 2021-04-15 2024-05-10 维沃移动通信有限公司 Text display method and device, electronic equipment and storage medium

Citations (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101645093A (en) * 2009-09-02 2010-02-10 腾讯科技(深圳)有限公司 Method of realizing classified lexicon and input method client end
CN101697099A (en) * 2009-10-26 2010-04-21 北京搜狗科技发展有限公司 Method and system for acquiring word conversion result
CN101697109A (en) * 2009-10-26 2010-04-21 北京搜狗科技发展有限公司 Method and system for acquiring candidates of input method
CN102063452A (en) * 2010-05-31 2011-05-18 百度在线网络技术(北京)有限公司 Method, equipment, server and system for inputting characters by user
CN102087550A (en) * 2009-12-07 2011-06-08 北京搜狗科技发展有限公司 Hardware equipment as well as method and system for inputting therein
US20110213655A1 (en) * 2009-01-24 2011-09-01 Kontera Technologies, Inc. Hybrid contextual advertising and related content analysis and display techniques
CN102646022A (en) * 2012-04-10 2012-08-22 北京搜狗科技发展有限公司 Method and device for obtaining candidate
WO2012139394A1 (en) * 2011-04-13 2012-10-18 北京百度网讯科技有限公司 Resource candidate sequencing result determination method, apparatus and equipment
CN102999275A (en) * 2012-10-11 2013-03-27 北京搜狗科技发展有限公司 Method and device for acquiring word conversion result
CN103647843A (en) * 2013-12-20 2014-03-19 百度在线网络技术(北京)有限公司 Method and device for triggering and responding to cloud input requests
CN103984688A (en) * 2013-04-28 2014-08-13 百度在线网络技术(北京)有限公司 Method and equipment for providing input candidate vocabulary entries based on local word bank
CN104331173A (en) * 2012-04-16 2015-02-04 宗刚 Computer processing method and system for character information
CN105224666A (en) * 2015-10-08 2016-01-06 广东欧珀移动通信有限公司 A kind of input method, device and terminal
CN105474166A (en) * 2013-03-15 2016-04-06 先进元素科技公司 Methods and systems for purposeful computing
CN105607757A (en) * 2015-12-28 2016-05-25 北京搜狗科技发展有限公司 Input method and device and device used for input
WO2017005207A1 (en) * 2015-07-09 2017-01-12 北京搜狗科技发展有限公司 Input method, input device, server and input system
CN106371624A (en) * 2016-09-23 2017-02-01 百度在线网络技术(北京)有限公司 Method and device for providing input candidate item
CN106484135A (en) * 2016-09-23 2017-03-08 百度在线网络技术(北京)有限公司 A kind of method and apparatus for providing input candidate item
CN106527752A (en) * 2016-09-23 2017-03-22 百度在线网络技术(北京)有限公司 Method and device for providing input candidate items
CN106993201A (en) * 2017-03-17 2017-07-28 武汉斗鱼网络科技有限公司 The authorization check method and device of video playback
CN107340880A (en) * 2016-05-03 2017-11-10 北京搜狗科技发展有限公司 A kind of association-feeding method, device and the electronic equipment for realizing association's input
CN107436691A (en) * 2016-05-26 2017-12-05 北京搜狗科技发展有限公司 A kind of input method carries out method, client, server and the device of error correction
CN107608532A (en) * 2016-07-11 2018-01-19 北京搜狗科技发展有限公司 A kind of association-feeding method, device and electronic equipment
US20180246966A1 (en) * 2017-02-27 2018-08-30 Google Inc. Content Search Engine
CN108803890A (en) * 2017-04-28 2018-11-13 北京搜狗科技发展有限公司 A kind of input method, input unit and the device for input
CN108958503A (en) * 2017-05-26 2018-12-07 北京搜狗科技发展有限公司 input method and device
CN109144285A (en) * 2017-06-16 2019-01-04 北京搜狗科技发展有限公司 A kind of input method and device

Patent Citations (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110213655A1 (en) * 2009-01-24 2011-09-01 Kontera Technologies, Inc. Hybrid contextual advertising and related content analysis and display techniques
CN101645093A (en) * 2009-09-02 2010-02-10 腾讯科技(深圳)有限公司 Method of realizing classified lexicon and input method client end
CN101697099A (en) * 2009-10-26 2010-04-21 北京搜狗科技发展有限公司 Method and system for acquiring word conversion result
CN101697109A (en) * 2009-10-26 2010-04-21 北京搜狗科技发展有限公司 Method and system for acquiring candidates of input method
CN102087550A (en) * 2009-12-07 2011-06-08 北京搜狗科技发展有限公司 Hardware equipment as well as method and system for inputting therein
CN102063452A (en) * 2010-05-31 2011-05-18 百度在线网络技术(北京)有限公司 Method, equipment, server and system for inputting characters by user
WO2012139394A1 (en) * 2011-04-13 2012-10-18 北京百度网讯科技有限公司 Resource candidate sequencing result determination method, apparatus and equipment
CN102646022A (en) * 2012-04-10 2012-08-22 北京搜狗科技发展有限公司 Method and device for obtaining candidate
CN104331173A (en) * 2012-04-16 2015-02-04 宗刚 Computer processing method and system for character information
CN102999275A (en) * 2012-10-11 2013-03-27 北京搜狗科技发展有限公司 Method and device for acquiring word conversion result
CN105474166A (en) * 2013-03-15 2016-04-06 先进元素科技公司 Methods and systems for purposeful computing
CN103984688A (en) * 2013-04-28 2014-08-13 百度在线网络技术(北京)有限公司 Method and equipment for providing input candidate vocabulary entries based on local word bank
CN103647843A (en) * 2013-12-20 2014-03-19 百度在线网络技术(北京)有限公司 Method and device for triggering and responding to cloud input requests
WO2017005207A1 (en) * 2015-07-09 2017-01-12 北京搜狗科技发展有限公司 Input method, input device, server and input system
CN105224666A (en) * 2015-10-08 2016-01-06 广东欧珀移动通信有限公司 A kind of input method, device and terminal
CN105607757A (en) * 2015-12-28 2016-05-25 北京搜狗科技发展有限公司 Input method and device and device used for input
CN107340880A (en) * 2016-05-03 2017-11-10 北京搜狗科技发展有限公司 A kind of association-feeding method, device and the electronic equipment for realizing association's input
CN107436691A (en) * 2016-05-26 2017-12-05 北京搜狗科技发展有限公司 A kind of input method carries out method, client, server and the device of error correction
CN107608532A (en) * 2016-07-11 2018-01-19 北京搜狗科技发展有限公司 A kind of association-feeding method, device and electronic equipment
CN106371624A (en) * 2016-09-23 2017-02-01 百度在线网络技术(北京)有限公司 Method and device for providing input candidate item
CN106484135A (en) * 2016-09-23 2017-03-08 百度在线网络技术(北京)有限公司 A kind of method and apparatus for providing input candidate item
CN106527752A (en) * 2016-09-23 2017-03-22 百度在线网络技术(北京)有限公司 Method and device for providing input candidate items
US20180246966A1 (en) * 2017-02-27 2018-08-30 Google Inc. Content Search Engine
CN106993201A (en) * 2017-03-17 2017-07-28 武汉斗鱼网络科技有限公司 The authorization check method and device of video playback
CN108803890A (en) * 2017-04-28 2018-11-13 北京搜狗科技发展有限公司 A kind of input method, input unit and the device for input
CN108958503A (en) * 2017-05-26 2018-12-07 北京搜狗科技发展有限公司 input method and device
CN109144285A (en) * 2017-06-16 2019-01-04 北京搜狗科技发展有限公司 A kind of input method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
HARALD LAMPESBERGER: "Technologies for Web and cloud service interaction: a survey", 《SERVICE ORIENTED COMPUTING AND APPLICATIONS》, vol. 10, 20 February 2015 (2015-02-20), pages 71 - 110, XP035948143, DOI: 10.1007/s11761-015-0174-1 *
马金海: "基于TSF机制的藏文联想记忆输入研究", 《CNKI学位论文》, vol. 2015, no. 01, 15 January 2015 (2015-01-15) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113515199A (en) * 2021-04-15 2021-10-19 维沃移动通信有限公司 Text display method and device, electronic equipment and storage medium
CN113515199B (en) * 2021-04-15 2024-05-10 维沃移动通信有限公司 Text display method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111522448B (en) 2024-04-30

Similar Documents

Publication Publication Date Title
CN108227950B (en) Input method and device
US20200012701A1 (en) Method and apparatus for recommending associated user based on interactions with multimedia processes
CN107918496B (en) Input error correction method and device for input error correction
CN107564526B (en) Processing method, apparatus and machine-readable medium
CN108345625B (en) Information mining method and device for information mining
CN110213062B (en) Method and device for processing message
CN109842688B (en) Content recommendation method and device, electronic equipment and storage medium
CN109144286B (en) Input method and device
CN111198620A (en) Method, device and equipment for presenting input candidate items
CN109901726B (en) Candidate word generation method and device and candidate word generation device
CN108108356B (en) Character translation method, device and equipment
CN106959970B (en) Word bank, processing method and device of word bank and device for processing word bank
CN111522448B (en) Method, device and equipment for providing input candidate items
CN108073566B (en) Word segmentation method and device and word segmentation device
CN108227952B (en) Method and system for generating custom word and device for generating custom word
CN111611339A (en) Recommendation method and device for inputting related users
CN111381685B (en) Sentence association method and sentence association device
CN110413133B (en) Input method and device
CN109408623B (en) Information processing method and device
CN109241517B (en) Entry learning method, device and equipment
CN109388328B (en) Input method, device and medium
CN109388251B (en) Input method and device
CN112732098A (en) Input method and related device
CN112347775A (en) Data processing method and device and data processing device
CN111796690A (en) Data processing method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant