Document content checking method and system based on large model

Through the large model-based document content verification method, combined with the integrated learning method, the problem of low efficiency and low accuracy of official document content verification in the existing technology is solved, and efficient and accurate document content verification is achieved, which is suitable for a wide range of applications. scenarios, reducing human burden and content risks.

CN118673144AActive Publication Date: 2024-09-20JIANGSU SIJI TECH SERVICE CO LTD

Patent Information

Application Number
CN202410811054.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-20
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

In the existing technology, the content verification of official documents relies on manual or rule inspection, which results in low efficiency and low accuracy. The integrity and accuracy of the verification cannot be guaranteed, and it is difficult to adapt after the rules change.

Method used

Using a document content verification method based on a large model, by constructing official document data and fine-tuning the model, combined with the integrated learning method, error content is extracted from the output results of multiple detection models to achieve efficient verification of document content.

Benefits of technology

It significantly improves the efficiency and accuracy of document verification, reduces the human burden, ensures the efficiency and broad applicability of verification, and reduces the risk of document content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118673144A
    Figure CN118673144A
Patent Text Reader

Abstract

A document content checking method and system based on a large model, the method comprising: obtaining a training data set, training a plurality of detection models, the detection methods of the detection models being different; selecting an optimal detection model according to the error rate of the output result of each detection model; establishing a loading interface between the optimal detection model and the word processing software, and establishing calling interfaces between other detection models and the word processing software; when the word processing software loads the optimal detection model to execute document content checking, the word processing software also calls other detection models to check the document content checked by the optimal detection model; and extracting the position of the error content in the document from the output result of each detection model by adopting an ensemble learning method. And the issuing document is checked through the plug-in, so that the expenditure of manpower and time is reduced, and the document checking efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the fields of electric power technology, information management technology and office technology, and more specifically, relates to a method and system for document content verification based on a large model. Background Art

[0002] Official documents are documents that require clear and rigorous content and can be used to convey important matters. Official documents need to be strictly reviewed before they are sent, but if they are verified manually, it will not only be time-consuming and labor-intensive, but also fail to guarantee the efficiency, accuracy and completeness of the verification. Therefore, this patent proposes a method for document content verification based on a large model. By constructing official document data and fine-tuning the model, the model is verified with the document content to obtain the final verification result. By embedding the document proofreading function in wps in the form of a plug-in, the office efficiency of the staff can be effectively improved, and the comparison work can be completed quickly and easily, reducing the burden on the staff.

[0003] At present, the company's traditional content verification route is to use purely manual methods or specified rules to check and proofread official documents. This is not only time-consuming and labor-intensive, but also seriously consumes human resources. After the rules change, the accuracy and completeness of the verification cannot be guaranteed.

[0004] Prior art document 1 (CN116663525B) discloses a document review method, device, equipment and storage medium, wherein the document review method includes: obtaining a target document content text, the target document content text is the content text to be reviewed in the document to be reviewed; retrieving review reference information matching the target document content text from the review reference information library to obtain target review reference information, the target review reference information is used to determine whether the target document content text meets the required standards; calling a preset large language model, based on the target document content text and the target review reference information, generating a review suggestion for the target document content text. The shortcoming of prior art document 1 is that the content is only reviewed for the inspection standard. Summary of the invention

[0005] In order to solve the deficiencies in the prior art, the present invention provides a method and system for document content verification based on a large model, by constructing official document data and fine-tuning the model, and performing model verification with the document content to obtain the final verification result.

[0006] Solving the burden of manual verification is an important measure to ensure the quality of official documents and greatly improves the efficiency of official document verification. It has high verification accuracy and efficiency, greatly reduces the risk of leaking official document content, and can be used in a wide range of scenarios.

[0007] The present invention adopts the following technical solution.

[0008] A first aspect of the present invention provides a method for document content verification based on a large model, comprising the following steps:

[0009] Obtain training data sets and train multiple detection models, each of which has a different detection method; select the best detection model based on the error rate of the output results of each detection model;

[0010] Establishing a loading interface between the best detection model and the word processing software, and establishing a calling interface between other detection models and the word processing software;

[0011] When the word processing software loads the best detection model to perform document content verification, the word processing software also calls other detection models to verify the document content that has been verified by the best detection model; using an integrated learning method, the location of the erroneous content in the document is extracted from the output results of each detection model.

[0012] Preferably, the obtaining of the training data set includes collecting basic data and processing and converting the data;

[0013] The basic data includes the collection of company full names and abbreviations, department full names and abbreviations, leadership names and rankings, special vocabulary and personal vocabulary; it also includes external public data sighan_2015 data and State Grid power professional field data sets;

[0014] Data processing and conversion includes converting all data into training data formats suitable for each detection model.

[0015] Preferably, the training of multiple detection models specifically includes:

[0016] The training data set is sent to the large language model ChatYuan and the traditional model MacBert-CSC model for training;

[0017] The large language model ChatYuan was trained for 10 rounds using the external 64-layer Lora. The traditional model MacBert-CSC was trained for 50 and 100 rounds to obtain three models, including ChatYuan-10 model, MacBert-CSC-50 round and MacBert-CSC-100 round model.

[0018] The model performance is evaluated based on performance indicators, including accuracy, recall, comprehensiveness, and precision.

[0019] Preferably, the selecting the best detection model specifically includes:

[0020] Select the best detection model according to the error rate of the output results of each detection model;

[0021] If the error rates of the output results of multiple detection models are all 0, gradually reduce the data content in the training data set and compare the error rates of the output results of each detection model again;

[0022] While reducing the training data set, the response time of each detection model is recorded;

[0023] The weighted sum of error rate and response time is used as the basis for determining the best detection model.

[0024] Preferably, the establishment of a loading interface between the best detection model and the word processing software, and the establishment of a calling interface between other detection models and the word processing software, specifically include:

[0025] Use word processing software to provide users with a channel to customize the required plug-ins, and define the properties and functions of the word processing software loading interface by modifying the jsplugins.xml file to realize the addition and modification of word processing software add-ons;

[0026] The custom XML add-in file is configured in the oem.ini file of the word processing software. When the corresponding issued document is opened, the function area of ​​the word processing software displays the custom loading interface, including the document auxiliary verification.

[0027] Preferably, when the word processing software loads the best detection model to perform document content verification, the word processing software also calls other detection models to verify the document content that has been verified by the best detection model, specifically including:

[0028] A loading interface is established between the best detection model and the word processing software, and the best detection model is displayed as a document auxiliary verification plug-in in the function area of ​​the word processing software;

[0029] Establish calling interfaces between other detection models and word processing software, allowing other detection models to be called in the background;

[0030] Define an error correction function to format the text into the model's input format; when the user uses the add-in to check the document in the word processing software, call the error correction function and call the best detection model through the loading interface to perform preliminary checking;

[0031] While the best detection model verifies the document content, other detection models are called in parallel through the calling interface to verify the same document content.

[0032] Preferably, the error correction function is called, and the preliminary prediction result returned by the error correction function is displayed in a word processing software interface, and the error type is classified and marked;

[0033] Integrate the error type, location, and corrected text predicted by the model into structured detection results;

[0034] The error types are classified and marked, and different error types are distinguished by different colors in the word processing software interface and highlighted.

[0035] Preferably, the predicted error types include: typos, multiple-word errors, missing-word errors, word order errors, leader detection, non-standard expressions, sensitive content, and custom vocabulary.

[0036] Preferably, the ensemble learning method is used to extract the location of the erroneous content in the document from the output results of each detection model, specifically including:

[0037] Compare the verification results of the best detection model with those of other detection models to extract the locations of all erroneous contents in the document;

[0038] The final error location is determined by ensemble learning. If at least two models detect an error at the same location, it is considered that there is a valid error at that location, and the final error location is determined.

[0039] Based on the final error location, apply the correction suggestions to modify the document content.

[0040] A second aspect of the present invention provides a document content checking system based on a large model, comprising: a data preparation module, a model training module, an add-on service configuration module, and an error prediction and correction module;

[0041] The data preparation module collects and prepares basic data for model training and fine-tuning, and converts the collected data into training data formats for large language models and traditional models;

[0042] The model training module trains large language models and traditional models, combines multiple models obtained through training, counts and evaluates the correct recognition of the models, and selects the model with the best performance;

[0043] The add-in service configuration module customizes and configures add-ins in WPS to assist in document verification;

[0044] The error prediction and correction module performs text verification on documents based on the trained model and generates error detection and correction suggestions.

[0045] Compared with the prior art, the beneficial effects of the present invention include at least: the document content proofreading method based on the large model supports document proofreading for error proofreading of official document content. Through deep integration with the process of the collaborative office system, the document proofreading function is realized in WPS as a plug-in. The method greatly reduces the expenditure of manpower and time, improves the efficiency of official document proofreading, and lays the foundation for building a content proofreading framework for different scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 It is a flowchart of document proofreading based on a large model provided in accordance with an embodiment of the present invention;

[0047] Figure 2 It is a basic data preparation hierarchical structure diagram provided according to an embodiment of the present invention;

[0048] Figure 3 is a model training flow chart provided according to an embodiment of the present invention;

[0049] Figure 4 It is a wps custom add-in flow chart provided according to an embodiment of the present invention;

[0050] Figure 5 It is a pseudo code diagram of error correction provided according to an embodiment of the present invention. DETAILED DESCRIPTION

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

[0052] like Figure 1 As shown, embodiment 1 of the present invention provides a method for document content verification based on a large model, comprising the following steps:

[0053] Obtain training data sets and train multiple detection models, each of which has a different detection method; select the best detection model based on the error rate of the output results of each detection model;

[0054] Preferably, the obtaining of the training data set includes collecting basic data and processing and converting the data;

[0055] like Figure 2 As shown, the basic data includes the collection of company full names and abbreviations, department full names and abbreviations, leadership names and rankings, special vocabulary and personal vocabulary; it also includes external public data sighan_2015 data and State Grid power professional field data sets;

[0056] Data processing and conversion includes converting all data into training data formats suitable for each detection model.

[0057] The models include a large language chatyuan model and a traditional model MacBert-CSC model;

[0058] The training data format of the large language chatyuan model is as follows:

[0059] {

[0060] "conversation_id":1,

[0061] "category":"wordcheck",

[0062] "conversation":[

[0063] {

[0064] "human":"Text correction: \n Thermal power generation 1128 hours, 31 hours more than the same period last year\nAnswer",

[0065] "assistant":"1128 minor incidents in thermal power generation, 31 hours more than the same period last year"

[0066] }

[0067] ],

[0068] "dataset":"csc"

[0069] }

[0070] The traditional model macbert-csc model training data format is as follows:

[0071] {

[0072] "id":1,

[0073] "original_text":"Thermal power generation: 1128 hours, 31 hours more than the same period last year;",

[0074] "wrong_ids":[7],

[0075] "correct_text":"1128 thermal power incidents, 31 hours more than the same period last year;"

[0076] }.

[0077] Preferably, the training of multiple detection models specifically includes:

[0078] The training data set is sent to the large language model ChatYuan and the traditional model MacBert-CSC model for training;

[0079] The large language model ChatYuan was trained for 10 rounds using the external 64-layer Lora. The traditional model MacBert-CSC was trained for 50 and 100 rounds to obtain three models, including ChatYuan-10 model, MacBert-CSC-50 round and MacBert-CSC-100 round model.

[0080] The model performance is evaluated based on performance indicators, including accuracy, recall, comprehensiveness and precision, which are used to evaluate the classification effect of the model, such as Figure 3 As shown:

[0081] The prepared data is used to train three different models: Chatyuan model, macbert-csc-50 model and macbert-csc-100 model. The training results of each model are evaluated by four performance indicators: precision (TP), recall (R), F1 value (F1) and accuracy (ACC);

[0082] The evaluation results of the Chatyuan-10 model are: TP is 0.82, R is 0.94, F1 is 0.85, and ACC is 0.82;

[0083] The evaluation results of the macbert-csc-50 model are: TP is 0.76, R is 0.79, F1 is 0.82, and ACC is 0.70;

[0084] The evaluation results of the macbert-csc-100 model are: TP is 0.80, R is 0.74, F1 is 0.72, and ACC is 0.65;

[0085] Through these evaluation indicators, we finally obtained the best performance model: chatyuan-10 model.

[0086] It is worth noting that by selecting the best detection model, it is possible to ensure that the best model is always used for detection in different scenarios and requirements. This method can dynamically select the model with the best performance according to actual application needs and specific circumstances, improve the accuracy and reliability of detection, and also save resources and avoid unnecessary computing overhead.

[0087] Preferably, the selecting the best detection model specifically includes:

[0088] Select the best detection model according to the error rate of the output results of each detection model;

[0089] If the error rates of the output results of multiple detection models are all 0, gradually reduce the data content in the training data set and compare the error rates of the output results of each detection model again;

[0090] While reducing the training data set, the response time of each detection model is recorded;

[0091] The weighted sum of error rate and response time is used as the basis for determining the best detection model.

[0092] First, a loading interface between the best detection model and the word processing software is established, and a calling interface between other detection models and the word processing software is established;

[0093] Preferably, the step of first establishing a loading interface between the best detection model and the word processing software, and establishing a calling interface between other detection models and the word processing software, specifically includes:

[0094] Use word processing software to provide users with a channel to customize the required plug-ins, and define the properties and functions of the word processing software loading interface by modifying the jsplugins.xml file to realize the addition and modification of word processing software add-ons;

[0095] The custom XML add-in file is configured in the oem.ini file of the word processing software. When the corresponding issued document is opened, the function area of ​​the word processing software displays the custom loading interface, including the document auxiliary verification.

[0096] It is worth noting that setting the calling priority of the detection model can ensure that the most appropriate model is called first when performing the detection task. This not only improves the detection efficiency and reduces the processing time, but also optimizes the use of resources, ensuring that the system always maintains efficient operation when dealing with detection tasks of different complexity, and improving the response speed and performance of the overall system.

[0097] When the word processing software loads the best detection model to perform document content verification, the word processing software also calls other detection models to verify the document content that has been verified by the best detection model; using an integrated learning method, the location of the erroneous content in the document is extracted from the output results of each detection model.

[0098] Preferably, when the word processing software loads the best detection model to perform document content verification, the word processing software also calls other detection models to verify the document content that has been verified by the best detection model, specifically including:

[0099] A loading interface is established between the best detection model and the word processing software, and the best detection model is displayed as a document auxiliary verification plug-in in the function area of ​​the word processing software;

[0100] Establish calling interfaces between other detection models and word processing software, allowing other detection models to be called in the background;

[0101] Define an error correction function to format the text into the input format of the model; when the user uses the add-in to check the document in a word processing software, call the error correction function, and call the best detection model through the loading interface to perform preliminary checking;

[0102] The defined error correction function:

[0103] def correct(prompt):

[0104] prompt = "Error correction task:\n" + prompt + "\nAnswer:"

[0105] result = answer(prompt)

[0106] return result

[0107] Call the error correction function:

[0108] corrected_text = correct('渝店家园')

[0109] Output result:

[0110] Answer: 渝电家园

[0111] While the best detection model checks the document content, call other detection models in parallel through the interface to check the same document content.

[0112] It should be noted that by comparing the output results of different detection models, the accuracy and consistency of the detection can be effectively verified. This method helps to discover the differences and potential errors between models, and then optimize and adjust. The result comparison can also provide multi-level verification, increase the credibility and robustness of the detection results, and provide reliable data support for further decision-making.

[0113] Preferably, call the error correction function, display the preliminary prediction result returned by the error correction function in the word processing software interface, and classify and label the error types;

[0114] Integrate the error types, positions and corrected text predicted by the model into a structured detection result;

[0115] The classification and labeling of the error types distinguish different error types by different colors in the word processing software interface and highlight them.

[0116] Preferably, the predicted error types include: misspelled words, extra words error, missing words error, word order error, leader detection, non-standard expressions, sensitive content, custom vocabulary.

[0117] The significant difference between the present invention and the prior art is that it supports multiple types of content verification, including typos, multiple word errors, missing word errors, word order errors, leader detection, non-standard expressions, sensitive content, common sense errors, etc.

[0118] Compared with the prior art document 1, the beneficial effect achieved is that more functional verifications are supported.

[0119] Preferably, the ensemble learning method is used to extract the location of the erroneous content in the document from the output results of each detection model, specifically including:

[0120] Compare the verification results of the best detection model with those of other detection models to extract the locations of all erroneous contents in the document;

[0121] The final error location is determined by ensemble learning. If at least two models detect an error at the same location, it is considered that there is a valid error at that location, and the final error location is determined.

[0122] Based on the final error location, apply the correction suggestions to modify the document content.

[0123] The integrated learning method includes but is not limited to the voting mechanism. Those skilled in the art may adopt other integrated methods such as weighted averaging, maximum likelihood estimation, etc. according to the specific circumstances to improve the accuracy and reliability of the verification results.

[0124] The specific pseudo code of the ensemble learning method is as follows:

[0125]

[0126]

[0127] Example 2 of the present invention provides a document content checking system based on a large model, including: a data preparation module, a model training module, an add-on service configuration module, and an error prediction and correction module;

[0128] The data preparation module collects and prepares basic data for model training and fine-tuning, and converts the collected data into training data formats for large language models and traditional models;

[0129] The model training module trains large language models and traditional models, combines multiple models obtained through training, counts and evaluates the correct recognition of the models, and selects the model with the best performance;

[0130] The add-in service configuration module customizes and configures add-ins in WPS to assist in document verification;

[0131] The error prediction and correction module performs text verification on documents based on the trained model and generates error detection and correction suggestions.

[0132] Compared with the prior art, the beneficial effects of the present invention include at least: the document content proofreading method based on the large model supports document proofreading for error proofreading of official document content. Through deep integration with the process of the collaborative office system, the document proofreading function is realized in WPS as a plug-in. The method greatly reduces the expenditure of manpower and time, improves the efficiency of official document proofreading, and lays the foundation for building a content proofreading framework for different scenarios.

[0133] The present invention may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.

[0134] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0135] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0136] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0137] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A method for document content verification based on a large model, wherein the large model includes multiple detection models, characterized in that: The following steps are involved: Obtain training data sets and train multiple detection models, each of which has a different detection method; select the best detection model based on the error rate of the output results of each detection model; Establishing a loading interface between the best detection model and the word processing software, and establishing a calling interface between other detection models and the word processing software; When the word processing software loads the best detection model to perform document content verification, the word processing software also calls other detection models to verify the document content that has been verified by the best detection model; An integrated learning method is used to extract the location of erroneous content in the document from the output results of each detection model.

2. The method for document content verification based on a large model according to claim 1, characterized in that: The obtaining of the training data set includes collecting basic data and processing and converting the data; The basic data includes the collection of company full names and abbreviations, department full names and abbreviations, leadership names and rankings, special vocabulary and personal vocabulary; it also includes external public data sighan_2015 data and State Grid power professional field data sets; Data processing and conversion includes converting all data into training data formats suitable for each detection model.

3. The method for document content verification based on a large model according to claim 1, characterized in that: The training of multiple detection models specifically includes: The training data set is sent to the large language model ChatYuan and the traditional model MacBert-CSC model for training; The large language model ChatYuan was trained for 10 rounds using the external 64-layer Lora. The traditional model MacBert-CSC was trained for 50 and 100 rounds to obtain three models, including ChatYuan-10 model, MacBert-CSC-50 round and MacBert-CSC-100 round model. The model performance is evaluated based on performance indicators, including accuracy, recall, comprehensiveness, and precision.

4. The method for document content verification based on a large model according to claim 1, characterized in that: The selecting of the best detection model specifically includes: Select the best detection model according to the error rate of the output results of each detection model; If the error rates of the output results of multiple detection models are all 0, gradually reduce the data content in the training data set and compare the error rates of the output results of each detection model again; While reducing the training data set, the response time of each detection model is recorded; The weighted sum of error rate and response time is used as the basis for determining the best detection model.

5. The method for document content verification based on a large model according to claim 1, characterized in that: The establishment of a loading interface between the best detection model and the word processing software, and the establishment of a calling interface between other detection models and the word processing software, specifically include: Use word processing software to provide users with a channel to customize the required plug-ins, and define the properties and functions of the word processing software loading interface by modifying the jsplugins.xml file to realize the addition and modification of word processing software add-ons; The custom XML add-in file is configured in the oem.ini file of the word processing software. When the corresponding issued document is opened, the function area of ​​the word processing software displays the custom loading interface, including the document auxiliary verification.

6. The method for document content verification based on a large model according to claim 1, characterized in that: When the word processing software loads the best detection model to perform document content verification, the word processing software also calls other detection models to verify the document content that has been verified by the best detection model, specifically including: A loading interface is established between the best detection model and the word processing software, and the best detection model is displayed as a document auxiliary verification plug-in in the function area of ​​the word processing software; Establish calling interfaces between other detection models and word processing software, allowing other detection models to be called in the background; Define an error correction function to format the text into the model's input format; when the user uses the add-in to check the document in the word processing software, call the error correction function and call the best detection model through the loading interface to perform preliminary checking; While the best detection model verifies the document content, other detection models are called in parallel through the calling interface to verify the same document content.

7. The method for document content verification based on a large model according to claim 6, characterized in that: The error correction function is called, and the preliminary prediction result returned by the error correction function is displayed in the text processing software interface, and the error type is classified and marked; Integrate the error type, location, and corrected text predicted by the model into structured detection results; The error types are classified and marked, and different error types are distinguished by different colors in the word processing software interface and highlighted.

8. The method for document content verification based on a large model according to claim 6, characterized in that: The predicted error types include: typos, multiple-word errors, missing-word errors, word order errors, leader detection, non-standard expressions, sensitive content, and custom vocabulary.

9. The method for document content verification based on a large model according to claim 1, characterized in that: The ensemble learning method is used to extract the location of the erroneous content in the document from the output results of each detection model, specifically including: Compare the verification results of the best detection model with those of other detection models to extract the locations of all erroneous contents in the document; The final error location is determined by ensemble learning. If at least two models detect an error at the same location, it is considered that there is a valid error at that location, and the final error location is determined. Based on the final error location, apply the correction suggestions to modify the document content.

10. A document content checking system based on a large model, comprising: Data preparation module, model training module, loading interface configuration module, and error prediction and correction module; A method for checking document content based on a large model as claimed in any one of claims 1 to 9 is carried out, characterized in that: The data preparation module collects and prepares basic data for model training and fine-tuning, and converts the collected data into training data formats for large language models and traditional models; The model training module trains large language models and traditional models, combines multiple models obtained through training, counts and evaluates the correct recognition of the models, and selects the model with the best performance; The loading interface configuration module customizes and configures add-ins in the word processing software to assist in checking the document; The error prediction and correction module performs text verification on documents based on the trained model and generates error detection and correction suggestions.

Citation Information

Patent Citations

  • Supplier qualification auditing method and auditing device based on double-model fusion

    CN114299520A

  • Chinese text error correction and verification method and device, equipment and storage medium

    CN115169330A

  • Document auditing method, device and equipment and storage medium

    CN116663525A

  • Method and apparatus for establishing text error correction model, medium and electronic device

    WO2022116445A1

Cited By

  • Inspection report checking and auditing method and system based on large model and medium

    CN118967073A