Automatic generation method and system for purchase technical specification book
Through the automated generation method, pre-trained language models are used to build document error correction and sensitive word recognition models, which solves the inefficiency and error problems caused by manual review and improves the quality and efficiency of the preparation of procurement technical specifications.
Patent Information
- Application Number
- CN202410718960.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-08-30
AI Technical Summary
In the existing technology, the language of the procurement technical specifications is manually reviewed to see whether it is standardized, which results in low efficiency and is prone to errors.
Using an automated generation method, by obtaining and preprocessing the data set, it is divided into a training set and a verification set, and the pre-trained language model is used for multiple rounds of training and fine-tuning to build a document error correction and sensitive word recognition model to achieve document error correction and sensitive word recognition. Identify, perform error detection and correction, and finally generate specification documents through manual review and optimization.
It improves the quality and efficiency of the preparation of procurement technical specifications, solves the problem of language standardization, reduces errors, and realizes the automatic generation of technical specifications.
Smart Images

Figure CN118569220A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of natural language technology, and in particular to a method and system for automatically generating a procurement technical specification document. Background Art
[0002] In the process of building a green, modern, digital supply chain, procurement technical specifications directly affect the sustainability, digitalization and overall benefits of the supply chain through the procurement process. Procurement technical specifications stipulate environmental protection and sustainability standards in the procurement process, determine the degree of application of digital technology, and improve the transparency and compliance of the procurement process.
[0003] In the prior art, whether the language in the procurement technical specification is standardized is manually reviewed, which is inefficient and prone to errors.
[0004] Therefore, the present invention urgently needs to improve the preparation quality of procurement technical specifications and improve the preparation efficiency by introducing natural language processing technology.
[0005] Currently, no effective solution has been proposed to address the problem of low efficiency and proneness to errors caused by manually reviewing whether the language in the procurement technical specification is standardized in the existing technology. Summary of the invention
[0006] The embodiment of the present invention provides a method and system for automatically generating a procurement technical specification book, so as to solve the problems in the prior art of manually reviewing whether the language in the procurement technical specification book is standardized, which causes low efficiency and is prone to errors.
[0007] To achieve the above-mentioned purpose, on the one hand, the present invention provides a method for automatically generating a procurement technical specification, which method includes: S1, obtaining a data set and preprocessing the data set; dividing the preprocessed data set into a training set and a verification set; wherein the data set includes the original procurement technical specification; S2, training the training set through a pre-trained language model for multiple rounds to obtain a document error correction model; fine-tuning the document error correction model through a verification set to obtain a final document error correction model; training the training set through an original sensitive word recognition model to obtain a target sensitive word recognition model; fine-tuning the target sensitive word recognition model through a verification set to obtain a final sensitive word recognition model; S3, performing error detection on the data set to be detected through the final document error correction model and performing a first correction; and performing sensitive word recognition on the data set after the first correction through the final sensitive word recognition model and performing a second correction, and outputting the data set after the second correction as a standard data set; S4, manually reviewing the standard data set for adjustment and optimization to obtain the final data set.
[0008] Optionally, the preprocessing of the data set includes: manually identifying and filtering noise characters, special symbols, HTML tags, comments and sensitive words in the data set; marking spelling errors and grammatical errors in the filtered data set to obtain manual calibration results; and constructing all identified sensitive words into a sensitive word library.
[0009] Optionally, the method of fine-tuning the document error correction model through the validation set to obtain the final document error correction model includes: inputting the validation set into the document error correction model to obtain a first prediction result; comparing the first prediction result with the manual calibration result to obtain the error correction accuracy; if it is within a preset error correction accuracy range; then using the document error correction model as the final document error correction model; otherwise, training the training set through the document error correction model to fine-tune the document error correction model until the error correction accuracy is within the preset error correction accuracy range, stopping the training, and obtaining the final document error correction model; the method of fine-tuning the target sensitivity through the validation set The sensitive word recognition model is used to obtain the final sensitive word recognition model, including: inputting the verification set into the target sensitive word recognition model to obtain a second prediction result; comparing the second prediction result with the manually recognized sensitive words to obtain the sensitive word recognition accuracy; if it is within the preset sensitive word recognition accuracy range; then the target sensitive word recognition model is used as the final sensitive word recognition model; otherwise, the training set is trained through the target sensitive word recognition model to fine-tune the target sensitive word recognition model until the sensitive word recognition accuracy is within the preset sensitive word recognition accuracy range, and then the training is stopped to obtain the final sensitive word recognition model.
[0010] Optionally, the process of performing error detection and a first correction on the data set to be detected by passing the final document error correction model through the Bi-GRU network in the final document error correction model to analyze the error probability of each character in each sentence of the data set to be detected; generating a soft mask for the error probability of characters greater than a preset error probability and performing weighted embedding to obtain a corresponding embedding sequence; and proposing replacement suggestions for the embedded sequence and performing replacement through the correction network in the final document error correction model to obtain the data set after the first correction.
[0011] Optionally, the process of performing sensitive word recognition on the data set after the first revision through the final sensitive word recognition model and performing a second revision includes: forming a certain finite automaton with the words in the sensitive word library; inputting the data set after the first revision into the finite automaton to traverse and match whether there are sensitive words in the data set after the first revision; marking the sensitive words in the data set after the first revision by special symbols or colors and deleting or modifying them.
[0012] On the other hand, the present invention provides a system for automatically generating procurement technical specifications, which includes: a preprocessing unit, used to obtain a data set and preprocess the data set; divide the preprocessed data set into a training set and a verification set; wherein the data set includes the original procurement technical specifications; a model training unit, used to train the training set through a pre-trained language model for multiple rounds to obtain a document error correction model; fine-tune the document error correction model through a verification set to obtain a final document error correction model; train the training set through an original sensitive word recognition model to obtain a target sensitive word recognition model; fine-tune the target sensitive word recognition model through a verification set to obtain a final sensitive word recognition model; a correction unit, used to perform error detection and a first correction on the data set to be detected through the final document error correction model; and perform sensitive word recognition and a second correction on the data set after the first correction through the final sensitive word recognition model, and output the data set after the second correction as a standard data set; an optimization unit, used to manually review the standard data set for adjustment and optimization to obtain the final data set.
[0013] Optionally, the preprocessing of the data set includes: manually identifying and filtering noise characters, special symbols, HTML tags, comments and sensitive words in the data set; marking spelling errors and grammatical errors in the filtered data set to obtain manual calibration results; and constructing all identified sensitive words into a sensitive word library.
[0014] Optionally, the method of fine-tuning the document error correction model through the validation set to obtain the final document error correction model includes: inputting the validation set into the document error correction model to obtain a first prediction result; comparing the first prediction result with the manual calibration result to obtain the error correction accuracy; if it is within a preset error correction accuracy range; then using the document error correction model as the final document error correction model; otherwise, training the training set through the document error correction model to fine-tune the document error correction model until the error correction accuracy is within the preset error correction accuracy range, stopping the training, and obtaining the final document error correction model; the method of fine-tuning the target sensitivity through the validation set The sensitive word recognition model is used to obtain the final sensitive word recognition model, including: inputting the verification set into the target sensitive word recognition model to obtain a second prediction result; comparing the second prediction result with the manually recognized sensitive words to obtain the sensitive word recognition accuracy; if it is within the preset sensitive word recognition accuracy range; then the target sensitive word recognition model is used as the final sensitive word recognition model; otherwise, the training set is trained through the target sensitive word recognition model to fine-tune the target sensitive word recognition model until the sensitive word recognition accuracy is within the preset sensitive word recognition accuracy range, and then the training is stopped to obtain the final sensitive word recognition model.
[0015] Optionally, the process of performing error detection and a first correction on the data set to be detected by passing the final document error correction model through the Bi-GRU network in the final document error correction model to analyze the error probability of each character in each sentence of the data set to be detected; generating a soft mask for the error probability of characters greater than a preset error probability and performing weighted embedding to obtain a corresponding embedding sequence; and proposing replacement suggestions for the embedded sequence and performing replacement through the correction network in the final document error correction model to obtain the data set after the first correction.
[0016] Optionally, the process of performing sensitive word recognition on the data set after the first revision through the final sensitive word recognition model and performing a second revision includes: forming a certain finite automaton with the words in the sensitive word library; inputting the data set after the first revision into the finite automaton to traverse and match whether there are sensitive words in the data set after the first revision; marking the sensitive words in the data set after the first revision by special symbols or colors and deleting or modifying them.
[0017] Beneficial effects of the present invention:
[0018] The present invention provides a method and system for automatically generating a procurement technical specification book, wherein the method realizes the automatic generation of the technical specification book through document error correction and sensitive word recognition technology, and the language in the generated technical specification book is standardized and standardized; it solves the problem of low efficiency and easy error caused by manual review of whether the language in the procurement technical specification book is standardized in the prior art. The method of the present invention improves the preparation quality of the procurement technical specification book and improves the preparation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a flow chart of a method for automatically generating a procurement technical specification provided by an embodiment of the present invention;
[0020] Figure 2 It is a structural diagram of a system for automatically generating procurement technical specifications provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0022] Figure 1 is a flow chart of a method for automatically generating a procurement technical specification provided by an embodiment of the present invention. Figure 1 As shown, the method includes:
[0023] S1. Obtain a data set and preprocess the data set; divide the preprocessed data set into a training set and a validation set; wherein the data set includes an original procurement technical specification book;
[0024] Specifically, the data set includes: all procurement technical specifications and contract documents of Company A in the past years (e.g., five years), including technical requirements and quality standards for procurement of various power equipment and materials;
[0025] The preprocessing of the data set comprises:
[0026] Noise characters, special symbols, HTML tags, comments and sensitive words (such as supplier name, contract amount, etc.) in the data set are manually identified and filtered; this ensures the neatness and consistency of the data and ensures that the data will not leak business secrets during subsequent training.
[0027] The filtered data set is annotated with spelling errors and grammatical errors to obtain manual calibration results; and all identified sensitive words are constructed into a sensitive word library.
[0028] The preprocessed (i.e. filtered and labeled) dataset is divided into a training set and a validation set; the training set is used to train the model, and the validation set is used to evaluate the performance indicators of the model so that it can eventually meet the performance requirements.
[0029] S2, training the training set through the pre-trained language model for multiple rounds to obtain a document error correction model; fine-tuning the document error correction model through the validation set to obtain a final document error correction model; training the training set through the original sensitive word recognition model to obtain a target sensitive word recognition model; fine-tuning the target sensitive word recognition model through the validation set to obtain a final sensitive word recognition model;
[0030] Specifically, first select a pre-trained language model (such as BERT, RoBERTa, GPT-3) to correct spelling and grammatical errors in the technical specification book through its powerful language understanding and generation capabilities; select a word embedding-based model (such as Word2Vec, FastText) or use a deep learning model (such as LSTM, Transformer) as the original sensitive word recognition model to detect sensitive words in the technical specification book.
[0031] Furthermore, the training set and validation set are converted into a form that can be understood and processed by the model and can be directly input into the deep learning model, that is, converted into vector representation.
[0032] The training set is trained for multiple rounds using a selected pre-trained language model to obtain a document error correction model; the training set is trained using a selected original sensitive word recognition model to obtain a target sensitive word recognition model;
[0033] The document error correction model is fine-tuned by the validation set to obtain the final document error correction model including:
[0034] Input the validation set into the document error correction model to obtain a first prediction result (predicted spelling errors and grammatical errors); compare the first prediction result with the manual calibration result (calibrated spelling errors and grammatical errors) to obtain the error correction accuracy; if it is within the preset error correction accuracy range; then use the document error correction model as the final document error correction model (that is, it indicates that the performance index of the document error correction model obtained by training the training set meets the requirements and no further training is required); otherwise, train the training set through the document error correction model to fine-tune the document error correction model until the error correction accuracy is within the preset error correction accuracy range, stop training, and obtain the final document error correction model (that is, it indicates that the performance index of the document error correction model obtained by training the training set does not meet the requirements, and further training is required at this time to fine-tune the parameters of the document error correction model until the performance index of the trained document error correction model meets the requirements);
[0035] The target sensitive word recognition model is fine-tuned by the validation set to obtain the final sensitive word recognition model including:
[0036] The validation set is input into the target sensitive word recognition model to obtain a second prediction result (predicted sensitive word); the second prediction result is compared with the manually identified sensitive word (i.e., the manually identified sensitive word during preprocessing in S1) to obtain the sensitive word recognition accuracy; if it is within the preset sensitive word recognition accuracy range; the target sensitive word recognition model is used as the final sensitive word recognition model (i.e., the performance index of the target sensitive word recognition model obtained by training the training set meets the requirements and no further training is required); otherwise, the training set is trained through the target sensitive word recognition model to fine-tune the target sensitive word recognition model until the sensitive word recognition accuracy is within the preset sensitive word recognition accuracy range, and the training is stopped to obtain the final sensitive word recognition model (i.e., the performance index of the target sensitive word recognition model obtained by training the training set does not meet the requirements, and further training is required at this time to fine-tune the parameters of the target sensitive word recognition model until the performance index of the trained target sensitive word recognition model meets the requirements).
[0037] S3, performing error detection on the data set to be detected through the final document error correction model and performing a first correction; and performing sensitive word recognition on the data set after the first correction through the final sensitive word recognition model and performing a second correction, and outputting the data set after the second correction as a standard data set;
[0038] Specifically, the step of performing error detection on the data set to be detected through the final document error correction model and performing the first correction includes:
[0039] The data set to be tested is analyzed through the Bi-GRU network in the final document error correction model to determine the error probability of each character in each sentence;
[0040] Suppose the following statement appears in the technical specification: "The supplier of electric vehicle charging piles shall be responsible for ensuring the safe operation of the charging piles, including inspection and maintenance." The correct statement should be "The power supplier shall be responsible for ensuring the safe operation of the transmission lines, including inspection and maintenance." At this time, the Bi-GRU network in the model will notice that the word "maintenance" does not match the context.
[0041] The error probabilities of characters greater than a preset error probability are used to generate soft masks and weighted embed them to obtain corresponding embedding sequences;
[0042] In the above, the error probability of "repair" is higher. It is soft-masked and weighted to obtain the corresponding embedding sequence. This method can reduce its influence in the model.
[0043] The correction network in the final document error correction model proposes a replacement suggestion for the embedded sequence and replaces it to obtain a first corrected data set.
[0044] The correction network proposes replacement suggestions for the above embedded sequence, that is, it may suggest replacing "repair" with "maintenance", so that the data set to be tested is more in line with the context and industry standard terms.
[0045] The step of performing sensitive word recognition on the data set after the first correction through the final sensitive word recognition model and performing a second correction comprises:
[0046] The words in the sensitive word library are used to form a deterministic finite automaton;
[0047] Suppose the technical specification contains the following statement: "Before signing a contract with State Grid Corporation, the supplier should ensure that there is no bribery or corruption in any form." Among them, "bribery" and "corruption" are potentially sensitive words.
[0048] In the construction of the sensitive word library, it should be ensured that sensitive words such as "bribery" and "corruption" are included in the sensitive word library, and the words in the sensitive word library are constructed into a deterministic finite automaton (DFA).
[0049] Inputting the first modified data set into the finite automaton to traverse and match whether the first modified data set contains sensitive words;
[0050] Specifically, the text in the first revised data set is input into the constructed DFA, and the DFA will traverse the matching in the text to find whether there are sensitive words, that is, the DFA will find that the first revised data set contains the two sensitive words "bribery" and "corruption".
[0051] The sensitive words in the first revised data set are marked with special symbols or colors and deleted or modified.
[0052] Furthermore, the model will generate a report on sensitive word detection, including information such as the number, location, and specific content of the sensitive words found.
[0053] S4. Manually review the standard data set to adjust and optimize it to obtain the final data set.
[0054] Since the preparation format of procurement technical specifications changes according to the project content, the relevant sensitive words are also in a state of real-time updating. Therefore, it is necessary to supplement the data set in a timely manner according to the needs of suppliers and customers, as well as market changes, so that the data set is representative enough, covers different types of texts and potential errors, and updates the sensitive word library in real time.
[0055] At the same time, manual verification is carried out on the generated standard data set, and professionals in the operations, law and compliance fields in the field are consulted to provide additional feedback, point out possible problems in the procurement specifications, make up for potential deficiencies, and obtain the final data set (i.e., the standard procurement technical specifications).
[0056] Furthermore, when the final data set is compiled, the relevant models will be deployed in a secure environment within Company A, such as an enterprise cloud or a dedicated server, to ensure the security of sensitive data. At the same time, model usage training will be organized for the procurement department and related personnel to fully explain the functions, advantages, and possible limitations of the model. In addition, the daily use of the model must be accompanied by continuous monitoring and maintenance. After the model is deployed, the performance of the model should be continuously monitored, especially in the real environment, and the model's error correction and recognition results should be recorded to find possible errors or abnormalities; and based on the monitoring results, the model and data set should be updated regularly to ensure that the model remains up to date and adapts to changes in Company A's needs.
[0057] Figure 2 is a schematic diagram of the structure of a system for automatically generating procurement technical specifications provided by an embodiment of the present invention. Figure 2 As shown, the system includes:
[0058] The preprocessing unit 201 is used to obtain a data set and preprocess the data set; divide the preprocessed data set into a training set and a validation set; wherein the data set includes an original procurement technical specification book;
[0059] Specifically, the preprocessing of the data set includes:
[0060] Manually identify and filter noise characters, special symbols, HTML tags, comments, and sensitive words in the data set;
[0061] The filtered data set is annotated with spelling errors and grammatical errors to obtain manual calibration results; and all identified sensitive words are constructed into a sensitive word library.
[0062] The model training unit 202 is used to train the training set through a pre-trained language model for multiple rounds to obtain a document error correction model; fine-tune the document error correction model through a validation set to obtain a final document error correction model; train the training set through an original sensitive word recognition model to obtain a target sensitive word recognition model; fine-tune the target sensitive word recognition model through a validation set to obtain a final sensitive word recognition model;
[0063] Specifically, fine-tuning the document error correction model through the validation set to obtain the final document error correction model includes:
[0064] Input the validation set into the document error correction model to obtain a first prediction result; compare the first prediction result with the manual calibration result to obtain the error correction accuracy; if it is within the preset error correction accuracy range, the document error correction model is used as the final document error correction model; otherwise, train the training set through the document error correction model to fine-tune the document error correction model until the error correction accuracy is within the preset error correction accuracy range, stop training, and obtain the final document error correction model;
[0065] The method of fine-tuning the target sensitive word recognition model through the validation set to obtain the final sensitive word recognition model includes:
[0066] The verification set is input into the target sensitive word recognition model to obtain a second prediction result; the second prediction result is compared with the manually identified sensitive words to obtain the sensitive word recognition accuracy; if it is within the preset sensitive word recognition accuracy range; the target sensitive word recognition model is used as the final sensitive word recognition model; otherwise, the training set is trained through the target sensitive word recognition model to fine-tune the target sensitive word recognition model until the sensitive word recognition accuracy is within the preset sensitive word recognition accuracy range, and the training is stopped to obtain the final sensitive word recognition model.
[0067] The correction unit 203 is used to perform error detection on the data set to be detected through the final document error correction model and perform a first correction; and perform sensitive word recognition on the data set after the first correction through the final sensitive word recognition model and perform a second correction, and output the data set after the second correction as a standard data set;
[0068] The step of performing error detection on the data set to be detected through the final document error correction model and performing the first correction comprises:
[0069] The data set to be tested is analyzed through the Bi-GRU network in the final document error correction model to determine the error probability of each character in each sentence;
[0070] The error probabilities of characters greater than a preset error probability are used to generate soft masks and weighted embed them to obtain corresponding embedding sequences;
[0071] The correction network in the final document error correction model proposes a replacement suggestion for the embedded sequence and replaces it to obtain a first corrected data set.
[0072] The step of performing sensitive word recognition on the data set after the first correction through the final sensitive word recognition model and performing a second correction comprises:
[0073] The words in the sensitive word library are used to form a deterministic finite automaton;
[0074] Inputting the first modified data set into the finite automaton to traverse and match whether the first modified data set contains sensitive words;
[0075] The sensitive words in the first revised data set are marked with special symbols or colors and deleted or modified.
[0076] The optimization unit 204 is used to manually review the standard data set to adjust and optimize it to obtain a final data set.
[0077] Beneficial effects of the present invention:
[0078] The present invention provides a method and system for automatically generating a procurement technical specification book, wherein the method realizes the automatic generation of the technical specification book through document error correction and sensitive word recognition technology, and the language in the generated technical specification book is standardized and standardized; it solves the problem of low efficiency and easy error caused by manual review of whether the language in the procurement technical specification book is standardized in the prior art. The method of the present invention improves the preparation quality of the procurement technical specification book and improves the preparation efficiency.
[0079] 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 aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for automatically generating a procurement technical specification, characterized in that: include: S1. Acquire a data set and preprocess the data set; Dividing the preprocessed data set into a training set and a validation set; wherein the data set includes the original procurement technical specification book; S2, training the training set through the pre-trained language model for multiple rounds to obtain a document error correction model; fine-tuning the document error correction model through the validation set to obtain a final document error correction model; training the training set through the original sensitive word recognition model to obtain a target sensitive word recognition model; fine-tuning the target sensitive word recognition model through the validation set to obtain a final sensitive word recognition model; S3, performing error detection on the data set to be detected through the final document error correction model and performing a first correction; and performing sensitive word recognition on the data set after the first correction through the final sensitive word recognition model and performing a second correction, and outputting the data set after the second correction as a standard data set; S4. Manually review the standard data set to adjust and optimize it to obtain the final data set.
2. The method according to claim 1, characterized in that The preprocessing of the data set comprises: Manually identify and filter noise characters, special symbols, HTML tags, comments, and sensitive words in the data set; The filtered data set is annotated with spelling errors and grammatical errors to obtain manual calibration results; and all identified sensitive words are constructed into a sensitive word library.
3. The method according to claim 2, characterized in that: Fine-tuning the document error correction model through the validation set to obtain the final document error correction model includes: Input the validation set into the document error correction model to obtain a first prediction result; compare the first prediction result with the manual calibration result to obtain the error correction accuracy; if it is within the preset error correction accuracy range, the document error correction model is used as the final document error correction model; otherwise, train the training set through the document error correction model to fine-tune the document error correction model until the error correction accuracy is within the preset error correction accuracy range, stop training, and obtain the final document error correction model; The method of fine-tuning the target sensitive word recognition model through the validation set to obtain the final sensitive word recognition model includes: The verification set is input into the target sensitive word recognition model to obtain a second prediction result; the second prediction result is compared with the manually identified sensitive words to obtain the sensitive word recognition accuracy; if it is within the preset sensitive word recognition accuracy range; the target sensitive word recognition model is used as the final sensitive word recognition model; otherwise, the training set is trained through the target sensitive word recognition model to fine-tune the target sensitive word recognition model until the sensitive word recognition accuracy is within the preset sensitive word recognition accuracy range, and the training is stopped to obtain the final sensitive word recognition model.
4. The method according to claim 3, characterized in that The step of performing error detection on the data set to be detected through the final document error correction model and performing the first correction comprises: The data set to be tested is analyzed through the Bi-GRU network in the final document error correction model to determine the error probability of each character in each sentence; The error probabilities of characters greater than a preset error probability are used to generate soft masks and weighted embed them to obtain corresponding embedding sequences; The correction network in the final document error correction model proposes a replacement suggestion for the embedded sequence and replaces it to obtain a first corrected data set.
5. The method according to claim 4, characterized in that The step of performing sensitive word recognition on the data set after the first correction through the final sensitive word recognition model and performing a second correction comprises: The words in the sensitive word library are used to form a deterministic finite automaton; Inputting the first modified data set into the finite automaton to traverse and match whether the first modified data set contains sensitive words; The sensitive words in the first revised data set are marked with special symbols or colors and deleted or modified.
6. A system for automatically generating procurement technical specifications, characterized in that: include: A preprocessing unit, used for acquiring a data set and preprocessing the data set; Dividing the preprocessed data set into a training set and a validation set; wherein the data set includes the original procurement technical specification book; The model training unit is used to train the training set through a pre-trained language model for multiple rounds to obtain a document error correction model; fine-tune the document error correction model through a validation set to obtain a final document error correction model; train the training set through an original sensitive word recognition model to obtain a target sensitive word recognition model; fine-tune the target sensitive word recognition model through a validation set to obtain a final sensitive word recognition model; A correction unit, used to perform error detection on the data set to be detected through the final document error correction model and perform a first correction; and perform sensitive word recognition on the data set after the first correction through the final sensitive word recognition model and perform a second correction, and output the data set after the second correction as a standard data set; The optimization unit is used to manually review the standard data set to adjust and optimize it to obtain the final data set.
7. The system according to claim 6, characterized in that The preprocessing of the data set comprises: Manually identify and filter noise characters, special symbols, HTML tags, comments, and sensitive words in the data set; The filtered data set is annotated with spelling errors and grammatical errors to obtain manual calibration results; and all identified sensitive words are constructed into a sensitive word library.
8. The system according to claim 7, characterized in that: Fine-tuning the document error correction model through the validation set to obtain the final document error correction model includes: Input the validation set into the document error correction model to obtain a first prediction result; compare the first prediction result with the manual calibration result to obtain the error correction accuracy; if it is within the preset error correction accuracy range, the document error correction model is used as the final document error correction model; otherwise, train the training set through the document error correction model to fine-tune the document error correction model until the error correction accuracy is within the preset error correction accuracy range, stop training, and obtain the final document error correction model; The method of fine-tuning the target sensitive word recognition model through the validation set to obtain the final sensitive word recognition model includes: The verification set is input into the target sensitive word recognition model to obtain a second prediction result; the second prediction result is compared with the manually identified sensitive words to obtain the sensitive word recognition accuracy; if it is within the preset sensitive word recognition accuracy range; the target sensitive word recognition model is used as the final sensitive word recognition model; otherwise, the training set is trained through the target sensitive word recognition model to fine-tune the target sensitive word recognition model until the sensitive word recognition accuracy is within the preset sensitive word recognition accuracy range, and the training is stopped to obtain the final sensitive word recognition model.
9. The method according to claim 8, characterized in that The step of performing error detection on the data set to be detected through the final document error correction model and performing the first correction comprises: The data set to be tested is analyzed through the Bi-GRU network in the final document error correction model to determine the error probability of each character in each sentence; The error probabilities of characters greater than a preset error probability are used to generate soft masks and weighted embed them to obtain corresponding embedding sequences; The correction network in the final document error correction model proposes a replacement suggestion for the embedded sequence and replaces it to obtain a first corrected data set.
10. The system according to claim 9, characterized in that The step of performing sensitive word recognition on the data set after the first correction through the final sensitive word recognition model and performing a second correction comprises: The words in the sensitive word library are used to form a deterministic finite automaton; Inputting the first modified data set into the finite automaton to traverse and match whether the first modified data set contains sensitive words; The sensitive words in the first revised data set are marked with special symbols or colors and deleted or modified.
Citation Information
Cited By
Structured information extraction method based on multi-type medical record texts
CN119724459A
Sensitive information detection method based on large model, electronic equipment and storage medium
CN120407809A
Sensitive information detection method based on large model, electronic device and storage medium
CN120407809B
Text processing method and system based on large model, terminal and storage medium
CN120578765A
A text processing method, system, terminal, and storage medium based on a large model.
CN120578765B
