Information publishing method, device, equipment and storage medium
By automatically judging the relevance of information and topics, the problem of low efficiency of information release and review in the existing technology is solved, fast and accurate information screening is achieved, and the user experience is improved.
Patent Information
- Application Number
- CN202010598743.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-28
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-06-28
AI Technical Summary
In the existing technology, information needs to be manually reviewed after it is released, which results in a heavy review workload, low efficiency, and lag. Invalid information cannot be filtered in a timely manner, which affects the user experience.
By obtaining professional words and non-professional words in the text to be published, the relevance of the information to the topic is determined based on their weight, and the decision is made automatically whether to publish the information, thereby reducing the manual review process and improving the real-time and accuracy of the review.
It realizes automatic screening of relevant information before information is released, reduces the release of invalid information, improves the efficiency and accuracy of information review, and reduces the lag of manual review.
Smart Images

Figure CN113761110B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to computer technology, and in particular to an information publishing method, apparatus, device and storage medium. Background Art
[0002] With the development of computer technology, more and more people are publishing relevant information through the Internet, for example, publishing social dynamic information in different types of social circles such as cars and pets, publishing comments or questions about products on e-commerce platforms, and publishing bullet screens or comments during live broadcasts or video playback. If the information posted by the user is not relevant to the corresponding topic, then the information is invalid information relative to the topic, and too much invalid information will occupy too many resources and will have a negative impact on the process of other users obtaining valid information. In order to provide a better user experience, it is necessary to filter out invalid information.
[0003] At present, the general process of reviewing the validity of information posted by users on the Internet is as follows: the user posts information, the background obtains the information posted by the user, and submits it to manual review for validity. If the information is invalid, the posting of the information is withdrawn.
[0004] In the process of realizing the present invention, the inventors found that there are at least the following problems in the prior art: all published information needs to be manually reviewed, which not only has a large review workload and low review efficiency, but also is prone to missing invalid information. In addition, due to the slow speed of manual review, the published information can only be reviewed after being published, which has a lag. Summary of the invention
[0005] The embodiments of the present invention provide an information publishing method, device, equipment and storage medium to realize faster review of the effectiveness of text information to be published and improve the real-time and accuracy of the review.
[0006] In a first aspect, an embodiment of the present invention provides an information publishing method, including:
[0007] Acquire the text to be published, and determine the professional words and non-professional words corresponding to the publishing topic in the text to be published;
[0008] Determine the relevance between the to-be-published text and the publishing topic according to the first weight of the professional word and the second weight of the non-professional word, wherein the first weight is greater than the second weight;
[0009] Determine whether to publish the to-be-published text according to the relevance.
[0010] In a second aspect, an embodiment of the present invention further provides an information publishing device, the device comprising:
[0011] A word determination module, used to obtain the text to be published, and determine the professional words and non-professional words corresponding to the publishing topic in the text to be published;
[0012] A topic relevance determination module, used to determine the relevance between the to-be-published text and the publication topic according to a first weight of the professional word and a second weight of the non-professional word, wherein the first weight is greater than the second weight;
[0013] The text publishing module is used to determine whether to publish the text to be published according to the relevance.
[0014] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0015] one or more processors;
[0016] a storage device for storing one or more programs,
[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the information publishing method provided by any embodiment of the present invention.
[0018] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the information publishing method provided by any embodiment of the present invention.
[0019] The embodiment of the present invention obtains the text to be published, and determines the professional words and non-professional words in the text to be published that correspond to the publishing topic; determines the relevance between the text to be published and the publishing topic based on the first weight of the professional words and the second weight of the non-professional words, wherein the first weight is greater than the second weight; and determines whether to publish the text to be published based on the relevance. Before the information is published, the relevance between the text to be published and the publishing topic is automatically determined by using whether the words in the text to be published are professional words related to the publishing topic, and then determines whether the text to be published is valid publishing information that can be published, thereby reducing the manual review process, reducing the lag in the review of the validity of the text to be published, and improving the real-time and accuracy of the review of the validity of the text to be published. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 is a flow chart of an information publishing method in Embodiment 1 of the present invention;
[0021] Figure 2 is a flow chart of an information publishing method in Embodiment 2 of the present invention;
[0022] Figure 3 It is a structural diagram of an information publishing device in Embodiment 3 of the present invention;
[0023] Figure 4 It is a structural schematic diagram of an electronic device in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0024] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0025] Embodiment 1
[0026] The information publishing method provided in this embodiment can be applied to information publishing scenarios with publishing topics through the network, such as dynamic publishing in different types of social circles, publishing of comments or questions related to products in e-commerce platforms, publishing of bullet screens or comments related to the content being watched during live broadcasts or video playback, etc. The method can be executed by an information publishing device, which can be implemented in software and / or hardware, and the device can be integrated into electronic devices, such as mobile phones, tablet computers, laptops, desktop computers or servers, etc. See Figure 1 , the method of this embodiment specifically includes:
[0027] S110: Acquire the text to be published, and determine the professional words and non-professional words in the text to be published that correspond to the publishing topic.
[0028] The text to be published refers to the information content that needs to be published. The publishing topic refers to the relevant content of the information publishing object, such as the social circle type of cars or pets, or product-related information such as product categories and product attributes, or content-related information such as watching live broadcasts or videos, etc. Professional words and non-professional words are opposite concepts. Professional words refer to words with specific meanings in the technical field corresponding to the publishing topic, and non-professional words refer to words other than professional words.
[0029] If the text to be published contains professional words related to the publishing topic, then the text to be published is likely to be valid information related to the publishing topic. Based on this, the words contained in the text to be published can be analyzed to see whether they are professional words to automatically review their validity.
[0030] During the specific implementation, the text to be published is first obtained through the user's input content. Then, the text to be published is segmented to obtain each initial text segmentation. Then, each initial text segmentation is filtered for sensitive words and stop words to obtain each text segmentation. The sensitive word library and stop word library used for sensitive word filtering and stop word filtering can be pre-constructed in the embodiment of the present invention, or a cloud word library. After that, each text segmentation is matched with each professional word corresponding to the publishing topic, and the text segmentation whose matching similarity meets the pre-set similarity threshold is determined as a professional word, and the remaining text segmentation is determined as a non-professional word. The professional words corresponding to the publishing topic can be a professional word library pre-constructed according to the publishing topic in the embodiment of the present invention, or a cloud word library. It can be understood that the text segmentation is a professional word or a non-professional word, that is, a text segmentation in the text to be published is either a professional word or a non-professional word.
[0031] S120: Determine the relevance between the text to be published and the publishing topic based on the first weight of the professional word and the second weight of the non-professional word.
[0032] The first weight and the second weight refer to the weight corresponding to the professional word and the weight corresponding to the non-professional word, respectively, which are used to characterize the relevance between the corresponding word and the publication topic. The higher the weight of a word, the more relevant the word is to the publication topic. The first weight of each professional word can be the same or different; the second weight of each non-professional word can be the same or different. The first weight and the second weight can be pre-set empirical values or calculated according to certain rules, as long as the first weight is greater than the second weight.
[0033] According to the first weight of each professional word and the second weight of each non-professional word in the text to be published, the total weight of the text to be published is comprehensively determined, and the total weight is the relevance of the text to be published and the publishing topic.
[0034] Exemplarily, before S120, the process further includes: determining a second set number of hot words according to the word frequency of each word in each historical published text; and determining a first weight according to the word frequency and a default weight of each hot word.
[0035] Among them, historical published text refers to the information content that has been published before the current operation. Word frequency refers to the ratio of the number of historical published texts containing a word to the total number of historical published texts. For example, if 3 out of 10,000 historical published texts contain a certain word, then the word frequency of the word is 3 / 10,000. The second set number refers to the pre-set number of words, which is set according to the accuracy requirements of the business. For example, if the accuracy requirements are high, then the second set number is set to a relatively large value. The default weight refers to a pre-set bottom-line weight, for example, 1.
[0036] For the calculation of the relevance between the text to be published and the publishing topic, the proportion of each professional word contained in the text to be published is the same, so the first weight of each professional word is designed to be the same. Professional words are very important components in the calculation of relevance, so the first weight is determined according to the word frequency of the second set number of hot words with the highest word frequency in all historical published texts. In the specific implementation, the word frequency of each word in each historical published text in all historical published texts is first statistically determined. Then, all words in all historical published texts are sorted according to the relationship from large to small in word frequency. Then, the second set number of words with the highest ranking are selected as hot words. After that, according to the word frequency of each hot word, the comprehensive word frequency s-freq of the hot word is determined by taking the mean, taking the maximum value or taking the median. Finally, the sum of the comprehensive word frequency and the default weight (1+s-freq) is calculated as the first weight. The advantage of this setting is that the first weight is determined according to the word frequency of the hot words in each historical published text corresponding to the publishing topic, avoiding the subjective influence of the experience setting value, and establishing the correlation between the first weight and the relevant data of the publishing topic, improving the dynamic and accuracy of the determination of the first weight.
[0037] Exemplarily, before S120, the process further includes: determining a second weight of the corresponding non-professional word according to the word frequency and the default weight of each non-professional word.
[0038] The role of each non-professional word in the relevance calculation may be different, so the second weight of each non-professional word may also be different. The higher the frequency of a non-professional word in each historical published text corresponding to the published topic, the higher the probability that the non-professional word belongs to the hot word in the published topic. If the text to be published contains the hot word in the published topic, the probability that the text to be published belongs to the valid information related to the published topic is greater. Based on this, the word frequency that can characterize the frequency of occurrence of a word is used to determine the second weight of each non-professional word. In specific implementation, for each non-professional word, the word frequency freq of the non-professional word is counted according to each historical published text. Then, the sum of the word frequency freq and the default weight (1+freq) is calculated as the second weight of the non-professional word. The advantage of such a setting is that the word frequency of the non-professional word is used to determine the second weight, which avoids the subjective influence of the experience setting value, improves the dynamic and accuracy of the determination of the second weight, and further considers the influence of the word frequency on the relevance calculation on the basis of considering the influence of the professional word on the relevance calculation, and further improves the accuracy of the relevance determination.
[0039] S130: Determine whether to publish the text to be published based on the relevance.
[0040] The higher the relevance between the text to be published and the publishing topic, the higher the probability that the text to be published is valid information. When the probability of being valid information is high enough, the text to be published is considered valid information and can be published directly. Otherwise, the text to be published is considered suspected information, a suspected mark is set for it, and its validity is manually reviewed.
[0041] Exemplarily, S130 includes: if the relevance is greater than the relevance threshold, the text to be published is published. The relevance threshold is a pre-set relevance value, which is the lower limit relevance for judging whether the text to be published is published. The relevance threshold can be set according to business requirements (such as the amount of information manually reviewed and the accuracy of the algorithm, etc.). If the relevance of the text to be published is greater than the relevance threshold, the text to be published is considered to be valid information and is published directly. The advantage of such a setting is that it can more quickly determine whether the text to be published is published, further improving the review efficiency of the text to be published.
[0042] The technical solution of this embodiment is to obtain the text to be published, and determine the professional words and non-professional words in the text to be published that correspond to the publishing topic; determine the relevance between the text to be published and the publishing topic based on the first weight of the professional words and the second weight of the non-professional words, wherein the first weight is greater than the second weight; and determine whether to publish the text to be published based on the relevance. Before the information is published, the relevance between the text to be published and the publishing topic is automatically determined by using whether the words in the text to be published are professional words related to the publishing topic, and then determine whether the text to be published is valid publishing information that can be published, thereby reducing the manual review process, reducing the lag in the review of the validity of the text to be published, and improving the real-time and accuracy of the review of the validity of the text to be published.
[0043] Embodiment 2
[0044] Based on the above embodiment 1, this embodiment further optimizes "determining the relevance between the text to be published and the publishing topic based on the first weight of professional words and the second weight of non-professional words". On this basis, the relevant steps of pre-determining the number of texts to be published can be further added. The explanations of the terms that are the same or corresponding to the above embodiments are not repeated here. Figure 2 , the information publishing method provided in this embodiment includes:
[0045] S210: Obtain the text to be published.
[0046] S220: Obtain the total number of texts, and determine whether the total number of texts is less than a text number threshold.
[0047] The total number of texts refers to the total number of published texts received, including all historical published texts and texts to be published. The text number threshold refers to the number of texts set in advance, which is the lower limit of the number of values for determining whether to calculate the relevance, and should be a relatively large value. The text number threshold can be determined by the number of texts published within a certain period of time.
[0048] Each first weight and each second weight, whether it is set by experience or calculated, its accuracy is related to the number of published texts in the published theme, and the more the number, the higher its accuracy. Therefore, when the total number of texts in the published theme is less, the deviation of the first weight and the second weight may be larger, and the relevance can no longer be calculated by the weights of professional words and non-professional words. Based on this, in the present embodiment, before performing the operation of calculating the relevance using weights, the total number of texts is first obtained. Then, the total number of texts and the text number threshold are compared. If the total number of texts is equal to or greater than the text number threshold, the relevance can be calculated using weights, and S240 is executed. If the total number of texts is less than the text number threshold, there is no need to calculate the relevance using weights, and S230 is executed.
[0049] S230: Determine the default weight as the relevance between the text to be published and the publishing topic.
[0050] When the total number of texts is small, the relevance cannot be calculated more accurately. In this case, all the texts to be published are submitted to manual review. Since the default weight is the bottom weight of the entire method, it is the smallest weight and the weight less than the relevance threshold, so the default weight is determined as the relevance between the text to be published and the publishing topic. Then execute S290.
[0051] S240: Determine the professional words and non-professional words corresponding to the publishing topic in the text to be published.
[0052] S250. Determine a second set number of hot words based on the word frequency of each word in each historical published text, and determine a first weight of the professional word based on the word frequency and default weight of each hot word.
[0053] S260: Determine a second weight of the corresponding non-professional word based on the word frequency and the default weight of each non-professional word.
[0054] S270: Determine a first set number of target words according to the number of segmented words of each text segment of the text to be published, the first set number, and each text segment.
[0055] Among them, the first set number refers to the number of pre-set words, which is used to determine the words involved in the relevance calculation from all text segmentations. The first set number can be set according to the accuracy requirements of the business. For example, if the accuracy requirements are high, the first set number is set to a relatively large value. Exemplarily, based on each historical published text, the average number of segmented words in the text is determined as the first set number. In order to improve the accuracy of the first set number, thereby further improving the accuracy of the relevance calculation, all historical published texts can be segmented, de-sensitive words and stop words can be processed to determine the number of segmented words for each historical published text. Then, the mean of the number of segmented words (i.e., the average number of segmented words) is calculated to characterize the average segmentation of a published text. The average number of segmented words is determined as the first set number.
[0056] The target word refers to the word involved in the subsequent relevance calculation, which can be all professional words, all non-professional words, professional words and non-professional words, or professional words, non-professional words and substitute words. The substitute word refers to the placeholder word outside the text segmentation, which has no actual meaning and is only used to determine the missing weight in the subsequent relevance calculation.
[0057] When calculating the relevance, if there are too many words involved in the calculation, the amount of calculation will increase and the calculation speed will be reduced. In order to balance accuracy and speed, a first set number is set in this embodiment to limit the number of target words involved in the relevance calculation. In specific implementation, first compare the number of each text segmentation (i.e., the number of segmentations) and the first set number. If the number of segmentations is large, it is necessary to filter out the first set number of text segmentations from each text segmentation as the target words. If the number of segmentations is small, it is necessary to add some substitute words on the basis of each text segmentation to obtain each target word.
[0058] Exemplarily, S270 includes: if the number of word segments is greater than a first set number, arranging each text word segment in descending order of word frequency based on the word frequency of each text word segment, wherein the word frequency is the ratio of the number of historically published texts containing the word to the total number of historically published texts; based on the sorting result, selecting a first set number of target words with a high ranking from each text word segment.
[0059] If the number of word segments is greater than the first set number, then the target word needs to be screened out from each text word segment. Taking into account that some words in each text word segment have low importance and their contribution to the relevance calculation is very small, they can be screened according to the word frequency that can reflect the importance of the word. In the specific implementation, each historical published text is used to statistically determine the word frequency of each text word segment. Then, each text word segment is arranged in descending order from large to small in terms of word frequency. Finally, the first set number of text word segments with the highest ranking are selected from all the text word segments as the target words. The advantage of this setting is that relatively important words in the text to be published can be screened out according to the word frequency to participate in the subsequent relevance calculation, reducing the calculation process of relatively unimportant words and their impact on the relevance, thereby further improving the accuracy of the relevance calculation on the basis of further improving the speed of the relevance calculation, and further improving the speed and accuracy of the review of the text to be published.
[0060] If the number of segmented words of each text segment of the text to be published is equal to the first set number, each text segment is determined as the first set number of target words. If the number of segmented words of the text to be published is equal to the first set number, all text segmented words are directly used as target words.
[0061] Exemplarily, S270 includes: if the number of segmented words is less than the first set number, determining a substitute word for the difference according to the difference between the first set number and the number of segmented words, and determining each text segmented word and the substitute word as the first set number of target words.
[0062] If the number of segmented words is less than the first set number, it means that the number of each text segmented word is insufficient. Since the number of weights involved in the relevance calculation will affect the calculation result, in order to improve the stability of the relevance calculation, in this embodiment, substitute words with default weights are set to take place so that the number of target words remains unchanged. In specific implementation, the difference between the first set number and the number of segmented words is calculated, and then each text segmented word and the substitute word of the difference are used as target words. For example, if the first set number is 5 and the number of segmented words is 3, then 2 substitute words are added, and 3 text segmented words and 2 substitute words are used as target words.
[0063] S280: Determine the relevance between the text to be published and the publishing topic based on the target weight of each target word.
[0064] Among them, the target weight is the weight of the target word, and each target word corresponds to a target weight. When the target word is a professional word, the target weight is the first weight; when the target word is a non-professional word, the target weight is the second weight; when the target word is a substitute word, the target weight is the default weight.
[0065] The target weights of each target word are combined to calculate the relevance between the text to be published and the publishing topic. For example, the sum of the squares of the target weights is first calculated, and then the arithmetic square root of the sum of the squares is calculated. The result is the relevance between the text to be published and the publishing topic.
[0066] S290: If the relevance is greater than the relevance threshold, the text to be published is published.
[0067] It should be noted that the execution order of S250 and S260 is not limited, as long as they are executed between S220 and S280, and between S250 and S260, S260 may be executed first and then S250, or S250 and S260 may be executed in parallel.
[0068] The technical solution of this embodiment obtains the total number of texts and determines whether the total number of texts is less than the text number threshold; if so, the default weight is determined as the relevance between the text to be published and the publishing topic. When the total number of texts is small, the default weight is directly determined as the relevance of the text to be published, and then the text to be published is determined to be suspected information and submitted to manual review, avoiding the situation where the total number of texts is small and the deviation of the correlation calculated using professional words is large, and the corresponding operation is still performed. It can not only save the operation process and further improve the speed of the validity review of the text to be published, but also reasonably control the review process of the text to be published, and further improve the accuracy of the validity review of the text to be published. By determining the first set number of target words based on the number of segmentations of each text segmentation of the text to be published, the first set number and each text segmentation; the relevance between the text to be published and the publishing topic is determined based on the target weight of each target word. It is realized that the number of target words participating in the relevance calculation is limited by using the first set number, while improving the accuracy of the relevance determination, the speed of the relevance determination is further improved, so as to further balance the speed and accuracy of the review of the text to be published.
[0069] Embodiment 3
[0070] This embodiment provides an information publishing device. Figure 3 , the device specifically comprises:
[0071] The word determination module 310 is used to obtain the text to be published and determine the professional words and non-professional words corresponding to the publishing topic in the text to be published;
[0072] The topic relevance determination module 320 is used to determine the relevance between the to-be-published text and the publication topic according to the first weight of the professional word and the second weight of the non-professional word, wherein the first weight is greater than the second weight;
[0073] The text publishing module 330 is used to determine whether to publish the text to be published according to the relevance.
[0074] Optionally, the topic relevance determination module 320 includes:
[0075] A target word determination submodule, used to determine a first set number of target words according to the number of segmented words of each text segmented word of the text to be published, the first set number and each text segmented word, wherein the text segmented words are professional words or non-professional words;
[0076] The relevance determination submodule is used to determine the relevance between the text to be published and the publishing topic based on the target weight of each target word. When the target word is a professional word, the target weight is the first weight; when the target word is a non-professional word, the target weight is the second weight; when the target word is a substitute word, the target weight is the default weight.
[0077] Optionally, the target word determination submodule is specifically used for:
[0078] If the number of word segments is greater than the first set number, the word segments are arranged in descending order of word frequency according to the word frequency of each text word segment, wherein the word frequency is the ratio of the number of historically published texts containing the word to the total number of historically published texts;
[0079] According to the ranking result, a first set number of target words with the highest ranking are selected from each text segmentation word.
[0080] Optionally, the target word determination submodule is specifically used for:
[0081] If the number of segmented words of each text segment of the text to be published is equal to the first set number, each text segmented word is determined as the first set number of target words.
[0082] Optionally, the target word determination submodule is specifically used for:
[0083] If the number of segmented words is less than the first set number, a substitute word for the difference is determined based on the difference between the first set number and the number of segmented words, and each text segmented word and the substitute word is determined as a target word.
[0084] Optionally, the topic relevance determination module 320 further includes a set quantity determination submodule, which is used to:
[0085] Before determining the first set number of target words based on the number of segmented words of each text segment of the text to be published, the first set number and each text segment, the average number of segmented words of the text is determined based on each historical published text as the first set number.
[0086] Optionally, based on the above device, the device further includes a first weight determination module, which is used to:
[0087] Before determining the relevance between the to-be-published text and the publishing topic based on the first weight of each professional word and the second weight of each non-professional word, determining a second set number of hot words based on the word frequency of each word in each historical published text;
[0088] The first weight is determined based on the frequency of each hot word and the default weight.
[0089] Optionally, based on the above device, the device further includes a second weight determination module, which is used to:
[0090] Before determining the relevance between the text to be published and the publishing topic based on the first weight of each professional word and the second weight of each non-professional word, the second weight of the corresponding non-professional word is determined based on the word frequency and default weight of each non-professional word.
[0091] Optionally, based on the above device, the device further includes a text quantity comparison module, which is used to:
[0092] After obtaining the text to be published, obtaining the total number of texts, and determining whether the total number of texts is less than a text number threshold;
[0093] If so, the default weight is determined as the relevance between the text to be published and the publishing topic;
[0094] If not, the step of determining the professional words and non-professional words corresponding to the publishing topic in the text to be published is performed.
[0095] Optionally, the text publishing module 330 is specifically used for:
[0096] If the relevance is greater than the relevance threshold, the text to be published is published.
[0097] Through an information publishing device in embodiment three of the present invention, it is possible to automatically determine the relevance between the text to be published and the publishing topic before the information is published by using whether the words used in the text to be published are professional words related to the publishing topic, and then determine whether the text to be published is valid publishing information that can be published, thereby reducing the manual review process, reducing the lag in the review of the validity of the text to be published, and improving the real-time and accuracy of the review of the validity of the text to be published.
[0098] The information publishing device provided in the embodiment of the present invention can execute the information publishing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0099] It is worth noting that in the embodiment of the above-mentioned information publishing device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0100] Embodiment 4
[0101] See also Figure 4 This embodiment provides an electronic device 400, which includes: one or more processors 420; a storage device 410, which is used to store one or more programs. When the one or more programs are executed by the one or more processors 420, the one or more processors 420 implement the information publishing method provided by the embodiment of the present invention, including:
[0102] Obtaining the text to be published, and determining the professional words and non-professional words in the text to be published that correspond to the publishing topic;
[0103] Determine the relevance between the to-be-published text and the publishing topic according to the first weight of the professional word and the second weight of the non-professional word, wherein the first weight is greater than the second weight;
[0104] Determine whether to publish the text to be published based on relevance.
[0105] Of course, those skilled in the art can understand that the processor 420 can also implement the technical solution of the information publishing method provided by any embodiment of the present invention.
[0106] Figure 4 The electronic device 400 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0107] like Figure 4 As shown, the electronic device 400 is in the form of a general-purpose computing device. The components of the electronic device 400 may include, but are not limited to: one or more processors 420, a storage device 410, and a bus 450 connecting different system components (including the storage device 410 and the processor 420).
[0108] Bus 450 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0109] The electronic device 400 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 400, including volatile and non-volatile media, removable and non-removable media.
[0110] The storage device 410 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 411 and / or cache memory 412. The electronic device 400 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 413 may be used to read and write non-removable, non-volatile magnetic media ( Figure 4 not shown, usually called a "hard drive"). Although Figure 4 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 450 via one or more data medium interfaces. The storage device 410 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the embodiments of the present invention.
[0111] A program / utility 414 having a set (at least one) of program modules 415 may be stored, for example, in a storage device 410, such program modules 415 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 415 generally perform the functions and / or methods of any embodiment described herein.
[0112] The electronic device 400 may also communicate with one or more external devices 460 (e.g., keyboard, pointing device, display 470, etc.), one or more devices that enable a user to interact with the electronic device 400, and / or any device that enables the electronic device 400 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output interface (I / O interface) 430. Furthermore, the electronic device 400 may also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN) and / or public network, such as the Internet) through a network adapter 440. Figure 4As shown, the network adapter 440 communicates with other modules of the electronic device 400 via the bus 450. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 400, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0113] The processor 420 executes various functional applications and data processing by running the programs stored in the storage device 410, such as implementing the information publishing method provided in the embodiment of the present invention.
[0114] Embodiment 5
[0115] This embodiment provides a storage medium containing computer executable instructions. When the computer executable instructions are executed by a computer processor, they are used to execute an information publishing method. The method includes:
[0116] Obtaining the text to be published, and determining the professional words and non-professional words in the text to be published that correspond to the publishing topic;
[0117] Determine the relevance between the to-be-published text and the publishing topic according to the first weight of the professional word and the second weight of the non-professional word, wherein the first weight is greater than the second weight;
[0118] Determine whether to publish the text to be published based on relevance.
[0119] Of course, the computer executable instructions of a storage medium including computer executable instructions provided in an embodiment of the present invention are not limited to the above method operations, and can also execute related operations in the information publishing method provided in any embodiment of the present invention.
[0120] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0121] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0122] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0123] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0124] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for publishing information, It is characterized in that include: Acquire the text to be published, and determine the professional words and non-professional words corresponding to the publishing topic in the text to be published; Determine the relevance between the to-be-published text and the publishing topic according to the first weight of the professional word and the second weight of the non-professional word, wherein the first weight is greater than the second weight; Determining whether to publish the to-be-published text according to the relevance; Wherein, determining the relevance between the to-be-published text and the publishing topic according to the first weight of the professional word and the second weight of the non-professional word includes: Determining the first set number of target words according to the number of each text segmentation of the text to be published, the first set number, and each of the text segmentations, wherein the text segmentations are the professional words or the non-professional words; Determine the relevance between the to-be-published text and the publishing topic according to the target weight of each target word, wherein when the target word is the professional word, the target weight is the first weight; when the target word is the non-professional word, the target weight is the second weight; when the target word is a substitute word, the target weight is the default weight; Wherein, determining the first set number of target words according to the number of segmented words of each text segmented word of the text to be published, the first set number and each of the text segmented words includes: If the number of segmented words is less than the first set number, a substitute word for the difference is determined based on the difference between the first set number and the number of segmented words, and each of the text segmented words and the substitute word is determined as the target word.
2. The method according to claim 1, It is characterized in that Determining the first set number of target words according to the number of segmented words of each text segment of the text to be published, the first set number, and each of the text segmented words includes: If the number of word segments is greater than the first set number, the word segments are arranged in descending order of word frequency according to the word frequency of each text word segment, wherein the word frequency is the ratio of the number of historically published texts containing the word to the total number of historically published texts; According to the ranking result, the first set number of target words ranked high are selected from each of the text segmentations.
3. The method according to claim 1, It is characterized in that Before determining the first set number of target words according to the number of segmented words of each text segmented word of the to-be-published text, the first set number and each of the text segmented words, the method further includes: Based on each historically published text, the average number of segmented words in the text is determined as the first set number.
4. The method according to claim 1, It is characterized in that Before determining the relevance between the to-be-published text and the publishing topic according to the first weight of each of the professional words and the second weight of each of the non-professional words, the method further includes: Determine a second set number of hot words according to the word frequency of each word in each historical published text; The first weight is determined according to the word frequency and default weight of each of the hot words.
5. The method according to claim 1, It is characterized in that Before determining the relevance between the to-be-published text and the publishing topic according to the first weight of each of the professional words and the second weight of each of the non-professional words, the method further includes: According to the word frequency and the default weight of each non-professional word, the second weight of the corresponding non-professional word is determined.
6. The method according to claim 1, It is characterized in that After obtaining the text to be published, it also includes: Obtaining the total number of texts, and determining whether the total number of texts is less than a text number threshold; If yes, the default weight is determined as the relevance between the text to be published and the publishing topic; If not, the step of determining the professional words and non-professional words corresponding to the publishing topic in the text to be published is performed.
7. The method according to claim 1, It is characterized in that Determining whether to publish the to-be-published text according to the relevance includes: If the relevance is greater than the relevance threshold, the text to be published is published.
8. An information publishing device, It is characterized in that include: A word determination module, used to obtain the text to be published, and determine the professional words and non-professional words corresponding to the publishing topic in the text to be published; A topic relevance determination module, used to determine the relevance between the to-be-published text and the publication topic according to a first weight of the professional word and a second weight of the non-professional word, wherein the first weight is greater than the second weight; A text publishing module, used for determining whether to publish the to-be-published text according to the relevance; Wherein, the topic relevance determination module includes: A target word determination submodule, configured to determine the first set number of target words according to the number of each text segmentation of the text to be published, the first set number and each of the text segmentations, wherein the text segmentations are the professional words or the non-professional words; A relevance determination submodule is used to determine the relevance between the to-be-published text and the publishing topic according to the target weight of each target word, wherein when the target word is the professional word, the target weight is the first weight; when the target word is the non-professional word, the target weight is the second weight; when the target word is a substitute word, the target weight is the default weight; The target word determination submodule is specifically used for: If the number of segmented words is less than the first set number, a substitute word for the difference is determined based on the difference between the first set number and the number of segmented words, and each of the text segmented words and the substitute word is determined as the target word.
9. An electronic device, It is characterized in that The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the information publishing method as described in any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the information publishing method as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Core word importance recognition method and equipment and search result sorting method and equipment
CN104077327A
Comment information validity detection method and device
CN110826323A
