Information recommendation method and device, electronic equipment and vehicle
By extracting and constructing text keywords based on TF-IDF, TextRank and LDA models, the problem of inaccurate text portraits in the collaborative filtering recommendation algorithm is solved, and the diversity and accuracy of information recommendations are improved.
Patent Information
- Application Number
- CN202410943697.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-10-15
AI Technical Summary
Existing collaborative filtering recommendation algorithms only consider the operational behavior data of similar users, resulting in inaccurate text portraits of the information to be recommended and reducing the diversity of information recommendations.
By obtaining the text data of the information to be recommended, extract TF-IDF keywords, TextRank keywords and subject words, determine the target keywords, build a text portrait, and recommend information based on the text portrait.
It improves the accuracy and diversity of target keywords, enhances the accuracy of text portraits, reduces recommendation limitations, and improves the diversity of information recommendations.
Smart Images

Figure CN118779528A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and specifically to an information recommendation method, device, electronic equipment and vehicle. Background Art
[0002] With the rapid development of Internet technology, the content on the Internet is becoming increasingly rich. Personalized recommendation systems can provide each user with customized information such as news or products when the user browses information.
[0003] At present, the relevant technology adopts collaborative filtering recommendation algorithm for information recommendation, and makes recommendations to the recommended user based on the operation behavior data of similar users of the recommended user. For example, based on the information flow clicked and browsed by similar users, the corresponding information flow is recommended to the recommended user.
[0004] However, the related technology uses collaborative filtering recommendation algorithm for information recommendation, which only considers the operation behavior data of similar users. There is a situation where the text portrait of the information to be recommended is inaccurate, which has certain recommendation limitations and reduces the diversity of information recommendation. Summary of the invention
[0005] In view of this, the present application provides an information recommendation method, device, electronic device and vehicle, the main purpose of which is to improve the current collaborative filtering recommendation algorithm for information recommendation, which only considers the operation behavior data of similar users, has inaccurate text portraits of the information to be recommended, has certain recommendation limitations, and reduces the diversity of information recommendation. Technical problems.
[0006] In a first aspect, the present application provides an information recommendation method, comprising:
[0007] Obtain text data of the information to be recommended;
[0008] Extracting TF-IDF keywords, TextRank keywords and subject words from the text data;
[0009] Determine, according to the TF-IDF keywords, TextRank keywords and subject words, a target keyword corresponding to the information to be recommended, wherein the target keyword is used to represent the subject content of the information to be recommended;
[0010] A text portrait corresponding to the information to be recommended is constructed based on the target keyword, and information is recommended according to the text portrait.
[0011] In a second aspect, the present application provides an information recommendation device, comprising:
[0012] An acquisition module, configured to acquire text data of information to be recommended;
[0013] An extraction module is configured to extract TF-IDF keywords, TextRank keywords and subject words of the text data;
[0014] A determination module is configured to determine a target keyword corresponding to the information to be recommended according to the TF-IDF keyword, the TextRank keyword and the subject word, wherein the target keyword is used to represent the subject content of the information to be recommended;
[0015] The recommendation module is configured to construct a text portrait corresponding to the information to be recommended based on the target keyword, and recommend information according to the text portrait.
[0016] In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the information recommendation method described in the first aspect.
[0017] In a fourth aspect, the present application provides an electronic device, comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the information recommendation method described in the first aspect when executing the computer program.
[0018] In a fifth aspect, the present application provides a vehicle, comprising: the device as described in the second aspect, or the electronic device as described in the fourth aspect.
[0019] By means of the above technical scheme, the present application provides an information recommendation method, device, electronic device and vehicle. Compared with the current existing technology, the present application can increase the dimension of information recommendation and provide road smoothness data. Specifically, the text data of the information to be recommended can be obtained first; then the TF-IDF keywords, TextRank keywords and subject words of the text data can be extracted; then the target keywords corresponding to the information to be recommended can be determined according to the TF-IDF keywords, TextRank keywords and subject words of the text data; then the target keywords corresponding to the information to be recommended can be determined according to the TF-IDF keywords, TextRank keywords and subject words, and the target keywords are used to represent the subject content of the information to be recommended; finally, the text portrait corresponding to the information to be recommended can be constructed based on the target keywords, and information recommendation can be performed based on the text portrait. By applying the technical scheme of the present application, the target keywords of multiple themes of the information to be recommended can be determined based on the word frequency and subject of the text data according to the TF-IDF keywords, TextRank keywords and subject words, and then the text portrait corresponding to the information to be recommended can be constructed according to the target keywords, thereby improving the accuracy, representativeness and diversity of the target keywords, improving the accuracy of text portrait construction, reducing recommendation limitations, and improving the diversity of information recommendation.
[0020] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0022] In order to more clearly illustrate the embodiments of the present application 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.
[0023] Figure 1 A schematic diagram of a process of an information recommendation method provided in an embodiment of the present application is shown;
[0024] Figure 2 A schematic diagram of a process of an information recommendation method provided in an embodiment of the present application is shown;
[0025] Figure 3 A schematic diagram of the structure of an information recommendation device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0026] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0027] In order to improve the current collaborative filtering recommendation algorithm for information recommendation, only the operation behavior data of similar users is considered, the text portrait of the recommended information is inaccurate, there are certain recommendation limitations, and the diversity of information recommendation is reduced. This embodiment provides an information recommendation method, such as Figure 1 As shown, the method includes:
[0028] Step 101: Obtain text data of information to be recommended.
[0029] This embodiment can be applied to the intelligent recommendation platform and personalized recommendation system of the vehicle, and can be specifically applied to the recommended content on the in-vehicle screen, the recommended content on the PC webpage, the recommended content on the APP, and the recommended content on the mini-program, etc. The vehicle can be a new energy vehicle, a traditional vehicle, etc. Among them, the information to be recommended can be obtained from various modules of the vehicle computer in the vehicle, and can include but not limited to information, items, etc. The information to be recommended generated by each module can be uniformly integrated into text data, and then information recommendation can be performed, which is helpful to analyze the subject content of the information to be recommended.
[0030] Step 102: extract TF-IDF keywords, TextRank keywords and subject words from the text data.
[0031] Exemplarily, the TF-IDF (Term Frequency–Inverse Document Frequency) model can be used to extract TF-IDF keywords from text data. TF-IDF is a statistical indicator for measuring the importance of a word in information retrieval and can be applied to text keyword extraction. TF-IDF uses the inverse frequency of text. IDF in TF-IDF is a weighted method that attempts to suppress noise. The weight of words with low text frequency can be increased, and words with low text frequency are considered to be more important. Therefore, IDF can be weighted on the TF value and the words with large weights can be taken as keywords.
[0032] Correspondingly, the TextRank model can be added to extract TextRank keywords from text data. TextRank is an algorithm based on PageRank that can be used for text keyword extraction. Considering the relationship between words, it tends to use more frequently appearing words as keywords.
[0033] In specific application scenarios, when actually reading text data (for example, an article or a paragraph of text), the keywords of the text data may not appear frequently. Therefore, the keywords extracted based on word frequency by the TF-IDF model and the TextRank model cannot accurately represent the topics contained in the text data. The Latent Dirichlet Allocation (LDA) model can be used to further extract the keywords of the text data, improve the accuracy of understanding the text data, and thereby improve the accuracy of the text portrait of the text data.
[0034] Step 103: Determine the target keyword corresponding to the information to be recommended based on the TF-IDF keyword, the TextRank keyword and the subject word. The target keyword is used to represent the subject content of the information to be recommended.
[0035] Exemplarily, co-occurring words can be extracted from TF-IDF keywords and TextRank keywords, and then the subject words of the text data can be extracted through the LDA model to obtain a text subject word list, and the text subject word list is sorted in reverse order according to weights to obtain a number of descriptive, general, and concluding words as the target keywords (final keywords) of the text data. In this way, multi-topic target keywords can be extracted based on the word frequency and topic of the text data, thereby improving the accuracy, representativeness, and diversity of the target keywords, effectively expressing the diversity of user interests, better reflecting the main ideas and core content of the text data, and better representing the subject content and practical significance of the text, thereby reducing recommendation limitations, improving the diversity of information recommendations, and helping to improve the recommendation accuracy of the personalized recommendation system.
[0036] Step 104: construct a text portrait corresponding to the information to be recommended based on the target keyword, and recommend information based on the text portrait.
[0037] In this embodiment, the construction of the text portrait corresponding to the information to be recommended is a very important part of the personalized recommendation system. The text portrait can be used as an important basis for information recommendation and can be constructed by various methods. For example, the target keyword can be used as the text portrait of the information to be recommended, or as a part of the user portrait of the user to be recommended corresponding to the information to be recommended. The text portrait constructed in this way is closer to the subject content and practical significance of the information to be recommended, which improves the accuracy of text portrait construction, reduces recommendation limitations, and improves the diversity of information recommendation.
[0038] Compared with the current existing technology, this embodiment can first obtain the text data of the information to be recommended; then extract the TF-IDF keywords, TextRank keywords and subject words of the text data; then determine the target keywords corresponding to the information to be recommended based on the TF-IDF keywords, TextRank keywords and subject words, and the target keywords are used to represent the subject content of the information to be recommended; finally, construct a text portrait corresponding to the information to be recommended based on the target keywords, and recommend information based on the text portrait. By applying the technical solution of this embodiment, the target keywords of multiple topics of the information to be recommended can be determined based on the word frequency and subject of the text data according to the TF-IDF keywords, TextRank keywords and subject words, and then the text portrait corresponding to the information to be recommended can be constructed according to the target keywords, thereby improving the accuracy, representativeness and diversity of the target keywords, improving the accuracy of text portrait construction, reducing recommendation limitations, and improving the diversity of information recommendation.
[0039] Further, as a refinement and extension of the above embodiment, in order to fully illustrate the specific implementation process of the method of this embodiment, this embodiment provides the following Figure 2 The specific method shown includes:
[0040] Step 201: Obtain text data of information to be recommended.
[0041] Optionally, step 201 may specifically include: preprocessing the information to be recommended, performing data fusion on the preprocessed information to be recommended, and acquiring text data corresponding to the information to be recommended.
[0042] In this embodiment, data processing may be performed on the information to be recommended first. For example, preprocessing operations such as filling missing values, cleaning redundant spaces, and cleaning special characters may be performed on the information to be recommended from different modules of the vehicle computer. Then, data fusion may be performed on the preprocessed information to be recommended. All relevant fields (for example: the first-level classification, second-level classification, brand, regional business district, item title, item description, item details, etc.) of items may be converted into strings. The strings may then be concatenated and fused together according to a certain regular order to obtain text data corresponding to the information to be recommended, so as to facilitate subsequent data operations.
[0043] Step 202: extract TF-IDF keywords, TextRank keywords and subject words from the text data.
[0044] Optionally, before extracting TF-IDF keywords, TextRank keywords and subject words from the text data, the method further includes: using a word segmentation tool to segment the text data into words.
[0045] In this embodiment, word segmentation can be used as a basic step in text data processing. The word segmentation tool may include but is not limited to Jieba word segmentation. Jieba word segmentation can be used to divide text data into words or vocabulary units, so that text data can be more easily processed and analyzed, which is helpful for word frequency statistics. The word segmentation modes of Jieba word segmentation may include but are not limited to precise mode, full mode and search engine mode. For personalized recommendation systems, the search engine mode can be used to segment longer words to improve the accuracy of vocabulary segmentation.
[0046] Optionally, step 202 may specifically include: determining the TF-IDF keywords in the text data according to the TF-IDF value corresponding to the word calculated by the TF-IDF model; determining the TextRank keywords in the text data according to the Rank value corresponding to the word calculated by the TextRank model; determining the subject words in the text data according to the probability corresponding to the word calculated by the LDA topic model.
[0047] In this embodiment, the TF-IDF model can be used to extract TF-IDF keywords. First, the TF-IDF value of each word in the text data segmentation is calculated. Specifically, the word frequency and the inverse document frequency can be multiplied to obtain the TF-IDF value. The higher the TF-IDF value, the more important the word is in the text data. Then, the various words in the text data segmentation can be sorted according to the size of the TF-IDF value, and the words with higher TF-IDF values can be selected as TF-IDF keywords.
[0048] In this embodiment, when the TextRank model is used to extract TextRank keywords, a network can be constructed based on the co-occurrence relationship (adjacent relationship) between words (nodes). The edges in the constructed network are undirected and authorized edges. Then, PageRank is used to iteratively calculate the Rank value of each node, and the words are sorted according to the Rank value to obtain the TextRank keywords.
[0049] In this embodiment, when the statistical model LDA model is used to extract keywords, the text data can be represented as a mixture of potential topics, and each topic is represented as a set of probability distribution terms, thereby realizing personalized information recommendation based on the topic distribution of users or items.
[0050] In this way, the advantages of the TF-IDF model, the TextRank model, and the LDA model are combined, and the target keywords can be extracted from the text data based on the word frequency and the theme of the text data, which helps to enhance the extraction quality of the target keywords.
[0051] Step 203: Determine the co-occurring words among the TF-IDF keywords and the TextRank keywords.
[0052] In this embodiment, by calculating the intersection of TF-IDF keywords and TextRank keywords, the co-occurring words in TF-IDF keywords and TextRank keywords can be determined, thereby improving the accuracy of keyword extraction, and helping to reduce the situation in the same corpus where the TF-IDF model alone cannot effectively reflect the importance of words and text topics, and cannot complete the weight adjustment well.
[0053] Step 204: Determine the target keyword corresponding to the information to be recommended based on the co-occurring words and the subject words.
[0054] For this embodiment, on the basis of co-occurring words, combined with the subject words extracted by the LDA model, a keyword extraction framework that comprehensively considers keyword frequency, text structure and subject content can be constructed. By fusion processing of keywords and subject words, the target keywords corresponding to the information to be recommended are determined, and multi-topic keywords are extracted, which improves the accuracy and representativeness of target keyword extraction, effectively expresses the diversity of user interests, and helps the personalized recommendation system to understand user preferences more comprehensively, thereby providing more personalized recommendation content, improving the ability to accurately capture users' diverse interests, and improving the recommendation quality of the personalized recommendation system.
[0055] Optionally, step 204 may specifically include: sorting the co-occurring words and the subject words according to their corresponding weights to obtain a text subject word list; and determining a preset number of target keywords from the text subject word list.
[0056] For example, we can combine inverse text word frequency and TextRank keywords to extract co-occurring words, then extract the subject words of the text theme, sort the co-occurring words and subject words according to their corresponding weights, obtain a text subject word table, and then obtain a preset number (the first N) words from the text subject word table as the target keywords of the text data, thereby obtaining keywords with themes, interests, and main content, thereby improving the sorting accuracy and user satisfaction.
[0057] Exemplarily, you can also load TF-IDF keywords, load TextRank keywords and then merge them, load the subject words output by the LDA model and merge them with the keywords, extract co-occurring words, and then sort them according to factors such as topic, interest and weight to obtain the target keywords of the text data as text portrait labels for the text data and as user portrait labels for the text data.
[0058] Step 205: construct a text portrait corresponding to the information to be recommended based on the target keyword, and recommend information based on the text portrait.
[0059] In this embodiment, for the personalized recommendation system, the text portrait corresponding to the information to be recommended is constructed based on the target keywords. At the same time, these target keywords can also reflect the diverse interests of users. Therefore, these target keywords can be used to construct user portraits, and then information is recommended based on the user portraits and text portraits, which helps to improve the operating indicators of the personalized recommendation system, such as the user's click-through rate, collection rate, sharing rate, conversion rate, stay time, recall rate, accuracy, satisfaction, etc. The multi-topic keywords extracted by the comprehensive model can effectively express the diversity of user interests, which helps the personalized recommendation system to understand user preferences more comprehensively, thereby providing more personalized recommendation content, improving the ability to accurately capture the diverse interests of users, and improving the recommendation quality of the personalized recommendation system.
[0060] Exemplarily, when the information to be recommended is an item, an item portrait can be constructed, that is, the item portrait label of the information to be recommended can be determined, and a complete and rich set of labels can be constructed for the text data of the personalized recommendation system to facilitate the subsequent recommendation steps. The content of the item portrait may include the title, introduction, description and other information of the item. The item portrait can also enrich the user portrait well, thereby establishing a connection between the user to be recommended and the information to be recommended, and improving the ability to accurately capture the diverse interests of users. Correspondingly, after the user portrait and item portrait are constructed, the corresponding labels can be processed by feature engineering based on the user portrait and item portrait. The data after feature engineering is a vector. The subsequent multi-way recall model and various sorting models all use vectors as the input of the algorithm model, thereby providing more valuable item data and user data for the personalized recommendation system.
[0061] Among them, item portrait tags may include but are not limited to business tags, mining tags, etc. Business tags may include but are not limited to the number of clicks, views, forwardings, favorites, shares, purchases, length of stay, etc. of the item; mining tags may include item characterization tags related to the information to be recommended. Tags can be determined manually, such as when publishing an article, users of the self-media platform manually add tags; tags can also be determined automatically by machines, such as using an algorithm model to automatically acquire and add tags.
[0062] Compared with the current existing technology, this embodiment can determine the co-occurring words in TF-IDF keywords and TextRank keywords, and then determine the target keywords corresponding to the information to be recommended based on the co-occurring words and subject words, which helps to reduce the situation in the same corpus where the TF-IDF model alone cannot effectively reflect the importance of words and text topics, and cannot complete the weight adjustment well. The extracted multi-topic keywords can effectively express the diversity of user interests, which helps the personalized recommendation system to understand user preferences more comprehensively, thereby providing more personalized recommendation content, improving the ability to accurately capture users' diverse interests, and improving the recommendation quality of the personalized recommendation system.
[0063] Further, as Figure 1 and Figure 2 The specific implementation of the method shown in this embodiment provides an information recommendation device, such as Figure 3 As shown, the device includes: an acquisition module 31, an extraction module 32, a determination module 33, and a recommendation module 34.
[0064] An acquisition module 31 is configured to acquire text data of the information to be recommended;
[0065] An extraction module 32, configured to extract TF-IDF keywords, TextRank keywords and subject words from text data;
[0066] The determination module 33 is configured to determine the target keyword corresponding to the information to be recommended according to the TF-IDF keyword, the TextRank keyword and the subject word, wherein the target keyword is used to represent the subject content of the information to be recommended;
[0067] The recommendation module 34 is configured to construct a text portrait corresponding to the information to be recommended based on the target keyword, and recommend information based on the text portrait.
[0068] In a specific application scenario, the extraction module 32 is specifically configured to use a word segmentation tool to segment text data into words; determine the TF-IDF keywords in the text data based on the TF-IDF value corresponding to the word calculated by the TF-IDF model; determine the TextRank keywords in the text data based on the Rank value corresponding to the word calculated by the TextRank model; determine the subject words in the text data based on the probability corresponding to the word calculated by the LDA topic model.
[0069] In a specific application scenario, the determination module 33 is specifically configured to determine the co-occurring words among the TF-IDF keywords and the TextRank keywords; and determine the target keywords corresponding to the information to be recommended based on the co-occurring words and the subject words.
[0070] In a specific application scenario, the determination module 33 is further configured to sort the co-occurring words and the subject words according to their corresponding weights to obtain a text subject word list; and determine a preset number of target keywords from the text subject word list.
[0071] In a specific application scenario, the recommendation module 34 is specifically configured to use the target keyword as the portrait label of the text portrait to construct a text portrait corresponding to the information to be recommended; construct a user portrait corresponding to the user to be recommended based on the target keyword and the preference of the user to be recommended; and recommend information to the user to be recommended based on the user portrait and the text portrait.
[0072] In a specific application scenario, the acquisition module 31 is specifically configured to pre-process the information to be recommended, perform data fusion on the pre-processed information to be recommended, and obtain text data corresponding to the information to be recommended.
[0073] It should be noted that for other corresponding descriptions of the functional units involved in the information recommendation device provided in this embodiment, please refer to Figure 1 and Figure 2 The corresponding description in will not be repeated here.
[0074] Based on the above Figure 1 and Figure 2The method shown in the embodiment also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned Figure 1 and Figure 2 The method shown.
[0075] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of the present application.
[0076] Based on the above Figure 1 and Figure 2 The method shown, and Figure 3 In order to achieve the above-mentioned purpose, the embodiment of the present application also provides an electronic device that can be configured on the vehicle (such as a new energy vehicle) side, and the device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figure 1 and Figure 2 The method shown.
[0077] Optionally, the above-mentioned physical device may also include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), etc.
[0078] Those skilled in the art will appreciate that the above-mentioned physical device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different arrangements of components.
[0079] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the above-mentioned physical device, and supports the operation of the information processing program and other software and / or programs. The network communication module is used to realize the communication between the components inside the storage medium, and the communication with other hardware and software in the information processing physical device.
[0080] Based on the above electronic device, the embodiment of the present application further provides a vehicle, which may specifically include: Figure 3The device shown in the figure or the electronic device as described above. The vehicle can be a new energy vehicle or a traditional vehicle.
[0081] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus necessary general hardware platforms, or by hardware. Compared with the current prior art, the present embodiment can first obtain the text data of the information to be recommended; then extract the TF-IDF keywords, TextRank keywords and subject words of the text data; then determine the target keywords corresponding to the information to be recommended based on the TF-IDF keywords, TextRank keywords and subject words, and the target keywords are used to represent the subject content of the information to be recommended; finally, construct a text portrait corresponding to the information to be recommended based on the target keywords, and recommend information based on the text portrait. By applying the technical solution of this embodiment, the co-occurring words in TF-IDF keywords and TextRank keywords can be determined, and then the target keywords corresponding to the information to be recommended can be determined based on the co-occurring words and subject words. This helps to reduce the situation in which the TF-IDF model alone cannot effectively reflect the importance of words and text topics in the same corpus, and cannot complete the weight adjustment well. The extracted multi-topic keywords can effectively express the diversity of user interests, which helps the personalized recommendation system to understand user preferences more comprehensively, thereby providing more personalized recommendation content, improving the ability to accurately capture users' diverse interests, and improving the recommendation quality of the personalized recommendation system.
[0082] 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 term "comprises" or any other variant thereof is 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.
[0083] The above is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features applied for herein.
Claims
1. An information recommendation method, characterized in that: include: Obtain text data of the information to be recommended; Extracting TF-IDF keywords, TextRank keywords and subject words from the text data; Determine, according to the TF-IDF keywords, TextRank keywords and subject words, a target keyword corresponding to the information to be recommended, wherein the target keyword is used to represent the subject content of the information to be recommended; A text portrait corresponding to the information to be recommended is constructed based on the target keyword, and information is recommended according to the text portrait.
2. The method according to claim 1, characterized in that Before extracting the TF-IDF keywords, TextRank keywords and subject words of the text data, the method further includes: Using a word segmentation tool to segment the text data into words; The extracting of TF-IDF keywords, TextRank keywords and subject words of the text data includes: Determine the TF-IDF keywords in the text data according to the TF-IDF values corresponding to the words calculated by the TF-IDF model; Determine the TextRank keywords in the text data according to the Rank values corresponding to the words calculated by the TextRank model; The subject words in the text data are determined according to the probabilities corresponding to the words calculated by the LDA topic model.
3. The method according to claim 2, characterized in that Determining the target keyword corresponding to the information to be recommended according to the TF-IDF keyword, TextRank keyword and subject word includes: Determine the co-occurring words among the TF-IDF keywords and the TextRank keywords; According to the co-occurring words and the subject words, a target keyword corresponding to the information to be recommended is determined.
4. The method according to claim 3, characterized in that The step of determining the target keyword corresponding to the information to be recommended according to the co-occurring words and the subject words includes: Sort the co-occurring words and the subject words according to their corresponding weights to obtain a text subject word list; A preset number of target keywords are determined from the text keyword list.
5. The method according to claim 1, characterized in that The step of constructing a text portrait corresponding to the information to be recommended based on the target keyword, and recommending information according to the text portrait includes: Using the target keyword as a portrait label of the text portrait, constructing a text portrait corresponding to the information to be recommended; Constructing a user profile corresponding to the user to be recommended based on the target keyword and the preference of the user to be recommended; According to the user portrait and the text portrait, information is recommended to the user to be recommended.
6. The method according to claim 1, characterized in that Get the text data of the information to be recommended, including: The information to be recommended is preprocessed, and data fusion is performed on the preprocessed information to be recommended to obtain text data corresponding to the information to be recommended.
7. An information recommendation device, characterized in that: include: An acquisition module, configured to acquire text data of information to be recommended; An extraction module is configured to extract TF-IDF keywords, TextRank keywords and subject words of the text data; A determination module is configured to determine a target keyword corresponding to the information to be recommended according to the TF-IDF keyword, the TextRank keyword and the subject word, wherein the target keyword is used to represent the subject content of the information to be recommended; The recommendation module is configured to construct a text portrait corresponding to the information to be recommended based on the target keyword, and recommend information according to the text portrait.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
9. An electronic device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.
10. A vehicle, characterized in that: include: The device as claimed in claim 7 or the electronic device as claimed in claim 9.
Citation Information
Cited By
Intelligent submission expert matching method and device and electronic equipment
CN120069382A
