A method for associative input and related device

Through the collaborative work of the terminal and the server, the coherence association model is used to identify and follow the set of strings in the continuity sentence on the screen, which solves the high input cost and multiple cloud association problems in the existing technology when entering the continuity sentence, and realizes More efficient input experience and system performance.

CN111831131BActive Publication Date: 2024-10-01BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910314695.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-04-18
Publication Date
2024-10-01
Estimated Expiration
2039-04-18

AI Technical Summary

Technical Problem

When entering a coherent sentence in the existing cloud association, the user needs to select candidates multiple times and initiate cloud association, resulting in high input cost and heavy system burden.

Method used

Through the collaborative work of the terminal and the server, the coherence association model is used to identify the set of subsequent strings of the target string, carry the coherence identifier, and display multiple sets of strings on the screen at once after the user selects them, reducing the number of cloud associations.

Benefits of technology

It reduces the user's input cost, reduces the number of cloud associations during the continuous statement process on the screen, and reduces the system burden.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111831131B_ABST
    Figure CN111831131B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses an associative input method. When the terminal initiates cloud association for a target string on the screen, if the target string belongs to a coherent sentence, and in the coherent sentence, there are multiple groups of strings after the target string, the terminal can obtain the first context string adjacent to the target string in the coherent sentence, and the carried coherence identifier. When the terminal displays the first context string, if the terminal obtains a target selection operation for the first context string, it is confirmed that the user has a requirement for a coherent screen, and the terminal puts the first context string and the set of context strings on the screen together. Therefore, when the user needs to put a coherent sentence on the screen, the terminal can effectively identify the user's requirement for a coherent screen, and can put multiple groups of strings on the screen at one time according to the user's selection operation, thereby reducing the user's input cost, reducing the number of cloud associations in the process of putting a coherent sentence on the screen, and reducing the system burden.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of input methods, and in particular to an associative input method and related devices. Background Art

[0002] Cloud association is a method provided by the input method in which the server associates the user's upper screen character string with the related context character string. Since the server's computing power and storage space are much greater than those of the terminal, the server can associate the context character string that the terminal may not be able to determine in a more complex way based on the user's input. Therefore, when the user uses the input method to input, these context character strings can be used to provide the user with more abundant candidate options, thereby facilitating the user's input.

[0003] Coherent sentences such as poems, lyrics, famous quotes, etc. are commonly input by users. Coherent sentences generally have at least three groups of character strings, each of which can be a short sentence or a word. Adjacent groups of character strings in a coherent sentence have coherent semantic expressions.

[0004] Cloud association can help users quickly display a coherent sentence on the screen. For example, when a user displays the first set of strings of a coherent sentence on the screen, cloud association can provide the user with candidate options for the second set of strings of the coherent sentence, and the user can directly select to display them on the screen. Then, cloud association is performed again to provide the user with candidate options for the third set of strings for the user to select to display on the screen.

[0005] However, the current method of using cloud association to assist users in putting a coherent sentence on the screen not only requires users to select candidate items multiple times to complete the coherent sentence on the screen, but also requires cloud association to be initiated again after each selection. For example, when a user needs to put on the screen a coherent sentence consisting of four groups of strings "The moon shines on my bed, I wonder if it is frost on the ground. I look up at the moon and lower my head and think of my hometown", the user needs to select candidate items at least three times to complete it. The user input cost is high and the number of times cloud association is initiated is large. Summary of the invention

[0006] In order to solve the above technical problems, the present application provides an associative input method and related devices, which reduce the user's input cost, reduce the number of cloud associations in the process of on-screen coherent sentences, and reduce the system burden.

[0007] The embodiments of the present application disclose the following technical solutions:

[0008] In a first aspect, an embodiment of the present application provides an associative input method, the method comprising:

[0009] The terminal initiates cloud association for a target string on the upper screen; the target string is a group of strings in a coherent sentence;

[0010] The terminal obtains a first context string adjacent to the target string in the coherent sentence; the first context string carries a coherence identifier, the coherence identifier is used to identify that the first context string has a context string set in the coherent sentence, the context string set at least including a second context string adjacent to the first context string in the coherent sentence;

[0011] If the terminal acquires a target selection operation for a candidate item corresponding to the first context character string, the terminal displays the first context character string and the context character string set on the screen.

[0012] Optionally, before the terminal displays the first context character string and the context character string set on the screen, the method further includes:

[0013] The terminal sends a continuous screen request for the first context string according to the target selection operation;

[0014] The terminal obtains the following character string set returned in response to the continuous on-screen request.

[0015] Optionally, the terminal obtains a first context character string adjacent to the target character string in the coherent sentence, including:

[0016] The terminal obtains a first context character string adjacent to the target character string in the coherent sentence, and the context character string set.

[0017] Optionally, the target selection operation is a first type operation, and if the terminal obtains a target selection operation for a candidate item corresponding to the first context string, the terminal displays the first context string and the context string set on the screen, including:

[0018] If the terminal obtains a first type of operation for the candidate item corresponding to the first context string, the terminal displays the first context string and the context string set on the screen;

[0019] If the terminal acquires a non-first type operation on the candidate item corresponding to the first context character string, the terminal displays the first context character string on the screen.

[0020] In a second aspect, an embodiment of the present application provides a terminal for associative input, the terminal comprising a sending unit, an acquiring unit and an upper screen unit:

[0021] The sending unit is used to initiate cloud association for a target character string on the upper screen; the target character string is a group of character strings in a coherent sentence;

[0022] The acquisition unit is used to acquire a first context string adjacent to the target string in the coherent sentence; the first context string carries a coherence identifier, and the coherence identifier is used to identify that the first context string has a context string set in the coherent sentence, and the context string set at least includes a second context string adjacent to the first context string in the coherent sentence;

[0023] If the target selection operation for the candidate item corresponding to the first context character string is obtained by the acquisition unit, the screen-putting unit is used to put the first context character string and the context character string set on the screen.

[0024] Optionally, the sending unit is further configured to send a continuous screen display request for the first context character string according to the target selection operation;

[0025] The acquisition unit is further configured to acquire the following character string set returned for the continuous on-screen request.

[0026] Optionally, the acquisition unit is further configured to acquire a first context character string adjacent to the target character string in the coherent sentence, and the context character string set.

[0027] Optionally, the target selection operation is a first type operation, and if the first type operation for the candidate item corresponding to the first context string is obtained by the acquisition unit, the screen display unit is further used to display the first context string and the context string set on the screen;

[0028] If a non-first type operation on the candidate item corresponding to the first context character string is acquired by the acquisition unit, the display unit is further configured to display the first context character string on the screen.

[0029] In a third aspect, an embodiment of the present application provides an associative input method, the method comprising:

[0030] The server obtains the cloud association initiated by the terminal for the target string;

[0031] The server determines, through a coherent association model, that the target string is a set of strings in a coherent sentence, and obtains a first context string adjacent to the target string in the coherent sentence and a set of context strings of the first context string in the coherent sentence, wherein the set of context strings at least includes a second context string adjacent to the first context string in the coherent sentence;

[0032] The server returns the first context string carrying a coherence identifier to the terminal, where the coherence identifier is used to identify that the first context string has a context string set in the coherence sentence.

[0033] Optionally, the method further includes:

[0034] The server obtains a continuous screen display request for the first context string sent by the terminal;

[0035] The server returns the following character string set to the terminal.

[0036] Optionally, the coherence association model is trained based on historical coherence sentences.

[0037] In a fourth aspect, an embodiment of the present application provides a server for associative input, the server comprising an acquisition unit, a determination unit, and a return unit:

[0038] The acquisition unit is used to acquire the cloud association initiated by the terminal for the target character string;

[0039] The determining unit is used to determine that the target string is a set of strings in a coherent sentence through a coherent association model, and obtain a first context string adjacent to the target string in the coherent sentence and a set of context strings of the first context string in the coherent sentence, wherein the set of context strings at least includes a second context string adjacent to the first context string in the coherent sentence;

[0040] The returning unit is configured to return the first context string carrying a coherence identifier to the terminal, where the coherence identifier is used to identify that the first context string has a context string set in the coherence sentence.

[0041] Optionally, the acquisition unit is further used to acquire a continuous screen display request for the first context character string sent by the terminal;

[0042] The returning unit is further configured to return the following character string set to the terminal.

[0043] Optionally, the coherence association model is trained based on historical coherence sentences.

[0044] In a fifth aspect, an embodiment of the present application provides a associative input system, the system comprising a terminal and a server:

[0045] The terminal is used to initiate cloud association for a target string on the screen; the target string is a set of strings in a coherent sentence; a first context string adjacent to the target string in the coherent sentence is obtained; the first context string carries a coherence identifier, the coherence identifier is used to identify that the first context string has a context string set in the coherent sentence, and the context string set at least includes a second context string adjacent to the first context string in the coherent sentence; if a target selection operation for a candidate item corresponding to the first context string is obtained, the first context string and the context string set are displayed on the screen;

[0046] The server is used to obtain the cloud association; determine that the target string is a group of strings in a coherent sentence through a coherent association model, and obtain the context string set; and return the first context string carrying a coherence identifier to the terminal.

[0047] In a sixth aspect, an embodiment of the present application provides a device for associative input, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations:

[0048] Initiate cloud association for a target character string on the upper screen; the target character string is a group of character strings in a coherent sentence;

[0049] Acquire a first context string adjacent to the target string in the coherent sentence; the first context string carries a coherence identifier, the coherence identifier is used to identify that the first context string has a context string set in the coherent sentence, the context string set at least including a second context string adjacent to the first context string in the coherent sentence;

[0050] If a target selection operation for a candidate item corresponding to the first context string is obtained, the first context string and the context string set are displayed on the screen; or

[0051] The one or more programs configured to be executed by one or more processors include instructions for performing the following operations:

[0052] Get the cloud association initiated by the terminal for the target string;

[0053] Determining the target string as a set of strings in a coherent sentence through a coherent association model, and obtaining a first context string adjacent to the target string in the coherent sentence and a set of context strings of the first context string in the coherent sentence, wherein the set of context strings at least includes a second context string adjacent to the first context string in the coherent sentence;

[0054] The first context string carrying a coherence identifier is returned to the terminal, where the coherence identifier is used to identify that the first context string has a context string set in the coherence sentence.

[0055] In a seventh aspect, an embodiment of the present application provides a machine-readable medium having instructions stored thereon, which, when executed by one or more processors, causes the device to execute the associative input method as in the first aspect, or causes the device to execute the associative input method as in the third aspect.

[0056] It can be seen from the above technical solution that when the terminal initiates cloud association for the target string on the upper screen, if the target string belongs to a coherent sentence, and in the coherent sentence, there are multiple groups of strings after the target string, then the first context string adjacent to the target string in the coherent sentence and the carried coherence identifier are obtained through the cloud association. Through the coherence identifier, the terminal can determine that the first context string has a set of context strings in the coherent sentence. When the terminal displays the first context string, if the terminal obtains the target selection operation for the first context string, it is confirmed that the user has a coherent screen requirement, and the terminal puts the first context string and the set of context strings on the screen together. Therefore, when the user needs to put a coherent sentence on the screen, the terminal can effectively identify the user's coherent screen requirement, and can put multiple groups of strings on the screen at one time according to the user's selection operation, reducing the user's input cost, and reducing the number of cloud associations in the process of putting the coherent sentence on the screen, reducing the system burden. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0058] Figure 1 A method flow chart of an associative input method provided by an embodiment of the present application;

[0059] Figure 2 A device structure diagram of a terminal for associative input provided in an embodiment of the present application;

[0060] Figure 3 A device structure diagram of a server for associative input provided in an embodiment of the present application;

[0061] Figure 4 A structural diagram of a device for associative input provided in an embodiment of the present application;

[0062] Figure 5 A structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0063] The embodiments of the present application are described below in conjunction with the accompanying drawings.

[0064] The terminal can assist the user in putting coherent sentences on the screen through cloud association. However, for a coherent sentence including at least three groups of character strings, the terminal not only needs to initiate multiple cloud associations, which brings a burden to the system, but also requires the user to perform multiple selection operations of candidate items, resulting in high user input cost.

[0065] To this end, an embodiment of the present application provides a method for displaying a coherent sentence on the screen, so that when the user displays a coherent sentence on the screen, especially when the coherent sentence on the screen includes a large number of groups of character strings, the number of times the terminal sends a message can be reduced, thereby reducing the user's input cost.

[0066] The method for putting a coherent sentence on the screen provided in the embodiment of the present application can be completed by the cooperation of a terminal and a server. The terminal mentioned here can be a device with character input capability, such as a function, a smart phone, a tablet, etc. The server can be a single server or a server cluster. The server is used to provide cloud association services for the terminal. The server is configured with a coherent association model, or the coherent association model can be called in other storage locations. Through the coherent association model, it can be identified whether the target string belongs to a group of strings in the coherent sentence, and whether the target string has a first context string and at least a second context string in the coherent sentence.

[0067] In the embodiment of the present application, a coherent sentence refers to a sentence including at least three groups of character strings. In a coherent sentence, adjacent character strings have coherent semantic expressions. Adjacent character strings may be separated by separators or in the same sentence.

[0068] In a coherent sentence, the context string of a string refers to the next set of strings of the string in the coherent sentence. For example, in the coherent sentence "The moon shines brightly before my bed, I wonder if it is frost on the ground. I look up at the moon and think of my hometown", the context string of the string "The moon shines brightly before my bed" is "I wonder if it is frost on the ground", and the context string of the string "I wonder if it is frost on the ground" is "I look up at the moon".

[0069] The target string may be a set of strings in a coherent sentence. In order to achieve the purpose of coherent display, in the embodiment of the present application, the target string has a first context string in the coherent sentence, and the first context string at least includes a second context string. For example, in the above example, the target string may be "the moonlight before the bed", the first context string is "suspected to be frost on the ground", and the second context string is the context string of the first context string, which is "raising my head to look at the bright moon".

[0070] The set of context strings may include one or more strings after the first context string in the coherent sentence, and the one or more strings include at least the second context string, and may further include the third, fourth, etc. context strings. In the coherent sentence of the embodiment of the present application, the i-th context string may be the context string of the i-1-th context string.

[0071] When the server determines through the coherence association model that the target string has a first context string in the coherence sentence, and in the coherence sentence, the first context string has a context string set, the first context string carrying the coherence identifier may be returned to the terminal.

[0072] When the terminal displays the candidate items corresponding to the first context string, if the terminal obtains the target selection operation for the first context string, it confirms that the user has the need for continuous screen display, and displays the first context string and the context string set on the screen together. Therefore, when the user needs to display a continuous sentence on the screen, the terminal can effectively identify the user's need for continuous screen display, and can display multiple groups of strings on the screen at one time according to the user's selection operation, thereby reducing the user's input cost, and reducing the number of cloud associations in the process of displaying continuous sentences on the screen, thereby reducing the system burden.

[0073] Next, the following will describe how the terminal and the server cooperate to realize the display of the coherent sentences in the embodiment of the present application in conjunction with the accompanying drawings. Figure 1 As shown, the method includes:

[0074] S101: The terminal initiates cloud association for the target character string on the screen.

[0075] The target string may be a string displayed on the screen by the user through the terminal. When the target string is displayed on the screen, the terminal may determine whether to initiate cloud association according to a preset cloud issuance strategy. For example, when the terminal recognizes that the target string is a set of strings in a coherent sentence, it may initiate a cloud association request to the server.

[0076] S102: The server determines that the target string is a set of strings in a coherent sentence through a coherent association model, and obtains a first context string adjacent to the target string in the coherent sentence and a set of context strings of the first context string in the coherent sentence.

[0077] When the server obtains the cloud association initiated by the terminal, it can make associations based on the target character string carried in the cloud association through the models that can be called, which may include a coherent association model.

[0078] When associating the target string through the coherence association model, a first context string of the target string in a coherent sentence and a set of context strings of the first context string in the coherent sentence can be determined, and the set of context strings at least includes a second context string adjacent to the first context string in the coherent sentence.

[0079] Whether the context string set includes one or more strings (including at least the second context string) can be set according to a specific application scenario or dynamically adjusted according to the user's input habits.

[0080] In a possible implementation, the coherence association model is trained based on historical coherence sentences. For example, by performing language model statistics on the corpus, various historical coherence sentences are determined, so that a coherence association model that can coherently associate poems, lyrics, jokes, etc. can be trained.

[0081] S103: The server returns the first context character string carrying a continuity identifier to the terminal.

[0082] The coherence identifier is used to identify that the first context string has a context string set in the coherence sentence. That is, when the terminal obtains the coherence identifier, it can be clear that in the coherence sentence, at least two sets of strings are included after the target string.

[0083] S104: If the terminal obtains a target selection operation for a candidate item corresponding to the first context character string, the terminal displays the first context character string and the context character string set on the screen.

[0084] When the terminal displays the first context string through the candidate items, it can determine which screen to implement by selecting the candidate items. If the target selection operation for the candidate items corresponding to the first context string is obtained, it can be determined that the user has an input requirement for continuous screen display, so the terminal can display the first context string and the set of context strings together, reducing the input cost of the user and reducing the number of times the terminal initiates cloud association.

[0085] In S104, in order to display the following string set on the screen, the terminal needs to clarify the content included in the following string set. In the embodiment of the present application, two possible implementation methods are provided.

[0086] The first method: Get the following string set according to the target selection operation

[0087] In this method, the terminal does not obtain the context string set through S103. Therefore, when the terminal displays the candidate item corresponding to the first context string, if the target selection operation for the candidate item is obtained, the terminal clarifies that the user's input requirement is a continuous on-screen display, and thus the terminal sends a continuous on-screen display request for the first context string to the server according to the target selection operation.

[0088] After obtaining the continuous screen-up request for the first context string, the server determines a context string set corresponding to the first context string, and returns the context string set to the terminal.

[0089] Therefore, after acquiring the context character string set, the terminal can perform an operation of putting the first context character string and the context character string set on the screen.

[0090] The second method: pre-obtain the following string set

[0091] In this method, the terminal obtains not only the first context string carrying the coherence identifier but also the context string set through S103. Therefore, when the terminal displays the candidate corresponding to the first context string, if a target selection operation for the candidate is obtained, the first context string and the context string set can be directly displayed on the screen, thereby improving the response efficiency.

[0092] Since the context string set includes at least the second context string, the terminal can display at least the first context string and the second context string on the screen at one time. In this case, the number of operations the user needs to perform in the coherent sentence on the screen is reduced by at least one, and the number of times the terminal initiates cloud associations is also reduced by at least one.

[0093] For example, if the coherent sentence is "The moonlight shines brightly in front of the bed, I suspect it is frost on the ground. I look up at the moon and lower my head to think of my hometown", the target string is "The moonlight shines brightly in front of the bed", the first context string is "I suspect it is frost on the ground", and the context string set only includes the second context string "I look up at the moon", then when obtaining the target selection operation, the terminal can display "I suspect it is frost on the ground" and "I look up at the moon" at one time. Even if the user needs to display the complete coherent sentence on the screen, after displaying the target string, he only needs to perform two more selection operations, which is one less than the original three selection operations. The terminal also only needs to initiate two cloud associations, which is one less than the original three cloud associations.

[0094] If the set of context strings includes the second context string "raising my head to look at the bright moon" and the context string of the second context string "looking down and thinking of my hometown", then when obtaining the target selection operation, the terminal can screen "suspected frost on the ground", "raising my head to look at the bright moon" and "looking down and thinking of my hometown" at one time, which is equivalent to screen all the strings of the coherent sentence after "the bright moonlight in front of the bed" at one time. Even if the user needs to screen the complete coherent sentence, after the target string is screened, he only needs to perform one more selection operation, which is two fewer than the original three selection operations, and the terminal only needs to initiate cloud association once, which is two fewer than the original three cloud association initiations.

[0095] In the embodiment of the present application, the target selection operation may be pre-set, for example, it may be a selection operation of a conventional selection candidate, or it may be a selection operation different from a conventional selection candidate, and may be set according to different application scenarios.

[0096] When the target selection operation is different from the selection operation of the conventional candidate selection, it is equivalent to providing a plurality of input options for the user. For the candidate corresponding to the first context character string, the user can choose which selection operation to adopt according to the current input requirement.

[0097] Therefore, for S104, in a possible implementation, the target selection operation may be a first type operation.

[0098] If the terminal obtains a first type of operation for the candidate item corresponding to the first context string, the terminal displays the first context string and the context string set on the screen;

[0099] If the terminal acquires a non-first type operation on the candidate item corresponding to the first context character string, the terminal displays the first context character string on the screen.

[0100] For example, the first context string can be displayed on the screen only by clicking the candidate item in a conventional manner (i.e., non-first type operation), or the first type operation can be performed on the candidate item, such as long pressing, to display the first context string and the set of context strings on the screen at one time.

[0101] According to the above embodiment, it can be seen that when the terminal initiates cloud association for the target string on the upper screen, if the target string belongs to a coherent sentence, and in the coherent sentence, there are multiple groups of strings after the target string, then the first context string adjacent to the target string in the coherent sentence and the carried coherence identifier are obtained through the cloud association. Through the coherence identifier, the terminal can determine that the first context string has a set of context strings in the coherent sentence. When the terminal displays the first context string, if the terminal obtains the target selection operation for the first context string, it is confirmed that the user has a coherent screen requirement, and the terminal puts the first context string and the set of context strings on the screen together. Therefore, when the user needs to put a coherent sentence on the screen, the terminal can effectively identify the user's coherent screen requirement, and can put multiple groups of strings on the screen at one time according to the user's selection operation, reducing the user's input cost, and reducing the number of cloud associations in the process of putting the coherent sentence on the screen, reducing the system burden.

[0102] based on Figure 1 Corresponding embodiment, this embodiment provides a terminal for associative input, see Figure 2 The terminal includes a sending unit 201, an acquiring unit 202 and a screen display unit 203:

[0103] The sending unit 201 is used to initiate cloud association for a target character string on the upper screen; the target character string is a group of character strings in a coherent sentence;

[0104] The acquisition unit 202 is used to acquire a first context string adjacent to the target string in the coherent sentence; the first context string carries a coherence identifier, and the coherence identifier is used to identify that the first context string has a context string set in the coherent sentence, and the context string set at least includes a second context string adjacent to the first context string in the coherent sentence;

[0105] If the target selection operation for the candidate item corresponding to the first context character string is obtained by the obtaining unit 202, the screen-putting unit 203 is used to put the first context character string and the context character string set on the screen.

[0106] Optionally, the sending unit is further configured to send a continuous screen display request for the first context character string according to the target selection operation;

[0107] The acquisition unit is further configured to acquire the following character string set returned for the continuous on-screen request.

[0108] Optionally, the acquisition unit is further configured to acquire a first context character string adjacent to the target character string in the coherent sentence, and the context character string set.

[0109] Optionally, the target selection operation is a first type operation, and if the first type operation for the candidate item corresponding to the first context string is obtained by the acquisition unit, the screen display unit is further used to display the first context string and the context string set on the screen;

[0110] If a non-first type operation on the candidate item corresponding to the first context character string is acquired by the acquisition unit, the display unit is further configured to display the first context character string on the screen.

[0111] For relevant descriptions of the operations performed by the above units in this embodiment, please refer to Figure 1 The corresponding parts of the corresponding embodiments will not be described in detail here.

[0112] based on Figure 1 Corresponding embodiment, this embodiment provides a server for associative input, see Figure 3 , the server includes an acquisition unit 301, a determination unit 302 and a return unit 303:

[0113] The acquisition unit 301 is used to acquire the cloud association initiated by the terminal for the target character string;

[0114] The determining unit 302 is configured to determine that the target string is a set of strings in a coherent sentence through a coherent association model, and obtain a first context string adjacent to the target string in the coherent sentence and a set of context strings of the first context string in the coherent sentence, wherein the set of context strings at least includes a second context string adjacent to the first context string in the coherent sentence;

[0115] The returning unit 303 is configured to return the first context string carrying a coherence identifier to the terminal, where the coherence identifier is used to identify that the first context string has a context string set in the coherence sentence.

[0116] Optionally, the acquisition unit is further used to acquire a continuous screen display request for the first context character string sent by the terminal;

[0117] The returning unit is further configured to return the following character string set to the terminal.

[0118] Optionally, the coherence association model is trained based on historical coherence sentences.

[0119] For relevant descriptions of the operations performed by the above units in this embodiment, please refer to Figure 1 The corresponding parts of the corresponding embodiments will not be described in detail here.

[0120] The embodiment of the present application also provides an associative input system, the system comprising a terminal and a server:

[0121] The terminal is used to initiate cloud association for a target string on the screen; the target string is a set of strings in a coherent sentence; a first context string adjacent to the target string in the coherent sentence is obtained; the first context string carries a coherence identifier, the coherence identifier is used to identify that the first context string has a context string set in the coherent sentence, and the context string set at least includes a second context string adjacent to the first context string in the coherent sentence; if a target selection operation for a candidate item corresponding to the first context string is obtained, the first context string and the context string set are displayed on the screen;

[0122] The server is used to obtain the cloud association; determine that the target string is a group of strings in a coherent sentence through a coherent association model, and obtain the context string set; and return the first context string carrying a coherence identifier to the terminal.

[0123] For the relevant description of the operations implemented by the above devices in this embodiment, please refer to Figure 1 The corresponding parts of the corresponding embodiments will not be described in detail here.

[0124] This embodiment also provides a device for associative input, which may be a terminal device. Figure 4 4 is a block diagram of a terminal device 400 according to an exemplary embodiment. For example, the terminal device 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0125] Reference Figure 4 The terminal device 400 may include one or more of the following components: a processing component 402 , a memory 404 , a power component 406 , a multimedia component 408 , an audio component 410 , an input / output (I / O) interface 412 , a sensor component 414 , and a communication component 416 .

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

[0127] The memory 404 is configured to store various types of data to support operations on the terminal device 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phone book data, messages, pictures, videos, etc. The memory 404 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0128] The power supply component 406 provides power to various components of the terminal device 400. The power supply component 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 400.

[0129] The multimedia component 408 includes a screen that provides an output interface between the terminal device 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front camera and / or a rear camera. When the terminal device 400 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0130] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC), and when the device 400 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 404 or sent via the communication component 416. In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.

[0131] I / O interface 412 provides an interface between processing component 402 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0132] The sensor assembly 414 includes one or more sensors for providing various aspects of status assessment for the terminal device 400. For example, the sensor assembly 414 can detect the open / closed state of the terminal device 400, the relative positioning of the components, such as the display and keypad of the terminal device 400, and the sensor assembly 414 can also detect the position change of the terminal device 400 or a component of the terminal device 400, the presence or absence of contact between the user and the terminal device 400, the orientation or acceleration / deceleration of the terminal device 400, and the temperature change of the terminal device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0133] The communication component 416 is configured to facilitate wired or wireless communication between the terminal device 400 and other devices. The terminal device 400 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0134] In an exemplary embodiment, the terminal device 400 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

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

[0136] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to perform an associative input method, the method comprising:

[0137] Initiate cloud association for a target character string on the upper screen; the target character string is a group of character strings in a coherent sentence;

[0138] Acquire a first context string adjacent to the target string in the coherent sentence; the first context string carries a coherence identifier, the coherence identifier is used to identify that the first context string has a context string set in the coherent sentence, the context string set at least including a second context string adjacent to the first context string in the coherent sentence;

[0139] If a target selection operation for a candidate item corresponding to the first context string is obtained, the first context string and the context string set are displayed on the screen; or

[0140] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a server, enables the server to perform a method of associative input, the method comprising:

[0141] Get the cloud association initiated by the terminal for the target string;

[0142] Determining the target string as a set of strings in a coherent sentence through a coherent association model, and obtaining a first context string adjacent to the target string in the coherent sentence and a set of context strings of the first context string in the coherent sentence, wherein the set of context strings at least includes a second context string adjacent to the first context string in the coherent sentence;

[0143] The first context string carrying a coherence identifier is returned to the terminal, where the coherence identifier is used to identify that the first context string has a context string set in the coherence sentence.

[0144] The device for sentence association provided in this embodiment may also be a server. Figure 5: is a schematic diagram of the structure of the server in an embodiment of the present invention. The server 500 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 522 (for example, one or more processors) and a memory 532, and one or more storage media 530 (for example, one or more mass storage devices) storing application programs 542 or data 544. Among them, the memory 532 and the storage medium 530 can be temporary storage or permanent storage. The program stored in the storage medium 530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 522 can be configured to communicate with the storage medium 530 to execute a series of instruction operations in the storage medium 530 on the server 500.

[0145] The server 500 may also include one or more power supplies 526, one or more wired or wireless network interfaces 550, one or more input and output interfaces 558, one or more keyboards 556, and / or one or more operating systems 541, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0146] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the above-mentioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the above-mentioned storage medium can be at least one of the following media: read-only memory (English: read-only memory, abbreviated: ROM), RAM, magnetic disk or optical disk, etc. Various media that can store program codes.

[0147] It should be noted that each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiments. The device and system embodiments described above are merely schematic, in which the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.

[0148] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for associative input, characterized in that: The method comprises: The terminal initiates cloud association for a target string on the upper screen; the target string is a group of strings in a coherent sentence; The terminal obtains a first context string adjacent to the target string in the coherent sentence; the first context string carries a coherence identifier, the coherence identifier is used to identify that the first context string has a context string set in the coherent sentence, the context string set at least including a second context string adjacent to the first context string in the coherent sentence; If the terminal obtains a target selection operation for a candidate item corresponding to the first context character string, the terminal displays the first context character string and the context character string set on the screen; The method in which the terminal obtains the following character string set includes: Before the terminal puts the first context string and the context string set on the screen, the terminal sends a continuous on-screen request for the first context string according to the target selection operation; the terminal obtains the context string set returned in response to the continuous on-screen request; or, When acquiring the first context character string adjacent to the target character string in the coherent sentence, the terminal acquires the context character string set.

2. The method according to claim 1, characterized in that The target selection operation is a first type of operation. If the terminal obtains a target selection operation for a candidate item corresponding to the first context string, the terminal displays the first context string and the context string set on the screen, including: If the terminal obtains a first type of operation for the candidate item corresponding to the first context string, the terminal displays the first context string and the context string set on the screen; If the terminal acquires a non-first type operation on the candidate item corresponding to the first context character string, the terminal displays the first context character string on the screen.

3. A terminal for associative input, characterized in that: The terminal includes a sending unit, an acquiring unit and a screen display unit: The sending unit is used to initiate cloud association for a target character string on the upper screen; the target character string is a group of character strings in a coherent sentence; The acquisition unit is used to acquire a first context string adjacent to the target string in the coherent sentence; the first context string carries a coherence identifier, and the coherence identifier is used to identify that the first context string has a context string set in the coherent sentence, and the context string set at least includes a second context string adjacent to the first context string in the coherent sentence; If the target selection operation for the candidate item corresponding to the first context character string is obtained by the acquisition unit, the screen-putting unit is used to put the first context character string and the context character string set on the screen; The sending unit is further used to send a continuous screen request for the first context string according to the target selection operation; the acquiring unit is further used to acquire the context string set returned for the continuous screen request; or, The acquiring unit is further configured to acquire the context character string set when acquiring a first context character string adjacent to the target character string in the coherent sentence.

4. The terminal according to claim 3, characterized in that: The target selection operation is a first type operation. If the first type operation for the candidate item corresponding to the first context string is obtained by the acquisition unit, the screen display unit is further used to display the first context string and the context string set on the screen; If a non-first type operation on the candidate item corresponding to the first context character string is acquired by the acquisition unit, the display unit is further configured to display the first context character string on the screen.

5. A method for associative input, characterized in that: The method comprises: The server obtains the cloud association initiated by the terminal for the target string; The server determines, through a coherent association model, that the target string is a set of strings in a coherent sentence, and obtains a first context string adjacent to the target string in the coherent sentence and a set of context strings of the first context string in the coherent sentence, wherein the set of context strings at least includes a second context string adjacent to the first context string in the coherent sentence; The server returns the first context string carrying a coherence identifier to the terminal, where the coherence identifier is used to identify that the first context string has a context string set in the coherence sentence; The server returns the following string set to the terminal in a manner that includes: The server obtains a continuous screen request for the first context string sent by the terminal; the server returns the context string set to the terminal; or, When returning the first context character string carrying the continuity identifier to the terminal, the server returns the context character string set to the terminal.

6. The method according to claim 5, characterized in that The coherence association model is obtained by training based on historical coherence sentences.

7. A server for associative input, characterized in that: The server includes an acquisition unit, a determination unit and a return unit: The acquisition unit is used to acquire the cloud association initiated by the terminal for the target character string; The determining unit is used to determine that the target string is a set of strings in a coherent sentence through a coherent association model, and obtain a first context string adjacent to the target string in the coherent sentence and a set of context strings of the first context string in the coherent sentence, wherein the set of context strings at least includes a second context string adjacent to the first context string in the coherent sentence; The returning unit is configured to return the first context string carrying a coherence identifier to the terminal, wherein the coherence identifier is used to identify that the first context string has a context string set in the coherence sentence; The acquisition unit is further used to acquire a continuous screen request for the first context string sent by the terminal; the return unit is further used to return the context string set to the terminal; or, The returning unit is further configured to return the set of context character strings to the terminal when returning the first context character string carrying the continuity identifier to the terminal.

8. The server according to claim 7, characterized in that: The coherence association model is obtained by training based on historical coherence sentences.

9. A associative input system, characterized in that: The system includes a terminal and a server: The terminal is used to initiate cloud association for a target string on the screen; the target string is a set of strings in a coherent sentence; a first context string adjacent to the target string in the coherent sentence is obtained; the first context string carries a coherence identifier, the coherence identifier is used to identify that the first context string has a context string set in the coherent sentence, and the context string set at least includes a second context string adjacent to the first context string in the coherent sentence; if a target selection operation for a candidate item corresponding to the first context string is obtained, the first context string and the context string set are displayed on the screen; The server is used to obtain the cloud association; Determining the target character string as a set of character strings in a coherent sentence through a coherent association model, and obtaining the set of context character strings; returning the first context character string carrying a coherence identifier to the terminal; The terminal is also used to send a coherent on-screen request for the first context string according to the target selection operation before putting the first context string and the context string set on the screen, and obtain the context string set returned for the coherent on-screen request; or, when obtaining the first context string adjacent to the target string in the coherent sentence, obtain the context string set.

10. A device for associative input, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations: Initiate cloud association for a target character string on the upper screen; the target character string is a group of character strings in a coherent sentence; Acquire a first context string adjacent to the target string in the coherent sentence; the first context string carries a coherence identifier, the coherence identifier is used to identify that the first context string has a context string set in the coherent sentence, the context string set at least including a second context string adjacent to the first context string in the coherent sentence; If a target selection operation for a candidate item corresponding to the first context character string is obtained, the first context character string and the context character string set are displayed on the screen; in, The method for acquiring the context string set includes: before the first context string and the context string set are displayed on the screen, sending a coherent display request for the first context string according to the target selection operation, and acquiring the context string set returned in response to the coherent display request; or acquiring the context string set when acquiring the first context string adjacent to the target string in the coherent sentence; or, The one or more programs configured to be executed by one or more processors include instructions for performing the following operations: Get the cloud association initiated by the terminal for the target string; Determining the target string as a set of strings in a coherent sentence through a coherent association model, and obtaining a first context string adjacent to the target string in the coherent sentence and a set of context strings of the first context string in the coherent sentence, wherein the set of context strings at least includes a second context string adjacent to the first context string in the coherent sentence; Returning the first context string carrying a coherence identifier to the terminal, where the coherence identifier is used to identify that the first context string has a context string set in the coherence sentence; The method of returning the context string set to the terminal includes: obtaining a continuous screen request for the first context string sent by the terminal, and returning the context string set to the terminal; or, when returning the first context string carrying a continuity identifier to the terminal, returning the context string set to the terminal.

11. A machine-readable medium having instructions stored thereon, which, when executed by one or more processors, causes a device to execute the associative input method as claimed in any one of claims 1 to 2, or causes the device to execute the associative input method as claimed in any one of claims 5 to 6.