Information processing method, device, equipment and computer readable storage medium

By considering the positional relationship of keywords in the news title and the text, the problem of inaccurate identification in the existing technology is solved, a higher accuracy calculation of the correlation between the news title and the text is achieved, and the headline news is effectively identified.

CN114282092BActive Publication Date: 2024-08-27MIGU MUSIC CO LTD +2
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202111487593.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-07
Publication Date
2024-08-27
Estimated Expiration
2041-12-07

AI Technical Summary

Technical Problem

When identifying the correlation between a news title and the text, the existing technology does not consider the position of the keywords in the title in the text, resulting in inaccurate recognition results.

Method used

By obtaining the keyword set corresponding to the title of the information to be processed, and based on the relative position of the keywords in the text, the correlation between the title and the text is determined, including paragraph matching, weight calculation and synonym expansion, to improve the correlation. accuracy.

Benefits of technology

It improves the accuracy of the correlation between news titles and text, can more effectively identify headline-driven news, and improves the accuracy of news selection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114282092B
    Figure CN114282092B
Patent Text Reader

Abstract

The present invention discloses an information processing method, device, equipment and computer-readable storage medium, wherein the method comprises: obtaining a keyword set corresponding to the title of information to be processed; determining the degree of association between the title and the text based on the relative position relationship of different keywords in the keyword set in the text of the information to be processed; wherein, when the degree of association corresponding to the relative position relationship is greater than a preset threshold, the degree of association between the title and the text is high. The present invention realizes determining the degree of association between the title and the text according to the position of each keyword in the title in the text, and improving the accuracy of the degree of association between the title and the text by taking into account the relative position relationship of each keyword in the title information in the text.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information processing technology, and in particular to an information processing method, device, equipment and computer-readable storage medium. Background Art

[0002] With the popularization of computers and the rapid development of the Internet, the amount of various news on the Internet has accumulated rapidly, but the explosive growth of news often contains a large amount of clickbait news, that is, news whose title is irrelevant to the main text of the news.

[0003] At present, the identification of clickbait news usually involves extracting keywords from the news text and title, and then identifying whether the news title and the news text are relevant based on whether the keywords match. However, the position of the keywords in the title in the news text is not considered in the relevance identification process, resulting in inaccurate identification results.

[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present invention is to provide an information processing method, device, equipment and computer-readable storage medium, aiming to solve the technical problem of inaccurate correlation identification between existing news headlines and news texts.

[0006] To achieve the above object, the present invention provides an information processing method, the information processing method comprising:

[0007] Get the keyword set corresponding to the title of the information to be processed;

[0008] Based on the relative position relationship of different keywords in the keyword set in the text of the information to be processed, the correlation between the title and the text is determined; wherein, when the correlation corresponding to the relative position relationship is greater than a preset threshold, the correlation between the title and the text is high.

[0009] Furthermore, the step of determining the relevance between the title and the text based on the relative position relationship of different keywords in the keyword set in the text of the information to be processed includes:

[0010] Determine the paragraph information corresponding to the text based on the line break in the text, wherein the paragraph information includes the first paragraph, the middle paragraph and the last paragraph;

[0011] Determine, among the keywords in the keyword set, a first keyword that matches one paragraph in the paragraph information, a second keyword that matches two paragraphs in the paragraph information, and a third keyword that matches three paragraphs in the paragraph information;

[0012] Based on the first keyword, the second keyword, and the third keyword, the relevance between the title and the text is determined.

[0013] Furthermore, the step of determining the relevance between the title and the text based on the first keyword, the second keyword and the third keyword includes:

[0014] Obtain a first weight corresponding to the first keyword, a second weight corresponding to the second keyword, and a third weight corresponding to the third keyword;

[0015] Based on the first weight, the second weight, the third weight, the number of the first keywords, the number of the second keywords, and the number of the third keywords, the association between the title and the text is determined.

[0016] Furthermore, the step of determining the relevance between the title and the text based on the first keyword, the second keyword and the third keyword includes:

[0017] Determining a first relevance between the title and the text based on the first keyword, the second keyword, and the third keyword;

[0018] Determine a second relevance between the title and the text based on sentence information corresponding to the text and the keyword set, and determine a third relevance between the title and the text based on text keywords corresponding to the text and the keyword set;

[0019] Based on the first relevance, the second relevance, and the third relevance, a correlation between the title and the text is determined.

[0020] Furthermore, the step of determining the second relevance between the title and the text based on the sentence information corresponding to the text and the keyword set includes:

[0021] Determine, in each sentence of the sentence information, a target sentence that matches a keyword of the keyword set;

[0022] Determine a first target sentence in the target sentence that matches multiple keywords in the keyword set, and determine a first sentence number of sentences in the first target sentence that have adjacent keywords in the same sentence;

[0023] Determine adjacent second target sentences in the target sentence based on the order of each sentence in the sentence information, and determine the number of second sentences having adjacent keywords in the adjacent second target sentences;

[0024] The second relevance is determined based on the first number of sentences and the second number of sentences.

[0025] Furthermore, the step of determining the third relevance between the title and the text based on the text keywords corresponding to the text and the keyword set includes:

[0026] Obtaining synonyms corresponding to each keyword in the keyword set, and determining a set of words to be matched including the synonyms and each keyword in the keyword set;

[0027] Determine the number of matching keywords of the target to-be-matched words of the to-be-matched words set that belong to the main text keywords;

[0028] The third relevance is determined based on the number of matching keywords.

[0029] Furthermore, the step of determining the relevance between the title and the text based on the first relevance, the second relevance, and the third relevance includes:

[0030] Obtaining a sum of correlations among the first correlation, the second correlation and the third correlation;

[0031] Determining a relevance threshold based on the number of keywords in the keyword set;

[0032] The degree of association is determined based on the sum of the degrees of relevance and a degree of relevance threshold.

[0033] In addition, to achieve the above-mentioned purpose, the present invention further provides an information processing device, the information processing device comprising:

[0034] An acquisition module, used to acquire a keyword set corresponding to the title of the information to be processed;

[0035] A determination module is used to determine the correlation between the title and the text based on the relative position relationship of different keywords in the keyword set in the text of the information to be processed; wherein, when the correlation corresponding to the relative position relationship is greater than a preset threshold, the correlation between the title and the text is high.

[0036] In addition, to achieve the above-mentioned purpose, the present invention also provides an information processing device, which includes: a memory, a processor, and an information processing program stored in the memory and executable on the processor, and the information processing program implements the steps of the aforementioned information processing method when executed by the processor.

[0037] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which an information processing program is stored, and when the information processing program is executed by a processor, the steps of the aforementioned information processing method are implemented.

[0038] The present invention obtains a keyword set corresponding to the title of the information to be processed; then determines the correlation between the title and the text based on the relative position relationship of different keywords in the keyword set in the text of the information to be processed; wherein, when the correlation corresponding to the relative position relationship is greater than a preset threshold, the correlation between the title and the text is high, thereby achieving the determination of the correlation between the title and the text according to the position of each keyword in the title in the text, and improving the accuracy of the correlation between the title and the text by taking into account the relative position relationship of each keyword in the title information in the text. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a structural diagram of an information processing device in a hardware operating environment involved in an embodiment of the present invention;

[0040] Figure 2 This is a flow chart of a first embodiment of an information processing method of the present invention;

[0041] Figure 3 It is a schematic diagram of functional modules of an information processing device according to an embodiment of the present invention.

[0042] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0043] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0044] like Figure 1 As shown, Figure 1 It is a schematic diagram of the structure of an information processing device in a hardware operating environment involved in an embodiment of the present invention.

[0045] The information processing device in the embodiment of the present invention may be a PC. Figure 1As shown, the information processing device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or it may be a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0046] Optionally, the information processing device may also include a camera, a RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, etc. Of course, the information processing device may also be equipped with other sensors such as a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail here.

[0047] Those skilled in the art will understand that Figure 1 The terminal structure shown in the figure does not constitute a limitation on the information processing device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0048] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an information processing program.

[0049] exist Figure 1 In the terminal shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the information processing program stored in the memory 1005.

[0050] In this embodiment, the information processing device includes: a memory 1005, a processor 1001, and an information processing program stored in the memory 1005 and executable on the processor 1001, wherein the processor 1001 calls the information processing program stored in the memory 1005 and executes the steps of the information processing method in each of the following embodiments.

[0051] The present invention also provides an information processing method, referring to Figure 2 , Figure 2Schematic diagram of the flow chart of the first embodiment of the information processing method of the present invention.

[0052] In this embodiment, the information processing method includes:

[0053] Step S101, obtaining a keyword set corresponding to the title of the information to be processed;

[0054] In this embodiment, the title of the information to be processed is first obtained, and then the keyword set corresponding to the title is obtained. Specifically, the title is segmented to obtain a segmentation result, and the segmentation result is processed to remove stop words to obtain a keyword set T words =[wt1,wt2,wt3,wt4,wt5...]. The information to be processed is news articles, papers and other information.

[0055] Step S102, based on the relative position relationship of different keywords in the keyword set in the text of the information to be processed, determine the correlation between the title and the text; wherein, when the correlation corresponding to the relative position relationship is greater than a preset threshold, the correlation between the title and the text is high.

[0056] In this embodiment, when a keyword set is obtained, the relative position relationship of different keywords in the keyword set in the text of the information to be processed is obtained. Specifically, each paragraph of the text is determined, and the paragraphs to which different keywords in the keyword set belong are determined, and the number of keywords of different keywords in the keyword set contained in each paragraph is obtained. Then, the weight corresponding to each paragraph is set according to the number of each paragraph in the text, and the correlation between the title and the text is determined according to the weight corresponding to each paragraph and the number of keywords corresponding to each paragraph. For example, the correlation between the title and the text is D1*W1+D2*W2+...Dn*Wn, where Dn is the number of the nth keyword, Wn is the nth weight, n ranges from 1 to k, and k is the number of paragraphs in the text.

[0057] It should be noted that in other implementations, the paragraphs of the text may also be merged, for example, the paragraphs of the text may be divided into a first paragraph (the first paragraph), a middle paragraph, and a tail paragraph (the last paragraph).

[0058] The data processing method proposed in this embodiment obtains a keyword set corresponding to the title of the information to be processed; then determines the correlation between the title and the text based on the relative position relationship of different keywords in the keyword set in the text of the information to be processed; wherein, when the correlation corresponding to the relative position relationship is greater than a preset threshold, the correlation between the title and the text is high, thereby realizing the determination of the correlation between the title and the text according to the position of each keyword in the title in the text, and improving the accuracy of the correlation between the title and the text by taking into account the relative position relationship of each keyword in the title information in the text.

[0059] Based on the first embodiment, a second embodiment of the data processing method of the present invention is proposed. In this embodiment, step S102 includes:

[0060] Step S201, based on the line break in the text, determining the paragraph information corresponding to the text, wherein the paragraph information includes the first paragraph, the middle paragraph and the last paragraph;

[0061] Step S202, determining, among the keywords in the keyword set, a first keyword that matches one paragraph in the paragraph information, a second keyword that matches two paragraphs in the paragraph information, and a third keyword that matches three paragraphs in the paragraph information;

[0062] Step S203: determining the relevance between the title and the text based on the first keyword, the second keyword and the third keyword.

[0063] In this embodiment, the main text is first segmented based on the line breaks in the text to determine the paragraph information corresponding to the main text, wherein the paragraph information includes a first paragraph, a middle paragraph, and a last paragraph; specifically, when multiple paragraphs of the main text are obtained, the first paragraph (the first paragraph), the last paragraph (the last paragraph), and the middle paragraphs (all paragraphs between the first paragraph and the last paragraph) of the multiple paragraphs are used as paragraph information.

[0064] Next, among the keywords in the keyword set, determine a first keyword that matches one paragraph in the paragraph information, a second keyword that matches two paragraphs in the paragraph information, and a third keyword that matches three paragraphs in the paragraph information. Specifically, the paragraph information includes a first paragraph FP, a middle paragraph MP, and an end paragraph EP. For the keyword set T wordsFor any keyword Wti in , if Wti∈FP or Wti∈MP or Wti∈EP, then the keyword Wti is determined to be the first keyword; if Wti∈FP and Wti∈MP, or Wti∈MP and Wti∈EP, or Wti∈FP and Wti∈EP, then the keyword Wti is determined to be the second keyword; if Wti∈FP, Wti∈MP and Wti∈MP, then the keyword Wti is determined to be the third keyword.

[0065] In this embodiment, after the first keyword, the second keyword, and the third keyword are obtained, the relevance between the title and the text is determined based on the first keyword, the second keyword, and the third keyword. Specifically, in one embodiment, step S203 includes:

[0066] Step S2031, obtaining a first weight corresponding to the first keyword, a second weight corresponding to the second keyword, and a third weight corresponding to the third keyword;

[0067] Step S2032: Determine the relevance between the title and the text based on the first weight, the second weight, the third weight, the number of the first keywords, the number of the second keywords, and the number of the third keywords.

[0068] In this embodiment, weights corresponding to keywords belonging only to one end, keywords belonging to both ends, and keywords belonging to all three sections are set in advance according to the first paragraph, middle paragraph, and last paragraph of the text. When the first keyword, the second keyword, and the third keyword are obtained, the first weight corresponding to the first keyword, the second weight corresponding to the second keyword, and the third weight corresponding to the third keyword are obtained.

[0069] Next, based on the first weight, the second weight, the third weight, the number of the first keywords, the number of the second keywords, and the number of the third keywords, the association degree between the title and the text is determined. Specifically, the association degree = the number of the first keywords * the first weight + the number of the second keywords * the second weight + the number of the third keywords * the third weight. For example, the first weight, the second weight, and the third weight are 1, 2, and 3 respectively, the number of the first keywords is 2, the number of the second keywords is 3, and the number of the third keywords is 1, then the association degree = 1*2+2*3+3*1=11. The association degree can be accurately obtained through the weights of the first keyword, the second keyword, and the third keyword.

[0070] The information processing method proposed in this embodiment determines the paragraph information corresponding to the text based on the line breaks in the text, wherein the paragraph information includes the first paragraph, the middle paragraph and the last paragraph; then determines the first keyword matching one paragraph in the paragraph information, the second keyword matching two paragraphs in the paragraph information, and the third keyword matching three paragraphs in the paragraph information among the keywords in the keyword set; and then determines the correlation between the title and the text based on the first keyword, the second keyword and the third keyword. The correlation can be accurately obtained according to the position of each keyword in each paragraph in the text, further improving the accuracy of the correlation between the title and the text.

[0071] Based on the second embodiment, a third embodiment of the data processing method of the present invention is proposed. In this embodiment, step S203 includes:

[0072] Step S301, determining a first correlation between the title and the text based on the first keyword, the second keyword and the third keyword;

[0073] Step S302, determining a second correlation between the title and the text based on sentence information corresponding to the text and the keyword set, and determining a third correlation between the title and the text based on text keywords corresponding to the text and the keyword set;

[0074] Step S303: determining the relevance between the title and the text based on the first relevance, the second relevance, and the third relevance.

[0075] In this embodiment, the first relevance between the title and the text is determined based on the first keyword, the second keyword and the third keyword.

[0076] Next, based on the sentence information corresponding to the main text and the keyword set, the second correlation between the title and the main text is determined. Specifically, the main text is first segmented to obtain sentence information, and the second correlation is determined based on the position of the keyword sequence in the keyword set in each sentence in the sentence information.

[0077] At the same time, based on the keyword set and the keyword set, a third relevance corresponding to the title is determined. Specifically, the third relevance is determined according to the number of keywords in the keyword set included in the keyword set.

[0078] Finally, based on the first correlation, the second correlation and the third correlation, the correlation between the title and the text is determined. Specifically, the first correlation, the second correlation and the third correlation are added to obtain the correlation sum, and the correlation is calculated based on the correlation sum, thereby realizing the calculation of the correlation between the title and the text according to the position of each keyword in the title in the text, thereby improving the accuracy of the correlation calculation.

[0079] It should be noted that after obtaining the correlation between the title and text of the information to be processed, if the correlation is greater than a preset threshold, the information to be processed is determined to be normal information (not clickbait), thereby improving the accuracy of reference news selection. The preset threshold can be reasonably set, for example, the preset threshold is 0.8.

[0080] The information processing method proposed in this embodiment determines the first correlation between the title and the text based on the first keyword, the second keyword and the third keyword; then determines the second correlation between the title and the text based on the sentence information corresponding to the text and the keyword set, and determines the third correlation between the title and the text based on the text keywords corresponding to the text and the keyword set; then determines the correlation between the title and the text based on the first correlation, the second correlation and the third correlation, thereby achieving the determination of the correlation between the title and the text based on the relative position relationship of each keyword in the title in the text and the position of each keyword in the sentences of the text, thereby further improving the accuracy of the correlation between the title and the text.

[0081] Based on the third embodiment, a fourth embodiment of the information processing method of the present invention is proposed. In this embodiment, step S302 includes:

[0082] Step S401, determining a target sentence matching a keyword in a keyword set among the sentences in the sentence information;

[0083] Step S402, determining a first target sentence in the target sentence that matches multiple keywords in the keyword set, and determining a first sentence number of sentences in the first target sentence that have adjacent keywords in the same sentence;

[0084] Step S403, based on the order of each sentence in the sentence information, determining adjacent second target sentences in the target sentence, and determining the number of second sentences having adjacent keywords in the adjacent second target sentences;

[0085] Step S404: determining the second relevance based on the number of the first sentences and the number of the second sentences.

[0086] In this embodiment, the text is segmented based on preset punctuation marks to obtain sentence information, wherein the preset punctuation marks include punctuation marks such as '.', '?', and '!' that indicate the end of a sentence. In each sentence of the sentence information, a target sentence matching a keyword of the keyword set is determined, wherein the target sentence includes one or more keywords of the keyword set.

[0087] In this embodiment, when the target sentence is obtained, the first target sentence in the target sentence that matches multiple keywords in the keyword set is determined, that is, each sentence in the first target sentence includes multiple different keywords in the keyword set, and then the first sentence number of sentences in the first target sentence where adjacent keywords exist in the same sentence is determined, that is, the sentences where adjacent keywords exist include at least any two adjacent keywords in the keyword set. For example, for any sentence Si, if the sentence Si includes Wti and Wt(i+1) in the keyword set, the first sentence number is increased by 1.

[0088] Next, based on the order of each sentence in the sentence information, determine the adjacent second target sentences in the target sentence, where the second target sentences include one or more groups of adjacent sentences, and determine the number of second sentences containing adjacent keywords in the adjacent second target sentences. For example, corresponding to any group of adjacent second target sentences Si and S(i+1), if Wti∈Si and Wt(i+1)∈S(i+1), the number of second sentences is increased by 1.

[0089] Next, based on the number of the first sentences and the number of the second sentences, the second relevance is determined. Specifically, the second relevance is calculated based on the number of the first sentences, the number of the second sentences and the corresponding weights. For example, the weight corresponding to the number of the first sentences and the weight corresponding to the number of the second sentences are both 1, the number of the first sentences is 5, and the number of the second sentences is 8, then the second relevance = 1*5+1*8 = 13. Then, based on the relative position relationship of the keywords in the multiple titles in the text, the second relevance is determined to further improve the accuracy of the relevance between the news title and the news text.

[0090] The information processing method proposed in this embodiment determines, in each sentence of the sentence information, a target sentence that matches a keyword of a keyword set; then determines a first target sentence in the target sentence that matches multiple keywords of the keyword set, and determines the number of first sentences in which adjacent keywords exist in the same sentence in the first target sentence; then determines adjacent second target sentences in the target sentence based on the order of each sentence in the sentence information, and determines the number of second sentences in which adjacent keywords exist in the adjacent second target sentences; then determines the second relevance based on the number of first sentences and the number of second sentences, so that the second relevance can be accurately obtained according to the relative position relationship of multiple keywords in the text, and then the relevance between the title and the text can be determined according to the relative text relationship of the keywords of multiple titles in the text, thereby further improving the accuracy of the relevance between the news title and the news text.

[0091] Based on the third embodiment, a fifth embodiment of the information processing method of the present invention is proposed. In this embodiment, step S302 includes:

[0092] Step S501, obtaining synonyms corresponding to each keyword in the keyword set, and determining a set of words to be matched including the synonyms and each keyword in the keyword set;

[0093] Step S502, determining the number of matching keywords of the target matching words of the to-be-matched words in the to-be-matched words set that belong to the main text keywords;

[0094] Step S503: determining the third relevance based on the number of matching keywords.

[0095] In this embodiment, since there may be synonyms of keywords in the text, it is necessary to perform synonym expansion on the keyword set, that is, obtain the synonyms corresponding to each keyword in the keyword set, and determine a set of words to be matched including the synonyms and each keyword in the keyword set. For example, for the keyword "occur", based on the current "Synonym Thesaurus", the synonym set of "occur" includes: [discover, occur, appear, erupt, produce], then "appear" and [discover, occur, appear, erupt, produce] are added to the set of words to be matched.

[0096] Then, the number of matching keywords of the target to-be-matched word of each to-be-matched word in the to-be-matched word set belonging to the main text keyword is determined, wherein the main text keyword includes the target to-be-matched word.

[0097] Next, based on the number of matching keywords, determine the third relevance. Specifically, set the relevance weight of the matching keywords. The third relevance = number of matching keywords * relevance weight of the matching keywords. For example, if the relevance weight of the matching keywords is 1 and the number of matching keywords is 3, then the third relevance = 3*1=3.

[0098] The information processing method proposed in this embodiment determines a set of to-be-matched words including the synonyms and the keywords of the keyword set by acquiring the synonyms corresponding to the keywords of the keyword set; then determines the number of matching keywords of the target to-be-matched words of the keywords of the main text that belong to the keywords of the main text; and then determines the third relevance based on the number of matching keywords, and determines the third relevance by matching the keyword set with the keywords of the main text, thereby further improving the accuracy of the correlation between the title and the main text.

[0099] Based on the above embodiments, a sixth embodiment of the information processing method of the present invention is proposed. In this embodiment, step S403 includes:

[0100] Step S601, obtaining the sum of the correlations of the first correlation, the second correlation and the third correlation;

[0101] Step S602, determining a relevance threshold based on the number of keywords in the keyword set;

[0102] Step S603: determining the degree of association based on the sum of the degrees of relevance and the degree of relevance threshold.

[0103] In this embodiment, after the first correlation, the second correlation and the third correlation are obtained, the correlation sum of the first correlation, the second correlation and the third correlation is obtained, that is, the first correlation, the second correlation and the third correlation are added to obtain the correlation sum.

[0104] Next, based on the number of keywords in the keyword set, the first relevance, the second relevance and the third relevance, determine the relevance threshold. Specifically, the first relevance threshold is determined based on the number of keywords N and the first relevance, the second relevance threshold is determined based on the number of keywords N and the second relevance, and the third relevance threshold is determined based on the number of keywords N and the third relevance. For example, the first relevance threshold ≤ N*(the sum of the relevance weights of the first keyword, the second keyword and the third keyword) / 3, the second relevance threshold ≤ 1*N, the second relevance threshold ≤ 1*N, and the relevance threshold = first relevance threshold + second relevance threshold + third relevance threshold.

[0105] Finally, based on the correlation sum and the correlation threshold, the correlation degree is determined, where the correlation degree = the correlation sum / the correlation threshold.

[0106] The information processing method proposed in this embodiment obtains the sum of the correlations of the first correlation, the second correlation and the third correlation; then determines the correlation threshold based on the number of keywords in the keyword set; and then determines the correlation based on the sum of the correlations and the correlation threshold. The correlation can be accurately obtained based on the first correlation, the second correlation and the third correlation, thereby further improving the accuracy of the correlation between the news title and the news body.

[0107] The present invention also provides an information processing device, referring to Figure 3 , the information processing device comprises:

[0108] An acquisition module 10 is used to acquire a keyword set corresponding to the title of the information to be processed;

[0109] The determination module 20 is used to determine the correlation between the title and the text based on the relative position relationship of different keywords in the keyword set in the text of the information to be processed; wherein, when the correlation corresponding to the relative position relationship is greater than a preset threshold, the correlation between the title and the text is high.

[0110] The methods executed by the above-mentioned program units can refer to the various embodiments of the information processing method of the present invention, and will not be described in detail here.

[0111] The present invention also provides a computer-readable storage medium.

[0112] The computer-readable storage medium of the present invention stores an information processing program, and when the information processing program is executed by a processor, the steps of the information processing method described above are implemented.

[0113] Among them, the method implemented when the information processing program running on the processor is executed can refer to the various embodiments of the information processing method of the present invention, and will not be repeated here.

[0114] In addition, an embodiment of the present invention further provides a computer program product, which includes an information processing program. When the information processing program is executed by a processor, the steps of the information processing method described above are implemented.

[0115] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0116] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0117] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0118] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. An information processing method, characterized in that: The method comprises: Get the keyword set corresponding to the title of the information to be processed; Determine the degree of association between the title and the text based on the relative position relationship of different keywords in the keyword set in the text of the information to be processed; wherein, when the degree of association corresponding to the relative position relationship is greater than a preset threshold, the degree of association between the title and the text is high; Wherein, the step of determining the relevance between the title and the text based on the relative position relationship of different keywords in the keyword set in the text of the information to be processed includes: Determine the paragraph information corresponding to the text based on the line break in the text, wherein the paragraph information includes the first paragraph, the middle paragraph and the last paragraph; Determine, among the keywords in the keyword set, a first keyword that matches one paragraph in the paragraph information, a second keyword that matches two paragraphs in the paragraph information, and a third keyword that matches three paragraphs in the paragraph information; Based on the first keyword, the second keyword, and the third keyword, the relevance between the title and the text is determined.

2. The information processing method according to claim 1, characterized in that: The step of determining the relevance between the title and the text based on the first keyword, the second keyword, and the third keyword comprises: Obtain a first weight corresponding to the first keyword, a second weight corresponding to the second keyword, and a third weight corresponding to the third keyword; Based on the first weight, the second weight, the third weight, the number of the first keywords, the number of the second keywords, and the number of the third keywords, the association between the title and the text is determined.

3. The information processing method according to claim 1, wherein: The step of determining the relevance between the title and the text based on the first keyword, the second keyword, and the third keyword comprises: Determining a first relevance between the title and the text based on the first keyword, the second keyword, and the third keyword; Determine a second relevance between the title and the text based on sentence information corresponding to the text and the keyword set, and determine a third relevance between the title and the text based on text keywords corresponding to the text and the keyword set; Based on the first relevance, the second relevance, and the third relevance, a correlation between the title and the text is determined.

4. The information processing method according to claim 3, characterized in that: The step of determining the second relevance between the title and the text based on the sentence information corresponding to the text and the keyword set comprises: Determine, in each sentence of the sentence information, a target sentence that matches a keyword of the keyword set; Determine a first target sentence in the target sentence that matches multiple keywords in the keyword set, and determine a first sentence number of sentences in the first target sentence that have adjacent keywords in the same sentence; Determine adjacent second target sentences in the target sentence based on the order of each sentence in the sentence information, and determine the number of second sentences having adjacent keywords in the adjacent second target sentences; The second relevance is determined based on the first number of sentences and the second number of sentences.

5. The information processing method according to claim 3, characterized in that: The step of determining the third relevance between the title and the text based on the text keywords corresponding to the text and the keyword set comprises: Obtaining synonyms corresponding to each keyword in the keyword set, and determining a set of words to be matched including the synonyms and each keyword in the keyword set; Determine the number of matching keywords of the target to-be-matched words of the to-be-matched words set that belong to the main text keywords; The third relevance is determined based on the number of matching keywords.

6. The information processing method according to any one of claims 3 to 5, characterized in that: The step of determining the relevance between the title and the text based on the first relevance, the second relevance, and the third relevance comprises: Obtaining a sum of correlations among the first correlation, the second correlation and the third correlation; Determining a relevance threshold based on the number of keywords in the keyword set; The degree of association is determined based on the sum of the degrees of relevance and a degree of relevance threshold.

7. An information processing device, characterized in that: The information processing device comprises: An acquisition module, used to acquire a keyword set corresponding to the title of the information to be processed; A determination module, configured to determine the degree of association between the title and the text based on the relative position relationship between different keywords in the keyword set and the text of the information to be processed; wherein, when the degree of association corresponding to the relative position relationship is greater than a preset threshold, the degree of association between the title and the text is high; The determination module is further used to determine paragraph information corresponding to the text based on line breaks in the text, wherein the paragraph information includes a first paragraph, a middle paragraph, and a last paragraph; Determine, among the keywords in the keyword set, a first keyword that matches one paragraph in the paragraph information, a second keyword that matches two paragraphs in the paragraph information, and a third keyword that matches three paragraphs in the paragraph information; Based on the first keyword, the second keyword, and the third keyword, the relevance between the title and the text is determined.

8. An information processing device, characterized in that: The information processing device comprises: a memory, a processor, and an information processing program stored in the memory and executable on the processor, wherein the information processing program implements the steps of the information processing method according to any one of claims 1 to 6 when executed by the processor.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an information processing program, and when the information processing program is executed by the processor, the steps of the information processing method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Method and system for identifying newspage attributive characters

    CN103617213A

  • Method and device for obtaining article association degree data

    CN106033445A

  • Information display method and apparatus

    CN106202150A

  • System and method for identifying relevance between webpage title and text

    CN107357781A

  • Method and device for determining the relevancy of title texts, equipmentDetermining method, device and equipment of title text relevancy and storage medium

    CN109614625A