A large-model news information extraction method, system and electronic device
By calculating the relationship evaluation value and semantic similarity between text and picture information in the news information database, the problem that the big model in the existing technology fails to effectively combine text and picture information, and the accurate and complete extraction of news information is achieved, improving the improvement of the news information Comprehensive understanding of news content.
Patent Information
- Application Number
- CN202411143548.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-08-20
AI Technical Summary
The existing big model failed to effectively combine text and picture information, resulting in inaccurate and incomplete extraction of core news content. Traditional methods mainly rely on manual reading, are inefficient and susceptible to personal subjective factors, and ignore important information in news pictures. .
By obtaining text and picture information in the news information database, using Word2Vec, Skip-gram model, TF-IDF algorithm and other technologies, we calculate the value and semantic similarity of the relationship between text entities and text events and picture text descriptions, and obtain characters Related similarity and event correlation, based on these similarities, news main events are extracted.
It realizes the comprehensive processing of news pictures and text events, improves the accuracy and completeness of the extraction of core content of news information, and allows a comprehensive understanding of news content.
Smart Images

Figure CN118656446B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a large-model news information extraction method, system and electronic equipment. Background Art
[0002] With the rapid development of the Internet and the emergence of self-media, news appears faster and faster, and the amount of news is exploding. The acquisition and processing of news information has become an important part of the public's daily work; traditional news information extraction and summary methods mainly rely on manual reading and analysis, which is not only inefficient, but also easily affected by personal subjective factors, making it difficult to ensure the accuracy of information extraction; traditional methods are mostly limited to the processing of text information, ignoring some important information that may be contained in pictures; news pictures, as an important part of news reports, can often intuitively reflect the key information of events, such as scenes, characters, objects, etc., which is crucial for a comprehensive understanding of the content of the news; existing large models fail to effectively combine text and image information, resulting in inaccuracy and incompleteness of the core content of the news they extract. Summary of the invention
[0003] In order to solve the above problems, the present invention provides a large-model news information extraction method, system and electronic equipment.
[0004] An embodiment of the present invention provides a large-model news information extraction method, the method comprising the following steps:
[0005] Access to news information database;
[0006] Identify the news information database, obtain several news text events, and identify all text entities in each news text event, as well as the relationship description words between each text entity in each news text event and the news text event; analyze the news information database, obtain several news picture things, and identify all picture text descriptions in each news picture thing, as well as the relationship description words between each picture text description in each news picture thing and the news picture thing;
[0007] According to the relationship description words and association between each text entity and the news text event, the relationship evaluation value between each text entity and the news text event is obtained; the relationship evaluation value between each picture text description and the news picture thing is obtained; according to the relationship evaluation value and the semantic similarity between each text entity and each news picture thing, the character association similarity between each text entity and each news picture thing is obtained; according to the character association similarity, the event correlation between each news text event and each news picture thing is obtained;
[0008] All news subject events in the news information database are extracted based on the event correlation.
[0009] Preferably, the method of obtaining the relationship evaluation value between each text entity and the news text event according to the relationship description words and association conditions between each text entity and the news text event includes the following specific methods:
[0010] For the a-th news text event, use the Skip-gram model in Word2Vec to obtain the semantic vector of the a-th news text event, the semantic vector of the k-th text entity in the a-th news text event, and the semantic vector of the relationship description word between the k-th text entity and the a-th news text event;
[0011] According to the semantic vector, obtaining the association value between the kth text entity and the ath news text event;
[0012] The sum of the cosine similarity between the semantic vector of the a-th news text event and the semantic vector of the k-th text entity and 1 is recorded as the first sum value; the product of the association value between the k-th text entity and the a-th news text event and the first sum value is taken as the relationship evaluation value between the k-th text entity and the a-th news text event.
[0013] Preferably, the obtaining of the association value between the kth text entity and the ath news text event includes the following specific methods:
[0014] The product of the semantic vector of the a-th news text event, the semantic vector of the k-th text entity and the semantic vector of the relationship description word between the k-th text entity and the a-th news text event is recorded as the association value between the k-th text entity and the a-th news text event.
[0015] Preferably, the specific method of obtaining the character association similarity between the text entity and the news picture object according to the relationship evaluation value and the semantic similarity between the text entity and the news picture object includes:
[0016] For the bth text entity in the i-th news text event, obtain the semantic similarity between the bth text entity and each picture text description in the β-th news picture event according to the relationship evaluation value;
[0017] The average of the semantic similarities between the b-th text entity and all the image text descriptions in the β-th news image thing is taken as the character association similarity between the b-th text entity and the β-th news image thing.
[0018] Preferably, the obtaining of the semantic similarity between the bth text entity and each picture text description in the βth news picture thing includes the following specific methods:
[0019] The relationship evaluation value between the bth text entity and the Ith news text event is recorded as the first evaluation value; l The relationship evaluation value between the image text description and the βth news image thing is recorded as the second evaluation value; the semantic vector of the bth text entity is recorded as the semantic vector of the βth news image thing. l The cosine similarity between the semantic vectors of the bth image text descriptions is recorded as the first similarity; the ratio of the first evaluation value to the second evaluation value is recorded as the first ratio; the product of the first ratio and the first similarity is recorded as the first product; the inverse proportional value of the absolute value of the difference between the first product and 1 is recorded as the first inverse proportional value; the cosine similarity between the semantic vector of the Ith news text event and the semantic vector of the βth news image thing is recorded as the second similarity; the product of the second similarity and the first inverse proportional value is taken as the semantic similarity between the bth text entity and the βth image text description in the news image thing.
[0020] Preferably, the obtaining of the event correlation between the news text event and the news picture event includes the following specific methods:
[0021] In all the picture text descriptions in the β-th news picture event, the TF-IDF algorithm is used to obtain the TF-IDF value of each picture text description; in all the text entities in the I-th news text event, the TF-IDF algorithm is used to obtain the TF-IDF value of each text entity;
[0022] According to the similarity of character associations and the difference in TF-IDF values between the picture text description and the text entity, the relative importance of each picture text description in the βth news picture thing is obtained;
[0023] The normalized value of the mean of the relative importance of all the picture text descriptions in the β-th news picture thing is used as the event correlation between the I-th news text event and the β-th news picture thing.
[0024] Preferably, the specific method of obtaining the relative importance of each picture text description in the β-th news picture thing includes:
[0025] For the nth text entity in the Ith news text event, the ratio of the TF-IDF value of the nth text entity to the TF-IDF value of the mth picture text description is recorded as the second ratio; the inverse proportional value of the absolute value of the difference between the second ratio and 1 is recorded as the second inverse proportional value; the product of the character association similarity between the nth text entity and the βth news picture thing and the second inverse proportional value is used as the relative importance factor of the nth text entity and the mth picture text description; among all text entities in the Ith news text event, the maximum value of the relative importance factor with the mth picture text description is used as the relative importance of the mth picture text description in the βth news picture thing.
[0026] Preferably, the extracting news subject events from the news information database based on event correlation includes the following specific methods:
[0027] A threshold parameter K is preset, and for any news text event, the event correlation between the news text event and each news picture object is obtained; if any event correlation of the news text event is greater than or equal to the threshold parameter K, the news text event is recorded as a news subject event.
[0028] A large-model news event extraction system adopts any one of the large-model news information extraction methods described above, and the system includes the following modules:
[0029] Data collection module, obtaining news information database;
[0030] The data decomposition module identifies the news information database, obtains several news text events, and identifies all text entities in each news text event, as well as the relationship description words between each text entity in each news text event and the news text event; analyzes the news information database, obtains several news picture things, and identifies all picture text descriptions in each news picture thing, as well as the relationship description words between each picture text description in each news picture thing and the news picture thing;
[0031] The data analysis module obtains the relationship evaluation value between each text entity and the news text event according to the relationship description words and association between each text entity and the news text event; obtains the relationship evaluation value between each picture text description and the news picture thing; obtains the character association similarity between each text entity and each news picture thing according to the relationship evaluation value and the semantic similarity between each text entity and each news picture thing; obtains the event correlation between each news text event and each news picture thing according to the character association similarity;
[0032] The news information extraction module extracts all news subject events in the news information database based on the event correlation.
[0033] A large-model news information extraction electronic device comprises a news information extraction electronic device and a memory contained in the news information extraction electronic device, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements any one of the steps of the large-model news information extraction method when executing the computer program.
[0034] The beneficial effects of the technical solution of the present invention are as follows: the present invention obtains the character association similarity between each text entity and each news picture thing according to the relationship evaluation value and the semantic similarity between each text entity and each news picture thing; obtains the event correlation between each news text event and each news picture thing according to the character association similarity; extracts all news subject events in a news information database based on the event correlation; and realizes the comprehensive processing of news pictures and text events by analyzing the large language model and news picture information, which can fully understand the news content and improve the accuracy and completeness of extracting the core content of the news information. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0036] Figure 1 A flowchart of the steps of a large-scale news information extraction method of the present invention;
[0037] Figure 2 This is a structural block diagram of a large-scale news information extraction system of the present invention. DETAILED DESCRIPTION
[0038] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation, structure, features and effects of a large-scale news information extraction method, system and electronic device proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0039] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0040] The following is a detailed description of a large-model news information extraction method, system and electronic device provided by the present invention in conjunction with the accompanying drawings.
[0041] See also Figure 1 , which shows a flowchart of a large-model news information extraction method provided by an embodiment of the present invention, the method comprising the following steps:
[0042] Step S001: Acquire news information database.
[0043] It should be noted that this embodiment proposes a news information extraction electronic device that performs information processing and analysis from multiple angles and aspects. The device can extract key information or core content from large-scale or multi-field news; in the process of building a news information extraction electronic device, a large number of large-scale and wide-ranging news data sets are required.
[0044] Specifically, we first need to collect the news information database. The specific process is as follows:
[0045] Obtain news information database through news releases published by any official website in the past six months.
[0046] So far, the news information database is obtained through the above method.
[0047] Step S002: Identify the news information database, obtain several news text events, and identify all text entities in each news text event, as well as the relationship description words between each text entity in each news text event and the news text event; analyze the news information database, obtain several news picture things, and identify all picture text descriptions in each news picture thing, as well as the relationship description words between each picture text description in each news picture thing and the news picture thing.
[0048] It should be noted that, due to the development of science and technology, most of the news nowadays contains images and texts. When extracting the core content of the news, it is necessary to integrate the text information and the picture information to jointly determine its core content. From the text aspect, the core content of the news is basically some more specific content such as time, place, people, and descriptive events. This can be directly extracted through some large models (such as GPT, BERT) based on the repetitiveness of each phrase, sentence and even paragraph in the news and the semantic association between phrases. From the picture aspect, the picture is used to intuitively display the situation of news events and scenes, and the picture is also some supplement to the news content. Therefore, this embodiment obtains the possible core content of the news from the text of the news through the large model, and then converts the picture into a text description, examines the similarity and correlation between the text description of the picture and the possible core content, and determines the core information of the core of the news.
[0049] 1. Get several news text events.
[0050] It should be noted that in today's society of information explosion, news is generated faster and faster and in greater quantities. People are faced with a flood of information. The large model can automatically learn statistical patterns in the language, so that it can quickly extract the main content of news text events; first, the named entity recognition model can be used to identify the key information in each news text event in the news information database, such as important text entities such as people, places, organizations, events, and time; secondly, after identifying the text entities, the contextual information of phrases such as text entities is captured, and the long-range dependencies and complex semantic associations between the text entities in the news text events are inferred using large language models and self-attention mechanism technology, so as to extract the associations between the text entities in the news text events and important event descriptions; with the help of large language models, comprehensive judgments and analyses are performed from multiple aspects, such as semantic understanding at the sentence level and logical judgments at the paragraph level, so as to integrate various information and form a comprehensive event description and entity relationship diagram.
[0051] Preferably, a named entity recognition model is used to identify the news information database, obtain a number of news text events, and identify all text entities in each news text event; and a self-attention mechanism technology is used to obtain the relationship description words between each text entity in each news text event and the news text event.
[0052] Among them, the named entity recognition model and self-attention mechanism technology are existing technologies, and this embodiment will not be described in detail here.
[0053] At this point, a number of news text events and the relationship description words between each text entity in each news text event and the news text event are obtained.
[0054] 2. Get several news picture items.
[0055] It should be noted that pictures in news can provide an intuitive display of events for the news, so that users can more intuitively understand the background, scene, and impact of the event; and pictures can also provide some details and supplementary information that news text cannot convey; and this embodiment needs to comprehensively consider the text information and picture information of the news. The text information can be directly analyzed through the language model, but the picture information is difficult to analyze or extract the core content more intuitively, so it is necessary to convert the pictures in the news into text descriptions; and the process of describing the picture is roughly to summarize the picture content, describe the location of the object, and explain the meaning of the picture.
[0056] Preferably, the news information database is analyzed using a target detection algorithm and an encoder-decoder architecture technology to obtain a number of news picture things, and all picture text descriptions in each news picture thing, as well as the relationship description words between each picture text description in each news picture thing and the news picture thing, are identified.
[0057] Among them, the target detection algorithm and encoder-decoder architecture technology are existing technologies and will not be described in detail in this embodiment.
[0058] So far, several news picture things and the relationship description words between each picture text description in each news picture thing and the news picture thing are obtained through the above method.
[0059] Step S003: According to the relationship description words and associations between each text entity and the news text event, obtain the relationship evaluation value between each text entity and the news text event; obtain the relationship evaluation value between each picture text description and the news picture thing; according to the relationship evaluation value and the semantic similarity between each text entity and each news picture thing, obtain the character association similarity between each text entity and each news picture thing; according to the character association similarity, obtain the event correlation between each news text event and each news picture thing.
[0060] It should be noted that, based on the complex correspondence between text entities and news picture things, the relationship evaluation value between each text entity and the news text event, as well as the relationship evaluation value between each picture text description in each news picture thing and the news picture thing are obtained; and combined with their semantic information, the correlation between text entities and news picture things is analyzed to obtain the character association similarity between each text entity and each news picture thing; and based on the relationship between multiple text entities and picture text descriptions combined with events, the event association between news text events and news picture things is further determined to obtain the event correlation between each news text event and each news picture thing.
[0061] 1. Obtain the relationship evaluation value between each text entity and the news text event, as well as the relationship evaluation value between each picture text description in each news picture thing and the news picture thing.
[0062] It should be noted that the closer the semantics of a text entity and a news text event are, the higher the similarity between the two; at the same time, the closer the relationship between a text entity and a news text event is, the higher the correlation between the text entity and the news text event; and when it comes to the relationship between a text entity and a news text event, the higher the similarity between the two, the higher the evaluation value of the relationship between the two.
[0063] Preferably, in some implementations of the embodiments of the present invention, the specific method for obtaining the relationship evaluation value between each text entity and the news text event according to the relationship description words and association conditions between each text entity and the news text event is:
[0064] For the a-th news text event, use the Skip-gram model in Word2Vec to obtain the semantic vector of the a-th news text event, the semantic vector of the k-th text entity in the a-th news text event, and the semantic vector of the relationship description word between the k-th text entity and the a-th news text event;
[0065] The product of the semantic vector of the a-th news text event, the semantic vector of the k-th text entity and the semantic vector of the relationship description word between the k-th text entity and the a-th news text event is recorded as the association value between the k-th text entity and the a-th news text event.
[0066] The sum of the cosine similarity between the semantic vector of the a-th news text event and the semantic vector of the k-th text entity and 1 is recorded as the first sum value; the product of the association value between the k-th text entity and the a-th news text event and the first sum value is taken as the relationship evaluation value between the k-th text entity and the a-th news text event.
[0067] The specific formula is:
[0068]
[0069] In the formula, G a,k represents the relationship evaluation value between the kth text entity and the ath news text event; Represents the cosine similarity between the semantic vector of the a-th news text event and the semantic vector of the k-th text entity; The semantic vector representing the relationship description words between the a-th news text events; Represents the semantic vector of the a-th news text event; Represents the semantic vector of the kth text entity.
[0070] It should be noted that the more semantically similar the kth text entity is to the ath news text event, the closer the relationship between the kth text entity and the ath news text event is; It is used to describe the degree of semantic deviation between the kth text entity and the ath news text event. The more unrelated the kth text entity and the ath news text event are in semantics, the more the sine value of the angle between them is biased towards 1, that is, the closer the cosine similarity between the two is to 0, so 1 is used to prevent the result from being 0, and the longer the modulus of the semantic vector constructed by the cross product of the two. By making corrections, we can consider not only the relationship between the a-th text entity and the a-th news text event, but also the essential connection between the two.
[0071] Referring to the method for obtaining the relationship evaluation value between each text entity and the news text event, the relationship evaluation value between each picture text description and the news picture thing in each news picture thing is obtained.
[0072] So far, the above method has been used to obtain the relationship evaluation value between each text entity and the news text event, as well as the relationship evaluation value between each picture text description and the news picture thing.
[0073] 2. Obtain the similarity of the person association between each text entity and each news picture object.
[0074] It should be noted that the more semantically similar the text entity and the news picture thing are, the more important their corresponding association relationship is; and the more news text events with similar association relationships, the more similar their corresponding text entities are to the news picture thing, and the greater the similarity of the character association between the text entity and the news picture thing.
[0075] Preferably, in some implementations of the embodiments of the present invention, according to the relationship evaluation value and the semantic similarity between each text entity and each news picture thing, the specific method for obtaining the character association similarity between each text entity and each news picture thing is:
[0076] For the bth text entity in the i-th news text event, obtain the semantic similarity between the bth text entity and each picture text description in the β-th news picture event according to the relationship evaluation value;
[0077] The average of the semantic similarities between the b-th text entity and all the image text descriptions in the β-th news image thing is taken as the character association similarity between the b-th text entity and the β-th news image thing.
[0078] The specific formula is:
[0079]
[0080] In the formula, R b,β N represents the similarity between the bth text entity and the βth news picture object; β H represents the number of all picture text descriptions in the βth news picture thing; b,β,j Indicates the bth text entity and the βth news picture thing l The semantic similarity between the text descriptions of the images.
[0081] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the semantic similarity between the b-th text entity and each picture text description in the β-th news picture thing includes:
[0082] The evaluation value of the relationship between the bth text entity and the bth news text event is recorded as the first evaluation value; the l The relationship evaluation value between the image text description and the βth news image thing is recorded as the second evaluation value; the semantic vector of the bth text entity is recorded as the semantic vector of the βth news image thing. l The cosine similarity between the semantic vectors of the image text description is recorded as the first similarity; the ratio of the first evaluation value to the second evaluation value is recorded as the first ratio; the product of the first ratio and the first similarity is recorded as the first product; the inverse proportional value of the absolute value of the difference between the first product and 1 is recorded as the first inverse proportional value; the cosine similarity between the semantic vector of the I-th news text event and the semantic vector of the β-th news image thing is recorded as the second similarity; the product of the second similarity and the first inverse proportional value is used as the similarity between the b-th text entity and the β-th news image thing. l The semantic similarity between the text descriptions of the images.
[0083] The specific formula is:
[0084]
[0085] In the formula, H b,β,j Indicates the bth text entity and the βth news picture thing l Semantic similarity between text descriptions of images; G represents the cosine similarity between the semantic vector of the I-th news text event and the semantic vector of the β-th news picture event; b,I represents the relationship evaluation value between the bth text entity and the Ith news text event; G β,l Indicates l The evaluation value of the relationship between the picture text description and the β-th news picture thing; The semantic vector of the bth text entity is lThe cosine similarity between the semantic vectors of the image text descriptions; | | represents the absolute value; exp() represents an exponential function with a natural constant as the base. The embodiment adopts the exp(-x) model to present the inverse proportional relationship, x is the input of the model, and the implementer can select the inverse proportional function according to the actual situation.
[0086] At this point, the character association similarity between each text entity and each news picture object is obtained.
[0087] 3. Obtain the event correlation between each news text event and each news picture event.
[0088] It should be noted that, in the description of events in news text events and news picture things, the more similar the text entities used are to news picture things and the more similar text entities there are, the more related the events described by the two are; the more core the text entities in the news text events are, the higher the importance of the news picture things, and the more related the descriptions of the events by the two are; the more identical the picture text descriptions of news text events and news picture things are, the more consistent the events described by the two are, and the higher the event correlation between news text events and news picture things is.
[0089] Preferably, in some implementations of the embodiments of the present invention, the specific method for obtaining the event correlation between each news text event and each news picture thing according to the character association similarity is:
[0090] In all the picture text descriptions in the β-th news picture event, the TF-IDF algorithm is used to obtain the TF-IDF value of each picture text description; in all the text entities in the I-th news text event, the TF-IDF algorithm is used to obtain the TF-IDF value of each text entity;
[0091] According to the similarity of character associations and the difference in TF-IDF values between the picture text description and the text entity, the relative importance of each picture text description in the βth news picture thing is obtained;
[0092] The normalized value of the mean of the relative importance of all the picture text descriptions in the β-th news picture thing is used as the event correlation between the I-th news text event and the β-th news picture thing.
[0093] The specific formula is:
[0094]
[0095] In the formula, S I,β M represents the event correlation between the I-th news text event and the β-th news picture event; β represents the number of all picture text descriptions in the βth news picture thing; D β,mIt represents the relative importance of the mth picture text description in the βth news picture thing; tanh() represents the hyperbolic tangent function.
[0096] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the relative importance of each picture text description in the β-th news picture thing includes:
[0097] For the nth text entity in the Ith news text event, the ratio of the TF-IDF value of the nth text entity to the TF-IDF value of the mth picture text description is recorded as the second ratio; the inverse proportional value of the absolute value of the difference between the second ratio and 1 is recorded as the second inverse proportional value; the product of the character association similarity between the nth text entity and the βth news picture thing and the second inverse proportional value is used as the relative importance factor of the nth text entity and the mth picture text description; among all text entities in the Ith news text event, the maximum value of the relative importance factor with the mth picture text description is used as the relative importance of the mth picture text description in the βth news picture thing.
[0098] The specific formula is:
[0099]
[0100] Where, d n,m Represents the relative importance factor of the nth text entity and the mth image text description; R n,β represents the similarity of the person association between the nth text entity and the βth news picture thing; TI n Indicates the TF-IDF value of the nth text entity; TI m represents the TF-IDF value of the text description of the mth image; | | represents the absolute value; exp() represents an exponential function with a natural constant as the base. The embodiment adopts the exp(-x) model to present the inverse proportional relationship. x is the input of the model. The implementer can select the inverse proportional function according to the actual situation.
[0101] It should be noted that the TF-IDF algorithm is an existing algorithm and will not be described in detail in this embodiment.
[0102] So far, the event correlation between each news text event and each news picture event is obtained through the above method.
[0103] Step S004: extracting all news subject events in the news information database based on the event correlation.
[0104] Preferably, a threshold parameter K is preset, wherein this embodiment is described by taking K=0.65 as an example, and this embodiment is not specifically limited, wherein K is determined according to specific implementation conditions.
[0105] For any news text event, obtain the event correlation between the news text event and each news picture object; if any event correlation of the news text event is greater than or equal to a threshold parameter K, record the news text event as a news subject event.
[0106] Through the above steps, a large-model news information extraction method is completed.
[0107] Second, see Figure 2 , which shows a structural block diagram of a large-model news information extraction system provided by an embodiment of the present invention, the system includes the following modules:
[0108] Data collection module, used to obtain news information database;
[0109] The data decomposition module is used to identify the news information database, obtain a number of news text events, and identify all text entities in each news text event, as well as the relationship description words between each text entity in each news text event and the news text event; analyze the news information database, obtain a number of news picture things, and identify all picture text descriptions in each news picture thing, as well as the relationship description words between each picture text description in each news picture thing and the news picture thing;
[0110] The data analysis module is used to obtain the relationship evaluation value between each text entity and the news text event according to the relationship description words and association between each text entity and the news text event; obtain the relationship evaluation value between each picture text description and the news picture thing; obtain the character association similarity between each text entity and each news picture thing according to the relationship evaluation value and the semantic similarity between each text entity and each news picture thing; obtain the event correlation between each news text event and each news picture thing according to the character association similarity;
[0111] The news information extraction module is used to extract all news subject events in the news information database based on the event correlation.
[0112] In a third aspect, the present invention also proposes a large-model news information extraction electronic device, which includes a news information extraction electronic device and a memory, a processor, and a computer program stored in the memory and running on the processor contained in the news information extraction electronic device, and when the processor executes the computer program, it implements the steps of a large-model news information extraction method described in steps S001 to S004.
[0113] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A large-model news information extraction method, characterized in that: The method comprises the following steps: Access to news information database; Identify the news information database, obtain several news text events, and identify all text entities in each news text event, as well as the relationship description words between each text entity in each news text event and the news text event; analyze the news information database, obtain several news picture things, and identify all picture text descriptions in each news picture thing, as well as the relationship description words between each picture text description in each news picture thing and the news picture thing; According to the relationship description words and association between each text entity and the news text event, the relationship evaluation value between each text entity and the news text event is obtained; the relationship evaluation value between each picture text description and the news picture thing is obtained; according to the relationship evaluation value and the semantic similarity between each text entity and each news picture thing, the character association similarity between each text entity and each news picture thing is obtained; according to the character association similarity, the event correlation between each news text event and each news picture thing is obtained; All news subject events in the news information database are extracted based on the event correlation.
2. According to the large-model news information extraction method of claim 1, it is characterized in that: The method of obtaining the relationship evaluation value between each text entity and the news text event according to the relationship description words and association conditions between each text entity and the news text event includes: For the a-th news text event, use the Skip-gram model in Word2Vec to obtain the semantic vector of the a-th news text event, the semantic vector of the k-th text entity in the a-th news text event, and the semantic vector of the relationship description word between the k-th text entity and the a-th news text event; According to the semantic vector, obtaining the association value between the kth text entity and the ath news text event; The sum of the cosine similarity between the semantic vector of the a-th news text event and the semantic vector of the k-th text entity and 1 is recorded as the first sum value; the product of the association value between the k-th text entity and the a-th news text event and the first sum value is taken as the relationship evaluation value between the k-th text entity and the a-th news text event.
3. According to the large-scale news information extraction method of claim 2, it is characterized in that: The specific method of obtaining the association value between the kth text entity and the ath news text event includes: The product of the semantic vector of the a-th news text event, the semantic vector of the k-th text entity and the semantic vector of the relationship description word between the k-th text entity and the a-th news text event is recorded as the association value between the k-th text entity and the a-th news text event.
4. The method for extracting news information using a large model according to claim 1, characterized in that: The method of obtaining the character association similarity between each text entity and each news picture object according to the relationship evaluation value and the semantic similarity between each text entity and each news picture object includes: For the bth text entity in the i-th news text event, obtain the semantic similarity between the bth text entity and each picture text description in the β-th news picture event according to the relationship evaluation value; The average of the semantic similarities between the b-th text entity and all the image text descriptions in the β-th news image thing is taken as the character association similarity between the b-th text entity and the β-th news image thing.
5. A large-model news information extraction method according to claim 4, characterized in that: The specific method of obtaining the semantic similarity between the bth text entity and each picture text description in the βth news picture thing includes: The relationship evaluation value between the bth text entity and the Ith news text event is recorded as the first evaluation value; l The relationship evaluation value between the image text description and the βth news image thing is recorded as the second evaluation value; the semantic vector of the bth text entity is recorded as the semantic vector of the βth news image thing. l The cosine similarity between the semantic vectors of the image text description is recorded as the first similarity; the ratio of the first evaluation value to the second evaluation value is recorded as the first ratio; The product of the first ratio and the first similarity is recorded as the first product; the inverse proportional value of the absolute value of the difference between the first product and 1 is recorded as the first inverse proportional value; the cosine similarity between the semantic vector of the I-th news text event and the semantic vector of the β-th news picture thing is recorded as the second similarity; the product of the second similarity and the first inverse proportional value is recorded as the cosine similarity between the b-th text entity and the β-th news picture thing. l The semantic similarity between the text descriptions of the images.
6. The method for extracting news information using a large model according to claim 1, characterized in that: The specific method of obtaining the event correlation between each news text event and each news picture thing according to the character association similarity includes: In all the picture text descriptions in the β-th news picture event, the TF-IDF algorithm is used to obtain the TF-IDF value of each picture text description; in all the text entities in the I-th news text event, the TF-IDF algorithm is used to obtain the TF-IDF value of each text entity; According to the similarity of character associations and the difference in TF-IDF values between the picture text description and the text entity, the relative importance of each picture text description in the βth news picture thing is obtained; The normalized value of the mean of the relative importance of all the picture text descriptions in the β-th news picture thing is used as the event correlation between the I-th news text event and the β-th news picture thing.
7. The method for extracting news information using a large model according to claim 1, characterized in that: The specific method of obtaining the relative importance of each picture text description in the β-th news picture thing includes: For the nth text entity in the Ith news text event, the ratio of the TF-IDF value of the nth text entity to the TF-IDF value of the mth picture text description is recorded as the second ratio; The inverse proportional value of the absolute value of the difference between the second ratio and 1 is recorded as the second inverse proportional value; the product of the character association similarity between the nth text entity and the βth news picture thing and the second inverse proportional value is used as the relative importance factor of the nth text entity and the mth picture text description; among all text entities in the Ith news text event, the maximum value of the relative importance factor with the mth picture text description is used as the relative importance of the mth picture text description in the βth news picture thing.
8. The method for extracting news information using a large model according to claim 1, characterized in that: The specific method of extracting all news subject events in the news information database based on the event correlation includes: A threshold parameter K is preset, and for any news text event, the event correlation between the news text event and each news picture object is obtained; if any event correlation of the news text event is greater than or equal to the threshold parameter K, the news text event is recorded as a news subject event.
9. A large-model news information extraction system, using a large-model news information extraction method as claimed in any one of claims 1 to 8, characterized in that: The system includes the following modules: Data collection module, used to obtain news information database; A data decomposition module is used to identify the news information database, obtain a number of news text events, and identify all text entities in each news text event, as well as the relationship description words between each text entity in each news text event and the news text event; Analyze the news information database, obtain a number of news picture things, and identify all picture text descriptions in each news picture thing, as well as relationship description words between each picture text description in each news picture thing and the news picture thing; A data analysis module, for obtaining a relationship evaluation value between each text entity and a news text event according to the relationship description words and association conditions between each text entity and the news text event; Get the relationship evaluation value between each picture text description and the news picture object; According to the relationship evaluation value and the semantic similarity between each text entity and each news picture thing, the character association similarity between each text entity and each news picture thing is obtained; according to the character association similarity, the event correlation between each news text event and each news picture thing is obtained; The news information extraction module is used to extract all news subject events in the news information database based on the event correlation.
10. A large-scale news information extraction electronic device, comprising a news information extraction electronic device and a memory, a processor and a computer program stored in the memory and executable on the processor contained in the news information extraction electronic device, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
