Movatterモバイル変換


[0]ホーム

URL:


CN115687807A - Information display method, device, terminal and storage medium - Google Patents

Information display method, device, terminal and storage medium
Download PDF

Info

Publication number
CN115687807A
CN115687807ACN202211328591.6ACN202211328591ACN115687807ACN 115687807 ACN115687807 ACN 115687807ACN 202211328591 ACN202211328591 ACN 202211328591ACN 115687807 ACN115687807 ACN 115687807A
Authority
CN
China
Prior art keywords
target
comment
information
resource
initial
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
CN202211328591.6A
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.)
Hangzhou Netease Cloud Music Technology Co Ltd
Original Assignee
Hangzhou Netease Cloud Music Technology 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 Hangzhou Netease Cloud Music Technology Co LtdfiledCriticalHangzhou Netease Cloud Music Technology Co Ltd
Priority to CN202211328591.6ApriorityCriticalpatent/CN115687807A/en
Publication of CN115687807ApublicationCriticalpatent/CN115687807A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Landscapes

Abstract

The application discloses an information display method, an information display device, a terminal and a storage medium, wherein the method comprises the following steps: responding to an input operation executed aiming at the initial comment in an input box of the user posting interface in a suspension display mode, displaying a resource recommendation window in the suspension mode on the user posting interface, and displaying a first search result corresponding to the initial comment on the resource recommendation window; and in response to a triggering operation executed for the first control in the resource recommendation window, displaying a target comment containing the highlighted target resource information in the input box. According to the method and the system, the input initial comments are automatically retrieved through the aggregated search service, and the search results (namely the first search results) are displayed in the resource recommendation window, so that the individual retrieval operation of the user is avoided, and the manual operation cost is reduced. In addition, the invention can also highlight the resources (namely the target resource information) desired by the user, so that the user can quickly acquire the target resource information, and the resource acquisition efficiency and the user experience are improved.

Description

Translated fromChinese
信息显示方法、装置、终端及存储介质Information display method, device, terminal and storage medium

技术领域technical field

本申请涉及计算机领域,具体而言,涉及一种信息显示方法、装置、终端及存储介质。The present application relates to the field of computers, and in particular, to an information display method, device, terminal and storage medium.

背景技术Background technique

市场上的App应用软件一般通过支持发帖和评论功能,以为用户提供发表个人观点的空间。针对某个人发表的帖子,其他人可以在帖子下的评论区发表个人评论,其中,评论中会包括很多与帖子相关的资源,如书籍、歌曲等各种内容载体。Apps on the market generally provide users with a space to express their personal opinions by supporting posting and commenting functions. For a post published by a certain person, other people can post personal comments in the comment area under the post, wherein the comments will include many resources related to the post, such as various content carriers such as books and songs.

目前,针对评论中的资源,需要人工主动获取,即需要用户主动查阅评论区中的大量评论,然后识别到想要的资源,再前往搜索页面通过资源关键字进行搜索,并消费搜索的结果。Currently, the resources in the comments need to be acquired manually, that is, users need to actively read a large number of comments in the comment area, then identify the desired resources, and then go to the search page to search by resource keywords and consume the search results.

但是,上述中获取资源的方式主要依赖用户行为,导致获取资源效率低的问题。However, the above-mentioned way of obtaining resources mainly depends on user behavior, which leads to the problem of low efficiency of obtaining resources.

发明内容Contents of the invention

本申请的主要目的在于提供一种信息显示方法、装置、终端及存储介质,以解决相关技术中存在获取资源效率低的问题。The main purpose of the present application is to provide an information display method, device, terminal and storage medium to solve the problem of low resource acquisition efficiency in related technologies.

为了实现上述目的,第一方面,本申请提供了一种信息显示方法,包括:In order to achieve the above purpose, in the first aspect, the present application provides an information display method, including:

响应于针对用户发帖界面悬浮显示的输入框中的初始评论执行的输入操作,在用户发帖界面悬浮显示资源推荐窗口,并在资源推荐窗口显示初始评论对应的第一搜索结果;In response to the input operation performed on the initial comment in the input box displayed floatingly on the user posting interface, a resource recommendation window is displayed floating on the user posting interface, and the first search result corresponding to the initial comment is displayed in the resource recommendation window;

响应于针对资源推荐窗口中的第一控件执行的触发操作,在输入框中显示包含高亮显示的目标资源信息的目标评论,其中,目标资源信息与第一控件相对应。In response to a trigger operation performed on the first control in the resource recommendation window, a target comment including highlighted target resource information is displayed in the input box, wherein the target resource information corresponds to the first control.

在一种可能的实现方式中,方法还包括:In a possible implementation, the method further includes:

响应于针对资源推荐窗口中的第二控件执行的触发操作,在资源推荐窗口中显示第二搜索结果。In response to a trigger operation performed on a second control in the resource recommendation window, a second search result is displayed in the resource recommendation window.

在一种可能的实现方式中,响应于针对资源推荐窗口中的第一控件执行的触发操作,在输入框中显示包含高亮显示的目标资源信息的目标评论,包括:In a possible implementation manner, in response to a trigger operation performed on the first control in the resource recommendation window, a target comment including highlighted target resource information is displayed in the input box, including:

响应于针对资源推荐窗口中的第一控件执行的触发操作,将第一控件对应的目标资源信息高亮替换初始评论中的目标文本;Responding to the trigger operation performed on the first control in the resource recommendation window, highlighting the target resource information corresponding to the first control to replace the target text in the initial comment;

将替换后的目标文本和初始评论中未替换的文本作为目标评论显示在输入框中。Displays the replaced target text and the unreplaced text in the original comment as the target comment in the input box.

在一种可能的实现方式中,将第一控件对应的目标资源信息高亮替换初始评论中的目标文本,包括:In a possible implementation manner, the target resource information corresponding to the first control is highlighted to replace the target text in the initial comment, including:

获取目标资源信息中包含的位置信息,其中,位置信息包含起点位置信息和终点位置信息;Obtaining location information included in the target resource information, where the location information includes starting location information and end location information;

在初始评论中查找与位置信息对应的目标文本;Find the target text corresponding to the location information in the initial comment;

将目标资源信息高亮替换目标文本。Highlight the target resource information to replace the target text.

在一种可能的实现方式中,目标资源信息是通过如下方式生成:In a possible implementation manner, the target resource information is generated in the following manner:

将初始评论上传至搜索服务端,以使搜索服务端对初始评论进行NLP技术处理;Upload the initial comments to the search server, so that the search server can process the initial comments with NLP technology;

根据处理后识别到的NER文本召回对应的资源播放地址;Recall the corresponding resource playback address according to the NER text identified after processing;

将NER文本、NER文本对应在初始评论中的位置信息和资源播放地址封装成目标资源信息;Encapsulate the NER text, the location information corresponding to the NER text in the initial comment, and the resource playback address into target resource information;

获取搜索服务端返回的目标资源信息。Get the target resource information returned by the search server.

在一种可能的实现方式中,响应于针对资源推荐窗口中的第一控件执行的触发操作,在输入框中显示包含高亮显示的目标资源信息的目标评论之后,还包括:In a possible implementation manner, in response to the trigger operation performed on the first control in the resource recommendation window, after the target comment including the highlighted target resource information is displayed in the input box, further includes:

响应于针对输入框中的发送控件执行的触发操作,在用户发帖界面的评论区显示目标评论。In response to the trigger operation performed on the send control in the input box, the target comment is displayed in the comment area of the posting interface for the user.

在一种可能的实现方式中,响应于针对输入框对应的发送控件执行的触发操作,在用户发帖界面的评论区显示目标评论之后,还包括:In a possible implementation, in response to the trigger operation performed on the send control corresponding to the input box, after displaying the target comment in the comment area of the user posting interface, further include:

检测到对目标评论中的目标资源信息的触发操作,跳转至目标资源信息对应的播放页面。When a trigger operation on the target resource information in the target comment is detected, jump to the play page corresponding to the target resource information.

在一种可能的实现方式中,方法还包括:In a possible implementation, the method further includes:

响应于针对资源推荐窗口之外的空白处执行的触发操作、或响应于针对输入框中的初始评论的变更操作、或响应于针对资源推荐窗口中的关闭控件执行的触发操作、或检测到资源推荐窗口中没有搜索结果时,隐藏资源推荐窗口。In response to a trigger action on white space outside the resource recommendation window, or in response to a change action on the initial comment in the input box, or in response to a trigger action on the close control in the resource recommendation window, or when a resource is detected When there are no search results in the recommendation window, hide the resource recommendation window.

在一种可能的实现方式中,目标资源信息包括与目标资源信息的类型相对应的标识。In a possible implementation manner, the target resource information includes an identifier corresponding to a type of the target resource information.

第二方面,本发明实施例提供了一种信息显示装置,包括:In a second aspect, an embodiment of the present invention provides an information display device, including:

搜索结果显示模块,用于响应于针对用户发帖界面悬浮显示的输入框中的初始评论信息执行的输入操作,在用户发帖界面悬浮显示资源推荐窗口,并在资源推荐窗口显示初始资源信息对应的第一搜索结果,其中,初始评论信息中至少包含初始资源信息;The search result display module is used to respond to the input operation performed on the initial comment information in the input box floating in the user posting interface, display the resource recommendation window in the user posting interface in suspension, and display the first resource information corresponding to the initial resource information in the resource recommendation window. A search result, wherein the initial comment information includes at least initial resource information;

目标评论显示模块,用于响应于针对资源推荐窗口中的第一控件执行的触发操作,在输入框中显示包含高亮显示的目标资源信息的目标评论。The target comment display module is configured to, in response to the trigger operation performed on the first control in the resource recommendation window, display the target comment including the highlighted target resource information in the input box.

第三方面,本发明实施例提供了一种终端,包括存储器、处理器以及存储在存储器中并可在处理器上运行的计算机程序,处理器执行计算机程序时实现如上任一种信息显示方法的步骤。In the third aspect, an embodiment of the present invention provides a terminal, including a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the computer program, any one of the above information display methods is implemented. step.

第四方面,本发明实施例提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时实现如上任一种信息显示方法的步骤。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of any one of the above information display methods are implemented.

本发明实施例提供了一种信息显示方法、装置、终端及存储介质,包括:先响应于针对用户发帖界面悬浮显示的输入框中的初始评论执行的输入操作,在用户发帖界面悬浮显示资源推荐窗口,并在资源推荐窗口显示初始评论对应的第一搜索结果,然后响应于针对资源推荐窗口中的第一控件执行的触发操作,在输入框中显示包含高亮显示的目标资源信息的目标评论。本发明通过聚合搜索服务对输入的初始评论进行自动检索,并在资源推荐窗口中显示其搜索结果(即第一搜索结果),避免了用户个人的检索操作,降低了人工操作成本。此外,本发明还可对用户想要的资源(即目标资源信息)进行高亮显示,以使用户迅速获取目标资源信息,提高了资源获取效率以及用户体验度。An embodiment of the present invention provides an information display method, device, terminal, and storage medium, including: responding to the input operation performed on the initial comment in the input box displayed in the floating interface of the user's posting interface, and displaying the resource recommendation in the floating posting interface of the user window, and display the first search result corresponding to the initial comment in the resource recommendation window, and then display the target comment containing the highlighted target resource information in the input box in response to the trigger operation performed on the first control in the resource recommendation window . The invention automatically retrieves the input initial comments through the aggregation search service, and displays the search results (ie, the first search results) in the resource recommendation window, avoiding the user's personal retrieval operations and reducing manual operation costs. In addition, the present invention can also highlight the resource desired by the user (namely, the target resource information), so that the user can quickly obtain the target resource information, thereby improving resource acquisition efficiency and user experience.

附图说明Description of drawings

构成本申请的一部分的附图用来提供对本申请的进一步理解,使得本申请的其它特征、目的和优点变得更明显。本申请的示意性实施例附图及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The accompanying drawings, which constitute a part of this application, are included to provide a further understanding of the application and make other features, objects and advantages of the application apparent. The drawings and descriptions of the schematic embodiments of the application are used to explain the application, and do not constitute an improper limitation to the application. In the attached picture:

图1是本发明实施例提供的一种信息显示方法的应用场景的示意图;FIG. 1 is a schematic diagram of an application scenario of an information display method provided by an embodiment of the present invention;

图2是本发明实施例提供的一种信息显示方法的实现流程图;Fig. 2 is an implementation flowchart of an information display method provided by an embodiment of the present invention;

图3是本发明一实施例提供的用户发帖界面的示意图;Fig. 3 is a schematic diagram of a user posting interface provided by an embodiment of the present invention;

图4是本发明另一实施例提供的用户发帖界面的示意图;Fig. 4 is a schematic diagram of a user posting interface provided by another embodiment of the present invention;

图5是本发明另一实施例提供的用户发帖界面的示意图;Fig. 5 is a schematic diagram of a user posting interface provided by another embodiment of the present invention;

图6是本发明另一实施例提供的用户发帖界面的示意图;Fig. 6 is a schematic diagram of a user posting interface provided by another embodiment of the present invention;

图7是本发明另一实施例提供的用户发帖界面的示意图;Fig. 7 is a schematic diagram of a user posting interface provided by another embodiment of the present invention;

图8是本发明实施例提供的用户评论界面的示意图;Fig. 8 is a schematic diagram of a user comment interface provided by an embodiment of the present invention;

图9是本发明实施例提供的一种信息显示装置的结构示意图;Fig. 9 is a schematic structural diagram of an information display device provided by an embodiment of the present invention;

图10是本发明实施例提供的终端的示意图。Fig. 10 is a schematic diagram of a terminal provided by an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is only some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of the present invention and the above drawings are used to distinguish similar objects and not necessarily Describe a particular order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein.

应当理解,在本发明的各种实施例中,各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that in various embodiments of the present invention, the sequence numbers of the processes do not mean the order of execution, and the execution order of the processes should be determined by their functions and internal logic, rather than by the implementation order of the embodiments of the present invention. The implementation process constitutes no limitation.

应当理解,在本发明中,“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be understood that in the present invention, "comprising" and "having" and any variations thereof are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to Those steps or elements are not explicitly listed, but may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.

应当理解,在本发明中,“多个”是指两个或两个以上。“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。“包含A、B和C”、“包含A、B、C”是指A、B、C三者都包含,“包含A、B或C”是指包含A、B、C三者之一,“包含A、B和/或C”是指包含A、B、C三者中任1个或任2个或3个。It should be understood that in the present invention, "plurality" means two or more. "And/or" is just an association relationship describing associated objects, which means that there can be three kinds of relationships, for example, and/or B, which can mean: A exists alone, A and B exist at the same time, and B exists alone. . The character "/" generally indicates that the contextual objects are an "or" relationship. "Includes A, B and C", "Includes A, B, C" means that A, B, and C are all included, "includes A, B, or C" means includes one of A, B, and C, "Containing A, B and/or C" means containing any 1 or any 2 or 3 of A, B and C.

应当理解,在本发明中,“与A对应的B”、“与A相对应的B”、“A与B相对应”或者“B与A相对应”,表示B与A相关联,根据A可以确定B。根据A确定B并不意味着仅仅根据A确定B,还可以根据A和/或其他信息确定B。A与B的匹配,是A与B的相似度大于或等于预设的阈值。It should be understood that in the present invention, "B corresponding to A", "B corresponding to A", "A corresponding to B" or "B corresponding to A" means that B is associated with A, and according to A It is possible to determine B. Determining B from A does not mean determining B from A alone, B can also be determined from A and/or other information. The matching between A and B means that the similarity between A and B is greater than or equal to a preset threshold.

取决于语境,如在此所使用的“若”可以被解释成为“在……时”或“当……时”或“响应于确定”或“响应于检测”。Depending on the context, "if" as used herein may be interpreted as "at" or "when" or "in response to determining" or "in response to detecting".

下面以具体地实施例对本发明的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。The technical solution of the present invention will be described in detail below with specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图通过具体实施例来进行说明。In order to make the purpose, technical solution and advantages of the present invention clearer, specific embodiments will be described below in conjunction with the accompanying drawings.

本申请提供的一种信息显示方法,可以应用于如图1所示的应用环境中。其中,用户102点击客户端104中的某个应用APP,其中,此应用APP支持发帖和评论功能。当进入此应用APP后,用户102在用户发帖界面悬浮显示的输入框中输入初始评论后,客户端104响应于用户102针对用户发帖界面悬浮显示的输入框中的初始评论执行的输入操作,在用户发帖界面悬浮显示资源推荐窗口,并在资源推荐窗口显示初始评论对应的第一搜索结果。客户端104又响应于用户102针对资源推荐窗口中的第一控件执行的触发操作,在输入框中显示包含高亮显示的目标资源信息的目标评论,其中,目标资源信息与第一控件相对应。An information display method provided in this application can be applied to the application environment shown in FIG. 1 . Wherein, theuser 102 clicks on an APP in theclient 104, wherein the APP supports functions of posting and commenting. After entering this application APP, after theuser 102 enters initial comments in the input box suspended in the user posting interface, theclient 104 responds to the input operation performed by theuser 102 on the initial comments in the input box suspended in the user posting interface, The user posting interface displays a floating resource recommendation window, and displays the first search result corresponding to the initial comment in the resource recommendation window. Theclient 104 responds to the trigger operation performed by theuser 102 on the first control in the resource recommendation window, and displays in the input box the target comment including the highlighted target resource information, wherein the target resource information corresponds to the first control .

客户端104还与服务器106进行通信,当用户102在用户发帖界面悬浮显示的输入框中输入初始评论后,客户端104将初始评论发送至服务器106,以使服务器106采用聚合搜索服务对初始评论进行资源搜索,然后将搜索结果返回至客户端104,同时客户端104在用户发帖界面悬浮显示资源推荐窗口,并在资源推荐窗口显示初始评论对应的第一搜索结果,其中,搜索结果包括第一搜索结果。之后,当用户102对客户端104的用户发帖界面悬浮显示的资源推荐窗口中的第一控件执行触发操作后,客户端104响应于用户102针对资源推荐窗口中的第一控件执行的触发操作,同时将第一搜索结果发送至服务器106,服务器106对第一搜索结果进行处理封装成目标资源信息,并将目标资源信息返回至客户端104,以使客户端104在输入框中显示包含高亮显示的目标资源信息的目标评论。Theclient 104 also communicates with theserver 106. When theuser 102 enters the initial comment in the input box floating on the user posting interface, theclient 104 sends the initial comment to theserver 106, so that theserver 106 uses the aggregation search service to search for the initial comment. Perform a resource search, and then return the search results to theclient 104. At the same time, theclient 104 floats a resource recommendation window on the user posting interface, and displays the first search result corresponding to the initial comment in the resource recommendation window, wherein the search result includes the first search results. Afterwards, when theuser 102 performs a trigger operation on the first control in the resource recommendation window suspended in the user posting interface of theclient 104, theclient 104 responds to the trigger operation performed by theuser 102 on the first control in the resource recommendation window, At the same time, the first search result is sent to theserver 106, and theserver 106 processes and encapsulates the first search result into target resource information, and returns the target resource information to theclient 104, so that theclient 104 displays in the input box the Displays the target comment for the target resource information.

其中,客户端104与服务器106可以通过任意通信方式进行通信,包括但不限于网络通信,且上述网络可以包括但不限于:有线网络、无线网络,其中,该有线网络包括:局域网、城域网和广域网,该无线网络包括:蓝牙、WIFI、及其他实现无线通信的网络。其中,客户端104包括但不限于以下至少之一:手机(如Android手机、iOS手机等),笔记本电脑、平板电脑、掌上电脑、MID(Mobile Internet Devices,移动互联网设备)、PAD、台式电脑、智能电视等。其中,服务器106可为现场服务器或者远程服务器,其中,现场服务器与远程服务器均可为独立的服务器或者是多个服务器组成的服务集群来实现。上述仅是一种示例,本实施例中对此不作任何限定。Wherein, theclient 104 and theserver 106 can communicate through any communication method, including but not limited to network communication, and the above-mentioned network can include but not limited to: wired network, wireless network, wherein, the wired network includes: local area network, metropolitan area network And wide area network, the wireless network includes: bluetooth, WIFI, and other networks that realize wireless communication. Wherein, theclient 104 includes but is not limited to at least one of the following: mobile phone (such as Android mobile phone, iOS mobile phone, etc.), notebook computer, tablet computer, palmtop computer, MID (Mobile Internet Devices, mobile Internet device), PAD, desktop computer, Smart TV etc. Wherein, theserver 106 may be an on-site server or a remote server, wherein both the on-site server and the remote server may be implemented as an independent server or a service cluster composed of multiple servers. The foregoing is only an example, and no limitation is set in this embodiment.

在一实施例中,如图2所示,本发明提供了一种信息显示方法,应用于图1所示的客户端104,包括以下步骤:In one embodiment, as shown in FIG. 2, the present invention provides an information display method, which is applied to theclient 104 shown in FIG. 1, and includes the following steps:

步骤S201:响应于针对用户发帖界面悬浮显示的输入框中的初始评论执行的输入操作,在用户发帖界面悬浮显示资源推荐窗口,并在资源推荐窗口显示初始评论对应的第一搜索结果。Step S201: In response to the input operation performed on the initial comment in the floating input box displayed on the user posting interface, a resource recommendation window is suspended on the user posting interface, and the first search result corresponding to the initial comment is displayed in the resource recommendation window.

其中,用户发帖界面包括用户发布的帖子(即帖子正文)区以及评论区,其中,用户发布的帖子包括文本、图片、视频等信息。评论区包括各种用户发布的评论,用户可以某个评论进行回复或者点赞等操作。Wherein, the interface for posting by a user includes a post (that is, a post text) area and a comment area, wherein the post issued by a user includes information such as text, pictures, and videos. The comment area includes comments posted by various users. Users can reply or like a certain comment.

当用户102登陆某个应用APP后,发现感兴趣的帖子,即可点击进入对应的用户发帖界面,并在用户发帖界面的评论区点击评论对应的控件,以进行评论的发布。当用户102点击评论对应的控件后,在用户发帖界面会悬浮显示如图3所示的输入界面,输入界面包括输入框301、输入键盘、图标等。When theuser 102 logs into an application APP and finds a post of interest, he can click to enter the corresponding user posting interface, and click the control corresponding to the comment in the comment area of the user posting interface to publish the comment. When theuser 102 clicks the control corresponding to the comment, the input interface shown in FIG. 3 will be displayed in a floating manner on the user posting interface. The input interface includes aninput box 301 , an input keyboard, icons, and the like.

结合图3,用户102在用户发帖界面悬浮显示的输入界面的输入框中输入初始评论“推荐歌单《明天》”后,客户端104响应于用户102针对用户发帖界面悬浮显示的输入框中的“推荐歌单《明天》”执行的输入操作后,客户端104将“推荐歌单《明天》”、帖子正文以及评论区其他评论全部发送至服务器106,以使服务器106采用聚合搜索服务对“推荐歌单《明天》”进行资源搜索,然后将搜索结果返回至客户端104。与此同时,客户端104在用户发帖界面悬浮显示如图4所示的资源推荐窗口401,并在资源推荐窗口401中显示“推荐歌单《明天》”对应的第一搜索结果,即“林俊杰的《明天》”。Referring to FIG. 3 , after theuser 102 enters the initial comment "recommended song list "Tomorrow"" in the input box of the floating input interface displayed on the user posting interface, theclient 104 responds to theuser 102's response to the input box floating on the user posting interface. After the input operation of "recommended song list "Tomorrow"", theclient 104 sends all the "recommended song list "Tomorrow"", the text of the post and other comments in the comment area to theserver 106, so that theserver 106 uses the aggregation search service to search for " Recommend song list "Tomorrow"" to search for resources, and then return the search results to theclient 104. At the same time, theclient 104 floats and displays theresource recommendation window 401 shown in FIG. "Tomorrow".

针对服务器106接收到客户端104发送的“推荐歌单《明天》”、帖子正文以及评论区其他评论后,采用聚合搜索服务对初始评论进行资源搜索,然后将搜索结果返回至客户端104。其中,聚合搜索服务支持多资源分析,并基于多资源分析来确定最佳搜索结果,即上文所说的搜索结果。也就是说,当服务器106接收到客户端104发送的“推荐歌单《明天》”、帖子正文以及评论区其他评论后,会同时对“推荐歌单《明天》”、帖子正文以及评论区其他评论进行语义、词组等分析,以提取相关的关键字,再结合时令热点、资源库等信息得到搜索结果。After theserver 106 receives the "recommended song list "Tomorrow"" sent by theclient 104, the text of the post and other comments in the comment area, it uses the aggregation search service to search for resources on the initial comments, and then returns the search results to theclient 104. Among them, the aggregation search service supports multi-resource analysis, and determines the best search result based on the multi-resource analysis, that is, the search result mentioned above. That is to say, when theserver 106 receives the "recommended song list "Tomorrow"" sent by theclient 104, the text of the post and other comments in the comment area, it will simultaneously comment on the "recommended song list "Tomorrow"", the text of the post and other comments in the comment area. Comments are analyzed for semantics and phrases to extract relevant keywords, and combined with information such as seasonal hotspots and resource libraries to obtain search results.

具体的,当服务器106接收到客户端104发送的“推荐歌单《明天》”后,并不清楚要返回的第一搜索结果为“林俊杰的《明天》”,如果帖子正文记载了如“林俊杰相关歌曲”等信息或者最近“林俊杰的《明天》”热度很高,则可以优先推荐“林俊杰的《明天》”。如果初始评论为“我喜欢杨乃文,特别是他的《明天》”,则通过聚合搜索服务的关键词分析,进行关联则会优先推荐“杨乃文的《明天》”。Specifically, when theserver 106 receives the "recommended song list "Tomorrow"" sent by theclient 104, it is not clear that the first search result to be returned is "JJ Lin's "Tomorrow"". Related songs" and other information or "JJ Lin's "Tomorrow"" is very popular recently, you can give priority to recommending "JJ Lin's "Tomorrow"". If the initial comment is "I like Yang Naiwen, especially his "Tomorrow", then through the keyword analysis of the aggregation search service, the association will give priority to recommending "Yang Naiwen's "Tomorrow".

此外,服务器106所返回的搜索结果为一个列表,其中,列表中不仅包括第一搜索结果和第二搜索结果。也就是说,服务器106对初始评论“推荐歌单《明天》”进行聚合搜索服务后,推荐的例如“林俊杰的《明天》”为优选推荐项,即上述的第一搜索结果。除此之外,还包括第二搜索结果,即与《明天》、评论区、帖子正文相关的其他搜索结果,如“梁静茹的《明天》”等。In addition, the search result returned by theserver 106 is a list, wherein the list not only includes the first search result and the second search result. That is to say, after theserver 106 performs an aggregated search service on the initial comment "recommended song list "Tomorrow"", the recommended item such as "JJ Lin's "Tomorrow"" is the preferred recommendation item, that is, the above-mentioned first search result. In addition, it also includes the second search result, that is, other search results related to "Tomorrow", the comment area, and the post text, such as "Liang Jingru's "Tomorrow"" and so on.

其中,列表中不仅包括第一搜索结果和第二搜索结果,还包括第一搜索结果和第二搜索结果所对应的其他信息,如坐标信息、资源数据、类型等信息。Wherein, the list includes not only the first search result and the second search result, but also other information corresponding to the first search result and the second search result, such as coordinate information, resource data, type and other information.

例如,列表中的搜索结果分别为“林俊杰的《明天》”、“房东的猫”,其分别对应的相关信息的具体格式如下:For example, the search results in the list are "JJ Lin's "Tomorrow"" and "The Landlord's Cat", respectively, and the specific format of the relevant information corresponding to them is as follows:

Figure BDA0003912926990000091
Figure BDA0003912926990000091

Figure BDA0003912926990000101
Figure BDA0003912926990000101

在一实施例中,本申请中的输入框301中的文本可高亮显示。如图5所示,当用户102点击资源推荐窗口401的触控区域或者点击“林俊杰的《明天》”,那么输入框301中的“推荐歌单《明天》”中的“《明天》”会变成蓝色高亮显示,为能清楚识别蓝色高亮的文本和非蓝色高亮显示的文本,此处蓝色高亮显示的“《明天》”采用放大的“《明天》”来表示。In one embodiment, the text in theinput box 301 in this application can be highlighted. As shown in FIG. 5 , when theuser 102 clicks on the touch area of theresource recommendation window 401 or clicks "JJ Lin's "Tomorrow"", then ""Tomorrow"" in the "Recommended Song List "Tomorrow"" in theinput box 301 will be become highlighted in blue, in order to clearly identify the text highlighted in blue and the text not highlighted in blue, here the "Tomorrow" highlighted in blue is represented by the enlarged "Tomorrow" express.

此外,本申请中的资源推荐窗口401还可隐藏,即当客户端104响应于针对资源推荐窗口之外的空白处执行的触发操作、或响应于针对输入框中的初始评论的变更操作、或响应于针对资源推荐窗口中的关闭控件执行的触发操作、或检测到资源推荐窗口中没有搜索结果时,隐藏资源推荐窗口。In addition, theresource recommendation window 401 in this application can also be hidden, that is, when theclient 104 responds to a trigger operation performed on a blank space outside the resource recommendation window, or responds to a change operation on an initial comment in the input box, or The resource recommendation window is hidden in response to a trigger operation performed on a close control in the resource recommendation window, or when it is detected that there is no search result in the resource recommendation window.

步骤S202:响应于针对资源推荐窗口中的第一控件执行的触发操作,在输入框中显示包含高亮显示的目标资源信息的目标评论。Step S202: In response to the trigger operation performed on the first control in the resource recommendation window, display the target comment including the highlighted target resource information in the input box.

其中,目标资源信息与第一控件相对应。第一控件用于表征在输入框中显示包含高亮显示的目标资源信息的控件,其中,第一控件可用图5所示的“+添加”或者其他图标进行表示。Wherein, the target resource information corresponds to the first control. The first control is used to represent a control for displaying highlighted target resource information in the input box, where the first control can be represented by "+Add" as shown in FIG. 5 or other icons.

当客户端104响应于针对资源推荐窗口中的第一控件执行的触发操作,将第一控件对应的目标资源信息高亮替换初始评论中的目标文本,然后将替换后的目标文本和初始评论中未替换的文本作为目标评论显示在输入框中。When theclient 104 responds to the trigger operation performed on the first control in the resource recommendation window, highlight the target resource information corresponding to the first control to replace the target text in the initial comment, and then combine the replaced target text with the target text in the initial comment The unreplaced text is displayed in the input box as the target comment.

其中,客户端104将第一控件对应的目标资源信息高亮替换初始评论中的目标文本,需要先获取目标资源信息中包含的位置信息,其中,位置信息包含起点位置信息和终点位置信息,然后在初始评论中查找与位置信息对应的目标文本,再将目标资源信息高亮替换目标文本。其中,目标资源信息是通过如下方式生成:将初始评论上传至搜索服务端(即服务器106),以使搜索服务端对初始评论进行NLP技术处理,然后根据处理后识别到的NER文本召回对应的资源播放地址,再将NER文本、NER文本对应在初始评论中的位置信息和资源播放地址封装成目标资源信息,并获取搜索服务端返回的目标资源信息。Wherein, theclient 104 highlights the target resource information corresponding to the first control to replace the target text in the initial comment, and needs to first obtain the location information contained in the target resource information, wherein the location information includes the start location information and the end location information, and then Find the target text corresponding to the location information in the initial comment, and then highlight the target resource information to replace the target text. Wherein, the target resource information is generated in the following manner: upload the initial comments to the search server (i.e. server 106), so that the search server performs NLP processing on the initial comments, and then recalls the corresponding Resource playback address, and then encapsulate the NER text, the location information corresponding to the NER text in the initial comment, and the resource playback address into target resource information, and obtain the target resource information returned by the search server.

其中,NLP(Natural Language Processing,自然语言处理)技术简单来说,就是开发能够理解人类语言的应用程序或服务。处理自然语言的关键是要让计算机“理解”自然语言,所以自然语言处理又叫做自然语言理解(NLU,NaturalLanguage Understanding),也称为计算语言学(Computational Linguistics)。一方面它是语言信息处理的一个分支,另一方面它是人工智能(AI,Artificial Intelligence)的核心课题之一。本申请中的自然语言处理主要是让计算机理解完整的句子、对句子进行分词、提取相匹配关键词等,通过NLP技术对初始评论进行处理后,可以根据处理后所识别到的NER文本召回对应的资源播放地址。其中,NER(Name Entity Recognition,命名实体识别)文本,即识别出的与预先定义好的实体类型相匹配的文本,如本申请中与歌曲《明天》相匹配的文本。Among them, NLP (Natural Language Processing, Natural Language Processing) technology is simply to develop applications or services that can understand human language. The key to processing natural language is to allow computers to "understand" natural language, so natural language processing is also called natural language understanding (NLU, Natural Language Understanding), also known as computational linguistics (Computational Linguistics). On the one hand, it is a branch of language information processing, on the other hand, it is one of the core topics of artificial intelligence (AI, Artificial Intelligence). The natural language processing in this application is mainly to let the computer understand the complete sentence, segment the sentence, extract matching keywords, etc. After processing the initial comment through NLP technology, the corresponding NER text can be recalled according to the processed NER text resource playback address. Among them, the NER (Name Entity Recognition, Named Entity Recognition) text is the recognized text that matches the predefined entity type, such as the text that matches the song "Tomorrow" in this application.

结合图6,以第一控件为“+添加”为例,当用户102点击资源推荐窗口401中的“+添加”后,客户端104响应于用户102针对资源推荐窗口401中的“+添加”执行的触发操作,然后获取目标资源信息中包含的位置信息,其中,位置信息包含起点位置信息和终点位置信息,再在初始评论“推荐歌单《明天》”中查找与位置信息对应的目标文本,即《明天》,最后用目标资源信息(即高亮的《明天》)替换非高亮的目标文本《明天》。Referring to FIG. 6 , taking the first control as "+Add" as an example, when theuser 102 clicks "+Add" in theresource recommendation window 401, theclient 104 responds to theuser 102's "+Add" in theresource recommendation window 401 Execute the trigger operation, and then obtain the location information contained in the target resource information, where the location information includes the start location information and the end location information, and then search for the target text corresponding to the location information in the initial comment "Recommended song list "Tomorrow"" , that is, "tomorrow", and finally replace the non-highlighted target text "tomorrow" with the target resource information (ie, the highlighted "tomorrow").

此外,目标资源信息还可包括与目标资源信息的类型相对应的标识。通过图6可以看出歌曲“《明天》”后面有歌曲对应的标识,用音符表示。如果是书籍则可采用书籍对应的标识,即书籍符号表示。In addition, the target resource information may also include an identifier corresponding to the type of the target resource information. From Figure 6, it can be seen that there is a corresponding logo behind the song "Tomorrow", which is represented by musical notes. If it is a book, the corresponding logo of the book can be used, that is, the book symbol representation.

通过上述操作,可以看出输入框301中的目标评论为“推荐歌单《明天》#”,其中,此处的#表示图6中的音符标识。Through the above operations, it can be seen that the target comment in theinput box 301 is "recommended song list "Tomorrow"#", where # here represents the musical note identifier in FIG. 6 .

进一步的,当响应于针对资源推荐窗口中的第一控件执行的触发操作,在输入框中显示包含高亮显示的目标资源信息的目标评论之后,响应于针对输入框中的发送控件执行的触发操作,在用户发帖界面的评论区显示目标评论。Further, when in response to the trigger operation performed on the first control in the resource recommendation window, after the target comment including the highlighted target resource information is displayed in the input box, in response to the trigger operation performed on the send control in the input box Operation, display the target comment in the comment area of the user posting interface.

结合图7-图8,当在输入框301显示包含高亮显示的目标资源信息的目标评论“推荐歌单《明天》#”之后,用户102可点击输入框301右侧的“发送”控件,待客户端104响应于用户102针对输入框301中的发送控件执行的触发操作后,会跳转至用户102对应的评论区,以显示“推荐歌单《明天》#”。此外,用户102还可点击输入框301下的图片图标,以在客户端104所在的相册中选取图片,以与“推荐歌单《明天》#”进行配合显示于用户102对应的评论区。7-8, after the target comment "recommended song list "Tomorrow"#" containing the highlighted target resource information is displayed in theinput box 301, theuser 102 can click the "send" control on the right side of theinput box 301, After theclient 104 responds to the trigger operation performed by theuser 102 on the send control in theinput box 301, it will jump to the comment area corresponding to theuser 102 to display "recommended song list "Tomorrow"#". In addition, theuser 102 can also click the picture icon under theinput box 301 to select a picture from the photo album where theclient 104 is located, and display it in the comment area corresponding to theuser 102 in conjunction with the "recommended song list "Tomorrow"#".

更进一步地,当客户端104响应于针对输入框对应的发送控件执行的触发操作,在用户发帖界面的评论区显示目标评论之后,当客户端104检测到对目标评论中的目标资源信息的触发操作,跳转至目标资源信息对应的播放页面。Furthermore, when theclient 104 responds to the trigger operation performed on the send control corresponding to the input box, after the target comment is displayed in the comment area of the user posting interface, when theclient 104 detects that the target resource information in the target comment is triggered Operation to jump to the playback page corresponding to the target resource information.

具体的,用户102可点击图8中的“《明天》#”,当客户端104检测到用户102对“推荐歌单《明天》#”中的“《明天》#”的触发操作后,跳转至“《明天》#”对应的播放页面。其中,播放界面包括歌曲《明天》的演唱者、歌词以及播放按钮等,可直接点击播放按钮以播放歌曲《明天》。Specifically, theuser 102 can click ""Tomorrow"#" in FIG. Go to the playback page corresponding to "《《Tomorrow》#". Among them, the playback interface includes the singer of the song "Tomorrow", lyrics and a play button, etc., and the song "Tomorrow" can be played by directly clicking the play button.

在一实施例中,本申请还可对第二搜索结果中的推荐信息进行显示,具体的,则需要用户102对资源推荐窗口401中的第二控件进行触发,客户端104响应于用户102针对资源推荐窗口401中的第二控件执行的触发操作后,在资源推荐窗口401中显示第二搜索结果。其中,第二控件用于表征对第二搜索结果的展示,可采用如图4所示的“更多”或其他文字、图标等进行表示。In an embodiment, the application can also display the recommendation information in the second search result. Specifically, theuser 102 is required to trigger the second control in theresource recommendation window 401, and theclient 104 responds to theuser 102's After the trigger operation is performed by the second control in theresource recommendation window 401 , the second search result is displayed in theresource recommendation window 401 . Wherein, the second control is used to represent the display of the second search result, which may be represented by "more" as shown in FIG. 4 or other words or icons.

结合图4,以第二控件为“更多”,以及初始评论为“推荐歌单《明天》”,第一搜索结果为“林俊杰的《明天》”为例,当用户102对资源推荐窗口401中的“更多”进行触发,客户端104响应于用户102针对资源推荐窗口401中的“更多”执行的触发操作后,则展示全部第二搜索结果,第二搜索结果可以为与《明天》相关的其他歌曲,如“梁静茹的《明天》”、“杨乃文的《明天》”等。Combined with Figure 4, taking the second control as "more", and the initial comment as "recommended song list "Tomorrow"", the first search result is "JJ Lin's "Tomorrow"" as an example, when theuser 102 selects theresource recommendation window 401 "More" in theresource recommendation window 401 is triggered by theclient 104. After responding to the trigger operation performed by theuser 102 on the "more" in theresource recommendation window 401, all the second search results are displayed. The second search results can be the same as "Tomorrow "Related other songs, such as "Liang Jingru's "Tomorrow"", "Yang Naiwen's "Tomorrow"" and so on.

本发明实施例提供了一种信息显示方法,包括:先响应于针对用户发帖界面悬浮显示的输入框中的初始评论执行的输入操作,在用户发帖界面悬浮显示资源推荐窗口,并在资源推荐窗口显示初始评论对应的第一搜索结果,然后响应于针对资源推荐窗口中的第一控件执行的触发操作,在输入框中显示包含高亮显示的目标资源信息的目标评论。本发明通过聚合搜索服务对输入的初始评论进行自动检索,并在资源推荐窗口中显示其搜索结果(即第一搜索结果),避免了用户个人的检索操作,降低了人工操作成本。此外,本发明还可对用户想要的资源(即目标资源信息)进行高亮显示,以使用户迅速获取目标资源信息,提高了资源获取效率以及用户体验度。An embodiment of the present invention provides an information display method, including: responding to the input operation performed on the initial comment in the input box floating in the user posting interface, floating displaying a resource recommendation window on the user posting interface, and displaying the resource recommendation window in the resource recommendation window The first search result corresponding to the initial comment is displayed, and then in response to the trigger operation performed on the first control in the resource recommendation window, the target comment including the highlighted target resource information is displayed in the input box. The invention automatically retrieves the input initial comments through the aggregation search service, and displays the search results (ie, the first search results) in the resource recommendation window, avoiding the user's personal retrieval operations and reducing manual operation costs. In addition, the present invention can also highlight the resource desired by the user (namely, the target resource information), so that the user can quickly obtain the target resource information, thereby improving resource acquisition efficiency and user experience.

应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that the sequence numbers of the steps in the above embodiments do not mean the order of execution, and the execution order of each process should be determined by its functions and internal logic, and should not constitute any limitation to the implementation process of the embodiment of the present invention.

以下为本发明的装置实施例,对于其中未详尽描述的细节,可以参考上述对应的方法实施例。The following are device embodiments of the present invention. For details that are not exhaustively described therein, reference may be made to the corresponding method embodiments above.

图9示出了本发明实施例提供的一种信息显示装置的结构示意图,为了便于说明,仅示出了与本发明实施例相关的部分,一种信息显示装置包括搜索结果显示模块901和目标评论显示模块902,具体如下:Fig. 9 shows a schematic structural diagram of an information display device provided by an embodiment of the present invention. For ease of illustration, only the parts related to the embodiment of the present invention are shown. An information display device includes a searchresult display module 901 and a target Thecomment display module 902 is as follows:

搜索结果显示模块901,用于响应于针对用户发帖界面悬浮显示的输入框中的初始评论信息执行的输入操作,在用户发帖界面悬浮显示资源推荐窗口,并在资源推荐窗口显示初始资源信息对应的第一搜索结果,其中,初始评论信息中至少包含初始资源信息;The searchresult display module 901 is configured to respond to the input operation performed on the initial comment information in the input box floating on the user posting interface, display the resource recommendation window in the user posting interface by floating, and display the initial resource information corresponding to the resource recommendation window in the resource recommendation window. The first search result, wherein the initial comment information includes at least initial resource information;

目标评论显示模块902,用于响应于针对资源推荐窗口中的第一控件执行的触发操作,在输入框中显示包含高亮显示的目标资源信息的目标评论。The targetcomment display module 902 is configured to display in the input box the target comment including the highlighted target resource information in response to the trigger operation performed on the first control in the resource recommendation window.

在一种可能的实现方式中,装置还包括搜索结果显示模块,搜索结果显示模块用于响应于针对资源推荐窗口中的第二控件执行的触发操作,在资源推荐窗口中显示第二搜索结果。In a possible implementation manner, the device further includes a search result display module, and the search result display module is configured to display the second search result in the resource recommendation window in response to a trigger operation performed on the second control in the resource recommendation window.

在一种可能的实现方式中,目标评论显示模块902还用于响应于针对资源推荐窗口中的第一控件执行的触发操作,将第一控件对应的目标资源信息高亮替换初始评论中的目标文本;将替换后的目标文本和初始评论中未替换的文本作为目标评论显示在输入框中。In a possible implementation, the targetcomment display module 902 is further configured to, in response to a trigger operation performed on the first control in the resource recommendation window, highlight the target resource information corresponding to the first control to replace the target in the initial comment Text; displays the replaced target text and the unreplaced text in the original comment as the target comment in the input box.

在一种可能的实现方式中,目标评论显示模块902还用于获取目标资源信息中包含的位置信息,其中,位置信息包含起点位置信息和终点位置信息;在初始评论中查找与位置信息对应的目标文本;将目标资源信息高亮替换目标文本。In a possible implementation, the targetcomment display module 902 is also used to acquire the location information contained in the target resource information, where the location information includes starting point location information and end point location information; find the corresponding location information in the initial comments Target text; highlight the target resource information to replace the target text.

在一种可能的实现方式中,目标资源信息是通过如下方式生成:将初始评论上传至搜索服务端,以使搜索服务端对初始评论进行NLP技术处理;根据处理后识别到的NER文本召回对应的资源播放地址;将NER文本、NER文本对应在初始评论中的位置信息和资源播放地址封装成目标资源信息;获取搜索服务端返回的目标资源信息。In a possible implementation, the target resource information is generated by: uploading the initial comments to the search server, so that the search server can perform NLP processing on the initial comments; The resource playback address; encapsulate the NER text, the location information corresponding to the NER text in the initial comment, and the resource playback address into target resource information; obtain the target resource information returned by the search server.

在一种可能的实现方式中,目标评论显示模块902之后还包括目标评论发送模块,目标评论发送模块用于响应于针对输入框中的发送控件执行的触发操作,在用户发帖界面的评论区显示目标评论。In a possible implementation, the targetcomment display module 902 further includes a target comment sending module, which is used to display in the comment area of the user posting interface in response to the trigger operation performed on the send control in the input box. target comment.

在一种可能的实现方式中,目标评论发送模块之后还包括跳转模块,跳转模块用于检测到对目标评论中的目标资源信息的触发操作,跳转至目标资源信息对应的播放页面。In a possible implementation, after the target comment sending module, a jump module is further included, and the jump module is configured to detect a trigger operation on the target resource information in the target comment, and jump to the play page corresponding to the target resource information.

在一种可能的实现方式中,装置还包括窗口隐藏模块,窗口隐藏模块用于响应于针对资源推荐窗口之外的空白处执行的触发操作、或响应于针对输入框中的初始评论的变更操作、或响应于针对资源推荐窗口中的关闭控件执行的触发操作、或检测到资源推荐窗口中没有搜索结果时,隐藏资源推荐窗口。In a possible implementation, the device further includes a window hiding module, which is configured to respond to a trigger operation performed on a blank space outside the resource recommendation window, or to respond to a change operation on an initial comment in an input box , or in response to a trigger operation performed on a close control in the resource recommendation window, or when it is detected that there is no search result in the resource recommendation window, the resource recommendation window is hidden.

在一种可能的实现方式中,目标资源信息包括与目标资源信息的类型相对应的标识。In a possible implementation manner, the target resource information includes an identifier corresponding to a type of the target resource information.

图10是本发明实施例提供的终端的示意图。如图10所示,该实施例的终端10包括:处理器1001、存储器1002以及存储在存储器1002中并可在处理器1001上运行的计算机程序1003。处理器1001执行计算机程序1003时实现上述各个信息显示方法实施例中的步骤,例如图2所示的步骤201至步骤202。或者,处理器1001执行计算机程序1003时实现上述各个交互装置实施例中各模块/单元的功能,例如图9所示模块/单元901至902的功能。Fig. 10 is a schematic diagram of a terminal provided by an embodiment of the present invention. As shown in FIG. 10 , theterminal 10 of this embodiment includes: aprocessor 1001 , amemory 1002 , and acomputer program 1003 stored in thememory 1002 and operable on theprocessor 1001 . When theprocessor 1001 executes thecomputer program 1003, the steps in the above embodiments of the information display method are implemented, for example, steps 201 to 202 shown in FIG. 2 . Alternatively, when theprocessor 1001 executes thecomputer program 1003, the functions of the modules/units in the foregoing interactive device embodiments, such as the functions of the modules/units 901 to 902 shown in FIG. 9 , are realized.

本发明还提供一种可读存储介质,可读存储介质中存储有计算机程序,计算机程序被处理器执行时用于实现上述的各种实施方式提供的信息显示方法。The present invention also provides a readable storage medium, wherein a computer program is stored in the readable storage medium, and when the computer program is executed by a processor, it is used to implement the information display method provided by the above-mentioned various embodiments.

其中,可读存储介质可以是计算机存储介质,也可以是通信介质。通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。计算机存储介质可以是通用或专用计算机能够存取的任何可用介质。例如,可读存储介质耦合至处理器,从而使处理器能够从该可读存储介质读取信息,且可向该可读存储介质写入信息。当然,可读存储介质也可以是处理器的组成部分。处理器和可读存储介质可以位于专用集成电路(ApplicationSpecific Integrated Circuits,简称:ASIC)中。另外,该ASIC可以位于用户设备中。当然,处理器和可读存储介质也可以作为分立组件存在于通信设备中。可读存储介质可以是只读存储器(ROM)、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。Wherein, the readable storage medium may be a computer storage medium, or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media can be any available media that can be accessed by a general purpose or special purpose computer. For example, a readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium may be located in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC for short). Additionally, the ASIC may be located in the user equipment. Of course, the processor and the readable storage medium can also exist in the communication device as discrete components. The readable storage medium may be read only memory (ROM), random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage devices, among others.

本发明还提供一种程序产品,该程序产品包括执行指令,该执行指令存储在可读存储介质中。设备的至少一个处理器可以从可读存储介质读取该执行指令,至少一个处理器执行该执行指令使得设备实施上述的各种实施方式提供的信息显示方法。The present invention also provides a program product, which includes execution instructions, and the execution instructions are stored in a readable storage medium. At least one processor of the device may read the execution instruction from the readable storage medium, and the at least one processor executes the execution instruction so that the device implements the information display method provided by the above-mentioned various implementations.

在上述设备的实施例中,应理解,处理器可以是中央处理单元(英文:CentralProcessing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文:DigitalSignal Processor,简称:DSP)、专用集成电路(英文:Application Specific IntegratedCircuit,简称:ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In the embodiment of the above device, it should be understood that the processor may be a central processing unit (English: Central Processing Unit, referred to as: CPU), and may also be other general-purpose processors, digital signal processors (English: DigitalSignal Processor, referred to as: DSP ), Application Specific Integrated Circuit (English: Application Specific Integrated Circuit, referred to as: ASIC), etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the method disclosed in conjunction with the present invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.

以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be described in the foregoing embodiments Modifications are made to the recorded technical solutions, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. An information display method, comprising:
in response to an input operation executed for an initial comment in an input box of a user posting interface in a floating mode, a resource recommendation window is displayed in the user posting interface in a floating mode, and a first search result corresponding to the initial comment is displayed in the resource recommendation window;
in response to a trigger operation executed for a first control in the resource recommendation window, displaying a target comment containing highlighted target resource information in the input box, wherein the target resource information corresponds to the first control.
2. The information display method of claim 1, wherein the method further comprises:
and responding to a trigger operation executed for a second control in the resource recommendation window, and displaying a second search result in the resource recommendation window.
3. The information display method of claim 1, wherein displaying a target comment containing highlighted target resource information in the input box in response to a triggering operation performed with respect to a first control in the resource recommendation window comprises:
responding to a trigger operation executed for a first control in the resource recommendation window, and highlighting target resource information corresponding to the first control to replace a target text in the initial comment;
and displaying the replaced target text and the text which is not replaced in the initial comment in the input box as a target comment.
4. The information display method of claim 3, wherein the highlighting of the target resource information corresponding to the first control for replacing the target text in the initial comment comprises:
acquiring position information contained in target resource information, wherein the position information contains starting point position information and end point position information;
searching a target text corresponding to the position information in the initial comment;
and highlighting the target resource information to replace the target text.
5. The information display method according to claim 1, wherein the target resource information is generated by:
uploading the initial comment to a search server, so that the search server performs NLP technical processing on the initial comment;
recalling the corresponding resource playing address according to the identified NER text after processing;
encapsulating the NER text, the position information of the NER text in the initial comment and the resource playing address into the target resource information;
and acquiring the target resource information returned by the search server.
6. The information display method of claim 1, wherein the responding to the triggering operation executed for the first control in the resource recommendation window, after displaying the target comment containing the highlighted target resource information in the input box, further comprises:
and in response to a triggering operation executed for the sending control in the input box, displaying the target comment in a comment area of the user posting interface.
7. The information display method of claim 6, wherein the responding to the triggering operation executed for the sending control corresponding to the input box further comprises, after the target comment is displayed in a comment area of the user posting interface:
and detecting the trigger operation of the target resource information in the target comment, and jumping to a playing page corresponding to the target resource information.
8. An information display device characterized by comprising:
the search result display module is used for responding to input operation executed aiming at initial comment information in an input box displayed in a suspension mode on a user posting interface, displaying a resource recommendation window in the suspension mode on the user posting interface, and displaying a first search result corresponding to the initial resource information on the resource recommendation window, wherein the initial comment information at least comprises the initial resource information;
and the target comment display module is used for responding to a trigger operation executed aiming at the first control in the resource recommendation window and displaying the target comment containing the highlighted target resource information in the input box.
9. A terminal comprising a memory, and one or more processors communicatively coupled to the memory;
the memory has stored therein instructions executable by the one or more processors to cause the one or more processors to implement the information display method of any one of claims 1 to 7.
10. A computer-readable storage medium characterized by comprising a program or instructions for implementing the information display method according to any one of claims 1 to 7 when the program or instructions are run on a computer.
CN202211328591.6A2022-10-272022-10-27 Information display method, device, terminal and storage mediumPendingCN115687807A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202211328591.6ACN115687807A (en)2022-10-272022-10-27 Information display method, device, terminal and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202211328591.6ACN115687807A (en)2022-10-272022-10-27 Information display method, device, terminal and storage medium

Publications (1)

Publication NumberPublication Date
CN115687807Atrue CN115687807A (en)2023-02-03

Family

ID=85099698

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202211328591.6APendingCN115687807A (en)2022-10-272022-10-27 Information display method, device, terminal and storage medium

Country Status (1)

CountryLink
CN (1)CN115687807A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN116828247A (en)*2023-07-102023-09-29北京字跳网络技术有限公司 Media content stream processing method, device, equipment and storage medium
CN117076627A (en)*2023-08-072023-11-17北京字跳网络技术有限公司Information interaction method, device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20170308589A1 (en)*2016-04-262017-10-26Facebook, Inc.Recommendations from Comments on Online Social Networks
CN109344241A (en)*2018-09-252019-02-15Oppo广东移动通信有限公司Information recommendation method and device, terminal and storage medium
CN113901776A (en)*2021-10-132022-01-07杭州网易云音乐科技有限公司Audio interaction method, medium, device and computing equipment
CN115203513A (en)*2022-06-232022-10-18腾讯科技(深圳)有限公司 Search terms recommend methods, apparatus, equipment and media

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20170308589A1 (en)*2016-04-262017-10-26Facebook, Inc.Recommendations from Comments on Online Social Networks
CN109344241A (en)*2018-09-252019-02-15Oppo广东移动通信有限公司Information recommendation method and device, terminal and storage medium
CN113901776A (en)*2021-10-132022-01-07杭州网易云音乐科技有限公司Audio interaction method, medium, device and computing equipment
CN115203513A (en)*2022-06-232022-10-18腾讯科技(深圳)有限公司 Search terms recommend methods, apparatus, equipment and media

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN116828247A (en)*2023-07-102023-09-29北京字跳网络技术有限公司 Media content stream processing method, device, equipment and storage medium
CN117076627A (en)*2023-08-072023-11-17北京字跳网络技术有限公司Information interaction method, device, computer equipment and storage medium

Similar Documents

PublicationPublication DateTitle
CN104462262B (en)A kind of method for realizing phonetic search, device and browser client
CN108432190B (en)Response message recommendation method and equipment thereof
US9633653B1 (en)Context-based utterance recognition
US8429099B1 (en)Dynamic gazetteers for entity recognition and fact association
US10122839B1 (en)Techniques for enhancing content on a mobile device
US9342233B1 (en)Dynamic dictionary based on context
US20150127748A1 (en)Recommendations for enhanced content in social posts
US12135752B2 (en)Linking to a search result
WO2020007012A1 (en)Method and device for displaying search page, terminal, and storage medium
CN109192212B (en) Voice control method and device
WO2020221162A1 (en)Application program recommendation method and apparatus, electronic device, and medium
CN112084305A (en)Search processing method, device, terminal and storage medium applied to chat application
KR102691841B1 (en)System and method for providing search service
CN109600646B (en)Voice positioning method and device, smart television and storage medium
CN112307315A (en)Intelligent service recommendation method and device
WO2023160413A1 (en)Book recommendation method and apparatus, and electronic device and storage medium
WO2020244487A1 (en)Easter egg presentation method and apparatus, electronic device, and computer readable storage medium
CN105204886A (en) A method for activating an application, a user terminal and a server
CN115687807A (en) Information display method, device, terminal and storage medium
CN115210692A (en)Interface and mode selection for digital motion execution
CN110929122B (en)Data processing method and device for data processing
CN112000823A (en)Function entry display method, electronic device and computer-readable storage medium
CN108111603A (en)Information recommendation method and device, terminal equipment and storage medium
US20140163956A1 (en)Message composition of media portions in association with correlated text
US12143347B2 (en)Providing a system-generated response in a messaging session

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp