Multi-scenario text error correction method in news field based on knowledge graph

Through the multi-scenario text error correction method based on the knowledge graph, the problem of existing technology's insufficient ability to deal with vocabulary errors in specialized fields in the news field has been solved. By constructing the news field knowledge base and error correction model, efficient text error correction has been achieved. , improving error correction accuracy and user experience.

CN114817570BActive Publication Date: 2024-10-29SICHUAN COVER MEDIA TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210511014.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-11
Publication Date
2024-10-29
Estimated Expiration
2042-05-11

AI Technical Summary

Technical Problem

Existing text error correction methods have poor ability to deal with errors in vocabulary or expressions in specialized fields, and methods based on rules and statistical language models require a large number of vocabulary libraries and training samples, making it difficult to adapt to the needs of multiple scenarios in the news field.

Method used

Adopt a multi-scenario text error correction method based on knowledge graphs, build a knowledge base and error correction model in the news field through data crawling, information extraction and graph construction, use entity relationships and event data to generate positive and negative samples, and build a database for different scenarios. Error correction models and search engines perform graph retrieval and model fine-tuning to achieve text error correction.

Benefits of technology

Significantly improve error correction capabilities, ensure data quality and diversity, improve the accuracy and pertinence of error correction models, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114817570B_ABST
    Figure CN114817570B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of text error correction, and specifically to a multi-scenario text error correction method in the news field based on a knowledge graph. The technical scheme includes: crawling, classifying and filtering data from major news websites; then extracting information to obtain entity relationship attributes, event data, entity words and domain words; obtaining positive samples according to entity words and domain words, processing the positive samples to obtain negative samples, and the positive samples and negative samples constitute positive and negative sample data sets; constructing a news field graph knowledge base according to entity relationship attributes and event data; building different text error correction models and graph knowledge base search engines according to different application scenarios in the news field; performing word segmentation processing, entity extraction and semantic analysis on the text to be corrected, obtaining hyponyms and hyponyms and entity relationships, and then using a search engine to perform graph retrieval in the graph knowledge base; performing different processing according to the type of the text error correction model. The present invention is suitable for text error correction in the news field.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of text error correction, and in particular to a multi-scenario text error correction method in the news field based on a knowledge graph. Background Art

[0002] With the rapid development of the Internet, the media industry is also gradually expanding its influence, accompanied by more and more online news data and network users. The increase in text data will inevitably lead to an increase in the probability of errors, which will directly affect the readers' reading experience. Therefore, there is an urgent need for better automatic error correction methods to improve the quality of text data.

[0003] Most of the existing text correction methods are general-purpose text correction methods, and there are no correction methods for specific fields. Although the general correction methods cover a wide range of fields, their correction capabilities are relatively poor, and they cannot detect and correct errors in some proprietary vocabulary or expressions. At the same time, the existing correction models are mainly divided into rule-based, statistical language model-based, and large-scale pre-trained models. The rule-based method requires the construction of a sufficiently large vocabulary library to ensure the accuracy of the correction, while the methods based on statistical language models and pre-trained models require a large number of training samples for better generalization. Therefore, we propose a multi-scenario text correction method in the news field based on knowledge graphs, using knowledge graph technology to better establish a knowledge base in the news field, thereby building a richer vocabulary library and training data to improve the effect of the correction model. At the same time, different correction models are built for different scenarios and business needs in the news field to further improve the model effect and user experience. Summary of the invention

[0004] The purpose of this application is to provide a multi-scenario text error correction method in the news field based on knowledge graph, which greatly improves the error correction capability.

[0005] The present invention adopts the following technical solutions to achieve the above-mentioned purpose, and the multi-scenario text error correction method in the news field based on knowledge graph includes:

[0006] Step 1: Crawl data from major news websites, and classify and filter the crawled news data;

[0007] Step 2: Extract information from the filtered news data to obtain entity relationship attributes, event data, entity words, and domain words;

[0008] Step 3: Get positive samples based on entity words and domain words, process the positive samples to get negative samples, and the positive samples and negative samples constitute a positive and negative sample data set;

[0009] Step 4: Build a news domain graph knowledge base based on entity relationship attributes and event data;

[0010] Step 5: Build different text error correction models and graph knowledge base search engines according to different application scenarios in the news field;

[0011] Step 6: For the text to be corrected, perform word segmentation, entity extraction and semantic analysis to obtain the upper and lower words and entity relationships, and then use the search engine to perform graph retrieval in the graph knowledge base;

[0012] Step 7: Determine the type of text error correction model. If it is a rule-based model, proceed to step 8; if it is based on a language model or a pre-trained model, proceed to step 9;

[0013] Step 8: Recall the similar word set and event set of the word to be corrected, and calculate the similarity relationship with the context to select the k similar words or events with the highest similarity scores as correct suggestions, and end the process, where k is an integer greater than 0;

[0014] Step 9: Use the positive and negative sample datasets to train and fine-tune the text error correction model. The text error correction model then automatically detects and corrects errors, combines rule correction, and gives the final correct suggestions to end the process.

[0015] Furthermore, in order to improve the quality of crawled data, in step 1, the specific method of crawling data from major news websites includes:

[0016] We sorted out all the major news websites on the Internet, selected data from major news websites within a certain period of time for analysis, calculated the average score after manual sampling, evaluation and scoring of each attribute dimension, and obtained the weighted scores of different data sources; for the sorted news sources, we allocated crawling resources according to the weighted scores, and the attributes included news quality, quantity, diversity and timeliness.

[0017] The specific methods for classifying the crawled news data and filtering the classified data include:

[0018] The crawled news data is divided and classified, and the news data that cannot be classified or has incomplete information is filtered out; the classified news data is then filtered for sensitive and bad content, and finally the dirty data is cleaned, similar news is deduplicated, and all fields are structured and stored in the database.

[0019] Furthermore, in step 2, the information extraction includes entity extraction, domain word extraction and domain event extraction.

[0020] In order to ensure the quality of extracted entity words, the specific method of entity extraction includes: using a combination of domain dictionaries and deep learning to perform entity recognition extraction, performing sentence-level entity relationship joint extraction based on a Chinese pre-training model and a conditional random field algorithm, obtaining triplets of entities and attributes, entities and relationships, and calculating the scores of the extracted entities in the news corpus, normalizing the entity scores, selecting entity words whose sum of scores is greater than a set value as entity words of the news text, and saving and organizing them in a database.

[0021] Furthermore, in order to obtain the description of the news event, the specific method of event extraction includes selecting a domain event triple, and the specific method of selecting a domain event triple includes:

[0022] The news text after classification and filtering is processed into sentences, and the news title and text sentences are converted into semantic vectors. The title content is then used as the central vector, and the text sentences are modeled and scored to obtain the importance score of each sentence.

[0023] The event triples extracted from the sentences, entity scores, and importance scores of each sentence are weighted and sorted, and the triplet with the highest score is selected as the domain event triplet.

[0024] Furthermore, in order to improve the quality of domain words, the specific method of extracting domain words includes: extracting domain words through a domain dictionary, deduplicating the acquired domain words and entity words, and saving the deduplicated domain words.

[0025] Furthermore, in order to improve the quality of the sample set, the specific method of obtaining positive samples includes: taking sentences containing entity words and domain words as positive samples. The specific method of obtaining negative samples includes: replacing entity words and domain words in positive samples with corresponding similar words to obtain sentences as negative samples; or converting positive sample sentences into speech, then randomly adding noise, and then converting them into text, and the converted text is the negative sample.

[0026] Furthermore, in order to improve the structuring and hierarchy of domain knowledge, as well as the subsequent high maintainability and scalability, in step 4, the specific method of constructing a news domain graph knowledge base based on entity relationship attributes and event data includes:

[0027] Crawl structured data containing domain entities and domain events from various encyclopedia websites, and use them as supplements to entity and event data after screening and filtering;

[0028] Then, the obtained entity words and domain words similar word data as well as the supplemented entity and event data are subjected to reference resolution and entity disambiguation operations;

[0029] Then, with entity words and events as the main body, the relationship between entities, the various attributes of entities, the relationship between entities and events, and the relationship between events are used as the attribute fields of entity words and events to build a knowledge base of entities and events; or a knowledge graph is established with domain vocabulary and domain events as the ontology, with a set of sentences containing entity words and domain words as the extended attributes of the vocabulary, and at the same time, the relationship between words and events is established.

[0030] The present invention conducts quantitative analysis on the data sources of the entire network, ensuring the reliability and diversity of the data. The crawled data is cleaned of dirty data and filtered of sensitive data, and manual review is performed, which greatly ensures the high quality of the data; entity extraction is performed by combining domain dictionaries and deep learning, and entity relationships at the sentence level are jointly extracted based on the Chinese pre-training model and the conditional random field algorithm, and entity words are obtained by weighted scoring, which greatly ensures the quality of extracted entity words; weighted scores of sentence triples and entity weights are used to obtain descriptions of news events; domain entity and event knowledge graphs are constructed to store domain knowledge, making domain knowledge more structured and hierarchical, and improving its subsequent high maintainability and scalability. By constructing relevant search engines and error correction models for different scenarios in the news field, more targeted and detailed text error correction is performed, greatly improving the effect of text error correction. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 It is a multi-source data acquisition and processing flow chart provided by an embodiment of the present invention;

[0032] Figure 2 The embodiment of the present invention provides a flowchart of entity word and domain word extraction;

[0033] Figure 3 This is a domain event triple extraction model process provided by an embodiment of the present invention;

[0034] Figure 4 This is a similar word mining and positive and negative sample generation flow chart provided by an embodiment of the present invention;

[0035] Figure 5 It is a flow chart for constructing a news domain knowledge graph provided by an embodiment of the present invention;

[0036] Figure 6 It is a graph knowledge base retrieval engine and model building flow chart provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0038] The following is combined with Figure 1-6 Specific embodiments of the present invention are described in detail.

[0039] The invention provides a multi-scenario text error correction method in the news field based on knowledge graph, comprising:

[0040] Step 1: Crawl data from major news websites, and classify and filter the crawled news data;

[0041] Step 2: Extract information from the filtered news data to obtain entity relationship attributes, event data, entity words, and domain words;

[0042] Step 3: Get positive samples based on entity words and domain words, process the positive samples to get negative samples, and the positive samples and negative samples constitute a positive and negative sample data set;

[0043] Step 4: Build a news domain graph knowledge base based on entity relationship attributes and event data;

[0044] Step 5: Build different text error correction models and graph knowledge base search engines according to different application scenarios in the news field;

[0045] Step 6: For the text to be corrected, perform word segmentation, entity extraction and semantic analysis to obtain the upper and lower words and entity relationships, and then use the search engine to perform graph retrieval in the graph knowledge base;

[0046] Step 7: Determine the type of text error correction model. If it is a rule-based model, proceed to step 8; if it is based on a language model or a pre-trained model, proceed to step 9;

[0047] Step 8: Recall the similar word set and event set of the word to be corrected, and calculate the similarity relationship with the context to select the k similar words or events with the highest similarity scores as correct suggestions, and end the process, where k is an integer greater than 0;

[0048] Step 9: Use the positive and negative sample datasets to train and fine-tune the text error correction model. The text error correction model then automatically detects and corrects errors, combines rule correction, and gives the final correct suggestions to end the process.

[0049] In order to improve the quality of crawled data, in step 1, the specific methods for crawling data from major news websites include:

[0050] We sorted out all the major news websites on the Internet, selected data from major news websites within a certain period of time for analysis, calculated the average score after manual sampling, evaluation and scoring of each attribute dimension, and obtained the weighted scores of different data sources; for the sorted news sources, we allocated crawling resources according to the weighted scores, and the attributes included news quality, quantity, diversity and timeliness.

[0051] The specific methods for classifying the crawled news data and filtering the classified data include:

[0052] The crawled news data is divided and classified, and the news data that cannot be classified or has incomplete information is filtered out; the classified news data is then filtered for sensitive and bad content, and finally the dirty data is cleaned, similar news is deduplicated, and all fields are structured and stored in the database.

[0053] In step 2, the information extraction includes entity extraction, domain word extraction and domain event extraction.

[0054] In order to ensure the quality of extracted entity words, the specific method of entity extraction includes: using a combination of domain dictionaries and deep learning to perform entity recognition extraction, performing sentence-level entity relationship joint extraction based on a Chinese pre-training model and a conditional random field algorithm, obtaining triplets of entities and attributes, entities and relationships, and calculating the scores of the extracted entities in the news corpus, normalizing the entity scores, selecting entity words whose sum of scores is greater than a set value as entity words of the news text, and saving and organizing them in a database.

[0055] In order to obtain the description of the news event, the specific method of event extraction includes selecting a domain event triple, and the specific method of selecting a domain event triple includes:

[0056] The news text after classification and filtering is processed into sentences, and the news title and text sentences are converted into semantic vectors. The title content is then used as the central vector, and the text sentences are modeled and scored to obtain the importance score of each sentence.

[0057] The event triples extracted from the sentences, entity scores, and importance scores of each sentence are weighted and sorted, and the triplet with the highest score is selected as the domain event triplet.

[0058] In order to improve the quality of domain words, the specific method of domain word extraction includes: extracting domain words through a domain dictionary, deduplicating the acquired domain words and entity words, and saving the deduplicated domain words.

[0059] In order to improve the quality of the sample set, the specific method of obtaining positive samples includes: taking sentences containing entity words and domain words as positive samples. The specific method of obtaining negative samples includes: replacing entity words and domain words in positive samples with corresponding similar words to obtain sentences as negative samples; or converting positive sample sentences into speech, then randomly adding noise, and then converting them into text, and the converted text is the negative sample.

[0060] In order to improve the structuring and hierarchy of domain knowledge, as well as the subsequent high maintainability and scalability, in step 4, the specific method of constructing a news domain graph knowledge base based on entity relationship attributes and event data includes:

[0061] Crawl structured data containing domain entities and domain events from various encyclopedia websites, and use them as supplements to entity and event data after screening and filtering;

[0062] Then, the obtained entity words and domain words similar word data as well as the supplemented entity and event data are subjected to reference resolution and entity disambiguation operations;

[0063] Then, with entity words and events as the main body, the relationship between entities, the various attributes of entities, the relationship between entities and events, and the relationship between events are used as the attribute fields of entity words and events to build a knowledge base of entities and events; or a knowledge graph is established with domain vocabulary and domain events as the ontology, with a set of sentences containing entity words and domain words as the extended attributes of the vocabulary, and at the same time, the relationship between words and events is established.

[0064] The specific embodiment process of the present invention includes five aspects: full-network data crawling and filtering, information extraction, vocabulary mining and positive and negative sample data generation, knowledge graph construction, search engine and model construction.

[0065] 1. Whole network data crawling and data filtering, such as Figure 1 As shown, specifically including:

[0066] a) We sorted out the major news websites on the Internet, such as People's Daily Online, Xinhua News Agency, CCTV.com, etc., and selected data from major news websites over a period of time for analysis, mainly focusing on the quality, quantity, diversity, timeliness and other attributes of the news. We manually sampled and evaluated each attribute dimension, then calculated the average score and obtained the weights of different sources;

[0067] b) For the sorted news sources, select several news data sources with the highest scores, allocate crawling resources according to the weight scores, increase the amount of crawled data for news sources with higher scores, and reduce the amount of crawled data for news sources with lower scores. Build a crawler algorithm based on the python open source Scrapy package and regularly iterate and update the data;

[0068] c) Categorize the crawled news data, mainly into categories such as politics, sports, entertainment, and finance, and then filter out some news data that cannot be classified or has incomplete information;

[0069] d) Construct sensitive detection algorithms based on dictionaries, pinyin, special characters, and deep learning to filter sensitive and bad news (pornography, violence, advertising, etc.) from the above-classified news data;

[0070] e) Finally, the above news data is cleaned of dirty data, similar news is deduplicated, and all fields are structured and stored in the database.

[0071] 2. Information extraction, such as Figure 2 As shown, specifically including:

[0072] a) Segment the processed news text, and embed the news title and text sentences into semantic vectors based on the ALBert algorithm. Use the title content as the central vector, and use the TextRank algorithm to model and score the text sentences to obtain the importance score of each sentence;

[0073] b) Use a combination of domain dictionaries and deep learning to perform entity recognition and extraction, perform sentence-level entity relationship joint extraction based on the ALBert+CRF method, obtain entity and attribute, entity and relationship triplets, use TF-idf (term frequency–inverse document frequency) to calculate the scores of the extracted entities in the news corpus, normalize the entity scores, select entity words whose sum of scores is greater than the set value as the entity words of the text, and save and organize them into the database;

[0074] c) Use the existing domain dictionary to extract domain words, remove duplicates from the acquired domain words and entity words, save the domain words after removal of duplicates, and enrich the existing vocabulary;

[0075] d) Filter out sentences that do not contain entity words and domain words, and keep the remaining sentences to establish a correspondence with the vocabulary. The same word can correspond to multiple sentences, and the same sentence can also correspond to multiple words;

[0076] e) After sentence segmentation, domain event extraction is performed, including extracting domain event triples. The domain event triple extraction model process is as follows: Figure 3, the task is divided into two parts: trigger word recognition and argument recognition. In argument recognition, the RoBERTa model, a fine-tuned variant of the pre-trained model BERT (based on BERT, it uses dynamic masking strategy, Next SentencePrediction, and optimization operations such as increasing training corpus and step size) is used as the initial value of embedding, and an attention layer is added to model long-distance dependencies. Combine the event triples extracted from the sentence and the entity word scores obtained in the previous step for weighted sorting, and select the triple with the highest score as the description of the news event.

[0077] 3. Similar word mining and positive and negative sample generation, such as Figure 4 As shown, specifically including:

[0078] a) Mining similar words for the entity words and domain words obtained above, adding some additional domain words in combination with the existing domain dictionary, using word2vecter and text similarity (edit distance, LCS) to mine synonyms and approximate words, and using pypinyin and pinyin toolkits to obtain homophones of words. Manually rescreening the obtained similar words, and then taking the topk as similar words derived from the words;

[0079] b) Take sentences containing entity words and domain words as positive samples, and then replace the entity words and domain words with corresponding similar words to obtain sentences as negative samples, forming a set of positive and negative samples. Another method is to use text-to-speech conversion technology to convert positive sample sentences into speech, then randomly add noise, and then convert them into text. The text obtained in this way is also added to the sample set as a negative sample.

[0080] 4. Knowledge graph construction, such as Figure 5 As shown, specifically including:

[0081] a) Obtain supplementary data of entities and events from encyclopedia data, crawl the structured data of entities and events in the above fields from various encyclopedia websites, and screen and filter them as supplements to the above data;

[0082] b) constructing a graph knowledge base for the entity relationship attributes and event data extracted above, taking entity words and events as the main body, and constructing a knowledge base of entities and events with the relationships between entities, various attributes of entities, relationships between entities and events, and relationships between events as attribute fields of entity words and events;

[0083] c) Perform reference resolution based on the similar word data of entity words and domain words collected in the early stage and the external data obtained from the encyclopedia, and perform entity disambiguation related operations through the word2vec vectorization technology of related words;

[0084] d) Build a knowledge graph based on domain vocabulary and domain events, including a set of sentences containing entity words and domain words as extended attributes of the vocabulary, and establish the relationship between words and events (if the words can be matched to the corresponding events).

[0085] 5. Graph knowledge base search engine construction and error correction model construction, such as Figure 6 As shown, specifically including:

[0086] a) Build different text error correction models for different application scenarios in the news field. For scenarios with low semantic requirements (such as political institution error correction, political figure error correction, etc.), use rule-based and statistical language model-based methods to build error correction models. For scenarios with high semantic and context requirements (such as leader quote error correction, leader semantic scenario error correction, etc.), add pre-trained language models such as Bert, and use a combination of rules + MacBERT to build error correction models;

[0087] b) Develop and build relevant vocabulary and event knowledge base retrieval engines for different application scenarios and model requirements, and formulate relevant retrieval logic in combination with the business. The vocabulary retrieval engine is constructed using words, similar words of words, and N-gram fragments of words (1-gram represents each word in a word, 2-gram represents a fragment composed of two words in a word, and so on, N is the length of the word) as retrieval keywords, while the event retrieval engine is constructed using the entity words contained in the event and the N-gram fragments of the event as retrieval keywords.

[0088] c) Develop encapsulation interface services, perform word segmentation, entity extraction and semantic analysis on the text to be corrected, obtain hyponyms and entity relationships, and then use search engines to perform graph retrieval;

[0089] d) For rule-based models, recall similar word sets and event sets of the word to be corrected, and calculate the similarity relationship with the context to select the topk with high similarity scores as correct suggestions; for language model-based and pre-trained models, it is necessary to use positive and negative sample data in the database to train and fine-tune the model, and then the model automatically detects and corrects errors, and combines rule correction to give the final correct suggestion.

[0090] The beneficial effects of the present invention are:

[0091] 1) Multi-source data crawling. Quantitative analysis is performed on data sources across the entire network to ensure the reliability and diversity of the data. Dirty data is cleaned and sensitive data is filtered after crawling, and manual review is performed to greatly ensure the high quality of the data.

[0092] 2) Domain entity extraction: We use a combination of domain dictionaries and deep learning to extract entities. We use the ALBERT+CRF method to jointly extract entity relationships at the sentence level, and then use weighted scoring to select the top K (the k with the highest scores) entity words, which greatly ensures the quality of the extracted entity words.

[0093] 3) Domain event extraction. Joint training of event extraction tasks based on deep learning models reduces the error propagation caused by multi-level tasks in traditional methods. The modeling ability of long-distance dependencies is improved by adding pre-trained models and attention layers. The weighted scores of sentence triplets and entity weights are used to obtain the description of news events.

[0094] 4) Similar word mining and positive and negative sample generation. Through NLP-related algorithm technology and toolkits, similar words are mined for the extracted domain entity words and sentences containing entity words are generated, which expands the extended attributes of domain entities and provides vocabulary and training data support for text error correction, greatly improving the error correction capability.

[0095] 5) Build domain entities and event knowledge graphs to store domain knowledge, making domain knowledge more structured and hierarchical, and improving its subsequent high maintainability and scalability. By building relevant search engines and error correction models for different scenarios in the news field, more targeted and detailed text error correction can be performed to improve the effect of text error correction.

[0096] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A multi-scenario text error correction method in the news field based on knowledge graph, It is characterized in that include: Step 1: Crawl data from major news websites, and classify and filter the crawled news data; Step 2: Extract information from the filtered news data to obtain entity relationship attributes, event data, entity words, and domain words; Step 3: Get positive samples based on entity words and domain words, process the positive samples to get negative samples, and the positive samples and negative samples constitute a positive and negative sample data set; Step 4: Build a news domain graph knowledge base based on entity relationship attributes and event data; Step 5: Build different text error correction models and graph knowledge base search engines according to different application scenarios in the news field; Step 6: For the text to be corrected, perform word segmentation, entity extraction and semantic analysis to obtain the upper and lower words and entity relationships, and then use the search engine to perform graph retrieval in the graph knowledge base; Step 7: Determine the type of text error correction model. If it is a rule-based model, proceed to step 8; if it is based on a language model or a pre-trained model, proceed to step 9; Step 8: Recall the similar word set and event set of the word to be corrected, and calculate the similarity relationship with the context to select the k similar words or events with the highest similarity scores as correct suggestions, and end the process, where k is an integer greater than 0; Step 9: Use the positive and negative sample datasets to train and fine-tune the text error correction model. The text error correction model then automatically detects and corrects errors, combines rule correction, and gives the final correct suggestions to end the process.

2. According to claim 1, the multi-scenario text error correction method in the news field based on knowledge graph, It is characterized in that In step 1, the specific methods for crawling data from major news websites include: We sorted out all the major news websites on the Internet, selected data from major news websites within a certain period of time for analysis, calculated the average score after manual sampling, evaluation and scoring of each attribute dimension, and obtained the weighted scores of different data sources; for the sorted news sources, we allocated crawling resources according to the weighted scores, and the attributes included news quality, quantity, diversity and timeliness.

3. According to claim 1, the multi-scenario text error correction method in the news field based on knowledge graph, It is characterized in that In step 1, the specific method of classifying the crawled news data and filtering the classified data includes: The crawled news data is divided and classified, and the news data that cannot be classified or has incomplete information is filtered out; the classified news data is then filtered for sensitive and bad content, and finally the dirty data is cleaned, similar news is deduplicated, and all fields are structured and stored in the database.

4. According to claim 1, the multi-scenario text error correction method in the news field based on knowledge graph, It is characterized in that In step 2, the information extraction includes entity extraction, domain word extraction and domain event extraction.

5. According to claim 4, the multi-scenario text error correction method in the news field based on knowledge graph, It is characterized in that The specific method of entity extraction includes: using a combination of domain dictionaries and deep learning to perform entity recognition extraction, performing sentence-level entity relationship joint extraction based on a Chinese pre-training model and a conditional random field algorithm, obtaining triplets of entities and attributes, entities and relationships, and calculating the scores of the extracted entities in the news corpus, normalizing the entity scores, selecting entity words whose sum of scores is greater than a set value as entity words of the news text, and saving and organizing them in a database.

6. According to claim 5, the multi-scenario text error correction method in the news field based on knowledge graph, It is characterized in that The specific method of event extraction includes selecting a domain event triple, and the specific method of selecting a domain event triple includes: The news text after classification and filtering is processed into sentences, and the news title and text sentences are converted into semantic vectors. The title content is then used as the central vector, and the text sentences are modeled and scored to obtain the importance score of each sentence. The event triples extracted from the sentences, entity scores, and importance scores of each sentence are weighted and sorted, and the triplet with the highest score is selected as the domain event triplet.

7. According to claim 4, the multi-scenario text error correction method in the news field based on knowledge graph, It is characterized in that The specific method of extracting domain words includes: extracting domain words through a domain dictionary, performing deduplication processing on the obtained domain words and entity words, and saving the deduplicated domain words.

8. According to claim 1, the multi-scenario text error correction method in the news field based on knowledge graph, It is characterized in that In step 3, the specific method of obtaining positive samples includes: taking sentences containing entity words and domain words as positive samples.

9. According to claim 8, the multi-scenario text error correction method in the news field based on knowledge graph, It is characterized in that Specific methods for obtaining negative samples include: replacing entity words and domain words in positive samples with corresponding similar words to obtain sentences as negative samples; or converting positive sample sentences into speech, then randomly adding noise, and then converting them into text, and the converted text is the negative sample.

10. The news field multi-scenario text error correction method based on knowledge graph according to claim 1, It is characterized in that In step 4, the specific method of constructing a news domain graph knowledge base based on entity relationship attributes and event data includes: Crawl structured data containing domain entities and domain events from various encyclopedia websites, and use them as supplements to entity and event data after screening and filtering; Then, the obtained entity words and domain words similar word data as well as the supplemented entity and event data are subjected to reference resolution and entity disambiguation operations; Then, with entity words and events as the main body, the relationship between entities, the various attributes of entities, the relationship between entities and events, and the relationship between events are used as the attribute fields of entity words and events to build a knowledge base of entities and events; or a knowledge graph is established with domain vocabulary and domain events as the ontology, with a set of sentences containing entity words and domain words as the extended attributes of the vocabulary, and at the same time, the relationship between words and events is established.

Citation Information

Patent Citations

  • Text error correction method, device, equipment and computer readable medium

    CN114036930A

  • Multi-granularity text error correction data set generation method, device and apparatus

    CN114048321A

  • Tax field-oriented knowledge map construction method and system

    WO2021196520A1