Information display method, device and electronic equipment

By splicing and displaying the edit box content with the input method prediction candidates, the problem of users frequently switching focus is solved, and input efficiency is improved.

CN113589952BActive Publication Date: 2025-05-06BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202010368455.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-04-30
Publication Date
2025-05-06
Estimated Expiration
2040-04-30

AI Technical Summary

Technical Problem

When predicting candidate presentation, the existing input method needs to frequently switch editing boxes and candidate areas, which increases the user's attention and understanding cost and reduces input efficiency.

Method used

By splicing the contents in the edit box with candidates predicted by the input method, the splicing results are obtained and the splicing results are displayed in the same area, reducing the user's focus switching during the input process.

Benefits of technology

It reduces the user's attention and understanding cost during the input process, improves input efficiency, and eliminates the need for frequent switching of edit boxes and candidate areas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113589952B_ABST
    Figure CN113589952B_ABST
Patent Text Reader

Abstract

Embodiments of the present invention provide an information display method, device and electronic device, wherein the method includes: determining prediction candidates predicted by an input method; splicing the content in an edit box with the prediction candidates to obtain a splicing result; and displaying the splicing result; thereby, a user does not need to switch the focus back and forth between the edit box and the candidate area to connect the content in the edit box with the candidate to understand it, and to determine whether the candidate is what he needs; thereby reducing the user's attention cost and understanding cost during the input process, thereby improving the user's input efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of input methods, and in particular to an information display method, device and electronic equipment. Background Art

[0002] With the development of computer technology, electronic devices such as mobile phones and tablet computers are becoming more and more popular, bringing great convenience to people's life, study and work. These electronic devices are usually installed with input method applications (hereinafter referred to as input methods), so that users can use the input methods to input information.

[0003] During the user input process, the input method can predict various types of candidates that match the input sequence, such as name candidates, association candidates, etc., and display these candidates for the user to display on the screen, thereby improving the user input efficiency.

[0004] In most cases, the candidates predicted by the input method are associated with the content in the edit box; for example, the content in the edit box "tonight" is associated with the candidate "what to eat"; another example is "alone", which is predicted to be the candidate "take care of yourself", etc. However, after obtaining the predicted candidate, the input method only displays the candidate in the corresponding area; the user needs to switch the focus back and forth between the edit box and the candidate area, connect the content in the edit box and the candidate to understand, and determine whether the candidate is what he needs; this will undoubtedly increase the user's attention cost and understanding cost during the input process, and reduce the user's input efficiency. Summary of the invention

[0005] An embodiment of the present invention provides an information display method to improve input efficiency.

[0006] Correspondingly, the embodiment of the present invention further provides an information display device and an electronic device to ensure the implementation and application of the above method.

[0007] In order to solve the above problem, an embodiment of the present invention discloses an information display method, which specifically includes: determining prediction candidates for input method prediction; splicing the content in the edit box with the prediction candidates to obtain a splicing result; and displaying the splicing result.

[0008] Optionally, the method further includes: determining whether the length of the prediction candidate is less than the display limit length N, where N is a positive integer; if the length of the prediction candidate is less than the display limit length N, executing the step of splicing the content in the edit box with the prediction candidate to obtain a splicing result.

[0009] Optionally, the splicing of the content in the edit box with the prediction candidate to obtain a splicing result includes: determining a target part of the content in the edit box that constitutes a sentence with the prediction candidate; and splicing the prediction candidate after the target part to obtain a corresponding splicing result.

[0010] Optionally, displaying the splicing result includes: determining whether the length of the splicing result exceeds the display limit length N; if the length of the splicing result exceeds the display limit length N, displaying the last N texts in the splicing result. Optionally, displaying the last N texts in the splicing result includes: displaying the last N-1 texts in the splicing result in a default style, and fading out the first text in the splicing result.

[0011] Optionally, displaying the splicing result includes: determining whether the length of the splicing result exceeds the display limit length N; if the length of the splicing result exceeds the display limit length N, displaying the first part contained in the content in the edit box of the splicing result, the second part contained in the predicted candidate in the splicing result, and the omission mark.

[0012] Optionally, the method further comprises: receiving a browsing operation of a user on the splicing result, and displaying a portion of the splicing result that is not displayed.

[0013] Optionally, displaying the splicing result includes: displaying the content and the prediction candidates in the edit box of the splicing result in different styles.

[0014] Optionally, the method further includes: when detecting an input sequence input by a user, determining whether the input sequence matches a predicted candidate in a currently displayed splicing result; if the input sequence matches a predicted candidate in a currently displayed splicing result, dividing the predicted candidate in the currently displayed splicing result into a third part and a fourth part, wherein the third part is a segment consisting of the 1st to Mth characters in the predicted candidate, wherein M is the number of characters in the candidate word obtained by performing candidate conversion on the input sequence input in the current input cycle of the user, and M is a positive integer; and updating the style of the third part using the same style as the content in the edit box.

[0015] Optionally, the method further includes: receiving a selection operation performed by a user, the selection operation including an input sequence screening operation and / or a half-selection on-screen operation; determining a target word corresponding to the selection operation from the predicted candidates of the splicing results; and updating the style of the target word using the same style as the content in the edit box.

[0016] Optionally, displaying the splicing result includes: dynamically playing the splicing result.

[0017] The embodiment of the present invention also discloses an information display device, which specifically includes: a determination module, used to determine the prediction candidate of the input method prediction; a splicing module, used to splice the content in the edit box with the prediction candidate to obtain a splicing result; and a display module, used to display the splicing result.

[0018] Optionally, the device also includes: a judgment module, used to judge whether the length of the prediction candidate is less than the display limit length N, N is a positive integer; a splicing module, used to execute the step of splicing the content in the edit box with the prediction candidate to obtain a splicing result if the length of the prediction candidate is less than the display limit length N.

[0019] Optionally, the splicing module includes: a target part determination submodule, used to determine the target part of the content in the edit box that constitutes a sentence with the prediction candidate; and a candidate splicing submodule, used to splice the prediction candidate after the target part to obtain a corresponding splicing result.

[0020] Optionally, the display module includes: a first length judgment submodule, used to judge whether the length of the splicing result exceeds the display limit length N; a first splicing result display submodule, used to display the last N texts in the splicing result if the length of the splicing result exceeds the display limit length N.

[0021] Optionally, the display module includes: a concealment submodule, which is used to display the last N-1 texts in the splicing result in a default style, and to gradually conceal the first text in the splicing result.

[0022] Optionally, the display module includes: a second length judgment submodule, used to judge whether the length of the splicing result exceeds the display limit length N; a second splicing result display submodule, used to display the first part contained in the content in the edit box of the splicing result, the second part contained in the predicted candidate in the splicing result, and the omission mark if the length of the splicing result exceeds the display limit length N.

[0023] Optionally, the device further comprises: a first receiving module, configured to receive a browsing operation of a user on the splicing result, and display a portion of the splicing result that has not been displayed.

[0024] Optionally, the display module includes: a style display submodule, which is used to display the content and prediction candidates in the edit box in the splicing result in different styles.

[0025] Optionally, the device also includes: a matching module, which is used to determine whether the input sequence matches the predicted candidate in the currently displayed splicing result when detecting that the user inputs an input sequence; a division module, which is used to divide the predicted candidate in the currently displayed splicing result into a third part and a fourth part if the input sequence matches the predicted candidate in the currently displayed splicing result, wherein the third part is a segment consisting of the 1st to Mth characters in the predicted candidate, wherein M is the number of candidate words obtained by converting the input sequence input in the user's current input cycle into a candidate, and M is a positive integer; a first updating module, which is used to update the style of the third part using the same style as the content in the edit box.

[0026] Optionally, the device also includes: a second receiving module, used to receive a selection operation performed by a user, the selection operation including an input sequence screening operation and / or a half-selection on-screen operation; a target word determination module, used to determine the target word corresponding to the selection operation from the predicted candidates of the splicing results; a second updating module, used to update the style of the target word using the same style as the content in the edit box.

[0027] Optionally, the display module includes: a dynamic playback submodule, which is used to dynamically play the splicing result.

[0028] An embodiment of the present invention further discloses a readable storage medium. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the information display method as described in any one of the embodiments of the present invention.

[0029] An embodiment of the present invention also discloses an electronic device, 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: determining prediction candidates for input method prediction; splicing the content in an edit box with the prediction candidates to obtain a splicing result; and displaying the splicing result.

[0030] Optionally, it also includes instructions for performing the following operations: determining whether the length of the prediction candidate is less than the display limit length N, where N is a positive integer; if the length of the prediction candidate is less than the display limit length N, executing the step of splicing the content in the edit box with the prediction candidate to obtain a splicing result.

[0031] Optionally, the splicing of the content in the edit box with the prediction candidate to obtain a splicing result includes: determining a target part of the content in the edit box that constitutes a sentence with the prediction candidate; and splicing the prediction candidate after the target part to obtain a corresponding splicing result.

[0032] Optionally, displaying the splicing result includes: determining whether the length of the splicing result exceeds a display limit length N; if the length of the splicing result exceeds the display limit length N, displaying the last N texts in the splicing result.

[0033] Optionally, displaying the last N texts in the splicing result includes: displaying the last N-1 texts in the splicing result in a default style, and gradually fading the first text in the splicing result.

[0034] Optionally, displaying the splicing result includes: determining whether the length of the splicing result exceeds the display limit length N; if the length of the splicing result exceeds the display limit length N, displaying the first part contained in the content in the edit box of the splicing result, the second part contained in the predicted candidate in the splicing result, and the omission mark.

[0035] Optionally, it further includes instructions for performing the following operations: receiving a browsing operation of the user on the splicing result, and displaying a part of the splicing result that is not displayed.

[0036] Optionally, displaying the splicing result includes: displaying the content and the prediction candidates in the edit box of the splicing result in different styles.

[0037] Optionally, it also includes instructions for performing the following operations: when detecting an input sequence input by the user, determining whether the input sequence matches the predicted candidate in the currently displayed splicing result; if the input sequence matches the predicted candidate in the currently displayed splicing result, dividing the predicted candidate in the currently displayed splicing result into a third part and a fourth part, wherein the third part is a segment consisting of the 1st to Mth characters in the predicted candidate, wherein M is the number of candidate words obtained by converting the input sequence input in the user's current input cycle into a candidate, and M is a positive integer; and updating the style of the third part using the same style as the content in the edit box.

[0038] Optionally, it also includes instructions for performing the following operations: receiving a selection operation performed by a user, the selection operation including an input sequence screening operation and / or a half-selection on-screen operation; determining a target word corresponding to the selection operation from the predicted candidates of the splicing results; and updating the style of the target word using the same style as the content in the edit box.

[0039] Optionally, displaying the splicing result includes: dynamically playing the splicing result.

[0040] The embodiments of the present invention include the following advantages:

[0041] In an embodiment of the present invention, after obtaining the prediction candidates predicted by the input method, the content in the edit box can be spliced ​​with the prediction candidates to obtain a splicing result, and the splicing result can be displayed; thus, the user does not need to switch the focus back and forth between the edit box and the candidate area to connect the content in the edit box and the candidate to understand, and to determine whether the candidate is what he needs; the user's attention cost and understanding cost during the input process are reduced, thereby improving the user's input efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 is a flowchart of steps of an information display method embodiment of the present invention;

[0043] Figure 2 is a schematic diagram of a splicing result display interface according to an embodiment of the present invention;

[0044] Figure 3 is a flowchart of steps of an optional embodiment of an information display method of the present invention;

[0045] Figure 4 is a flowchart of a step of a method for displaying splicing results according to an embodiment of the present invention;

[0046] Figure 5 is a flowchart of another embodiment of a method for displaying splicing results of the present invention;

[0047] Figure 6a is a schematic diagram of distinguishing between the content in the edit box and the prediction candidates in the splicing result displayed in an embodiment of the present invention;

[0048] Figure 6b is a schematic diagram of dynamically adjusting predicted candidate styles in splicing results according to an embodiment of the present invention;

[0049] Figure 7 It is a structural block diagram of an embodiment of an information display device of the present invention;

[0050] Figure 8 It is a structural block diagram of an optional embodiment of an information display device of the present invention;

[0051] Fig. 9 A structural block diagram of an electronic device for information display according to an exemplary embodiment;

[0052] Fig.10 It is a structural schematic diagram of an electronic device for information display according to another exemplary embodiment of the present invention. DETAILED DESCRIPTION

[0053] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0054] Reference Figure 1 , shows a flowchart of an information display method embodiment of the present invention, which may specifically include the following steps:

[0055] Step 102: Determine prediction candidates for input method prediction.

[0056] Step 104: splice the content in the edit box with the prediction candidate to obtain a splicing result.

[0057] Step 106: display the stitching result.

[0058] In an embodiment of the present invention, during the user input process, the input method may obtain the user's input information; then, predictions may be made based on the user's input information to determine corresponding prediction candidates. For example, long sentence predictions may be made to determine corresponding long sentence prediction candidates; for example, name predictions may be made to determine name candidates; for example, expression predictions may be made to determine expression candidates; for example, local cloud replacement predictions may be made to determine local cloud replacement candidates; for example, cloud input may be made to determine cloud input candidates; for example, sentence associations may be made to determine sentence association candidates, etc., which are not limited in the embodiment of the present invention. Among them, the input information may include information related to the input, such as the content in the edit box, interaction information, encoded character strings, and input environment information, etc., which are not limited in the embodiment of the present invention.

[0059] In the embodiment of the present invention, the content in the edit box can be spliced ​​with the predicted candidates to obtain a splicing result, and then the splicing result can be displayed in the candidate display area. Therefore, the user does not need to switch the focus back and forth between the edit box and the candidate area to connect the content in the edit box with the candidate to understand and determine whether the candidate is what he needs; the user's attention cost and understanding cost during the input process are reduced, thereby improving the user's input efficiency.

[0060] The candidate display area may be set as required, such as the upper right area of ​​the input method, and the embodiment of the present invention does not limit this.

[0061] As an example of the present invention, please refer to Figure 2 , the content in the edit box is "a person", and after the user enters the pinyin sequence "zhao", it can be determined that the prediction candidate predicted by the input method is "take good care of yourself"; at this time, the content "a person" in the edit box can be spliced ​​with the prediction candidate "take good care of yourself" to obtain the splicing result "a person take good care of himself" and display it.

[0062] In summary, in an embodiment of the present invention, after obtaining the prediction candidates predicted by the input method, the content in the edit box can be spliced ​​with the prediction candidates to obtain a splicing result, and the splicing result can be displayed; thus, the user does not need to switch the focus back and forth between the edit box and the candidate area to connect the content in the edit box and the candidate to understand, and to determine whether the candidate is what he needs; the user's attention cost and understanding cost during the input process are reduced, thereby improving the user's input efficiency.

[0063] The embodiment of the present invention can be applied to various input mode scenarios, and the content in the edit box and the predicted candidate are spliced ​​and displayed. For example, it can be applied to stroke input scenarios, pinyin input scenarios, voice input scenarios, etc., and the embodiment of the present invention does not limit this.

[0064] The embodiment of the present invention can also be applied to multiple language scenarios, where the content in the edit box is spliced ​​with the predicted candidates and displayed. For example, it can be applied to Chinese input scenarios, English input scenarios, Korean input scenarios, etc., and the embodiment of the present invention does not limit this.

[0065] In an embodiment of the present invention, different candidate display areas of different terminal devices may support different lengths of text for display; different prediction candidates also have different lengths. When the length of the prediction candidate is greater than or equal to the length of the text supported for display by the terminal device, the content in the edit box and the prediction candidate may not be displayed together; this facilitates the user to better view the prediction candidate. When the length of the prediction candidate is less than the length of the text supported for display by the terminal device, the content in the edit box and the prediction candidate may be displayed together. Among them, the text length supported for display by the terminal device may refer to the number of texts supported for display, which may be referred to as the display limit length later; for the convenience of subsequent explanation, the display limit length may be represented by N; N is a positive integer. The length of the prediction candidate may also be the number of texts in the prediction candidate.

[0066] Reference Figure 3 , showing a step flow chart of an optional embodiment of an information display method of the present invention.

[0067] Step 302: Determine prediction candidates for input method prediction.

[0068] In an embodiment of the present invention, after determining the prediction candidate of the input method prediction, it can be determined whether there is content in the edit box. When there is content in the edit box, the content in the edit box can be spliced ​​with the prediction candidate, and then the splicing result can be displayed. When there is no content in the edit box, the prediction candidate can be directly displayed.

[0069] Step 304: Determine whether the length of the prediction candidate is less than the display limit length N.

[0070] In the embodiment of the present invention, when there is content in the edit box, the display limit length N corresponding to the terminal device can be obtained; then the length of the prediction candidate is compared with the display limit length N to determine whether the length of the prediction candidate is less than the display limit length N. Among them, when the length of the prediction candidate is less than the display limit length N, the content in the edit box can be spliced ​​with the prediction candidate to obtain a corresponding splicing result; refer to steps 306 to 308. When the length of the prediction candidate is greater than or equal to the display limit length N, step 312 can be executed.

[0071] Step 306: Determine the target part of the content in the edit box that constitutes the sentence with the predicted candidate.

[0072] Step 308: splice the prediction candidate after the target part to obtain a corresponding splicing result.

[0073] In an embodiment of the present invention, the content in the edit box may include one / multiple sentences and a part of a sentence, or may only include a part of a sentence. In an example of the present invention, a method for determining the target part of the content in the edit box that constitutes a sentence with the predicted candidate may be: when the content in the edit box only includes a part of a sentence, all the content in the edit box may be determined as the target part of the sentence with the predicted candidate. When the content in the edit box includes multiple sentences and a part of a sentence, the part after the last punctuation mark in the content in the edit box may be determined as the target part of the sentence with the predicted candidate.

[0074] In another example of the present invention, a method for determining a target part of the content in the edit box that constitutes a sentence with the predicted candidate may be: a pre-trained model may be used to predict the target part that can constitute a sentence with the predicted candidate from the end part of the content in the edit box.

[0075] Then the predicted candidate can be spliced ​​after the target part to obtain the corresponding splicing result.

[0076] Step 310: Display the splicing result.

[0077] Step 312: Display the prediction candidates.

[0078] In an embodiment of the present invention, when it is determined that there is no content in the edit box, the prediction candidate can be directly displayed without splicing. Also, when it is determined that the length of the prediction candidate is greater than or equal to the display limit length, the prediction candidate can also be directly displayed to facilitate the user to better view the prediction candidate.

[0079] In summary, in an embodiment of the present invention, it can be determined whether the length of the prediction candidate is less than the display limit length N. If the length of the prediction candidate is less than the display limit length N, the content in the edit box can be spliced ​​with the prediction candidate to obtain the splicing result and display the splicing result; if the length of the prediction candidate is greater than or equal to the display limit length, the prediction candidate can be directly displayed to facilitate the user to better view the prediction candidate.

[0080] Secondly, in an embodiment of the present invention, during the splicing process, the target part of the content in the edit box that forms a sentence with the prediction candidate can be first determined, and then the prediction candidate can be spliced ​​after the target part to obtain the corresponding splicing result; and then, when the content in the edit box is long, the part that can form a sentence with the prediction candidate is selected and spliced ​​with the prediction candidate, thereby reducing the length of the splicing result and facilitating the user to view the splicing result more intuitively.

[0081] In one embodiment of the present invention, the splicing result may be longer than the display limit length. Therefore, when the splicing result is longer than the display limit length, the display of the prediction candidates can be prioritized to facilitate users to view the prediction candidates.

[0082] Reference Figure 4 , showing a step flow chart of an embodiment of a splicing result display method of the present invention.

[0083] Step 402: Determine whether the length of the splicing result exceeds the display limit length N.

[0084] In the embodiment of the present invention, after the content in the edit box is spliced ​​with the predicted candidate to obtain the spliced ​​result, it can be determined whether the length of the spliced ​​result exceeds the display limit length N. If the length of the spliced ​​result exceeds the display limit length N, step 404 can be executed; if the length of the spliced ​​result does not exceed the display limit length N, step 408 can be executed.

[0085] Step 404: display the last N texts in the splicing result.

[0086] In the embodiment of the present invention, when the length of the splicing result exceeds the display limit length N, the last N texts in the splicing result can be displayed, and then the prediction candidates in the splicing result are preferentially displayed, so that the user can view the prediction candidates easily.

[0087] One way to display the last N texts in the splicing result may be to display the last N-1 texts in the splicing result in a default style, and to gradually fade out the first text in the splicing result, so as to remind the user that the displayed information is incomplete. The default style may be automatically set by the input method, or may be customized by the user, and the present invention does not limit this.

[0088] Step 406: receiving a browsing operation of the user on the splicing result, and displaying a part of the splicing result that is not displayed.

[0089] In an embodiment of the present invention, after displaying the last N texts in the splicing result, the user can be supported to view the undisplayed part. The user can view the undisplayed part of the splicing result by performing a browsing operation. After receiving the browsing operation of the user for the splicing result, the input method can display the undisplayed part of the splicing result. The browsing operation can be a left-right sliding operation, which is not limited in the embodiment of the present invention.

[0090] Step 408: display all texts in the splicing result.

[0091] In the embodiment of the present invention, when the length of the splicing result does not exceed the display limit length N, all texts in the splicing result may be displayed.

[0092] In summary, in the embodiment of the present invention, it can be determined whether the length of the splicing result exceeds the display limit length N. If the length of the splicing result exceeds the display limit length N, the last N texts in the splicing result are displayed; thereby ensuring that the prediction candidates are displayed first, so that the user can view the prediction candidates.

[0093] In one embodiment of the present invention, when the splicing result is longer than the display limit, part of the information in the content in the edit box of the splicing result and part of the information in the predicted candidates of the splicing result can also be displayed. Thus, even if the splicing result is long, it can ensure that the user can view the content and candidates that have been on the screen in the same area.

[0094] Reference Figure 5 , showing a step flow chart of another embodiment of a splicing result display method of the present invention.

[0095] Step 502: Determine whether the length of the splicing result exceeds the display limit length N.

[0096] In the embodiment of the present invention, after the content in the edit box is spliced ​​with the predicted candidate to obtain the spliced ​​result, it can be determined whether the length of the spliced ​​result exceeds the display limit length N. If the length of the spliced ​​result exceeds the display limit length N, step 504 can be executed; if the length of the spliced ​​result does not exceed the display limit length N, step 508 can be executed.

[0097] Step 504: display the first part of the content in the edit box in the splicing result, the second part of the prediction candidate in the splicing result, and the omission mark.

[0098] In an embodiment of the present invention, when the length of the splicing result exceeds the display limit length N, the first part can be selected from the content in the edit box of the splicing result; and the second part can be selected from the predicted candidates of the splicing result. In an example of the present invention, the first part and the second part can be two consecutive parts of the splicing result, for example, the first part can be the last X texts in the splicing result, and the second part can be the first Y texts in the splicing result. Among them, X and Y are positive integers, the sum of X and Y can be less than or equal to N, and the size of X and Y can be set according to requirements, and the embodiment of the present invention does not limit this.

[0099] Then, the first part, the second part and the omission mark can be displayed to remind the user that the displayed information is incomplete. The omission mark can be set as required, such as an ellipsis, etc., and the present invention is not limited to this.

[0100] Step 506: receiving a browsing operation of the user on the splicing result, and displaying a part of the splicing result that is not displayed.

[0101] This step 506 is similar to the above step 406 and will not be described again.

[0102] Step 508: Display all texts in the splicing result.

[0103] In summary, in the embodiment of the present invention, it can be determined whether the length of the splicing result exceeds the display limit length N. If the length of the splicing result exceeds the display limit length N, the first part of the content in the edit box in the splicing result, the second part of the predicted candidates in the splicing result, and the omission mark are displayed; thus, even if the splicing result is long, it can be ensured that the user can view the content and candidates that have been on the screen in the same area.

[0104] Of course, if the length of the prediction candidate is greater than the display limit length N, the first N texts in the prediction candidate can be displayed. In one example of the present invention, a method of displaying the first N texts in the prediction candidate can be to display the first N-1 texts in the prediction candidate according to the default display style, and to gradually fade out the Nth text in the prediction candidate. And a user's browsing operation on the prediction candidate can be received, and the undisplayed part of the prediction candidate can be displayed.

[0105] In one embodiment of the present invention, in order to facilitate the user to distinguish which are the contents in the edit box and which are the prediction candidates in the splicing result, the contents in the edit box and the prediction candidates can be displayed separately. Correspondingly, a way to display the splicing result can be: using different styles to display the contents in the edit box and the prediction candidates in the splicing result. For example, different colors can be used to display the contents in the edit box and the prediction candidates in the splicing result. Figure 6a As shown in the figure, "a person" is the content in the edit box, and the corresponding color is color 1; "take care of yourself" is the prediction candidate, and the corresponding color is color 2. For another example, different fonts can be used to display the content and prediction candidates in the edit box in the splicing result, etc.; the embodiment of the present invention does not limit the different styles used to display the content and prediction candidates in the edit box in the splicing result.

[0106] In one embodiment of the present invention, the styles of the predicted candidates in the splicing result can be dynamically adjusted during the continuous input of the user. One way to dynamically adjust the styles of the predicted candidates in the splicing result can be: adjusting based on the input sequence input by the user.

[0107] Among them, when detecting that the user inputs an input sequence, determine whether the input sequence matches the predicted candidate in the currently displayed splicing result; if the input sequence matches the predicted candidate in the currently displayed splicing result, divide the predicted candidate in the currently displayed splicing result into a third part and a fourth part, wherein the third part is a segment consisting of the 1st to the Mth characters in the predicted candidate, wherein M is the number of candidate words obtained by converting the input sequence input by the user in the current input cycle, and M is a positive integer; the style of the third part is updated in the same style as the content in the edit box. Among them, the input duration between two screen appearances can be called an input cycle. For example, in Figure 6a Based on the above, if it is detected that the user continues to input the input sequence "gu", "care" in the predicted candidate can be used as the third part, and "good yourself" can be used as the fourth part; then the third part is updated in the same style as the content in the edit box, such as Figure 6b As shown, the color of "Care" is updated from color 2 to color 1.

[0108] In an example of the present invention, another way to dynamically adjust the styles of the predicted candidates in the splicing result may be: adjusting based on the user's selection operation, wherein the selection operation includes an input sequence screening operation and / or a half-selection on-screen operation.

[0109] The method further comprises:

[0110] Receive the selection operation performed by the user;

[0111] Determine the target word corresponding to the selection operation from the predicted candidates of the splicing result;

[0112] Update the style of the target word using the same style as the content in the edit box.

[0113] For example, taking the user's input of "Where are you? Miss you." as an example, the user has entered "Where are you?" on the screen and then entered the pinyin string "xia". At this time, if the predicted candidate is "Miss you.", the displayed splicing result is "Where are you? Miss you.". Among them, assume that the color corresponding to "Where are you?" is Color 1, and the color corresponding to "Miss you." is Color 2. When the input method keyboard is in nine-key input, multiple pinyin strings matching the "xia" prefix, such as "xia", "xian", and "xiang", can be displayed on the left. If the user presses the key corresponding to "xiang", the input sequence screening operation performed by the user can be received. At this time, the "xiang" in the predicted candidate of the splicing result can be determined as the target word; then the color of "xiang" is changed from Color 2 to Color 1.

[0114] Another example, taking the user's input of "Where to eat tonight" as an example. The user has entered "Today" on the screen. Then the pinyin string "wanshangqu" is entered. At this time, if the predicted candidate is "Where to eat tonight", the displayed splicing result is "Where to eat tonight". Among them, assume that the color corresponding to "Today" is Color 1, and the color corresponding to "Where to eat" is Color 2. However, when the local candidate has "tonight" but no "tonight go", the user can perform a semi-selection operation to enter "tonight" on the screen, and the display area of the input sequence changes from "wanshangqu" to "tonight qu". At this time, the "tonight" in the predicted candidate of the splicing result can be determined as the target word; then the color of "tonight" is changed from Color 2 to Color 1.

[0115] In one embodiment of the present invention, a way to display the splicing result can be: dynamically play the splicing result. In one example of the present invention, it can be scrolled from the right side to the left side of the candidate display area at a certain rate to achieve dynamic playback of the predicted candidates. Among them, it can be stopped from dynamically playing the splicing result after playing for a certain duration or a certain number of times. In addition, it can also interrupt the dynamic playback of the splicing result when the condition for interrupting the dynamic playback is met; among them, the interrupt playback conditions can include various ones, such as: no user input sequence is detected and the user's operation of entering the screen is detected; or a user input sequence is detected and the input sequence does not match the currently displayed predicted candidate; or punctuation, numbers, expressions, and dialects are detected, etc. The embodiments of the present invention do not limit this.

[0116] In an embodiment of the present invention, the input method may include a client and a server, wherein the steps of the above embodiment may be performed by the client, or the client and the server may be combined to perform the steps of the above embodiment, which is not limited in the embodiment of the present invention.

[0117] Among them, when the steps of the above embodiment are performed by the client and the server in combination, the server can perform the steps of determining the prediction candidate for input method prediction; judging whether the length of the prediction candidate is less than the display limit length N; and splicing the content in the edit box with the prediction candidate to obtain the splicing result; then returning the splicing result or the prediction candidate to the client, and the client performs other steps. It can also be that the server determines the prediction candidate for input method prediction and returns the prediction candidate to the client; and the client performs other steps. Of course, the server can also perform the steps of determining the prediction candidate for input method prediction; judging whether the length of the prediction candidate is less than the display limit length N; and when the length of the prediction candidate is less than the display limit length N, determining the target part of the content in the edit box that constitutes a sentence with the prediction candidate. When the server determines that the length of the prediction candidate is less than the display limit length N, the server can return the prediction result and the target part; when it determines that the length of the prediction candidate is greater than or equal to the display limit length N, the prediction result can be returned, and the client performs other steps.

[0118] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0119] Reference Figure 7 , shows a structural block diagram of an information display device embodiment of the present invention, which may specifically include the following modules:

[0120] A determination module 701, used to determine prediction candidates for input method prediction;

[0121] A splicing module 702, used to splice the content in the edit box with the prediction candidate to obtain a splicing result;

[0122] The display module 703 is used to display the splicing result.

[0123] Reference Figure 8, showing a structural block diagram of an optional embodiment of an information display device of the present invention.

[0124] In an optional embodiment of the present invention, the device further comprises:

[0125] A judging module 708, configured to judge whether the length of the prediction candidate is less than a display limit length N, where N is a positive integer;

[0126] The splicing module 702 is used to execute the step of splicing the content in the edit box with the prediction candidate to obtain a splicing result if the length of the prediction candidate is less than the display limit length N.

[0127] In one embodiment of the present invention, the splicing module 704 includes:

[0128] A target part determination submodule 7042, for determining a target part of the content in the edit box that is associated with the predicted candidate sentence;

[0129] The candidate splicing submodule 7044 is used to splice the predicted candidate after the target part to obtain a corresponding splicing result.

[0130] In one embodiment of the present invention, the display module 706 includes:

[0131] The first length judgment submodule 7062 is used to judge whether the length of the splicing result exceeds the display limit length N;

[0132] The first splicing result display submodule 7064 is used to display the last N texts in the splicing result if the length of the splicing result exceeds the display limit length N.

[0133] In one embodiment of the present invention, the display module 706 includes:

[0134] The concealment submodule 7066 is used to display the last N-1 texts in the splicing result in a default style, and to gradually conceal the first text in the splicing result.

[0135] In one embodiment of the present invention, the display module 706 includes:

[0136] The second length judgment submodule 7068 is used to judge whether the length of the splicing result exceeds the display limit length N;

[0137] The second splicing result display submodule 70610 is used to display the first part of the content in the edit box of the splicing result, the second part of the prediction candidate in the splicing result, and the omission mark if the length of the splicing result exceeds the display limit length N.

[0138] In one embodiment of the present invention, the device further comprises:

[0139] The first receiving module 7010 is used to receive a browsing operation of the user on the splicing result, and display a part of the splicing result that has not been displayed.

[0140] In one embodiment of the present invention, the display module 706 includes:

[0141] The style display submodule 70612 is used to display the content and prediction candidates in the edit box of the splicing result in different styles.

[0142] In one embodiment of the present invention, the device further comprises:

[0143] A matching module 7012, configured to determine whether the input sequence matches a prediction candidate in the currently displayed splicing result when detecting that the user inputs an input sequence;

[0144] A division module 7014 is used for dividing the prediction candidates in the currently displayed splicing result into a third part and a fourth part if the input sequence matches the prediction candidates in the currently displayed splicing result, wherein the third part is a segment consisting of the 1st to the Mth characters in the prediction candidates, wherein M is the number of candidate words obtained by performing candidate conversion on the input sequence input by the user in the current input cycle, and M is a positive integer;

[0145] The first updating module 7016 is used to update the style of the third part using the same style as the content in the edit box.

[0146] In one embodiment of the present invention, the device further comprises:

[0147] The second receiving module 7018 is used to receive a selection operation performed by a user, wherein the selection operation includes an input sequence screening operation and / or a half-selection operation;

[0148] A target word determination module 7020, used to determine the target word corresponding to the selection operation from the predicted candidates of the splicing result;

[0149] The second updating module 7022 is used to update the style of the target word using the same style as the content in the editing box.

[0150] In one embodiment of the present invention, the display module 706 includes:

[0151] The dynamic playing submodule 70614 is used to dynamically play the splicing result.

[0152] In summary, in an embodiment of the present invention, after obtaining the prediction candidates predicted by the input method, the content in the edit box can be spliced ​​with the prediction candidates to obtain a splicing result, and the splicing result can be displayed; thus, the user does not need to switch the focus back and forth between the edit box and the candidate area to connect the content in the edit box and the candidate to understand, and to determine whether the candidate is what he needs; the user's attention cost and understanding cost during the input process are reduced, thereby improving the user's input efficiency.

[0153] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0154] Fig. 9 1 is a block diagram of an electronic device 900 for information display according to an exemplary embodiment. For example, the electronic device 900 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.

[0155] Reference Fig. 9 , the electronic device 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 914 , and a communication component 916 .

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

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

[0158] The power component 906 provides power to the various components of the electronic device 900. The power component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 900.

[0159] The multimedia component 908 includes a screen that provides an output interface between the electronic device 900 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 908 includes a front camera and / or a rear camera. When the electronic device 900 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 rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

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

[0161] I / O interface 912 provides an interface between processing component 902 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.

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

[0163] The communication component 916 is configured to facilitate wired or wireless communication between the electronic device 900 and other devices. The electronic device 900 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 914 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 914 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.

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

[0165] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the instructions can be executed by a processor 920 of an electronic device 900 to perform 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.

[0166] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute an information display method, the method comprising: determining a prediction candidate for input method prediction; splicing the content in an edit box with the prediction candidate to obtain a splicing result; and displaying the splicing result.

[0167] Optionally, the method further includes: determining whether the length of the prediction candidate is less than the display limit length N, where N is a positive integer; if the length of the prediction candidate is less than the display limit length N, executing the step of splicing the content in the edit box with the prediction candidate to obtain a splicing result.

[0168] Optionally, the splicing of the content in the edit box with the prediction candidate to obtain a splicing result includes: determining a target part of the content in the edit box that constitutes a sentence with the prediction candidate; and splicing the prediction candidate after the target part to obtain a corresponding splicing result.

[0169] Optionally, displaying the splicing result includes: determining whether the length of the splicing result exceeds the display limit length N; if the length of the splicing result exceeds the display limit length N, displaying the last N texts in the splicing result. Optionally, displaying the last N texts in the splicing result includes: displaying the last N-1 texts in the splicing result in a default style, and fading out the first text in the splicing result.

[0170] Optionally, displaying the splicing result includes: determining whether the length of the splicing result exceeds the display limit length N; if the length of the splicing result exceeds the display limit length N, displaying the first part contained in the content in the edit box of the splicing result, the second part contained in the predicted candidate in the splicing result, and the omission mark.

[0171] Optionally, the method further comprises: receiving a browsing operation of the user on the splicing result, and displaying a portion of the splicing result that is not displayed.

[0172] Optionally, displaying the splicing result includes: displaying the content and the prediction candidates in the edit box of the splicing result in different styles.

[0173] Optionally, the method further includes: when detecting an input sequence input by a user, determining whether the input sequence matches a predicted candidate in a currently displayed splicing result; if the input sequence matches a predicted candidate in a currently displayed splicing result, dividing the predicted candidate in the currently displayed splicing result into a third part and a fourth part, wherein the third part is a segment consisting of the 1st to Mth characters in the predicted candidate, wherein M is the number of characters in the candidate word obtained by performing candidate conversion on the input sequence input in the current input cycle of the user, and M is a positive integer; and updating the style of the third part using the same style as the content in the edit box.

[0174] Optionally, the method further includes: receiving a selection operation performed by a user, the selection operation including an input sequence screening operation and / or a half-selection on-screen operation; determining a target word corresponding to the selection operation from the predicted candidates of the splicing results; and updating the style of the target word using the same style as the content in the edit box.

[0175] Optionally, displaying the splicing result includes: dynamically playing the splicing result.

[0176] Fig.10 1 is a schematic diagram of the structure of an electronic device 1000 for information display according to another exemplary embodiment of the present invention. The electronic device 1000 may be a server, which may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1022 (for example, one or more processors) and a memory 1032, and one or more storage media 1030 (for example, one or more mass storage devices) storing application programs 1042 or data 1044. Among them, the memory 1032 and the storage medium 1030 may be temporary storage or permanent storage. The program stored in the storage medium 1030 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processor 1022 may be configured to communicate with the storage medium 1030 and execute a series of instruction operations in the storage medium 1030 on the server.

[0177] The server may also include one or more power supplies 1026, one or more wired or wireless network interfaces 1050, one or more input and output interfaces 1058, one or more keyboards 1056, and / or one or more operating systems 1041, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.

[0178] An electronic device includes 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. The one or more programs include instructions for performing the following operations: determining prediction candidates for input method prediction; splicing the content in an edit box with the prediction candidates to obtain a splicing result; and displaying the splicing result.

[0179] Optionally, it also includes instructions for performing the following operations: determining whether the length of the prediction candidate is less than the display limit length N, where N is a positive integer; if the length of the prediction candidate is less than the display limit length N, executing the step of splicing the content in the edit box with the prediction candidate to obtain a splicing result.

[0180] Optionally, the splicing of the content in the edit box with the prediction candidate to obtain a splicing result includes: determining a target part of the content in the edit box that constitutes a sentence with the prediction candidate; and splicing the prediction candidate after the target part to obtain a corresponding splicing result.

[0181] Optionally, displaying the splicing result includes: determining whether the length of the splicing result exceeds a display limit length N; if the length of the splicing result exceeds the display limit length N, displaying the last N texts in the splicing result.

[0182] Optionally, displaying the last N texts in the splicing result includes: displaying the last N-1 texts in the splicing result in a default style, and gradually fading the first text in the splicing result.

[0183] Optionally, displaying the splicing result includes: determining whether the length of the splicing result exceeds the display limit length N; if the length of the splicing result exceeds the display limit length N, displaying the first part contained in the content in the edit box of the splicing result, the second part contained in the predicted candidate in the splicing result, and the omission mark.

[0184] Optionally, it further includes instructions for performing the following operations: receiving a browsing operation of the user on the splicing result, and displaying a part of the splicing result that is not displayed.

[0185] Optionally, displaying the splicing result includes: displaying the content and the prediction candidates in the edit box of the splicing result in different styles.

[0186] Optionally, it also includes instructions for performing the following operations: when detecting an input sequence input by the user, determining whether the input sequence matches the predicted candidate in the currently displayed splicing result; if the input sequence matches the predicted candidate in the currently displayed splicing result, dividing the predicted candidate in the currently displayed splicing result into a third part and a fourth part, wherein the third part is a segment consisting of the 1st to Mth characters in the predicted candidate, wherein M is the number of candidate words obtained by converting the input sequence input in the user's current input cycle into a candidate, and M is a positive integer; and updating the style of the third part using the same style as the content in the edit box.

[0187] Optionally, it also includes instructions for performing the following operations: receiving a selection operation performed by a user, the selection operation including an input sequence screening operation and / or a half-selection on-screen operation; determining a target word corresponding to the selection operation from the predicted candidates of the splicing results; and updating the style of the target word using the same style as the content in the edit box.

[0188] Optionally, displaying the splicing result includes: dynamically playing the splicing result.

[0189] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0190] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0191] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0192] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0193] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they are aware of the basic creative concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0194] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0195] The above is a detailed introduction to an information display method, an information display device and an electronic device provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for a general technician in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. An information display method, characterized in that: include: Determine whether there is content in the edit box; When there is content in the edit box, the content in the edit box is spliced ​​with a prediction candidate predicted based on the content in the edit box to obtain a splicing result, including: predicting a target part that can form a sentence with the prediction candidate from the end of the content in the edit box through a pre-trained model, splicing the prediction candidate after the target part, and obtaining a corresponding splicing result; In the candidate display area, different styles are used to display the content in the edit box and the predicted candidates in the splicing result, and the content in the edit box is displayed in the edit box; When detecting an input sequence input by a user, determine whether the input sequence matches a prediction candidate in a currently displayed splicing result, and if so, divide the prediction candidate in the currently displayed splicing result into a third part and a fourth part, wherein the third part is a segment consisting of the first to the Mth characters in the prediction candidate, and M is the number of candidate words obtained by performing candidate conversion on the input sequence input by the user in the current input cycle, and M is a positive integer; update the style of the third part using the same style as the content in the edit box; Determine whether the length of the splicing result exceeds the display limit length N; If the length of the splicing result exceeds the display limit length N, the last N-1 texts in the splicing result are displayed in a default style, and the first text in the splicing result is gradually faded out.

2. The method according to claim 1, characterized in that The method further comprises: Determine whether the length of the prediction candidate is less than the display limit length N, where N is a positive integer; If the length of the prediction candidate is less than the display limit length N, the step of splicing the content in the edit box with the prediction candidate to obtain a splicing result is performed.

3. The method according to claim 1, characterized in that The method further comprises: A browsing operation of the user on the splicing result is received, and a portion of the splicing result that is not displayed is displayed.

4. An information display device, characterized in that: include: A judgment module is used to judge whether there is content in the edit box; A splicing module is used for splicing the content in the edit box with the prediction candidate predicted based on the content in the edit box to obtain a splicing result when there is content in the edit box, including: predicting a target part that can form a sentence with the prediction candidate from the end part of the content in the edit box through a pre-trained model, splicing the prediction candidate after the target part, and obtaining a corresponding splicing result; A display module, used to display the content in the edit box and the predicted candidates in the splicing result in different styles in the candidate display area, and to display the content in the edit box in the edit box; A matching module, used to determine whether the input sequence matches the prediction candidate in the currently displayed splicing result when detecting the input sequence input by the user; a division module, configured to divide the prediction candidates in the currently displayed splicing result into a third part and a fourth part if the input sequence matches the prediction candidates in the currently displayed splicing result, wherein the third part is a segment consisting of the first to the Mth characters in the prediction candidates, and M is the number of candidate words obtained by performing candidate conversion on the input sequence input by the user in the current input cycle, and M is a positive integer; A first updating module, used to update the style of the third part using the same style as the content in the editing box; The display module comprises: A first length judgment submodule is used to judge whether the length of the splicing result exceeds the display limit length N; The concealment submodule is used to display the last N-1 texts in the splicing result in a default style if the length of the splicing result exceeds the display limit length N, and to gradually conceal the first text in the splicing result.

5. An electronic device, characterized in that: The system comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations: Determine whether there is content in the edit box; When there is content in the edit box, the content in the edit box is spliced ​​with a prediction candidate predicted based on the content in the edit box to obtain a splicing result, including: predicting a target part that can form a sentence with the prediction candidate from the end of the content in the edit box through a pre-trained model, splicing the prediction candidate after the target part, and obtaining a corresponding splicing result; In the candidate display area, different styles are used to display the content in the edit box and the predicted candidates in the splicing result, and the content in the edit box is displayed in the edit box; When detecting an input sequence input by a user, determine whether the input sequence matches a prediction candidate in a currently displayed splicing result, and if so, divide the prediction candidate in the currently displayed splicing result into a third part and a fourth part, wherein the third part is a segment consisting of the first to the Mth characters in the prediction candidate, and M is the number of candidate words obtained by performing candidate conversion on the input sequence input by the user in the current input cycle, and M is a positive integer; update the style of the third part using the same style as the content in the edit box; Determine whether the length of the splicing result exceeds the display limit length N; If the length of the splicing result exceeds the display limit length N, the last N-1 texts in the splicing result are displayed in a default style, and the first text in the splicing result is gradually faded out.

6. A readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the information display method as described in any one of method claims 1-3.

Citation Information

Patent Citations

  • Efficient input prediction method and device

    CN104102720A

  • Method and device for performing search through mobile terminal

    CN106980631A

  • Method and device for providing candidate long sentences in input method

    CN110673748A