Negative quotation text verification method and device, processor and storage medium
Automatically evaluate the compliance of bidding documents through natural language processing and machine learning technology, solving the problems of low efficiency and low accuracy of manual verification, achieving efficient and accurate compliance evaluation of bidding documents, and ensuring the fairness of the bidding process sex.
Patent Information
- Application Number
- CN202410937469.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-10-11
AI Technical Summary
In the existing technology, the secondary verification of the rejected quotation text of the bidding document relies on manual labor, which results in low verification efficiency and accuracy, is easily affected by subjective emotions, and is difficult to ensure fairness and impartiality.
Using natural language processing technology and machine learning technology, by obtaining the text of the target veto quotation, determining the preset target compliance rules and text label set, performing label matching and similarity analysis, automatically assessing compliance, and improving verification efficiency and accuracy.
It realizes the automatic analysis and judgment of the compliance of rejected quotation texts, improves the verification efficiency and accuracy, reduces the burden of manual review, and ensures the fairness and accuracy of the evaluation.
Smart Images

Figure CN118761400A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data verification technology, and specifically to a method for verifying a rejected quotation text, a device for verifying a rejected quotation text, a processor, and a storage medium. Background Art
[0002] Bidding documents usually contain a lot of information. Since bidding documents need to comply with specific legal, commercial and technical regulations, as well as the requirements specified in the tender documents, the text of the bidding documents is special. The clauses and statements in the bidding documents are usually complex, because it is necessary to prepare and express various obligations, conditions and constraints to ensure the clarity and legal effect of the bidding plan. And because the content in the bidding documents may involve multiple professional fields and legal provisions, it is also difficult to locate and understand the text. Based on this, after receiving the bidding documents, auditors with corresponding skills are required to carefully verify the information in the bidding documents to evaluate the legality and compliance of each bidding document.
[0003] At present, compliance verification of bidding documents is mainly done manually, which is not only a huge workload, but also has problems such as inconsistent verification standards, low verification efficiency, low verification accuracy, and verification is easily affected by subjective emotions and difficult to ensure fairness and justice. In order to effectively screen out bidders that do not meet the requirements, prevent compliant bidding documents from being misjudged due to verification errors, and ensure the fairness and justice of the bidding process, it is necessary to conduct a secondary verification of the rejected bid text (that is, the bid document that was initially evaluated as non-compliant during the quotation review process) to verify whether its rejected bid results comply with the rejected bid rules.
[0004] However, the secondary verification of rejected quotation texts is still mainly done manually. Although manual review can ensure the accuracy of verification to a certain extent, there are still problems such as low verification efficiency, low verification accuracy, and influence of subjective emotions. Especially in large projects, because it may involve the verification of hundreds or even thousands of bidding documents, if the secondary verification of rejected quotation texts is still done manually, it will greatly reduce the efficiency of the entire bidding process. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a method for verifying a rejected quotation text, a device for verifying a rejected quotation text, a processor and a storage medium, so as to solve the problem of low verification efficiency and low verification accuracy when manually performing a secondary verification of the rejected quotation text.
[0006] In order to achieve the above-mentioned purpose, the first aspect of the present application provides a method for verifying a rejected quotation text, the method comprising:
[0007] Get the target veto quote text;
[0008] Determine the preset target compliance rules and target text label set corresponding to the target veto quotation text;
[0009] Perform label matching according to the target text label set and the preset text label set corresponding to the preset target compliance rule, and determine the first compliance verification result of the target rejected quotation text;
[0010] When the first compliance verification result of the target rejected quotation text is non-compliant, a second compliance verification result of the target rejected quotation text is determined according to a target similarity value between the target rejected quotation text and a preset target standard text corresponding to a preset target compliance rule.
[0011] In the embodiment of the present application, determining the preset target compliance rule corresponding to the target rejection quotation text includes:
[0012] Generate a target character vector set corresponding to the target veto quote text;
[0013] The target character vector set is input into a preset text classification model to obtain the text type corresponding to the target veto quotation text, and the preset target compliance rule corresponding to the target veto quotation text is determined according to the text type.
[0014] In an embodiment of the present application, the preset text classification model includes a pre-trained CNN text classification model and an LSTM text classification model;
[0015] Input the target character vector set into the preset text classification model to obtain the text type corresponding to the target veto quote text, including:
[0016] Input the target character vector set into the CNN text classification model and the LSTM text classification model respectively to determine the probability value corresponding to each preset text type;
[0017] According to the probability values corresponding to the preset text types, the text type corresponding to the target rejected quotation text is determined.
[0018] In an embodiment of the present application, the target text label set includes multiple target label values;
[0019] Determine the target text label set corresponding to the target veto quotation text, including:
[0020] Generate a target sub-text set corresponding to the target veto quotation text;
[0021] Determine the target label value of each target subtext in the target subtext set.
[0022] In the embodiment of the present application, the target sub-text set corresponding to the target rejected quotation text includes multiple target sub-texts;
[0023] Generate a target sub-text set corresponding to the target veto quotation text, including:
[0024] Performing text segmentation processing on the target rejected quotation text to obtain multiple segmented texts;
[0025] For each segmented text, determine whether to perform long text segmentation processing on the segmented text according to the length value of the segmented text. If not, use the segmented text as the target sub-text; if yes, perform long text segmentation processing on the segmented text according to the preset segmentation symbol to obtain a segmented sub-text sequence, and generate the target sub-text of the segmented text according to the similarity value between each adjacent two segmented sub-texts in the segmented sub-text sequence;
[0026] Determine the target label value of each target subtext in the target subtext set, including:
[0027] For each target sub-text, the target sub-text is input into a preset text label classification model to obtain a target label value of the target sub-text.
[0028] In the embodiment of the present application, label matching is performed according to the target text label set and the preset text label set corresponding to the preset target compliance rule to determine the first compliance verification result of the target rejected quotation text, including:
[0029] Determine whether the target text label set contains all preset label values in the preset text label set corresponding to the preset target compliance rule. If so, determine that the first compliance verification result of the target veto quotation text is compliant; if not, determine that the first compliance verification result of the target veto quotation text is non-compliant.
[0030] In an embodiment of the present application, according to the target similarity value between the target rejected quotation text and the preset target standard text corresponding to the preset target compliance rule, the second compliance verification result of the target rejected quotation text is determined, including:
[0031] Input the target rejected quotation text and the preset target standard text into the preset semantic similarity calculation model to obtain the word similarity value, phrase similarity value and sentence similarity value;
[0032] Determine a target similarity value between the target rejected quotation text and the preset target standard text according to the word similarity value, the phrase similarity value, the sentence similarity value and the preset weight value;
[0033] According to the target similarity value and the preset similarity threshold, a second compliance verification result of the target rejected quotation text is determined.
[0034] A second aspect of the present application provides a rejected quotation text verification device, the device comprising:
[0035] A text acquisition module is used to obtain the target veto quotation text;
[0036] A rule and label determination module, used to determine a preset target compliance rule and a target text label set corresponding to a target rejected quotation text;
[0037] A first compliance verification module, used to perform label matching according to a target text label set and a preset text label set corresponding to a preset target compliance rule, and determine a first compliance verification result of a target rejected quotation text;
[0038] The second compliance verification module is used to determine the second compliance verification result of the target rejected quotation text according to the target similarity value between the target rejected quotation text and the preset target standard text corresponding to the preset target compliance rule when the first compliance verification result of the target rejected quotation text is non-compliant.
[0039] A third aspect of the present application provides a processor configured to execute the above-mentioned method for verifying the rejected quotation text.
[0040] A fourth aspect of the present application provides a machine-readable storage medium having instructions stored thereon, which, when executed by a processor, configures the processor to execute the above-mentioned method for verifying the text of a rejected quotation.
[0041] The method, device, processor and storage medium for verifying the rejected quotation text provided by the present application realize automatic analysis and determination of the compliance of the rejected quotation text by means of natural language processing technology and machine learning technology, and improve the efficiency and accuracy of the compliance evaluation of the rejected quotation text. The present application performs label matching according to the target text label set and the preset text label set corresponding to the preset target compliance rule, and performs a preliminary verification on whether the label value of the target rejected quotation text is missing. When the preliminary verification is passed, there is no need to conduct a deep verification of the target rejected quotation text, which can further improve the verification efficiency. When the preliminary verification fails, the target rejected quotation text is deeply verified according to the target similarity value between the target rejected quotation text and the preset target standard text corresponding to the preset target compliance rule. By increasing the verification depth, the accuracy of the secondary verification can be further improved.
[0042] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present application, but do not constitute a limitation on the embodiments of the present application. In the accompanying drawings:
[0044] Figure 1A schematic diagram of a first process flow of a method for verifying a rejected quotation text according to an embodiment of the present application is shown;
[0045] Figure 2 A schematic diagram of a structure of a device for verifying rejected quotation text according to an embodiment of the present application is shown;
[0046] Figure 3 The internal structure diagram of the computer device according to the embodiment of the present application is schematically shown.
[0047] Description of Reference Numerals
[0048] A01-processor; A02-network interface; A03-internal memory; A04-display screen; A05-input device; A06-non-volatile storage medium; B01-operating system; B02-computer program. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution 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. It should be understood that the specific implementation methods described herein are only used to illustrate and explain the embodiments of the present application, and are not used to limit the embodiments of the present application. 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.
[0050] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back, etc.), such directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0051] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0052] In view of the fact that the related art manually conducts secondary verification of rejected quotation texts, which has the problems of low verification efficiency and low verification accuracy, the present application provides a method, device, processor and storage medium for verifying rejected quotation texts. The method, device, processor and storage medium for verifying rejected quotation texts provided by the present application are described in detail below in conjunction with the accompanying drawings through specific examples and implementation methods.
[0053] Figure 1 The first flow chart of the method for verifying the rejected quotation text in the embodiment of the present application is schematically shown. Figure 1 As shown, in one embodiment of the present application, a method for verifying a rejected quotation text is provided, the method comprising:
[0054] Step 200, obtaining the target rejected quotation text.
[0055] In this embodiment, the target rejected quotation text is a bid document that is initially evaluated as non-compliant during the quotation review process (i.e., rejected quotation text), and the bid document is an electronic document. In addition, in this embodiment, the target rejected quotation text can be obtained through an electronic bidding platform, an official website, an email, etc., and this embodiment does not specifically limit the method for obtaining the target rejected quotation text.
[0056] Step 400, determining a preset target compliance rule and a target text label set corresponding to the target rejected quotation text.
[0057] In this embodiment, step 400 includes:
[0058] Step 410: Generate a target character vector set corresponding to the target rejected quotation text.
[0059] The target character vector set corresponding to the target veto quotation text includes multiple real number vectors.
[0060] As a specific implementation, step 410 specifically includes:
[0061] Step 411, pre-process the target rejected quotation text to obtain a target vocabulary set.
[0062] In this specific implementation, step 411 includes:
[0063] Step 4111, delete irrelevant information in the target rejected quotation text to obtain a first rejected quotation text, and perform text normalization on the first rejected quotation text to obtain a second rejected quotation text.
[0064] Among them, the irrelevant information may include headers, page numbers, numbers, icons, commitment statements, seals, and watermarks. Text normalization of the first veto offer text may include correcting spelling mistakes in the first veto offer text and adjusting the text format in the first veto offer text to a standard format.
[0065] Specifically, since the irrelevant information does not provide substantive information content, it can be removed from the text. In this embodiment, by removing the irrelevant information in the text and performing text normalization processing, the text only contains information that is useful and accurate for model recognition, making the text easier to process and analyze, and improving the processing efficiency of the text.
[0066] In this embodiment, by removing the irrelevant information in the text and performing text normalization processing, the text data can be made cleaner, more structured, and suitable for analysis, which helps to improve the accuracy of determining the text type corresponding to the target veto offer text subsequently.
[0067] Step 4112, delete the punctuation marks and stop words in the second veto offer text to obtain a third veto offer text.
[0068] Among them, the stop words may include "de", "yu", "he", "dui", "le", "zai".
[0069] Specifically, punctuation marks are usually used for sentence structure and grammar, and stop words also do not provide substantive information content. Therefore, after deleting these contents, attention can be focused on the text content itself.
[0070] In this embodiment, by removing punctuation marks and stop words, the core information in the text can be made more prominent and clear, simplifying the structure of the text, making subsequent text processing tasks (such as word segmentation and word frequency statistics) more efficient and accurate.
[0071] Step 4113, perform word segmentation on the third veto offer text to obtain multiple lexical units, perform word frequency statistics on each lexical unit, and determine a target lexical set.
[0072] Among them, conditional random field (CRF) or other word segmentation methods can be used to perform word segmentation on the third veto offer text, and the lexical units obtained after word segmentation are presented in the form of words. In this specific implementation manner, to determine the target lexical set, step 4113 includes:
[0073] For each lexical unit, perform word frequency statistics on the lexical unit to obtain the word frequency statistical value of the lexical unit. If the word frequency statistical value is greater than or equal to a preset quantity threshold, put the lexical unit into the target lexical set.
[0074] In one example, the preset number threshold is selected as 5. Of course, it can be understood that the preset number threshold can be adjusted accordingly according to actual conditions.
[0075] This embodiment can reduce the dimension of the text and simplify the subsequent text processing and analysis process by deleting low-frequency vocabulary units. The remaining high-quality vocabulary units can more effectively reflect the content and characteristics of the text, thereby improving the model performance and accuracy of subsequent applications (such as classification).
[0076] This embodiment preprocesses the target rejected quotation text, so as to facilitate the subsequent accurate classification of the text based on the preprocessing result, thereby improving the verification accuracy of the target rejected quotation text.
[0077] Step 412: Generate a target character vector set corresponding to the target rejected quotation text according to the target vocabulary set.
[0078] In this specific implementation, step 412 includes:
[0079] Step 4121, for each vocabulary unit in the target vocabulary set, split the vocabulary unit into characters to obtain a character sequence of the vocabulary unit, and convert each character in the character sequence into a real number vector.
[0080] Specifically, splitting by character means treating each character (including letters and numbers) in the vocabulary unit as a separate element. Converting the character into a real vector representation is vectorized to represent the character. In this embodiment, for each character in the character sequence, it can be vectorized by one-hot encoding, pre-trained embedding vectors, etc.
[0081] This embodiment generates a target character vector set corresponding to the target rejected quotation text, so as to facilitate the subsequent determination of the text type corresponding to the target rejected quotation text, and further determine the first compliance verification result of the target rejected quotation text.
[0082] Step 420, input the target character vector set into a preset text classification model to obtain the text type corresponding to the target rejected quotation text, and determine the preset target compliance rule corresponding to the target rejected quotation text according to the text type.
[0083] In this embodiment, the preset text classification model includes a pre-trained CNN text classification model and an LSTM text classification model. The pre-trained CNN text classification model and the LSTM text classification model are input to each of them and both output a corresponding probability prediction matrix.
[0084] As a specific implementation, step 420 specifically includes:
[0085] Step 421, input the target character vector set into the CNN text classification model and the LSTM text classification model respectively, and determine the probability value corresponding to each preset text type.
[0086] Among them, for each preset text type, this embodiment adopts the linear weighted average method to fuse the first probability prediction matrix output by the CNN text classification model and the second probability prediction matrix output by the LSTM text classification model to obtain the probability value corresponding to the preset text type. According to the probability values corresponding to each preset text type, a comprehensive probability distribution is obtained, and according to the comprehensive probability distribution, the text type corresponding to the target rejected quotation text can be determined.
[0087] Specifically, the linear weighted average method is used to fuse the first probability prediction matrix output by the CNN text classification model and the second probability prediction matrix output by the LSTM text classification model, which means that the output of the CNN text classification model and the output of the LSTM text classification model are weighted and added to obtain a numerical value (i.e., a probability value), which is specifically the linear combination result of the output weights of each model. In one example, the weight ratio of the output of the CNN text classification model and the output of the LSTM text classification model is selected as 3:7. Of course, it is understandable that the weights of the outputs of the CNN text classification model and the LSTM text classification model can also be adjusted accordingly according to actual conditions.
[0088] This embodiment uses the linear weighted average method to integrate the prediction results of multiple models, fully utilizes the advantages of each model, and balances the differences between the models, so that the fused results can perform better than a single model, thereby improving the accuracy of model classification, that is, improving the accuracy of determining the text type corresponding to the target rejected quotation text.
[0089] Step 422: Determine the text type corresponding to the target rejected quotation text according to the probability values corresponding to each preset text type.
[0090] Each preset text type has a corresponding preset compliance rule. After determining the text type corresponding to the target veto quotation text, the target veto quotation text can be matched with a corresponding preset compliance rule according to the text type, and the preset compliance rule is the preset target compliance rule.
[0091] In this embodiment, the preset text type with the largest corresponding probability value is determined as the text type corresponding to the target rejected quotation text.
[0092] For example, the bidding documents involved in a certain bidding project are divided into three preset text types: business bid, economic bid and technical bid. After the target character vector set corresponding to a rejected quotation text is input into the preset text classification model, the probability values of these three preset text types are calculated to be 0.7, 0.8 and 0.9 respectively. At this time, it can be determined that the text type corresponding to the rejected quotation text is technical bid.
[0093] In this embodiment, since the compliance of the bidding documents is directly related to regulatory requirements, the compliance rules for the secondary verification of bidding documents of different text types are pre-set according to actual requirements, so that after determining the text type of the bidding documents, the rejection result of the bidding documents can be quickly determined based on the corresponding compliance rules, while also ensuring that the bidding documents with the first compliance verification result as compliant meet the relevant requirements. It is worth mentioning that when the preset compliance rules change, the model parameters in the preset text classification model can be adaptively adjusted to maintain the timeliness and accuracy of the verification standards.
[0094] This embodiment determines the text type corresponding to the target rejected quotation text, and then matches the preset target compliance rules corresponding to the target rejected quotation text, so that the first compliance verification result of the target rejected quotation text can be determined based on the preset target compliance rules, thereby improving the efficiency and accuracy of the secondary verification of the rejected quotation text.
[0095] Step 430: Generate a target subtext set corresponding to the target rejected quotation text.
[0096] The target sub-text set corresponding to the target rejected quotation text includes multiple target sub-texts.
[0097] As a specific implementation, step 430 specifically includes:
[0098] Step 431, performing text segmentation processing on the target rejected quotation text to obtain a plurality of segmented texts.
[0099] Specifically, the rejected quotation text can be divided into five parts according to the structural level: chapter, section, article, clause, and item, among which "article" is the basic unit of the bidding document. Based on this, this embodiment uses "section" as the preset segmentation unit, that is, "section" is used as the segmentation unit to achieve text segmentation processing of the target rejected quotation text. Of course, it is understandable that the target rejected quotation text can also be processed by syntactic analysis, rule matching, machine learning and other methods. This embodiment does not limit the way of text segmentation processing of the target rejected quotation text.
[0100] Step 432, for each segmented text, determine whether to perform long text segmentation processing on the segmented text according to the length value of the segmented text. If not, use the segmented text as the target sub-text; if yes, perform long text segmentation processing on the segmented text according to the preset segmentation symbol to obtain a segmented sub-text sequence, and generate the target sub-text of the segmented text according to the similarity value between each two adjacent segmented sub-texts in the segmented sub-text sequence.
[0101] The preset segmentation symbol may be "period + carriage return + sequence number" or "semicolon + carriage return + sequence number" to divide the segmented text of a paragraph that is too long into multiple pseudo sentences to achieve text segmentation. The segmented subtext sequence obtained based on the preset segmentation symbol includes multiple segmented subtexts with consecutive positions in the segmented text to which it belongs, and each segmented subtext is sorted in the order of the position to obtain the segmented subtext sequence.
[0102] In this embodiment, for each segmented text, if the length value of the segmented text is less than or equal to the preset length threshold, it is determined that the segmented text will not be segmented into long texts; if the length value of the segmented text is greater than the preset length threshold, it is determined that the segmented text will be segmented into long texts. It is worth mentioning that the preset length threshold is specifically set according to the text processing upper limit (such as 512 characters) of the BERT model for subsequent labeling.
[0103] In this embodiment, for each two adjacent segmented sub-texts in the segmented sub-text sequence, if the similarity value between the two segmented sub-texts is less than or equal to the preset similarity threshold, it is determined that the two segmented sub-texts are combined into the target sub-text in the order of their positions. It can be understood that for any segmented sub-text except the first and last segmented sub-texts in the segmented sub-text sequence, it can be combined into the target sub-text with at least two segmented sub-texts before and after it in the order of their respective positions in the target rejected quotation text.
[0104] For example, taking "period + carriage return + sequence number" as the preset segmentation symbol, a segmented sub-text sequence obtained after text segmentation processing contains 10 paragraphs (i.e., 10 segmented sub-texts). After calculating the similarity value between two adjacent paragraphs, it is determined that the segmented text is finally divided into three parts, that is, the segmented text has three target sub-texts, and at least one of the three target sub-texts includes multiple paragraphs. Subsequently, the corresponding target text label set is determined based on these three target sub-texts.
[0105] After the present embodiment performs text segmentation based on the target rejection quotation text (including text segmentation processing based on the preset segmentation unit and long text segmentation processing based on the preset segmentation symbol), each target sub-text obtained is a data unit used to determine whether the target rejection quotation text satisfies the corresponding preset target compliance rules. At this time, the length of each target sub-text is relatively short, and at the same time has a clearer context and theme, which can facilitate the subsequent efficient and high-precision determination of the label of each target sub-text, thereby improving the accuracy of the first compliance verification result of determining the target rejection quotation text.
[0106] Step 440: determine the target tag value of each target subtext in the target subtext set.
[0107] For each target sub-text in the target sub-text set, there is at least one target label value, and the target text label set corresponding to the target rejected quotation text includes the target label values of each target sub-text.
[0108] As a specific implementation, step 440 specifically includes:
[0109] Step 441 : for each target sub-text, input the target sub-text into a preset text label classification model to obtain a target label value of the target sub-text.
[0110] In this embodiment, the preset text label classification model is a pre-trained BERT model.
[0111] Among them, BERT, as a pre-trained language model, can be used for text feature extraction and semantic understanding. This embodiment trains the BERT model and adjusts its model parameters so that it can output a label set prediction result based on the input text, that is, predict all label values of the input text (the number is at least one).
[0112] Specifically, after training the BERT model, this embodiment uses the validation set to determine whether the currently trained BERT model meets the preset stop training conditions. If so, the training is stopped, and the currently trained BERT model is labeled as a pre-trained BERT model to avoid overfitting and improve the generalization ability of the model; if not, the training continues until the trained BERT model meets the preset stop training conditions. In this embodiment, the preset stop training conditions include the model prediction accuracy being greater than or equal to 95%, and the difference between the probability distribution of the model output and the true label being less than or equal to 0.1, to ensure that the model can complete the label prediction with high precision.
[0113] This embodiment determines the target label value of each target sub-text, so as to facilitate the subsequent combination with the preset text label set corresponding to the preset target compliance rule to quickly determine the first compliance verification result of the target rejected quotation text.
[0114] Step 600, performing tag matching according to a target text tag set and a preset text tag set corresponding to a preset target compliance rule, and determining a first compliance verification result of the target rejected quotation text.
[0115] The preset text label set includes multiple preset label values, and the first compliance verification result is compliance or non-compliance.
[0116] As a specific implementation, step 600 specifically includes:
[0117] Step 610, determine whether the target text label set contains all preset label values in the preset text label set corresponding to the preset target compliance rule. If so, determine that the first compliance verification result of the target rejected quotation text is compliant; if not, determine that the first compliance verification result of the target rejected quotation text is non-compliant.
[0118] Specifically, if the target text label set contains all the preset label values in the preset text label set corresponding to the preset target compliance rule, that is, there is no missing label, which means that the target veto quotation text does not have any missing content and meets the bidding requirements. It is non-compliant to invalidate the target veto quotation text. On the contrary, if the target text label set does not contain all the preset label values in the preset text label set corresponding to the preset target compliance rule, that is, there is a missing label, which means that the target veto quotation text has missing content and it may be compliant to invalidate it. In order to improve the accuracy of the secondary verification, this embodiment continues to perform compliance verification on the text whose first compliance verification result is non-compliant, that is, execute step 800.
[0119] This embodiment is based on the corresponding preset target compliance rules to determine whether there are omissions in the label values in the target text label set corresponding to the target veto quotation text, thereby determining whether the target veto quotation text is complete and compliant, which can facilitate making correct decisions, namely, deciding whether to invalidate the target veto quotation text.
[0120] Step 800, when the first compliance verification result of the target rejected quotation text is non-compliant, determine the second compliance verification result of the target rejected quotation text according to the target similarity value between the target rejected quotation text and the preset target standard text corresponding to the preset target compliance rule.
[0121] Among them, each preset compliance rule has a corresponding preset standard text, and the preset target standard text corresponding to the preset target compliance rule is the preset standard text corresponding to the preset target compliance rule; the second compliance verification result is compliance or non-compliance.
[0122] Specifically, for bidding documents of different text types, the standard texts for secondary verification are pre-set according to actual requirements, so that when it is determined that the first compliance verification result of a bidding document is non-compliant, the bidding text can be directly verified in depth based on the corresponding standard text to quickly determine the rejection result of the bidding document. At the same time, it also ensures that the bidding documents that are compliant as a result of the second compliance verification also meet the relevant requirements.
[0123] As a specific implementation, step 800 specifically includes:
[0124] Step 810, input the target rejected quotation text and the preset target standard text into a preset semantic similarity calculation model to obtain word similarity values, phrase similarity values and sentence similarity values.
[0125] In this embodiment, the preset semantic similarity calculation model adopts the existing BERT combined with MatchPyramid model.
[0126] In this specific implementation, step 810 includes:
[0127] Step 811, input the target rejected quotation text and the preset target standard text into the preset semantic similarity calculation model, and encode the target rejected quotation text and the preset target standard text respectively through the BERT model to obtain a first context encoding vector and a second context encoding vector.
[0128] Step 812: construct a matching matrix according to the first context encoding vector and the second context encoding vector.
[0129] In this embodiment, the MatchPyramid model uses a dot product operation or a cosine similarity operation to calculate the similarity between each pair of words or subwords in the first context encoding vector and the second context encoding vector, and constructs a matching matrix to facilitate subsequent semantic compliance analysis.
[0130] Step 813, extracting word information, phrase information and sentence information from the matching matrix respectively through the MatchPyramid model to output word similarity values, phrase similarity values and sentence similarity values between the target rejected quotation text and the preset target standard text.
[0131] This embodiment is based on the preset target standard text. By considering the similarity at the word, phrase and sentence levels, that is, performing semantic compliance analysis on the target rejected quotation text, it can capture and understand the text information more comprehensively, and then determine the target similarity value based on the word similarity value, phrase similarity value and sentence similarity value output by the model, thereby improving the accuracy of the secondary verification of the target rejected quotation text.
[0132] Step 820, determining a target similarity value between the target rejected quotation text and a preset target standard text according to the word similarity value, the phrase similarity value, the sentence similarity value and the preset weight value.
[0133] Among them, the preset weight values include preset word weight values, preset phrase weight values and preset sentence weight values.
[0134] In this specific implementation, step 820 includes:
[0135] Step 821, according to the word similarity value, the phrase similarity value, the sentence similarity value and the preset weight value, a target similarity value between the target rejected quotation text and the preset target standard text is determined by a first formula, wherein the first formula is:
[0136] S=α·t ij +β·p ij +γ·s ij
[0137] Wherein, S represents the target similarity value, α, β, and γ represent the preset word weight value, the preset phrase weight value, and the preset sentence weight value, respectively, and t ij 、p ij 、s ij They represent word similarity value, phrase similarity value, and sentence similarity value respectively.
[0138] Step 830: Determine a second compliance verification result of the target rejected quotation text according to the target similarity value and a preset similarity threshold.
[0139] In this specific implementation, step 830 includes:
[0140] Step 831, determine whether the target similarity value is greater than or equal to the preset similarity threshold. If so, determine that the second compliance verification result of the target rejected quotation text is compliant. If not, determine that the second compliance verification result of the target rejected quotation text is non-compliant.
[0141] Specifically, since the standard text contains relevant legal or compliance requirements, such as safety standards and regulatory requirements, similarity analysis can be used to verify whether the bidding documents meet these legal and compliance requirements. Since the quality of the bidding documents directly affects the fairness of the results, similarity analysis can be used to control quality and ensure that the quality of the bidding documents that are compliant with the second compliance verification result meets the standards. Based on this, in the case where there are omissions in the target veto quotation text, it can be considered that when the target similarity value between the target veto quotation text and the corresponding preset target standard text is high, the target veto quotation text is also compliant, and it is non-compliant to invalidate it.
[0142] This embodiment ensures the compliance and quality of the bidding document whose second compliance verification result is compliant by determining the target similarity value between the target rejected quotation text and the preset target standard text, thereby achieving effective bidding evaluation.
[0143] Optionally, when the target rejects the first compliance verification result or the second compliance verification result of the quotation text as compliant, the method further includes:
[0144] Step 900, based on the secondary verification result of the target vetoed quotation text, a text compliance message is generated for compliance to notify relevant personnel to determine whether the bidder corresponding to the target vetoed quotation text has won the bid based on the target vetoed quotation text.
[0145] In this embodiment, when the first compliance verification result or the second compliance verification result of the target rejected quotation text is compliant, it means that the second verification result of the target rejected quotation text is compliant. At this time, the relevant personnel should be notified to make a comprehensive consideration based on the specific content in the target rejected quotation text to make the final winning decision. In addition, the generated text compliance message can also be sent to the reviewer who judged the target rejected quotation text as non-compliant, so that he can correct possible evaluation errors and improve the fairness of the evaluation process.
[0146] It is not difficult to see that the method for verifying the rejected quotation text provided in this embodiment, by means of natural language processing technology and machine learning technology, realizes automatic analysis and judgment of the compliance of the rejected quotation text, thereby improving the efficiency and accuracy of the compliance assessment of the rejected quotation text, which can help to quickly discover violations and avoid regulatory failures, and help to improve business industry standards and norms and create a fair competition environment. Among them, the use of natural language processing technology to automatically analyze and understand a large amount of text data not only reduces the burden of manual compliance review, but also makes the compliance review process more efficient. In addition, natural language processing technology can accurately identify key information, entities, rules and clauses in the text, reducing errors caused by human negligence or misunderstanding.
[0147] Figure 1FIG. 1 is a flow chart of a method for verifying a rejected quotation text in one embodiment. It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0148] Figure 2 The structure block diagram of the rejected quotation text verification device of the embodiment of the present application is schematically shown. Figure 2 As shown, in one embodiment of the present application, a device for verifying a rejected quotation text is provided, and the device for verifying a rejected quotation text includes a text acquisition module, a rule and label determination module, a first compliance verification module and a second compliance verification module, wherein:
[0149] The text acquisition module is used to acquire the target rejected quotation text.
[0150] The rule and label determination module is used to determine the preset target compliance rules and target text label set corresponding to the target rejected quotation text.
[0151] The first compliance verification module is used to perform label matching according to a target text label set and a preset text label set corresponding to a preset target compliance rule, and determine a first compliance verification result of the target rejected quotation text.
[0152] The second compliance verification module is used to determine the second compliance verification result of the target rejected quotation text according to the target similarity value between the target rejected quotation text and the preset target standard text corresponding to the preset target compliance rule when the first compliance verification result of the target rejected quotation text is non-compliant.
[0153] In this embodiment, the rule and label determination module includes:
[0154] The character vector set generation submodule is used to generate a target character vector set corresponding to the target veto quotation text.
[0155] The compliance rule determination submodule is used to input the target character vector set into the preset text classification model to obtain the text type corresponding to the target veto quotation text, and determine the preset target compliance rule corresponding to the target veto quotation text according to the text type.
[0156] In this embodiment, the preset text classification model includes a pre-trained CNN text classification model and an LSTM text classification model; the compliance rule determination submodule includes:
[0157] The probability value determination unit is used to input the target character vector set into the CNN text classification model and the LSTM text classification model respectively to determine the probability value corresponding to each preset text type.
[0158] The text type determination unit is used to determine the text type corresponding to the target rejected quotation text according to the probability values corresponding to each preset text type.
[0159] In this embodiment, the target text label set includes multiple target label values; the rule and label determination module includes:
[0160] The sub-text set determination sub-module is used to generate a target sub-text set corresponding to the target rejected quotation text.
[0161] The label value determination submodule is used to determine the target label value of each target subtext in the target subtext set.
[0162] In this embodiment, the target subtext set corresponding to the target rejected quotation text includes multiple target subtexts; the subtext set determination submodule includes:
[0163] The text segmentation unit is used to perform text segmentation processing on the target rejected quotation text to obtain multiple segmented texts.
[0164] The long text segmentation unit is used to determine whether to perform long text segmentation processing on each segmented text according to the length value of the segmented text. If not, the segmented text is used as the target sub-text; if so, the segmented text is subjected to long text segmentation processing according to the preset segmentation symbol to obtain a segmented sub-text sequence, and the target sub-text of the segmented text is generated according to the similarity value between each two adjacent segmented sub-texts in the segmented sub-text sequence.
[0165] The label value determination unit is used to input each target sub-text into a preset text label classification model to obtain a target label value of the target sub-text.
[0166] In this embodiment, the first compliance verification module includes:
[0167] The first compliance verification determination submodule is used to determine whether the target text label set contains all preset label values in the preset text label set corresponding to the preset target compliance rule. If so, the first compliance verification result of the target rejection quotation text is determined to be compliant; if not, the first compliance verification result of the target rejection quotation text is determined to be non-compliant.
[0168] In this embodiment, the second compliance verification module includes:
[0169] The related similarity value determination unit is used to input the target rejected quotation text and the preset target standard text into the preset semantic similarity calculation model to obtain the word similarity value, the phrase similarity value and the sentence similarity value.
[0170] The target similarity value determining unit is used to determine the target similarity value between the target rejected quotation text and the preset target standard text according to the word similarity value, the phrase similarity value, the sentence similarity value and the preset weight value.
[0171] The second compliance verification determination unit is used to determine a second compliance verification result of the target rejected quotation text according to the target similarity value and a preset similarity threshold.
[0172] In this embodiment, the rejected quotation text verification device includes a processor and a memory, and the text acquisition module, the rule and label determination module, the first compliance verification module and the second compliance verification module are all stored in the memory as program units, and the processor executes the above program modules stored in the memory to implement corresponding functions.
[0173] The processor includes a kernel, and the kernel calls the corresponding program unit from the memory. One or more kernels can be set, and the above-mentioned method for verifying the rejected quotation text can be implemented by adjusting the kernel parameters.
[0174] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0175] An embodiment of the present application provides a processor configured to execute the above-mentioned method for verifying the rejected quotation text.
[0176] An embodiment of the present application provides a machine-readable storage medium having instructions stored thereon. When the instructions are executed by a processor, the processor is configured to execute the above-mentioned method for verifying the rejected quotation text.
[0177] Figure 3 The internal structure diagram of the computer device of the embodiment of the present application is schematically shown. Figure 3 As shown, in one embodiment of the present application, a computer device is provided, which may be a terminal. The computer device includes a processor A01, a network interface A02, a display screen A04, an input device A05 and a memory (not shown in the figure) connected via a system bus. Among them, the processor A01 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes an internal memory A03 and a non-volatile storage medium A06. The non-volatile storage medium A06 stores an operating system B01 and a computer program B02. The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 in the non-volatile storage medium A06. The network interface A02 of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor A01, a method for verifying a rejected quotation text is implemented. The display screen A04 of the computer device may be a liquid crystal display or an electronic ink display, and the input device A05 of the computer device may be a touch layer covered on the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.
[0178] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0179] In one embodiment, the rejected quotation text verification device provided by the present application can be implemented in the form of a computer program. The computer program can be Figure 3 The computer device shown in the figure is run. The memory of the computer device can store various program modules constituting the rejected quotation text verification device, for example, Figure 2 The text acquisition module, rule and label determination module, first compliance verification module and second compliance verification module shown in the figure. The computer program composed of each program module enables the processor to execute the steps of the rejected quotation text verification method of each embodiment of the present application described in this specification.
[0180] Figure 3 The computer device shown can be Figure 2 The text acquisition module in the rejected quotation text verification device shown executes step 200, the rule and label determination module executes step 400, the first compliance verification module executes step 600 and the second compliance verification module executes step 800.
[0181] The present application provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented:
[0182] Get the target veto quote text;
[0183] Determine the preset target compliance rules and target text label set corresponding to the target veto quotation text;
[0184] Perform label matching according to the target text label set and the preset text label set corresponding to the preset target compliance rule, and determine the first compliance verification result of the target rejected quotation text;
[0185] When the first compliance verification result of the target rejected quotation text is non-compliant, a second compliance verification result of the target rejected quotation text is determined according to a target similarity value between the target rejected quotation text and a preset target standard text corresponding to a preset target compliance rule.
[0186] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0187] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0188] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0189] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0190] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0191] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0192] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0193] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0194] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for verifying rejected quotation text, characterized in that: The method comprises: Get the target veto quote text; Determine the preset target compliance rules and target text label set corresponding to the target veto quotation text; Perform label matching according to the target text label set and the preset text label set corresponding to the preset target compliance rule, and determine the first compliance verification result of the target rejected quotation text; When the first compliance verification result of the target rejected quotation text is non-compliant, a second compliance verification result of the target rejected quotation text is determined according to a target similarity value between the target rejected quotation text and a preset target standard text corresponding to a preset target compliance rule.
2. The method according to claim 1, characterized in that: Determine the preset target compliance rules corresponding to the target veto quotation text, including: Generate a target character vector set corresponding to the target veto quote text; The target character vector set is input into a preset text classification model to obtain the text type corresponding to the target veto quotation text, and the preset target compliance rule corresponding to the target veto quotation text is determined according to the text type.
3. The method according to claim 2, characterized in that The preset text classification models include the pre-trained CNN text classification model and LSTM text classification model; Input the target character vector set into the preset text classification model to obtain the text type corresponding to the target veto quote text, including: Input the target character vector set into the CNN text classification model and the LSTM text classification model respectively to determine the probability value corresponding to each preset text type; According to the probability values corresponding to the preset text types, the text type corresponding to the target rejected quotation text is determined.
4. The method according to claim 1, characterized in that: The target text label set includes multiple target label values; Determine the target text label set corresponding to the target veto quotation text, including: Generate a target sub-text set corresponding to the target veto quotation text; Determine the target label value of each target subtext in the target subtext set.
5. The method according to claim 4, characterized in that The target sub-text set corresponding to the target veto quotation text includes multiple target sub-texts; Generate a target sub-text set corresponding to the target veto quotation text, including: Performing text segmentation processing on the target rejected quotation text to obtain multiple segmented texts; For each segmented text, determine whether to perform long text segmentation processing on the segmented text according to the length value of the segmented text. If not, use the segmented text as the target sub-text; if yes, perform long text segmentation processing on the segmented text according to the preset segmentation symbol to obtain a segmented sub-text sequence, and generate the target sub-text of the segmented text according to the similarity value between each adjacent two segmented sub-texts in the segmented sub-text sequence; Determine the target label value of each target subtext in the target subtext set, including: For each target sub-text, the target sub-text is input into a preset text label classification model to obtain a target label value of the target sub-text.
6. The method according to any one of claims 1 to 5, characterized in that Label matching is performed according to the target text label set and the preset text label set corresponding to the preset target compliance rule to determine the first compliance verification result of the target rejected quotation text, including: Determine whether the target text label set contains all preset label values in the preset text label set corresponding to the preset target compliance rule. If so, determine that the first compliance verification result of the target veto quotation text is compliant; if not, determine that the first compliance verification result of the target veto quotation text is non-compliant.
7. The method according to any one of claims 1 to 5, characterized in that Determine a second compliance verification result of the target veto quotation text according to a target similarity value between the target veto quotation text and a preset target standard text corresponding to a preset target compliance rule, including: Input the target rejected quotation text and the preset target standard text into the preset semantic similarity calculation model to obtain the word similarity value, phrase similarity value and sentence similarity value; Determine a target similarity value between the target rejected quotation text and the preset target standard text according to the word similarity value, the phrase similarity value, the sentence similarity value and the preset weight value; According to the target similarity value and the preset similarity threshold, a second compliance verification result of the target rejected quotation text is determined.
8. A device for verifying rejected quotation text, characterized in that: The device comprises: A text acquisition module is used to obtain the target veto quotation text; A rule and label determination module, used to determine a preset target compliance rule and a target text label set corresponding to a target rejected quotation text; A first compliance verification module, used to perform label matching according to a target text label set and a preset text label set corresponding to a preset target compliance rule, and determine a first compliance verification result of a target rejected quotation text; The second compliance verification module is used to determine the second compliance verification result of the target rejected quotation text according to the target similarity value between the target rejected quotation text and the preset target standard text corresponding to the preset target compliance rule when the first compliance verification result of the target rejected quotation text is non-compliant.
9. A processor, characterized in that: The method is configured to execute the rejected quotation text verification method according to any one of claims 1 to 7.
10. A machine-readable storage medium having instructions stored thereon, characterized in that: When the instruction is executed by a processor, the processor is configured to execute the rejected quotation text verification method according to any one of claims 1 to 7.
Citation Information
Cited By
Cboth quality inspection processing method and device, medium and program product
CN120631875A
