CN111208910A - Cloud association method and related device - Google Patents

Cloud association method and related device Download PDF

Info

Publication number
CN111208910A
CN111208910A CN201811399268.1A CN201811399268A CN111208910A CN 111208910 A CN111208910 A CN 111208910A CN 201811399268 A CN201811399268 A CN 201811399268A CN 111208910 A CN111208910 A CN 111208910A
Authority
CN
China
Prior art keywords
character string
server
cloud
context
terminal
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
CN201811399268.1A
Other languages
Chinese (zh)
Other versions
CN111208910B (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 CN201811399268.1A priority Critical patent/CN111208910B/en
Publication of CN111208910A publication Critical patent/CN111208910A/en
Application granted granted Critical
Publication of CN111208910B publication Critical patent/CN111208910B/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)
  • Machine Translation (AREA)

Abstract

The embodiment of the application discloses a cloud association method and a related device. And if one contextual character string is determined to further comprise other contextual character strings having semantic association relation with the contextual character string in the associated contextual character string, determining the contextual character string as a first contextual character string and setting the cloud identification for the first contextual character string. After the first text string is returned to the terminal, if the terminal is determined to display the first text string according to the cloud sending identification, the server continuously associates the first text string as a to-be-associated character string and continuously returns the associated text string to the terminal, so that the server realizes the function of initiating cloud end association through the cloud sending identification, provides the text string through continuous cloud end association, provides input convenience for a user, and is favorable for improving the input fluency of the user.

Description

Cloud association method and related device
Technical Field
The present application relates to the field of input methods, and in particular, to a cloud association method and a related device.
Background
The cloud association is a mode that the server associates the related contextual character strings according to the input character strings of the user, and because the computing capacity and the storage space of the server end are far larger than those of the terminal, the server end can associate the contextual character strings which can not be determined by the terminal in a more complex mode according to the input of the user, so that richer candidate items can be provided for the user through the contextual character strings when the user uses the input method for input, and convenience is provided for the input of the user.
However, in the field of input methods, cloud association is mainly initiated through a terminal, for example, when an input method client arranged in the terminal determines that a suitable following character string cannot be obtained according to input of a user or some specific input conditions exist, a cloud association request is actively initiated to a server through the terminal.
Therefore, the current initiating mode of the cloud association is mainly dominated by the terminal, is single in mode, is difficult to adapt to various input conditions of a user, and cannot better provide input convenience for the user.
Disclosure of Invention
In order to solve the technical problem, the application provides a cloud association method and a related device, so that a server can also participate in cloud association initiation, and a following character string which is associated by the cloud is provided for a user through continuous cloud association, so that input convenience is provided for the user, and the input fluency of the user is improved.
The embodiment of the application discloses the following technical scheme:
in a first aspect, an embodiment of the present application provides a cloud association method, where the method includes:
the server acquires a character string to be associated;
the server associates the character strings to be associated according to the semantic association relation;
if the server associates a first context character string having a semantic association relationship with the character string to be associated and the first context character string comprises a second context character string having a semantic association relationship with the first context character string, the server sets a cloud sending identifier for the first context character string;
the server returns a first lower character string carrying the cloud sending identification to the terminal;
and if the server determines that the terminal performs screen loading on the first context character string through the cloud identification, the server takes the first context character string as the character string to be associated and executes the step of performing context character string association on the character string to be associated according to the semantic association relation.
Optionally, the determining, by the server through the cloud identifier, that the terminal is to screen the first contextual character string by the server includes:
if the server acquires a cloud association request which is sent by the terminal according to the cloud sending identification and comprises the first context character string, the server determines that the terminal carries out screen loading on the first context character string.
Optionally, the associating of the following character strings with the character string to be associated by the server according to the semantic association relationship includes:
if the target context character string associated by the server to the character string to be associated is in an integrity text comprising a plurality of sentences according to the semantic association relationship, the server takes the target context character string as the first context character string and takes the next sentence of the target context character string in the integrity text as the second context character string.
Optionally, the obtaining, by the server, a character string to be associated includes:
and the server acquires the character string to be associated according to a cloud association request sent by the terminal.
Optionally, the associating of the following character strings with the character string to be associated by the server according to the semantic association relationship includes:
the server does not comprise the contextual character string with the semantic association relation for the target contextual character string associated with the character string to be associated according to the semantic association relation;
the method further comprises the following steps:
and the server returns the target context character string which does not carry the cloud sending identification to the terminal.
In a second aspect, an embodiment of the present application provides a cloud association method, where the method includes:
a terminal acquires a first next character string returned by the server, wherein the first next character string carries a cloud sending identifier, and the first next character string is obtained by the server associating the character strings to be associated according to a semantic association relation;
the terminal displays the first lower character string as a target candidate item;
and if the target candidate item is selected to be displayed on a screen, the terminal acquires a second context character string returned by the server, wherein the second context character string is a context character string having a semantic association relationship with the first context character string.
Optionally, if the target candidate item is selected to be displayed on the screen, the method further includes:
and the terminal sends a cloud association request comprising the first context character string to the server according to the cloud sending identification.
Optionally, before the terminal acquires the first text string returned by the server, the method further includes:
and the terminal sends a cloud association request comprising the character string to be associated to a server.
In a third aspect, an embodiment of the present application provides a server for cloud association, where the server includes an obtaining unit, an associating unit, a setting unit, a returning unit, and a determining unit:
the acquiring unit is used for acquiring a character string to be associated;
the association unit is used for associating the character strings to be associated with according to the semantic association relation;
if the association unit associates a first context character string having a semantic association relationship with the character string to be associated and the first context character string includes a second context character string having a semantic association relationship with the first context character string, the setting unit is configured to set a cloud sending identifier for the first context character string;
the return unit is used for returning a first lower character string carrying the cloud sending identifier to the terminal;
the determining unit is configured to determine whether the terminal performs screen loading on the first context string, and trigger the associating unit if the determining unit determines that the terminal performs screen loading on the first context string through the cloud sending identifier;
the association unit is further configured to use the first next character string as the character string to be associated, and associate the character string to be associated with the next character string according to the semantic association relationship.
Optionally, the determining unit is further configured to determine that the terminal has performed screen loading on the first context string if the cloud association request including the first context string sent by the terminal according to the cloud sending identifier is obtained.
Optionally, the associating unit is further configured to, if a target context character string associated with the to-be-associated character string is in an integrity text including a plurality of sentences according to the semantic association relationship, use the target context character string as the first context character string, and use a next sentence of the target context character string in the integrity text as the second context character string.
Optionally, the obtaining unit is further configured to obtain the to-be-associated character string according to a cloud association request sent by a terminal.
Optionally, the returning unit is further configured to return the target context character string that does not carry the cloud sending identifier to the terminal if the target context character string associated with the to-be-associated character string by the associating unit according to the semantic association does not include a context character string having a semantic association.
In a fourth aspect, an embodiment of the present application provides a terminal for cloud association, where the terminal includes an obtaining unit and a display unit:
the acquiring unit is configured to acquire a first next character string returned by the server, where the first next character string carries a cloud sending identifier, and the first next character string is obtained by associating a to-be-associated character string with the server according to a semantic association relationship;
the display unit is used for displaying the first lower character string as a target candidate item;
the obtaining unit is further configured to obtain a second contextual character string returned by the server if the target candidate item is selected to be displayed on the screen, where the second contextual character string is a contextual character string having a semantic association relationship with the first contextual character string.
Optionally, the terminal further includes a sending unit, where the sending unit is configured to send, to the server, a cloud association request including the first context string according to the cloud identifier if the target candidate is selected to be displayed on a screen.
Optionally, the sending unit is further configured to send a cloud association request including the to-be-associated character string to a server.
In a fifth aspect, embodiments of the present application provide a server for cloud association, the server including a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs configured to be executed by the one or more processors include instructions for:
acquiring a character string to be associated;
associating the character strings to be associated with the next character strings according to the semantic association relation;
setting a cloud sending identifier for a first context character string if the first context character string having a semantic association relation with the character string to be associated is associated and the first context character string comprises a second context character string having a semantic association relation with the first context character string;
returning a first lower character string carrying the cloud sending identification to the terminal;
and if the terminal is determined to be on screen of the first context character string through the cloud-sending identification, taking the first context character string as the character string to be associated, and executing the step of associating the context character string to be associated according to the semantic association relation.
In a sixth aspect, an embodiment of the present application provides a terminal for cloud association, the terminal including a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs configured to be executed by the one or more processors include instructions for:
acquiring a first next character string returned by the server, wherein the first next character string carries a cloud sending identifier, and the first next character string is obtained by the server associating the to-be-associated character string according to a semantic association relation;
displaying the first lower character string as a target candidate item;
and if the target candidate item is selected to be displayed on the screen, acquiring a second context character string returned by the server, wherein the second context character string is a context character string having a semantic association relationship with the first context character string.
In a seventh aspect, embodiments of the present application provide a machine-readable medium having instructions stored thereon, which when executed by one or more processors, cause an apparatus to perform one or more of the cloud association methods of the first aspect, or cause an apparatus to perform one or more of the cloud association methods of the second aspect.
According to the technical scheme, when the server acquires the character string to be associated, the server performs the following character string association conforming to the semantic association relation aiming at the character string to be associated, namely, based on the character string to be associated, the server determines what the character string which the user wishes to continuously input next is possible. If the server determines that one contextual character string also comprises other contextual character strings having semantic association relation with the contextual character string in the associated contextual character strings, the server determines the contextual character string as a first contextual character string and sets the cloud identification for the first contextual character string. After the server returns the first context character string with the cloud identification to the terminal, if the terminal is determined to be on screen the first context character string according to the cloud identification, the server continuously associates the first context character string as a character string to be associated, and continuously returns the context character string obtained by association to the terminal, so that the server realizes the function of initiating cloud association through the cloud identification, the server can also participate in cloud association initiation, the context character string obtained by cloud association is provided for the user through continuous cloud association, input convenience is provided for the user, and the input fluency of the user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a scene schematic diagram of cloud association provided in an embodiment of the present application;
fig. 2 is a signaling flowchart of a cloud association method according to an embodiment of the present disclosure;
fig. 3 is a device structure diagram of a server for cloud association according to an embodiment of the present disclosure;
fig. 4 is a device structure diagram of a terminal for cloud association according to an embodiment of the present disclosure;
fig. 5 is a structural diagram of an apparatus for cloud association according to an embodiment of the present disclosure;
fig. 6 is a block diagram of a server according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described below with reference to the accompanying drawings.
Because a user mainly inputs the text strings through an input method configured in a terminal, the conventional association of the text strings is executed locally in the terminal, the terminal actively initiates cloud association to a server only when the terminal locally determines that the appropriate text strings cannot be obtained or specific input conditions exist, and the server with larger word stock quantity and higher processing speed assists in associating the text strings so as to provide the text strings which are more likely to meet the input requirements of the user.
This single way of initiating cloud association can affect the user's input experience in some input situations, such as situations where the contextual string associated by the terminal does not match the user's input requirements, and the terminal does not initiate cloud association. Therefore, diversifying the way of initiating cloud association is a problem which needs to be solved urgently at present.
To this end, the embodiment of the present application provides a cloud association method, when a server associates a character string to be associated, the server may determine a first descending character string in the descending character string corresponding to the character string to be associated, and sets a cloud identification for the first next character string, if the server screens the first next character string through the cloud identification confirmation terminal, the server can take the first next character string as the character string to be associated, actively and continuously associating the character string to be associated, continuously returning the character string obtained by association to the terminal, therefore, the server realizes the function of initiating the cloud end association through the cloud sending identification, so that the server can also participate in the initiation of the cloud end association, and the continuous cloud association provides the user with the context character string associated by the cloud, so that the user is facilitated to input, and the input fluency of the user is improved. In the embodiment of the application, cloud association is performed through a server with the following character string association capability being stronger than that of the terminal. Compared with the terminal, the server can have a more comprehensive word bank for associating the following character strings, and the calculation speed and the calculation capacity of the associating following character strings can be stronger. The server can associate the following character strings which have semantic association relation with the character strings to be associated and are difficult to associate with the terminal in a high speed. The cloud association in the embodiment of the application refers to association of a character string to be associated by a server according to a semantic association relation.
Both the to-be-associated character string and the following character string belong to character strings. In the embodiment of the present application, the character string may have different expressions according to different input languages, for example, in the chinese input method, the character string may include a chinese character, a word, a sentence, and the like. In the english input method, a character string may include words, phrases, sentences, and the like of english.
The character string to be associated is a character string which is input by a user through an input method set by a terminal and is displayed on a screen, or can be a character string which is input but not displayed on the screen, wherein the character string displayed on the screen can be a character string which is input into a text such as a word and an email by the user, or can be a character string which is selected by the user and is not output, such as a Chinese character which is input in a social software chat window but is not sent out and the like. In the embodiment of the application, the character string to be associated is a character string which needs to be associated through the server, and the character string to be associated can be sent to the server through the terminal or can be determined by the server.
The input method can show corresponding candidate items for a user according to the character strings to be associated, wherein the candidate items comprise the following character strings obtained by associating the character strings to be associated according to the semantic association relation. The semantic association relationship can be used for reflecting the semantic consistency between two character strings, and the higher the semantic consistency of the two character strings is, the higher the possibility that the two character strings appear in the text at the same time is.
The following character string belongs to a character string determined by an input method for the character string to be associated and possibly input by a user continuously after the character string to be associated. For example, the character string to be associated is "light before bed", and the following character string having a semantic association relationship with "light before bed" may include "suspicion of frost on the ground", "two pairs of shoes on the ground", "i are guo german", and the like. For example, the character string to be associated is "suspected of frosting on the ground", and the following character string having a semantic association relationship with "suspected frosting on the ground" may include "looking up at the head for the moon".
It should be noted that, in the embodiment of the present application, the first contextual character string belongs to a specific contextual character string, and firstly, the first contextual character string is associated according to the character string to be associated, and secondly, the first contextual character string further includes other contextual character strings having a semantic association relationship with the first contextual character string, for example, the second contextual character string. When the server returns the contextual character string obtained by associating the to-be-associated character string to the terminal, the server sets a cloud sending identifier for a first contextual character string in the contextual character string, so that when the first contextual character string is determined to be on the screen, the server continues to associate the first contextual character string as the to-be-associated character string, and continuously returns the associated contextual character string, such as a previously determined second contextual character string, to the terminal.
Fig. 1 shows an optional scenario applied in the embodiment of the present application, in which the character string "bright moon before bed" to be associated acquired by the server 200 is transmitted by the terminal 100. Specifically, the terminal 100 sends a cloud association request to the server 200, and requests association of a character string to be associated "light before bed" to associate the character string with the next text.
If the server 200 performs the following character string association on the to-be-associated character string "light before bed" according to the semantic association relationship to obtain at least one following character string, such as "suspected of frost on the ground", "two pairs of shoes on the ground", and "i" are guo german, respectively, the server 200 may further determine whether there is a following character string in the obtained following character string including other following character strings having a semantic association relationship with the following character string, if there is, for example, "suspected of frost on the ground" has a following character string of "looking for moon at the top of the head". The server 200 may use "ground frost in doubt" as the first lower character string and "open-minded moon in semantic association with the first lower character string" as the second lower character string. In this case, the server 200 may determine that if the user has the first text string on screen, the next user input request is more likely to be to continue to screen the second text string, e.g., "take the first tomorrow". Therefore, in order to better meet the subsequent input requirement of the user, the cloud sending identifier is set for the first contextual character string when the server 200 returns the first contextual character string to the terminal.
The server 200 may determine, through the cloud identifier, whether the terminal has screened the first character string "doubtful ground frost" in the subsequent input process, and when determining that the terminal has screened the first character string "doubtful ground frost" as the character string to be associated and associates to obtain the corresponding following character string "take a good luck" in the first day, and then, the server 200 returns "take a good luck" to the terminal 100, so that the server 200 implements the function of initiating the cloud association through the cloud identifier. The terminal 100 provides convenience for the user to input by displaying the candidate item including 'lifting the head and looking for the bright moon', and if the candidate item meets the input requirement of the user after 'frosting on the screen', the user can directly select the candidate item to screen on the screen through the terminal, so that the input fluency of the user is improved.
Next, a cloud association method provided in an embodiment of the present application is described with reference to fig. 2, where the method includes:
s201: the server acquires the character string to be associated.
In the embodiment of the application, the server may obtain the character string to be associated in a plurality of ways.
In a possible implementation manner, when the terminal determines that the cloud association needs to be initiated, the to-be-associated character string may be obtained from a cloud association request sent by the terminal. This alternative may be seen at S200 in fig. 2.
In a possible implementation manner, after the server returns the first lower character string provided with the cloud sending identifier to the terminal, if the terminal determines that the first lower character string returned by the server is selected to be displayed on a screen, the terminal initiates cloud end association according to the cloud sending identifier arranged on the first lower character string, namely sends a cloud end association request carrying the first lower character string to the server, and the server can acquire the first lower character string according to the cloud end association request and take the first lower character string as a character string to be associated.
In a possible implementation manner, after the server returns the first next character string provided with the cloud sending identifier to the terminal, if the server can determine that the terminal has performed screen loading on the first next character string according to the cloud sending identifier, the server can obtain the first next character string from the local and use the first next character string as the character string to be associated.
S202: and the server associates the character strings to be associated according to the semantic association relation.
When associating the character strings to be associated, the server may determine, in addition to the contextual character strings having a semantic association relationship with the character strings to be associated, whether the contextual character strings include contextual character strings having a semantic association relationship.
If the server associates an contextual character string having a semantic association relationship with the to-be-associated character string and the contextual character string includes other contextual character strings having a semantic association relationship with the contextual character string, the server may use the contextual character string as a first contextual character string and use a character string having a semantic association relationship with the first contextual character string as a second contextual character string.
The number of the first text strings determined by the server may include one or more, and for convenience of description, in the following embodiments, how to process one first text string is mainly described.
The embodiment of the present application does not limit the specific way of determining the first context character string, and for example, it may be sequentially determined whether the context character string having a semantic association relationship with the to-be-associated character string has a corresponding context character string.
Optionally, the embodiment of the present application further provides a method for determining the first next character string. In this manner, if the target contextual character string associated with the to-be-associated character string by the server according to the semantic association relationship is in an integrity text including a plurality of sentences, the server takes the target contextual character string as the first contextual character string and takes a next sentence of the target contextual character string in the integrity text as the second contextual character string. The complete text may be understood as a text having a fixed expression structure, such as poetry, lines, joke segments, a second language, etc.
In addition to the above manner, the server may determine the following character string corresponding to the character string to be associated from the character string by analyzing the degree of dispersion of the conditional probability between the character string and the character string to be associated.
S203: and the server sets a cloud sending identifier for the first context character string.
After determining the first text string, the server may set a cloud identifier for the first text string. The cloud sending identification has the effect that the server can determine whether the terminal is to screen the first context character string provided with the cloud sending identification according to the cloud sending identification.
The embodiment of the application does not limit the way of setting the cloud sending identifier and the form of the cloud sending identifier for the first context string, as long as the above functions can be achieved.
It should be noted that if the server associates the target contextual character string with the to-be-associated character string according to the semantic association relationship, the target contextual character string does not include the contextual character string having the semantic association relationship. In this case, the server returns the target context string not carrying the cloud sending identifier to the terminal.
In one possible implementation, the cloud flag may be set by flags "1" and "0". For example, the character string to be associated is "light before bed", and the server obtains three following character strings according to the association of "light before bed", which are "suspected of being frost on the ground", "two pairs of shoes on the ground", and "i are guo german", respectively. The 'doubt frost on the ground' also comprises a following character string 'standing for the bright moon' with a semantic association relation. When the server returns the three context strings to the terminal, the specific form may be { doubtful frosting: 1}, { two pairs of ground shoes: 0}, { I is Guo de: 0, wherein the meaning of '1' is that the cloud sending identification is set, and the meaning of '0' is that the cloud sending identification is not set.
S204: and the server returns a first text string carrying the cloud sending identification to the terminal.
S205: and the terminal displays the first lower character string as a target candidate item.
When the terminal acquires the context character string including the first context character string returned by the server, the context character string can be displayed as a candidate item, so that a user can select the context character string according to the input requirement after the user is on a screen and wants to associate the context character string.
S206: and the terminal screens the first context character string.
If the first next character string can meet the input requirement of the user, the user can select the candidate item corresponding to the first next character string to enable the terminal to display the first next character string.
S207: and the server takes the first next character string as the character string to be associated, and associates the next character string with the character string to be associated according to the semantic association relation.
After the terminal screens the first text string, the server can determine that the terminal screens the first text string through the cloud identification in various ways.
In a possible implementation manner, when the terminal screens a first text string provided with the cloud sending identifier, the cloud sending identifier enables the terminal to automatically send cloud end association to the server aiming at the first text string, and the condition that the terminal autonomously sends the cloud end association does not need to be met.
In a possible implementation manner, when the server determines that the terminal screens the first text string provided with the cloud sending identifier according to the cloud sending identifier, the cloud sending identifier enables the server to spontaneously associate the first text string as the character string to be associated with the text string.
After the server determines that the terminal screens the first context character string, the server can continue associating the first context character string as a character string to be associated according to the semantic association relationship, namely, initiates cloud association for the character string to be associated (namely, the original first context character string).
The server may acquire the first descending character string determined in S202-S203 in various ways, which is not limited in this application.
In a possible implementation manner, after the server returns the first lower character string provided with the cloud sending identifier to the terminal, if the terminal determines that the first lower character string returned by the server is selected to be displayed on a screen, the terminal initiates cloud end association according to the cloud sending identifier arranged on the first lower character string, namely sends a cloud end association request carrying the first lower character string to the server, and the server can acquire the first lower character string according to the cloud end association request and take the first lower character string as a character string to be associated. This alternative may be seen at S2061 in fig. 2.
In a possible implementation manner, after the server returns the first next character string provided with the cloud sending identifier to the terminal, if the server can determine that the terminal has executed screen-up on the first next character string according to the cloud sending identifier, the server can obtain the first next character string from the local and use the first next character string as the character string to be associated.
In this step, the process of associating the character string to be associated by the server may be referred to as S202-S203, which is not described in detail herein.
For example, in a scene in which the character string to be associated acquired in S201 is "light before bed" and the first character string to be associated is "frost on the ground" is suspected. When the terminal screens the 'suspicion of frost on the ground', the server acquires a first text string 'suspicion of frost on the ground', associates the 'suspicion of frost on the ground' as a character string to be associated, and the obtained text character string can comprise 'looking up in the open moon', namely a second text character string determined in S202-S203.
S208: and the server returns the following character string to the terminal.
The server may send the context string obtained in association with S207 to the terminal, for example, the context string may include the second context string obtained in the foregoing manner and having a semantic association relationship with the first context string.
It should be noted that in S207, the server associates the to-be-associated character string with reference to S202 to S203, so that the first context character string may be further included in the context character string that is obtained by concatenating the to-be-associated characters in S207. For example, the character string to be associated is ' suspected of frosting ', the associated following character string includes ' first wish to be distinguished ' and ' first wish to be distinguished ' which includes the following character string ' lower wish to be distinguished and hometown ' having semantic association with the character string ', so that the ' first wish to be distinguished ' can be used as the first following character string and the cloud identification can be set for the first following character string.
In a possible implementation manner, the server and the terminal establish a data connection for transmitting the cloud association request and the character string in a short connection manner.
Because in the input method, be applied to the high in the clouds and associate mostly to be short connection, and through the mode of the high in the clouds association that this application embodiment provided, can be under short connection mode, through the better maintenance of the participation of server high in the clouds association of continuity.
Therefore, when the server acquires the character string to be associated, the server performs the following character string association conforming to the semantic association relation for the character string to be associated, that is, determines what the character string which the user wishes to continuously input next may be based on the character string to be associated. If the server determines that one contextual character string also comprises other contextual character strings having semantic association relation with the contextual character string in the associated contextual character strings, the server determines the contextual character string as a first contextual character string and sets the cloud identification for the first contextual character string. After the server returns the first context character string with the cloud identification to the terminal, if the terminal is determined to be on screen the first context character string according to the cloud identification, the server continuously associates the first context character string as a character string to be associated, and continuously returns the context character string obtained by association to the terminal, so that the server realizes the function of initiating cloud association through the cloud identification, the server can also participate in cloud association initiation, the context character string obtained by cloud association is provided for the user through continuous cloud association, input convenience is provided for the user, and the input fluency of the user is improved.
Fig. 3 is a device structure diagram of a server for cloud association according to an embodiment of the present application, where the server includes an obtaining unit 301, an associating unit 302, a setting unit 303, a returning unit 304, and a determining unit 305. Fig. 3 is an embodiment of an apparatus on a server side in the embodiment corresponding to fig. 2, where descriptions of each unit may refer to descriptions related to the server in the embodiment corresponding to fig. 2, and are not repeated here.
The acquiring unit 301 is configured to acquire a character string to be associated;
the association unit 302 is configured to associate a next character string with the character string to be associated according to a semantic association relationship;
if the associating unit 302 associates a first contextual character string having a semantic association relationship with the to-be-associated character string and the first contextual character string includes a second contextual character string having a semantic association relationship with the first contextual character string, the setting unit 303 is configured to set a cloud identifier for the first contextual character string;
the returning unit 304 is configured to return a first lower text string carrying the cloud sending identifier to the terminal;
the determining unit 305 is configured to determine whether the terminal performs screen loading on the first context string, and if the determining unit determines that the terminal performs screen loading on the first context string through the cloud sending identifier, trigger the associating unit 302;
the associating unit 302 is further configured to use the first next character string as the character string to be associated, and associate the next character string with the character string to be associated according to the semantic association relationship.
Optionally, the determining unit is further configured to determine that the terminal has performed screen loading on the first context string if the cloud association request including the first context string sent by the terminal according to the cloud sending identifier is obtained.
Optionally, the associating unit is further configured to, if a target context character string associated with the to-be-associated character string is in an integrity text including a plurality of sentences according to the semantic association relationship, use the target context character string as the first context character string, and use a next sentence of the target context character string in the integrity text as the second context character string.
Optionally, the obtaining unit is further configured to obtain the to-be-associated character string according to a cloud association request sent by a terminal.
Optionally, the returning unit is further configured to return the target context character string that does not carry the cloud sending identifier to the terminal if the target context character string associated with the to-be-associated character string by the associating unit according to the semantic association does not include a context character string having a semantic association.
Fig. 4 is a device structure diagram of a terminal for cloud association provided in an embodiment of the present application, where the terminal includes an obtaining unit 401 and a displaying unit 402. Fig. 4 is an embodiment of an apparatus at a terminal side in the embodiment corresponding to fig. 2, where descriptions of each unit may refer to descriptions related to the terminal in the embodiment corresponding to fig. 2, and are not repeated here.
The obtaining unit 401 is configured to obtain a first next character string returned by the server, where the first next character string carries a cloud sending identifier, and the first next character string is obtained by associating a to-be-associated character string with the server according to a semantic association relationship;
the display unit 402 is configured to display the first lower character string as a target candidate item;
the obtaining unit 401 is further configured to obtain a second contextual character string returned by the server if the target candidate is selected to be displayed on the screen, where the second contextual character string is a contextual character string having a semantic association relationship with the first contextual character string.
Optionally, the terminal further includes a sending unit, where the sending unit is configured to send, to the server, a cloud association request including the first context string according to the cloud identifier if the target candidate is selected to be displayed on a screen.
Optionally, the sending unit is further configured to send a cloud association request including the to-be-associated character string to a server.
Fig. 5 is a block diagram illustrating an apparatus 500 for cloud association according to an example embodiment. For example, the apparatus 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, the apparatus 500 may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and communication component 516.
The processing component 502 generally controls overall operation of the device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operation at the device 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 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 506 provides power to the various components of the device 500. The power components 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 500.
The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive 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 508 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 500 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 510 is configured to output and/or input audio signals. For example, audio component 510 includes a Microphone (MIC) configured to receive external audio signals when apparatus 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 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 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 may detect an open/closed state of the device 500, the relative positioning of the components, such as a display and keypad of the apparatus 500, the sensor assembly 514 may also detect a change in the position of the apparatus 500 or a component of the apparatus 500, the presence or absence of user contact with the apparatus 500, orientation or acceleration/deceleration of the apparatus 500, and a change in the temperature of the apparatus 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the apparatus 500 and other devices in a wired or wireless manner. The apparatus 500 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 516 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 516 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 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the processor 520 of the apparatus 500 to perform the above-described method is also provided. 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 having instructions therein which, when executed by a processor of a mobile terminal, enable the mobile terminal to perform a cloud association method, the method comprising:
acquiring a first next character string returned by a server, wherein the first next character string carries a cloud sending identifier, and the first next character string is obtained by the server associating the association character strings to be associated according to a semantic association relation;
displaying the first lower character string as a target candidate item;
and if the target candidate item is selected to be displayed on the screen, acquiring a second context character string returned by the server, wherein the second context character string is a context character string having a semantic association relationship with the first context character string.
Fig. 6 is a schematic structural diagram of a server in an embodiment of the present invention. The server 600 may vary significantly due to configuration or performance, and may include one or more Central Processing Units (CPUs) 622 (e.g., one or more processors) and memory 632, one or more storage media 630 (e.g., one or more mass storage devices) storing applications 642 or data 644. Memory 632 and storage medium 630 may be, among other things, transient or persistent storage. The program stored in the storage medium 630 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 622 may be configured to communicate with the storage medium 630 and execute a series of instruction operations in the storage medium 630 on the server 600.
The server 600 may also include one or more power supplies 626, one or more wired or wireless network interfaces 650, one or more input-output interfaces 658, one or more keyboards 656, and/or one or more operating systems 641, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of a server, enable the server to perform a cloud association method, the method comprising:
acquiring a character string to be associated;
associating the character strings to be associated with the next character strings according to the semantic association relation;
setting a cloud sending identifier for a first context character string if the first context character string having a semantic association relation with the character string to be associated is associated and the first context character string comprises a second context character string having a semantic association relation with the first context character string;
returning a first lower character string carrying the cloud sending identification to the terminal;
and if the terminal is determined to be on screen of the first context character string through the cloud-sending identification, taking the first context character string as the character string to be associated, and executing the step of associating the context character string to be associated according to the semantic association relation.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium may be at least one of the following media: various media that can store program codes, such as read-only memory (ROM), RAM, magnetic disk, or optical disk.
It should be noted that, in the present specification, all the embodiments are described in a progressive manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus and system embodiments, since they are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described embodiments of the apparatus and system are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only one specific embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (13)

1. A cloud association method, the method comprising:
the server acquires a character string to be associated;
the server associates the character strings to be associated according to the semantic association relation;
if the server associates a first context character string having a semantic association relationship with the character string to be associated and the first context character string comprises a second context character string having a semantic association relationship with the first context character string, the server sets a cloud sending identifier for the first context character string;
the server returns a first lower character string carrying the cloud sending identification to the terminal;
and if the server determines that the terminal performs screen loading on the first context character string through the cloud identification, the server takes the first context character string as the character string to be associated and executes the step of performing context character string association on the character string to be associated according to the semantic association relation.
2. The method of claim 1, wherein the server determining that the terminal is to screen up the first contextual string by the cloud identifier comprises:
if the server acquires a cloud association request which is sent by the terminal according to the cloud sending identification and comprises the first context character string, the server determines that the terminal carries out screen loading on the first context character string.
3. The method according to claim 1, wherein the server associates the character string to be associated with the character string according to the semantic association relationship, and the method comprises the following steps:
if the target context character string associated by the server to the character string to be associated is in an integrity text comprising a plurality of sentences according to the semantic association relationship, the server takes the target context character string as the first context character string and takes the next sentence of the target context character string in the integrity text as the second context character string.
4. The method according to any one of claims 1 to 3, wherein the server obtains the character string to be associated, including:
and the server acquires the character string to be associated according to a cloud association request sent by the terminal.
5. The method according to claim 1, wherein the server associates the character string to be associated with the character string according to the semantic association relationship, and the method comprises the following steps:
the server does not comprise the contextual character string with the semantic association relation for the target contextual character string associated with the character string to be associated according to the semantic association relation;
the method further comprises the following steps:
and the server returns the target context character string which does not carry the cloud sending identification to the terminal.
6. A cloud association method, the method comprising:
a terminal acquires a first lower character string returned by a server, wherein the first lower character string carries a cloud sending identifier, and the first lower character string is obtained by the server associating the character strings to be associated according to a semantic association relation;
the terminal displays the first lower character string as a target candidate item;
and if the target candidate item is selected to be displayed on a screen, the terminal acquires a second context character string returned by the server, wherein the second context character string is a context character string having a semantic association relationship with the first context character string.
7. The method of claim 6, wherein if the target candidate is selected on-screen, the method further comprises:
and the terminal sends a cloud association request comprising the first context character string to the server according to the cloud sending identification.
8. The method according to claim 6 or 7, wherein before the terminal acquires the first text string returned by the server, the method further comprises:
and the terminal sends a cloud association request comprising the character string to be associated to a server.
9. A server for cloud association, the server comprising an acquisition unit, an association unit, a setting unit, a return unit, and a determination unit:
the acquiring unit is used for acquiring a character string to be associated;
the association unit is used for associating the character strings to be associated with according to the semantic association relation;
if the association unit associates a first context character string having a semantic association relationship with the character string to be associated and the first context character string includes a second context character string having a semantic association relationship with the first context character string, the setting unit is configured to set a cloud sending identifier for the first context character string;
the return unit is used for returning a first lower character string carrying the cloud sending identifier to the terminal;
the determining unit is configured to determine whether the terminal performs screen loading on the first context string, and trigger the associating unit if the determining unit determines that the terminal performs screen loading on the first context string through the cloud sending identifier;
the association unit is further configured to use the first next character string as the character string to be associated, and associate the character string to be associated with the next character string according to the semantic association relationship.
10. A terminal for cloud association is characterized by comprising an acquisition unit and a display unit:
the acquiring unit is used for acquiring a first next character string returned by the server, wherein the first next character string carries a cloud sending identifier, and the first next character string is obtained by associating the association character string to be associated by the server according to the semantic association relationship;
the display unit is used for displaying the first lower character string as a target candidate item;
the obtaining unit is further configured to obtain a second contextual character string returned by the server if the target candidate item is selected to be displayed on the screen, where the second contextual character string is a contextual character string having a semantic association relationship with the first contextual character string.
11. A server for cloud association, the server comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and wherein the one or more programs configured to be executed by one or more processors comprise instructions for:
acquiring a character string to be associated;
associating the character strings to be associated with the next character strings according to the semantic association relation;
setting a cloud sending identifier for a first context character string if the first context character string having a semantic association relation with the character string to be associated is associated and the first context character string comprises a second context character string having a semantic association relation with the first context character string;
returning a first lower character string carrying the cloud sending identification to the terminal;
and if the terminal is determined to be on screen of the first context character string through the cloud-sending identification, taking the first context character string as the character string to be associated, and executing the step of associating the context character string to be associated according to the semantic association relation.
12. A terminal for cloud association, the terminal comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and wherein execution of the one or more programs by one or more processors comprises instructions for:
acquiring a first next character string returned by a server, wherein the first next character string carries a cloud sending identifier, and the first next character string is obtained by the server associating the association character strings to be associated according to a semantic association relation;
displaying the first lower character string as a target candidate item;
and if the target candidate item is selected to be displayed on the screen, acquiring a second context character string returned by the server, wherein the second context character string is a context character string having a semantic association relationship with the first context character string.
13. A machine-readable medium having stored thereon instructions, which when executed by one or more processors, cause an apparatus to perform the cloud association method as recited in one or more of claims 1-5, or cause an apparatus to perform the cloud association method as recited in one or more of claims 6-8.
CN201811399268.1A 2018-11-22 2018-11-22 Cloud association method and related device Active CN111208910B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811399268.1A CN111208910B (en) 2018-11-22 2018-11-22 Cloud association method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811399268.1A CN111208910B (en) 2018-11-22 2018-11-22 Cloud association method and related device

Publications (2)

Publication Number Publication Date
CN111208910A true CN111208910A (en) 2020-05-29
CN111208910B CN111208910B (en) 2023-11-03

Family

ID=70784033

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811399268.1A Active CN111208910B (en) 2018-11-22 2018-11-22 Cloud association method and related device

Country Status (1)

Country Link
CN (1) CN111208910B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115437509A (en) * 2021-06-01 2022-12-06 北京搜狗科技发展有限公司 Request processing method, device and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006031205A (en) * 2004-07-14 2006-02-02 Sony Corp Information processor and information processing method, program recording medium and program
CN102063450A (en) * 2010-04-16 2011-05-18 百度在线网络技术(北京)有限公司 Method and equipment for user to input words on basis of network
EP3109772A1 (en) * 2015-06-25 2016-12-28 Xiaomi Inc. Text input method and device
CN107608532A (en) * 2016-07-11 2018-01-19 北京搜狗科技发展有限公司 A kind of association-feeding method, device and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006031205A (en) * 2004-07-14 2006-02-02 Sony Corp Information processor and information processing method, program recording medium and program
CN102063450A (en) * 2010-04-16 2011-05-18 百度在线网络技术(北京)有限公司 Method and equipment for user to input words on basis of network
EP3109772A1 (en) * 2015-06-25 2016-12-28 Xiaomi Inc. Text input method and device
CN107608532A (en) * 2016-07-11 2018-01-19 北京搜狗科技发展有限公司 A kind of association-feeding method, device and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
万玛尖措;张有谊;: "藏文输入法联想功能的研究", 计算机产品与流通, no. 11 *
于古胜;张斌;刘德恒;: "中心计算机测控软件系统实时过程监测研究", 指挥控制与仿真, no. 03 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115437509A (en) * 2021-06-01 2022-12-06 北京搜狗科技发展有限公司 Request processing method, device and medium

Also Published As

Publication number Publication date
CN111208910B (en) 2023-11-03

Similar Documents

Publication Publication Date Title
CN105338409B (en) Network video preloading method and device
CN106897937B (en) Method and device for displaying social sharing information
CN109521918B (en) Information sharing method and device, electronic equipment and storage medium
CN107566892B (en) Video file processing method and device and computer readable storage medium
US11335348B2 (en) Input method, device, apparatus, and storage medium
CN110704647A (en) Content processing method and device
CN110648657B (en) Language model training method, language model building method and language model building device
CN112631435A (en) Input method, device, equipment and storage medium
US20160349947A1 (en) Method and device for sending message
CN109725736B (en) Candidate sorting method and device and electronic equipment
CN107943317B (en) Input method and device
CN111177521A (en) Method and device for determining query term classification model
CN111208910B (en) Cloud association method and related device
CN110213062B (en) Method and device for processing message
CN109799916B (en) Candidate item association method and device
CN107330016B (en) Method, apparatus and storage medium for setting user information
US20170185366A1 (en) Method and device for inputting information
CN112015281A (en) Cloud association method and related device
CN112732098B (en) Input method and related device
CN109917927B (en) Candidate item determination method and device
CN109120499B (en) Information processing method and device
CN110019706B (en) Question generation method and device
CN113535161A (en) User interface generation method and device
CN112198972A (en) Input method, device, equipment and storage medium
CN111273786A (en) Intelligent input method and device

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
GR01 Patent grant