CN113589952A - Information display method and device and electronic equipment - Google Patents

Information display method and device and electronic equipment Download PDF

Info

Publication number
CN113589952A
CN113589952A CN202010368455.4A CN202010368455A CN113589952A CN 113589952 A CN113589952 A CN 113589952A CN 202010368455 A CN202010368455 A CN 202010368455A CN 113589952 A CN113589952 A CN 113589952A
Authority
CN
China
Prior art keywords
splicing result
splicing
length
displaying
content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010368455.4A
Other languages
Chinese (zh)
Inventor
贺雅婧
韩秦
刘佳
李海欣
廖文文
杜玮
杨斌
李晓帆
李春雨
周静红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN202010368455.4A priority Critical patent/CN113589952A/en
Publication of CN113589952A publication Critical patent/CN113589952A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • G06F3/0237Character input methods using prediction or retrieval techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • G06F3/0236Character input methods using selection techniques to select from displayed items
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides an information display method, an information display device and electronic equipment, wherein the method comprises the following steps: determining a prediction candidate predicted by an input method; splicing the content in the edit box with the prediction candidates to obtain a splicing result; displaying the splicing result; the user does not need to switch the focus back and forth between the edit box and the candidate area, so that the content in the edit box and the candidate are connected to be understood, and whether the candidate is required by the user is determined; the attention cost and the understanding cost of the user in the input process are reduced, and therefore the input efficiency of the user is improved.

Description

Information display method and device and electronic equipment
Technical Field
The invention relates to the technical field of input methods, in particular to an information display method, an information display device and electronic equipment.
Background
With the development of computer technology, electronic devices such as mobile phones and tablet computers are more and more popular, and great convenience is brought to life, study and work of people. These electronic devices are usually installed with an input method application program (abbreviated as input method) so that the user can input information using the input method.
In the input process of the user, the input method can predict various types of candidates, such as name candidates, association candidates and the like, matched with the input sequence, and display the candidates for the user to screen, so that the input efficiency of the user is improved.
In most cases, the candidates for input method prediction are associated with content in the edit box; for example, the content in the edit box "evening today" associates the candidate "what to eat"; as another example, "one person", a candidate "take care of oneself" is predicted, and so on. After the input method obtains the predicted candidate, the candidate is only displayed in the corresponding area; the user needs to switch the focus back and forth between the edit box and the candidate area, link the content in the edit box and the candidate to understand, and determine whether the candidate is required by the user; this will certainly increase the attention cost and understanding cost of the user in the input process, and reduce the input efficiency of the user.
Disclosure of Invention
The embodiment of the invention provides an information display method for improving input efficiency.
Correspondingly, the embodiment of the invention also provides an information display device and electronic equipment, which are used for ensuring the realization and application of the method.
In order to solve the above problem, an embodiment of the present invention discloses an information display method, which specifically includes: determining a prediction candidate predicted by an input method; splicing the content in the edit box with the prediction candidates to obtain a splicing result; and displaying the splicing result.
Optionally, the method further comprises: judging whether the length of the prediction candidate is smaller than a display limit length N, wherein N is a positive integer; and if the length of the prediction candidate is less than the display limit length N, performing the step of splicing the content in the edit box and the prediction candidate to obtain a splicing result.
Optionally, the splicing 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 and the prediction candidate composition sentence; and splicing the prediction candidates after the target part to obtain a corresponding splicing result.
Optionally, the displaying the splicing result includes: judging whether the length of the splicing result exceeds a display limit length N or not; and if the length of the splicing result exceeds the display limit length N, displaying the last N texts in the splicing result. Optionally, the displaying the last N texts in the splicing result includes: and displaying the last N-1 texts in the splicing result according to a default style, and fading down the 1 st text in the splicing result.
Optionally, the displaying the splicing result includes: judging whether the length of the splicing result exceeds a display limit length N or not; and if the length of the splicing result exceeds the display limit length N, displaying a first part contained in the content in the edit box in the splicing result, predicting a second part contained in the candidate in the splicing result, and omitting the identifier.
Optionally, the method further comprises: and receiving browsing operation of a user aiming at the splicing result, and displaying the part which is not displayed in the splicing result.
Optionally, the displaying the splicing result includes: and displaying the content and the prediction candidates in the edit box in the splicing result by adopting different styles.
Optionally, the method further comprises: when detecting that a user inputs an input sequence, judging whether the input sequence is matched with a prediction candidate in a splicing result displayed currently; if the input sequence is matched with the prediction candidate in the current display splicing result, dividing the prediction candidate in the current display splicing result into a third part and a fourth part, wherein the third part is a segment formed by the 1 st word to the M th word in the prediction candidate, M is the word number of a candidate word obtained by performing candidate conversion on the input sequence input in the current input period of the user, and M is a positive integer; updating the style of the third portion with the same style as the content in the edit box.
Optionally, the method further comprises: receiving selection operation executed by a user, wherein the selection operation comprises input sequence screening operation and/or half-selection screen-on operation; determining a target word corresponding to the selection operation from the prediction candidates of the splicing result; and updating the style of the target word by using the same style as the content in the edit box.
Optionally, the displaying the splicing result includes: and dynamically playing the splicing result.
The embodiment of the invention also discloses an information display device, which specifically comprises: a determination module for determining a prediction candidate predicted by the input method; the splicing module is used for splicing the content in the edit box with the prediction candidates to obtain a splicing result; and the display module is used for displaying the splicing result.
Optionally, the apparatus further comprises: a judging module, configured to judge whether the length of the prediction candidate is smaller than a display limit length N, where N is a positive integer; and the splicing module is used for executing the step of splicing the content in the edit box and the prediction candidate to obtain a splicing result if the length of the prediction candidate is less than the display limit length N.
Optionally, the splicing module comprises: a target part determining submodule for determining a target part of the sentence composed of the prediction candidate and the content in the edit box; and the candidate splicing submodule is used for splicing the prediction candidates after the target part to obtain a corresponding splicing result.
Optionally, the display module comprises: the first length judgment submodule is used for judging whether the length of the splicing result exceeds a display limit length N or not; and the first splicing result display submodule is used for displaying the last N texts in the splicing result if the length of the splicing result exceeds the display limit length N.
Optionally the display module comprises: and the hiding sub-module is used for displaying the last N-1 texts in the splicing result according to a default style and fading and hiding the 1 st text in the splicing result.
Optionally, the display module comprises: the second length judgment submodule is used for judging whether the length of the splicing result exceeds a display limit length N or not; and the second splicing result display sub-module is used for displaying a first part contained in the content in the edit box in the splicing result if the length of the splicing result exceeds the display limit length N, displaying a second part contained in the prediction candidates in the splicing result, and omitting the identification.
Optionally, the apparatus further comprises: and the first receiving module is used for receiving browsing operation of a user aiming at the splicing result and displaying the part which is not displayed in the splicing result.
Optionally, the display module comprises: and the style display submodule is used for displaying the content and the prediction candidates in the edit box in the splicing result by adopting different styles.
Optionally, the apparatus further comprises: the matching module is used for judging whether the input sequence is matched with a prediction candidate in a splicing result displayed currently when detecting that a user inputs the input sequence; the dividing module is used for dividing the prediction candidates in the splicing result displayed currently into a third part and a fourth part if the input sequence is matched with the prediction candidates in the splicing result displayed currently, wherein the third part is a segment formed by the 1 st word to the M th word in the prediction candidates, M is the word number of candidate words obtained by candidate conversion of the input sequence input by the user in the current input period, and M is a positive integer; and the first updating module is used for updating the style of the third part by adopting the same style as the content in the edit box.
Optionally, the apparatus further comprises: the second receiving module is used for receiving selection operations executed by a user, wherein the selection operations comprise input sequence screening operations and/or half-selection screen-on operations; the target word determining module is used for determining the target word corresponding to the selection operation from the prediction candidates of the splicing result; and the second updating module is used for updating the style of the target word by adopting the same style as the style of the content in the edit box.
Optionally, the display module comprises: and the dynamic playing submodule is used for dynamically playing the splicing result.
The embodiment of the invention also discloses a readable storage medium, and when the instructions in the storage medium are executed by a processor of the electronic equipment, the electronic equipment can execute the information display method in any one of the embodiments of the invention.
An embodiment of the present invention also discloses an electronic device, including a memory, and one or more programs, where the one or more programs are stored in the memory, and configured to be executed by one or more processors, and the one or more programs include instructions for: determining a prediction candidate predicted by an input method; splicing the content in the edit box with the prediction candidates to obtain a splicing result; and displaying the splicing result.
Optionally, further comprising instructions for: judging whether the length of the prediction candidate is smaller than a display limit length N, wherein N is a positive integer; and 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 and the prediction candidate to obtain a splicing result.
Optionally, the splicing 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 and the prediction candidate composition sentence; and splicing the prediction candidates after the target part to obtain a corresponding splicing result.
Optionally, the displaying the splicing result includes: judging whether the length of the splicing result exceeds a display limit length N or not; and if the length of the splicing result exceeds the display limit length N, displaying the last N texts in the splicing result.
Optionally, the displaying the last N texts in the splicing result includes: and displaying the last N-1 texts in the splicing result according to a default style, and weakening and hiding the 1 st text in the splicing result.
Optionally, the displaying the splicing result includes: judging whether the length of the splicing result exceeds a display limit length N or not; and if the length of the splicing result exceeds the display limit length N, displaying a first part contained in the content in the edit box in the splicing result, predicting a second part contained in the candidate in the splicing result, and omitting the identifier.
Optionally, further comprising instructions for: and receiving browsing operation of a user aiming at the splicing result, and displaying the part which is not displayed in the splicing result.
Optionally, the displaying the splicing result includes: and displaying the content and the prediction candidates in the edit box in the splicing result by adopting different styles.
Optionally, further comprising instructions for: when detecting that a user inputs an input sequence, judging whether the input sequence is matched with a prediction candidate in a splicing result displayed currently; if the input sequence is matched with the prediction candidates in the current display splicing result, dividing the prediction candidates in the current display splicing result into a third part and a fourth part, wherein the third part is a segment formed by the 1 st word to the M th word in the prediction candidates, M is the word number of candidate words obtained by candidate conversion of the input sequence input in the current input period of the user, and M is a positive integer; updating the style of the third portion with the same style as the content in the edit box.
Optionally, further comprising instructions for: receiving selection operation executed by a user, wherein the selection operation comprises input sequence screening operation and/or half-selection screen-on operation; determining a target word corresponding to the selection operation from the prediction candidates of the splicing result; and updating the style of the target word by using the same style as the content in the edit box.
Optionally, the displaying the splicing result includes: and dynamically playing the splicing result.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, after the prediction candidate predicted by the input method is obtained, the content in the edit box and the prediction candidate are spliced to obtain a splicing result, and the splicing result is displayed; further, the user need not switch focus back and forth between the edit box and the candidate region to understand the content in the edit box and the candidate connection and to determine whether the candidate is required by itself; the attention cost and the understanding cost of the user in the input process are reduced, and therefore the input efficiency of the user is improved.
Drawings
FIG. 1 is a flow chart of steps of an embodiment of a method for displaying information in accordance with the present invention;
FIG. 2 is a schematic diagram of a stitching result display interface according to an embodiment of the present invention;
FIG. 3 is a flow chart of the steps of an alternative embodiment of an information presentation method of the present invention;
FIG. 4 is a flowchart illustrating the steps of an embodiment of a method for displaying stitching results according to the present invention;
FIG. 5 is a flowchart illustrating the steps of another embodiment of a method for displaying stitching results according to the present invention;
FIG. 6a is a schematic diagram of an embodiment of the present invention for distinguishing content and prediction candidates in an edit box in a display stitching result;
FIG. 6b is a diagram illustrating a predicted candidate pattern in a dynamically adjusted stitching result according to an embodiment of the present invention;
FIG. 7 is a block diagram of an embodiment of an information presentation device according to the present invention;
FIG. 8 is a block diagram of an alternative embodiment of an information presentation device of the present invention;
FIG. 9 illustrates a block diagram of an electronic device for information presentation, in accordance with an exemplary embodiment;
fig. 10 is a schematic structural diagram of an electronic device for information presentation according to another exemplary embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Referring to fig. 1, a flow chart of steps of an embodiment of an information displaying method of the present invention is shown, and specifically, the method may include the following steps:
and step 102, determining a prediction candidate predicted by the input method.
And step 104, splicing the content in the edit box with the prediction candidates to obtain a splicing result.
And 106, displaying the splicing result.
In the embodiment of the invention, in the input process of the user, the input method can acquire the input information of the user; then, prediction is carried out based on the input information of the user, and corresponding prediction candidates are determined. For example, long sentence prediction may be performed, and corresponding long sentence prediction candidates may be determined; if the name can be predicted, the name candidate is determined; for example, expression prediction can be carried out, and expression candidates are determined; local cloud substitution prediction can be carried out, and local cloud substitution candidates are determined; cloud input can also be performed, for example, to determine cloud input candidates; for example, sentence association is performed, candidate sentence association is determined, and the like, which is not limited in this embodiment of the present invention. The input information may include information related to input, such as content in an edit box, interaction information, a code string, and input environment information, which are not limited in this embodiment of the present invention.
In the embodiment of the invention, the content in the edit box can be spliced with the prediction candidates to obtain a splicing result; and displaying the splicing result in the candidate display area. The user does not need to switch the focus back and forth between the edit box and the candidate area, so that the content in the edit box and the candidate are connected to be understood, and whether the candidate is required by the user is determined; the attention cost and the understanding cost of the user in the input process are reduced, and therefore the input efficiency of the user is improved.
The candidate display area may be set according to a requirement, for example, an upper right area of an input method, which is not limited in the embodiment of the present invention.
As an example of the present invention, referring to fig. 2, the content in the edit box is "one person", and after the user inputs the pinyin sequence "zhao", the prediction candidate predicted by the input method may be determined as "take care of oneself"; at this time, the content 'one person' in the edit box and the prediction candidate 'look after oneself' can be spliced to obtain a splicing result 'one person looks after oneself' and display.
In summary, in the embodiment of the present invention, after the prediction candidate predicted by the input method is obtained, the content in the edit box and the prediction candidate are spliced to obtain a splicing result, and the splicing result is displayed; the user does not need to switch the focus back and forth between the edit box and the candidate area, so that the content in the edit box and the candidate are connected to be understood, and whether the candidate is required by the user is determined; the attention cost and the understanding cost of the user in the input process are reduced, and therefore the input efficiency of the user is improved.
The embodiment of the invention can be applied to scenes with various input modes, and the content in the edit box and the prediction candidates are spliced and displayed. For example, the present invention may be applied in a stroke input scenario, a pinyin input scenario, a voice input scenario, and so on, which is not limited in this respect.
The embodiment of the invention can also be applied to a plurality of language scenes, and the content in the edit box and the prediction candidates are spliced and displayed. For example, the present invention may be applied to a chinese input scenario, an english input scenario, a korean input scenario, and so on, which is not limited in this respect.
In the embodiment of the invention, the candidate display areas of different terminal devices can support different lengths of displayed texts; the length of different prediction candidates also differs. When the length of the prediction candidate is greater than or equal to the length of the text supported and displayed by the terminal equipment, the content in the edit box and the prediction candidate are not spliced and displayed; facilitating a better view of the prediction candidates by the user. When the length of the prediction candidate is smaller than the length of the text supported and displayed by the terminal device, the content in the edit box and the prediction candidate can be displayed in a splicing manner. The length of the text supported and displayed by the terminal device may refer to the number of the texts supported and displayed, and may be referred to as a display limit length; for convenience of subsequent description, the display restriction length may be represented by N; n is a positive integer. The length of the prediction candidate may also be the amount of text in the prediction candidate.
Referring to fig. 3, a flow chart of the steps of an alternative embodiment of an information display method of the present invention is shown.
Step 302, determining a prediction candidate predicted by the input method.
In the embodiment of the invention, after the prediction candidate predicted by the input method is determined, whether the content exists in the edit box can be judged. When the content exists in the edit box, the content in the edit box can be spliced with the prediction candidates, and then the splicing result is displayed. When the content does not exist in the edit box, the prediction candidates can be directly displayed.
And step 304, judging whether the length of the prediction candidate is smaller than the display limit length N.
In the embodiment of the invention, when the content exists in the edit box, the display limit length N corresponding to the terminal equipment can be obtained; and then comparing the length of the prediction candidate with the display limit length N, and judging whether the length of the prediction candidate is smaller than the display limit length N. 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; reference may be made to steps 306-308. When the length of the prediction candidate is greater than or equal to the display limit length N, step 312 may be performed.
Step 306, determining the target part of the sentence formed by the prediction candidate in the content in the edit box.
And 308, splicing the prediction candidates to the target part to obtain a corresponding splicing result.
In the embodiment of the present invention, the content in the edit box may include one or more sentences and a part of one sentence, or may include only a part of one sentence. In one example of the present invention, one way to determine the target part of the content in the edit box to compose a sentence with the prediction candidate may be: when the contents in the edit box include only a part of one sentence, all the contents in the edit box may be determined to constitute a target part of the sentence with the prediction candidates. When the content in the edit box includes a plurality of sentences and a part of one sentence, a part following the last punctuation in the content in the edit box may be determined as a target part constituting the sentence with the prediction candidate.
In another example of the present invention, a way to determine the target part of the content in the edit box to compose a sentence with the prediction candidates may be: the target portion that can be combined with the prediction candidates into a sentence can be predicted from the end portion of the content in the edit box by a pre-trained model.
The predicted candidates may then be stitched after the target portion to obtain corresponding stitching results.
And 310, displaying the splicing result.
Step 312, displaying the prediction candidates.
In the embodiment of the invention, when the content does not exist in the edit box, the prediction candidates can be directly displayed without splicing. And when the length of the prediction candidate is determined to be greater than or equal to the display limit length, the prediction candidate can also be directly displayed so that the user can better view the prediction candidate.
In summary, in the embodiment of the present invention, it may be determined whether the length of the prediction candidate is smaller than the display limit length N, and if the length of the prediction candidate is smaller than the display limit length N, the content in the edit box may be spliced with the prediction candidate to obtain a splicing result and display the splicing result; if the prediction candidate length is greater than or equal to the display limit length, the prediction candidates can be directly displayed so that the user can better view the prediction candidates.
Secondly, in the embodiment of the present invention, in the splicing process, a target portion of a sentence formed by the content in the edit box and the prediction candidates may be determined, and then the prediction candidates are spliced after the target portion to obtain a corresponding splicing result; and then when the content in the edit box is longer, selecting the part which can form a sentence with the prediction candidate to splice with the prediction candidate, so that the length of a splicing result is reduced, and the splicing result can be more visually checked by a user.
In an embodiment of the present invention, the splicing result may be greater than the display limit length, so that when the splicing result is greater than the display limit length, the display of the prediction candidates may be preferentially ensured, and the user may conveniently view the prediction candidates.
Referring to fig. 4, a flowchart illustrating steps of an embodiment of a splicing result displaying method according to the present invention is shown.
And 402, judging whether the length of the splicing result exceeds a display limit length N.
In the embodiment of the invention, after the content in the edit box is spliced with the prediction candidates to obtain a splicing result; it may be determined whether the length of the stitching result exceeds a display limit length N. If the length of the stitching result exceeds the display limit length N, then step 404 may be performed; if the length of the stitching result does not exceed the display limit length N, step 408 may be performed.
And step 404, displaying the last N texts in the splicing result.
In the embodiment of the 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, so that the prediction candidates in the splicing result are preferentially displayed, and a user can conveniently check the prediction candidates.
Wherein, one way to display the last N texts in the concatenation result may be: and displaying the last N-1 texts in the splicing result according to a default pattern, and fading down the 1 st 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 an input method, or may be set by a user through self-definition, which is not limited in the present invention.
And 406, receiving browsing operation of the user for the splicing result, and displaying the part which is not displayed in the splicing result.
In the embodiment of the invention, after the last N texts in the splicing result are displayed, the user can be supported to check the part which is not displayed. The user can check the part which is not shown in the splicing result by executing browsing operation. And after the input method receives the browsing operation of the user on the splicing result, the part which is not shown in the splicing result can be shown. The browsing operation may be a left-right sliding operation, which is not limited in this embodiment of the present invention.
And 408, displaying all texts in the splicing result.
In the embodiment of the present invention, when the length of the concatenation result does not exceed the display limit length N, all texts in the concatenation result may be displayed.
In summary, in the embodiment of the present invention, it may be determined whether the length of the splicing result exceeds the display limit length N, and if the length of the splicing result exceeds the display limit length N, the last N texts in the splicing result are displayed; and then, the prediction candidates can be guaranteed to be preferentially shown, so that the prediction candidates can be conveniently checked by a user.
In an embodiment of the present invention, when the splicing result is greater than the display limit length, a part of information in the content in the edit box of the splicing result and a part of information in the prediction candidates of the splicing result may also be displayed. And further, under the condition that the splicing result is long, the user can be ensured to see the content and the candidates which are displayed on the screen in the same area.
Referring to fig. 5, a flowchart illustrating steps of another embodiment of a splicing result displaying method according to the present invention is shown.
And 502, judging whether the length of the splicing result exceeds a display limit length N.
In the embodiment of the invention, after the content in the edit box is spliced with the prediction candidates to obtain a splicing result; it may be determined whether the length of the stitching result exceeds a display limit length N. If the length of the stitching result exceeds the display limit length N, then step 504 may be performed; if the length of the stitching result does not exceed the display limit length N, step 508 may be performed.
Step 504, displaying a first part contained in the content in the edit box in the splicing result, a second part contained in the prediction candidate in the splicing result, and omitting the identification.
In the embodiment of the invention, when the length of the splicing result exceeds the display limit length N, a first part can be selected from the contents in the edit box of the splicing result; and selecting a second part from the prediction candidates of the splicing result. In an example of the present invention, the first part and the second part may be two continuous parts in the splicing result, for example, the first part may be the last X texts in the splicing result, and the second part may be the first Y texts in the splicing result. Wherein X and Y are positive integers, the sum of X and Y may be less than or equal to N, and the sizes of X and Y may be set as required, which is not limited in this embodiment of the present invention.
The first portion, the second portion, and the omitted indication may then be presented so as to alert the user that the information presented is not complete. The omission identifier may be set as an ellipsis or the like according to requirements, which is not limited in the present invention.
Step 506, receiving browsing operation of the user aiming at the splicing result, and displaying the part which is not displayed in the splicing result.
This step 506 is similar to the step 406 described above and will not be described again.
And step 508, displaying all texts in the splicing result.
In summary, in the embodiment of the present invention, it may be determined whether the length of the splicing result exceeds the display limit length N, and if the length of the splicing result exceeds the display limit length N, a first portion of the content in the edit box in the splicing result is displayed, a second portion of the predicted candidates in the splicing result is displayed, and the identifier is omitted; and further, even under the condition that the splicing result is long, the user can be ensured to check the content and the candidates which are displayed on the screen in the same area.
Of course, if the length of the prediction candidate is greater than the display limit length N, the top N texts in the prediction candidate may be displayed. In an example of the present invention, one way to display the first N texts in the prediction candidates may be to display the first N-1 texts in the prediction candidates according to a default display style, and fade out the nth text in the prediction candidates. And receiving a browsing operation of a user for the prediction candidate, and displaying an undeveloped part of the prediction candidate.
In one embodiment of the invention, in order to facilitate the user to distinguish which of the splicing results is the content in the edit box and which is a prediction candidate; the content and prediction candidates in the edit box can be presented differently. Correspondingly, one way to display the splicing result may be: and displaying the content and the prediction candidates in the edit box in the splicing result by adopting different styles. For example, the content and the prediction candidates in the edit box in the splicing result may be shown in different colors. As shown in fig. 6 a; wherein, the 'one person' is the content in the edit box, and the corresponding color is color 1; "look after oneself" is a prediction candidate, and the corresponding color is color 2. For another example, different fonts can be adopted to display the content and the prediction candidates in the edit box in the splicing result, and the like; the embodiment of the invention does not limit what different styles are used to display the content and the prediction candidates in the edit box in the splicing result.
In one embodiment of the invention, the predicted candidate patterns in the splicing result can be dynamically adjusted in the process of continuous input of the user. One dynamic adjustment method for the predicted candidate patterns in the splicing result may be: the adjustment is based on an input sequence entered by the user.
When detecting that a user inputs an input sequence, judging whether the input sequence is matched with a prediction candidate in a splicing result displayed currently; if the input sequence is matched with the prediction candidates in the current display splicing result, dividing the prediction candidates in the current display splicing result into a third part and a fourth part, wherein the third part is a segment formed by the 1 st word to the M th word in the prediction candidates, M is the word number of candidate words obtained by performing candidate conversion on the input sequence input in the current input period of the user, and M is a positive integer; updating the style of the third portion with the same style as the content in the edit box. The input duration between two times of screen-on can be referred to as an input period. For example, on the basis of fig. 6a, if it is detected that the user continues to input the input sequence "gu", it is possible to take "care" of the prediction candidates as the third part and "good self" as the fourth part; the third section is then updated in the same fashion as the content in the edit box, updating the "look after" color from color 2 to color 1 as shown in FIG. 6 b.
In an example of the present invention, another dynamic adjustment method for the pattern of the prediction candidates in the splicing result may be: and adjusting based on the selection operation of the user. Wherein the selection operation comprises an input sequence screening operation and/or a half-selection screen-on operation.
The method further comprises the following steps:
receiving a selection operation executed by a user;
determining a target word corresponding to the selection operation from the prediction candidates of the splicing result;
and updating the style of the target word by using the same style as the content in the edit box.
For example, taking the example of the user entering "where you are, want you to" the user has already on the screen "where you are," and then entered the pinyin string "xia"; at this time, if the prediction candidate is "want you to have", the displayed concatenation result is "where you are and want you to have". Wherein, it is assumed that the color corresponding to "where you are" is color 1, and the color corresponding to "you want to" is color 2. When the input method keyboard is a nine-key input, a plurality of pinyin strings such as "xia", "xian", and "xiang" that match the prefix "xia" may be displayed on the left side. If the user presses the key corresponding to the 'xiang', the input sequence screening operation executed by the user can be received, and the 'thought' of the predicted candidate in the splicing result can be determined as the target word; the "desired" color is then converted from color 2 to color 1.
For another example, the user inputs "which meal to go today in the evening". The user is already on the screen "today". Then inputting the pinyin string 'wanshangqu', and if the prediction candidate is 'going to which meal at night', the displayed splicing result is 'going to which meal at night today'. It is assumed that the color corresponding to "today" is color 1, and the color corresponding to "go and eat" is color 2. But the local candidate has 'night', and when the local candidate does not have 'late go', the user can execute half-selection screen-up operation aiming at 'night', and the area for displaying the input sequence is changed from 'wanshanggqu' to 'qu night'. At this time, "late" of the prediction candidates in the concatenation result may be determined as the target word; the "night" color is then converted from color 2 to color 1.
In an embodiment of the present invention, a manner of displaying the splicing result may be: and dynamically playing the splicing result. In one example of the present invention, the predicted candidates may be dynamically played by scrolling from the right side to the left side of the candidate display area at a certain rate. Wherein, the dynamic playing of the splicing result may be stopped after playing for a certain duration or a certain number of times. In addition, when the condition of interrupting the dynamic playing is met, the splicing result can be interrupted and dynamically played; the condition of interrupting the playing may include multiple conditions, such as: detecting that a user inputs an input sequence and detecting that the user performs a screen-up operation; if the user inputs an input sequence, the input sequence is not matched with the currently displayed prediction candidate; for example, any one of punctuation, numbers, expressions and dialects, etc. input by the user may be detected, which is not limited by the embodiment of the present invention.
In this embodiment of the present invention, the input method may include a client and a server, where the steps of the foregoing embodiment may be executed by the client, or the steps of the foregoing embodiment may be executed by the client and the server in combination, which is not limited in this embodiment of the present invention.
Wherein, when the steps of the above embodiments are performed by a combination of the client and the server, determining prediction candidates for input method prediction may be performed by the server; judging whether the length of the prediction candidate is smaller than a display limit length N; splicing the content in the edit box with the prediction candidates to obtain a splicing result; and then, the splicing result or the prediction candidate is returned to the client, and the client executes other steps. Or the server determines the prediction candidate predicted by the input method and returns the prediction candidate to the client; other steps are performed by the client. Of course, determining prediction candidates for an input method prediction may also be performed by the server; judging whether the length of the prediction candidate is smaller than a display limit length N; and when the length of the prediction candidate is less than the display limit length N, determining that the target part of the sentence is formed by the prediction candidate and the content in the edit box. The server may return a prediction result and a target portion when determining that the length of the prediction candidate is less than the display limit length N; upon determining that the length of the prediction candidate is greater than or equal to the display limit length N, the prediction result may be returned and other steps may be performed by the client.
It is noted that, for simplicity of explanation, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will appreciate that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 7, a block diagram of an embodiment of an information display apparatus according to the present invention is shown, and specifically, the structure may include the following modules:
a determining module 701, configured to determine a prediction candidate predicted by an input method;
a splicing module 702, configured to splice the content in the edit box with the prediction candidate to obtain a splicing result;
and a display module 703 for displaying the splicing result.
Referring to fig. 8, a block diagram of an alternative embodiment of an information presentation device of the present invention is shown.
In an optional embodiment of the present invention, the apparatus further comprises:
a determining module 708, configured to determine whether the length of the prediction candidate is smaller than a display limit length N, where N is a positive integer;
a splicing module 702, configured to, if the length of the prediction candidate is smaller than the display limit length N, perform the step of splicing the content in the edit box and the prediction candidate to obtain a splicing result.
In one embodiment of the present invention, the splicing module 704 includes:
a target part determining sub-module 7042, configured to determine a target part of the sentence composed of the prediction candidates in the content in the edit box;
and the candidate splicing submodule 7044 is configured to splice the prediction candidates to the target portion, and obtain a corresponding splicing result.
In one embodiment of the present invention, the display module 706 comprises:
a first length judgment sub-module 7062, configured to judge whether the length of the splicing result exceeds a display limit length N;
and the first splicing result displaying sub-module 7064 is configured to display the last N texts in the splicing result if the length of the splicing result exceeds the display limit length N.
In one embodiment of the present invention, the display module 706 comprises:
the hiding sub-module 7066 is configured to display the last N-1 texts in the splicing result according to a default style, and fade out and hide the 1 st text in the splicing result.
In one embodiment of the present invention, the display module 706 comprises:
a second length judgment sub-module 7068, configured to judge whether the length of the splicing result exceeds a display limit length N;
the second splicing result displaying sub-module 70610 is configured to display a first part included in the content in the edit box in the splicing result, a second part included in the prediction candidate in the splicing result, and omit the identifier if the length of the splicing result exceeds the display limit length N.
In an embodiment of the present invention, the apparatus further includes:
a first receiving module 7010, configured to receive a browsing operation of the user on the splicing result, and display an undisplayed part of the splicing result.
In one embodiment of the present invention, the display module 706 comprises:
and the style displaying sub-module 70612 is configured to display the content and the prediction candidates in the edit box in the splicing result in different styles.
In an embodiment of the present invention, the apparatus further includes:
the matching module 7012 is configured to, when detecting that an input sequence is input by a user, determine whether the input sequence matches a prediction candidate in a currently displayed stitching result;
a dividing module 7014, configured to divide the prediction candidates in the currently displayed splicing result into a third part and a fourth part if the input sequence is matched with the prediction candidates in the currently displayed splicing result, where the third part is a segment formed by words 1 to M in the prediction candidates, where M is the number of words of candidate words obtained by performing candidate conversion on the input sequence input by the user in the current input period, and M is a positive integer;
a first updating module 7016, configured to update the style of the third portion with the same style as the content in the edit box.
In an embodiment of the present invention, the apparatus further includes:
a second receiving module 7018, configured to receive a selection operation performed by a user, where the selection operation includes an input sequence screening operation and/or a half-selection screen-on operation;
a target word determining module 7020, configured to determine, from the prediction candidates of the concatenation result, a target word corresponding to the selecting operation;
a second updating module 7022, configured to update the style of the target word with the same style as the content in the edit box.
In one embodiment of the present invention, the display module 706 comprises:
and the dynamic playing submodule 70614 is used for dynamically playing the splicing result.
In summary, in the embodiment of the present invention, after the prediction candidate predicted by the input method is obtained, the content in the edit box and the prediction candidate are spliced to obtain a splicing result, and the splicing result is displayed; the user does not need to switch the focus back and forth between the edit box and the candidate area, so that the content in the edit box and the candidate are connected to be understood, and whether the candidate is required by the user is determined; the attention cost and the understanding cost of the user in the input process are reduced, and therefore the input efficiency of the user is improved.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Fig. 9 is a block diagram illustrating a structure of an electronic device 900 for information presentation, according to an example 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, and the like.
Referring to fig. 9, 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.
The processing component 902 generally controls overall operation of the electronic device 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing element 902 may include one or more processors 920 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 902 can include one or more modules that facilitate interaction between processing component 902 and other components. For example, the processing component 902 can include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
The memory 904 is configured to store various types of data to support operation at the device 900. Examples of such data include instructions for any application or method operating on the electronic device 900, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 904 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power component 906 provides power to the various components of the electronic device 900. Power components 906 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for electronic device 900.
The multimedia components 908 include a screen that provides an output interface between the electronic device 900 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 900 is in an operating mode, such as a shooting mode or a video mode. Each of the front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 910 is configured to output and/or input audio signals. For example, the audio component 910 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 900 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 904 or transmitted via the communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.
I/O interface 912 provides an interface between processing component 902 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 914 includes one or more sensors for providing status evaluations of various aspects of the electronic device 900. For example, sensor assembly 914 may detect an open/closed state of device 900, the relative positioning of components, such as a display and keypad of electronic device 900, the change in position of electronic device 900 or a component of electronic device 900, the presence or absence of user contact with electronic device 900, the orientation or acceleration/deceleration of electronic device 900, and the change in temperature of electronic device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of a nearby object 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.
The communication component 916 is configured to facilitate communications between the electronic device 900 and other devices in a wired or wireless manner. The electronic device 900 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication part 914 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 914 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the 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, micro-controllers, microprocessors, or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 904 comprising instructions, executable by the processor 920 of the electronic device 900 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a method of information presentation, the method comprising: determining a prediction candidate predicted by an input method; splicing the content in the edit box with the prediction candidate to obtain a splicing result; and displaying the splicing result.
Optionally, the method further comprises: judging whether the length of the prediction candidate is smaller than a display limit length N, wherein N is a positive integer; and if the length of the prediction candidate is less than the display limit length N, performing the step of splicing the content in the edit box and the prediction candidate to obtain a splicing result.
Optionally, the splicing 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 and the prediction candidate composition sentence; and splicing the prediction candidates after the target part to obtain a corresponding splicing result.
Optionally, the displaying the splicing result includes: judging whether the length of the splicing result exceeds a display limit length N or not; and if the length of the splicing result exceeds the display limit length N, displaying the last N texts in the splicing result. Optionally, the displaying the last N texts in the splicing result includes: and displaying the last N-1 texts in the splicing result according to a default style, and fading down the 1 st text in the splicing result.
Optionally, the displaying the splicing result includes: judging whether the length of the splicing result exceeds a display limit length N or not; and if the length of the splicing result exceeds the display limit length N, displaying a first part contained in the content in the edit box in the splicing result, predicting a second part contained in the candidate in the splicing result, and omitting the identifier.
Optionally, the method further comprises: and receiving browsing operation of a user aiming at the splicing result, and displaying the part which is not displayed in the splicing result.
Optionally, the displaying the splicing result includes: and displaying the content and the prediction candidates in the edit box in the splicing result by adopting different styles.
Optionally, the method further comprises: when detecting that a user inputs an input sequence, judging whether the input sequence is matched with a prediction candidate in a splicing result displayed currently; if the input sequence is matched with the prediction candidate in the current display splicing result, dividing the prediction candidate in the current display splicing result into a third part and a fourth part, wherein the third part is a segment formed by the 1 st word to the M th word in the prediction candidate, M is the word number of a candidate word obtained by performing candidate conversion on the input sequence input in the current input period of the user, and M is a positive integer; updating the style of the third portion with the same style as the content in the edit box.
Optionally, the method further comprises: receiving selection operation executed by a user, wherein the selection operation comprises input sequence screening operation and/or half-selection screen-on operation; determining a target word corresponding to the selection operation from the prediction candidates of the splicing result; and updating the style of the target word by using the same style as the content in the edit box.
Optionally, the displaying the splicing result includes: and dynamically playing the splicing result.
Fig. 10 is a schematic structural diagram of an electronic device 1000 for information presentation according to another exemplary embodiment of the present invention. The electronic device 1000 may be a server, which may have large differences due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 1022 (e.g., one or more processors) and a memory 1032, one or more storage media 1030 (e.g., one or more mass storage devices) storing application programs 1042 or data 1044. Memory 1032 and storage medium 1030 may be, among other things, transient storage or persistent storage. The program stored on the storage medium 1030 may include one or more modules (not shown), each of which may include a series of instructions operating on a server. Still further, 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.
The server may also include one or more power supplies 1026, one or more wired or wireless network interfaces 1050, one or more input-output interfaces 1058, one or more keyboards 1056, and/or one or more operating systems 1041, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
An electronic device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors the one or more programs including instructions for: determining a prediction candidate predicted by an input method; splicing the content in the edit box with the prediction candidates to obtain a splicing result; and displaying the splicing result.
Optionally, further comprising instructions for: judging whether the length of the prediction candidate is smaller than a display limit length N, wherein N is a positive integer; and 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 and the prediction candidate to obtain a splicing result.
Optionally, the splicing 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 and the prediction candidate composition sentence; and splicing the prediction candidates after the target part to obtain a corresponding splicing result.
Optionally, the displaying the splicing result includes: judging whether the length of the splicing result exceeds a display limit length N or not; and if the length of the splicing result exceeds the display limit length N, displaying the last N texts in the splicing result.
Optionally, the displaying the last N texts in the splicing result includes: and displaying the last N-1 texts in the splicing result according to a default style, and weakening and hiding the 1 st text in the splicing result.
Optionally, the displaying the splicing result includes: judging whether the length of the splicing result exceeds a display limit length N or not; and if the length of the splicing result exceeds the display limit length N, displaying a first part contained in the content in the edit box in the splicing result, predicting a second part contained in the candidate in the splicing result, and omitting the identifier.
Optionally, further comprising instructions for: and receiving browsing operation of a user aiming at the splicing result, and displaying the part which is not displayed in the splicing result.
Optionally, the displaying the splicing result includes: and displaying the content and the prediction candidates in the edit box in the splicing result by adopting different styles.
Optionally, further comprising instructions for: when detecting that a user inputs an input sequence, judging whether the input sequence is matched with a prediction candidate in a splicing result displayed currently; if the input sequence is matched with the prediction candidates in the current display splicing result, dividing the prediction candidates in the current display splicing result into a third part and a fourth part, wherein the third part is a segment formed by the 1 st word to the M th word in the prediction candidates, M is the word number of candidate words obtained by candidate conversion of the input sequence input in the current input period of the user, and M is a positive integer; updating the style of the third portion with the same style as the content in the edit box.
Optionally, further comprising instructions for: receiving selection operation executed by a user, wherein the selection operation comprises input sequence screening operation and/or half-selection screen-on operation; determining a target word corresponding to the selection operation from the prediction candidates of the splicing result; and updating the style of the target word by using the same style as the content in the edit box.
Optionally, the displaying the splicing result includes: and dynamically playing the splicing result.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the true scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The information display method, the information display device and the electronic device provided by the invention are described in detail, specific examples are applied in the text to explain the principle and the implementation mode of the invention, and the description of the above embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. An information display method, comprising:
determining a prediction candidate predicted by an input method;
splicing the content in the edit box with the prediction candidates to obtain a splicing result;
and displaying the splicing result.
2. The method of claim 1, further comprising:
judging whether the length of the prediction candidate is smaller than a display limit length N, wherein N is a positive integer;
and 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 and the prediction candidate to obtain a splicing result.
3. The method of claim 2, wherein the splicing the content in the edit box with the prediction candidate to obtain a splicing result comprises:
determining a target part of the content in the edit box and the prediction candidate composition sentence;
and splicing the prediction candidates after the target part to obtain a corresponding splicing result.
4. The method of claim 3, wherein the displaying the stitching result comprises:
judging whether the length of the splicing result exceeds a display limit length N or not;
and if the length of the splicing result exceeds the display limit length N, displaying the last N texts in the splicing result.
5. The method of claim 4, wherein the displaying the last N texts in the stitching result comprises:
and displaying the last N-1 texts in the splicing result according to a default style, and fading down the 1 st text in the splicing result.
6. The method of claim 3, wherein the displaying the stitching result comprises:
judging whether the length of the splicing result exceeds a display limit length N or not;
and if the length of the splicing result exceeds the display limit length N, displaying a first part contained in the content in the edit box in the splicing result, a second part contained in the prediction candidate in the splicing result, and omitting the identifier.
7. The method of claim 4, 5 or 6, further comprising:
and receiving browsing operation of a user aiming at the splicing result, and displaying the part which is not displayed in the splicing result.
8. An information presentation device, comprising:
a determination module for determining a prediction candidate predicted by the input method;
the splicing module is used for splicing the content in the edit box with the prediction candidates to obtain a splicing result;
and the display module is used for displaying the splicing result.
9. An electronic device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors the one or more programs including instructions for:
determining a prediction candidate predicted by an input method;
splicing the content in the edit box with the prediction candidates to obtain a splicing result;
and displaying the splicing result.
10. A readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the information presentation method of any one of method claims 1-7.
CN202010368455.4A 2020-04-30 2020-04-30 Information display method and device and electronic equipment Pending CN113589952A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010368455.4A CN113589952A (en) 2020-04-30 2020-04-30 Information display method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010368455.4A CN113589952A (en) 2020-04-30 2020-04-30 Information display method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN113589952A true CN113589952A (en) 2021-11-02

Family

ID=78237845

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010368455.4A Pending CN113589952A (en) 2020-04-30 2020-04-30 Information display method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113589952A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106980631A (en) * 2016-01-19 2017-07-25 阿里巴巴集团控股有限公司 The method and apparatus scanned for by mobile terminal
US20190034976A1 (en) * 2017-07-26 2019-01-31 Jehan Hamedi Systems and Methods for Automating Content Design Transformations Based on User Preference and Activity Data
CN110096701A (en) * 2019-04-16 2019-08-06 珠海格力电器股份有限公司 Message conversion process method, device, storage medium and electronic equipment
CN110244860A (en) * 2018-03-08 2019-09-17 北京搜狗科技发展有限公司 A kind of input method, device and electronic equipment
CN110244859A (en) * 2018-03-07 2019-09-17 北京搜狗科技发展有限公司 A kind of method and device of customized candidates of input method
CN110673748A (en) * 2019-09-27 2020-01-10 北京百度网讯科技有限公司 Method and device for providing candidate long sentences in input method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106980631A (en) * 2016-01-19 2017-07-25 阿里巴巴集团控股有限公司 The method and apparatus scanned for by mobile terminal
US20190034976A1 (en) * 2017-07-26 2019-01-31 Jehan Hamedi Systems and Methods for Automating Content Design Transformations Based on User Preference and Activity Data
CN110244859A (en) * 2018-03-07 2019-09-17 北京搜狗科技发展有限公司 A kind of method and device of customized candidates of input method
CN110244860A (en) * 2018-03-08 2019-09-17 北京搜狗科技发展有限公司 A kind of input method, device and electronic equipment
CN110096701A (en) * 2019-04-16 2019-08-06 珠海格力电器股份有限公司 Message conversion process method, device, storage medium and electronic equipment
CN110673748A (en) * 2019-09-27 2020-01-10 北京百度网讯科技有限公司 Method and device for providing candidate long sentences in input method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MARKDY Y. ORONG.ETAL: "A Hybrid Prediction Model Integrating a Modified Genetic Algorithm to K-means Segmentation and C4.5", IEEE, 31 December 2018 (2018-12-31) *
刘政怡 等: "基于整句输入法的状态空间模型", 计算机工程与应用, no. 30, 31 October 2008 (2008-10-31) *

Similar Documents

Publication Publication Date Title
US10296201B2 (en) Method and apparatus for text selection
US20220129151A1 (en) Interface display method, device and storage medium
WO2015176483A1 (en) Label creation method and device, and terminal
US20170316011A1 (en) Method and apparatus for searching resource
CN111198620A (en) Method, device and equipment for presenting input candidate items
CN111046210A (en) Information recommendation method and device and electronic equipment
CN112068764B (en) Language switching method and device for language switching
CN108536653B (en) Input method, input device and input device
CN110648657A (en) Language model training method, language model construction method and language model construction device
CN109901726B (en) Candidate word generation method and device and candidate word generation device
CN109558016B (en) Input method and device
CN111092971A (en) Display method and device for displaying
CN113589952A (en) Information display method and device and electronic equipment
CN109388328B (en) Input method, device and medium
CN109917927B (en) Candidate item determination method and device
CN108958504B (en) Candidate word screen-on method and device and candidate word screen-on device
CN109558017B (en) Input method and device and electronic equipment
CN109144336B (en) Data processing method, device and equipment and readable storage medium
CN112148132A (en) Information setting method and device and electronic equipment
CN108227952B (en) Method and system for generating custom word and device for generating custom word
CN107015736B (en) Key processing method and device for key processing
US10423706B2 (en) Method and device for selecting information
CN111722726B (en) Method and device for determining pigment and text
CN110780750B (en) Input method and device
CN111538450B (en) Theme background display method and device and storage medium

Legal Events

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