Contract information extraction method, device, computer equipment and storage medium

By annotating contract information, field alignment and model association, combined with reference resolution rules and similarity calculation, the problem of difficulty in obtaining multiple contract records in the existing technology is solved, and efficient and accurate contract information extraction is achieved.

CN109582772BActive Publication Date: 2024-09-17PING AN TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201811425043.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-11-27
Publication Date
2024-09-17
Estimated Expiration
2038-11-27

AI Technical Summary

Technical Problem

It is difficult to completely obtain multiple records from multiple pieces of contract information with existing technology. Traditional regular expressions are cumbersome to write and prone to conflicts. The Bi-LSTM-CRF model can only obtain a single field and cannot solve the problem of extracting multiple records.

Method used

By obtaining the text to be processed, annotating and identifying candidate fields, performing field alignment and association, using the trained association model and probability and statistical model to filter out the target record information, combined with the reference resolution rules and similarity calculation, to form a complete contract extraction information.

Benefits of technology

It realizes the complete acquisition of multiple contract records in one text, improves the extraction efficiency and accuracy, and reduces manual intervention and conflicts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN109582772B
    Figure CN109582772B
Patent Text Reader

Abstract

The present application relates to artificial intelligence, and provides a contract information extraction method, device, computer equipment and storage medium, the method comprising: obtaining a text to be processed, the text to be processed comprising a plurality of contract information; annotating the contract information to obtain a corresponding contract annotation result; determining a candidate field corresponding to the contract information according to the contract annotation result; aligning the candidate fields to obtain an aligned field; inputting the aligned field into a trained association model for association to obtain associated record information; inputting the associated record information into a trained probability statistical model to obtain a probability statistical result corresponding to the associated record information; screening the associated record information according to the probability statistical result to obtain target associated record information, and obtaining contract extraction information according to the target associated record information, so as to completely obtain a plurality of records in a plurality of contract information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, computer equipment and storage medium for extracting contract information. Background Art

[0002] With the rapid development of computer technology, people are faced with massive amounts of contract information every day. When people need to extract certain information from a text, they need to spend a lot of time to search, extract and check for errors.

[0003] Traditionally, the extraction of contract information is based on regular expressions, but writing regular expressions requires a lot of reading of announcements, which consumes a lot of manpower, and there may be conflicts between regular expressions, which can affect the entire system. The most popular method of simple sequence labeling is to use the Bi-LSTM-CRF model, but the sequence itself can only obtain a single field, and cannot obtain a complete record, and cannot solve the problem of obtaining multiple records in multiple contract information. Summary of the invention

[0004] Based on this, it is necessary to provide a contract information extraction method, device, computer equipment and storage medium that can completely obtain multiple records in multiple contract information in response to the above technical problems.

[0005] A method for extracting contract information, the method comprising:

[0006] Acquire a text to be processed, wherein the text to be processed includes a plurality of contract information;

[0007] Marking the contract information to obtain a corresponding contract marking result;

[0008] Determine the candidate fields corresponding to the contract information according to the contract annotation result;

[0009] Performing field alignment on the candidate fields to obtain aligned fields;

[0010] Inputting the alignment field into the trained association model for association to obtain association record information;

[0011] Inputting the associated record information into a trained probability statistical model to obtain a probability statistical result corresponding to the associated record information;

[0012] The associated record information is screened according to the probability statistics result to obtain target associated record information, and contract extraction information is acquired according to the target associated record information.

[0013] In one embodiment, the method further comprises:

[0014] Obtaining a reference resolution rule corresponding to the text to be processed;

[0015] The candidate fields corresponding to the annotation sequence are extracted from the contract information according to the reference resolution rule.

[0016] In one embodiment, the method further comprises:

[0017] Arbitrarily combine the candidate fields to form candidate field pairs;

[0018] Calculate the similarity between two candidate fields corresponding to each candidate field pair to obtain the similarity corresponding to each candidate field pair;

[0019] Acquire candidate field pairs whose similarity exceeds a preset threshold and have the same candidate field to form a similar field set;

[0020] Align each candidate field in the similar field set to obtain an aligned field corresponding to the text to be processed.

[0021] In one embodiment, the method further comprises:

[0022] Obtaining paragraph information of the text to be processed;

[0023] Filling the placeholder into the text to be processed according to the paragraph information;

[0024] Segmenting the text to be processed according to the placeholder to obtain a plurality of sub-texts to be processed;

[0025] Marking the sub-texts to be processed respectively to obtain contract sub-marking results corresponding to the sub-texts to be processed;

[0026] The contract annotation result is obtained according to each contract sub-annotation result.

[0027] In one embodiment, the method further comprises:

[0028] Display the contract extraction information and obtain correction information corresponding to the contract extraction information;

[0029] The association model and the probability statistical model are updated according to the correction information.

[0030] A contract information extraction device, the device comprising:

[0031] A text acquisition module, used to acquire the text to be processed, wherein the text to be processed includes a plurality of contract information;

[0032] A text annotation module is used to annotate the contract information and obtain corresponding contract annotation results;

[0033] A field determination module, used to determine candidate fields corresponding to the contract information according to the contract annotation result;

[0034] A field alignment module, used for performing field alignment on the candidate fields to obtain an aligned field;

[0035] A field association module, used for inputting the alignment fields into the trained association model for association to obtain association record information;

[0036] A probability statistics module, used for inputting the associated record information into a trained probability statistics model to obtain a probability statistics result corresponding to the associated record information;

[0037] The information output module is used to filter the associated record information according to the probability statistics result to obtain target associated record information, and obtain contract extraction information according to the target associated record information.

[0038] In one embodiment, the device further comprises:

[0039] A tag resolution module, used for obtaining a reference resolution rule corresponding to the text to be processed;

[0040] A candidate field determination module is used to extract the candidate field corresponding to the annotation sequence from the contract information according to the reference resolution rule.

[0041] In one embodiment, the device further comprises:

[0042] A field combination module is used to arbitrarily combine candidate fields to form candidate field pairs;

[0043] A similarity calculation module is used to calculate the similarity between two candidate fields corresponding to each candidate field pair, and obtain the similarity corresponding to each candidate field pair;

[0044] A set acquisition module, used to acquire candidate field pairs having a similarity exceeding a preset threshold and having the same candidate field to form a similar field set;

[0045] The candidate field alignment module is used to align the candidate fields in the similar field set to obtain the aligned fields corresponding to the text to be processed.

[0046] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the steps of the above method are implemented when the processor executes the program.

[0047] A computer-readable storage medium stores a computer program, which implements the steps of the above method when executed by a processor.

[0048] The above-mentioned contract information extraction method, device, computer equipment and storage medium, by obtaining a text to be processed, the text to be processed includes multiple contract information, can extract and record the text information containing multiple contracts, then annotate the contract information to obtain the corresponding contract annotation result, and then determine the candidate fields corresponding to the contract information according to the contract annotation result, and can further extract the fields that meet the requirements, and then align the candidate fields to obtain the aligned fields, which can remove the content with the same meaning but inconsistent expressions, and input the aligned fields into the trained association model for association to obtain associated record information, so that the fragmented candidate fields can be associated to form a complete field, and then input the associated record information into the trained probability statistical model to obtain the probability statistical result corresponding to the associated record information, and finally screen the associated record information according to the probability statistical result to obtain the target associated record information, and obtain the contract extraction information according to the target associated record information, so that multiple records can be completely obtained in one text information. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 An application environment diagram of a contract information extraction method in an embodiment;

[0050] Figure 2 A method flow chart of a method for extracting contract information in one embodiment;

[0051] Figure 3 A flowchart of a method for determining candidate fields in a contract information extraction method in one embodiment;

[0052] Figure 4 A flowchart of a method for determining alignment fields in a contract information extraction method in one embodiment;

[0053] Figure 5 A schematic diagram of the structure of a contract information extraction method and device in one embodiment;

[0054] Figure 6 Schematic diagram of the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0056] The contract information extraction method provided in the embodiment of the present invention can be applied to Figure 1In the application environment shown, the server 120 obtains the text to be processed, wherein the text to be processed may be the text uploaded by the terminal 110, and the text to be processed includes multiple contract information. The server 120 then annotates the contract information to obtain the corresponding contract annotation results. The server 120 then determines the candidate fields corresponding to the contract information based on the contract annotation results, aligns the candidate fields to obtain aligned fields, and the server 120 inputs the aligned fields into the trained association model for association to obtain associated record information. The server 120 then inputs the associated record information into the trained probability statistical model to obtain the probability statistical results corresponding to the associated record information. Finally, the server 120 filters the associated record information based on the probability statistical results to obtain the target associated record information, and obtains the contract extraction information based on the target associated record information. The contract extraction information can be sent to the terminal 110.

[0057] The following implementation method is applied to the contract information extraction method Figure 1 The method is described using the server 102 as an example, but it should be noted that in actual applications, the method is not limited to being applied to the above-mentioned server.

[0058] like Figure 2 FIG. 1 is a flowchart of a method for extracting contract information in an embodiment, and the method specifically includes the following steps:

[0059] Step 202, obtaining the text to be processed, where the text to be processed includes a plurality of contract information.

[0060] The text to be processed may be various text information, contract information or major contract announcements. Specifically, various text information may be text input by terminal users, such as text input by terminal users through user interactive devices such as keyboards and touch screens. Various contract information may be, but is not limited to, sales contracts, gift contracts, loan contracts, lease contracts, financial lease contracts, undertaking contracts and construction contracts. Contract announcements contain multiple contractual relationships. For example, in an announcement, Company A claims to have done a certain project with Company B and a certain project with Company C; Company A claims that its subsidiary A1 has done a certain project with Company B, and its subsidiary A2 has done a certain project with Company C. These relationships exist in one announcement, and there are multiple project / contract records. For major contract announcements, a certain field may appear multiple times in a major contract announcement, that is, there may be multiple contract / project information in one contract announcement. For example, there may be multiple parties A and multiple parties B in a major contract announcement. Therefore, the contract information finally extracted from the major contract announcement includes Party A, Party B, project name, contract name, contract amount, and consortium members. It is understandable that the text to be processed is not limited to the length of the text, it can be a short text or a non-short text. For example, the text to be processed can be a winning project announcement, the content of the announcement is: Received the winning content sent by the Guangxi Construction Bureau: Guangxi PPP project, winning consortium: leader - Beijing A company; consortium members - Beijing B company, Beijing C company, total project investment - 50 million. Then the records that need to be extracted from this winning project announcement are: Party A - Guangxi Construction Bureau, Party B - Beijing A company, project name - Guangxi PPP project, contract name - winning announcement, contract amount - 50 million, consortium members - Beijing B company, Beijing C company.

[0061] Step 204: mark the contract information to obtain the corresponding contract marking result.

[0062] Among them, the labeling process is based on the sequence labeling method, using the Lattice LSTM (Long Short-Term Memory) + CRF (Conditional Random Field) model, using the sequence labeling idea, and using the deep learning model to learn the internal connections and features of each field. The input of the labeling is a sequence, and its output is also a sequence. During the labeling process, the part-of-speech tagging method can be used to label and obtain the corresponding contract labeling results. For example, a sentence is: Dabao's goal helped the Chinese team beat the South Korean team in Changsha, then the labeling result obtained after sequence labeling can be Dabao as a person's name, the Chinese team and the South Korean team as organization names, Changsha as a place name, and "the goal helped to defeat" as other information.

[0063] Step 206: Determine the candidate fields corresponding to the contract information according to the contract marking result.

[0064] Among them, the candidate field is the field information corresponding to the annotation result and existing in the text to be processed. The annotation result is obtained by annotating the text to be processed, and then the annotation result is used to further locate each candidate field. For example, when the annotation result obtained is: Dabao is a person's name, the Chinese team and the Korean team are organization names, Changsha is a place name, and "the goal helped in defeating" is other information, the candidate fields corresponding to the name of the person, place name, organization name and other information are obtained through the annotation result, that is, Dabao, the Chinese team, the Korean team, Changsha, "the goal helped in defeating". Specifically, determining each candidate field corresponding to the text to be processed is to use reference resolution to find the actual object of the pronoun in the contract announcement. Reference resolution is to determine which noun phrase the pronoun points to in the text. The pronoun can be understood as the information existing in the annotation result, and the actual object is the candidate field.

[0065] Step 208: align the candidate fields to obtain aligned fields.

[0066] Among them, the alignment field is the unified field information. In the contract announcement, there are often multiple company names, contracts and project names with different expressions but pointing to the same object, so each candidate field must be aligned. The alignment process is based on the full abbreviation prompts in the text, external dictionaries, word vector similarity and Hamming distance for alignment. For example, there are two candidate fields, "Apple" and "Apple Group". After the two candidate fields are aligned, the two candidate fields will be unified as "Apple Group" because "Apple" and "Apple Group" actually mean the same thing. That is, the alignment process is to unify the content with repeated meanings but inconsistent expressions. Since the contract announcement is relatively standardized, the full abbreviation of the company is mainly obtained through the full abbreviation prompts in the text and the external dictionary. If the above two methods cannot be obtained, the word vector similarity is used for alignment. The contract and project names are similarity calculated by the full abbreviation prompts in the text and the Hamming distance, and the ones with high similarity are regarded as the same object.

[0067] Step 210: Input the aligned fields into the trained association model for association to obtain association record information.

[0068] Among them, the association process is used to generate a complete record, that is, a complete record containing Party A, Party B, project name, contract name, contract amount, and consortium members. The association process is to use Party A and Party B as the joint primary key, and the primary key is used to further match the remaining fields except "Party A, Party B". The primary key needs to be assumed in advance before the task. It is assumed that the information primary key proposed in the contract announcement exists and uniquely corresponds to a record. This is because the contract announcement must have Party B, but not necessarily Party A. When the aligned field information is input into the trained association model for association, the contract extraction information corresponding to the aligned field information is output. Contract extraction information refers to the complete record information that the user needs to extract. For example, the complete record information finally extracted from the contract announcement can be "Party A-Guangxi Construction Bureau, Party B-Beijing A Company, Project Name-Guangxi PPP Project, Contract Name-Winning Bid Announcement, Contract Amount-50 million, Consortium Members-Beijing B Company, Beijing C Company".

[0069] Step 212: input the associated record information into the trained probability statistics model to obtain the probability statistics result corresponding to the associated record information.

[0070] Among them, the obtained associated record information is input into the probability statistical model for statistics, wherein the probability statistical model uses random forest for modeling, and the random forest is used to generate the probability that each associated record information is a complete record information. For the same key field information (which can be understood as the same Party A and Party B), the highest probability of a record is taken as true. The records with non-empty elements outside the primary key are taken as output to obtain the probability statistical results corresponding to the associated record information. For example, one associated record information 1 is "Party A-Guangxi Construction Bureau, Party B-Beijing A Company, Project Name-Guangxi PPP Project, Contract Name-Winning Bid Announcement, Contract Amount-50 million, Consortium Members-Beijing B Company, Beijing C Company", and another associated record information 2 is "Party A-Guangxi Construction Bureau, Party B-Beijing A Company, Project Name-Guangxi XXX Project, Contract Name-Winning Bid Announcement, Contract Amount-50 million, Consortium Members-Beijing D Company, Beijing F Company". By inputting the probability model for probability statistics, assuming that the associated record information 1 is the record with the highest probability of a complete record, the associated record information 1 is determined as the contract extraction information, and multiple complete contract extraction information can be accurately extracted at one time through the association model and the probability statistical model.

[0071] Step 214, filtering the associated record information according to the probability statistics result to obtain target associated record information, and acquiring contract extraction information according to the target associated record information.

[0072] Among them, the target-related record information is the sub-record information that constitutes the contract extraction information. By combining and assembling each target-related record information, the contract extraction information corresponding to the text to be processed can be obtained.

[0073] In this embodiment, the text to be processed is first obtained, and then the annotation results of the text to be processed are obtained through the annotation process, and then the candidate fields are determined by the annotation results, and then each candidate field is aligned to remove the content with repeated meanings but inconsistent expressions, and then the possibility of the field being a record is judged based on the association model, and finally the complete contract extraction information is output, so that multiple records can be completely obtained in one text information.

[0074] In one embodiment, Figure 3 As shown, the method further comprises the following steps:

[0075] Step 302: Obtain the coreference resolution rule corresponding to the text to be processed.

[0076] Step 304: extract candidate fields corresponding to the annotation sequence from the contract information according to the reference resolution rule.

[0077] Among them, the reference resolution information is to determine which noun phrase the pronoun points to in the text. According to the annotation resolution information, each candidate field can be determined. According to the reference resolution rules, the candidate fields corresponding to the annotation sequence are extracted from the contract information. The reference resolution rules clarify the problem of the sequence pointing to the field, and can accurately determine the candidate fields to be extracted.

[0078] In this embodiment, by obtaining the reference resolution rules corresponding to the text to be processed, and then extracting the candidate fields corresponding to the annotation sequence from the contract information according to the reference resolution rules, the required candidate fields can be accurately extracted, and accurate contract information can be further provided for the subsequent alignment and association process.

[0079] In one embodiment, Figure 4 As shown, the method further comprises the following steps:

[0080] Step 402: arbitrarily combine the candidate fields to form candidate field pairs.

[0081] Among them, the candidate field pair is the result of the permutation and combination of candidate fields obtained after any combination of candidate fields. For example, assuming that Party A extracts A1 and A2, and Party B extracts B1 and B2, a set of permutations and combinations can be obtained: (A1, B1), (A2, B1), (empty, B1), (A1, B2), (A2, B2), (empty, B2). Party A can be empty, but Party B must exist, so it is not empty, that is, after adding empty elements to Party A, it performs a Cartesian product with the Party B set. The Cartesian product can be understood as a permutation and combination method, which refers to all possible ordered pairs where the first object is a member of X and the second object is one of the members of Y. Convert the relationship association problem into a classification problem, that is, given the key field information and an element of another set, determine whether it is a record.

[0082] Step 404: calculate the similarity between two candidate fields corresponding to each candidate field pair to obtain the similarity corresponding to each candidate field pair.

[0083] The similarity of each candidate field pair can be determined by measuring the overlap rate of each candidate field. The similarity between two candidate fields is calculated using the full abbreviation hints, external dictionaries, word vector similarity, and Hamming distance in the text to unify content with the same meaning but inconsistent expressions.

[0084] Step 406 : acquiring candidate field pairs having a similarity exceeding a preset threshold and having the same candidate field to form a similar field set.

[0085] Specifically, when the similarity of multiple candidate fields exceeds a preset threshold, they will be determined as similar fields, and the similar fields will be unified into a set to form a similar field set.

[0086] Step 408: align each candidate field in the similar field set to obtain an aligned field corresponding to the text to be processed.

[0087] Among them, the candidate fields in the similar field set are aligned, that is, the contents with the same meaning but inconsistent expressions in the similar field set are unified, and the alignment fields corresponding to the text to be processed are obtained by using the full abbreviation prompts, external dictionaries, word vector similarity and Hamming distance in the text.

[0088] In this embodiment, by arbitrarily combining the candidate fields, a candidate field pair can be formed, and then the similarity between the candidate fields in the candidate field pair is calculated. When the similarity between the candidate fields exceeds a preset threshold, it will be determined that similar candidate fields are formed between the candidate fields, and the similar candidate fields are combined to form a similar field set. Then, the candidate fields in the similar field set are aligned to obtain an aligned field, which can remove content with consistent meaning but inconsistent expression, making the contract extraction information more accurate.

[0089] In one embodiment, the method also includes: obtaining paragraph information of the text to be processed; filling placeholders into the text to be processed according to the paragraph information; dividing the text to be processed according to the placeholders to obtain multiple sub-texts to be processed; annotating the sub-texts to be processed respectively to obtain contract sub-annotation results corresponding to each sub-text to be processed; and obtaining contract annotation results based on each contract sub-annotation result.

[0090] Among them, filling the placeholder into the text to be processed can segment the text to be processed into multiple sub-texts to be processed. Since taking the entire text to be processed as an input will affect the efficiency of the annotation model due to the large sample length, it will also affect the effect of the annotation model. Therefore, a paragraph is used as a sample input, but dimensional data is added before each sample, that is, the paragraph vector of the previous paragraph, which converts the paragraph into a vector. If the first paragraph is used <first>By marking the text information to be processed in segments, the efficiency of the annotation model and the effect of annotation can be improved.

[0091] In one embodiment, the method further includes: displaying the contract extraction information and acquiring correction information corresponding to the contract extraction information; and updating the association model and the probability statistical model according to the correction information.

[0092] Among them, the correction information corresponding to the contract extraction information is the correction operation made by the terminal when the contract extraction information is displayed to the corresponding terminal. The association model and the probability statistical model are further updated according to the correction information, and the contract extraction information is re-determined, that is, updated.

[0093] In this embodiment, by displaying the contract extraction information and obtaining the correction information corresponding to the contract extraction information, and then updating the association model and the probability statistical model according to the correction information, online learning and updating of the association model and the probability statistical model can be achieved, and the contract extraction information can be further determined more accurately.

[0094] like Figure 5 FIG. 1 is a schematic diagram of a contract information extraction device in an embodiment, the device comprising:

[0095] A text acquisition module 502 is used to acquire a text to be processed, where the text to be processed includes a plurality of contract information;

[0096] The text annotation module 504 is used to annotate the contract information and obtain the corresponding contract annotation result;

[0097] A field determination module 506 is used to determine candidate fields corresponding to the contract information according to the contract annotation result;

[0098] The field alignment module 508 is used to align the candidate fields to obtain the aligned fields.

[0099] A field association module 510 is used to input the aligned fields into the trained association model for association to obtain associated record information;

[0100] The probability statistics module 512 is used to input the associated record information into the trained probability statistics model to obtain the probability statistics results corresponding to the associated record information;

[0101] The information output module 514 is used to filter the associated record information according to the probability statistics result to obtain the target associated record information, and obtain the contract extraction information according to the target associated record information.

[0102] In one embodiment, the contract annotation result is an annotation sequence, and the field determination module includes: an annotation resolution module, which is used to obtain a reference resolution rule corresponding to the text to be processed; and a candidate field determination module, which is used to extract candidate fields corresponding to the annotation sequence from the contract information according to the reference resolution rule.

[0103] In one embodiment, the field alignment module includes: a field combination module, which is used to arbitrarily combine the candidate fields to form candidate field pairs; a similarity calculation module, which is used to calculate the similarity between the two candidate fields corresponding to each candidate field pair to obtain the similarity corresponding to each candidate field pair; a set acquisition module, which is used to obtain candidate field pairs whose similarity exceeds a preset threshold and has the same candidate field to form a similar field set; a candidate field alignment module, which is used to align the candidate fields in the similar field set to obtain the aligned field corresponding to the text to be processed.

[0104] In one embodiment, the contract annotation result acquisition module includes: obtaining paragraph information of the text to be processed; filling placeholders into the text to be processed according to the paragraph information; dividing the text to be processed according to the placeholders to obtain multiple sub-texts to be processed; annotating the sub-texts to be processed respectively to obtain the contract sub-annotation results corresponding to each sub-text to be processed; and obtaining the contract annotation results according to each contract sub-annotation result.

[0105] In one embodiment, the model updating module includes: displaying the contract extraction information and obtaining correction information corresponding to the contract extraction information; and updating the association model and the probability statistical model according to the correction information.

[0106] For the specific limitations of the contract information extraction device, please refer to the limitations of the contract information extraction method above, which will not be repeated here. The various modules in the above-mentioned contract information extraction device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules. The processor can be a central processing unit (CPU), a microprocessor, a single-chip microcomputer, etc. The above-mentioned contract information extraction device can be implemented in the form of a computer program.

[0107] In one embodiment, a computer device is provided, which may be a server or a terminal. When the computer device is a terminal, its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory and a network interface connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for extracting contract information is implemented. Those skilled in the art can understand that Figure 6 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.

[0108] Among them, when the processor executes the program, the following steps are implemented: obtaining the text to be processed, which includes multiple contract information; annotating the contract information to obtain the corresponding contract annotation results; determining the candidate fields corresponding to the contract information according to the contract annotation results; aligning the candidate fields to obtain the aligned fields; inputting the aligned fields into the trained association model for association to obtain the associated record information; inputting the associated record information into the trained probability statistical model to obtain the probability statistical results corresponding to the associated record information; filtering the associated record information according to the probability statistical results to obtain the target associated record information, and obtaining the contract extraction information according to the target associated record information.

[0109] In one embodiment, when the processor executes the program, the following steps may also be implemented: obtaining a reference resolution rule corresponding to the text to be processed; and extracting candidate fields corresponding to the annotation sequence from the contract information according to the reference resolution rule.

[0110] In one embodiment, the processor can also implement the following steps when executing the program: arbitrarily combine the candidate fields to form candidate field pairs; calculate the similarity between the two candidate fields corresponding to each candidate field pair to obtain the similarity corresponding to each candidate field pair; obtain the candidate field pairs whose similarity exceeds a preset threshold and has the same candidate field to form a similar field set; align the candidate fields in the similar field set to obtain the aligned fields corresponding to the text to be processed.

[0111] In one embodiment, the processor can also implement the following steps when executing the program: obtain paragraph information of the text to be processed; fill placeholders into the text to be processed according to the paragraph information; divide the text to be processed according to the placeholders to obtain multiple sub-texts to be processed; mark the sub-texts to be processed respectively to obtain the contract sub-marking results corresponding to each sub-text to be processed; and obtain the contract marking results based on each contract sub-marking result.

[0112] In one embodiment, when the processor executes the program, the following steps may also be implemented: displaying the contract extraction information and obtaining correction information corresponding to the contract extraction information; and updating the association model and the probability statistical model according to the correction information.

[0113] The above-mentioned limitations on computer equipment can be found in the specific limitations on the contract information extraction method above, which will not be repeated here.

[0114] Please continue reading Figure 6 , also provides a computer readable storage medium having a computer program stored thereon, such as Figure 6 The non-volatile storage medium shown in the figure, wherein the program implements the following steps when executed by the processor: obtaining a text to be processed, the text to be processed includes multiple contract information; annotating the contract information to obtain corresponding contract annotation results; determining candidate fields corresponding to the contract information according to the contract annotation results; aligning the candidate fields to obtain aligned fields; inputting the aligned fields into the trained association model for association to obtain associated record information; inputting the associated record information into the trained probability statistical model to obtain probability statistical results corresponding to the associated record information; filtering the associated record information according to the probability statistical results to obtain target associated record information, and obtaining contract extraction information according to the target associated record information.

[0115] In one embodiment, when the program is executed by a processor, the following steps may also be implemented: obtaining a reference resolution rule corresponding to the text to be processed; and extracting candidate fields corresponding to the annotation sequence from the contract information according to the reference resolution rule.

[0116] In one embodiment, when the program is executed by a processor, the following steps can also be implemented: arbitrarily combining the candidate fields to form candidate field pairs; calculating the similarity between the two candidate fields corresponding to each candidate field pair to obtain the similarity corresponding to each candidate field pair; obtaining candidate field pairs whose similarity exceeds a preset threshold and has the same candidate field to form a similar field set; aligning the candidate fields in the similar field set to obtain the aligned fields corresponding to the text to be processed.

[0117] In one embodiment, when the program is executed by the processor, the following steps can also be implemented: obtaining paragraph information of the text to be processed; filling placeholders into the text to be processed according to the paragraph information; dividing the text to be processed according to the placeholders to obtain multiple sub-texts to be processed; annotating the sub-texts to be processed respectively to obtain the contract sub-annotation results corresponding to each sub-text to be processed; and obtaining the contract annotation results based on each contract sub-annotation result.

[0118] In one embodiment, when the program is executed by a processor, the following steps may also be implemented: displaying contract extraction information and obtaining correction information corresponding to the contract extraction information; and updating the association model and the probability statistical model according to the correction information.

[0119] The above-mentioned limitation on computer-readable storage media can be found in the specific limitation on the contract information extraction method mentioned above, which will not be repeated here.

[0120] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM), etc.

[0121] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0122] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.< / first>

Claims

1. A method for extracting contract information, the method comprising: Acquire a text to be processed, wherein the text to be processed includes a plurality of contract information; Marking the contract information to obtain a corresponding contract marking result; The contract marking result is a marking sequence; Acquire a reference resolution rule corresponding to the text to be processed, and extract candidate fields corresponding to the annotation sequence from the contract information according to the reference resolution rule; Combining the candidate fields arbitrarily to form candidate field pairs, calculating the similarity between two candidate fields corresponding to each candidate field pair, and obtaining the similarity corresponding to each candidate field pair; obtaining a similar field set formed by candidate field pairs having the same candidate field and having a similarity exceeding a preset threshold in each candidate field pair, aligning each candidate field in the similar field set, and obtaining an aligned field corresponding to the text to be processed; Inputting the alignment field into the trained association model for association to obtain association record information; Inputting the associated record information into a trained probability statistical model to obtain a probability statistical result corresponding to the associated record information; The probability statistical model is modeled using a random forest, and the random forest is used to generate the probability that each associated record information is a complete record information; The associated record information is screened according to the probability statistics result to obtain target associated record information, and contract extraction information is acquired according to the target associated record information.

2. The method according to claim 1, characterized in that: The acquiring of contract extraction information according to target association record information includes: The target-related record information obtained by screening is combined and assembled to obtain the contract extraction information corresponding to the text to be processed.

3. The method according to claim 1, characterized in that The calculating the similarity between two candidate fields corresponding to each candidate field pair includes: The similarity between two candidate fields corresponding to each candidate field is calculated using the full abbreviation prompt, external dictionary, word vector similarity, and Hamming distance.

4. The method according to claim 1, characterized in that: The step of marking the contract information to obtain a corresponding contract marking result includes: Obtaining paragraph information of the text to be processed; Filling the placeholder into the text to be processed according to the paragraph information; Segmenting the text to be processed according to the placeholder to obtain a plurality of sub-texts to be processed; Marking the sub-texts to be processed respectively to obtain contract sub-marking results corresponding to the sub-texts to be processed; The contract annotation result is obtained according to each contract sub-annotation result.

5. The method according to claim 1, characterized in that After the associated record information is screened according to the probability statistics result to obtain target associated record information, and contract extraction information is acquired according to the target associated record information, the method further includes: Display the contract extraction information and obtain correction information corresponding to the contract extraction information; The association model and the probability statistical model are updated according to the correction information.

6. A contract information extraction device, characterized in that: The device comprises: A text acquisition module, used to acquire the text to be processed, wherein the text to be processed includes a plurality of contract information; A text annotation module is used to annotate the contract information to obtain a corresponding contract annotation result; the contract annotation result is an annotation sequence; A field determination module, used to obtain a reference resolution rule corresponding to the text to be processed, and extract candidate fields corresponding to the annotation sequence from the contract information according to the reference resolution rule; A field alignment module is used to arbitrarily combine the candidate fields to form candidate field pairs, calculate the similarity between the two candidate fields corresponding to each candidate field pair, and obtain the similarity corresponding to each candidate field pair; obtain a similar field set formed by the candidate field pairs whose similarity exceeds a preset threshold and have the same candidate field in each candidate field pair, align each candidate field in the similar field set, and obtain an aligned field corresponding to the text to be processed; A field association module, used for inputting the alignment fields into the trained association model for association to obtain association record information; A probability statistics module, used for inputting the associated record information into a trained probability statistics model to obtain a probability statistics result corresponding to the associated record information; the probability statistics model is modeled using a random forest, and the random forest is used to generate a probability that each associated record information is a complete record information; The information output module is used to filter the associated record information according to the probability statistics result to obtain target associated record information, and obtain contract extraction information according to the target associated record information.

7. The device according to claim 6, characterized in that The text annotation module is also used to obtain paragraph information of the text to be processed; fill placeholders into the text to be processed according to the paragraph information; divide the text to be processed according to the placeholders to obtain multiple sub-texts to be processed; annotate the sub-texts to be processed respectively to obtain contract sub-annotation results corresponding to each sub-text to be processed; and obtain the contract annotation result according to each contract sub-annotation result.

8. The device according to claim 6, characterized in that The device also includes a model updating module, which is used to display the contract extraction information and obtain correction information corresponding to the contract extraction information; and update the association model and the probability statistical model according to the correction information.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.