Data processing method, device, equipment and computer program product

By extracting entity words from query log data and determining focus words, the problem of low focus word extraction efficiency in the existing technology is solved, and automated focus word extraction and efficient matching of recommended information are achieved.

CN116483946BActive Publication Date: 2024-09-20TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210051843.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-14
Publication Date
2024-09-20
Estimated Expiration
2042-01-14

AI Technical Summary

Technical Problem

It is difficult to efficiently determine and extract the focus words of resources with existing technology, resulting in low accuracy and low efficiency of recommended information.

Method used

By obtaining query log data, extracting entity words and determining the focus words of the target resource, automatic extraction of focus words is achieved without manual participation, which improves the efficiency of focus word extraction.

Benefits of technology

It achieves efficient and accurate extraction of focus words, improving the relevance of recommended information and user query and search efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116483946B
    Figure CN116483946B
Patent Text Reader

Abstract

The embodiment of the present application discloses a data processing method, device, equipment and computer program product, wherein the method comprises: obtaining query log data, the query log data comprising query data and the query data information; performing entity word extraction on the query data to obtain entity words related to the target resource; determining the target focus words corresponding to the target resource from the query log data according to the entity words so as to output the recommendation information related to the target resource based on the target focus words when there is a query operation for the target resource. By adopting the embodiment of the present application, human resources can be saved and the efficiency of focus word extraction can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a data processing method, device, equipment and computer program product. Background Art

[0002] In order to increase traffic, many applications with search functions choose to operate the relevant information of resources based on the focus words corresponding to the resources. For example, in a browser application, if a user enters a query operation related to a multimedia resource, some recommended information related to the multimedia resource can be output based on the focus words of the multimedia resource, such as video clips or images related to the focus words, etc.; for another example, for a text resource, the comments corresponding to the focus words in the relevant comments corresponding to the text resource can be output. Therefore, how to determine the focus words corresponding to a resource has become one of the hot issues in current research. Summary of the invention

[0003] The embodiments of the present application provide a data processing method, apparatus, device and computer program product, which improve the efficiency of focus word extraction.

[0004] On the one hand, an embodiment of the present application provides a data processing method, including:

[0005] Acquire query log data, the query log data including query data and query result information corresponding to the query data;

[0006] Extracting entity words from the query data to obtain entity words related to the target resource;

[0007] A target focus word corresponding to the target resource is determined from the query log data according to the entity word, and the focus word corresponding to the target resource is used to output recommendation information associated with the target resource based on the target focus word when there is a query operation for the target resource.

[0008] On the one hand, an embodiment of the present application provides another data processing method, including:

[0009] In response to a query operation for a target resource, displaying search results associated with the target resource, the search results including focus word information corresponding to the target resource, the focus word information being determined by the focus word;

[0010] In response to a trigger operation on the focus word information, recommended information associated with the target resource output based on the focus word is displayed.

[0011] On the one hand, an embodiment of the present application further provides a data processing device, including:

[0012] An acquisition unit, configured to acquire query log data, wherein the query log data includes query data and query result information corresponding to the query data;

[0013] An extraction unit, used to extract entity words from the query data to obtain entity words related to the target resource;

[0014] A determination unit is used to determine a target focus word corresponding to the target resource from the query log data according to the entity word, and the focus word corresponding to the target resource is used to output recommendation information associated with the target resource based on the target focus word when there is a query operation for the target resource.

[0015] On the one hand, an embodiment of the present application provides another data processing device, including:

[0016] A display unit, configured to display search results associated with a target resource in response to a query operation on the target resource, wherein the search results include focus word information corresponding to the target resource, and the focus word information is determined by the focus word;

[0017] The display unit is further configured to display, in response to a trigger operation on the focus word information, recommendation information associated with the target resource output based on the focus word.

[0018] In one aspect, an embodiment of the present application provides a data processing device, comprising: a processor, adapted to implement one or more computer programs; a computer storage medium, wherein the computer storage medium stores one or more computer programs, wherein the one or more computer programs are adapted to be loaded and executed by the processor:

[0019] Acquire query log data, the query log data including query data and query result information corresponding to the query data;

[0020] Extracting entity words from the query data to obtain entity words related to the target resource;

[0021] A target focus word corresponding to the target resource is determined from the query log data according to the entity word, and the focus word corresponding to the target resource is used to output recommendation information associated with the target resource based on the target focus word when there is a query operation for the target resource.

[0022] In one aspect, an embodiment of the present application provides another data processing device, comprising: a processor, adapted to implement one or more computer programs; a computer storage medium, wherein the computer storage medium stores one or more computer programs, wherein the one or more computer programs are adapted to be loaded and executed by the processor:

[0023] In response to a query operation for a target resource, displaying search results associated with the target resource, the search including focus word information corresponding to the target resource, the focus word information being determined by the focus word;

[0024] In response to a trigger operation on the focus word information, recommended information associated with the target resource output based on the focus word is displayed.

[0025] In one aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a computer program, and when the computer program is executed by a processor of a data processing device, the computer program is used to perform:

[0026] Acquire query log data, the query log data including query data and query result information corresponding to the query data;

[0027] Extracting entity words from the query data to obtain entity words related to the target resource;

[0028] A target focus word corresponding to the target resource is determined from the query log data according to the entity word, and the focus word corresponding to the target resource is used to output recommendation information associated with the target resource based on the target focus word when there is a query operation for the target resource.

[0029] When the computer program is executed by a processor of a data processing device, it is also used to perform:

[0030] In response to a query operation for a target resource, displaying search results associated with the target resource, the search including focus word information corresponding to the target resource, the focus word information being determined by the focus word;

[0031] In response to a trigger operation on the focus word information, recommended information associated with the target resource output based on the focus word is displayed.

[0032] In one aspect, an embodiment of the present application provides a computer program product or a computer program, wherein the computer program product includes a computer program, and the computer program is stored in a computer storage medium; a processor of a data processing device reads the computer program from the computer storage medium, and the processor executes the computer program, so that the data processing device executes:

[0033] Acquire query log data, the query log data including query data and query result information corresponding to the query data;

[0034] Extracting entity words from the query data to obtain entity words related to the target resource;

[0035] A target focus word corresponding to the target resource is determined from the query log data according to the entity word, and the focus word corresponding to the target resource is used to output recommendation information associated with the target resource based on the target focus word when there is a query operation for the target resource.

[0036] The processor of the data processing device reads the computer program from the computer storage medium and executes the computer program so that the data processing device performs:

[0037] In response to a query operation for a target resource, displaying search results associated with the target resource, the search including focus word information corresponding to the target resource, the focus word information being determined by the focus word;

[0038] In response to a trigger operation on the focus word information, recommended information associated with the target resource output based on the focus word is displayed.

[0039] In an embodiment of the present application, a data processing device can obtain query log data, which includes query data and query data information; entity words are extracted from the query data to obtain entity words related to the target resource; further, the target focus words corresponding to the target resource are determined from the query log data according to the extracted entity words, so that when there is a query operation for the target resource, the target resource-related recommendation information is output based on the target focus words corresponding to the target resource. Automatic extraction of focus words is achieved without manual participation, which greatly reduces the cost required for focus word extraction and improves the efficiency of focus word extraction. In addition, since the target focus words are determined based on the query log data of the object to be recommended, the target focus words are to a certain extent the content dimensions that the object to be recommended is more concerned about or interested in for the target resource. Therefore, outputting the recommendation information associated with the target resource based on the target focus words helps to recommend the information that the object to be recommended is more concerned about for the target resource, so that it can efficiently and quickly obtain the information of interest, thereby improving the efficiency of query and search. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0041] Figure 1a is a schematic diagram of outputting recommendation information associated with a target multimedia file provided by an embodiment of the present application;

[0042] Figure 1bis a schematic diagram of another method of outputting recommendation information associated with a target multimedia file provided in an embodiment of the present application;

[0043] Figure 1c is a schematic diagram of another output of recommendation information associated with a target multimedia file provided by an embodiment of the present application;

[0044] Figure 1d is a schematic diagram of another output of recommendation information associated with a target multimedia file provided in an embodiment of the present application;

[0045] Figure 2 It is a flowchart of a data processing method provided in an embodiment of the present application;

[0046] Figure 3 This is a schematic diagram of performing a query in a browser provided by an embodiment of the present application;

[0047] Figure 4 is a schematic diagram of inputting query data provided by an embodiment of the present application;

[0048] Figure 5a It is a structural diagram of a focus word processing model provided in an embodiment of the present application;

[0049] Figure 5b It is a schematic diagram of extracting a target focus word corresponding to a target resource provided by an embodiment of the present application;

[0050] Figure 6 It is a flowchart of another data processing method provided in an embodiment of the present application;

[0051] Figure 7 is a structural schematic diagram of a data processing device provided in an embodiment of the present application;

[0052] Figure 8 is a structural schematic diagram of another data processing device provided in an embodiment of the present application;

[0053] Fig. 9 is a structural schematic diagram of a data processing device provided in an embodiment of the present application;

[0054] Fig.10 It is a structural diagram of another data processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0055] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. It should be noted that in this application, when the following embodiments of this application are applied to specific products or technologies, the user's permission or consent is obtained, and the extraction, use and processing of relevant data comply with local safety standards and local laws and regulations.

[0056] Focus words are used to represent the content in a resource that users focus on and are more interested in. In other words, focus words can be understood as information dimensions that users are interested in. Focus words can be entity words, such as the name of a film or TV series, the names of the characters in the film or TV series; for example, keywords that can express the central idea and theme of the main article; or, focus words can also be non-entity words, such as a focus word in a film or TV series can be a touching moment, a magical plot, and so on. When studying focus words, this application proposes two schemes for determining the target resources (target resources refer to any type of resources, such as multimedia resources, plain text resources, etc.) corresponding to the focus words:

[0057] The first method is to extract query log data related to the target resource from the website that operates the target resource, and output the query log data so that the staff can extract words with a large number of user queries, clicks or interactions as the focus words corresponding to the target resource;

[0058] The second is: the data processing device obtains query log data, which includes query data of any object and query result information corresponding to the query data; and the data processing device analyzes and processes the query log data to extract focus words corresponding to the target resource from the query log data.

[0059] In order to avoid the waste of human resources and improve the efficiency of extracting focus words, this application will focus on the second solution below. Based on the above second solution, the embodiment of the present application provides a data processing solution that can automatically extract the target focus words in the target resource without human intervention, saving the cost of extracting focus words and improving the efficiency of extracting focus words. In the specific implementation, query log data is obtained, and entity words are extracted from the query data in the query log data to obtain entity words related to the target resource; further, the target focus words corresponding to the target resource are extracted from the query log data according to the entity words.

[0060] The data processing solution can be executed by a data processing device, which can be a terminal, such as a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, vehicle-mounted terminal, smart home appliance, smart voice interaction device, etc.; or, the data processing device can also be a server, such as an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.

[0061] Optionally, the data processing scheme can also be jointly executed by a data processing device and a log management device, and the log management device can be a terminal or a server. The data processing device is used to receive query data for any resource input by the object, for example, the query data can be "the real name of the xxx character in the xxx movie", or the query data can also be "the prototype of the character of the xxx character in the xxx TV series", etc., and then the data processing device transmits the received query data to the log management device for storage, and the log management device returns the query result identifier and the query result related to the query data to the data processing device, so that the query result identifier related to the query data is displayed by the data processing device, and when any query result identifier is triggered, the query result identified by the query result identifier is displayed. It should be noted that the number of data processing devices can be one or more.

[0062] When any data processing device needs to extract focus words, it can obtain query log data from the log management device, and then the data processing device extracts entity words from the query data in the query log data to obtain entity words related to the target resource, and determines the focus words corresponding to the target resource from the query log data based on the entity words. Then the data processing device can transmit the focus words corresponding to the target resource to the log management device, and the log management device stores the focus words corresponding to the target resource. When the data processing device needs to operate the recommended information associated with the target resource, the log management device transmits the focus words corresponding to the target resource to the data processing device.

[0063] The above is only a feasible implementation method between the data processing device and the log management device listed in the embodiment of the present application. In the specific implementation, it can include any other feasible methods, such as the data processing device stores the focus word locally after obtaining the focus word; or, the log management device stores the query log data in the blockchain. The blockchain is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database. It is a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Due to the structure of the blockchain, the data in the blockchain cannot be tampered with. Storing the query log data in the blockchain can ensure the security of the query log data based on the tamperability of the blockchain, thereby improving the accuracy of the focus words of the target resources extracted based on the query log data in the future.

[0064] The above-mentioned data processing scheme provided by the implementation of this application can be applied in the scenario of performing relevant queries on multimedia files through the browser, for example, it can be applied in the IP video search scenario in the browser. The above-mentioned data processing scheme of this application can be used to explore the hot topics of the plot that users are concerned about around new and popular TV series, movies, animations and other IP dramas, meet the user's short video consumption needs for the plot, satisfy curiosity, and create a sense of pleasure. At the same time, create a differentiated product experience in IP video search, which is used to increase the search volume of the business. In the scenario of IP video search in the browser, the target resource can be a target multimedia file. The number of focus words corresponding to the target multimedia file obtained by the above-mentioned data processing scheme can be N, and the N focus words are stored in the database corresponding to the browser. The database corresponding to the browser also stores multiple recommendation information associated with the target multimedia file. When a query operation about a target multimedia file is received in the browser, the data processing device can output multiple recommendation information corresponding to the target multimedia file based on the N focus words stored in the database. In one embodiment, outputting multiple recommendation information corresponding to the target multimedia file based on the N focus words means using the N focus words as dimensions for organizing information, integrating the information belonging to each dimension in the multiple recommendation information corresponding to the target multimedia file, and associating it with the corresponding focus word, so that information under the dimension corresponding to the focus word can be obtained based on the focus word.

[0065] In an exemplary specific application, the browser may display a query page, and the query operation may refer to the subject inputting text information or voice information in the query page and inputting an operation to confirm the query. Figure 1a, is a schematic diagram of outputting recommendation information associated with a target multimedia file provided in an embodiment of the present application. Assume that 101 represents a query page of a browser. The query page shown in 101 may include a search input box as shown in 102. The object may enter text information in the search input box 102. For example, the text information entered in the search input box 102 may be the name of the target multimedia file "xxx"; it may also be a certain plot or a certain character in the target multimedia file, etc.; the query page shown in 101 may also include a confirm query option as shown in 103. When the confirm query option 103 is triggered, it is determined that the object has entered an operation to confirm the query; when the object enters text information in the search input box 102 and the confirm query option 103 is selected, it is determined that there is a query operation to query the target multimedia file. When there is a query operation, the data processing device determines that the recommended information related to the target multimedia file needs to be output at this time based on the query operation, and then obtains N focus words corresponding to the target multimedia file and L recommendations related to the target multimedia file from the database. Among the L recommended information, one recommended information corresponds to an information identifier. For example, if the recommended information is a video, the information identifier corresponding to the recommended information can be the title of the video; or if the recommended information is an article, the information identifier corresponding to the recommended information can be the title of the article; based on the matching relationship between the N focus words and the L recommended information, the L recommended information are displayed.

[0066] In one embodiment, displaying L recommended information according to the matching relationship between N focus words and L recommended information may include: displaying N focus words in the query page; when any focus word is selected, displaying the recommended information corresponding to the information identifier matching any focus word. For example, in the query page shown in 101, the area shown in 104 includes multiple focus words corresponding to the target multimedia file, such as focus word 1, focus word 2, focus word 3, and focus word 4; when focus word 1 is triggered, the data processing device displays the recommended information matching focus word 1 such as Figure 1a As shown in 105, for example, recommended information 1A and 1B that match focus word 1. When displaying recommended information that matches focus word 1, the information identifier of the recommended information may also be displayed simultaneously, such as information identifier 12 corresponding to recommended information 11.

[0067] In one embodiment, when the query page displays multiple focus words, some recommended information associated with the target resource may also be displayed at adjacent positions of the multiple focus words. The recommended information may be any information in the recommended information associated with the target resource, such as Figure 1aAs shown in 106, these recommendation letters can also be recommendation information associated with a certain focus word. For example, multiple focus words can be displayed in a search page in a random order, and the search page can also simultaneously display recommendation information matching the focus words in the first order.

[0068] In the query page, the recommended information associated with the target resource is displayed horizontally. Horizontal display may mean that 2 or more recommended information are displayed in each row, and the information identifiers corresponding to the recommended information are displayed below or above the corresponding recommended information; when any focus word is selected, the information matching any focus word is displayed in a vertical search page, and the recommended information corresponding to each focus word in the vertical search page is displayed vertically. Vertical display means that only one recommended information is displayed in each row, and the information identifiers corresponding to the recommended information are displayed on the right or left side of the corresponding recommended information.

[0069] In another embodiment, displaying L recommended information based on the matching relationship between N focus words and L recommended information may also refer to: displaying summary information and trigger options of the N focus words in the query page; when the trigger option is selected, displaying the N focus words and when any of the N focus words is triggered, displaying the recommended information corresponding to any focus word.

[0070] The summary information corresponding to the N focus words displayed on the query page may be a summary of the N focus words, and the summary information of the N focus words may be represented by any focus word + other summary content, such as "Focus word 1 and other hot topics"; or, the summary information of the N focus words may only include summary content such as "hot focus words". Figure 1b , is a schematic diagram of another method of outputting recommendation information associated with a target multimedia file provided in an embodiment of the present application. Figure 1b The query page is represented by 111, in which 112 represents summary information corresponding to N focus words, and 113 represents a trigger option, which can be "more"; after the trigger option shown in 113 is selected, the data processing device displays N focus words as shown in the area 115 of 114, and the N focus words can be focus word 1, focus word 2, focus word 3 and focus word 4 respectively. If the user of the data processing device selects focus word 2, recommended information matching focus word 2 can be displayed, such as Figure 1b As shown in part 116.

[0071] Optionally, if the summary information of the N focus words includes any focus word, the summary information is displayed on the query page, and the recommended information matching the focus word can also be displayed, such as Figure 1b The summary information refers to the focus word 1, so the query page can also display recommended information matching the focus word 1, such as Figure 1b As shown in the 117 area.

[0072] It should be noted that in Figure 1b When the trigger option is selected, N focus words can be displayed in any order, and before any focus word is triggered, the recommended information matching the focus word ranked first can be displayed by default.

[0073] Due to the screen size limitation of the data processing device, it may not be possible to display all N focus words at once. As an optional implementation, a target number, such as i, can be determined according to the screen size of the data processing device, and i focus words out of the N focus words are displayed, while the other focus words are folded; when there is a trigger operation for displaying the folded focus words, the folded focus words are displayed. Among them, the trigger operation for displaying the folded focus words may refer to an operation of swiping left or right in the area displaying i focus words. For example, see Figure 1c , is a schematic diagram of viewing N focus words provided in an embodiment of the present application, 010 represents a display page, the area marked by 011 is the area in the display page for displaying N focus words, assuming that the value of N is 6, that is, there are 6 focus words, but only 4 focus words can be displayed in the area at a time, at this time, you can swipe left and right in the area marked by 011, and when you swipe left, you can view focus word 5 and / or focus word 6, and at this time, focus word 1 and / or focus word 2 are hidden. Figure 1c As shown in 012; swiping to the right, focus word 5 and / or focus word 6 are hidden, and focus word 1 and / or focus word 2 are displayed again in the area indicated by 011.

[0074] Optionally, the trigger operation for displaying the collapsed focus words may also refer to: the query page includes a trigger option for triggering the display of all focus words, and when the trigger option is selected, it is determined that there is a trigger operation for displaying the collapsed focus words. Figure 1d , is another schematic diagram of viewing N focus words provided by the embodiment of the present application, 013 represents the query page, 014 represents a part of the focus words displayed in the query page, and 015 represents the trigger option of viewing all the focus words. Assuming that the value of N is 6, that is, there are 6 focus words, but only 4 focus words are displayed at 014, when option 015 is triggered, focus words 5 and 6 are displayed in the query page, as shown in FIG. Figure 1d As shown in Figure 016.

[0075] It should be understood that the L recommended information matching the query request may include many categories, such as video category, information category, user category, related applets, etc., so the filter items corresponding to these categories of information can be displayed on the first page for the object to select the corresponding category of recommended information to view. Figure 1a The filter items displayed on the query page can be "Comprehensive", "Information", "User" and "Mini Program" and so on.

[0076] It should be noted that the above is only one application scenario of the data processing solution listed in the present application. In practice, the data processing solution of the present application can also be applied to other scenarios that require pushing recommendation information associated with any type of file, such as in multimedia applications. By analyzing the query log data of historical time periods in the multimedia application, the focus words corresponding to each multimedia file supported for playback in the multimedia application are determined. Next time, when an object queries any multimedia file in the multimedia application, video clips, pictures or text information related to the multimedia file are pushed to the object based on the focus words corresponding to the multimedia file.

[0077] Based on the above data processing scheme, the present application embodiment provides a data processing method, see Figure 2 , which is a flow chart of a data processing method provided in an embodiment of the present application. Figure 2 The data processing method can be executed by a data processing device, and specifically by a processor of the data processing device. Figure 2 The data processing device may include the following steps:

[0078] Step S201: Acquire query log data, where the query log data includes query data and query result information.

[0079] The query log data can be obtained by the message processing device from the local storage, or the query log data can be stored in other devices and obtained by the data processing device through interaction with other devices. For example, the query log data is stored in a device dedicated to managing log data, which can be any node in the blockchain network. In this way, the query log data can be stored in the blockchain network to ensure that the query log data is not tampered with.

[0080] Query log data can be record data when one or more objects perform queries in any application or website within any historical time period. In one embodiment, the query log data may include query data, the number of query data is one or more, and one query data can be represented by a query. In the embodiments of the present application, unless otherwise specified, the query data mentioned below can be any query data in the query log data, and any other query data are processed in the same way using the data processing method of the embodiments of the present application. Query data refers to the content that the object wants to query. For example, if the query log data comes from a browser, then a query data can be understood as the content entered in the search input box of the browser. For example, see Figure 3 , is a schematic diagram of performing a query in a browser provided in an embodiment of the present application, 301 represents the query interface of the browser, 302 represents the search input box included in the query interface, if "the prototype of the character of the y character in the x TV series" is entered in the search input box 302, then "the prototype of the character of the y character in the x TV series" is a query data.

[0081] Alternatively, the search input box 302 may include a voice input option as shown in 303. The subject may input a voice by triggering the voice input option 303, and then the data processing device converts the input voice into text and displays it in the search input box 302. At this time, the text content displayed in the search input box 302 is the query data. For example, after the voice input option 303 is triggered, the data processing device displays a voice input prompt window as shown in FIG. Figure 4 As shown in 401, the object inputs a voice according to the prompt in the voice input prompt window, and the data processing device converts the voice into text information such as "What is the name of the actor who plays xyzw in the xxxxxx movie?", so "What is the name of the actor who plays xyzw in the xxxxxx movie?" is a query data.

[0082] In another embodiment, the query log data may also include query result information corresponding to the query data, one query data corresponds to one or more query results, and each query result corresponds to a query result information. Optionally, the query result mentioned in the embodiment of the present application may refer to a query result whose click count is greater than a click count threshold among multiple query results corresponding to the query data; or, all query results corresponding to the query data may also be referred to. Unless otherwise specified, for the sake of simplicity and clarity of description, the embodiment of the present application takes one query result as an example, and other query results may be processed using the same method as the embodiment of the present application.

[0083] The query result corresponding to each query data refers to the information that matches the query data. For example, the database stores many wonderful video clips of TV series and many profile information of actors. When the query data is xxx TV series, all the information related to the xxx TV series stored in the database can be output as the query result that matches the query data. The query result information of a query result can be any one or more of the query result identifier, query result, or query result summary information. Among them, the query result identifier can refer to any one or more of the query result title and query result cover information. For example, in Figure 3 304 and 305 are both query result identifiers corresponding to the query data "character prototype of xzx character in xxy TV series". The summary information of the query result can be any part of the query result, or the content that can express the theme of the query result. For example, if the query result is an article, the summary information of the query result can refer to the abstract part of the article; if the query result is a video, the summary information of the query result can be the cover of the video.

[0084] Step S202: extract entity words from the query data to obtain entity words related to the target resource.

[0085] Entity words are a general term for pronouns and nouns. For example, if a query is "xzx role in xxy TV series", xxy TV series and xzx role are entity words in this query. Entity words related to target resources can include the name of the target resource and entity words of any content related to the target resource. For example, if the target resource is a multimedia file, then the entity words related to the multimedia file can be the name of the multimedia file and the name of the relevant role in the multimedia file; for another example, if the target resource is a text file, then the entity words related to the text file can be the name of the text file and any noun or pronoun that can summarize the central idea of ​​the text file.

[0086] Entity word extraction can also be called named entity recognition. In one embodiment, the data processing device can use traditional machine learning methods to extract entities from query data. For example, training documents are collected and named entities are marked for each word in the training documents; a feature extraction method suitable for the training documents is designed, and a model is trained based on the training documents and the named entities and feature extraction methods marked in the training documents. After the training is completed, the model is called to extract entity words from the query data and output the entity words in the query data.

[0087] In other embodiments, the data processing device may also extract entity words from the query data through encoding or deep learning, which is not specifically introduced in the embodiments of the present application.

[0088] One or more entity words are obtained by extracting entity words from the query data, and these entity words are determined as candidate entity words. Then, one or more candidate entity words are mapped to the entity word library to determine the entity type corresponding to each candidate entity word from the entity word library. The entity type may include multimedia type, text type and other types. Based on the entity type corresponding to each candidate entity word, a candidate entity word with a target entity type is selected from one or more candidate entity words, and the selected candidate entity word is used as an entity word related to the target multimedia file. The target type refers to the type of the target resource. For example, if the target resource is a multimedia file, then the type of the target resource is a multimedia type; if the target resource is a text file, then the type of the target resource is a text type.

[0089] The entity vocabulary can store a large number of entity words corresponding to various types of resources and the entity type corresponding to each entity word. Mapping one or more candidate entity words to the entity vocabulary to determine the entity type corresponding to each candidate entity word from the entity vocabulary can refer to: finding the entity word corresponding to each candidate word from the entity vocabulary, and determining the entity type to which each found entity word belongs as the entity type of each candidate entity word.

[0090] Step S203: Determine the target focus word corresponding to the target resource from the query log data according to the entity word.

[0091] Although some entity words included in the target resource have been determined in step S202, it is not possible to identify these entity words as the focus words of the target resource, because there may be some non-entity words in the query log data that can be used as focus words. For example, if the target resource is a multimedia file, non-entity words such as "wonderful plot" and "touching moment" may also be the focus words that users pay attention to, as the focus words of the multimedia file. These focus words need to be determined in step S203.

[0092] When executing step S203, it may specifically include: screening out multiple candidate words associated with entity words from the query log data; determining the target focus words corresponding to the target resource from the multiple candidate words. Among them, screening out multiple candidate words associated with entity words from the query log data means: performing word segmentation processing on the query data to obtain the various feature words included in the query data, and determining the target information including the entity words from the query result information, and performing word segmentation processing on the target information to obtain the various feature words included in the target information; the various feature words included in the query data and the various feature words included in the target information can be used as multiple candidate words associated with the entity words in the query log data. Among them, a feature word can be called a token, then a candidate word refers to a feature word, so a candidate word can also be represented by a token.

[0093] Among them, obtaining feature words by performing word segmentation on query data means: performing word segmentation on the query data to obtain each word included in the query data, and then filtering out meaningless words from these words, and using the remaining words after screening as the feature words obtained by performing word segmentation on the query data. Similarly, obtaining feature words by performing word segmentation on target information means: performing word segmentation on the target information to obtain each word included in the target information, and then filtering out meaningless words from these words, and using the remaining words after screening as the feature words obtained by performing word segmentation on the target information. Among them, meaningless words refer to function words, interjections, determiners, etc., such as 'de', 'di', 'a'.

[0094] The data processing device can use the same word segmentation method to perform word segmentation on the query data and the target information. Commonly used word segmentation methods can include dictionary-based word segmentation algorithms, such as forward maximum matching method, reverse maximum matching method, and bidirectional matching word segmentation method, as well as statistical machine learning algorithms such as neural network-based word segmenters, and Jieba word segmentation tools, etc. The embodiments of the present application can use any of the above word segmentation methods to perform word segmentation on the query data and the target information. For example, if the query data is "the character prototype of xx in the xyz TV drama", after performing word segmentation on the query data, the obtained words can be 'xyz', 'TV drama', 'xx', 'character', 'de', 'person', 'prototype' respectively. Among these words, filtering out meaningless words, such as 'de', the remaining words can be used as the feature words obtained by performing word segmentation on the query data.

[0095] As can be seen from the foregoing, the query result information can include any one or more of the identifier of the query result, the query result, and the summary information of the query result; if the query result includes the identifier of the query result, then the target information including the entity word in the query result information can refer to the identifier of the query result; if the query result includes the query result, then the target information including the entity word in the query result can refer to the sentence or paragraph including the entity word in the query result; similarly, if the query result includes the summary information of the query result, then the target information including the entity word in the query result also refers to the paragraph or sentence including the entity word.

[0096] In the embodiments of the present application, by extracting the target focus words corresponding to the target resources from the query data and the query result information, rather than only extracting the target focus words from the query data, it is because there may be some words that do not appear in the query data but appear frequently in the query result information, which indicates that these words may also be the content that the object focuses on in the target resources.

[0097] In one embodiment, when a data processing device determines a focus word corresponding to a target resource from multiple candidate words, it first performs semantic fusion and feature extraction processing on each candidate word in the multiple candidate words based on the various feature words included in the query data and the various feature words included in the query result information to obtain the word features corresponding to each candidate word; then, it performs focus word extraction processing based on the word features corresponding to each candidate word to obtain the target focus word corresponding to the target resource.

[0098] In a specific implementation, the data processing device may call the focus word processing model to execute the steps of performing semantic fusion and feature extraction processing on each candidate word in the multiple candidate words based on each feature word included in the query data and each feature word included in the query result information, and specifically, the step may be to call the language processing model in the focus word processing model to execute the processing. Figure 5a , is a structural diagram of a focus word processing model provided in an embodiment of the present application, 500 represents the focus word processing model, the focus word processing model 500 may include an input layer 501 and a language processing model 502, the input layer 501 and the language processing model 502 are connected, the input layer 501 is used to receive each feature word included in the query data and each feature word included in the query result data, for example, Figure 5a The area indicated by 504 contains the characteristic words in the query data, and the area indicated by 505 contains the characteristic words included in the query result data.

[0099] The input layer 501 transmits each feature word in the query data and each feature word included in the query result data to the language processing model 502. The language processing model 502 can be any pre-trained language processing model such as a bidirectional encoder based on Transformer (Bidirectional Encoder Representations from Transformer, BERT) model, a Markov model, and a hidden Markov model, etc. In the embodiment of the present application, the language processing model is introduced as a BERT model as an example. The language processing model 502 can constitute the feature extraction layer 51 of the focus word processing model.

[0100] The language processing model 502 performs semantic fusion and feature extraction on each candidate word vector based on each feature word included in the query data and each feature word included in the query result information. It should be understood that the query result corresponding to the query data may be one or more. The central idea of ​​the language processing model 502 to perform semantic fusion and feature extraction on each candidate word based on each feature word included in the query data and each feature word included in the query result information is: interact with each feature word included in the query data and each feature word in each query result, perform feature extraction on each candidate word vector based on the interaction process, and obtain the word feature corresponding to each candidate word vector. For example, the word feature corresponding to each candidate word included in the area indicated by 505. It should be understood that each candidate word includes each feature word in the query data, and includes the feature word included in the target information in the query result information. Then, when each feature word in the query data and each feature word in the query result are input into the focus word processing model, each candidate word is also input into the focus word processing model. The order of the word features corresponding to each candidate word in the area indicated by 505 can be the same as the input order of each candidate word.

[0101] Furthermore, after obtaining the word features corresponding to each candidate word, the data processing device can perform focus word extraction processing based on the word features corresponding to each candidate word to obtain N focus words corresponding to the target resource. In one embodiment, the focus word processing model includes not only the language processing model but also the focus word extraction model such as Figure 5a As shown in 52, the focus word extraction model 52 constitutes the task layer in the focus word processing model. The focus word extraction model can also include an extraction model such as Figure 5a As shown in 511, the focus word extraction process based on the word features corresponding to each candidate word can be performed by the data processing device calling the extraction model in the focus word processing model. In a specific implementation, the data processing device calls the extraction model to perform focus word extraction process on the query data based on the word features corresponding to each candidate word to obtain the target focus word corresponding to the target resource, which may include the following steps:

[0102] s1: Merge the word features corresponding to multiple candidate words that constitute the entity words in multiple candidate words to obtain the entity word merged features. As mentioned above, each candidate word is obtained by segmenting the query data or the target information. Then one candidate word corresponds to a word in the query data or a word in the target information. In this way, one entity word may be split into several candidate words. For example, if the entity word extracted from the query data is Zhang San Legend, then when segmenting the query data, Zhang San may be split as a feature word, and Legend may be split as a feature word. Figure 5av-sub represents the entity word merge feature obtained by merging the word features corresponding to each candidate word including the entity word. If the query data includes multiple entity words, then step s1 is performed for each of the above entity words to obtain the entity word merge feature corresponding to each entity word.

[0103] After obtaining each candidate word, the data processing device can use a double pointer to mark the position of each candidate word in the query data or target information. The position can include two pieces of information, one is the starting position mark, and the other is the ending position mark. If the starting position mark corresponding to a candidate word is 1 and the ending position mark is 0, it means that the candidate word belongs to the starting point of an entity word, that is, it means that the candidate word is a candidate word that constitutes the entity word. If the starting position and the ending position of a candidate word are both 0, indicating that the candidate word is neither the starting position of an entity word nor the ending position of an entity word, then it may not be a component of the entity word, or it may belong to the middle position of the entity word. For example, in Figure 5a In the example, the position of each candidate word is indicated in region 507. S1 can determine multiple candidate words constituting the entity word according to the position of each candidate word, and then merge the word features corresponding to the multiple candidate words to obtain the entity word merge feature. Optionally, the word features corresponding to the multiple candidate words constituting the entity word can be merged in dimension using max-pooling to obtain the entity word merge feature.

[0104] s2: Concatenate the entity word merge features with the word features corresponding to each candidate word to obtain the concatenated features corresponding to each candidate word. Figure 5a In , h represents the word feature corresponding to each candidate word, h+v-sub represents the concatenation feature corresponding to each candidate word, and the concatenation feature corresponding to each candidate word needs to be output to the extraction model to facilitate the execution of the following step s3.

[0105] s3: Predict the position probability of each candidate word based on the concatenation features corresponding to each candidate word. The position probability of each candidate word is used to indicate whether each candidate word belongs to the starting position or the ending position of a focus word.

[0106] s4: Mark the position of each candidate word in turn according to the position probability corresponding to each candidate word. If a candidate word belongs to the starting position of a focus word, then the position of the candidate word is used to indicate that it belongs to the starting position and not the ending position. It can be understood here that a double pointer is used to mark the position of each candidate word. For example, if the position of a candidate word is the starting position of a focus word, then the position of the candidate word can be represented as: the starting position is marked as 1, and the ending position is marked as 0. For example, in Figure 5aIn FIG. 5 , area 508 shows the location marked for each candidate word.

[0107] s5: sequentially combine the first candidate word whose position is the starting position, the second candidate word whose position is the ending position, and each candidate word between the first candidate word and the second candidate word into a focus word, so as to determine M candidate focus words. Figure 5a In area 508, that is, each candidate word between the starting position marked as 1 and the ending position marked as 1 constitutes a candidate focus word.

[0108] s6: Determine the target focus word corresponding to the target resource from the M candidate focus words. As an optional implementation, the M candidate focus words can all be used as the target focus words corresponding to the target resource.

[0109] As another optional implementation, since the present application only takes the processing of one query data as an example, in actual processing, it is necessary to use the above steps of the present application to process many query data. Each time a query data is processed, M candidate focus words corresponding to the target resource can be obtained. If multiple query data are processed, multiple groups of M candidate focus words can be obtained. There may be duplicates among these candidate focus words. Therefore, after each query data is processed to obtain M candidate focus words, the M candidate focus words can be added to the focus word candidate set; then all the candidate focus words in the focus word candidate set are deduplicated, and the deduplicated candidate focus words are used as the target focus words corresponding to the target resource.

[0110] As another optional implementation, not every M candidate focus word obtained in step s5 is suitable as the target focus word of the target resource. It is necessary to perform a discrimination process on each of the M candidate focus words to determine whether each candidate focus word is suitable as the target focus word of the target resource. The data processing device can call the discrimination model in the focus word processing model to execute this step. The role of the discrimination model is to filter out some inappropriate candidate focus words. Figure 5a, 509 is a discriminant model. In a specific implementation, the discriminant model is called, and the word features corresponding to the multiple candidate words that constitute each candidate focus word in the multiple candidate words are merged and processed respectively to obtain the candidate focus word merged features corresponding to each candidate focus word; the candidate focus word merged features corresponding to each candidate focus word are spliced ​​with the entity word merged features to obtain the spliced ​​features corresponding to each candidate focus word; each candidate focus word is discriminated based on the spliced ​​features corresponding to each candidate focus word to obtain the discrimination result corresponding to each candidate focus word, and the discrimination result corresponding to each candidate focus word is used to indicate the probability of each candidate focus word as the target focus word corresponding to the target resource; the M candidate focus words are screened according to the discrimination result of each candidate focus word to obtain W candidate focus words, and the W candidate focus words are added to the focus word candidate set, and the target focus word corresponding to the target resource is determined from the focus word candidate set. Wherein, M is a positive integer, and W is a positive integer less than or equal to M.

[0111] Among them, screening the M candidate focus words according to the discrimination result of each candidate focus word can be to screen out the candidate focus words whose probability included in the discrimination result is greater than a certain probability threshold among the M candidate focus words. For example, the candidate focus words with a probability greater than 0.5 are screened out and added to the candidate focus word set, and the ones with a probability less than 0.5 are filtered out.

[0112] In one embodiment, with the development of artificial intelligence, the focus word processing model can be any network model that can meet the above input and output. Artificial intelligence is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology of computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that the machines have the functions of perception, reasoning and decision-making.

[0113] Artificial intelligence technology is an interdisciplinary subject that covers a wide range of fields, including both hardware-level and software-level technologies. Basic artificial intelligence technologies generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operating / interactive systems, mechatronics and other technologies. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, machine learning / deep learning, autonomous driving, smart transportation and other major directions. The extraction model and discrimination model included in the above-mentioned focus word processing model can be a network model in the field of artificial intelligence that can meet the corresponding input and output in the field of natural language processing.

[0114] Determining the target focus word corresponding to the target resource from the focus word candidate set may include: performing deduplication processing on multiple candidate focus words in the focus word set; obtaining the heat of each candidate focus word after deduplication processing; and determining the focus word with a heat greater than a heat threshold as the target focus word corresponding to the target resource. The heat of each candidate focus word may be an indicator used to reflect the popularity of each candidate focus word. For example, the heat of each candidate focus word may be determined based on the click-through rate, reading time, etc. for query data or query result information including the candidate focus word in the query log data. In a specific example, the heat of each candidate added word may be the click-through rate for query data or query result information including the candidate focus word in the query log data. Low-heat candidate focus words may not be the focus of users' recent attention. By removing low-heat candidate focus words, it can be ensured that the target focus words extracted from the remaining candidate focus words are more timely and can promptly reflect the focus of users on the target resources in the recent time period.

[0115] In one embodiment, if the number of entity words obtained is two or more, and these entity words respectively include the name corresponding to the target resource and other information in the target resource. Due to the uncertainty of the query content when the object is queried, the name corresponding to the target resource in the query data may not correspond to other information in the target resource, such as the name of the multimedia resource and the role name in the multimedia resource. That is to say, the two entities extracted from the query data may not belong to the same target resource. In order to verify whether the two or more entities extracted from the query data match, screening can be performed through the discriminant model. Specifically, the word features corresponding to the feature words constituting the name of the target resource are merged to obtain the name entity word merged feature, and then the word features corresponding to the feature words constituting the entity words including other information in the target resource are merged to obtain the other entity word merged feature; the name entity word merged feature and the other entity word merged feature are spliced ​​to obtain the spliced ​​feature, and the discriminator model is called to predict the matching relationship between the name of the target resource and other information based on the spliced ​​feature. If the probability in the prediction result is greater than a certain probability threshold, it means that the name and other information are matched; if the probability in the prediction result is less than the probability threshold, it means that the name and other information are not matched.

[0116] To summarize the above, in the embodiment of the present application, the focus word processing model is called to determine the target focus word corresponding to the target resource from the query log data according to the entity word. The focus word processing model can be a supervised model, and certain corpus needs to be labeled to train the focus word processing model. The general process of training the focus word can be as follows: obtaining training data, the training data includes a query log data for training, the query log data includes the query data for training and the query result information corresponding to the query data, the training data also includes a supervision label corresponding to the arbitrary resource, the supervision label includes the focus word corresponding to the arbitrary resource, and the matching relationship between any two entity words in the query data for training; processing the training data in the same manner as step S201 and step S202 above to obtain the predicted focus word of the arbitrary resource predicted by the focus word processing model, and the predicted matching relationship between two entity words in any resource predicted by the focus word processing model; determining a loss function (loss) according to the focus word and the predicted focus word corresponding to any resource in the supervision label, and determining a loss function (loss) according to the predicted matching relationship between two entities and the matching relationship between the two entities in the supervision label, and adding the two loss functions for joint learning. Specifically, the network parameters of the focus word processing model can be optimized according to the value of the loss function after the loss function is added, so that the network parameters can better learn the difference between the focus word of a resource and other words in the query data and query result information of the resource, thereby ensuring that the focus word processing model after training can accurately analyze the characteristics of each word from the query data and query result information corresponding to the target resource based on the trained parameters, and analyze which words can be used as focus words according to the characteristics of each word.

[0117] In other words, when training the focus word processing model, some data that have been marked with the matching relationship between the focus word and the entity are used. The focus word processing model analyzes the characteristics of each word in these data, the relationship characteristics between the entity word and other words, or the position characteristics of each word to predict the focus word. The network parameters of the focus word processing model are adjusted based on the difference between the predicted focus word and the supervision label to ensure that the focus word processing model has the ability to analyze the characteristics of each word in a certain piece of data, the relationship characteristics between the entity word and other words, and the position characteristics of each word. The focus word processing model also has the ability to analyze and select focus words based on this information. Based on these two capabilities, the focus word processing model can be used to determine the focus word in any data.

[0118] In the embodiment of the present application, the target focus word corresponding to the target resource is determined by calling the focus word processing model. The focus word processing model is obtained through supervised training. The trained focus word processing model can more accurately know what kind of features the focus word should have, what kind of position it should be in, and what kind of semantic relationship it has with other words, etc. Then, by calling the trained focus word processing model to extract the focus word of the target resource, it can be ensured that the focus word processing model can more accurately analyze the features of each word in the query log data, the semantic relationship between words, the positional features of words, etc. Because the focus word processing model has the ability to judge which words have which features and belong to the focus word, the focus word processing model can more accurately predict the focus word of the target resource through this information.

[0119] Based on the description of the above steps, the present application embodiment provides a flowchart for extracting the focus word of the target resource, see Figure 5b As shown. The data processing device first obtains the query log data, and then performs log processing on the query log data. The log processing here can extract entity words from the query data as mentioned above, and select candidate words associated with the entity words from the query log data according to the entity words; further, call the focus word processing model to perform focus word extraction processing based on the selected candidate words to obtain candidate focus words, corresponding to the aforementioned W candidate focus words; then add the W candidate focus words to the focus word candidate set; remove duplicates and low heat from each candidate focus word in the focus word candidate set; then determine the candidate focus words belonging to the target resource in the processed candidate focus words as the target focus words corresponding to the target resource. Furthermore, the target focus words corresponding to the target resource can be added to the focus library corresponding to the target resource, so that in the subsequent query scenario about the target resource, each target focus word in the focus library can be used as an information dimension to display the recommended information associated with the target resource, and the recommended information belonging to this information dimension.

[0120] In an embodiment of the present application, a data processing device can obtain query log data, which includes query data and query data information; entity words are extracted from the query data to obtain entity words related to the target resource; further, the target focus words corresponding to the target resource are determined from the query log data according to the extracted entity words, so that when there is a query operation for the target resource, the target resource-related recommendation information is output based on the target focus words corresponding to the target resource. Automatic extraction of focus words is achieved without manual participation, which greatly reduces the cost required for focus word extraction and improves the efficiency of focus word extraction. In addition, since the target focus words are determined based on the query log data of the object to be recommended, the target focus words are to a certain extent the content dimensions that the object to be recommended is more concerned about or interested in for the target resource. Therefore, outputting the recommendation information associated with the target resource based on the target focus words helps to recommend the information that the object to be recommended is more concerned about for the target resource, so that it can efficiently and quickly obtain the information of interest, thereby improving the efficiency of query and search.

[0121] Based on the above data processing method, the present application embodiment provides another data processing method, see Figure 6 , which is a flow chart of another data processing method provided in an embodiment of the present application. Figure 6 The data processing method can be executed by a data processing device, and specifically by a processor of the data processing device. Figure 6 The data processing method may include the following steps:

[0122] Step S601: In response to a query operation on a target resource, search results associated with the target resource are displayed, wherein the search results include focus word information corresponding to the target resource.

[0123] The query operation may be input on the query page. For relevant embodiments of how to determine whether there is a query operation for the target resource, see Figure 1a-1d The description of the relevant contents in the embodiment will not be repeated here. A query operation corresponds to a query data, for example, the query operation is Figure 1a If text information is entered in the search input box and the confirmation option is triggered, then the text information in the search input box is the query data; for example, the query operation is to enter voice information on the query page and trigger the confirmation option, then the text information corresponding to the voice information is the query data corresponding to the operation.

[0124] If a query operation for a target resource is detected, the data processing device may obtain search results corresponding to the query data in the query operation, and may display the search results associated with the target resource in the query page. The search results may include part or all of the query results corresponding to the query data and the focus word information corresponding to the target resource. Figure 1a 610 indicates search results and Figure 1b 611 represents the search result. The focus word information may include the focus word or the summary information of the focus word. The summary information of the focus word refers to the information generated based on the focus word and has a summary meaning of the focus word. For example, the summary information of the focus word may be "hot focus word". For example, assuming that the focus words corresponding to the target resource are focus word 1, focus word 2, focus word 3 and focus word 4, in Figure 1a The search results shown in 610 may include the focus word corresponding to the target resource as shown in area 104; the summary information corresponding to the focus word may be represented as 'plot focus: focus word 1', and the search results may include the summary information of the focus word as shown in area 104. Figure 1b As shown in the 112 area.

[0125] Step S602: In response to a trigger operation on the focus word information, display the recommended information associated with the target resource output based on the focus word.

[0126] The query page may also include a trigger option, such as Figure 1a As shown in 615; if the focus word information includes a focus word, then the trigger operation on the focus word information includes the focus word being triggered, or the trigger operation on the focus word information includes the trigger option being selected.

[0127] In one implementation, if the focus word information includes summary information of the focus word, the focus word information also includes a first focus word, and a first sub-search result corresponding to the first focus word is also displayed in the query page, the first sub-search result includes j first recommendation information, and the first recommendation information is the recommendation information associated with the target resource output based on the first focus word. Based on this, in response to a trigger operation on the focus word information, displaying the recommendation information associated with the target resource output based on the focus word may include: in response to a trigger operation on the first sub-search result, displaying p first recommendation information.

[0128] If the target resource has one focus word, then the first focus word refers to the focus word corresponding to the target resource; if the target resource has multiple focus words, then the first focus word refers to any one of the multiple focus words. Figure 1b The content indicated by 616 is the first search result, and 617 and 618 are j first recommendation information.

[0129] Optionally, the trigger operation for the first sub-search result may refer to inputting any operation in any area of ​​the first sub-search result; or, the first sub-search result may further include a trigger option corresponding to the summary information of a focus word, such as Figure 1bAs shown in 113, the trigger operation for the first sub-search result may refer to a selection operation for the trigger option.

[0130] In one embodiment, the number of focus words corresponding to the target resources may be N, and the number of recommendation information associated with the target resources that matches the N focus words may be L. Then, in response to a trigger operation on the focus word information, displaying the recommendation information associated with the target resources corresponding to the focus word may include: displaying the recommendation information associated with the target resource corresponding to each focus word according to the matching relationship between the N focus words and the L recommendation information.

[0131] It should be understood that a feasible implementation method of displaying the recommendation information associated with the target resource corresponding to each focus word according to the matching relationship between the N focus words and the L recommendation information has been described in Figure 1a-1d This is introduced in the embodiments and will not be described in detail here.

[0132] In one embodiment, if the focus word information refers to N focus words, then these N focus words are included in the search results and displayed on the query page. Due to the display of the screen size of the data processing device, the N focus words may not be displayed at once. As an optional embodiment, displaying N focus words in the query page may include: selecting i focus words from the N focus words and displaying the i focus words in sequence, and folding the remaining Ni focus words among the N focus words; i is determined based on the screen size of the data processing device and the required display size of each of the N focus words; the difference between the sum of the required display sizes of the i focus words and the screen size of the data processing device is less than the difference threshold; when there is a trigger operation for displaying the folded focus words, the folded Ni focus words are displayed.

[0133] That is, based on the screen size of the data processing device and the required display size of each focus word, it is determined that N focus words can be displayed at one time from the N focus words, and the remaining focus words will be folded. When there is a trigger operation for displaying the folded focus words, these folded focus words are displayed in the query page.

[0134] The trigger operation for displaying the folded focus words may refer to the operation of swiping left and right in the area displaying i focus words. Figure 1c Description of embodiments.

[0135] The trigger operation for displaying the collapsed focus words may also refer to: the query page includes a trigger option for triggering the display of all focus words, and when the trigger option is selected, it is determined that there is a trigger operation for displaying the collapsed focus words. Figure 1d Example.

[0136] In one embodiment, if the sum of the display sizes required for i focus words is less than or equal to the screen size of the data processing device, then it can be ensured that the i focus words can be fully displayed on the query page; but if the sum of the display sizes required for the i focus words is greater than the screen size of the data processing device, then one of the i focus words can only be partially displayed. As can be seen from the foregoing, since the i focus words are displayed on the query page in a certain order, the focus word arranged in the last position can be displayed only partially. In other words, the focus words arranged in the first to (Ni)th order among the i focus words are fully displayed, and the focus words arranged in the Nth order are partially displayed. At this time, the display size required for the focus words displayed on the query page is equal to the screen size of the data processing device. See. Figure 1d As shown in area 014, assuming that the sum of the display sizes of focus word 1, focus word 2, focus word 3 and focus word 4 is larger than the screen size of the data processing device, focus word 1, focus word 2 and focus word 3 can be displayed in full, while focus word 4 is only partially displayed.

[0137] In the embodiment of the present application, when there is a query operation about the target resource, the target focus word corresponding to the target resource can be used as an information dimension, and the recommended information associated with the target resource under the information dimension can be displayed. The focus word refers to the content in a resource that the user focuses on or is more interested in. Outputting the recommended information of the target resource based on the focus word of the target resource helps the object to obtain the popular information in the target resource in a timely and efficient manner, increases the click-through rate of the recommended information of the target resource, and improves the promotion effect of the target resource to a certain extent.

[0138] Based on the above data processing method, the present application embodiment provides a data processing device, see Figure 7 , which is a structural diagram of a data processing device provided in an embodiment of the present application. Figure 7 The data processing device shown can run the following units:

[0139] An acquisition unit 701 is used to acquire query log data, where the query log data includes query data and query result information corresponding to the query data;

[0140] An extraction unit 702 is used to extract entity words from the query data to obtain entity words related to the target resource;

[0141] The determination unit 703 is also used to determine the target focus word corresponding to the target resource from the query log data according to the entity word. The focus word corresponding to the target resource is used to output the recommendation information associated with the target resource based on the target focus word when there is a query operation for the target resource.

[0142] In one embodiment, when the determining unit 703 extracts entity words from the query data to obtain entity words related to the target resource, the determining unit 703 performs the following steps:

[0143] Perform entity word recognition on the query data to obtain one or more candidate entity words;

[0144] Mapping the one or more candidate entity words to an entity word library, and determining an entity type corresponding to each candidate entity word from the entity word library;

[0145] Based on the entity type corresponding to each candidate entity word, a candidate entity word whose entity type is a multimedia type is selected from the one or more candidate entity words, and the selected candidate entity word is used as an entity word related to the target resource.

[0146] In one embodiment, when the determining unit 703 extracts the focus word corresponding to the target resource from the query log data according to the entity word, the determining unit 703 performs the following steps:

[0147] A plurality of candidate words associated with the entity word are screened out from the query log data; and a target focus word corresponding to the target resource is determined from the plurality of candidate words.

[0148] In one embodiment, when the determining unit 702 selects multiple candidate words associated with the entity word from the query log data, it performs the following steps:

[0149] Performing word segmentation processing on the query data to obtain each feature word included in the query data;

[0150] Determining target information including the entity word from the query result information, and performing word segmentation processing on the target information to obtain each feature word included in the target information;

[0151] Each feature word included in the query data and each feature word included in the target information are used as a plurality of candidate words associated with the entity word.

[0152] In one embodiment, when determining the target information including the entity word from the query result information, the determining unit 703 performs the following steps:

[0153] If the query result information refers to the identifier of the query result corresponding to the query data, then the target information refers to the identifier of the query result;

[0154] If the query result information refers to summary information of the query result or the query result information refers to the query result, the target information refers to the sentence or paragraph including the entity word in the summary information or the query result.

[0155] In one embodiment, when determining the target focus word corresponding to the target resource from the multiple candidate words, the determining unit 702 performs the following steps:

[0156] Based on each feature word included in the query data and each feature word included in the query result information, semantic fusion and feature extraction processing are performed on each candidate word in the multiple candidate words to obtain a word feature corresponding to each candidate word;

[0157] Focus word extraction is performed based on the word features corresponding to each candidate word to obtain the target focus word corresponding to the target resource.

[0158] In one embodiment, semantic fusion processing and feature extraction processing are performed on each of the multiple candidate words based on each feature word included in the query data and each feature word included in the query result information by calling a language processing model in a focus word processing model; the focus word processing model also includes a focus word extraction model; and focus word extraction processing based on word features corresponding to each candidate word is performed by calling the focus word extraction model.

[0159] In one embodiment, the focus word extraction model includes an extraction model; when the determination unit 703 performs focus word extraction processing based on the word features corresponding to each candidate word to obtain the target focus word corresponding to the target resource, the determination unit 703 performs the following steps:

[0160] Calling the extraction model, merging word features corresponding to multiple candidate words constituting the entity word among the multiple candidate words, to obtain entity word merged features;

[0161] The entity word merge feature is concatenated with the word feature corresponding to each candidate word to obtain the concatenated feature corresponding to each candidate word;

[0162] Predicting the position probability of each candidate word based on the concatenation feature corresponding to each candidate word, wherein the position probability of each candidate word is used to indicate that each candidate word belongs to the starting position or the ending position of a focus word;

[0163] Marking the position of each candidate word in turn according to the position probability corresponding to each candidate word;

[0164] The first candidate word whose position is the starting position, the second candidate word whose position is the ending position, and each candidate word between the first candidate word and the second candidate word are sequentially combined into a focus word to determine M candidate focus words;

[0165] Determine the target focus word corresponding to the target resource from the M candidate focus words, where M is a positive integer.

[0166] In one embodiment, the focus word extraction model further includes a discriminant model, and the determination unit 703 performs the following steps when determining the target focus word corresponding to the target resource from the M candidate focus words:

[0167] The discriminant model is called to merge the word features corresponding to the multiple candidate words constituting each candidate focus word among the multiple candidate words, respectively, to obtain the candidate focus word merged feature corresponding to each candidate focus word;

[0168] Respectively concatenate the candidate focus word merged feature corresponding to each candidate focus word with the entity word merged feature to obtain the concatenated feature corresponding to each candidate focus word;

[0169] Based on the concatenation features corresponding to each candidate focus word, each candidate focus word is discriminated to obtain a discrimination result corresponding to each candidate focus word, wherein the discrimination result corresponding to each candidate focus word is used to indicate the probability of each candidate focus word being the target focus word corresponding to the target file;

[0170] The M candidate focus words are screened according to the discrimination result of each candidate focus word to obtain W candidate focus words, and the W candidate focus words are added to the focus word candidate set, and the target focus word corresponding to the target resource is determined from the focus word candidate set, where W is a positive integer less than or equal to M.

[0171] In one embodiment, the extraction unit 702 performs the following steps when determining the target focus word corresponding to the target resource from the focus word candidate set:

[0172] Deduplication processing is performed on multiple candidate focus words in the focus word set;

[0173] Get the popularity of each candidate focus word after deduplication processing;

[0174] The candidate focus words whose popularity is greater than the popularity threshold are determined as the target focus words corresponding to the target resource.

[0175] In one embodiment, the query result information corresponding to the query data refers to the query result information corresponding to the query result having a click count greater than a click count threshold among the multiple query results corresponding to the query data.

[0176] According to one embodiment of the present application, Figure 2 The steps involved in the data processing method shown can be Figure 7 The data processing device shown in FIG. 1 is executed by each unit in the data processing device shown in FIG. Figure 2 The step S201 can be performed by Figure 7 The acquisition unit 701 in the data processing device is executed, and step S202 can be performed by Figure 7 The extraction unit 702 in the data processing device is executed, and step S203 can be performed by Figure 7 The determination unit 703 in the data processing device is used for execution.

[0177] According to another embodiment of the present application, Figure 7 The various units in the data processing device shown can be respectively or completely combined into one or several other units to constitute, or some of the units (some) can also be split into multiple smaller units in function to constitute, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In practical applications, the functions of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present application, other units can also be included based on the data processing device. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.

[0178] According to another embodiment of the present application, the program can be executed by running on a general computing device such as a computer including a central processing unit (CPU), a random access memory medium (RAM), a read-only memory medium (ROM), and other processing elements and storage elements. Figure 2 A computer program (including program code) for each step involved in the corresponding method shown in FIG. Figure 7 The data processing device shown in and the data processing method of the embodiment of the present application are implemented. The computer program can be recorded on, for example, a computer-readable storage medium, and loaded into the data processing device through the computer-readable storage medium and run therein.

[0179] In an embodiment of the present application, a data processing device can obtain query log data, which includes query data and query data information; entity words are extracted from the query data to obtain entity words related to the target resource; further, the target focus words corresponding to the target resource are determined from the query log data according to the extracted entity words, so that when there is a query operation for the target resource, the target resource-related recommendation information is output based on the target focus words corresponding to the target resource. Automatic extraction of focus words is achieved without manual participation, which greatly reduces the cost required for focus word extraction and improves the efficiency of focus word extraction. In addition, since the target focus words are determined based on the query log data of the object to be recommended, the target focus words are to a certain extent the content dimensions that the object to be recommended is more concerned about or interested in for the target resource. Therefore, outputting the recommendation information associated with the target resource based on the target focus words helps to recommend the information that the object to be recommended is more concerned about for the target resource, so that it can efficiently and quickly obtain the information of interest, thereby improving the efficiency of query and search.

[0180] Based on the above data processing method embodiment and data processing device embodiment, the present application embodiment provides another data processing device, see Figure 8 , which is a structural diagram of a data processing device provided in an embodiment of the present application. Figure 8 The data processing device can run the following units:

[0181] A display unit 801 is used to display search results associated with a target resource in response to a query operation on the target resource, wherein the search results include focus word information corresponding to the target resource, and the focus word information is determined by the focus word;

[0182] The display unit 801 is further configured to display, in response to a trigger operation on the focus word information, recommendation information associated with the target resource output based on the focus word.

[0183] In one embodiment, the focus word information includes a first focus word, the focus word information is displayed on a query page, and the query page also displays a first sub-search result corresponding to the first focus word; the first sub-search result includes j first recommendation information, j is a positive integer, and the first recommendation information is recommendation information associated with the target resource output based on the first focus word. When the recommendation information associated with the target resource output based on the focus word is displayed in response to a trigger operation on the focus word information, the following steps are performed:

[0184] In response to a trigger operation on the first sub-search result, p first recommendation information are displayed, where p is a positive integer greater than or equal to j.

[0185] In one embodiment, Figure 8 The data processing device may further include a processing unit 802; if the focus word information includes a focus word, and the number of the focus words is N, where N is an integer greater than or equal to 2;

[0186] The display unit 801 is also used to select i focus words from N focus words and display the i focus words in sequence; the processing unit 802 is used to fold the remaining (Ni) focus words among the N focus words; the i is determined according to the screen size of the data processing device and the required display size of each of the N focus words; the difference between the sum of the required display sizes of the i focus words and the screen size of the data processing device is less than the difference threshold, and i is a positive integer less than or equal to N; when there is a trigger operation for displaying the folded focus words, the folded (Ni) focus words are displayed.

[0187] In one embodiment, the sum of the display sizes required for the i focus words is greater than the screen size of the data processing device. When the display unit 801 displays the i focus words in sequence, the following steps are performed: the focus words arranged in the first to i-1th order among the i focus words are fully displayed, and the focus word arranged in the i-th order is partially displayed.

[0188] According to one embodiment of the present application, Figure 6 The steps involved in the data processing method shown can be Figure 8 The data processing device shown in FIG. 1 is executed by each unit in the data processing device shown in FIG. Figure 6 The steps S601 and S602 can be performed by Figure 8 The display unit 801 in the data processing device is used for execution.

[0189] According to another embodiment of the present application, Figure 8 The various units in the data processing device shown can be respectively or completely combined into one or several other units to constitute, or some of the units (some) can also be split into multiple smaller units in function to constitute, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In practical applications, the functions of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present application, other units can also be included based on the data processing device. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.

[0190] According to another embodiment of the present application, the program can be executed by running on a general computing device such as a computer including a central processing unit (CPU), a random access memory medium (RAM), a read-only memory medium (ROM), and other processing elements and storage elements. Figure 6 A computer program (including program code) for each step involved in the corresponding method shown in FIG. Figure 8 The data processing device shown in and the data processing method of the embodiment of the present application are implemented. The computer program can be recorded on, for example, a computer-readable storage medium, and loaded into the data processing device through the computer-readable storage medium and run therein.

[0191] In the embodiment of the present application, when there is a query operation about the target resource, the search results associated with the target resource are displayed, and the search results may include focus word information. By inputting a trigger operation for the focus word information, the target focus word corresponding to the target resource can be used as an information dimension, and the recommended information associated with the target resource under the information dimension can be displayed. The focus word refers to the content in a resource that is focused on by the user or that the user is more interested in. Outputting the recommended information of the target resource based on the focus word of the target resource helps the object to obtain the popular information in the target resource in a timely and efficient manner, increases the click-through rate of the recommended information of the target resource, and improves the promotion effect of the target resource to a certain extent.

[0192] Based on the above data processing method embodiment and data processing device embodiment, the present application embodiment provides a data processing device, see Fig. 9 , which is a structural diagram of a data processing device provided in an embodiment of the present application. Fig. 9 The data processing device may include a processor 901, an input interface 902, an output interface 903, and a computer storage medium 904. The processor 901, the input interface 902, the output interface 903, and the computer storage medium 904 may be connected via a bus or other means.

[0193] The computer storage medium 904 may be stored in the memory of the data processing device, the computer storage medium 904 is used to store computer programs, and the processor 901 is used to execute the computer programs stored in the computer storage medium 904. The processor 901 (or CPU (Central Processing Unit)) is the computing core and control core of the data processing device, which is suitable for implementing one or more computer programs, specifically suitable for loading and executing:

[0194] Acquire query log data, the query log data including query data and query result information corresponding to the query data; perform entity word extraction on the query data to obtain entity words related to a target resource; determine a target focus word corresponding to the target resource from the query log data based on the entity words, the focus word corresponding to the target resource being used to output recommendation information associated with the target resource based on the target focus word when there is a query operation for the target resource.

[0195] In an embodiment of the present application, a data processing device can obtain query log data, which includes query data and query data information; entity words are extracted from the query data to obtain entity words related to the target resource; further, the target focus words corresponding to the target resource are determined from the query log data according to the extracted entity words, so that when there is a query operation for the target resource, the target resource-related recommendation information is output based on the target focus words corresponding to the target resource. Automatic extraction of focus words is achieved without manual participation, which greatly reduces the cost required for focus word extraction and improves the efficiency of focus word extraction. In addition, since the target focus words are determined based on the query log data of the object to be recommended, the target focus words are to a certain extent the content dimensions that the object to be recommended is more concerned about or interested in for the target resource. Therefore, outputting the recommendation information associated with the target resource based on the target focus words helps to recommend the information that the object to be recommended is more concerned about for the target resource, so that it can efficiently and quickly obtain the information of interest, thereby improving the efficiency of query and search.

[0196] Based on the above data processing method embodiment and data processing device embodiment, the present application embodiment provides a data processing device, see Fig.10 , which is a structural diagram of a data processing device provided in an embodiment of the present application. Fig.10 The data processing device may include a processor 1001, an input interface 1002, an output interface 1003, and a computer storage medium 1004. The processor 1001, the input interface 1002, the output interface 1003, and the computer storage medium 1004 may be connected via a bus or other means.

[0197] The computer storage medium 1004 may be stored in the memory of the data processing device, the computer storage medium 1004 is used to store computer programs, and the processor 1001 is used to execute the computer programs stored in the computer storage medium 1004. The processor 1001 (or CPU (Central Processing Unit)) is the computing core and control core of the data processing device, which is suitable for implementing one or more computer programs, and is specifically suitable for loading and executing:

[0198] In response to a query operation on a target resource, search results associated with the target resource are displayed, the search results including focus word information corresponding to the target resource, the focus word information being determined by the focus word; in response to a trigger operation on the focus word information, recommended information associated with the target resource output based on the focus word is displayed.

[0199] In the embodiment of the present application, when there is a query operation about the target resource, the target focus word corresponding to the target resource can be used as an information dimension, and the recommended information associated with the target resource can be output according to the target focus word. Therefore, in some practical applications, in response to a trigger operation on the focus word information, the recommended information associated with the target resource under the information dimension corresponding to the focus word information can be displayed. The focus word refers to the content in a resource that the user focuses on or is of interest to the user. Outputting the recommended information of the target resource based on the focus word of the target resource helps the object to obtain the popular information in the target resource in a timely and efficient manner, increases the click-through rate of the recommended information of the target resource, and improves the promotion effect of the target resource to a certain extent.

[0200] The embodiment of the present application also provides a computer storage medium (Memory), which is a memory device of a data processing device for storing programs and data. It is understandable that the computer storage medium here can include both the built-in storage medium of the data processing device and the extended storage medium supported by the data processing device. The computer storage medium provides a storage space, which stores the operating system of the data processing device. In addition, one or more computer programs suitable for being loaded and executed by the processor 901 or 1001 are also stored in the storage space. It should be noted that the computer storage medium here can be a high-speed RAM memory, or a non-volatile memory, such as at least one disk storage; optionally, it can also be at least one computer storage medium located away from the aforementioned processor.

[0201] In one embodiment, one or more computer programs stored in the computer storage medium may be loaded and executed by the processor 901:

[0202] Acquire query log data, the query log data including query data and query result information corresponding to the query data; perform entity word extraction on the query data to obtain entity words related to a target resource; determine a target focus word corresponding to the target resource from the query log data based on the entity words, the focus word corresponding to the target resource being used to output recommendation information associated with the target resource based on the target focus word when there is a query operation for the target resource.

[0203] In one embodiment, when the processor 901 extracts entity words from the query data to obtain entity words related to the target resource, the processor 901 performs the following steps:

[0204] Perform entity word recognition on the query data to obtain one or more candidate entity words;

[0205] Mapping the one or more candidate entity words to an entity word library, and determining an entity type corresponding to each candidate entity word from the entity word library;

[0206] Based on the entity type corresponding to each candidate entity word, a candidate entity word whose entity type is a multimedia type is selected from the one or more candidate entity words, and the selected candidate entity word is used as an entity word related to the target resource.

[0207] In one embodiment, when the processor 901 extracts the target focus word corresponding to the target resource from the query log data according to the entity word, the processor 901 performs the following steps:

[0208] Filtering a plurality of candidate words associated with the entity word from the query log data;

[0209] A target focus word corresponding to the target resource is determined from the multiple candidate words.

[0210] In one embodiment, when the processor 901 selects multiple candidate words associated with the entity word from the query log data, it performs the following steps:

[0211] Performing word segmentation processing on the query data to obtain each feature word included in the query data;

[0212] Determining target information including the entity word from the query result information, and performing word segmentation processing on the target information to obtain each feature word included in the target information;

[0213] Each feature word included in the query data and each feature word included in the target information are used as a plurality of candidate words associated with the entity word.

[0214] In one embodiment, when the processor 901 determines the target information including the entity word from the query result information, the processor 901 performs the following steps:

[0215] If the query result information refers to the identifier of the query result corresponding to the query data, then the target information refers to the identifier of the query result;

[0216] If the query result information refers to summary information of the query result or the query result information refers to the query result, the target information refers to the sentence or paragraph including the entity word in the summary information or the query result.

[0217] In one embodiment, when determining the target focus word corresponding to the target resource from the multiple candidate words, the processor 901 performs the following steps:

[0218] Based on each feature word included in the query data and each feature word included in the query result information, semantic fusion and feature extraction processing are performed on each candidate word in the multiple candidate words to obtain a word feature corresponding to each candidate word;

[0219] Focus word extraction is performed based on the word features corresponding to each candidate word to obtain the target focus word corresponding to the target resource.

[0220] In one embodiment, semantic fusion processing and feature extraction processing are performed on each of the multiple candidate words based on each feature word in the query data and each feature word in the query result information by calling a language processing model in a focus word processing model; the focus word processing model also includes a focus word extraction model; and focus word extraction processing based on word features corresponding to each candidate word is performed by calling the focus word extraction model.

[0221] In one embodiment, the focus word extraction model includes an extraction model; when the processor 901 performs focus word extraction processing based on the word features corresponding to each candidate word to obtain the focus word corresponding to the target resource, the processor 901 executes the following steps:

[0222] Calling the extraction model, merging word features corresponding to multiple candidate words constituting the entity word among the multiple candidate words, to obtain entity word merged features;

[0223] The entity word merge feature is concatenated with the word feature corresponding to each candidate word to obtain the concatenated feature corresponding to each candidate word;

[0224] Predicting the position probability of each candidate word based on the concatenation feature corresponding to each candidate word, wherein the position probability of each candidate word is used to indicate that each candidate word belongs to the starting position or the ending position of a focus word;

[0225] Marking the position of each candidate word in turn according to the position probability corresponding to each candidate word;

[0226] Sequentially combine the first candidate word at the starting position, the second candidate word at the ending position, and each candidate word between the first candidate word and the second candidate word among the plurality of candidate words to form a focus word, so as to determine M candidate focus words;

[0227] Determine the target focus word corresponding to the target resource from the M candidate focus words, where M is a positive integer.

[0228] In one embodiment, the focus word extraction model further includes a discriminant model. When the processor 901 determines the target focus word corresponding to the target resource from the M candidate focus words, it performs the following steps:

[0229] The discriminant model is called to merge the word features corresponding to the multiple candidate words constituting each candidate focus word among the multiple candidate words, respectively, to obtain the candidate focus word merged feature corresponding to each candidate focus word;

[0230] Respectively concatenate the candidate focus word merged feature corresponding to each candidate focus word with the entity word merged feature to obtain the concatenated feature corresponding to each candidate focus word;

[0231] Based on the concatenation features corresponding to each candidate focus word, each candidate focus word is discriminated to obtain a discrimination result corresponding to each candidate focus word, wherein the discrimination result corresponding to each candidate focus word is used to indicate the probability of each candidate focus word being the target focus word corresponding to the target file;

[0232] The M candidate focus words are screened according to the discrimination result of each candidate focus word to obtain W candidate focus words, and the W candidate focus words are added to the focus word candidate set, and the target focus word corresponding to the target resource is determined from the focus word candidate set, where W is a positive integer less than or equal to M.

[0233] In one embodiment, when determining the target focus word corresponding to the target resource from the focus word candidate set, the processor 901 performs the following steps:

[0234] Deduplication processing is performed on multiple candidate focus words in the focus word set;

[0235] Get the popularity of each candidate focus word after deduplication processing;

[0236] The candidate focus words whose popularity is greater than the popularity threshold are determined as the target focus words corresponding to the target resource.

[0237] In one embodiment, the query result information corresponding to the query data refers to the query result information corresponding to the query result having a click count greater than a click count threshold among the multiple query results corresponding to the query data.

[0238] In an embodiment of the present application, a data processing device can obtain query log data, which includes query data and query data information; entity words are extracted from the query data to obtain entity words related to the target resource; further, the target focus words corresponding to the target resource are determined from the query log data according to the extracted entity words, so that when there is a query operation for the target resource, the target resource-related recommendation information is output based on the target focus words corresponding to the target resource. Automatic extraction of focus words is achieved without manual participation, which greatly reduces the cost required for focus word extraction and improves the efficiency of focus word extraction. In addition, since the target focus words are determined based on the query log data of the object to be recommended, the target focus words are to a certain extent the content dimensions that the object to be recommended is more concerned about or interested in for the target resource. Therefore, outputting the recommendation information associated with the target resource based on the target focus words helps to recommend the information that the object to be recommended is more concerned about for the target resource, so that it can efficiently and quickly obtain the information of interest, thereby improving the efficiency of query and search.

[0239] In one embodiment, when the processor 1001 extracts entity words from the query data to obtain entity words related to the target resource, the processor 1001 performs the following steps:

[0240] In response to a query operation for a target resource, displaying search results associated with the target resource, the search including focus word information corresponding to the target resource, the focus word information being determined by the focus word;

[0241] In response to a trigger operation on the focus word information, recommended information associated with the target resource output based on the focus word is displayed.

[0242] In one embodiment, the focus word information includes a first focus word, the focus word information is displayed on a query page, and the query page also displays a first sub-search result corresponding to the first focus word; the first sub-search result includes j first recommendation information, j is a positive integer, and the first recommendation information is recommendation information associated with the target resource output based on the first focus word;

[0243] When the processor 1001 displays the recommendation information associated with the target resource output based on the focus word in response to the trigger operation on the focus word information, the processor 1001 performs the following steps:

[0244] In response to a trigger operation on the first sub-search result, p first recommendation information are displayed, where p is a positive integer greater than or equal to j.

[0245] In one embodiment, if the focus word information includes a focus word, and the number of the focus words is N, where N is an integer greater than or equal to 2, the processor 1001 is further configured to execute:

[0246] i focus words are selected from N focus words and the i focus words are displayed in order, and the remaining (Ni) focus words among the N focus words are folded; i is determined according to the screen size of the data processing device and the required display size of each focus word among the N focus words; the difference between the sum of the required display sizes of the i focus words and the screen size of the data processing device is less than the difference threshold, and i is a positive integer less than or equal to N;

[0247] When there is a trigger operation for displaying the folded focus words, the folded (Ni) focus words are displayed.

[0248] In one embodiment, if the sum of the display sizes required for the i focus words is greater than the screen size of the data processing device, the processor 1001 performs the following steps when displaying the i focus words in sequence:

[0249] The focus words arranged in the first order to the (i-1)th order among the i focus words are fully displayed, and the focus word arranged in the i-th order is partially displayed.

[0250] In the embodiment of the present application, when there is a query operation about the target resource, the target focus word corresponding to the target resource can be used as an information dimension, and the recommended information associated with the target resource can be output according to the target focus word. Therefore, in some practical applications, in response to a trigger operation on the focus word information, the recommended information associated with the target resource under the information dimension corresponding to the focus word information can be displayed. The focus word refers to the content in a resource that the user focuses on or is of interest to the user. Outputting the recommended information of the target resource based on the focus word of the target resource helps the object to obtain the popular information in the target resource in a timely and efficient manner, increases the click-through rate of the recommended information of the target resource, and improves the promotion effect of the target resource to a certain extent.

[0251] The embodiment of the present application further provides a computer program product or a computer program, wherein the computer program product includes a computer program, the computer program is stored in a computer storage medium, and the computer program is loaded and executed by the processor 901:

[0252] Acquire query log data, the query log data including query data and query result information corresponding to the query data; perform entity word extraction on the query data to obtain entity words related to the target resource; determine a target focus word corresponding to the target resource from the query log data based on the entity words, the focus word corresponding to the target resource is used to output recommendation information associated with the target resource based on the target focus word when there is a query operation for the target resource.

[0253] In an embodiment of the present application, a data processing device can obtain query log data, which includes query data and query data information; entity words are extracted from the query data to obtain entity words related to the target resource; further, the target focus words corresponding to the target resource are determined from the query log data according to the extracted entity words, so that when there is a query operation for the target resource, the target resource-related recommendation information is output based on the target focus words corresponding to the target resource. Automatic extraction of focus words is achieved without manual participation, which greatly reduces the cost required for focus word extraction and improves the efficiency of focus word extraction. In addition, since the target focus words are determined based on the query log data of the object to be recommended, the target focus words are to a certain extent the content dimensions that the object to be recommended is more concerned about or interested in for the target resource. Therefore, outputting the recommendation information associated with the target resource based on the target focus words helps to recommend the information that the object to be recommended is more concerned about for the target resource, so that it can efficiently and quickly obtain the information of interest, thereby improving the efficiency of query and search.

[0254] Alternatively, the computer program is loaded and executed by the processor 1001:

[0255] In response to a query operation on a target resource, search results associated with the target resource are displayed, the search results including focus word information corresponding to the target resource, the focus word information being determined by the focus word; in response to a trigger operation on the focus word information, recommended information associated with the target resource output based on the focus word is displayed.

[0256] In the embodiment of the present application, when there is a query operation about the target resource, the target focus word corresponding to the target resource can be used as an information dimension, and the recommended information associated with the target resource can be output according to the target focus word. Therefore, in some practical applications, in response to a trigger operation on the focus word information, the recommended information associated with the target resource under the information dimension corresponding to the focus word information can be displayed. The focus word refers to the content in a resource that the user focuses on or is of interest to the user. Outputting the recommended information of the target resource based on the focus word of the target resource helps the object to obtain the popular information in the target resource in a timely and efficient manner, increases the click-through rate of the recommended information of the target resource, and improves the promotion effect of the target resource to a certain extent.

Claims

1. A data processing method, characterized in that: include: Acquire query log data, the query log data including query data and query result information corresponding to the query data; Extracting entity words from the query data to obtain entity words related to the target resource; Performing word segmentation processing on the query data to obtain each feature word included in the query data; Determining target information including the entity word from the query result information, and performing word segmentation processing on the target information to obtain each feature word included in the target information; taking each feature word included in the query data and each feature word included in the target information as a plurality of candidate words associated with the entity word; Interacting each feature word included in the query data with each feature word included in the query result information, and performing semantic fusion and feature extraction processing on each of the multiple candidate words based on the interaction process to obtain a word feature corresponding to each candidate word; Focus word extraction is performed based on the word features corresponding to each candidate word to obtain the target focus word corresponding to the target resource; including: merging the word features corresponding to the multiple candidate words that constitute the entity word among the multiple candidate words to obtain the entity word merge feature; splicing the entity word merge feature with the word features corresponding to each candidate word respectively to obtain the splicing feature corresponding to each candidate word; predicting the position probability of each candidate word based on the splicing feature corresponding to each candidate word, the position probability of each candidate word is used to indicate that each candidate word belongs to the starting position or the ending position of a focus word; marking the position of each candidate word in turn according to the position probability corresponding to each candidate word; sequentially composing a focus word with the first candidate word as the starting position, the second candidate word as the ending position, and the candidate words between the first candidate word and the second candidate word as the starting position, to determine M candidate focus words; determining the target focus word corresponding to the target resource from the M candidate focus words, where M is a positive integer; The focus word corresponding to the target resource is used to output recommendation information associated with the target resource based on the target focus word when there is a query operation for the target resource.

2. The method according to claim 1, characterized in that The extracting entity words from the query data to obtain entity words related to the target resource includes: Perform entity word recognition on the query data to obtain one or more candidate entity words; Mapping the one or more candidate entity words to an entity word library, and determining an entity type corresponding to each candidate entity word from the entity word library; Based on the entity type corresponding to each candidate entity word, a candidate entity word with a target type as the entity type is selected from the one or more candidate entity words, and the selected candidate entity word is used as an entity word related to the target resource, where the target type refers to the type to which the target resource belongs.

3. The method according to claim 1, characterized in that The determining the target information including the entity word from the query result information includes: If the query result information refers to the identifier of the query result corresponding to the query data, then the target information refers to the identifier of the query result; If the query result information refers to summary information of the query result or the query result information refers to the query result, the target information refers to the sentence or paragraph including the entity word in the summary information or the query result.

4. The method according to claim 1, characterized in that The semantic fusion processing and feature extraction processing of each of the multiple candidate words based on the feature words included in the query data and the feature words included in the query result information is executed by calling the language processing model in the focus word processing model; the focus word processing model also includes a focus word extraction model; the focus word extraction processing based on the word features corresponding to each candidate word is executed by calling the focus word extraction model.

5. The method according to claim 4, characterized in that The focus word extraction model includes an extraction model; the extraction model is called to perform focus word extraction processing based on the word features corresponding to each candidate word to obtain the target focus word corresponding to the target resource.

6. The method according to claim 5, characterized in that The focus word extraction model further includes a discriminant model, and the step of determining a target focus word corresponding to the target resource from the M candidate focus words includes: The discriminant model is called to merge the word features corresponding to the multiple candidate words constituting each candidate focus word among the multiple candidate words, respectively, to obtain the candidate focus word merged feature corresponding to each candidate focus word; Respectively concatenate the candidate focus word merged feature corresponding to each candidate focus word with the entity word merged feature to obtain the concatenated feature corresponding to each candidate focus word; Based on the concatenation features corresponding to each candidate focus word, each candidate focus word is discriminated to obtain a discrimination result corresponding to each candidate focus word, wherein the discrimination result corresponding to each candidate focus word is used to indicate the probability of each candidate focus word being a target focus word corresponding to a target file; The M candidate focus words are screened according to the discrimination result of each candidate focus word to obtain W candidate focus words, and the W candidate focus words are added to the focus word candidate set, and the target focus word corresponding to the target resource is determined from the focus word candidate set, where W is a positive integer less than or equal to M.

7. The method according to claim 6, characterized in that The step of determining a target focus word corresponding to the target resource from the focus word candidate set includes: Deduplication processing is performed on multiple candidate focus words in the focus word set; Get the popularity of each candidate focus word after deduplication processing; The candidate focus words whose popularity is greater than the popularity threshold are determined as the target focus words corresponding to the target resource.

8. The method according to claim 1, characterized in that The query result information corresponding to the query data refers to the query result information corresponding to the query result having a click count greater than a click count threshold among the multiple query results corresponding to the query data.

9. A data processing method, characterized in that: include: In response to a query operation for a target resource, a search result associated with the target resource is displayed, the search result including focus word information corresponding to the target resource, the focus word information being determined by a focus word; the focus word is determined based on query log data of the object to be recommended; the focus word is a target focus word determined in a data processing method as described in claim 1; In response to a trigger operation on the focus word information, recommended information associated with the target resource output based on the focus word is displayed.

10. The method according to claim 9, characterized in that The focus word information includes a first focus word, the focus word information is displayed on a query page, and the query page also displays a first sub-search result corresponding to the first focus word; the first sub-search result includes j first recommendation information, j is a positive integer, and the first recommendation information is recommendation information associated with the target resource output based on the first focus word; The step of displaying the recommended information associated with the target resource output based on the focus word in response to the trigger operation on the focus word information includes: In response to a trigger operation on the first sub-search result, p first recommendation information are displayed, where p is a positive integer greater than or equal to j.

11. The method according to claim 9, characterized in that If the focus word information includes a focus word, and the number of the focus words is N, where N is an integer greater than or equal to 2, the method further includes: i focus words are selected from N focus words and the i focus words are displayed in order, and the remaining (Ni) focus words among the N focus words are folded; i is determined according to the screen size of the data processing device and the required display size of each focus word among the N focus words; the difference between the sum of the required display sizes of the i focus words and the screen size of the data processing device is less than the difference threshold, and i is a positive integer less than or equal to N; When there is a trigger operation for displaying the folded focus words, the folded (Ni) focus words are displayed.

12. The method according to claim 11, characterized in that If the sum of the display sizes required for the i focus words is greater than the screen size of the data processing device, displaying the i focus words in sequence includes: The focus words arranged in the first order to the (i-1)th order among the i focus words are fully displayed, and the focus word arranged in the i-th order is partially displayed.

13. A data processing device, characterized in that: include: An acquisition unit, configured to acquire query log data, wherein the query log data includes query data and query result information corresponding to the query data; An extraction unit, used to extract entity words from the query data to obtain entity words related to the target resource; A determination unit is used to perform word segmentation processing on the query data to obtain each feature word included in the query data; determine the target information including the entity word from the query result information, and perform word segmentation processing on the target information to obtain each feature word included in the target information; use each feature word included in the query data and each feature word included in the target information as multiple candidate words associated with the entity word; interact each feature word included in the query data and each feature word included in the query result information, and perform semantic fusion and feature extraction processing on each of the multiple candidate words based on the interaction process to obtain a word feature corresponding to each candidate word; Performing focus word extraction processing based on the word features corresponding to each candidate word to obtain the target focus word corresponding to the target resource; The focus word corresponding to the target resource is used to output the recommendation information associated with the target resource based on the target focus word when there is a query operation for the target resource; The focus word extraction process is performed based on the word features corresponding to each candidate word to obtain the target focus word corresponding to the target resource, including: merging the word features corresponding to multiple candidate words that constitute the entity word among the multiple candidate words to obtain the entity word merged feature; splicing the entity word merged feature with the word features corresponding to each candidate word respectively to obtain the splicing feature corresponding to each candidate word; predicting the position probability of each candidate word based on the splicing feature corresponding to each candidate word, the position probability of each candidate word is used to indicate that each candidate word belongs to the starting position or the ending position of a focus word; marking the position of each candidate word in turn according to the position probability corresponding to each candidate word; sequentially composing a focus word with the first candidate word as the starting position, the second candidate word as the ending position, and the candidate words between the first candidate word and the second candidate word as the starting position, to determine M candidate focus words; determining the target focus word corresponding to the target resource from the M candidate focus words, where M is a positive integer.

14. A data processing device, characterized in that: include: a display unit, for displaying search results associated with the target resource in response to a query operation for the target resource, the search results including focus word information corresponding to the target resource, the focus word information being determined by a focus word; the focus word being determined based on query log data of the object to be recommended; the focus word being a target focus word determined in a data processing method as described in claim 1; The display unit is further configured to display, in response to a trigger operation on the focus word information, recommendation information associated with the target resource output based on the focus word.

15. A data processing device, characterized in that: include: a processor adapted to implement one or more computer programs; and, A computer storage medium storing one or more computer programs, wherein the one or more computer programs are suitable for being loaded by the processor and executing the data processing method according to any one of claims 1 to 8.

16. A data processing device, characterized in that: include: a processor adapted to implement one or more computer programs; and, A computer storage medium storing one or more computer programs, wherein the one or more computer programs are suitable for being loaded by the processor and executing the data processing method according to any one of claims 9 to 12.

17. A computer program product, characterized in that The computer program product includes a computer program, which is stored in a computer storage medium. When the computer program in the computer storage medium is executed by a processor, it is used to load and execute the data processing method as described in any one of claims 1 to 8; or, when the computer program is executed by a processor, it is used to execute the data processing method as described in any one of claims 9 to 12.