Hotspot data acquisition method and device, equipment and storage medium
Through keyword extraction and alignment processing, hotspot data is generated, which solves the problems of incomplete data acquisition and low efficiency in traditional public opinion monitoring methods, and achieves more accurate and efficient public opinion hotspot data monitoring.
Patent Information
- Application Number
- CN202410775288.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-13
AI Technical Summary
Traditional public opinion hotspot data monitoring methods rely on indicators such as click-through rate, number of subscriptions, number of reads, number of likes, etc., which cannot be obtained directly or are unreliable, resulting in low monitoring accuracy and efficiency, especially when the amount of data is large and the news data is huge. , it is difficult to achieve accurate public opinion heat and situation analysis.
By obtaining data within the target time period, keyword extraction and title-keyword mapping relationships are constructed, using the TextRank algorithm and LDA topic model for keyword extraction, combined with a large language model for keyword alignment processing, and constructing an orderly list of keywords Hierarchical collection to generate hotspot data.
It improves the accuracy and efficiency of public opinion hotspot data monitoring, saves manpower and time costs, is suitable for various types of data and scenarios, can accurately extract and match key information in target data, and enhances the accuracy and reliability of information. .
Smart Images

Figure CN118643242A
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method, device, equipment and storage medium for obtaining hotspot data. Background Art
[0002] Traditional methods of monitoring public opinion hotspot data mainly use indicators such as click-through rate, subscription number, reading number, like number, forwarding number, etc. as references to measure the popularity and attention of an event or topic. These indicators can usually be obtained from various information sources on the Internet (such as news websites, social media, forums, blogs, etc.). For example, in social media, the popularity of a post is measured by counting the number of likes, comments, and shares of a post.
[0003] However, in some cases, these indicators cannot be directly obtained or are unreliable, making it difficult to accurately reflect the heat and trend of public opinion. In addition, due to the huge amount of news data, it is time-consuming and laborious to summarize indicators such as click-through rate, subscription number, reading number, like number, and forwarding number, so traditional methods also have certain limitations.
[0004] Therefore, how to improve the accuracy and efficiency of monitoring public opinion hotspot data, and at the same time still be able to conduct public opinion monitoring in scenarios where indicators such as click-through rate, number of subscriptions, number of readings, number of likes, and number of reposts cannot be obtained, is a technical problem that technical personnel in this field urgently need to solve. Summary of the invention
[0005] Based on the above problems, the present application provides a method, device, equipment and storage medium for obtaining hot spot data, which can improve the accuracy and efficiency of public opinion hot spot data monitoring. At the same time, public opinion monitoring can still be performed in scenarios where indicators such as click-through rate, number of subscriptions, number of readings, number of likes, and number of reposts cannot be obtained.
[0006] The embodiments of the present application disclose the following technical solutions:
[0007] A method for acquiring hotspot data, the method comprising:
[0008] Obtain N target data within a target time period, and extract keywords from the target data to obtain multiple target keywords; N is a positive integer; the target data includes the title and the text content;
[0009] Acquire a title-keyword mapping relationship between the plurality of target keywords and the title of the target data, and perform keyword alignment processing on the target keywords in the title-keyword mapping relationship to obtain a target mapping relationship;
[0010] According to the occurrence frequency of the keywords in the target mapping relationship, an ordered hierarchical set of keywords in the target mapping relationship is constructed; the ordered hierarchical set includes a plurality of keyword pairs; the keyword pair includes a primary keyword and 0, or, a primary keyword and a secondary keyword; the primary keyword and the secondary keyword are obtained by grading the keywords in the target mapping relationship according to their occurrence frequency;
[0011] Acquire target data corresponding to the keyword pair;
[0012] According to the keyword pair and the target data corresponding to the keyword pair, hot spot data of the keyword pair is generated.
[0013] In a possible implementation, extracting keywords from the target data to obtain multiple target keywords includes:
[0014] Deleting HTML tags, pictures, symbols, line breaks and extra spaces in the target data to obtain preprocessed data;
[0015] Using a graph-based ranking algorithm TextRank algorithm and / or a latent Dirichlet distribution topic model LDA topic model to extract keywords from the preprocessed data to obtain a plurality of target keywords;
[0016] Among them, when the TextRank algorithm and the LDA topic model are used to extract keywords from the preprocessed data at the same time, the target keywords include both the keywords obtained by extracting keywords from the preprocessed data using the TextRank algorithm and the target keywords also include the keywords obtained by extracting keywords from the preprocessed data using the LDA topic model.
[0017] In a possible implementation, the acquiring the title-keyword mapping relationship between the plurality of target keywords and the title of the target data includes:
[0018] constructing a first input instruction based on the plurality of target keywords, the title of the target data, and the text content of the target data;
[0019] The first input instruction is input into a large language model (LLM) model to perform keyword removal and title-keyword mapping to obtain the title-keyword mapping relationship.
[0020] In a possible implementation, performing keyword alignment processing on the target keyword in the title-keyword mapping relationship to obtain the target mapping relationship includes:
[0021] Counting the occurrence frequency of the target keyword in the title-keyword mapping relationship, deleting the target keyword whose occurrence frequency in the title-keyword mapping relationship is lower than a preset frequency to obtain a preliminary mapping relationship;
[0022] Constructing embedding features of the target keywords in the preliminary mapping relationship;
[0023] All the embedded features are classified by using a clustering algorithm and similarity calculation to obtain multiple feature classification sets;
[0024] Filtering embedded features that meet the filtering conditions from the feature classification set as target features; the target features have a corresponding relationship with the embedded features in the feature classification set;
[0025] According to the correspondence between the target feature and the embedded feature in the feature classification set, the target keywords in the preliminary mapping relationship are replaced with the target keywords corresponding to the target feature in sequence to obtain the target mapping relationship.
[0026] In a possible implementation, constructing an ordered hierarchical set of keywords in the target mapping relationship according to the occurrence frequency of the keywords in the target mapping relationship includes:
[0027] Sorting the keywords in all the target mapping relationships according to the frequency of occurrence and deleting the repeated keywords in the target mapping relationships to obtain an ordered sequence; N target data correspond to N target mapping relationships; the frequency of occurrence of the i-th keyword in the ordered sequence is greater than the frequency of occurrence of the i+1-th keyword, where i is a positive integer;
[0028] Sequentially taking the keywords in the ordered sequence as primary keywords, and sequentially taking all keywords after the primary keyword in the ordered sequence as secondary keywords of the primary keyword in the order of the keywords in the ordered sequence;
[0029] The primary keyword and 0 form the keyword pair, and the primary keyword and the secondary keyword of the primary keyword are sequentially combined to form the keyword pair according to the order of the secondary keywords in the ordered sequence;
[0030] According to the order in which the keyword pairs are constructed, combining all the keyword pairs into the ordered hierarchical set;
[0031] If the keyword pair cannot correspond to any of the target data, the keyword pair is deleted.
[0032] In a possible implementation, generating hotspot data of the keyword pair according to the keyword pair and the target data corresponding to the keyword pair includes:
[0033] Constructing a second input instruction based on the keyword pair, the target data corresponding to the keyword pair, and the hot data output requirement;
[0034] The second input instruction is input into the LLM model to obtain the hot data of the keyword pair.
[0035] A device for acquiring hotspot data, the device comprising:
[0036] A first acquisition unit, used to acquire N target data within a target time period;
[0037] The first keyword extraction unit is used to extract keywords from the target data to obtain multiple target keywords; N is a positive integer; the target data includes a title and a text content;
[0038] A second acquisition unit, configured to acquire a title-keyword mapping relationship between the plurality of target keywords and the title of the target data;
[0039] A keyword alignment unit, used for performing keyword alignment processing on the target keyword in the title-keyword mapping relationship to obtain a target mapping relationship;
[0040] A construction unit is used to construct an ordered hierarchical set of keywords in the target mapping relationship according to the occurrence frequency of the keywords in the target mapping relationship; the ordered hierarchical set includes a plurality of keyword pairs; the keyword pair includes a primary keyword and 0, or, a primary keyword and a secondary keyword; the primary keyword and the secondary keyword are obtained by grading the keywords in the target mapping relationship according to their occurrence frequency;
[0041] A third acquisition unit, used to acquire target data corresponding to the keyword pair;
[0042] The hot data generating unit is used to generate the hot data of the keyword pair according to the keyword pair and the target data corresponding to the keyword pair.
[0043] In a possible implementation, the first keyword extraction unit specifically includes:
[0044] A preprocessing unit, used for deleting hypertext markup language HTML tags, pictures, special characters, line breaks and extra spaces in the target data to obtain preprocessed data;
[0045] A second keyword extraction unit is used to extract keywords from the preprocessed data using a graph-based ranking algorithm TextRank algorithm and / or a latent Dirichlet distribution topic model LDA topic model to obtain a plurality of target keywords;
[0046] Among them, when the TextRank algorithm and the LDA topic model are used to extract keywords from the preprocessed data at the same time, the target keywords include both the keywords obtained by extracting keywords from the preprocessed data using the TextRank algorithm and the target keywords also include the keywords obtained by extracting keywords from the preprocessed data using the LDA topic model.
[0047] A device for acquiring hotspot data includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the hotspot data acquisition method described above is implemented.
[0048] A computer-readable storage medium, characterized in that instructions are stored in the computer-readable storage medium, and when the instructions are executed on a terminal device, the terminal device executes the hotspot data acquisition method as described above.
[0049] Compared with the prior art, this application has the following beneficial effects:
[0050] The present application provides a method, device, equipment and storage medium for obtaining hot data. Specifically, when executing the method for obtaining hot data provided by the embodiment of the present application, N target data within the target time period can be first obtained, and keywords are extracted from the target data to obtain multiple target keywords, wherein the target data includes a title and a text content. Next, the title-keyword mapping relationship between the multiple target keywords and the title of the target data is obtained, and the target keywords in the title-keyword mapping relationship are subjected to keyword alignment processing to obtain the target mapping relationship. Then, an ordered hierarchical set of keywords in the target mapping relationship is constructed according to the frequency of occurrence of keywords in the target mapping relationship, and the ordered hierarchical set includes several pairs of keyword pairs. Then, the target data corresponding to the keyword pair is obtained, and the hot data of the keyword pair is generated according to the keyword pair and the target data corresponding to the keyword pair. The present application obtains the data within the target time period in an automated manner, and performs keyword extraction and keyword alignment processing on it, which can greatly improve the efficiency of processing data and save manpower and time costs. At the same time, since the method only obtains hot data based on keywords that any target data has, it can be applied to various types of data and scenarios. In addition, through keyword extraction and keyword alignment processing, key information in the target data can be accurately extracted and matched, thereby generating relevant hot spot data and improving the accuracy and reliability of the information. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] 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, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0052] Figure 1 A method flow chart of a method for obtaining hotspot data provided in an embodiment of the present application;
[0053] Figure 2 A method flow chart of a keyword extraction method provided in an embodiment of the present application;
[0054] Figure 3 A method flow chart of a keyword alignment method provided in an embodiment of the present application;
[0055] Figure 4 A method flow chart of a method for constructing an ordered hierarchical set provided in an embodiment of the present application;
[0056] Figure 5 A schematic diagram of the structure of a hotspot data acquisition device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0057] To facilitate understanding of the technical solutions provided by the embodiments of the present application, the background technology involved in the embodiments of the present application will be described below.
[0058] Public opinion hotspot monitoring refers to real-time monitoring and analysis of various information sources on the Internet (including social media, news websites, forums, blogs, etc.), obtaining relevant information about specific topics or events, and classifying, sorting, analyzing and visualizing them. This can help people capture the public's attention and attitude towards certain things in a timely manner, and provide timely reference opinions for decision makers.
[0059] Traditional methods of monitoring public opinion hotspot data use indicators such as click-through rate, subscription number, number of readings, number of likes, and number of reposts as references to measure the popularity and attention of an event or topic. However, these indicators cannot be directly obtained or are unreliable in some cases, making it difficult to accurately reflect the popularity and trend of public opinion. For example, in some social media, users can purchase false data such as clicks and likes, thereby affecting the accuracy of monitoring results.
[0060] In addition, due to the huge amount of news data on the Internet, manual summarization requires a lot of time and energy, which is inefficient. Therefore, the traditional method of monitoring public opinion hotspot data has certain limitations.
[0061] In order to solve this problem, a method, device, equipment and storage medium for obtaining hot data are provided in an embodiment of the present application. First, N target data within a target time period are obtained, including titles and text content, and keywords are extracted to obtain multiple target keywords. Next, the title-keyword mapping relationship between multiple target keywords and the titles of the target data is obtained, and the target keywords in the title-keyword mapping relationship are subjected to keyword alignment processing to obtain the target mapping relationship. Then, an ordered hierarchical set of keywords in the target mapping relationship is constructed according to the frequency of occurrence of keywords in the target mapping relationship, including several pairs of keyword pairs. Then, the target data corresponding to the keyword pair is obtained, and the hot data of the keyword pair is generated according to the keyword pair and the target data corresponding to the keyword pair. The method obtains the target data and performs keyword processing in an automated manner, improves the efficiency of processing data, and saves manpower and time costs. At the same time, since the hot data is obtained based on keywords that any target data has, it is suitable for various types of data and scenarios. Through keyword extraction and alignment processing, key information in the target data can be accurately extracted and matched, improving the accuracy and reliability of the information.
[0062] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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 creative work are within the scope of protection of this application.
[0063] See also Figure 1 , which is a flow chart of a method for obtaining hotspot data provided by an embodiment of the present application, such as Figure 1 As shown, the method for obtaining hotspot data may include steps S101-S105:
[0064] S101: Acquire N target data within a target time period, and perform keyword extraction on the target data to obtain multiple target keywords.
[0065] To obtain the specified hot data, you first need to specify a time period (i.e., target time period) and obtain N target data from the data source (such as social media, news websites, etc.) within the time period. N is a positive integer and can be adjusted as needed.
[0066] Then, each acquired target data is processed, including the title and text content, to extract the keywords in the target data. These keywords are the most important information when analyzing the data and can be used for subsequent hot topic mining and relevance calculation operations.
[0067] Optionally, the target data can be any data with text information, such as posts on social media, news reports, government announcements, corporate press releases, etc. The target data usually includes titles and text content. By extracting and analyzing keywords from these text information, hot topics and related information can be found. The public opinion hot data processing method obtains hot data based on keywords that any target data has, so it is applicable to various types of data and scenarios.
[0068] This step aims to collect and process input data so that subsequent steps can better utilize this data for public opinion analysis and hot spot data extraction.
[0069] See also Figure 2 , Figure 2 A method flow chart of a keyword extraction method provided in an embodiment of the present application. Accordingly, the keyword extraction of target data to obtain multiple target keywords can be implemented through steps A1-A2:
[0070] A1: Delete HTML tags, pictures, special characters, emoticons, line breaks and extra spaces in the target data to obtain pre-processed data.
[0071] Before keyword extraction, the target data needs to be preprocessed to clean and normalize the text data. This is because the original data usually contains noise and redundant information, which will affect the subsequent analysis results. At the same time, in keyword extraction algorithms such as Text Ranking using Graph-based (TextRank) and Latent Dirichlet Allocation (LDA), the quality of the input text data also has a great impact on the performance and effect of the algorithm. Therefore, preprocessing data is very important to improve the accuracy and reliability of keyword extraction.
[0072] Specifically, removing elements such as Hypertext Markup Language (HTML), images, characters, line breaks, and extra spaces can make text data neater and more standardized, avoiding interference from these elements on subsequent analysis. For example, if HTML tags are not deleted, the algorithm may also process the content in the HTML tags as text data during keyword extraction, which is obviously incorrect. Similarly, removing elements such as extra spaces and special characters can make text data clearer and easier to understand, thereby improving the accuracy and reliability of the algorithm.
[0073] Delete HTML tags: The target data is usually obtained from the Internet, and the news displayed on the web page usually contains some HTML tags, such as paragraph tags, link tags, image tags, etc. These tags are not very helpful for keyword extraction, so they need to be deleted from the target data.
[0074] Delete images and symbols: Some target data may contain some images or symbols, such as emoticons, special characters (such as "&", "%", etc.), etc., and image data cannot be directly used for keyword extraction, so they need to be deleted. At the same time, symbols may interfere with or mislead the algorithm during keyword extraction, so they also need to be deleted.
[0075] Delete line breaks and extra spaces: There may be some format confusion caused by extra spaces or line breaks in news articles, which are useless for keyword extraction and therefore need to be deleted.
[0076] Therefore, preprocessing can improve the accuracy and reliability of text data, thereby helping users to better extract keywords.
[0077] A2: Use the TextRank algorithm and / or the LDA topic model to perform keyword extraction on the preprocessed data to obtain multiple target keywords.
[0078] The TextRank algorithm is a graph-based sorting algorithm that can extract keywords from text and calculate the weight of each keyword. The algorithm constructs a weighted graph to represent the relationship between words or phrases in the text, and uses the structure and link information of the graph to calculate the PageRank value of each node. These PageRank values can be used as the weight of keywords for subsequent hot topics and relevance calculations.
[0079] The LDA topic model is a text data analysis method that can extract potential topics from text sequences and assign words in the text to different topics. The algorithm constructs a probability model to express the distribution of words by counting the frequency of words in the text, and finds the topic distribution through sampling and other methods. These topics can be used as representatives of keywords for subsequent hot topics and relevance calculations.
[0080] When extracting keywords from preprocessed data, you can use only the TextRank algorithm or only the LDA topic model. Of course, you can also use both the TextRank algorithm and the LDA topic model to extract keywords from preprocessed data. If these two algorithms are used at the same time, the keywords obtained include both the keywords extracted by the TextRank algorithm and the keywords extracted by the LDA topic model. Through these keywords, we can better understand the hot topics and related information in the data.
[0081] S102: Acquire a title-keyword mapping relationship between the plurality of target keywords and the title of the target data, and perform keyword alignment processing on the target keywords in the title-keyword mapping relationship to obtain a target mapping relationship;
[0082] Match multiple target keywords of each target data with its title to establish an association between the two. At the same time, after the title-keyword mapping relationship is established, different keywords may express similar meanings, such as "car" and "sedan". Therefore, it is necessary to align these keywords and merge them into a more general keyword that can represent their common meaning. This can reduce noise and redundant information and improve the efficiency and accuracy of subsequent processing.
[0083] For example, suppose there are three target data, namely target data A, target data B, and target data C. The title of target data A is new_1, and the keywords corresponding to target data A are w_1 and w_2; the title of target data B is new_2, and the keywords corresponding to target data A are w_3 and w_4; the title of target data C is new_3, and the keywords corresponding to target data A are w_5 and w_6. Then, the title-keyword mapping relationship of target data A is {new_1:[w_1,w_2]}, the title-keyword mapping relationship of target data B is {new_2:[w_3,w_4]}, and the title-keyword mapping relationship of target data C is {new_3:[w_5,w_6]}.
[0084] In a possible implementation manner, the acquiring of the title-keyword mapping relationship between the multiple target keywords and the title of the target data may be implemented by the following steps:
[0085] First, a first input instruction is constructed based on the multiple target keywords, the title of the target data and the text content of the target data, and then the first input instruction is input into a large language model (LLM) for keyword removal and title-keyword mapping to obtain the title-keyword mapping relationship.
[0086] In order to obtain the title-keyword mapping relationship between each target keyword and its corresponding title, the first input instruction needs to be constructed based on multiple target keywords, the title and text content of the target data, and then input into the LLM model for processing. The LLM model will remove the target keywords with low relevance that do not meet the requirements of the LLM model, and map the remaining target keywords with the title of the target data to obtain the required title-keyword mapping relationship. This can effectively extract and match the key information in the target data, thereby obtaining more accurate hot spot data and providing more valuable reference for business decisions.
[0087] For example, the first input instruction is as follows:
[0088] “Based on the given target keywords, the title of the target data and the text content of the target data, select some target keywords that you think are most appropriate, and generate a mapping relationship between these selected target keywords and the title of the target data.
[0089] Existing topic keywords: <Keyword 1> / <Keyword 2> / <Keyword 3> / ...
[0090] Target data title: <target data title>
[0091] The text content of the target data: <The text content of the target data>"
[0092] See also Figure 3 , Figure 3 A method flow chart of a keyword alignment method provided in an embodiment of the present application. Accordingly, the keyword alignment processing of the target keyword in the title-keyword mapping relationship to obtain the target mapping relationship can be specifically implemented through steps B1-B5:
[0093] B1: Counting the occurrence frequency of the target keyword in the title-keyword mapping relationship, and deleting the target keyword whose occurrence frequency in the title-keyword mapping relationship is lower than a preset frequency to obtain a preliminary mapping relationship.
[0094] In the title-keyword mapping relationship, it is necessary to count the frequency of occurrence of the target keywords in order to screen out those target keywords that are of certain importance and representativeness.
[0095] Specifically, this step will traverse the entire title-keyword mapping relationship and count the number of times each target keyword appears in the mapping relationship. Then, according to the preset frequency, those target keywords with a frequency lower than the preset frequency will be deleted from the mapping relationship to obtain a preliminary mapping relationship. This can remove those less important or unrepresentative keywords, making the remaining keywords more representative and providing more accurate and useful information for subsequent steps.
[0096] Optionally, the present application does not impose any specific restrictions on the size of the preset frequency, and the user can adjust the size of the preset frequency according to actual needs.
[0097] Example 1: Assume that the title-keyword mapping relationship of multiple target data A is {new_1:[w_1,w_2,w_1,w_3,w_3,w_11,w_13,w_4,w_4,w_4,w_10,w_2,w_1,w_2,w_4,w_5,w_5,w_5,w_6,w_6,w_7,w_7,w_1],new_2:[w_2,w_14,w_1,w_6],...}, and the preset frequency is 2. After deleting the target keywords with a frequency lower than 2, the preliminary mapping relationship of the target data A is:
[0098] {new_1:[w_1,w_2,w_1,w_3,w_3,w_4,w_4,w_4,w_2,w_1,w_2,w_4,w_5w_5,w_5,w_6,w_6,w_6,w_7,w_7,w_1],new_2:[w_2,w_1,w_6],...}.
[0099] B2: Constructing the embedding features of the target keywords described in the preliminary mapping relationship.
[0100] The purpose of constructing the embedding features of the target keywords described in the preliminary mapping relationship is to better characterize the intrinsic connections and similarities between these keywords. Specifically, this step embeds each target keyword to obtain a vector representing its position in the high-dimensional space. This vector is called an embedding feature. By using embedding technology, we can convert each target keyword into a continuous value vector, which has better representation ability and comparability.
[0101] B3: All the embedded features are classified using a clustering algorithm and similarity calculation to obtain multiple feature classification sets.
[0102] After constructing the embedded features of each target keyword, we need to cluster these features and divide them into different feature classification sets. Specifically, this step uses clustering algorithms and similarity calculations to analyze and compare all embedded features. By calculating the distance or similarity between each feature, they can be classified into the corresponding feature classification set. This can not only obtain the intrinsic connection and similarity between these keywords, but also divide them into different classification sets, which is convenient for subsequent processing and analysis.
[0103] Similarity calculation refers to measuring the similarity between two texts or words in a text through a certain calculation method. Commonly used similarity calculation methods include:
[0104] Cosine Similarity: It is often used to calculate the similarity between two text vectors. The calculation formula is: Cosine Similarity = (A·B) / (|A|×|B|), where A and B represent two text vectors, · represents the vector inner product, and |A| and |B| represent the modulus of A and B respectively.
[0105] Fast Cosine Similarity: It is an optimization of cosine similarity, using inverted index and other methods to speed up the calculation and improve the calculation efficiency.
[0106] These similarity calculation methods are widely used in natural language processing, information retrieval, recommendation systems and other fields. For example, in search engines, the relevance ranking of search results can be determined by calculating the similarity between query keywords and documents; in recommendation systems, personalized recommendations can also be achieved by calculating the similarity between user behavior data and product features.
[0107] B4: Filter out the embedded features that meet the filtering conditions from the feature classification set as the target features.
[0108] Among them, the target feature has a corresponding relationship with the embedded feature in the feature classification set.
[0109] After classifying all embedded features, we need to filter out the most representative (i.e., meeting the filtering criteria) target features from each feature classification set. Specifically, this step will traverse all feature classification sets, count the frequency of occurrence of each embedded feature in each feature classification set, and select the embedded feature with the highest frequency as the target feature of the classification set. Doing so can retain the most representative keywords or features in each classification set, providing more accurate and useful information for subsequent analysis and processing. At the same time, the target features of each feature classification set have a corresponding relationship with the embedded features in the feature classification set.
[0110] B5: According to the correspondence between the target feature and the embedded feature in the feature classification set, the target keywords in the preliminary mapping relationship are replaced with the target keywords corresponding to the target feature in sequence to obtain the target mapping relationship.
[0111] After the target features of each feature classification set are screened, the target keywords in the preliminary mapping relationship need to be replaced with the target keywords corresponding to the target features in turn according to the corresponding relationship between these target features and the embedded features in the respective feature classification sets. Specifically, this step will traverse all the target keywords in the preliminary mapping relationship, then find the corresponding target feature according to the feature classification set to which it belongs, and replace the target keyword with the target keyword corresponding to the target feature.
[0112] Example 2. Taking Example 1 as an example, the preliminary mapping relationship of the target data A in Example 1 is {new_1:[w_1,w_2,w_1,w_3,w_3,w_4,w_4,w_4,w_2,w_1,w_2,w_4,w_5w_5,w_5,w_6,w_6,w_6,w_7,w_7,w_1]}. Suppose there are feature classification set A and feature classification set B. These two feature classification sets, feature classification set A is {w_1_emb,w_1_emb,w_1_emb,w_1_emb,w_3_emb,w_3_emb,w_5_em b,w_5_em b,w_7_emb,w_7_emb}, and feature classification set B is {w_2_emb,w_2_emb,w_2_emb,w_4_emb,w_4_emb,w_4_emb,w_4_emb,w_6_emb,w_6_emb,w_6_emb}, w_1_emb is the embedded feature of the target keyword w_1, similarly w_2_emb is the embedded feature of the target keyword w_2, and the same goes for other embedded features. It can be seen that the target feature of feature classification set A is w_1_emb, and the target feature of feature classification set B is w_4_emb. Therefore, w_1_emb has corresponding relationships with w_1_emb, w_3_emb, w_5_emb, and w_7_emb (corresponding relationships mean similar semantics), so w_2_emb has corresponding relationships with w_2_emb, w_4_emb, and w_6_emb. Then, the target mapping relationship obtained by replacing the target keywords in the preliminary mapping relationship with the target keywords corresponding to the target features in turn is {new_1:[w_1,w_2,w_1,w_1,w_1,w_2,w_2,w_2,w_2,w_1,w_2,w_2,w_1w_1,w_1,w_2,w_2,w_2,w_1,w_1,w_1]}.
[0113] S103: constructing an ordered hierarchical set of keywords in the target mapping relationship according to the occurrence frequencies of the keywords in the target mapping relationship.
[0114] After obtaining the target mapping relationship, it is necessary to set the first-level keyword and the second-level keyword corresponding to the first-level keyword according to the frequency of occurrence of the keyword. Each first-level keyword and 0 are combined into a keyword pair, and this pair of keywords with set levels is combined into a keyword pair. All keyword pairs are arranged in sequence according to the construction order to form an ordered hierarchical set.
[0115] See also Figure 4 , Figure 4A method flow chart of a method for constructing an ordered hierarchical set provided in an embodiment of the present application. Accordingly, constructing an ordered hierarchical set of keywords in the target mapping relationship according to the occurrence frequency of keywords in the target mapping relationship can be specifically implemented through steps C1-C4:
[0116] C1: Sort the keywords in all the target mapping relationships according to their frequencies of occurrence and delete repeated keywords in the target mapping relationships to obtain an ordered sequence.
[0117] Traverse all keywords in the target mapping relationship and sort them according to their frequency of occurrence in the entire mapping relationship. Arrange keywords in descending order. Check whether there are repeated keywords in the sorted keyword sequence. If so, only keep the first-occurring keyword and delete the rest of the repeated keywords. Get the deduplicated and sorted keyword sequence. This sequence contains all keywords and is sorted from high to low according to their frequency of occurrence in the target mapping relationship. The frequency of occurrence of the i-th keyword in the sequence is greater than the frequency of occurrence of the i+1-th keyword, where i is a positive integer.
[0118] Example 3: Assume there are three target mapping relationships: target mapping relationship A, target mapping relationship B, and target mapping relationship C. Target mapping relationship A is {new_1:[w_1,w_3,w_1,w_1,w_3,w_3,w_1,w_1,w_1,w_3]}, target mapping relationship B is new_2:[w_5,w_5,w_7,w_5}, and target mapping relationship C is {new_3:[w_1,w_2,w_2,w_6,w_2,w_2,w_2,w_6]}. Then the ordered sequence is {w_1,w_2,w_3,w_5,w_6,w_7}.
[0119] C2: sequentially taking the keywords in the ordered sequence as primary keywords, and sequentially taking all keywords after the primary keyword in the ordered sequence as secondary keywords of the primary keyword in the order of the keywords in the ordered sequence.
[0120] After obtaining an ordered keyword sequence that has been deduplicated and sorted from high to low in frequency, we need to match multiple secondary keywords for each primary keyword. Specifically, this step includes the following steps:
[0121] (1) Traverse each keyword in the ordered sequence in turn and use it as the first-level keyword.
[0122] (2) All keywords in the ordered sequence except the current keyword are used as the secondary keywords of this primary keyword. Assume that the ordered sequence is {w_1, w_2, w_3, w_5, w_6, w_7}. If w_5 is the primary keyword, then w_6 and w_7 will be used as secondary keywords in turn.
[0123] (3) Repeat the above steps for the next keyword until all keywords become first-level keywords and match the corresponding second-level keywords.
[0124] C3: The primary keyword and 0 constitute the keyword pair, and the primary keyword and the secondary keyword of the primary keyword are sequentially constructed into the keyword pair according to the order of the secondary keywords in the ordered sequence.
[0125] After getting the primary keywords and secondary keywords, we need to combine them into an ordered list of keyword pairs. Specifically, this step includes the following steps:
[0126] (1) First, combine the first-level keyword and the number 0 into a keyword pair, then combine the first-level keyword and all its second-level keywords into a keyword pair in sequence, and sort the second-level keywords according to the order of appearance in the ordered sequence.
[0127] (2) Repeat the above steps until all primary and secondary keywords have been processed.
[0128] A list consisting of ordered keyword pairs is obtained, and the keyword pairs in the list are arranged according to the order in which the secondary keywords appear in the ordered sequence.
[0129] C4: According to the order in which the keyword pairs are constructed, all the keyword pairs are combined into the ordered hierarchical set.
[0130] After obtaining an ordered list of keyword pairs, we need to combine them into an ordered hierarchical set. Specifically, this step includes the following steps:
[0131] (1) Traverse all keyword pairs one by one in the order in which they appear in the list.
[0132] (2) For each keyword pair, check whether it can correspond to any target data. If not, delete the keyword pair and skip it. Whether it can correspond to any target data refers to whether the two keywords in the keyword pair can appear in a target mapping relationship at the same time.
[0133] (3) If the keyword pair can correspond to at least one target data, it is added to the ordered hierarchical set. According to the order of the primary keywords and the secondary keywords, each keyword pair is added to the appropriate hierarchical level accordingly.
[0134] (4) Repeat the above steps until all keyword pairs have been processed.
[0135] Example 4, taking Example 3 as an example to continue the explanation, corresponding to the ordered sequence of Example 3, the initial ordered hierarchical set is {(w_1,0),(w_1,w_2),(w_1,w_3),(w_1,w_5),(w_1,w_6),(w_1,w_7),(w_2,0),(w_2,w_3),(w_2,w_5),(w_2,w_6),(w_2,w_7),(w_3,0),(w_3,w_5),(w_3,w_6),(w_3,w_7),(w_5,0),(w_5,w_6),(w_5,w_7),(w_6,w_0),(w_6,w_7),(w_7,0)}. From Example 3, we can get the following hierarchical table:
[0136] Table 1 Grading table
[0137]
[0138]
[0139] From the classification table in Table 1, we can see that the keyword pairs (w_1,w_5), (w_1,w_7), (w_2,w_3), (w_2,w_5), (w_2,w_7), (w_3,w_5), (w_3,w_6), (w_3,w_7), (w_5,w_6) and (w_6,w_7) in the preliminary ordered classification set cannot correspond to any target data. Therefore, we need to delete the keyword pairs that cannot correspond to any target data from the preliminary ordered classification set to obtain the ordered classification set {(w_1,0), (w_1,w_2), (w_1,w_3),(w_1,w_6),(w_2,0),(w_2,w_6),(w_3,0),(w_5,0),(w_5,w_7),(w_6,w_0),(w_7,0)} and use the ordered hierarchical set {(w_1,0),(w_1,w_2),(w_1,w_3),(w_1,w_6),(w_2,0),(w_2,w_6),(w_3,0),(w_5,0),(w_5,w_7),(w_6,w_0),(w_7,0)} as the final ordered hierarchical set.
[0140] Through the above steps, we can obtain an ordered hierarchical set consisting of multiple hierarchical levels. This set can help us better understand and analyze the relationship between these keywords and improve the efficiency and accuracy of information processing.
[0141] S104: Acquire target data corresponding to the keyword pair.
[0142] After the ordered hierarchical set of keywords in the target mapping relationship is constructed, the target data corresponding to all keywords in the ordered hierarchical set are obtained.
[0143] Example 5: Using Example 4, for the keyword pair (w_1,0), obtain the target data corresponding to new_1 and new_3, and so on, as shown in Table 1.
[0144] S105: Generate hot spot data of the keyword pair according to the keyword pair and the target data corresponding to the keyword pair.
[0145] After the target data corresponding to the keyword pair is obtained, the hot spot data corresponding to the keyword pair may be generated according to the keyword pair and the target data corresponding to the keyword pair.
[0146] In a possible implementation, generating the hotspot data of the keyword pair according to the keyword pair and the target data corresponding to the keyword pair may be implemented in the following manner:
[0147] A second input instruction is constructed based on the keyword pair, the target data corresponding to the keyword pair, and the hotspot data output requirement, and then the second input instruction is input into the LLM model to obtain the hotspot data of the keyword pair.
[0148] Constructing a second input instruction based on the keyword pair, the target data corresponding to the keyword pair, and the hotspot data output requirements: In this step, a second input instruction is constructed by combining the keyword pairs in the ordered hierarchical set, the target data corresponding to the keyword pair, and the hotspot data output requirements. This instruction can be used for subsequent processing of the large language model LLM model.
[0149] Then, the second input instruction is input into the LLM model to obtain the hot data of the keyword pair: In this step, the second input instruction is input into the LLM model for processing. The model will calculate the heat index of each keyword pair based on the keyword information and related data contained in the instruction, and save it as a hot data set. In this way, we can understand the hot topics and related information in the data more accurately.
[0150] Example 6, taking Example 5 as an example, the second instruction is given as follows:
[0151] "Please make a description within 200 words for
w_1
[0152]
Title 1
Text 1
[0153]
Title 2
Text 2
[0154] ".
[0155] Or "Please make a description within 300 words for
w_2, w_6
[0156]
Title 1
Text 1
[0157] ".
[0158] Based on the content of S101 - S105, first obtain N target data within the target time period, including the title and text content, and perform keyword extraction on them to obtain multiple target keywords. Then, obtain the mapping relationship between the multiple target keywords and the title of the target data, and perform keyword alignment processing to obtain the target mapping relationship. Next, construct an ordered hierarchical set of keywords according to the occurrence frequency, which includes several pairs of keyword pairs. Then, obtain the target data corresponding to the keyword pairs and generate the hot data of the keyword pairs. This automated method can improve the efficiency of data processing, save labor and time costs, and is applicable to various different types of data and scenarios. Through accurate keyword extraction and keyword alignment processing, extract and match the key information in the target data, thereby generating relevant hot data and improving the accuracy and reliability of the information.
[0159] See Figure 5 , Figure 5 which is a schematic structural diagram of a device for obtaining hot data provided by an embodiment of the present application. As Figure 5 shown, the device for obtaining hot data includes:
[0160] The first acquisition unit 501 is used to acquire N target data within the target time period;
[0161] The first keyword extraction unit 502 is used to perform keyword extraction on the target data to obtain multiple target keywords; N is a positive integer; the target data includes the title and text content;
[0162] The second acquisition unit 503 is used to acquire the title-keyword mapping relationship between the multiple target keywords and the title of the target data;
[0163] A keyword alignment unit 504 is used to perform keyword alignment processing on the target keyword in the title-keyword mapping relationship to obtain a target mapping relationship;
[0164] A construction unit 505 is used to construct an ordered hierarchical set of keywords in the target mapping relationship according to the occurrence frequency of the keywords in the target mapping relationship; the ordered hierarchical set includes a plurality of keyword pairs; a keyword pair includes a primary keyword and 0, or, a primary keyword and a secondary keyword; the primary keyword and the secondary keyword are obtained by grading the keywords in the target mapping relationship according to their occurrence frequencies;
[0165] A third acquisition unit 506 is used to acquire target data corresponding to the keyword pair;
[0166] The hot data generating unit 507 is used to generate the hot data of the keyword pair according to the keyword pair and the target data corresponding to the keyword pair.
[0167] In a possible implementation, the first keyword extraction unit 502 specifically includes:
[0168] A preprocessing unit, used for deleting hypertext markup language HTML tags, pictures, special characters, line breaks and extra spaces in the target data to obtain preprocessed data;
[0169] A second keyword extraction unit is used to extract keywords from the preprocessed data using a graph-based ranking algorithm TextRank algorithm and / or a latent Dirichlet distribution topic model LDA topic model to obtain a plurality of target keywords;
[0170] Among them, when the TextRank algorithm and the LDA topic model are used to extract keywords from the preprocessed data at the same time, the target keywords include both the keywords obtained by extracting keywords from the preprocessed data using the TextRank algorithm and the target keywords also include the keywords obtained by extracting keywords from the preprocessed data using the LDA topic model.
[0171] In a possible implementation, the second acquiring unit 503 specifically includes:
[0172] A first input instruction constructing unit, configured to construct a first input instruction based on the plurality of target keywords, the title of the target data, and the text content of the target data;
[0173] The first input unit is used to input the first input instruction into a large language model (LLM) model to perform keyword removal and title-keyword mapping to obtain the title-keyword mapping relationship.
[0174] In a possible implementation, the keyword alignment unit 504 specifically includes:
[0175] A statistical deletion unit, used for counting the occurrence frequency of the target keyword in the title-keyword mapping relationship, deleting the target keyword whose occurrence frequency in the title-keyword mapping relationship is lower than a preset frequency to obtain a preliminary mapping relationship;
[0176] An embedding feature construction unit, used to construct an embedding feature of the target keyword in the preliminary mapping relationship;
[0177] An embedded feature classification unit, used to classify all the embedded features by using a clustering algorithm and similarity calculation to obtain a plurality of feature classification sets;
[0178] A screening unit, used to screen out embedded features that meet the screening conditions from the feature classification set as target features; the target features have a corresponding relationship with the embedded features in the feature classification set;
[0179] A replacement unit is used to replace the target keywords in the preliminary mapping relationship with the target keywords corresponding to the target features in turn according to the corresponding relationship between the target features and the embedded features in the feature classification set to obtain the target mapping relationship.
[0180] In a possible implementation, the construction unit 505 specifically includes:
[0181] A sorting and deleting unit, used to sort the keywords in all the target mapping relationships according to the frequency of occurrence and delete the repeated keywords in the target mapping relationships to obtain an ordered sequence; N target data correspond to N target mapping relationships; the frequency of occurrence of the i-th keyword in the ordered sequence is greater than the frequency of occurrence of the i+1-th keyword, and i is a positive integer;
[0182] A setting unit, configured to sequentially use the keywords in the ordered sequence as primary keywords, and sequentially use all keywords after the primary keyword in the ordered sequence as secondary keywords of the primary keyword according to the order of the keywords in the ordered sequence;
[0183] A keyword pair construction unit, used to form the keyword pair by combining the primary keyword and 0, and to construct the keyword pair by combining the primary keyword and the secondary keyword of the primary keyword in sequence according to the order of the secondary keywords in the ordered sequence;
[0184] An ordered hierarchical set construction unit, used for combining all the keyword pairs into the ordered hierarchical set according to the order in which the keyword pairs are constructed;
[0185] If the keyword pair cannot correspond to any of the target data, the keyword pair is deleted.
[0186] In a possible implementation, the hotspot data generating unit 507 specifically includes:
[0187] A second input instruction constructing unit, configured to construct a second input instruction based on the keyword pair, the target data corresponding to the keyword pair, and a hotspot data output requirement;
[0188] The second input unit is used to input the second input instruction into the LLM model to obtain the hot data of the keyword pair.
[0189] In addition, an embodiment of the present application also provides a hotspot data acquisition device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the hotspot data acquisition method described above is implemented.
[0190] In addition, an embodiment of the present application further provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a terminal device, the terminal device executes the hotspot data acquisition method as described above.
[0191] The embodiment of the present application provides a device for acquiring hot data, first using a first acquisition unit 501 to acquire N target data within a target time period, and using a first keyword extraction unit 502 to extract keywords from the target data to obtain multiple target keywords. The second acquisition unit 503 acquires the title-keyword mapping relationship between multiple target keywords and the title of the target data. Then, the keyword alignment unit 504 performs keyword alignment processing on the target keywords in the title-keyword mapping relationship to obtain the target mapping relationship, and the construction unit 505 constructs an ordered hierarchical set of keywords in the target mapping relationship according to the frequency of occurrence of keywords in the target mapping relationship, wherein the ordered hierarchical set includes several pairs of keyword pairs. Finally, the third acquisition unit 506 is used to acquire the target data corresponding to the keyword pair, so that the hot data generation unit 507 can generate the hot data of the keyword pair according to the keyword pair and the target data corresponding to the keyword pair. The present application can improve the efficiency of acquiring hot data and save manpower and time costs. At the same time, through keyword extraction and alignment processing, key information in the target data can be accurately extracted and matched, relevant hot data can be generated, and the accuracy and reliability of the information can be improved. The present application acquires hot data based on keywords that any target data has, and is applicable to various types of data and scenarios.
[0192] The above is a detailed introduction to a method, device, equipment and storage medium for obtaining hotspot data provided by the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
[0193] It should also be noted that, in this article, relational terms such as first and second, etc. 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 presence of other identical elements in the process, method, article or device including the elements.
Claims
1. A method for obtaining hotspot data, characterized in that: The method comprises: Obtain N target data within a target time period, and extract keywords from the target data to obtain multiple target keywords; N is a positive integer; the target data includes the title and the text content; Acquire a title-keyword mapping relationship between the plurality of target keywords and the title of the target data, and perform keyword alignment processing on the target keywords in the title-keyword mapping relationship to obtain a target mapping relationship; According to the occurrence frequency of the keywords in the target mapping relationship, an ordered hierarchical set of keywords in the target mapping relationship is constructed; the ordered hierarchical set includes a plurality of keyword pairs; the keyword pair includes a primary keyword and 0, or, a primary keyword and a secondary keyword; the primary keyword and the secondary keyword are obtained by grading the keywords in the target mapping relationship according to their occurrence frequency; Acquire target data corresponding to the keyword pair; According to the keyword pair and the target data corresponding to the keyword pair, hot spot data of the keyword pair is generated.
2. The method according to claim 1, characterized in that The keyword extraction of the target data to obtain multiple target keywords includes: Deleting Hypertext Markup Language (HTML) tags, pictures, symbols, line breaks and extra spaces in the target data to obtain preprocessed data; Using a graph-based ranking algorithm TextRank algorithm and / or a latent Dirichlet distribution topic model LDA topic model to extract keywords from the preprocessed data to obtain a plurality of target keywords; Among them, when the TextRank algorithm and the LDA topic model are used to extract keywords from the preprocessed data at the same time, the target keywords include both the keywords obtained by extracting keywords from the preprocessed data using the TextRank algorithm and the target keywords also include the keywords obtained by extracting keywords from the preprocessed data using the LDA topic model.
3. The method according to claim 1, characterized in that The step of obtaining a title-keyword mapping relationship between the plurality of target keywords and the title of the target data includes: constructing a first input instruction based on the plurality of target keywords, the title of the target data, and the text content of the target data; The first input instruction is input into a large language model (LLM) model to perform keyword removal and title-keyword mapping to obtain the title-keyword mapping relationship.
4. The method according to claim 1, characterized in that: The keyword alignment process is performed on the target keywords in the title-keyword mapping relationship to obtain the target mapping relationship, including: Counting the occurrence frequency of the target keyword in the title-keyword mapping relationship, deleting the target keyword whose occurrence frequency in the title-keyword mapping relationship is lower than a preset frequency to obtain a preliminary mapping relationship; Constructing embedding features of the target keywords in the preliminary mapping relationship; All the embedded features are classified by using a clustering algorithm and similarity calculation to obtain multiple feature classification sets; Filtering embedded features that meet the filtering conditions from the feature classification set as target features; the target features have a corresponding relationship with the embedded features in the feature classification set; According to the correspondence between the target feature and the embedded feature in the feature classification set, the target keywords in the preliminary mapping relationship are replaced with the target keywords corresponding to the target feature in sequence to obtain the target mapping relationship.
5. The method according to claim 1, characterized in that The step of constructing an ordered hierarchical set of keywords in the target mapping relationship according to the occurrence frequency of the keywords in the target mapping relationship includes: Sorting the keywords in all the target mapping relationships according to the frequency of occurrence and deleting the repeated keywords in the target mapping relationships to obtain an ordered sequence; N target data correspond to N target mapping relationships; the frequency of occurrence of the i-th keyword in the ordered sequence is greater than the frequency of occurrence of the i+1-th keyword, where i is a positive integer; Sequentially taking the keywords in the ordered sequence as primary keywords, and sequentially taking all keywords after the primary keyword in the ordered sequence as secondary keywords of the primary keyword in the order of the keywords in the ordered sequence; The primary keyword and 0 form the keyword pair, and the primary keyword and the secondary keyword of the primary keyword are sequentially combined to form the keyword pair according to the order of the secondary keywords in the ordered sequence; According to the order in which the keyword pairs are constructed, combining all the keyword pairs into the ordered hierarchical set; If the keyword pair cannot correspond to any of the target data, the keyword pair is deleted.
6. The method according to claim 1, characterized in that The step of generating hotspot data of the keyword pair according to the keyword pair and the target data corresponding to the keyword pair includes: Constructing a second input instruction based on the keyword pair, the target data corresponding to the keyword pair, and the hot data output requirement; The second input instruction is input into the LLM model to obtain the hot data of the keyword pair.
7. A device for acquiring hotspot data, characterized in that: The device comprises: A first acquisition unit, used to acquire N target data within a target time period; The first keyword extraction unit is used to extract keywords from the target data to obtain multiple target keywords; N is a positive integer; the target data includes a title and a text content; A second acquisition unit, configured to acquire a title-keyword mapping relationship between the plurality of target keywords and the title of the target data; A keyword alignment unit, used for performing keyword alignment processing on the target keyword in the title-keyword mapping relationship to obtain a target mapping relationship; A construction unit is used to construct an ordered hierarchical set of keywords in the target mapping relationship according to the occurrence frequency of the keywords in the target mapping relationship; the ordered hierarchical set includes a plurality of keyword pairs; the keyword pair includes a primary keyword and 0, or, a primary keyword and a secondary keyword; the primary keyword and the secondary keyword are obtained by grading the keywords in the target mapping relationship according to their occurrence frequency; A third acquisition unit, used to acquire target data corresponding to the keyword pair; The hot data generating unit is used to generate the hot data of the keyword pair according to the keyword pair and the target data corresponding to the keyword pair.
8. The device according to claim 7, characterized in that The first keyword extraction unit specifically includes: A preprocessing unit, used for deleting hypertext markup language HTML tags, pictures, special characters, line breaks and extra spaces in the target data to obtain preprocessed data; A second keyword extraction unit is used to extract keywords from the preprocessed data using a graph-based ranking algorithm TextRank algorithm and / or a latent Dirichlet distribution topic model LDA topic model to obtain a plurality of target keywords; Among them, when the TextRank algorithm and the LDA topic model are used to extract keywords from the preprocessed data at the same time, the target keywords include both the keywords obtained by extracting keywords from the preprocessed data using the TextRank algorithm and the target keywords also include the keywords obtained by extracting keywords from the preprocessed data using the LDA topic model.
9. A device for acquiring hotspot data, characterized in that: include: 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 method for obtaining hotspot data as described in any one of claims 1 to 6 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a terminal device, the terminal device executes the method for obtaining hotspot data as described in any one of claims 1 to 6.
Citation Information
Cited By
Main body name classification method, main body name model training method, computer equipment and storage medium
CN119128161A
Subject name classification and model training method, computer equipment and storage medium
CN119128161B
