Related document recommendation method, device, computer equipment and storage medium
By acquiring and integrating document attributes and user behavior logs in browsing information, and recommending associated documents, the problem of difficulty in obtaining full-text document content and large amount of calculation in the existing technology is solved, and efficient and real-time recommendation of associated documents is achieved.
Patent Information
- Application Number
- CN202110427735.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-21
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2041-04-21
AI Technical Summary
When the existing technology recommends associated documents related to the current browsing content, it is difficult to obtain the full text content of the document, the amount of calculation is large, and it is difficult to achieve real-time recommendation.
By obtaining the browsing information of the currently browsed document, including document attribute information and user behavior logs, we estimate the user's matching degree of candidate documents based on the logs, compare the document attribute information, integrate the matching degree and relevance, and recommend candidate documents. Reduce full-text content comparison and increase recommendation rate.
It achieves more accurate recommendation of related documents that users are interested in, reduces the amount of data comparison calculations, increases the recommendation rate, and achieves the effect of real-time recommendation.
Smart Images

Figure CN113139049B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, apparatus, computer device and storage medium for recommending associated documents. Background Art
[0002] The document management system is used to manage commonly used office documents, PDF documents, and multimedia documents such as pictures and videos. Users can view various documents online. During the user's viewing, the system automatically recommends related documents to the current browsing content, which can help users find more relevant information, thereby meeting user needs and enhancing the value of the system.
[0003] However, in order to recommend related documents related to the currently browsed content, the prior art compares the similarity between the currently browsed content and the full text of the document. Firstly, it is difficult to obtain the full text of the document, and it is not necessarily possible to obtain the full text of the document. Secondly, the similarity processing of the full text content is computationally intensive, which wastes computing resources and makes it difficult to achieve the effect of real-time recommendation. Summary of the invention
[0004] In order to solve the above technical problems, the present application provides a method, apparatus, computer device and storage medium for recommending related documents.
[0005] In a first aspect, the present application provides a method for recommending related documents, comprising:
[0006] Obtaining browsing information of the currently browsed document, wherein the browsing information includes document attribute information of the currently browsed document and current user information, and the user information includes a browsing behavior log of the current user;
[0007] Acquire a candidate document to be recommended according to the browsing behavior log, the candidate document carrying corresponding document attribute information and a first matching degree between the candidate document and the current user;
[0008] Comparing the document attribute information of the currently browsed document with the document attribute information of each of the candidate documents to obtain the degree of association between each of the candidate documents and the currently browsed document;
[0009] Integrate the first matching degree between each candidate document and the current user, and the association degree between each candidate document and the currently browsed document, to obtain a second matching degree between the candidate document and the current user;
[0010] According to the descending order of the plurality of second matching degrees, candidate documents corresponding to the respective second matching degrees are recommended.
[0011] Optionally, the document attribute information has multiple fields, and the comparing the document attribute information of the currently browsed document with the document attribute information of each candidate document to obtain the degree of association between each candidate document and the currently browsed document includes:
[0012] Compare the content of the field in the currently browsed document with the content of the same field in the candidate document to obtain multiple field similarities;
[0013] The similarities of all fields between the candidate document and the currently browsed document are summed to obtain the relevance between the candidate document and the currently browsed document.
[0014] Optionally, comparing the content carried by a field in the currently browsed document with the content carried by the same field in the candidate document to obtain multiple field similarities includes:
[0015] Compare the content carried by the field in the currently browsed document with the content carried by the same field in the candidate document to obtain the content similarity corresponding to each field in the candidate document;
[0016] Determine the target weight value corresponding to each field in the candidate document according to the preset mapping relationship between the field and the weight value;
[0017] The content similarity corresponding to each field in the candidate document is multiplied by the target weight value to obtain the field similarity corresponding to each field in the candidate document.
[0018] Optionally, the step of integrating the first matching degree between each candidate document and the current user and the association degree between each candidate document and the currently browsed document to obtain the second matching degree between the candidate document and the current user includes:
[0019] Counting the number of fields in the candidate document;
[0020] Multiplying the first matching degree corresponding to the candidate document by the number of fields to obtain an estimated product;
[0021] According to a preset weighting rule, the relevance degree and the estimated product corresponding to the candidate document are weighted and summed to obtain a second matching degree between the candidate document and the current user, wherein the preset weighting rule is used to weight the relevance degree according to a first preset weight and to weight the estimated product according to a second preset weight.
[0022] Optionally, after obtaining the field similarity, the method further includes:
[0023] Prompt information corresponding to each field is generated based on the field similarity corresponding to each field in the candidate document and the content carried by the field, wherein the prompt information is used to display the association status between the field in the candidate document and the same field in the currently browsed document, and the association status is used to indicate a similar status or an identical status.
[0024] Optionally, before sequentially recommending and displaying candidate documents corresponding to respective second matching degrees in descending order of respective second matching degrees, the method further comprises:
[0025] Classifying candidate documents containing the same prompt information to obtain multiple document sets, wherein each document set corresponds to a type of prompt information and each document set includes at least one candidate document;
[0026] In each of the document sets, candidate documents corresponding to each second matching degree are recommended and displayed in sequence according to the descending order of each second matching degree.
[0027] Optionally, after obtaining multiple document sets, the method further includes:
[0028] Deduplication processing is performed on the candidate documents in each of the document sets, wherein a candidate document after deduplication belongs to only one document set;
[0029] When the deduplication process is completed, the step of recommending and displaying candidate documents corresponding to each second matching degree in each document set in descending order of each second matching degree is performed.
[0030] In a second aspect, the present application provides a device for recommending related documents, including:
[0031] An acquisition module, used to acquire browsing information of a currently browsed document, wherein the browsing information includes document attribute information of the currently browsed document and current user information, and the user information includes a browsing behavior log of the current user;
[0032] A filtering and recalling module, configured to obtain candidate documents to be recommended according to the browsing behavior log, wherein the candidate documents carry corresponding document attribute information and a first matching degree between the candidate documents and the current user;
[0033] A comparison module, used to compare the document attribute information of the currently browsed document with the document attribute information of each candidate document, and obtain the correlation degree between each candidate document and the currently browsed document;
[0034] An integration module, used for integrating the first matching degree between each candidate document and the current user, and the association degree between each candidate document and the currently browsed document, to obtain a second matching degree between the candidate document and the current user;
[0035] The recommendation module is used to recommend candidate documents corresponding to each of the second matching degrees according to the descending order of the plurality of second matching degrees.
[0036] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:
[0037] Obtaining browsing information of the currently browsed document, wherein the browsing information includes document attribute information of the currently browsed document and current user information, and the user information includes a browsing behavior log of the current user;
[0038] Acquire a candidate document to be recommended according to the browsing behavior log, the candidate document carrying corresponding document attribute information and a first matching degree between the candidate document and the current user;
[0039] Comparing the document attribute information of the currently browsed document with the document attribute information of each of the candidate documents to obtain the degree of association between each of the candidate documents and the currently browsed document;
[0040] Integrate the first matching degree between each candidate document and the current user, and the association degree between each candidate document and the currently browsed document, to obtain a second matching degree between the candidate document and the current user;
[0041] According to the descending order of the plurality of second matching degrees, candidate documents corresponding to the respective second matching degrees are recommended.
[0042] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0043] Obtaining browsing information of the currently browsed document, wherein the browsing information includes document attribute information of the currently browsed document and current user information, and the user information includes a browsing behavior log of the current user;
[0044] Acquire a candidate document to be recommended according to the browsing behavior log, the candidate document carrying corresponding document attribute information and a first matching degree between the candidate document and the current user;
[0045] Comparing the document attribute information of the currently browsed document with the document attribute information of each of the candidate documents to obtain the degree of association between each of the candidate documents and the currently browsed document;
[0046] Integrate the first matching degree between each candidate document and the current user, and the association degree between each candidate document and the currently browsed document, to obtain a second matching degree between the candidate document and the current user;
[0047] According to the descending order of the plurality of second matching degrees, candidate documents corresponding to the respective second matching degrees are recommended.
[0048] This solution is applied to the field of information retrieval technology to enhance the knowledge retrieval function. Based on the associated document recommendation method in this solution, first, the candidate documents that the user may be interested in are obtained based on the user's browsing behavior log, and the degree of interest of the user in the candidate documents can be estimated based on the user's browsing behavior log, that is, the first matching degree. Then, the document attribute information of the candidate document is further carefully compared with the document attribute information of the currently browsed document, and the comparison result is integrated with the first matching degree to form a second matching degree between the candidate document and the user. The second matching degree combines the user's browsing behavior log and the comparison result between the candidate document and the currently browsed document. Through the second matching degree, the user can be more accurately recommended related documents that meet the user's preferences and have a high similarity with the currently browsed document. This solution does not need to compare the full text content of the document with the full text content of the candidate document, which reduces the amount of data comparison calculation and improves the recommendation rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0050] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0051] Figure 1 A diagram of an application environment of a method for recommending associated documents in one embodiment;
[0052] Figure 2 A schematic diagram of a process of recommending a method for associated documents in one embodiment;
[0053] Figure 3 is a structural block diagram of a device for recommending related documents in one embodiment;
[0054] Figure 4 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0055] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0056] Figure 1 FIG. 1 is an application environment diagram of a method for recommending associated documents in an embodiment. Figure 1 , the associated document recommendation method is applied to an associated document recommendation system. The associated document recommendation system includes a terminal 110 and a server 120. The terminal 110 and the server 120 are connected via a network. The terminal 110 may be a desktop terminal or a mobile terminal, and the mobile terminal may be at least one of a mobile phone, a tablet computer, a laptop computer, etc. The server 120 may be implemented as an independent server or a server cluster consisting of multiple servers.
[0057] In one embodiment, Figure 2 FIG. 1 is a flow chart of a method for recommending associated documents in an embodiment, referring to FIG. Figure 2 , provides a method for recommending related documents. This embodiment mainly applies this method to the above Figure 1 Taking the terminal 110 in the example, the method for recommending related documents specifically includes the following steps:
[0058] Step S210, obtaining browsing information of the currently browsed document, wherein the browsing information includes document attribute information of the currently browsed document and current user information, and the user information includes a browsing behavior log of the current user.
[0059] In this embodiment, document attribute information is used to represent the structured information in the currently browsed document. The current user information includes identity information and browsing behavior logs. The identity information includes identity tags, gender, age, etc. The browsing behavior logs include historical behavior logs and current behavior logs that record the user's document browsing behavior. The user's document browsing behavior includes reading the entire content of the document, reading the document for more than a preset time, collecting the document, downloading the document after reading, and other behaviors.
[0060] Step S220: acquiring candidate documents to be recommended according to the browsing behavior log, wherein the candidate documents carry corresponding document attribute information and a first matching degree between the candidate documents and the current user.
[0061] In this embodiment, the process of obtaining candidate documents based on browsing behavior logs can be implemented through different recommendation schemes, wherein the recommendation schemes include content-based recommendation, collaborative filtering recommendation, rule-based recommendation, recommendation based on demographic information, and hybrid recommendation. Content-based recommendation is to recommend similar content based on the content that the user has followed. Collaborative filtering recommendation is divided into three types, the first is user-based collaborative filtering, the second is project-based collaborative filtering, and the third is model-based collaborative filtering.
[0062] User-based collaborative filtering mainly considers the similarity between users. As long as we find out the items that similar users like and predict the target user's rating of the corresponding items, we can find several items with the highest ratings and recommend them to the user. Item-based collaborative filtering is similar to user-based collaborative filtering. We obtain the similarity between items and then predict similar items with high similarity based on the target user's rating of certain items, and recommend several similar items with the highest ratings to the user.
[0063] In model-based collaborative filtering, there are m items and n users' data. Only some users and some items have rating data, and the other rating data is blank. The existing sparse data is used to predict the rating data corresponding to the blank items, and the items with higher ratings are recommended to users. Model-based collaborative filtering uses the idea of machine learning to model, and can be modeled using association algorithms, clustering algorithms, classification algorithms, regression algorithms, matrix decomposition, neural networks, etc.
[0064] In this embodiment, model-based collaborative filtering is selected to obtain candidate documents to be recommended. The first matching degree is used to represent the user's rating data for the candidate document predicted based on the browsing behavior log, that is, the probability of the user being interested in the candidate document predicted based on the browsing behavior log.
[0065] Step S230: Compare the document attribute information of the currently browsed document with the document attribute information of each of the candidate documents to obtain the degree of association between each of the candidate documents and the currently browsed document.
[0066] In this embodiment, the candidate document is only a document recommended based on the user's previous browsing behavior, but there may be no correlation between the candidate document and the currently browsed document. When the user browses the current document, it means that the user is most interested in the content of the currently browsed document. Although there are contents that the user is interested in in the candidate document, according to the user's current browsing situation, it is necessary to recommend candidate documents related to the currently browsed document to the user, and compare the document attribute information of the candidate document with the document attribute information of the currently browsed document to obtain the correlation between the candidate document and the currently browsed document. There is no need to compare the full text content of the document with the full text content of the candidate document, which reduces the amount of data comparison calculation and improves the recommendation rate.
[0067] Step S240: Integrate the first matching degree between each candidate document and the current user, and the association degree between each candidate document and the currently browsed document, to obtain a second matching degree between the candidate document and the current user.
[0068] In this embodiment, the second matching degree is used to indicate the probability that the user is interested in the candidate document when the user's previous browsing behavior is combined with the currently browsing document. The higher the second matching degree, the higher the probability that the user is interested in the candidate document.
[0069] Step S250: recommending candidate documents corresponding to each of the second matching degrees in descending order of the plurality of second matching degrees.
[0070] In this embodiment, the candidate documents are displayed in descending order according to their corresponding second matching degrees. The second matching degree combines the user's browsing behavior log and the comparison results between the candidate documents and the currently browsed document. The second matching degree can more accurately recommend related documents that meet the user's preferences and have a high similarity with the currently browsed document to the user, thereby improving the user's browsing experience.
[0071] In one embodiment, the document attribute information has multiple fields, and the document attribute information of the currently browsed document is compared with the document attribute information of each candidate document to obtain the association degree between each candidate document and the currently browsed document, including: comparing the content carried by the field in the currently browsed document with the content carried by the same field in the candidate document to obtain multiple field similarities; summing up all field similarities between the candidate document and the currently browsed document to obtain the association degree between the candidate document and the currently browsed document.
[0072] In this embodiment, the document attribute information includes multiple fields for representing structured information. The fields can be specifically divided into tag fields, text fields and list fields. Among them, the tag fields can be specifically document tags, authors, uploaders, etc., the text fields can be specifically document main titles, document subtitles, etc., and the list fields can be specifically statistical lists or project lists, etc. The content carried by each field in the currently browsed document is compared with the content carried by the same field in the candidate document. For example, the document title of the currently browsed document is compared with the document title in the candidate document to generate the field similarity corresponding to the document title.
[0073] Field similarity is used to indicate the similarity between the content of a field in the currently browsed document and the content carried by the same field in the candidate document. The similarity between the currently browsed document and the candidate document can be obtained by summarizing the field similarities corresponding to all fields. The association is used to indicate the degree of similarity between the currently browsed document and the candidate document. The association between the currently browsed document and the candidate document can be obtained without comparing the full-text content of the currently browsed document and the candidate document, which reduces the amount of data calculation in the comparison process and improves the recommendation rate, achieving the effect of real-time recommendation.
[0074] In one embodiment, the comparing the content carried by the field in the currently browsed document with the content carried by the same field in the candidate document to obtain multiple field similarities includes: comparing the content carried by the field in the currently browsed document with the content carried by the same field in the candidate document to obtain the content similarity corresponding to each field in the candidate document; determining the target weight value corresponding to each field in the candidate document according to a preset mapping relationship between the field and the weight value; and multiplying the content similarity corresponding to each field in the candidate document by the target weight value to obtain the field similarity corresponding to each field in the candidate document.
[0075] In this embodiment, the content of the tag field in the current browsing document is compared with the content of the same field in the candidate document to directly determine whether the content corresponding to the field is equal. If the content is equal, a completely identical content similarity is obtained, which is recorded as 1; if the content is not equal, a content similarity of 0 is obtained. For example, it is determined whether the author of the current browsing document and the candidate document is the same. If the authors are the same, the content similarity between the author field in the current browsing document and the author field in the candidate document is 1; if the authors are different, the content similarity between the author field in the current browsing document and the author field in the candidate document is 0.
[0076] Compare the content of the text field in the current browsing document with the content of the same field in the candidate document, and obtain the content similarity corresponding to the text field by calculating the jaccard similarity coefficient or edit distance. For example, compare the main title of the document in the current browsing document with the main title of the document in the candidate document. The closer the content similarity is to 0, the lower the similarity between the main title of the document in the current browsing document and the main title of the document in the candidate document. On the contrary, the closer the content similarity is to 1, the higher the similarity between the main title of the document in the current browsing document and the main title of the document in the candidate document.
[0077] The content of the list field in the current browsing document is compared with the content of the same field in the candidate document. The content similarity corresponding to the list field is obtained by calculating the intersection and union ratio of the item lists carried by the current browsing document and the corresponding list field in the candidate document.
[0078] The preset mapping relationship between fields and weight values can be set according to actual business needs. The weight value is set according to the recommendation degree of the field. If the business needs do not require documents to be recommended based on the author, the weight value of the author field is set to 0; if the business needs require documents to be recommended based on the author, the weight value of the author field is set to a value between 0 and 1. The higher the recommendation degree based on the field, the higher the weight value of the corresponding field.
[0079] The content similarity between the content of the field in the currently browsed document and the content carried by the same field in the candidate document is multiplied by the weight value corresponding to the same field, that is, the similarity of the field between the currently browsed document and the candidate document is combined with the recommendation degree of the field to obtain the field similarity corresponding to the field.
[0080] In one embodiment, the first matching degree between each candidate document and the current user, and the association degree between each candidate document and the currently browsed document are integrated to obtain the second matching degree between the candidate document and the current user, including: counting the number of fields in the candidate document; multiplying the first matching degree corresponding to the candidate document by the number of fields to obtain an estimated product; and performing weighted summation processing on the association degree corresponding to the candidate document and the estimated product according to a preset weighting rule to obtain the second matching degree between the candidate document and the current user, wherein the preset weighting rule is used to weight the association degree according to a first preset weight, and to weight the estimated product according to a second preset weight.
[0081] In one embodiment, the number of fields in the candidate document is recorded as n, the first matching degree between the candidate document and the current user is recorded as Y, and the correlation degree between the candidate document and the current browsing document is recorded as X, where X=X1+X2+…+Xn , where X1 to X n The field similarity between the content of each field of the candidate document and the content of the same field in the currently browsed document is respectively, the estimated product is n*Y, the first preset weight is recorded as a, the second preset weight is recorded as b, the relevance and the estimated product are weighted summed, and the second matching degree is obtained as a*(X1+X2+…+X n )+b*n*Y, wherein the first preset weight and the second preset weight can be customized according to actual business needs. If the business needs are more focused on recommending documents to users based on their historical behaviors, the second preset weight is made greater than the first preset weight; if the business needs are more focused on recommending related documents to users based on the currently browsed documents, the first preset weight is made greater than the second preset weight.
[0082] In one embodiment, the first matching degree between each candidate document and the current user and the relevance degree between each candidate document and the currently browsed document are integrated to obtain the second matching degree between the candidate document and the current user, including:
[0083] The relevance between the candidate document and the currently browsed document is multiplied by the first matching degree between the candidate document and the current user to obtain the second matching degree between the candidate document and the current user, that is, the second matching degree is X*Y=(X1+X2+…+X n )*Y, the second matching degree is used to represent the probability that the user is interested in the candidate document when the user's previous browsing behavior is combined with the current browsing document. The combination method can be a weighted sum of the first matching degree and the relevance degree, or a multiplication of the first matching degree and the relevance degree.
[0084] In one embodiment, after obtaining the field similarity, the method further includes: generating prompt information corresponding to each field according to the field similarity corresponding to each field in the candidate document and the content carried by the field, wherein the prompt information is used to display the association status between the field in the candidate document and the same field in the currently browsed document, and the association status is used to indicate a similar state or an identical state.
[0085] In this embodiment, the association status between fields is determined by field similarity. For example, if the field similarity between the author field in the candidate document and the author field in the currently browsed document is 0, the prompt information corresponding to the author field is "different authors"; if the field similarity between the author field in the candidate document and the author field in the currently browsed document is 1, the prompt information corresponding to the author field is "same author". If the field similarity between the document title in the candidate document and the document tag in the currently browsed document is 0.7, the prompt information corresponding to the document title is "similar title". If the field similarity between the item list in the candidate document and the item list in the currently browsed document is 0.6, the prompt information corresponding to the item list is "same tag (tag1, tag2)", where tag1 and tag2 are the same tags in the item list of the candidate document and the item list of the currently browsed document, and the same items in the item list are displayed to the user.
[0086] By showing the user the reasons for associating the candidate document with the currently browsed document through prompt information, that is, showing the recommendation reasons for the candidate document, it can also help users find related information of interest more quickly, thereby improving information search efficiency.
[0087] In one embodiment, before recommending and displaying candidate documents corresponding to each second matching degree in descending order of each second matching degree, the method also includes: classifying candidate documents containing the same prompt information to obtain multiple document sets, wherein each document set corresponds to a type of prompt information, and each document set includes at least one candidate document; in each document set, recommending and displaying candidate documents corresponding to each second matching degree in descending order of each second matching degree.
[0088] In this embodiment, candidate documents to be recommended are displayed to the user. They can be displayed in descending order of the second matching degree, and can also be classified according to the reasons for the association between the candidate documents and the currently browsed document. After classification, each prompt information corresponds to a document set, and in each document set, the second matching degree is sorted in descending order. The classified candidate documents are displayed in descending order of the second matching degree, which makes it easy for users to quickly find the documents they want to read based on the association reasons, reduces the time users spend flipping through multiple documents to find related information, and improves the user's browsing experience.
[0089] In one embodiment, after obtaining multiple document sets, the method further includes: performing deduplication processing on the candidate documents in each of the document sets, wherein a candidate document after deduplication belongs to only one document set; when the deduplication processing is completed, executing the step of recommending and displaying the candidate documents corresponding to each second matching degree in each of the document sets in descending order of each second matching degree.
[0090] In this embodiment, since a candidate document may have multiple types of prompt information, the candidate documents are classified according to the type of prompt information. It is very likely that the same candidate document will appear in different document collections. In order to prevent users from repeatedly viewing the same document in different document collections, it is necessary to deduplicate the candidate documents in the document collection so that a candidate document only appears in one document collection, thereby preventing users from repeatedly seeing the same candidate document in different document collections and wasting users' reading time.
[0091] Figure 2 FIG. 1 is a flowchart of a method for recommending associated documents in one embodiment. Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0092] In one embodiment, Figure 3 As shown, a device for recommending related documents is provided, comprising:
[0093] The acquisition module 310 is used to acquire browsing information of the currently browsed document, wherein the browsing information includes document attribute information of the currently browsed document and current user information, and the user information includes the browsing behavior log of the current user;
[0094] A filtering and recalling module 320 is used to obtain candidate documents to be recommended according to the browsing behavior log, wherein the candidate documents carry corresponding document attribute information and a first matching degree between the candidate documents and the current user;
[0095] A comparison module 330, configured to compare the document attribute information of the currently browsed document with the document attribute information of each of the candidate documents to obtain the degree of association between each of the candidate documents and the currently browsed document;
[0096] An integration module 340, configured to integrate the first matching degree between each candidate document and the current user, and the association degree between each candidate document and the currently browsed document, to obtain a second matching degree between the candidate document and the current user;
[0097] The recommendation module 350 is configured to recommend candidate documents corresponding to each of the second matching degrees according to the descending order of the plurality of second matching degrees.
[0098] In one embodiment, the document attribute information has multiple fields, and the comparison module 330 is further used to:
[0099] Compare the content of the field in the currently browsed document with the content of the same field in the candidate document to obtain multiple field similarities;
[0100] The similarities of all fields between the candidate document and the currently browsed document are summed to obtain the relevance between the candidate document and the currently browsed document.
[0101] In one embodiment, the comparison module 330 is further used to:
[0102] Compare the content carried by the field in the currently browsed document with the content carried by the same field in the candidate document to obtain the content similarity corresponding to each field in the candidate document;
[0103] Determine the target weight value corresponding to each field in the candidate document according to the preset mapping relationship between the field and the weight value;
[0104] The content similarity corresponding to each field in the candidate document is multiplied by the target weight value to obtain the field similarity corresponding to each field in the candidate document.
[0105] In one embodiment, the integration module 340 is further configured to:
[0106] Counting the number of fields in the candidate document;
[0107] Multiplying the first matching degree corresponding to the candidate document by the number of fields to obtain an estimated product;
[0108] According to a preset weighting rule, the relevance degree and the estimated product corresponding to the candidate document are weighted and summed to obtain a second matching degree between the candidate document and the current user, wherein the preset weighting rule is used to weight the relevance degree according to a first preset weight and to weight the estimated product according to a second preset weight.
[0109] In one embodiment, after obtaining the field similarity, the apparatus further includes:
[0110] A prompt module is used to generate prompt information corresponding to each field according to the field similarity corresponding to each field in the candidate document and the content carried by the field, wherein the prompt information is used to display the association status between the field in the candidate document and the same field in the currently browsed document, and the association status is used to indicate a similar state or an identical state.
[0111] In one embodiment, the prompt module is further used for:
[0112] Classifying candidate documents containing the same prompt information to obtain multiple document sets, wherein each document set corresponds to a type of prompt information and each document set includes at least one candidate document;
[0113] In each of the document sets, candidate documents corresponding to each second matching degree are recommended and displayed in sequence according to the descending order of each second matching degree.
[0114] In one embodiment, the prompt module is further used for:
[0115] Deduplication processing is performed on the candidate documents in each of the document sets, wherein a candidate document after deduplication belongs to only one document set;
[0116] When the deduplication process is completed, the step of recommending and displaying candidate documents corresponding to each second matching degree in each document set in descending order of each second matching degree is performed.
[0117] Figure 4 The internal structure diagram of a computer device in one embodiment is shown. The computer device may specifically be Figure 1 The terminal 110 in FIG. Figure 4 As shown, the computer device includes a processor, a memory, a network interface, an input device and a display screen connected through a system bus. Among them, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program, which, when executed by the processor, enables the processor to implement the associated document recommendation method. The internal memory may also store a computer program, which, when executed by the processor, enables the processor to execute the associated document recommendation method. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covering the display screen, or a button, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.
[0118] Those skilled in the art will understand that Figure 4The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0119] In one embodiment, the associated document recommendation device provided by the present application can be implemented in the form of a computer program. Figure 4 The memory of the computer device may store various program modules constituting the associated document recommendation device, for example, Figure 3 The acquisition module 310, the filtering and recalling module 320, the comparison module 330, the integration module 340 and the recommendation module 350 are shown. The computer program composed of various program modules enables the processor to execute the steps of the associated document recommendation method of each embodiment of the present application described in this specification.
[0120] Figure 4 The computer device shown can be Figure 3 The acquisition module 310 in the associated document recommendation device shown in the figure acquires the browsing information of the currently browsed document, wherein the browsing information includes the document attribute information of the currently browsed document and the current user information, and the user information includes the browsing behavior log of the current user. The computer device can acquire the candidate document to be recommended according to the browsing behavior log through the filtering and recalling module 320, and the candidate document carries the corresponding document attribute information and the first matching degree between the candidate document and the current user. The computer device can compare the document attribute information of the currently browsed document with the document attribute information of each candidate document through the comparison module 330 to obtain the association degree between each candidate document and the currently browsed document. The computer device can integrate the first matching degree between each candidate document and the current user and the association degree between each candidate document and the currently browsed document through the integration module 340 to obtain the second matching degree between the candidate document and the current user. The computer device can recommend the candidate documents corresponding to each second matching degree according to the descending order of the multiple second matching degrees through the recommendation module 350.
[0121] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the method described in any one of the above embodiments is implemented when the processor executes the computer program.
[0122] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method described in any one of the above embodiments is implemented.
[0123] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0124] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0125] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for recommending related documents, characterized in that: The method comprises: Obtaining browsing information of the currently browsed document, wherein the browsing information includes document attribute information of the currently browsed document and current user information, and the user information includes a browsing behavior log of the current user; Acquire a candidate document to be recommended according to the browsing behavior log, the candidate document carrying corresponding document attribute information and a first matching degree between the candidate document and the current user; Comparing the document attribute information of the currently browsed document with the document attribute information of each of the candidate documents to obtain the degree of association between each of the candidate documents and the currently browsed document; Integrate the first matching degree between each candidate document and the current user, and the association degree between each candidate document and the currently browsed document, to obtain a second matching degree between the candidate document and the current user; Recommending candidate documents corresponding to each of the second matching degrees according to the descending order of the plurality of second matching degrees; The step of integrating the first matching degree between each candidate document and the current user and the relevance degree between each candidate document and the currently browsed document to obtain the second matching degree between the candidate document and the current user includes: Counting the number of fields in the candidate document; Multiplying the first matching degree corresponding to the candidate document by the number of fields to obtain an estimated product; According to a preset weighting rule, the relevance degree and the estimated product corresponding to the candidate document are weighted and summed to obtain a second matching degree between the candidate document and the current user, wherein the preset weighting rule is used to weight the relevance degree according to a first preset weight and to weight the estimated product according to a second preset weight.
2. The method according to claim 1, characterized in that The document attribute information has multiple fields, and the document attribute information of the currently browsed document is compared with the document attribute information of each candidate document to obtain the relevance between each candidate document and the currently browsed document, including: Compare the content of the field in the currently browsed document with the content of the same field in the candidate document to obtain multiple field similarities; The similarities of all fields between the candidate document and the currently browsed document are summed to obtain the relevance between the candidate document and the currently browsed document.
3. The method according to claim 2, characterized in that The comparing the content carried by the field in the currently browsed document with the content carried by the same field in the candidate document to obtain multiple field similarities includes: Compare the content carried by the field in the currently browsed document with the content carried by the same field in the candidate document to obtain the content similarity corresponding to each field in the candidate document; Determine the target weight value corresponding to each field in the candidate document according to the preset mapping relationship between the field and the weight value; The content similarity corresponding to each field in the candidate document is multiplied by the target weight value to obtain the field similarity corresponding to each field in the candidate document.
4. The method according to claim 2, characterized in that: After obtaining the field similarity, the method further includes: Prompt information corresponding to each field is generated based on the field similarity corresponding to each field in the candidate document and the content carried by the field, wherein the prompt information is used to display the association status between the field in the candidate document and the same field in the currently browsed document, and the association status is used to indicate a similar status or an identical status.
5. The method according to claim 1, characterized in that Before recommending and displaying candidate documents corresponding to the second matching degrees in descending order, the method further includes: Classifying candidate documents containing the same prompt information to obtain multiple document sets, wherein each document set corresponds to a type of prompt information and each document set includes at least one candidate document; In each of the document sets, candidate documents corresponding to each second matching degree are recommended and displayed in sequence according to the descending order of each second matching degree.
6. The method according to claim 5, characterized in that After obtaining multiple document sets, the method further includes: Deduplication processing is performed on the candidate documents in each of the document sets, wherein a candidate document after deduplication belongs to only one document set; When the deduplication process is completed, the step of recommending and displaying candidate documents corresponding to each second matching degree in each document set in descending order of each second matching degree is performed.
7. A device for recommending related documents, characterized in that: The device comprises: An acquisition module, used to acquire browsing information of a currently browsed document, wherein the browsing information includes document attribute information of the currently browsed document and current user information, and the user information includes a browsing behavior log of the current user; A filtering and recalling module, configured to obtain candidate documents to be recommended according to the browsing behavior log, wherein the candidate documents carry corresponding document attribute information and a first matching degree between the candidate documents and the current user; A comparison module, used to compare the document attribute information of the currently browsed document with the document attribute information of each candidate document, and obtain the correlation degree between each candidate document and the currently browsed document; An integration module, used for integrating the first matching degree between each candidate document and the current user, and the association degree between each candidate document and the currently browsed document, to obtain a second matching degree between the candidate document and the current user; A recommendation module, configured to recommend candidate documents corresponding to each of the second matching degrees according to a descending order of the plurality of second matching degrees; The integration module is also used for: Counting the number of fields in the candidate document; Multiplying the first matching degree corresponding to the candidate document by the number of fields to obtain an estimated product; According to a preset weighting rule, the relevance degree and the estimated product corresponding to the candidate document are weighted and summed to obtain a second matching degree between the candidate document and the current user, wherein the preset weighting rule is used to weight the relevance degree according to a first preset weight and to weight the estimated product according to a second preset weight.
8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Method and device for recommending related topics
CN107944033A
