Article popularity calculation method and device, terminal and storage medium
By constructing a hot thesaurus and calculating word frequency scores, and combining the basic scores to calculate article popularity, the problem of inaccurate popularity assessment in the existing technology is solved, and a more accurate and dynamic article popularity assessment is achieved.
Patent Information
- Application Number
- CN202410830093.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-24
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing article popularity calculation methods rely on intuitive data such as page views and likes, which cannot fully reflect the actual influence of the article and are less accurate.
By building a hot thesaurus, the word frequency score is calculated based on the number of times the keyword appears and the number of times the article is published, and the real-time popularity of the article is calculated based on the basic score.
It improves the accuracy of article popularity calculation, can more truly reflect the degree of attention of articles, is suitable for cross-site popularity comparison, and supports dynamic popularity decay.
Smart Images

Figure CN118690747A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to an article heat calculation method, device, terminal and storage medium. Background Art
[0002] As the Internet industry becomes more and more developed, journalists need to discover and identify hot articles in a timely manner, so as to obtain the hot trends that the public is paying attention to from the hot articles. At present, journalists generally identify the more popular articles based on the hot article click rankings on some large websites.
[0003] During actual use, the applicant found that: currently most article popularity calculations only rely on intuitive data such as page views, likes, and comments, which cannot fully reflect the actual influence of the article content, and evaluating article popularity based on a single dimension is often not comprehensive enough. For example, an article may have a high number of page views, but if its content quality is not high or user engagement is low, then its actual popularity may not be high. Therefore, the accuracy of the popularity evaluation method in the prior art is poor. Summary of the invention
[0004] The embodiment of the present invention provides a method, device, terminal and storage medium for calculating the popularity of an article. The popularity of an article is obtained by introducing a hot word library and calculating the keyword scores in the hot word library, which is beneficial to improving the accuracy of calculating the popularity of the article and can more truly reflect the degree of attention received by the article.
[0005] The embodiment of the present invention provides a method for calculating article popularity, including:
[0006] Collect sample articles from multiple Internet platforms, and construct a hot word library by decomposing the sample articles into keywords;
[0007] According to the number of times the keyword appears and the number of times the article to which the keyword belongs is published, a mapping relationship between each keyword and the corresponding score is established in the hot word library;
[0008] Calculate the word frequency scores of all keywords in the target article according to the mapping relationship;
[0009] The real-time popularity of the target article is calculated based on the basic score and the word frequency score of the target article.
[0010] The embodiment of the present invention further provides an article popularity calculation device, comprising:
[0011] A word splitting unit is used to collect sample articles from multiple Internet platforms and construct a hot word library by using keywords obtained by word splitting of the sample articles;
[0012] An establishing unit, configured to establish a mapping relationship between each keyword and a corresponding score in the hot word library according to the number of times the keyword appears and the number of times the article to which the keyword belongs is published;
[0013] A first calculation unit, used to calculate the word frequency scores of all keywords in the target article according to the mapping relationship;
[0014] The second calculation unit is used to calculate the real-time popularity of the target article based on the basic score and the word frequency score of the target article.
[0015] An embodiment of the present invention further provides a terminal, comprising: a memory and a processor, wherein the memory stores an application processing program, and when the application processing program is executed by the processor, the steps of any one of the article heat calculation methods provided in the embodiments of the present invention are implemented.
[0016] An embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a plurality of instructions, wherein the instructions are suitable for a processor to load to execute any article popularity calculation method provided by the embodiment of the present invention.
[0017] The article popularity calculation method provided by the embodiment of the present invention can collect sample articles from multiple Internet platforms, and construct a hot word library by using keywords obtained by word decomposition processing of the sample articles, and establish a mapping relationship between each keyword and the corresponding score in the hot word library according to the number of times the keyword appears and the number of times the article to which the keyword belongs is published, and calculate the word frequency scores of all keywords in the target article according to the mapping relationship, and calculate the real-time popularity of the target article based on the basic score and word frequency score of the target article. The solution provided by the embodiment of the present application obtains the popularity of the article by introducing a hot word library and calculating the keyword scores in the hot word library, which is conducive to improving the accuracy of the article popularity calculation and can more truly reflect the degree of attention paid to the article. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0019] Figure 1 This is a schematic diagram of a first flow chart of the article popularity calculation method provided by an embodiment of the present invention;
[0020] Figure 2 This is a second flow chart of the article popularity calculation method provided by an embodiment of the present invention;
[0021] Figure 3 This is a schematic diagram of the first structure of the article popularity calculation device provided by an embodiment of the present invention;
[0022] Figure 4 It is a schematic diagram of the structure of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0023] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0024] It should be noted that, in this article, the terms "include", "comprises" 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 includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element. In addition, components, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined by their explanation in the specific embodiment or further combined with the context of the specific embodiment.
[0025] It should be understood that, although the various steps in the flowchart in the embodiment of the present application are displayed in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and it can be performed in other orders. Moreover, at least a portion of the steps in the figure may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and their execution order is not necessarily performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0026] It should be noted that, in this article, step codes such as 101, 102, etc. are used for the purpose of expressing the corresponding content more clearly and concisely, and do not constitute a substantial limitation on the sequence. When implementing the step, those skilled in the art may execute 102 first and then 101, etc., but these should all be within the scope of protection of this application.
[0027] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0028] An embodiment of the present invention provides an article popularity calculation method. The executor of the article popularity calculation method can be the article popularity calculation device provided by the embodiment of the present invention, or an intelligent terminal and server integrating the article popularity calculation device, wherein the article popularity calculation device can be implemented in hardware or software.
[0029] In the existing Internet environment, traditional keyword extraction algorithms usually only consider the frequency of words appearing in the text or the degree of distinction from other documents, and do not combine the weight of words on a specific platform and the dynamic decay model of heat. The heat evaluation based on social media indicators usually depends on the number of user interactions (such as likes, comments, etc.), without carefully considering the keyword weight of the article content.
[0030] Based on this, the embodiment of the present application provides a new article popularity calculation method, which can calculate the popularity of an article without the support of business data (such as clicks, likes, shares, etc.), and fully considers the weight of different sites, as well as the content related to the heat decay, and makes the heat calculation more detailed and dynamic, which can more truly reflect the degree of attention of the article, and can compare the heat across sites, reflecting the popularity of the article from a new dimension. Moreover, the word splitting processing is carried out through the pre-trained AI model, which is convenient for system upgrade and expansion.
[0031] For details, please refer to Figure 1 , Figure 1 : is a first flow chart of the article popularity calculation method provided by an embodiment of the present invention. The specific flow of the article popularity calculation method can be as follows:
[0032] 101. Collect sample articles from multiple Internet platforms, and construct a hot word library by decomposing the keywords obtained from the sample articles.
[0033] In one embodiment, a large number of sample hot articles can be collected from the Internet, and then keywords are obtained through word splitting to construct a hot word library. In order to ensure that the collected articles are extensive and representative, multiple network platforms can be selected for article collection, such as news websites, social media, blogs, etc. In addition, the collected sample articles need to be initially screened to eliminate articles that are irrelevant to hot words or of low quality, such as by manual screening or using text mining technology.
[0034] For the collected sample articles, word splitting processing is required to extract the hot words therein. Hot words can be keywords, themes or topics, etc., which can be selected according to actual conditions to complete the construction of the hot word library. For example, using big data analysis and artificial intelligence technology, the extracted hot words are deeply mined and clustered to form an initial hot word library. Among them, word splitting processing is to divide the article into independent words. In this embodiment, the above-mentioned word splitting method can include dictionary-based word splitting and statistical-based word splitting. The word splitting method based on the dictionary relies on a pre-built dictionary library, and realizes the word splitting of the text by matching and pruning the vocabulary. The word splitting method based on statistics calculates the frequency of occurrence of the vocabulary in the corpus, and splits the words according to certain rules. After the word splitting process, the keywords in the target article can be obtained.
[0035] After the word splitting process is completed, the words with higher key values can be screened out according to the part-of-speech information of the split words. For example, only words with practical meanings such as nouns and verbs are retained. In one embodiment, the screened keywords can also be sorted to obtain a final keyword list. The sorting can be performed based on various factors such as the part-of-speech of the vocabulary and the position of occurrence.
[0036] In the above-mentioned hot word library, meaningless words can be further screened and deleted, such as modal particles, conjunctions, non-intrinsic names, advertising words, etc. Specifically, regular expressions or string matching methods can be used to find and delete these words, or natural language processing (NLP) technology can be used to analyze the context or semantics of the vocabulary for search. In another embodiment, a "white list" or "black list" can be established to manually specify which words should be retained or deleted.
[0037] As time goes by, this embodiment can also continue to collect new hot articles from the Internet and update the hot word library, while establishing a hot word popularity calculation system to ensure that the hot words in the word library can accurately reflect current hot topics and events.
[0038] 102. According to the number of times the keyword appears and the number of times the article to which the keyword belongs is published, a mapping relationship between each keyword and the corresponding score is established in the hot word library.
[0039] Specifically, the score of each keyword can be comprehensively calculated based on the number of times each keyword appears in the corresponding article, the number of times the keyword appears in hot articles on other websites, and the number of times the article to which the keyword belongs is published on the entire platform, thereby establishing a mapping relationship between each keyword in the hot word library and the corresponding score.
[0040] 103. Calculate the word frequency scores of all keywords in the target article based on the mapping relationship.
[0041] In one embodiment, for the target article whose popularity needs to be calculated, it can be split first, and then the split words can be mapped to the hot word library using the word set model, and the keywords can be obtained according to the corresponding results. Specifically, according to the hot word library obtained in the above steps, the split words in the target article can be mapped to the hot word library. If the word appears in the word library, the corresponding position is 1, otherwise it is 0. The word frequency is not considered in the word set model. After the mapping of all the split words is completed, the keywords are obtained. Then, according to the above mapping relationship, the scores of each keyword are added, and the word frequency scores of all keywords in the target article are comprehensively calculated.
[0042] In one embodiment, the step of calculating the word frequency scores of all keywords in the target article according to the mapping relationship may include: confirming the weight value of each keyword in the target article, adjusting the score corresponding to each keyword in the target article according to the weight value, and calculating the word frequency score according to the adjusted score. Among them, the weight calculation is performed on the keywords in order to calculate the subsequent article popularity. The weight of the keyword can be evaluated according to the importance of the vocabulary in the article. In this embodiment, we can use multiple factors such as word frequency, word meaning weight, sentence position, etc. to calculate the weight information of the keyword. Then, based on the weight information of each keyword, the score corresponding to the keyword is adjusted, and the word frequency score is calculated according to the adjusted score. Among them, the number of occurrences of each word in the article can be calculated by word frequency statistics. Word frequency statistics can help us understand which words appear more frequently in the text, so as to mine the theme or key information of the text.
[0043] For example, the TF-IDF algorithm can be used to perform word frequency statistics on the obtained keywords, and multiple target keywords with frequencies higher than the preset value can be selected based on the statistical results. Among them, TF-IDF (term frequency-inverse document frequency) is a commonly used weighted technology for information retrieval and text mining. It is used to evaluate the importance of a word to a document set or one of the documents in a corpus (to evaluate the importance of a word or term relative to other words in a document set or a corpus). The importance of a word increases in direct proportion to the number of times it appears in the document, but at the same time it decreases in inverse proportion to the frequency of its appearance in the corpus.
[0044] In one embodiment, the step of calculating the word frequency scores of all keywords in the target article according to the mapping relationship may also include: obtaining the release time of the target article, and determining the heat coefficient of each keyword in the target article according to the release time, adjusting the score corresponding to each keyword in the target article according to the heat coefficient, and calculating the word frequency score according to the adjusted score. Among them, the heat coefficient of the keyword can be evaluated according to the release time of the article. This embodiment ensures that the evaluation result can truly reflect the changes in the popularity of the article in different time periods by assigning a heat coefficient that changes with time to each hot word, taking into account the impact of the time factor on the popularity of the article, so that the calculation result is more accurate.
[0045] 104. Calculate the real-time popularity of the target article based on the basic score and word frequency score of the target article.
[0046] In one embodiment, the basic score of the target article can be obtained by performing semantic analysis on the article through natural language processing technology, further extracting the deep meaning and theme information in the article, and calculating the basic score based on this. The basic score of the target article can be obtained by combining the article quality score, the publishing period score, and the source website score. Finally, the real-time popularity of the target article is calculated based on the basic score and the word frequency score of the target article.
[0047] Furthermore, the embodiment of the present application can also set a decay coefficient for the heat of each period according to the article type and market demand. For example, on the first day, the heat decay coefficient of the article is 1; on the second day, the heat decay coefficient is 0.9; on the third day, the heat decay coefficient is 0.85, and so on. Therefore, the instant heat of the article = initial heat × heat decay coefficient, and the instant heat of the target article at each moment can be calculated. Among them, the initial heat can be the heat when the article is published.
[0048] The above real-time popularity can also be divided into different levels, such as popular, relatively popular, general, unpopular, etc. A corresponding color can be set for each level to intuitively display the changes in article popularity.
[0049] The solution of the present application is not only applicable to various types of articles (such as news, blogs, forum posts, etc.), but also can adapt to the needs of different fields and industries. By building and maintaining a comprehensive and dynamic hot word library, the present invention can cover a wide range of topics and fields to meet the evaluation needs of different users. By using big data analysis and artificial intelligence technology, rapid processing and analysis of massive data is achieved, thereby improving computing efficiency. This enables the present solution to track and evaluate the changes in the popularity of articles in real time, providing timely and accurate support for applications such as content recommendation and advertising.
[0050] As described above, the article popularity calculation method proposed in the embodiment of the present invention can collect sample articles from multiple Internet platforms, and construct a hot word library by using the keywords obtained by word decomposition processing of the sample articles, and establish a mapping relationship between each keyword and the corresponding score in the hot word library according to the number of times the keyword appears and the number of times the article to which the keyword belongs is published, and calculate the word frequency scores of all keywords in the target article according to the mapping relationship, and calculate the real-time popularity of the target article based on the basic score and word frequency score of the target article. The solution provided in the embodiment of the present application obtains the popularity of the article by introducing a hot word library and calculating the keyword scores in the hot word library, which is conducive to improving the accuracy of the article popularity calculation and can more truly reflect the degree of attention paid to the article.
[0051] The method described in the above embodiment will be further described below.
[0052] See also Figure 2 , Figure 2 1 is a second flow chart of the article popularity calculation method provided by an embodiment of the present invention. The method comprises:
[0053] 201. Collect sample articles from multiple Internet platforms, and construct a hot word library by decomposing the keywords obtained from the sample articles.
[0054] In one embodiment, a large number of sample hot articles can be collected from the Internet, and then keywords can be obtained through word splitting to build a hot word library. For example, existing historical data can be used for word splitting analysis to build an initialized hot word library, with the default heat value being 0. Then, as articles are released every day, the keywords in the hot word library and the weights corresponding to each keyword are updated in real time, and the priority weights are updated uniformly each time.
[0055] 202. The first score is determined by the number of times the keyword appears in the corresponding article, the second score is determined by the number of times the keyword appears in popular articles on other websites, and the third score is determined by the number of times the article to which the keyword belongs is published on different websites.
[0056] 203. Calculate the score corresponding to the keyword according to the first score, the second score, and the third score and establish a mapping relationship.
[0057] For example, when calculating the score of a keyword, for the same article, if it appears once in the article, it will get 1 point; by obtaining popular articles in the popular recommendation section of other websites, the hot word score can be improved, and if the keyword appears once in other popular articles, it will get 1.2 points; if the same article is published on multiple websites, then for each additional website where the keyword article is published at the same time, 1 point will be added, up to 10 points. After determining the score of each keyword in the hot word library, the mapping relationship between each keyword and the corresponding score can be established.
[0058] 204. Calculate the frequency scores of all keywords in the target article according to the mapping relationship.
[0059] In one embodiment, the word frequency score of the target article is calculated as follows: the score of hot word 1 + the score of hot word 2 + ... + the score of hot word N. The word frequency score is obtained by adding the scores corresponding to all keywords in the hot word library in the article. N can be set to 20, that is, a maximum of 20 keywords are determined in the target article. This number can also be dynamically set according to the number of words in the target article.
[0060] The present embodiment needs to screen out the target article that needs to calculate the heat value from numerous articles. This process can be done with the help of search engines, professional databases, social networks and other channels. After collecting the target article, the method can also include: detecting interference data in the target article, the interference data includes preset words, HTML tags and special symbols, and deleting the interference data from the target article, thereby completing data cleaning. Among them, in the process of data cleaning, it is necessary to first identify and eliminate the interference data in the target article, and these interference data mainly include preset words, HTML tags and special symbols. The preset words can include modal particles, conjunctions, non-intrinsic names, advertising words, etc. HTML tags are usually used in web design to display elements such as text, pictures, links, etc., but they do not belong to the actual content of the article, so they need to be removed from the article. Special symbols include various punctuation marks, mathematical symbols, programming language symbols, etc., which may also interfere with the normal reading and understanding of the article.
[0061] In order to ensure the quality and readability of the article, the present embodiment can also adopt a certain algorithm to detect and delete these interference data. For example, by matching preset words, HTML tags and special symbols through regular expressions, they can be quickly located in the article. Next, the deletion function provided by a text editor or programming language is utilized to thoroughly remove these interference data from the article. After these interference data are eliminated, the accuracy and effect of subsequent processing can be improved. In other embodiments, the stop words in the target article can also be further cleaned up to eliminate the vocabulary without practical meaning in the target article. Common stop words include "of", "is", "and", "in" etc.
[0062] 205. A fourth score is determined by performing basic scoring on the target article through a preset model, a fifth score is determined by the release time of the target article, and a sixth score is determined by attribute information corresponding to a source website of the target article.
[0063] 206. Calculate a basic score of the target article according to the fourth score, the fifth score, and the sixth score.
[0064] For example, the quality of articles is scored through a preset AI model, with a full score of 50. Then, the article is scored based on the time of publication. If the publication time period is between 1 a.m. and 6 a.m., it is considered a more important article and is given an additional +20 points. Finally, the article can be comprehensively assessed at four levels based on the size and professionalism of the website where the article is published. Each level is scored with +30, 20, 10, and 6, and the basic score of the target article is finally calculated comprehensively.
[0065] The preset AI model can score the basic attributes of articles based on the following dimensions: word count, semantics, grammatical errors, and logic. In the early stage of training, 10,000 articles with high reading volume and 10,000 articles with low reading volume can be used as training samples.
[0066] 207. Calculate the real-time popularity of the target article based on the basic score and word frequency score of the target article.
[0067] Specifically, the real-time popularity of the target article can be calculated by the following formula:
[0068]
[0069] Among them, H is the real-time popularity of the target article, W is the word frequency score of the target article, I is the basic score of the target article, and G is the gravity value, which is the speed at which a content becomes less popular. The greater the gravity, the faster a content is refreshed. G is a fixed value, which is initially recorded as 1.5 and is dynamically adjusted over time. T is the number of days since the target article was published.
[0070] In one embodiment, after obtaining the total heat of the target article in the heat cycle, the method may also include: obtaining the interaction data of the target article, and filtering the interaction data, the interaction data includes the number of views, the number of likes and the number of comments, calculating the calibration coefficient according to the cleaned interaction data, and calibrating the real-time heat of the target article based on the calibration coefficient. It should be noted that the above-mentioned interaction data may also include the number of likes, the number of barrages, the number of collections, etc., which will not be further elaborated in this application. The above method is to reduce the impact of human manipulation and brushing behavior on the evaluation results, so it can combine multiple data sources and algorithms to identify and filter out potential false data. This embodiment uses machine learning and artificial intelligence technology to analyze and predict user behavior patterns, and automatically identify and filter out potential manipulation behaviors. The possibility of human manipulation is greatly reduced, making the heat evaluation results more fair and objective.
[0071] As described above, the article heat calculation method proposed in the embodiment of the present invention can collect sample articles from multiple Internet platforms, and construct a hot word library by the keywords obtained by word splitting of the sample articles, determine the first score by the number of times the keyword appears in the article to which it belongs, determine the second score by the number of times the keyword appears in the popular articles of other websites, determine the third score by the number of times the article to which the keyword belongs is published on different websites, calculate the score corresponding to the keyword according to the first score, the second score and the third score and establish a mapping relationship, calculate the word frequency score of all keywords in the target article according to the mapping relationship, perform basic scoring on the target article through a preset model to determine the fourth score, determine the fifth score by the release time of the target article, determine the sixth score by the attribute information corresponding to the source website of the target article, calculate the basic score of the target article according to the fourth score, the fifth score and the sixth score, and calculate the real-time heat of the target article based on the basic score and the word frequency score of the target article. The solution provided in the embodiment of the present application obtains the heat of the article by introducing the calculation of the hot word library and the keyword score in the hot word library, which is conducive to improving the accuracy of the article heat calculation and can more truly reflect the degree of attention of the article.
[0072] In order to implement the above method, an embodiment of the present invention further provides an article popularity calculation device, which can be integrated into a terminal device such as a mobile phone, a tablet computer and the like.
[0073] For example, Figure 3 FIG. 1 is a schematic diagram of a first structure of an article popularity calculation device provided by an embodiment of the present invention. The article popularity calculation device may include:
[0074] The word splitting unit 301 is used to collect sample articles from multiple Internet platforms and construct a hot word library by using keywords obtained by word splitting of the sample articles;
[0075] An establishing unit 302 is used to establish a mapping relationship between each keyword and a corresponding score in the hot word library according to the number of times the keyword appears and the number of times the article to which the keyword belongs is published;
[0076] A first calculation unit 303 is used to calculate the frequency scores of all keywords in the target article according to the mapping relationship;
[0077] The second calculation unit 304 is used to calculate the real-time popularity of the target article based on the basic score and the word frequency score of the target article.
[0078] The article popularity calculation device proposed in the embodiment of the present invention can collect sample articles from multiple Internet platforms, and construct a hot word library by using the keywords obtained by word decomposition processing of the sample articles, and establish a mapping relationship between each keyword and the corresponding score in the hot word library according to the number of times the keyword appears and the number of times the article to which the keyword belongs is published, and calculate the word frequency scores of all keywords in the target article according to the mapping relationship, and calculate the real-time popularity of the target article based on the basic score and word frequency score of the target article. The solution provided in the embodiment of the present application obtains the popularity of the article by introducing a hot word library and calculating the keyword scores in the hot word library, which is conducive to improving the accuracy of the article popularity calculation and can more truly reflect the degree of attention paid to the article.
[0079] The embodiment of the present invention further provides a terminal, such as Figure 4 As shown, the terminal may include a radio frequency (RF) circuit 601, a memory 602 including one or more computer-readable storage media, an input unit 603, a display unit 604, a sensor 605, an audio circuit 606, a wireless fidelity (WiFi) module 607, a processor 608 including one or more processing cores, and a power supply 609. It can be understood by those skilled in the art that the terminal structure shown in Figure 7 does not constitute a limitation on the terminal, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:
[0080] The RF circuit 601 can be used for receiving and sending signals during information transmission or calls. In particular, after receiving the downlink information of the base station, it is handed over to one or more processors 608 for processing; in addition, the data related to the uplink is sent to the base station. Generally, the RF circuit 601 includes but is not limited to an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM) card, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc. In addition, the RF circuit 601 can also communicate with the network and other devices through wireless communication. Wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
[0081] The memory 602 can be used to store software programs and modules. The processor 608 executes various functional applications and information processing by running the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the terminal (such as audio data, a phone book, etc.), etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 602 may also include a memory controller to provide the processor 608 and the input unit 603 with access to the memory 602.
[0082] The input unit 603 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, in a specific embodiment, the input unit 603 may include a touch-sensitive surface and other input devices. The touch-sensitive surface, also known as a touch display screen or a touch pad, can collect the user's touch operations on or near it (such as the user's operation on or near the touch-sensitive surface using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch-sensitive surface may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 608, and can receive and execute the command sent by the processor 608. In addition, the touch-sensitive surface can be implemented using multiple types such as resistive, capacitive, infrared and surface acoustic waves. In addition to the touch-sensitive surface, the input unit 603 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, and the like.
[0083] The display unit 604 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the terminal, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 604 may include a display panel, and optionally, the display panel may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch-sensitive surface may cover the display panel, and when the touch-sensitive surface detects a touch operation on or near it, it is transmitted to the processor 608 to determine the type of touch event, and then the processor 608 provides corresponding visual output on the display panel according to the type of touch event. Although in the embodiment 7, the touch-sensitive surface and the display panel are used as two independent components to implement input and output functions, in some embodiments, the touch-sensitive surface and the display panel can be integrated to implement input and output functions.
[0084] The terminal may also include at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may turn off the display panel and / or backlight when the terminal is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the terminal, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0085] The audio circuit 606, the speaker, and the microphone can provide an audio interface between the user and the terminal. The audio circuit 606 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 606 and converted into audio data, and then the audio data is processed by the output processor 608 and sent to, for example, another terminal through the RF circuit 601, or the audio data is output to the memory 602 for further processing. The audio circuit 606 may also include an earplug jack to provide communication between an external headset and the terminal.
[0086] WiFi is a short-range wireless transmission technology. The terminal can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 607, which provides users with wireless broadband Internet access. Although the WiFi module 607 is shown in Figure 7, it is understandable that it is not a necessary component of the terminal and can be omitted as needed without changing the essence of the invention.
[0087] The processor 608 is the control center of the terminal. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 602 and calling data stored in the memory 602, it executes various functions of the terminal and processes data, thereby monitoring the mobile phone as a whole. Optionally, the processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 608.
[0088] The terminal also includes a power supply 609 (such as a battery) for supplying power to each component. Preferably, the power supply can be logically connected to the processor 608 through a power management system, so that the power management system can manage charging, discharging, and power consumption management. The power supply 609 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0089] Although not shown, the terminal may also include a camera, a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the processor 608 in the terminal will load the executable files corresponding to the processes of one or more applications into the memory 602 according to the following instructions, and the processor 608 will run the applications stored in the memory 602 to implement various functions:
[0090] Collect sample articles from multiple Internet platforms, and construct a hot word library by decomposing the sample articles into keywords;
[0091] According to the number of times the keyword appears and the number of times the article to which the keyword belongs is published, a mapping relationship between each keyword and the corresponding score is established in the hot word library;
[0092] Calculate the word frequency scores of all keywords in the target article according to the mapping relationship;
[0093] The real-time popularity of the target article is calculated based on the basic score and the word frequency score of the target article.
[0094] In the above embodiments, the description of each embodiment has its own focus. For the part that is not described in detail in a certain embodiment, please refer to the detailed description of the article heat calculation method above, which will not be repeated here.
[0095] As can be seen from the above, the terminal of the embodiment of the present invention can collect sample articles from multiple Internet platforms, and construct a hot word library by using the keywords obtained by word decomposition processing of the sample articles, and establish a mapping relationship between each keyword and the corresponding score in the hot word library according to the number of times the keyword appears and the number of times the article to which the keyword belongs is published, and calculate the word frequency scores of all keywords in the target article according to the mapping relationship, and calculate the real-time popularity of the target article based on the basic score and word frequency score of the target article. The solution provided by the embodiment of the present application obtains the popularity of the article by introducing a hot word library and calculating the keyword scores in the hot word library, which is conducive to improving the accuracy of the article popularity calculation and can more truly reflect the degree of attention paid to the article.
[0096] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0097] To this end, an embodiment of the present invention provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any of the article popularity calculation methods provided in the embodiments of the present invention. For example, the instructions can execute the following steps:
[0098] Collect sample articles from multiple Internet platforms, and construct a hot word library by decomposing the sample articles into keywords;
[0099] According to the number of times the keyword appears and the number of times the article to which the keyword belongs is published, a mapping relationship between each keyword and the corresponding score is established in the hot word library;
[0100] Calculate the word frequency scores of all keywords in the target article according to the mapping relationship;
[0101] The real-time popularity of the target article is calculated based on the basic score and the word frequency score of the target article.
[0102] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0103] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0104] Since the instructions stored in the storage medium can execute the steps in any article popularity calculation method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any article popularity calculation method provided in the embodiments of the present invention can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0105] The above is a detailed introduction to an article heat calculation method, device, terminal and storage medium provided in an embodiment of the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for calculating article popularity, characterized in that: include: Collect sample articles from multiple Internet platforms, and construct a hot word library by decomposing the sample articles into keywords; According to the number of times the keyword appears and the number of times the article to which the keyword belongs is published, a mapping relationship between each keyword and the corresponding score is established in the hot word library; Calculate the word frequency scores of all keywords in the target article according to the mapping relationship; The real-time popularity of the target article is calculated based on the basic score and the word frequency score of the target article.
2. The article popularity calculation method according to claim 1, characterized in that: According to the number of times the keyword appears and the number of times the article to which the keyword belongs is published, a mapping relationship between each keyword and the corresponding score is established in the hot word library, including: Determine a first score by the number of times the keyword appears in the corresponding article; Determine a second score by the number of times the keyword appears in popular articles on other websites; Determine a third score by the number of times the article to which the keyword belongs is published on different websites; The score corresponding to the keyword is calculated according to the first score, the second score and the third score, and a mapping relationship is established.
3. The article popularity calculation method according to claim 1, characterized in that: Calculating the word frequency scores of all keywords in the target article according to the mapping relationship includes: Confirm the weight value of each keyword in the target article; The score corresponding to each keyword in the target article is adjusted according to the weight value, and the word frequency score is calculated according to the adjusted score.
4. The article popularity calculation method according to claim 1, characterized in that: Calculating the word frequency scores of all keywords in the target article according to the mapping relationship includes: Obtaining the publishing time of the target article, and determining the popularity coefficient of each keyword in the target article according to the publishing time; The score corresponding to each keyword in the target article is adjusted according to the heat coefficient, and the word frequency score is calculated according to the adjusted score.
5. The article popularity calculation method according to claim 1, characterized in that: The basic score of the target article is obtained by: Performing basic scoring on the target article using a preset model to determine a fourth score; determining a fifth score according to the publication time of the target article; Determining a sixth score by using the attribute information corresponding to the target article source website; A basic score of the target article is calculated according to the fourth score, the fifth score and the sixth score.
6. The article popularity calculation method according to any one of claims 1 to 5, characterized in that: Before calculating the word frequency scores of all keywords in the target article according to the mapping relationship, the method further includes: Detecting interference data in the target article, wherein the interference data includes preset words, HTML tags, and special symbols; The interfering data is deleted from the target article.
7. The article popularity calculation method according to any one of claims 1 to 5, characterized in that: After calculating the real-time popularity of the target article, the method further includes: Obtaining interaction data of the target article and filtering the interaction data, wherein the interaction data includes page views, likes, and comments; Calculate calibration coefficients based on the cleaned interaction data; The real-time popularity of the target article is calibrated based on the calibration coefficient.
8. An article popularity calculation device, characterized in that: include: A word splitting unit is used to collect sample articles from multiple Internet platforms and construct a hot word library by using keywords obtained by word splitting of the sample articles; An establishing unit, configured to establish a mapping relationship between each keyword and a corresponding score in the hot word library according to the number of times the keyword appears and the number of times the article to which the keyword belongs is published; A first calculation unit, used to calculate the word frequency scores of all keywords in the target article according to the mapping relationship; The second calculation unit is used to calculate the real-time popularity of the target article based on the basic score and the word frequency score of the target article.
9. A terminal, characterized in that: The terminal comprises: a memory and a processor, wherein the memory stores an application processing program, and when the application processing program is executed by the processor, the steps of the article heat calculation method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the article popularity calculation method described in any one of claims 1 to 7.
