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

Information display method and device and electronic equipment Download PDF

Info

Publication number
CN112989231A
CN112989231A CN201911216377.XA CN201911216377A CN112989231A CN 112989231 A CN112989231 A CN 112989231A CN 201911216377 A CN201911216377 A CN 201911216377A CN 112989231 A CN112989231 A CN 112989231A
Authority
CN
China
Prior art keywords
information
display
displayed
space
entry information
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
CN201911216377.XA
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 CN201911216377.XA priority Critical patent/CN112989231A/en
Publication of CN112989231A publication Critical patent/CN112989231A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application provides an information display method, an information display device and electronic equipment, wherein the method comprises the following steps: determining entry information to be displayed in a search interface and a first display space required by the entry information to be displayed in the search interface, and determining a remaining second display space of a current display line; judging whether the entry information to be displayed needs to be cut off or not according to the first display space and the second display space; when the to-be-displayed entry information is determined to be required to be cut off, the to-be-displayed entry information is cut off by performing semantic recognition on the to-be-displayed entry information to obtain target display information; and displaying the target display information on the current display line. The embodiment of the application can improve the utilization rate of the page layout while keeping the effective information in the display information.

Description

Information display method and device and electronic equipment
Technical Field
The present application relates to the field of data processing technologies, and in particular, to an information display method and apparatus, and an electronic device.
Background
With the development of internet technology and the development of search engine technology, users can query information through search applications, such as querying the pronunciation, meaning of a word, profile of a person, and the like.
The search application usually displays the historical search records of the user, the user-defined tags and other user historical behavior information on a search interface, so that the user can enter the corresponding webpage page by triggering the historical behavior information when needing to use the historical behavior information.
At present, when a search interface displays historical behavior information, if the remaining display length of a certain line is less than the length required by the next historical behavior information, line feed display is performed; this may cause the length of the last blank area of each row to be different, resulting in a low page layout utilization.
Disclosure of Invention
The embodiment of the application provides an information display method, which is used for improving the utilization rate of page layouts while keeping effective information in display information.
Correspondingly, the embodiment of the application 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 application discloses an information display method, which specifically includes: determining entry information to be displayed in a search interface and a first display space required by the entry information to be displayed in the search interface, and determining a remaining second display space of a current display line; judging whether the entry information to be displayed needs to be cut off or not according to the first display space and the second display space; when the to-be-displayed entry information is determined to be required to be cut off, the to-be-displayed entry information is cut off by performing semantic recognition on the to-be-displayed entry information to obtain target display information; and displaying the target display information on the current display line.
Optionally, the determining whether the entry information to be displayed needs to be truncated according to the first display space and the second display space includes: judging whether the first display space is larger than the second display space; and if the first display space is larger than the second display space, determining that the entry information to be displayed needs to be truncated.
Optionally, when the first display space is larger than the second display space, the method further includes: calculating the ratio of the second display space to the first display space; and if the ratio is larger than or equal to a preset threshold value, performing the operation of determining that the entry information to be displayed needs to be truncated.
Optionally, the method further comprises: and if the ratio is smaller than a preset threshold value, displaying the entry information to be displayed in the next display line.
Optionally, the obtaining target display information by intercepting the to-be-displayed entry information through performing semantic recognition on the to-be-displayed entry information includes: performing semantic recognition on the entry information to be displayed to obtain a corresponding semantic recognition result; and intercepting the entry information to be displayed according to the semantic recognition result and a second display space to obtain target display information.
Optionally, the semantic recognition result includes key information and auxiliary information in the entry information to be displayed; the intercepting the entry information to be displayed according to the semantic recognition result and the second display space to obtain target display information comprises the following steps: calculating a difference value between the first display space and the second display space to obtain a first difference value space; calculating a third display space required by auxiliary information in the entry information to be displayed; and if the third display space is larger than or equal to the first difference space, omitting the auxiliary information from the entry information to be displayed to obtain target display information.
Optionally, the truncating the entry information to be displayed according to the semantic recognition result and a second display space to obtain target display information, further comprising: if the third display space is smaller than the first difference space, omitting all auxiliary information from the entry information to be displayed to obtain initial display information; calculating a difference value between the third display space and the first difference space to obtain a second difference space; and according to the second difference space and the priority of the key information, omitting part of the key information from the initial display information to obtain target display information.
Optionally, the obtaining target display information by omitting part of the key information from the initial display information according to the second difference space and the priority of the key information includes: determining the minimum number N of the key information to be omitted according to the second difference space, wherein N is a positive integer; and omitting N pieces of key information with the lowest priority from the initial display information to obtain target display information.
Optionally, the method further includes the step of determining the priority of each piece of key information: acquiring historical behavior information of users in the whole network; performing semantic recognition on each piece of historical behavior information to obtain key information corresponding to each piece of historical behavior information; counting the searching frequency of each key information, and determining the priority of each key information according to the searching frequency of each key information; wherein the priority is proportional to the frequency of searching.
Optionally, the displaying target display information on the current display line includes: inserting an identifier at a truncation position in the target display information; and displaying the target display information after the identifier is inserted in the current display line.
Optionally, the method further comprises: and receiving a first trigger operation of a user for the target display information after the identifier is inserted, and displaying the corresponding entry information to be displayed.
Optionally, the method further comprises: and receiving a second trigger operation of the user aiming at the target display information, and displaying a page corresponding to the to-be-displayed entry information.
Optionally, the historical behavior information includes historical search records, custom tags, and records of historically viewed web pages.
The embodiment of the application further discloses an information display device, which specifically includes: the space determining module is used for determining entry information to be displayed in a search interface and a first display space required by the entry information to be displayed, and determining the remaining second display space of the current display line; the first judgment module is used for judging whether the entry information to be displayed needs to be cut off or not according to the first display space and the second display space; the truncation module is used for truncating the entry information to be displayed by performing semantic recognition on the entry information to be displayed when the entry information to be displayed needs to be truncated to obtain target display information; and the first display module is used for displaying the target display information on the current display line.
Optionally, the first determining module is configured to determine whether the first display space is larger than the second display space; and if the first display space is larger than the second display space, determining that the entry information to be displayed needs to be truncated.
Optionally, the apparatus further comprises: the second judgment module is used for calculating the ratio of the second display space to the first display space when the first display space is larger than the second display space; and if the ratio is larger than or equal to a preset threshold value, performing the operation of determining that the entry information to be displayed needs to be truncated.
Optionally, the apparatus further comprises: and the second display module is used for displaying the entry information to be displayed in the next display line if the ratio is smaller than a preset threshold value.
Optionally, the truncation module includes: the semantic recognition submodule is used for carrying out semantic recognition on the entry information to be displayed to obtain a corresponding semantic recognition result; and the term truncation submodule is used for truncating the term information to be displayed according to the semantic recognition result and the second display space to obtain target display information.
Optionally, the semantic recognition result includes key information and auxiliary information in the entry information to be displayed; the entry truncation submodule comprises: the first omitting unit is used for calculating the difference value between the first display space and the second display space to obtain a first difference value space; calculating a third display space required by auxiliary information in the entry information to be displayed; and if the third display space is larger than or equal to the first difference space, omitting the auxiliary information from the entry information to be displayed to obtain target display information.
Optionally, the entry truncation sub-module further includes: a second omitting unit, configured to, if the third display space is smaller than the first difference space, omit all auxiliary information from the entry information to be displayed, to obtain initial display information; calculating a difference value between the third display space and the first difference space to obtain a second difference space; and according to the second difference space and the priority of the key information, omitting part of the key information from the initial display information to obtain target display information.
Optionally, the second omitting unit is configured to determine, according to the second difference space, a minimum number N of pieces of key information that need to be omitted, where N is a positive integer; and omitting N pieces of key information with the lowest priority from the initial display information to obtain target display information.
Optionally, the apparatus further comprises: the priority determining module is used for acquiring historical behavior information of users in the whole network; performing semantic recognition on each piece of historical behavior information to obtain key information corresponding to each piece of historical behavior information; counting the searching frequency of each key information, and determining the priority of each key information according to the searching frequency of each key information; wherein the priority is proportional to the frequency of searching.
Optionally, the first presentation module is configured to insert an identifier at a truncated position in the target display information; and displaying the target display information after the identifier is inserted in the current display line.
Optionally, the apparatus further comprises: and the third display module is used for receiving a first trigger operation of a user for the target display information after the identifier is inserted, and displaying the corresponding to-be-displayed entry information.
Optionally, the apparatus further comprises: and the fourth display module is used for receiving a second trigger operation of the user for the target display information and displaying the page corresponding to the entry information to be displayed.
Optionally, the historical behavior information includes historical search records, custom tags, and records of historically viewed web pages.
The embodiment of the application 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.
An electronic device is also disclosed in an embodiment of the present application, 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 the one or more processors, the one or more programs including instructions for: determining entry information to be displayed in a search interface and a first display space required by the entry information to be displayed in the search interface, and determining a remaining second display space of a current display line; judging whether the entry information to be displayed needs to be cut off or not according to the first display space and the second display space; when the to-be-displayed entry information is determined to be required to be cut off, the to-be-displayed entry information is cut off by performing semantic recognition on the to-be-displayed entry information to obtain target display information; and displaying the target display information on the current display line.
Optionally, the determining whether the entry information to be displayed needs to be truncated according to the first display space and the second display space includes: judging whether the first display space is larger than the second display space; and if the first display space is larger than the second display space, determining that the entry information to be displayed needs to be truncated.
Optionally, when the first display space is larger than the second display space, further comprising instructions for: calculating the ratio of the second display space to the first display space; and if the ratio is larger than or equal to a preset threshold value, performing the operation of determining that the entry information to be displayed needs to be truncated.
Optionally, further comprising instructions for: and if the ratio is smaller than a preset threshold value, displaying the entry information to be displayed in the next display line.
Optionally, the obtaining target display information by intercepting the to-be-displayed entry information through performing semantic recognition on the to-be-displayed entry information includes: performing semantic recognition on the entry information to be displayed to obtain a corresponding semantic recognition result; and intercepting the entry information to be displayed according to the semantic recognition result and a second display space to obtain target display information.
Optionally, the semantic recognition result includes key information and auxiliary information in the entry information to be displayed; the intercepting the entry information to be displayed according to the semantic recognition result and the second display space to obtain target display information comprises the following steps: calculating a difference value between the first display space and the second display space to obtain a first difference value space; calculating a third display space required by auxiliary information in the entry information to be displayed; and if the third display space is larger than or equal to the first difference space, omitting the auxiliary information from the entry information to be displayed to obtain target display information.
Optionally, the truncating the entry information to be displayed according to the semantic recognition result and a second display space to obtain target display information, further comprising: if the third display space is smaller than the first difference space, omitting all auxiliary information from the entry information to be displayed to obtain initial display information; calculating a difference value between the third display space and the first difference space to obtain a second difference space; and according to the second difference space and the priority of the key information, omitting part of the key information from the initial display information to obtain target display information.
Optionally, the obtaining target display information by omitting part of the key information from the initial display information according to the second difference space and the priority of the key information includes: determining the minimum number N of the key information to be omitted according to the second difference space, wherein N is a positive integer; and omitting N pieces of key information with the lowest priority from the initial display information to obtain target display information.
Optionally, the method further comprises determining the priority of each piece of critical information by: acquiring historical behavior information of users in the whole network; performing semantic recognition on each piece of historical behavior information to obtain key information corresponding to each piece of historical behavior information; counting the searching frequency of each key information, and determining the priority of each key information according to the searching frequency of each key information; wherein the priority is proportional to the frequency of searching.
Optionally, the displaying target display information on the current display line includes: inserting an identifier at a truncation position in the target display information; and displaying the target display information after the identifier is inserted in the current display line.
Optionally, the electronic device further includes: and receiving a first trigger operation of a user for the target display information after the identifier is inserted, and displaying the corresponding entry information to be displayed.
Optionally, the electronic device further includes: and receiving a second trigger operation of the user aiming at the target display information, and displaying a page corresponding to the to-be-displayed entry information.
Optionally, the historical behavior information includes historical search records, custom tags, and records of historically viewed web pages.
The embodiment of the application has the following advantages:
according to the method and the device, the entry information to be displayed in the search interface and a first display space required by the entry information to be displayed in the search interface can be determined, and a second display space remaining in a current display line can be determined; then, judging whether the entry information to be displayed needs to be cut off or not according to the first display space and the second display space; when the term information to be displayed needs to be cut off, the term information to be displayed can be cut off based on the semantics of the term information to be displayed, and then the term information is displayed on the current display line, so that the utilization rate of the tail blank space of each display line can be improved. In addition, the entry information to be displayed is truncated through semantics, so that effective information in the entry information to be displayed can be reserved; therefore, the utilization rate of the page layout is improved while the effective information in the display information is kept.
Drawings
FIG. 1 is a flow chart of the steps of an embodiment of an information display method of the present application;
FIG. 2 is a flow chart of steps in an alternative embodiment of an information display method of the present application;
FIG. 3 is a flow chart of steps in an alternative embodiment of a method of displaying information according to the present application;
FIG. 4 is a flow chart of steps of an embodiment of a method of truncation of information according to the present application;
FIG. 5 is a block diagram of an embodiment of an information display device according to the present application;
FIG. 6 is a block diagram of an alternative embodiment of an information display device of the present application;
FIG. 7 illustrates a block diagram of an electronic device for information display in accordance with an exemplary embodiment;
fig. 8 is a schematic structural diagram of an electronic device for information display according to another exemplary embodiment.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of an information display method according to the present application is shown, which may specifically include the following steps:
step 102, determining entry information to be displayed in a search interface and a first display space required by the entry information to be displayed, and determining a remaining second display space of a current display line.
In the embodiment of the application, the search platform can display the entry information in the search interface, so that a user can conveniently and quickly enter a webpage corresponding to the entry information. Wherein the entry information includes but is not limited to: historical search records, custom tags, records of historically viewed web pages, recommended terms and terms related to search terms, and so forth.
In the embodiment of the application, the search application can determine the display sequence of each entry information; and then sequentially displaying the entry information in the corresponding display areas in the search interface according to the display sequence of the entry information. The size of the display area can be set in advance according to requirements, and the embodiment of the application does not limit the size. For example, if the term information is a history search record, the history search records may be sorted in a descending order according to the time corresponding to each history search record, so as to obtain the display order of each history search record. For another example, if the entry information is a recommended entry, the recommended entries may be sorted in descending order according to the heat of the recommended entries to obtain the display order of the recommended entries; and so on.
In the embodiment of the application, a certain entry message which needs to be displayed currently can be determined as the entry message to be displayed, and then step 102-step 108 can be executed to display the entry message to be displayed; the method and the device improve the utilization rate of page layouts and keep effective information in each piece of historical behavior information needing to be displayed.
In the embodiment of the application, a first display space required by the entry information to be displayed can be determined, and a second display space remaining in a current display line can be determined; and then displaying the entry information to be displayed according to the first display space and the second display space, which can refer to steps 104 to 108.
The first display space may be a space required for completely displaying the entry information to be displayed in one display line of the display area; it can be expressed by the width of the pixel or the number of the characters, which is not limited in the embodiment of the present application. The second display space may refer to a space where the remaining displayable information of the currently displayed line in the display area is displayed; it can be expressed by the width of the pixel or the number of the characters, which is not limited in the embodiment of the present application. The display area may include a plurality of display lines, which may be specifically set as required, and this is not limited in this embodiment of the application.
And 104, judging whether the entry information to be displayed needs to be cut off or not according to the first display space and the second display space.
In the embodiment of the present application, the first display space and the second display space may be represented by the same measurement method. And after the first display space and the second display space are determined, the first display space and the second display space can be directly compared, and a corresponding comparison result is determined. And then judging whether the entry information to be displayed needs to be cut off or not according to the comparison result. If the to-be-displayed entry information is determined not to need to be truncated, the to-be-displayed entry information can be directly displayed on the current display line at the moment, and the to-be-displayed entry information can also be displayed on the next display line. If it is determined that the entry information to be displayed needs to be truncated, step 106 may be executed to truncate the entry information to be displayed.
And 106, when the vocabulary entry information to be displayed needs to be truncated, performing semantic identification on the vocabulary entry information to be displayed to truncate the vocabulary entry information to be displayed, so as to obtain target display information, wherein effective information in the vocabulary entry information to be displayed is reserved in the target display information.
In the embodiment of the application, when the to-be-displayed entry information is determined to be required to be truncated, semantic recognition can be performed on the to-be-displayed entry information. And then, based on the semantic recognition result of the entry information to be displayed, truncating the entry information to be displayed to obtain target display information. And furthermore, by means of semantic-based truncation, the effective information in the entry information to be displayed is prevented from being omitted, so that the effective information in the entry information to be displayed is reserved in the target display information.
And step 108, displaying the target display information on the current display line.
And displaying the target display information, namely the intercepted entry information to be displayed on the current display line. When each piece of target display information or to-be-displayed entry information is displayed, a style can be added to the target display information or to-be-displayed entry information so as to distinguish different items in the same display line to mark the display information or the to-be-displayed entry information. The embodiment of the present application does not limit the added style.
In summary, the embodiment of the application can determine entry information to be displayed in a search interface and a first display space required by the entry information to be displayed, and determine a remaining second display space of a current display line; then, judging whether the entry information to be displayed needs to be cut off or not according to the first display space and the second display space; when the term information to be displayed needs to be cut off, the term information to be displayed can be cut off based on the semantics of the term information to be displayed, and then the term information is displayed on the current display line, so that the utilization rate of the tail blank space of each display line can be improved. In addition, the entry information to be displayed is truncated through semantics, so that effective information in the entry information to be displayed can be reserved; therefore, the utilization rate of the page layout is improved while the effective information in the display information is kept.
An implementation manner of determining whether the entry information to be displayed needs to be truncated is described below.
Referring to fig. 2, a flowchart illustrating steps of an alternative embodiment of the information presentation method of the present application is shown, which may specifically include the following steps:
step 202, determining entry information to be displayed in a search interface and a first display space required by the entry information to be displayed, and determining a remaining second display space of a current display line.
In this embodiment of the present application, the search platform may refer to a search client at a PC (personal computer) end, and may refer to a search application of a mobile terminal, which is not limited in this embodiment of the present application.
In the embodiment of the application, when a user triggers a search box in a search interface to input, entry information can be displayed in the display area. The display position of the display area in the search interface may be set as required, for example, the display position may be all areas below the search box, and for example, the display position may be a partial area below the search box, which is not limited in the embodiment of the present application.
In an example of the present application, after determining entry information to be displayed, counting a number of characters R in the entry information to be displayed, and using the number of characters R as a first display space required by the entry information to be displayed. And counting the number T of characters which can be displayed in the current line, and then using the number T of characters as the second display space of the current display line. Wherein R and T are both positive integers.
In the step 104, it is determined whether the entry information to be displayed needs to be truncated according to the first display space and the second display space, and the following step 204 may be referred to:
and 204, judging whether the first display space is larger than the second display space.
In the embodiment of the application, a mode of judging whether the entry information to be displayed needs to be cut according to the first display space and the second display space may be that the sizes of the first display space and the second display space are compared, and the size relationship between the first display space and the second display space is used as a comparison result. If the first display space is smaller than or equal to the second display space, the remaining second display space of the current line is indicated, and complete entry information to be displayed can be displayed; at this time, it may be determined that the term information to be displayed does not need to be truncated, and step 214 may be performed. If the first display space is larger than the second display space, the remaining second display space of the current line is indicated, and the entry information to be displayed cannot be displayed completely; at this time, it may be determined that the entry information to be displayed needs to be truncated, and step 206 may be performed.
In step 106, when it is determined that the entry information to be displayed needs to be truncated, the entry information to be displayed is truncated by performing semantic recognition on the entry information to be displayed, so as to obtain target display information, which may refer to step 206-208.
And step 206, if the first display space is larger than the second display space, performing semantic recognition on the entry information to be displayed to obtain a corresponding semantic recognition result, wherein the semantic recognition result includes key information and auxiliary information in the entry information to be displayed.
And 208, truncating the entry information to be displayed according to the semantic recognition result and a second display space to obtain target display information.
The key information may refer to information associated with the intention corresponding to the entry information to be displayed, and is the same as the effective information; such as physical words like location, weather, eating, etc. The auxiliary information may refer to information unrelated to the intention corresponding to the entry information to be displayed, such as a fictional word, such as an adverb, a preposition, a conjunctive word, an assistant word, an exclamatory word, an anthropomorphic word, and the like, for example, "a", "do", and the like. And then, the entry information to be displayed can be intercepted according to the key information and the auxiliary information in the semantic recognition result and a second display space, so that target display information is obtained. This will be explained in detail later.
In the embodiment of the application, after the entry information to be displayed is truncated to obtain the target display information, the target information can be displayed on the current display line. The step 108 may refer to, for example, steps 210 to 212:
step 210, inserting an identifier at a truncation position in the target display information.
And step 212, displaying the target display information after the identifier is inserted in the current display line.
In the embodiment of the application, in order to prompt that the history behavior information displayed by the user has omitted content, an identifier, such as an ellipsis, may be inserted into a truncation position in the target display information; of course, other identifiers are also possible, and the embodiment of the present application does not limit this. And then displaying the target display information after the identifier is inserted in the current display line. For example, the entry information to be displayed is: "it is unknown where to eat at noon today", the target after inserting the identifier displays information as "what to eat at noon today.
In an example of the application, a user may view the to-be-displayed entry information corresponding to the target display information into which the identifier is inserted, that is, view the complete to-be-displayed entry information, through a first trigger operation. After the user executes the first trigger operation, the terminal may receive the first trigger operation of the user for the target display information into which the identifier is inserted, and display the corresponding entry information to be displayed.
And 214, if the first display space is smaller than or equal to the second display space, displaying the entry information to be displayed on the current display line.
In this embodiment of the application, if the first display space is less than or equal to the second display space, the entry information to be displayed may be directly displayed on the current display line.
In an example of the application, the user may execute a second trigger operation for the target display information or the to-be-displayed vocabulary entry information displayed in the display area, and enter a corresponding page of the to-be-displayed vocabulary entry information. After the user performs the second trigger operation, the terminal may receive a second trigger operation of the user for the target display information, or display a page corresponding to the entry information to be displayed for the second trigger operation of the entry information to be displayed. For example, if the entry information to be displayed corresponding to the target display information is a history search record, a search result page corresponding to the history search record may be displayed. If the entry information to be displayed corresponding to the target display information is a custom tag, the custom tag can be opened, and the page of the folder corresponding to the custom tag is displayed, wherein the page of the folder corresponding to the custom tag comprises records (such as titles and link addresses) of a plurality of webpage pages collected by the user. And if the entry information to be displayed corresponding to the target display information is a record (such as a title and a link address) of the historically browsed webpage, displaying the historically browsed webpage.
In summary, the embodiment of the application can determine entry information to be displayed in a search interface and a first display space required by the entry information to be displayed, and determine a remaining second display space of a current display line; then, judging whether the entry information to be displayed needs to be cut off or not according to the first display space and the second display space; when the word entry information to be displayed needs to be cut off, the word entry information to be displayed can be cut off based on the semantics of the word entry information to be displayed, and then the word entry information is displayed on the current display line, so that the utilization rate of a blank space at the tail of each display line can be improved, and the attractiveness of a search interface can be improved. In addition, the entry information to be displayed is truncated through semantics, so that effective information in the entry information to be displayed can be reserved; therefore, the utilization rate of the page layout is improved while the effective information in the display information is kept.
Secondly, in the embodiment of the present application, it may be determined whether the first display space is larger than the second display space; if the first display space is larger than the second display space, determining that the entry information to be displayed needs to be cut off; thereby avoiding the waste of the blank space of the current display line.
In addition, in the embodiment of the application, a first trigger operation of a user for target display information after the identifier is inserted can be received, and the corresponding entry information to be displayed is displayed; and then the user can conveniently check the omitted content, and the user experience is improved.
Another implementation manner for determining whether the entry information to be displayed needs to be truncated is described below.
Referring to fig. 3, a flowchart illustrating steps of another alternative embodiment of the information displaying method of the present application is shown, which may specifically include the following steps:
step 302, determining entry information to be displayed in a search interface and a first display space required by the entry information to be displayed, and determining a remaining second display space of a current display line.
This step 302 is similar to the step 202 described above and will not be described herein again.
And step 304, judging whether the first display space is larger than the second display space.
This step 304 is similar to the step 204 described above and will not be described herein again.
When the first display space is larger than the second display space, if the difference between the first display space and the second display space is large, after the entry information to be displayed is cut off, a large amount of effective information in the entry information to be displayed may be omitted, which affects reading of a user. Therefore, in order to avoid that a large amount of valid information in the entry information to be displayed is omitted, when the first display space is larger than the second display space, step 306 may be performed. If the first display space is smaller than or equal to the second display space, the remaining second display space of the current line is indicated, and complete entry information to be displayed can be displayed; at this time, it may be determined that truncation of the entry information to be displayed is not required, and step 318 may be performed.
Step 306, if the first display space is larger than the second display space, calculating a ratio of the second display space to the first display space.
In the embodiment of the application, whether the vocabulary entry information to be displayed needs to be truncated or not can be judged by calculating the ratio of the second display space to the first display space and according to the ratio.
And 308, judging whether the ratio is smaller than a preset threshold value.
If the ratio is greater than or equal to the preset threshold, it indicates that the difference between the first display space and the second display space is small, and at this time, it may be determined that the entry information to be displayed needs to be truncated, and step 310 may be executed. If the ratio is smaller than the preset threshold, it indicates that the difference between the first display space and the second display space is large, and if the to-be-displayed entry information is truncated, a large amount of effective information in the to-be-displayed entry information may be omitted, it may be determined that the to-be-displayed entry information does not need to be truncated, and step 320 may be executed. The preset threshold may be set as 60% as required, which is not limited in the embodiment of the present application.
Of course, other manners may also be adopted to determine whether the entry information to be displayed needs to be truncated. For example, a difference value between the first display space and the second display space is calculated, and the percentage of the difference value in the first display space required by the entry information to be displayed is calculated. Then judging whether the percentage is smaller than a percentage threshold value; if the percentage is less than or equal to the percentage threshold, it indicates that the difference between the first display space and the second display space is small, and at this time, it may be determined that the entry information to be displayed needs to be truncated, and step 310 may be executed. If the percentage is greater than the percentage threshold, it indicates that the difference between the first display space and the second display space is large, and it may be determined that the entry information to be displayed does not need to be truncated, and step 320 may be executed. The percentage threshold may be set as required, for example, 40%, which is not limited in the embodiment of the present application.
In step 106, when it is determined that the entry information to be displayed needs to be truncated, the entry information to be displayed is truncated by performing semantic recognition on the entry information to be displayed to obtain target display information, which may refer to step 310-312.
And 310, if the ratio is greater than or equal to a preset threshold, performing semantic recognition on the entry information to be displayed to obtain a corresponding semantic recognition result, wherein the semantic recognition result comprises key information and auxiliary information in the entry information to be displayed.
And 312, truncating the entry information to be displayed according to the semantic recognition result and a second display space to obtain target display information.
Step 314, inserting an identifier at the truncation position in the target display information.
And step 316, displaying the target display information after the identifier is inserted in the current display line.
The steps 310-316 are similar to the steps 206-212 described above, and will not be described herein again.
Step 318, if the first display space is less than or equal to the second display space, displaying the entry information to be displayed on the current display line.
Step 318 is similar to step 214 described above and will not be described herein.
And step 320, if the ratio is smaller than a preset threshold value, displaying the entry information to be displayed in the next display line.
In this embodiment of the application, if the ratio of the second display space to the first display space is smaller than a preset threshold, the entry information to be displayed may be displayed in a next display line. When it is determined that the entry information to be displayed needs to be displayed in the next display line, the next display line may be determined as the current display line, and then the above steps 302 to 320 are performed again.
In the embodiment of the application, when it is determined that the first display space is larger than the second display space, a ratio of the second display space to the first display space may be further calculated; if the ratio is larger than a preset threshold value, determining that the entry information to be displayed needs to be truncated; and if the ratio is larger than a preset threshold value, determining that the entry information to be displayed needs to be truncated. And further, the problem that when the difference between the second display space and the first display space is too large, too much key information in the entry information to be displayed is omitted is avoided, the influence of reading and displaying the historical behavior information by the user is reduced, and the user experience is improved.
How to truncate the entry information to be displayed is explained below.
Referring to fig. 4, a flowchart illustrating steps of an embodiment of an information truncation method according to the present application is shown, which may specifically include the following steps:
in the above step 208 or 312, the truncating the to-be-displayed entry information according to the semantic recognition result and the second display space to obtain the target display information may include the following steps:
the auxiliary information in the entry information to be displayed can be omitted first; if the space required by the entry information to be displayed after the omission of the auxiliary information is still larger than the second display space, part of the key information in the entry information to be displayed can be omitted.
Step 402, calculating a difference value between the first display space and the second display space to obtain a first difference value space; and calculating a third display space required by auxiliary information in the entry information to be displayed.
Step 404, determining whether the third display space is smaller than the first difference space.
In an example of the present application, a difference between the first display space and the second display space may be calculated to obtain a first difference space; and calculating a third display space required by auxiliary information in the entry information to be displayed, and then judging whether the second display space remaining in the current display line can display complete entry information to be displayed after the auxiliary information is omitted by judging whether the third display space is smaller than the first difference space.
When the third display space is smaller than the first difference space, the remaining second display space of the current display line is described, and complete entry information to be displayed after the auxiliary information is omitted cannot be displayed; at this time, the key information can be continuously omitted from the entry information to be displayed after the auxiliary information is omitted, so as to obtain the target display information. Step 406-step 410 may be performed.
When the third display space is larger than or equal to the first difference space, the remaining second display space of the current display line is described, and complete entry information to be displayed after auxiliary information is omitted can be displayed; at this time, the auxiliary information is omitted from the entry information to be displayed, so that the target display information is obtained, and step 412 may be executed.
And 406, if the third display space is smaller than the first difference space, omitting all auxiliary information from the entry information to be displayed to obtain initial display information.
And 408, calculating a difference value between the third display space and the first difference space to obtain a second difference space.
And step 410, according to the second difference space and the priority of the key information, omitting the key information from the initial display information to obtain target display information.
In this embodiment of the application, when the third display space is smaller than the first difference space, all auxiliary information may be omitted from the entry information to be displayed; for convenience of subsequent description, the entry information to be displayed after all the auxiliary information is omitted may be referred to as initial display information. And calculating a difference value between the third display space and the first difference space to obtain a second difference space, so as to determine how many pieces of key information need to be omitted according to the second difference space.
The step 410 may include the following substeps 22-24:
and a substep 22 of determining the minimum number N of the key information to be omitted according to the second difference space.
And a substep 24 of omitting N pieces of key information with the lowest priority from the initial display information to obtain target display information.
In this embodiment of the application, the number of pieces of key information that need to be omitted may be determined according to the second difference space. In order to enable a user to browse more effective information for each piece of historical behavior information, the minimum number N of pieces of key information needing to be omitted can be determined, wherein N is a positive integer. And then, according to the priority of each piece of key information in the initial display information, omitting N pieces of key information with the lowest priority from the initial display information to obtain target display information.
In the embodiment of the application, the priority of each piece of key information may be predetermined, and then the key information may be omitted from the initial display information according to the second difference space and the priority of the key information, so as to obtain the target display information.
One implementation of determining the priority of each piece of critical information may include the following substeps 42-46:
and a substep 42 of acquiring historical behavior information of the users in the whole network.
And a substep 44 of performing semantic recognition on each piece of historical behavior information to obtain key information corresponding to each piece of historical behavior information.
And a substep 46 of counting the searching frequency of each key information and determining the priority of each key information according to the searching frequency of each key information.
In the embodiment of the application, historical behavior information of the users in the whole network within a set time period can be acquired; the set time period can be set according to requirements, such as the last three months, and the like, and the embodiment of the application does not limit this. And then, performing semantic analysis on each piece of historical behavior information to obtain key information of each piece of historical behavior information. And then counting the occurrence frequency (namely, the search frequency) of each key information from all the key information obtained by performing semantic analysis on all the historical behavior information. The search frequency of each piece of key information may then be mapped to a priority of each piece of key information. The priority is proportional to the search frequency, i.e., the higher the search frequency is, the higher the priority is.
Step 412, if the third display space is greater than or equal to the first difference space, omitting auxiliary information from the entry information to be displayed, and obtaining target display information.
Wherein the space occupied by the omitted auxiliary information is greater than or equal to the first difference space.
In this embodiment of the application, when the third display space is greater than or equal to the first difference space, all or part of the auxiliary information may be omitted from the entry information to be displayed. And when the third display space is equal to the first difference space, omitting all auxiliary information from the entry information to be displayed. When the third display space is larger than the first difference space, all the auxiliary information may be omitted from the entry information to be displayed, and at this time, the space occupied by the omitted auxiliary information is the third display space. Certainly, part of the auxiliary information may also be omitted from the entry information to be displayed, where a space occupied by the omitted auxiliary information is greater than or equal to the first difference space and smaller than a third display space; the embodiments of the present application do not limit this.
In the embodiment of the application, the key information can be omitted from the initial display information according to the second difference space and the priority of the key information, so as to obtain target display information; determining the minimum number N of pieces of key information to be omitted according to the second difference space, and omitting N pieces of key information with the lowest priority from the initial display information to obtain target display information, wherein the priority is in direct proportion to the search frequency; and then, the key information with low priority is preferentially omitted, the key information with the draft of the priority is reserved, the influence of reading the historical behavior information by the user can be further reduced, and the user experience is improved.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the embodiments. Further, those skilled in the art will also appreciate that the embodiments described in the specification are presently preferred and that no particular act is required of the embodiments of the application.
Referring to fig. 5, a block diagram of an embodiment of an information display apparatus according to the present application is shown, and specifically, the information display apparatus may include the following modules:
a space determining module 502, configured to determine entry information to be displayed in a search interface and a first display space required by the entry information to be displayed, and determine a remaining second display space of a current display line;
a first determining module 504, configured to determine whether to truncate the entry information to be displayed according to the first display space and the second display space;
a truncation module 506, configured to truncate the to-be-displayed entry information by performing semantic recognition on the to-be-displayed entry information when it is determined that the to-be-displayed entry information needs to be truncated, so as to obtain target display information;
a first display module 508, configured to display the target display information on the current display line. Referring to FIG. 6, a block diagram of an alternative embodiment of an information presentation device of the present application is shown.
In an optional embodiment of the present application, the first determining module 504 is configured to determine whether the first display space is larger than the second display space; and if the first display space is larger than the second display space, determining that the entry information to be displayed needs to be truncated.
In an optional embodiment of the present application, the apparatus further comprises:
a second determining module 510, configured to calculate a ratio of the second display space to the first display space when the first display space is larger than the second display space; and if the ratio is larger than or equal to a preset threshold value, performing the operation of determining that the entry information to be displayed needs to be truncated.
In an optional embodiment of the present application, the apparatus further includes:
the second display module 512 is configured to display the entry information to be displayed in a next display line if the ratio is smaller than a preset threshold.
In an alternative embodiment of the present application, the truncating module 506 includes:
a semantic identification submodule 5062, configured to perform semantic identification on the entry information to be displayed, so as to obtain a corresponding semantic identification result;
and the vocabulary entry truncation submodule 5064 is used for truncating the vocabulary entry information to be displayed according to the semantic recognition result and the second display space to obtain target display information.
In an optional embodiment of the present application, the semantic recognition result includes key information and auxiliary information in the entry information to be displayed; the entry truncation sub-module 5064 includes:
a first omitting unit 50642, configured to calculate a difference between the first display space and the second display space, so as to obtain a first difference space; calculating a third display space required by auxiliary information in the entry information to be displayed; and if the third display space is larger than or equal to the first difference space, omitting the auxiliary information from the entry information to be displayed to obtain target display information.
In an optional embodiment of the present application, the entry truncation sub-module 5064 further includes:
a second omitting unit 50644, configured to, if the third display space is smaller than the first difference space, omit all auxiliary information from the entry information to be displayed, to obtain initial display information; calculating a difference value between the third display space and the first difference space to obtain a second difference space; and according to the second difference space and the priority of the key information, omitting part of the key information from the initial display information to obtain target display information.
In an alternative embodiment of the present application, the second omitting unit 50644 is configured to: determining the minimum number N of the key information to be omitted according to the second difference space, wherein N is a positive integer; and omitting N pieces of key information with the lowest priority from the initial display information to obtain target display information.
In an optional embodiment of the present application, the apparatus further includes:
a priority determining module 514, configured to obtain historical behavior information of the users in the whole network; performing semantic recognition on each piece of historical behavior information to obtain key information corresponding to each piece of historical behavior information; counting the searching frequency of each key information, and determining the priority of each key information according to the searching frequency of each key information; wherein the priority is proportional to the frequency of searching.
In an optional embodiment of the present application, the first presentation module 508 is configured to insert an identifier at a truncated position in the target display information; and displaying the target display information after the identifier is inserted in the current display line.
In an optional embodiment of the present application, the apparatus further includes:
a third displaying module 516, configured to receive a first trigger operation of the user on the target display information after the identifier is inserted, and display the corresponding to-be-displayed entry information.
In an optional embodiment of the present application, the apparatus further includes:
a fourth displaying module 518, configured to receive a second trigger operation of the user for the target display information, and display a page corresponding to the to-be-displayed entry information.
In an optional embodiment of the present application, the historical behavior information includes a historical search record, a custom tab, and a record of a historical browsed webpage.
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. 7 is a block diagram illustrating a structure of an electronic device 700 for information presentation, according to an example embodiment. For example, the electronic device 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 7, electronic device 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls overall operation of the electronic device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing element 702 may include one or more processors 720 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 702 may include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 can include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operation at the device 700. Examples of such data include instructions for any application or method operating on the electronic device 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 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 706 provides power to the various components of the electronic device 700. The power components 706 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 700.
The multimedia component 708 includes a screen that provides an output interface between the electronic device 700 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 708 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 700 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 704 or transmitted via the communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for the electronic device 700. For example, the sensor assembly 714 may detect an open/closed state of the device 700, the relative positioning of components, such as a display and keypad of the electronic device 700, the sensor assembly 714 may also detect a change in the position of the electronic device 700 or a component of the electronic device 700, the presence or absence of user contact with the electronic device 700, orientation or acceleration/deceleration of the electronic device 700, and a change in the temperature of the electronic device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 714 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 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate wired or wireless communication between the electronic device 700 and other devices. The electronic device 700 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 714 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 714 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 700 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 704 comprising instructions, executable by the processor 720 of the electronic device 700 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 entry information to be displayed in a search interface and a first display space required by the entry information to be displayed in the search interface, and determining a remaining second display space of a current display line; judging whether the entry information to be displayed needs to be cut off or not according to the first display space and the second display space; when the to-be-displayed entry information is determined to be required to be cut off, the to-be-displayed entry information is cut off by performing semantic recognition on the to-be-displayed entry information to obtain target display information; and displaying the target display information on the current display line.
Optionally, the determining whether the entry information to be displayed needs to be truncated according to the first display space and the second display space includes: judging whether the first display space is larger than the second display space; and if the first display space is larger than the second display space, determining that the entry information to be displayed needs to be truncated.
Optionally, when the first display space is larger than the second display space, the method further includes: calculating the ratio of the second display space to the first display space; and if the ratio is larger than or equal to a preset threshold value, performing the operation of determining that the entry information to be displayed needs to be truncated.
Optionally, the method further comprises: and if the ratio is smaller than a preset threshold value, displaying the entry information to be displayed in the next display line.
Optionally, the obtaining target display information by intercepting the to-be-displayed entry information through performing semantic recognition on the to-be-displayed entry information includes: performing semantic recognition on the entry information to be displayed to obtain a corresponding semantic recognition result; and intercepting the entry information to be displayed according to the semantic recognition result and a second display space to obtain target display information.
Optionally, the semantic recognition result includes key information and auxiliary information in the entry information to be displayed; the intercepting the entry information to be displayed according to the semantic recognition result and the second display space to obtain target display information comprises the following steps: calculating a difference value between the first display space and the second display space to obtain a first difference value space; calculating a third display space required by auxiliary information in the entry information to be displayed; and if the third display space is larger than or equal to the first difference space, omitting the auxiliary information from the entry information to be displayed to obtain target display information.
Optionally, the truncating the entry information to be displayed according to the semantic recognition result and a second display space to obtain target display information, further comprising: if the third display space is smaller than the first difference space, omitting all auxiliary information from the entry information to be displayed to obtain initial display information; calculating a difference value between the third display space and the first difference space to obtain a second difference space; and according to the second difference space and the priority of the key information, omitting part of the key information from the initial display information to obtain target display information.
Optionally, the obtaining target display information by omitting part of the key information from the initial display information according to the second difference space and the priority of the key information includes: determining the minimum number N of the key information to be omitted according to the second difference space, wherein N is a positive integer; and omitting N pieces of key information with the lowest priority from the initial display information to obtain target display information.
Optionally, the method further includes the step of determining the priority of each piece of key information: acquiring historical behavior information of users in the whole network; performing semantic recognition on each piece of historical behavior information to obtain key information corresponding to each piece of historical behavior information; counting the searching frequency of each key information, and determining the priority of each key information according to the searching frequency of each key information; wherein the priority is proportional to the frequency of searching.
Optionally, the displaying target display information on the current display line includes: inserting an identifier at a truncation position in the target display information; and displaying the target display information after the identifier is inserted in the current display line.
Optionally, the method further comprises: and receiving a first trigger operation of a user for the target display information after the identifier is inserted, and displaying the corresponding entry information to be displayed.
Optionally, the method further comprises: and receiving a second trigger operation of the user aiming at the target display information, and displaying a page corresponding to the to-be-displayed entry information.
Optionally, the historical behavior information includes historical search records, custom tags, and records of historically viewed web pages.
Fig. 8 is a schematic structural diagram of an electronic device 800 for information presentation according to another exemplary embodiment. The electronic device 800 may be a server, which may vary widely depending on configuration or performance, and may include one or more Central Processing Units (CPUs) 822 (e.g., one or more processors) and memory 832, one or more storage media 830 (e.g., one or more mass storage devices) storing applications 842 or data 844. Memory 832 and storage medium 830 may be, among other things, transient or persistent storage. The program stored in the storage medium 830 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, the central processor 822 may be configured to communicate with the storage medium 830 to execute a series of instruction operations in the storage medium 830 on the server.
The server may also include one or more power supplies 826, one or more wired or wireless network interfaces 850, one or more input-output interfaces 858, one or more keyboards 856, and/or one or more operating systems 841, such as WindowsServerTM, MacOS 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 entry information to be displayed in a search interface and a first display space required by the entry information to be displayed in the search interface, and determining a remaining second display space of a current display line; judging whether the entry information to be displayed needs to be cut off or not according to the first display space and the second display space; when the to-be-displayed entry information is determined to be required to be cut off, the to-be-displayed entry information is cut off by performing semantic recognition on the to-be-displayed entry information to obtain target display information; and displaying the target display information on the current display line.
Optionally, the determining whether the entry information to be displayed needs to be truncated according to the first display space and the second display space includes: judging whether the first display space is larger than the second display space; and if the first display space is larger than the second display space, determining that the entry information to be displayed needs to be truncated.
Optionally, when the first display space is larger than the second display space, further comprising instructions for: calculating the ratio of the second display space to the first display space; and if the ratio is larger than or equal to a preset threshold value, performing the operation of determining that the entry information to be displayed needs to be truncated.
Optionally, further comprising instructions for: and if the ratio is smaller than a preset threshold value, displaying the entry information to be displayed in the next display line.
Optionally, the obtaining target display information by intercepting the to-be-displayed entry information through performing semantic recognition on the to-be-displayed entry information includes: performing semantic recognition on the entry information to be displayed to obtain a corresponding semantic recognition result; and intercepting the entry information to be displayed according to the semantic recognition result and a second display space to obtain target display information.
Optionally, the semantic recognition result includes key information and auxiliary information in the entry information to be displayed; the intercepting the entry information to be displayed according to the semantic recognition result and the second display space to obtain target display information comprises the following steps: calculating a difference value between the first display space and the second display space to obtain a first difference value space; calculating a third display space required by auxiliary information in the entry information to be displayed; and if the third display space is larger than or equal to the first difference space, omitting the auxiliary information from the entry information to be displayed to obtain target display information.
Optionally, the truncating the entry information to be displayed according to the semantic recognition result and a second display space to obtain target display information, further comprising: if the third display space is smaller than the first difference space, omitting all auxiliary information from the entry information to be displayed to obtain initial display information; calculating a difference value between the third display space and the first difference space to obtain a second difference space; and according to the second difference space and the priority of the key information, omitting part of the key information from the initial display information to obtain target display information.
Optionally, the obtaining target display information by omitting part of the key information from the initial display information according to the second difference space and the priority of the key information includes: determining the minimum number N of the key information to be omitted according to the second difference space, wherein N is a positive integer; and omitting N pieces of key information with the lowest priority from the initial display information to obtain target display information.
Optionally, the method further comprises determining the priority of each piece of critical information by: acquiring historical behavior information of users in the whole network; performing semantic recognition on each piece of historical behavior information to obtain key information corresponding to each piece of historical behavior information; counting the searching frequency of each key information, and determining the priority of each key information according to the searching frequency of each key information; wherein the priority is proportional to the frequency of searching.
Optionally, the displaying target display information on the current display line includes: inserting an identifier at a truncation position in the target display information; and displaying the target display information after the identifier is inserted in the current display line.
Optionally, the electronic device further includes: and receiving a first trigger operation of a user for the target display information after the identifier is inserted, and displaying the corresponding entry information to be displayed.
Optionally, the electronic device further includes: and receiving a second trigger operation of the user aiming at the target display information, and displaying a page corresponding to the to-be-displayed entry information.
Optionally, the historical behavior information includes historical search records, custom tags, and records of historically viewed web pages.
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 application 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 application. 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 application 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 the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.
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. Also, 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 application are introduced in detail, and specific examples are applied in the text to explain the principle and the implementation of the application, and the description of the above embodiments is only used to help understand the method and the core idea of the application; meanwhile, for a person skilled in the art, according to the idea of the present application, 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 application.

Claims (10)

1. An information display method, comprising:
determining entry information to be displayed in a search interface and a first display space required by the entry information to be displayed in the search interface, and determining a remaining second display space of a current display line;
judging whether the entry information to be displayed needs to be cut off or not according to the first display space and the second display space;
when the to-be-displayed entry information is determined to be required to be cut off, the to-be-displayed entry information is cut off by performing semantic recognition on the to-be-displayed entry information to obtain target display information;
and displaying the target display information on the current display line.
2. The method according to claim 1, wherein the determining whether the entry information to be displayed needs to be truncated according to the first display space and the second display space comprises:
judging whether the first display space is larger than the second display space;
and if the first display space is larger than the second display space, determining that the entry information to be displayed needs to be truncated.
3. The method of claim 2, wherein when the first display space is larger than the second display space, the method further comprises:
calculating the ratio of the second display space to the first display space;
and if the ratio is larger than or equal to a preset threshold value, performing the operation of determining that the entry information to be displayed needs to be truncated.
4. The method of claim 3, further comprising:
and if the ratio is smaller than a preset threshold value, displaying the entry information to be displayed in the next display line.
5. The method according to claim 1, wherein the truncating the entry information to be displayed by performing semantic recognition on the entry information to be displayed to obtain target display information comprises:
performing semantic recognition on the entry information to be displayed to obtain a corresponding semantic recognition result;
and intercepting the entry information to be displayed according to the semantic recognition result and a second display space to obtain target display information.
6. The method according to claim 5, wherein the semantic recognition result comprises key information and auxiliary information in the entry information to be displayed;
the intercepting the entry information to be displayed according to the semantic recognition result and the second display space to obtain target display information comprises the following steps:
calculating a difference value between the first display space and the second display space to obtain a first difference value space;
calculating a third display space required by auxiliary information in the entry information to be displayed;
and if the third display space is larger than or equal to the first difference space, omitting the auxiliary information from the entry information to be displayed to obtain target display information.
7. The method according to claim 6, wherein the truncating the entry information to be displayed according to the semantic recognition result and a second display space to obtain target display information, further comprises:
if the third display space is smaller than the first difference space, omitting all auxiliary information from the entry information to be displayed to obtain initial display information;
calculating a difference value between the third display space and the first difference space to obtain a second difference space;
and according to the second difference space and the priority of the key information, omitting part of the key information from the initial display information to obtain target display information.
8. An information display device, comprising
The space determining module is used for determining entry information to be displayed in a search interface and a first display space required by the entry information to be displayed, and determining the remaining second display space of the current display line;
the first judgment module is used for judging whether the entry information to be displayed needs to be cut off or not according to the first display space and the second display space;
the truncation module is used for truncating the entry information to be displayed by performing semantic recognition on the entry information to be displayed when the entry information to be displayed needs to be truncated to obtain target display information;
and the first display module is used for displaying the target display information on the current display line.
9. 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.
10. 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 entry information to be displayed in a search interface and a first display space required by the entry information to be displayed in the search interface, and determining a remaining second display space of a current display line;
judging whether the entry information to be displayed needs to be cut off or not according to the first display space and the second display space;
when the to-be-displayed entry information is determined to be required to be cut off, the to-be-displayed entry information is cut off by performing semantic recognition on the to-be-displayed entry information to obtain target display information;
and displaying the target display information on the current display line.
CN201911216377.XA 2019-12-02 2019-12-02 Information display method and device and electronic equipment Pending CN112989231A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911216377.XA CN112989231A (en) 2019-12-02 2019-12-02 Information display method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911216377.XA CN112989231A (en) 2019-12-02 2019-12-02 Information display method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112989231A true CN112989231A (en) 2021-06-18

Family

ID=76331471

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911216377.XA Pending CN112989231A (en) 2019-12-02 2019-12-02 Information display method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112989231A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130097482A1 (en) * 2011-10-13 2013-04-18 Microsoft Corporation Search result entry truncation using pixel-based approximation
CN105426537A (en) * 2015-12-21 2016-03-23 北京奇虎科技有限公司 Recommendation method for navigation page search keywords and terminal equipment
CN105630909A (en) * 2015-12-21 2016-06-01 北京奇虎科技有限公司 Method and device for displaying normalized header information
CN106850923A (en) * 2017-01-09 2017-06-13 北京奇虎科技有限公司 Associated person information display methods, system and its equipment
CN108376165A (en) * 2018-02-24 2018-08-07 上海威朗进出口有限公司 A kind of information displaying method and device
US20190065446A1 (en) * 2017-08-22 2019-02-28 Microsoft Technology Licensing, Llc Reducing text length while preserving meaning
US10282479B1 (en) * 2014-05-08 2019-05-07 Google Llc Resource view data collection
CN110147483A (en) * 2017-09-12 2019-08-20 阿里巴巴集团控股有限公司 A kind of title method for reconstructing and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130097482A1 (en) * 2011-10-13 2013-04-18 Microsoft Corporation Search result entry truncation using pixel-based approximation
US10282479B1 (en) * 2014-05-08 2019-05-07 Google Llc Resource view data collection
CN105426537A (en) * 2015-12-21 2016-03-23 北京奇虎科技有限公司 Recommendation method for navigation page search keywords and terminal equipment
CN105630909A (en) * 2015-12-21 2016-06-01 北京奇虎科技有限公司 Method and device for displaying normalized header information
CN106850923A (en) * 2017-01-09 2017-06-13 北京奇虎科技有限公司 Associated person information display methods, system and its equipment
US20190065446A1 (en) * 2017-08-22 2019-02-28 Microsoft Technology Licensing, Llc Reducing text length while preserving meaning
CN110147483A (en) * 2017-09-12 2019-08-20 阿里巴巴集团控股有限公司 A kind of title method for reconstructing and device
CN108376165A (en) * 2018-02-24 2018-08-07 上海威朗进出口有限公司 A kind of information displaying method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘合兵;尚俊平;席磊;张浩;: "基于用户标签和时间维度的信息检索方法", 农业工程技术, no. 33, 25 November 2015 (2015-11-25), pages 55 - 58 *
史晶;吴庆波;杨沙洲;: "移动终端个性化页面显示优化技术研究", 计算机工程, no. 18, 20 September 2012 (2012-09-20), pages 283 - 287 *

Similar Documents

Publication Publication Date Title
CN107888981B (en) Audio and video preloading method, device, equipment and storage medium
EP3407215B1 (en) Method, device, and computer-readable storage medium for collecting information resources
CN107193976B (en) Information resource display method, device and computer readable storage medium
CN106896991B (en) Method and device for updating information
JP2016522483A (en) Page rollback control method, page rollback control device, terminal, program, and recording medium
CN107229705B (en) Information resource searching method, device and computer readable storage medium
EP3128411A1 (en) Interface display method and device
CN107315487B (en) Input processing method and device and electronic equipment
WO2017181663A1 (en) Method and device for matching image to search information
CN110391966B (en) Message processing method and device and message processing device
CN107229403B (en) Information content selection method and device
TW201918962A (en) Interface display method and device
CN106815291B (en) Search result item display method and device and search result item display device
CN107515870B (en) Searching method and device and searching device
CN111382339A (en) Search processing method and device and search processing device
CN104951445B (en) Webpage processing method and device
CN107784037B (en) Information processing method and device, and device for information processing
CN108268507B (en) Browser-based processing method and device and electronic equipment
CN110020346B (en) Page storage method and device
CN108108356B (en) Character translation method, device and equipment
CN108572980B (en) Webpage split-screen display method and device
CN114090870A (en) Search result processing method and device, electronic equipment and storage medium
CN113918661A (en) Knowledge graph generation method and device and electronic equipment
CN112989231A (en) Information display method and device and electronic equipment
CN109558197B (en) Information recommendation method and device

Legal Events

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