CN113836453A - Text display method and device - Google Patents

Text display method and device Download PDF

Info

Publication number
CN113836453A
CN113836453A CN202111040302.8A CN202111040302A CN113836453A CN 113836453 A CN113836453 A CN 113836453A CN 202111040302 A CN202111040302 A CN 202111040302A CN 113836453 A CN113836453 A CN 113836453A
Authority
CN
China
Prior art keywords
target text
text
segment
target
keyword
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
CN202111040302.8A
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.)
Advanced New Technologies Co Ltd
Original Assignee
Advanced New Technologies 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 Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN202111040302.8A priority Critical patent/CN113836453A/en
Publication of CN113836453A publication Critical patent/CN113836453A/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/957Browsing optimisation, e.g. caching or content distillation

Abstract

The application provides a text display method and device. The method comprises the following steps: extracting text keywords based on the service operation of the user; after a text browsing instruction is received, searching a target text segment matched with the text keyword in a target text; and when the target text is displayed, the target text segments in the target text are displayed in a distinguishing manner. According to the method and the device, the text keywords can be extracted based on the business operation of the user, and the target text segments matched with the text keywords in the target text are displayed in a distinguished mode when the target text is displayed, so that the content which the user is interested in can be marked in the target text, the information browsing efficiency of the user is improved, and the user experience is improved.

Description

Text display method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a text display method and apparatus.
Background
With the rapid development of internet technology, more and more users browse information through the internet, such as browsing news, information, etc. When the information content browsed by the user is more, the user needs to spend much time to understand the core content, and the user experience is reduced.
Disclosure of Invention
In view of the above, the present application provides a text display method and apparatus.
Specifically, the method is realized through the following technical scheme:
a method of text presentation, the method comprising:
extracting text keywords based on the service operation of the user;
after a text browsing instruction is received, searching a target text segment matched with the text keyword in a target text;
and when the target text is displayed, the target text segments in the target text are displayed in a distinguishing manner.
A text presentation device, the device comprising:
a keyword extraction unit for extracting text keywords based on the service operation of the user;
the keyword searching unit is used for searching a target text segment matched with the text keyword in a target text after receiving a text browsing instruction;
and the text display unit is used for displaying the target text in a distinguishing way when the target text is displayed.
The method and the device can extract the text keywords based on the service operation of the user, and differently display the target text segments matched with the text keywords in the target text when the target text is displayed, so that the content which the user is interested in can be marked in the target text, the information browsing efficiency of the user is improved, and the user experience is improved.
Drawings
Fig. 1 is a flowchart illustrating a text presentation method according to an exemplary embodiment of the present application.
Fig. 2 is a schematic diagram of a target text page according to an exemplary embodiment of the present application.
FIG. 3 is a schematic diagram of another target text page shown in an exemplary embodiment of the present application.
Fig. 4 is a schematic structural diagram of a text display device according to an exemplary embodiment of the present application.
Fig. 5 is a schematic structural diagram of a text display device according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Fig. 1 is a flowchart illustrating a text presentation method according to an exemplary embodiment of the present application.
Referring to fig. 1, the text display method may be applied to a client installed in a terminal device, where the terminal device may include an intelligent device such as a smart phone, a tablet computer, a PC (Personal computer), a PDA (Personal Digital Assistant), and the like. The text presentation method may include the steps of:
and 101, extracting text keywords based on the service operation of the user.
In this embodiment, a user may complete a relevant service operation through a client, and the client may extract a text keyword according to the service operation of the user, so as to obtain information that the user pays attention to at ordinary times. The business operation may be an operation in which a user selects a business object, or the business operation may be an operation in which the user adds attention to the business object, and the like, which is not particularly limited in the present application. In this step, the client may extract an identifier of a business object selected or concerned by the user as the text keyword, such as: the client may extract the name of the business object selected by the user as the file keyword.
For example, assuming that the client is a client with stock buying and selling functions, the business operations may include: the operation of the user buying the stocks, the operation of the user adding the optional shares, of course, the business operation may also include the operation of the user searching the stocks, etc. In this step, the client may take stocks purchased by the user, optional shares, and stocks searched by the user as the text keywords, which cover stocks that the user pays attention to at ordinary times.
And step 102, after receiving a text browsing instruction, searching a target text segment matched with the text keyword in a target text.
In this embodiment, the text browsing instruction is usually triggered by a user, and after receiving the text browsing instruction, the client may search for a target text segment in a target text specified by the text browsing instruction, for example: the client may search the target text for the text keyword, and after the text keyword is searched, a sentence where the text keyword is located may be used as the target text segment. When determining the sentence where the text keyword is located, a period may be used as a reference, specifically, periods may be searched forward and backward respectively based on the text keyword, and the sentence between the two searched periods is used as the target text segment.
In this embodiment, if a target text segment matching the text keyword can be searched in the target text, step 103 may be executed. If the target text segment matching the text keyword is not searched in the target text, the process of the application can be ended, and the target text is displayed according to the display scheme provided in the related technology.
And 103, when the target text is displayed, differently displaying the target text segments in the target text.
Based on the foregoing step 102, when the target text segment matching the text keyword is searched, the target text segment may be displayed with a display parameter different from the non-target text segment in the target text. Wherein the presentation parameters may include: font color, font shading, highlighting parameters, etc. For example, when the target text is displayed, the target text segment in the target text may be highlighted, or may be displayed after underlining is added to the target text segment.
Optionally, in an example, in order to enable a user to intuitively know text keywords matching a target text segment, when the target text is displayed, a tag may be added to the target text segment in the target text to label the text keywords matching the target text segment. Still taking the client as the client with stock buying and selling functions as an example, please refer to fig. 2, and assume that the text keywords extracted by the client are: "China Zhongliang" and "Huayuan estate", then when the user browses the information with the title "two-line city entering Queen season central enterprise, national enterprise entitled the male land market", the client searches the target text segment matching the text keyword "China Zhongliang" in the text of the information, and when the information is displayed, adds underline to the target text segment matching "China Zhongliang", in addition, the client can also add the text keyword "China Zhongliang" to the target text segment, such as: and displaying Chinese Zhongliang in front of the target text segment in a form of a suspension box. Of course, in practical applications, the target text segment may also be labeled in other manners, which is not limited in this application.
The method and the device can extract the text keywords based on the service operation of the user, and differently display the target text segments matched with the text keywords in the target text when the target text is displayed, so that the content which the user is interested in can be marked in the target text, the information browsing efficiency of the user is improved, and the user experience is improved.
Optionally, in another example of the present application, the client may present a text keyword in a presentation page of the target text, and provide an integration option for the user. With continued reference to fig. 2, the client may display the text keywords "chinese traditional food" and "huayuan" in the display page of the target text, and provide integration options, such as: fig. 2 shows buttons on the right side of the text keyword.
In this embodiment, when the user triggers the integration option, the client may hide the non-target text segment in the target text, integrate the target text segment in the target text, and display the integrated target text segment. Optionally, when the client integrates the target text segments in the target text, the client may integrate the target text segments by using the text keywords as dimensions. For example, assuming that there are 3 target text segments in the target text, where a text keyword matched with two target text segments is a first text keyword, for convenience of description, the two target text segments may be referred to as a first target text segment, a text keyword matched with another target text segment is a second text keyword, and this target text segment may be referred to as a second target text segment, when target text segments are integrated, the first target text segment and the second target text segment may be distinguished. After the integration is completed, the client may display a first target text segment matching the first text keyword, and may display a second target text segment matching the second text keyword after the user triggers a switching option for the first target text segment. And analogizing in sequence, when a third target text segment matching a third text keyword exists in the target text, after the user triggers a switching option for the second target text segment, the first target text segment or the third target text segment can be displayed according to the switching option, so that switching among the target text segments is realized, and the user can browse conveniently.
Still taking the target text shown in fig. 2 as an example, please refer to fig. 3, after the user triggers and clicks the integration option provided in the page, the client integrates all target text segments in the target text with "chinese zhongliang" and "huayuan" as dimensions, and then displays the first target text segment matching "chinese zhongliang". When the user triggers the switch option, such as: the user enters a swipe gesture that slides to the left or the user clicks a button to the right, and the client may present a second target text segment that matches "huayuan. The user can intuitively know the text keywords matched with the current target text segment, and switches between the target text segments matched with different text keywords through the switching options, so that the information browsing efficiency of the user is greatly improved.
In this embodiment, when browsing the integrated target text segment, the user may exit the display page of the target text segment through an exit instruction to restore the display page of the target text. With continued reference to fig. 3, the user may click on the exit button in the upper right corner of the page and the client may restore the current page to the target text presentation page shown in fig. 2.
According to the method and the device, when the user triggers the integration option, the non-target text segment in the target text can be hidden, the integrated target text segment is displayed, and the user can conveniently browse the concerned information in a centralized manner.
Corresponding to the embodiment of the text display method, the application also provides an embodiment of a text display device.
The embodiment of the text display device can be applied to a client loaded on the terminal equipment. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. The software implementation is taken as an example, and as a logical device, the device is formed by reading corresponding computer program instructions in the nonvolatile memory into the memory for operation through the processor of the terminal device where the device is located. In terms of hardware, as shown in fig. 4, the present application text shows a hardware structure diagram of a terminal device where the apparatus is located, and the terminal device where the apparatus is located in the embodiment may further include other hardware according to an actual function of the terminal device, in addition to the processor, the memory, the network interface, and the nonvolatile memory shown in fig. 4, which is not described again.
Fig. 5 is a schematic structural diagram of a text display device according to an exemplary embodiment of the present application.
Referring to fig. 5, the text display apparatus 400 can be applied to the terminal device shown in fig. 4, and includes: a keyword extraction unit 401, a keyword search unit 402, a text presentation unit 403, an option providing unit 404, a section integration unit 405, a section presentation unit 406, a section switching unit 407, a section exit unit 408, and a tag addition unit 409.
The keyword extraction unit 401 extracts text keywords based on a service operation of a user;
the keyword searching unit 402 searches a target text segment matching the text keyword in a target text after receiving a text browsing instruction;
the text display unit 403 displays the target text segments in the target text differently when displaying the target text.
The option providing unit 404, providing an integration option in the display page of the target text;
the segment integration unit 405, when the user triggers the integration option, hides a non-target text segment in the target text and integrates a target text segment in the target text;
the segment displaying unit 406 displays the integrated target text segment.
Optionally, the segment integration unit 405 integrates the target text segment with a text keyword as a dimension;
the segment display unit 406 displays a first target text segment matching the first text keyword.
The segment switching unit 407, after the user triggers the switching option for the first target text segment, displays a second target text segment matching the second text keyword.
The segment exit unit 408, when receiving an exit instruction based on the display page of the first target text segment, restores the display page of the target text.
The tag adding unit 409 adds a tag to the target text segment, where the tag is a text keyword matched with the target text segment.
Optionally, the text displaying unit 403 displays the target text segment with a display parameter different from a non-target text segment in the target text when displaying the target text.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. A text presentation method, the method comprising:
extracting text keywords based on the service operation of the user;
after a text browsing instruction is received, searching a target text segment matched with the text keyword in a target text; the target text is a text specified by the text browsing instruction;
when the target text is displayed, the target text segments in the target text are displayed in a distinguishing manner;
the method further comprises the following steps:
providing integration options in a display page of the target text;
when the user triggers the integration option, hiding non-target text segments in the target text and integrating the target text segments in the target text;
and displaying the integrated target text segment.
2. The method of claim 1, wherein the integrating the target text segment in the target text comprises:
integrating the target text segments by taking the text keywords as dimensions;
the displaying the integrated target text segment includes:
and displaying the first target text segment matched with the first text keyword.
3. The method of claim 2, further comprising:
and when the user triggers a switching option aiming at the first target text segment, displaying a second target text segment matched with a second text keyword.
4. The method of claim 1, further comprising:
and adding a label to the target text segment, wherein the label is a text keyword matched with the target text segment.
5. The method of claim 1, wherein said distinctively presenting target text segments in said target text comprises:
and displaying the target text segment with a display parameter different from the non-target text segment in the target text.
6. A text presentation device, the device comprising:
a keyword extraction unit for extracting text keywords based on the service operation of the user;
the keyword searching unit is used for searching a target text segment matched with the text keyword in a target text after receiving a text browsing instruction; the target text is a text specified by the text browsing instruction;
the text display unit is used for displaying the target text in a distinguishing way when the target text is displayed;
wherein the apparatus further comprises:
the option providing unit is used for providing integration options in a display page of the target text;
the segment integration unit is used for hiding the non-target text segments in the target text and integrating the target text segments in the target text when the user triggers the integration option;
and the fragment display unit is used for displaying the integrated target text fragments.
7. The apparatus of claim 6,
the segment integration unit integrates the target text segment by taking text keywords as dimensions;
the segment display unit displays a first target text segment matched with the first text keyword.
8. The apparatus of claim 7, further comprising:
and the segment switching unit is used for displaying a second target text segment matched with the second text key words after the user triggers the switching option aiming at the first target text segment.
9. The apparatus of claim 6, further comprising:
and the label adding unit is used for adding labels to the target text segments, wherein the labels are text keywords matched with the target text segments.
10. The apparatus of claim 6,
and the text display unit displays the target text segment by using a display parameter different from a non-target text segment in the target text when the target text is displayed.
CN202111040302.8A 2016-03-17 2016-03-17 Text display method and device Pending CN113836453A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111040302.8A CN113836453A (en) 2016-03-17 2016-03-17 Text display method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610153970.4A CN107203546B (en) 2016-03-17 2016-03-17 Text display method and device
CN202111040302.8A CN113836453A (en) 2016-03-17 2016-03-17 Text display method and device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201610153970.4A Division CN107203546B (en) 2016-03-17 2016-03-17 Text display method and device

Publications (1)

Publication Number Publication Date
CN113836453A true CN113836453A (en) 2021-12-24

Family

ID=59904101

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202111040302.8A Pending CN113836453A (en) 2016-03-17 2016-03-17 Text display method and device
CN201610153970.4A Active CN107203546B (en) 2016-03-17 2016-03-17 Text display method and device

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201610153970.4A Active CN107203546B (en) 2016-03-17 2016-03-17 Text display method and device

Country Status (1)

Country Link
CN (2) CN113836453A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111045836B (en) * 2019-11-25 2023-05-09 腾讯科技(深圳)有限公司 Search method, search device, electronic equipment and computer readable storage medium
CN110968677B (en) * 2019-12-20 2023-03-14 医渡云(北京)技术有限公司 Text addressing method and device, medium and electronic equipment
CN111339288A (en) * 2020-02-25 2020-06-26 北京字节跳动网络技术有限公司 Method, device, equipment and computer readable medium for displaying text

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050149576A1 (en) * 2003-12-31 2005-07-07 Google Inc. A Delaware Corporation Systems and methods for direct navigation to specific portion of target document
US20080148193A1 (en) * 2001-09-13 2008-06-19 John Moetteli System and method of efficient web browsing
CN102929924A (en) * 2012-09-20 2013-02-13 百度在线网络技术(北京)有限公司 Method and device for generating word selecting searching result based on browsing content
CN102945243A (en) * 2012-09-20 2013-02-27 百度在线网络技术(北京)有限公司 Contact information identification method based on browsing contents
CN104462427A (en) * 2014-12-12 2015-03-25 百度在线网络技术(北京)有限公司 Method and device for displaying search contents
CN105005562A (en) * 2014-04-15 2015-10-28 索意互动(北京)信息技术有限公司 Retrieval result display processing method and apparatus

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101799816A (en) * 2009-12-25 2010-08-11 华为终端有限公司 Method and mobile terminal for searching keywords in mobile terminal information
CN107644082B (en) * 2013-03-07 2021-04-16 海信视像科技股份有限公司 Information searching and displaying method and device
CN104715064B (en) * 2015-03-31 2018-11-02 北京奇虎科技有限公司 It is a kind of to realize the method and server that keyword is marked on webpage
CN105630454A (en) * 2016-01-29 2016-06-01 广东欧珀移动通信有限公司 Information display method and terminal equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080148193A1 (en) * 2001-09-13 2008-06-19 John Moetteli System and method of efficient web browsing
US20050149576A1 (en) * 2003-12-31 2005-07-07 Google Inc. A Delaware Corporation Systems and methods for direct navigation to specific portion of target document
CN102929924A (en) * 2012-09-20 2013-02-13 百度在线网络技术(北京)有限公司 Method and device for generating word selecting searching result based on browsing content
CN102945243A (en) * 2012-09-20 2013-02-27 百度在线网络技术(北京)有限公司 Contact information identification method based on browsing contents
CN105005562A (en) * 2014-04-15 2015-10-28 索意互动(北京)信息技术有限公司 Retrieval result display processing method and apparatus
CN104462427A (en) * 2014-12-12 2015-03-25 百度在线网络技术(北京)有限公司 Method and device for displaying search contents

Also Published As

Publication number Publication date
CN107203546B (en) 2021-07-16
CN107203546A (en) 2017-09-26

Similar Documents

Publication Publication Date Title
CN112084268B (en) Method and device for displaying search results and computer storage medium
US8185524B2 (en) Method and system for locating events in-context
US20240019989A1 (en) Information presentation method and apparatus, and computer storage medium
US20230401256A1 (en) Method and apparatus for information display, and non-volatile computer storage medium
US10402479B2 (en) Method, server, browser, and system for recommending text information
CN104102639B (en) Popularization triggering method based on text classification and device
CN102866785A (en) Text input method, system and device
CN105183787A (en) Information input method and apparatus
US20170287041A1 (en) Information processing apparatus, information processing method, and information processing program
CN105786976A (en) Mobile terminal and application search method thereof
CN107203546B (en) Text display method and device
CN104077337A (en) Searching method and device
CN113849748A (en) Information display method and device, electronic equipment and readable storage medium
CN112667120A (en) Display method and device of interactive icon and electronic equipment
CN112035748A (en) Information recommendation method and device, electronic equipment and storage medium
US11170403B2 (en) Content tagging
US20140214541A1 (en) Method and system for user-controlled rendering of mobile advertisements
US11170039B2 (en) Search system, search criteria setting device, control method for search criteria setting device, program, and information storage medium
WO2017097102A1 (en) Retrieval method and retrieval device
CN112417279A (en) Information recommendation method and device and computer readable storage medium
CN111967430A (en) Message processing method and device, electronic equipment and readable storage medium
CN107357796B (en) Network information acquisition method, equipment and programmable equipment
CN104156417B (en) Information processing method and equipment
KR20130139420A (en) Advertising system using keyword cookie
CN111598595B (en) Information stream data display method and device and terminal equipment

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