A contract automation processing method, system, electronic device and storage medium

Through natural language processing technology and intelligent matching algorithms, contract terms are identified and parsed, and computing functions and process libraries are constructed, which solves the problem of poor flexibility in existing systems when dealing with complex contract terms, and realizes automated processing, improving efficiency and accuracy.

CN119358561BActive Publication Date: 2025-03-25JIANGSU LANTAI INFORMATION TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411902674.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-03-25
Estimated Expiration
2044-12-23

AI Technical Summary

Technical Problem

The existing smart contract management system has poor flexibility when dealing with complex contract terms and is difficult to adapt to changing business needs, resulting in frequent manual intervention and adjustments, which reduces the practicality and reliability of the system.

Method used

By receiving the scanned contract text, natural language processing technology is used to identify and analyze contract terms, identify calculation parameters and calculation logic, build calculation functions and process libraries, and use intelligent matching algorithms to match the most suitable calculation functions to adapt to the calculation processing of different types of contract terms.

Benefits of technology

It realizes automated processing of complex contract terms, reduces manual intervention, improves the efficiency and accuracy of contract processing, and enhances the flexibility and reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119358561B_ABST
    Figure CN119358561B_ABST
Patent Text Reader

Abstract

The present application discloses a method, system, electronic device and storage medium for contract automation processing, the method comprising: receiving a scanned contract text; identifying the clauses and validity periods of the clauses in the scanned contract text involving calculation; identifying and deconstructing the calculation parameters and calculation logic in each calculation clause, and storing them in the corresponding type of contract clause library; constructing the corresponding type of calculation function and process library according to the calculation clause type; for a single calculation clause, using an intelligent matching algorithm to match the calculation function or process from the corresponding type of calculation function and process library, associating a single calculation clause and storing it in the corresponding type of contract clause library; receiving the calculation application instruction sent by the user about the scanned contract, searching for the corresponding calculation clause and calculation function or process from the corresponding type of contract clause library and completing the contract calculation processing. The present application can provide timely and accurate automatic processing when facing complex contract calculation clauses.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of contract management and processing, and specifically to a method, system, electronic device and storage medium for automated contract processing. Background Art

[0002] Enterprises and financial institutions generally face the problem of inefficiency when processing a large number of contract documents, especially in the matching and calculation of contract terms, where the cost of manual intervention is high and the error rate is also high. For this reason, in recent years, smart contract management systems that use natural language processing technology and rule engines have gradually been developed to improve the speed and accuracy of contract processing.

[0003] The common practice at present is to manually configure the logic of contract clause parsing and calculation through preset rules or pattern recognition. Combined with natural language processing technology, semantic analysis and keyword matching can be used to further improve the accuracy of contract clause recognition and parsing, and then calculations can be performed according to preset rules. However, this approach still has certain limitations, especially when dealing with complex contract clauses, which is less flexible and difficult to adapt to changing business needs.

[0004] The existing intelligent contract management system has obvious shortcomings when dealing with complex contract terms. In particular, when faced with complex contract calculation terms, frequent manual intervention and adjustments are often required, which reduces the practicality and reliability of the system. These problems seriously affect the efficiency and accuracy of contract management. Summary of the invention

[0005] In order to provide timely and accurate automated processing when faced with complex contract calculation terms, the present application provides a contract automation processing method, system, electronic device and storage medium.

[0006] In a first aspect, the present application provides a method for automated contract processing, comprising:

[0007] Receive scanned contract text;

[0008] Use natural language processing technology to identify the scanned contract text and the clauses involving calculations and their validity periods in each clause; identify and deconstruct the calculation parameters and calculation logic in each calculation clause through semantic analysis; determine the classification of the calculation clauses based on the calculation parameters and calculation logic in each calculation clause, and store the calculation parameters, calculation logic and validity period of each calculation clause in the corresponding contract clause library according to the calculation clause type;

[0009] Build corresponding types of calculation function and process libraries according to the calculation clause types; each calculation function and process library stores typical calculation functions and processes of the corresponding calculation clause types;

[0010] For a single calculation clause, use the intelligent matching algorithm to match the calculation function or process with the highest similarity to the calculation parameters and calculation logic of the single calculation clause from the calculation function and process library of the corresponding type, and the similarity is greater than the preset similarity threshold; configure the matching calculation function or process according to the calculation parameters and calculation logic in the single calculation clause, associate the configured calculation function or process with the single calculation clause and store it in the contract clause library of the corresponding type of the single calculation clause;

[0011] Receive the calculation application instruction regarding the scanned contract sent by the user, determine the corresponding type of contract clause library according to the actual calculation parameters regarding the scanned contract in the calculation application instruction, and search for the corresponding calculation clause and calculation function or process from the determined contract clause library, and complete the contract calculation processing after determining that the searched calculation clause is within the validity period.

[0012] By adopting the above solution, natural language processing technology is used to automatically identify and parse contract terms, sort out and manage contract terms belonging to different calculation types, build and match calculation functions and process libraries accordingly, and use intelligent matching algorithms to match the most suitable calculation functions to adapt to the calculation processing of different types of contract terms, providing timely and accurate automated processing.

[0013] Preferably, it also includes:

[0014] Receive the supplementary agreement text of the scanned contract text; use natural language processing technology to identify the supplementary agreement text and identify the clauses involving calculation and their validity periods in each clause;

[0015] Automatically match the calculation clauses in the supplementary agreement with the calculation clauses in the scanned contract text through keyword matching technology, and identify the calculation clause pairs that have differences between the matched calculation clauses; compare the validity periods of the two calculation clauses for each pair of identified calculation clauses. If there is an overlap in the validity periods, the calculation clauses of the overlapping part shall be subject to the calculation clauses of the supplementary agreement; if there is no overlap, retain the two calculation clauses of the calculation clause pair;

[0016] For each calculation clause pair with overlapping validity periods, the calculation clauses belonging to the supplementary agreement are identified and deconstructed, and the corresponding calculation parameters and calculation logic are obtained, and compared with the calculation parameters and calculation logic of the calculation clauses belonging to the scanned contract; if there is only a difference in the calculation parameter values, the calculation parameter values ​​of the calculation clauses belonging to the scanned contract in the calculation clause pair stored in the contract clause library of the corresponding type of the calculation clause pair are directly updated, and the parameter configuration in the calculation function or process is re-completed; otherwise, the calculation clauses belonging to the supplementary agreement are identified and deconstructed, and the corresponding calculation parameters and calculation logic are obtained and the classification of the calculation clauses is determined, and the matching of the calculation function or process is completed, and the cross-content of the calculation clauses belonging to the scanned contract in the calculation clause pair stored in the contract clause library of the corresponding type of the calculation clause pair is replaced by the obtained calculation parameters and calculation logic, the matched calculation function or process, and the validity period; the cross-content is the calculation parameters and calculation logic in the calculation clause of the scanned contract corresponding to the overlapping validity period and the matched calculation function or process;

[0017] For each pair of calculation clauses that do not have any cross-overlapping situations, the calculation clauses that belong to the supplementary agreement are identified and deconstructed, the corresponding calculation parameters and calculation logic are obtained and the classification of the calculation clauses is determined, the matching of the calculation function or process is completed, and the obtained calculation parameters and calculation logic, the matched calculation function or process, and the validity period are added to the contract clause library.

[0018] By adopting the above solution, in order to address the problem of supplementary agreements, keyword matching technology is used to automatically match the calculation clauses in the supplementary agreement with those in the original contract. On the basis of ensuring that each clause corresponds correctly, the existence of cross-overlapping situations is further considered, and the clauses of the supplementary agreement are selected as priority. The calculation parameters and logic in the original contract are adaptively updated according to the degree of distinction between the clauses, avoiding repeated calculations and the generation of contradictory clauses, and ensuring the timeliness and effectiveness of the contract terms.

[0019] Preferably, it also includes:

[0020] Obtain the actual transaction calculation values ​​corresponding to the application instructions for scanning contracts and specifying the calculation clause type sent by several historical users;

[0021] Perform contract calculation processing on the application instructions for scanning contracts and specifying the type of calculation clauses sent by historical users one by one, and perform difference calculation on the value obtained from the contract calculation processing and the actual transaction calculation value corresponding to the application instructions for scanning contracts and specifying the type of calculation clauses sent by historical users; if the number of calculated differences greater than the preset value accounts for a proportion of the total number greater than the first preset proportion, it is determined that the contract calculation processing verification has failed, and the intelligent matching algorithm is optimized and trained, and the contract calculation processing and verification of the application instructions for scanning contracts and specifying the type of calculation clauses sent by several historical users are re-completed using the optimized intelligent matching algorithm; otherwise, it is determined that the verification is successful;

[0022] If the contract calculation processing of application instructions for scanning contracts and specifying calculation clause types sent by historical users of several instruction types using the optimized intelligent matching algorithm fails to be verified for a preset number of consecutive times, the calculation function and process library of the specified type will be expanded until the latest optimized intelligent matching algorithm successfully completes the contract calculation processing of application instructions for scanning contracts and specifying calculation clause types sent by historical users of several instruction types.

[0023] By adopting the above solution, multiple verifications are performed using application instructions sent by historical users regarding scanned contracts and specifying the type of calculation clauses, which can effectively detect deviations in the intelligent matching algorithm and gradually correct these deviations through optimization training to make the algorithm more accurate. When multiple consecutive verifications fail, the calculation function and process library of the specified type are automatically expanded to further enrich the learning samples of the algorithm, improve the generalization ability of the algorithm, and improve the accuracy of contract processing.

[0024] Preferably, the continuous preset number of times is set to different values ​​under different conditions; wherein, under the first condition, it is set to the first continuous preset number of times, and under the second condition, it is set to the second continuous preset number of times; the first continuous preset number of times is greater than the second continuous preset number of times;

[0025] The first condition refers to calculating the complexity of the corresponding calculation clauses found in the process of contract calculation processing according to the application instructions for scanning contracts and specifying the calculation clause types sent by several historical users, if the number of clauses with a calculated complexity greater than the preset complexity accounts for a proportion of the total number of calculation clauses greater than a second preset proportion;

[0026] The second condition refers to the calculation of the complexity of the corresponding calculation clauses found in the process of contract calculation processing according to the application instructions for scanning contracts and specifying the calculation clause types sent by several historical users, if the number of clauses with a calculated complexity greater than the preset complexity accounts for no more than a second preset ratio in the total number of calculation clauses;

[0027] The complexity of a single clause can be obtained by identifying and deconstructing the quantity index of the calculation parameters in each calculation clause and weighted calculation of the result index of whether the calculation method corresponding to the calculation logic belongs to the basic operation or not.

[0028] By adopting the above solution, during the contract calculation and processing process, the requirements for the intelligent matching algorithm for contract clauses of different complexity are different. The higher the complexity, the more accurate the intelligent matching algorithm is generally required. Then, according to the complexity of the contract clause, the method of dynamically adjusting the number of consecutive preset times is used to ensure the calculation accuracy in cases of higher complexity and improve the processing efficiency in cases of lower complexity.

[0029] Preferably, it also includes:

[0030] Set up multiple edge node clusters, and each edge node in each edge node cluster has a built-in intelligent matching algorithm and a calculation function and process library built for a type of calculation clause in the contract;

[0031] When receiving a calculation application instruction for scanning a contract sent by a user, the corresponding type of contract clause library is determined according to the actual calculation parameters for scanning the contract in the calculation application instruction, and when searching for the corresponding calculation clauses from the determined contract clause library, it is judged whether the number of corresponding calculation clauses currently found is greater than the preset number; if greater, the natural language analysis method is continued to be used to judge the relevance of the found calculation clauses, and the calculation clauses with relevance are assigned to the same edge node, and the matching edge node is used to find the calculation function or process that matches the calculation clause to complete the contract calculation processing; the remaining calculation clauses that are not related are respectively assigned to a single edge node in the edge node cluster of the corresponding type, and the assigned edge node is used to find the calculation function or process that matches the calculation clause to complete the contract calculation processing; if not greater, the same edge node is used to find the calculation function or process that matches the calculation clause to complete the contract calculation processing.

[0032] By adopting the above solution, multiple edge node clusters are set up. Each edge node has a built-in intelligent matching algorithm and a calculation function and process library for specific calculation clause types, which effectively disperses the computing tasks. At the same time, natural language analysis methods are used to analyze the correlation of these clauses, and the related clauses are centrally allocated to the same edge node for processing, further realizing efficient parallel processing.

[0033] Preferably, it also includes:

[0034] Obtain the latest laws, regulations and policies from external regulatory databases in real time through API interfaces;

[0035] Utilize natural language processing and machine learning technologies to parse the latest laws, regulations and policies and extract restrictions on calculation parameters and calculation logic in various types of calculation clauses in the received scanned contracts; compare the extracted restrictions with the most recently extracted restrictions in history. If the comparison result shows that there are changes in the restrictions, update each type of calculation clause in the received scanned contract according to the latest extracted restrictions, and construct corresponding types of calculation functions and process libraries, so that the calculation functions matching each calculation clause in the received scanned contract and the calculation functions or processes in the process library meet the latest restrictions.

[0036] By adopting the above solution, the latest laws, regulations and policies can be obtained and analyzed in real time to ensure that the calculation parameters and calculation logic of various types of calculation clauses in the contract always meet the latest legal requirements.

[0037] Preferably, it also includes:

[0038] When determining whether the calculation clause being searched is within the validity period, if the calculation clause being searched is not within the validity period, a prompt message indicating that the calculation clause is invalid is generated accordingly, and a reminder message indicating whether a supplementary agreement is to be made for the invalid calculation clause is generated.

[0039] By adopting the above solution, the expiration reminder can be issued in time by comparing the validity period, the initiative of contract management can be enhanced, and the contract automation processing can be completed more effectively.

[0040] In a second aspect, the present application provides a contract automation processing system, comprising:

[0041] A contract acquisition module, used for receiving a scanned contract text;

[0042] The contract parsing module is used to use natural language processing technology to identify the scanned contract text, identify the clauses involving calculations and their validity periods in each clause; identify and deconstruct the calculation parameters and calculation logic in each calculation clause through semantic analysis; determine the classification of the calculation clauses based on the calculation parameters and calculation logic in each calculation clause, and store the calculation parameters, calculation logic and validity period of each calculation clause in the contract clause library of the corresponding type according to the calculation clause type;

[0043] The contract calculation function library construction module is used to construct the corresponding type of calculation function and process library according to the calculation clause type; each calculation function and process library stores the typical calculation function and process of the corresponding calculation clause type;

[0044] The contract calculation function library matching module is used to match the calculation function or process with the highest similarity in the calculation parameters and calculation logic of the single calculation clause from the calculation function and process library of the corresponding type using the intelligent matching algorithm for a single calculation clause; configure the matching calculation function or process according to the calculation parameters and calculation logic in the single calculation clause, associate the configured calculation function or process with the single calculation clause and store it in the contract clause library of the corresponding type of the single calculation clause;

[0045] The contract calculation result acquisition module is used to receive the calculation application instructions regarding the scanned contract sent by the user, determine the corresponding type of contract clause library according to the actual calculation parameters regarding the scanned contract in the calculation application instructions, and search for the corresponding calculation clause and calculation function or process from the determined contract clause library, and complete the contract calculation processing after determining that the searched calculation clause is within the validity period.

[0046] By adopting the above solution, intelligent matching of calculation functions or processes is performed for different types of calculation clauses in the contract, so as to achieve efficient and orderly contract clause management and improve the efficiency of contract automation processing.

[0047] In a third aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the method as described above.

[0048] In a fourth aspect, the present application provides a computer device, comprising a memory, a processor, and a program stored and executable on the memory, wherein the program implements the steps of the above method when executed by the processor.

[0049] In summary, this application has the following beneficial effects:

[0050] 1. Automatically receive and parse the scanned contract text, identify the clauses involved in calculation and their validity period, deconstruct and obtain the calculation parameters and calculation logic through semantic analysis technology, and realize the automatic management of contract clauses; classify the calculation clauses using the obtained calculation parameters and calculation logic, and store the relevant information in the corresponding contract clause library, and build the corresponding calculation function and process library according to different types of calculation clauses, so as to intelligently match the most appropriate calculation function or process for the contract clauses, and ensure the orderliness and accuracy of contract clause management;

[0051] 2. Identify and process the calculation clauses in the supplementary agreement to ensure the consistency of the old and new contract clauses and quickly identify the differences between the supplementary agreement and the original contract, determine whether there is any overlap in the validity period of the differences, and the overlapping parts shall be based on the terms of the supplementary agreement to ensure the timeliness of the contract terms; according to the degree of difference of the different clauses, adaptively update the calculation parameters and logic and matching calculation functions in the original contract to avoid repeated calculations and the generation of contradictory clauses while reducing calculation costs; and enhance the continuity and integrity of contract management by setting active contract life cycle management such as clause expiration reminders and automatic merging of supplementary agreements. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 It is a flowchart of the contract automation processing method described in the specific embodiment;

[0053] Figure 2 It is a schematic diagram of the structure of the contract automation processing system described in the specific embodiment. DETAILED DESCRIPTION

[0054] 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.

[0055] like Figure 1 As shown, the embodiment of the present application discloses a method for automated contract processing, which specifically includes:

[0056] S1. Receive the scanned contract text and identify and analyze each clause in the contract text.

[0057] Specifically, the scanned contract text is received according to user needs, and the scanned contract text is recognized and analyzed using natural language processing technology. Considering the limitations of existing systems in processing complex calculation clauses, in this embodiment, when recognizing and analyzing the contract text, the calculated clauses and their validity periods in each clause in the contract text are identified.

[0058] For some normative contract texts, the image of the contract text can be combined to perform image analysis on the contract text to identify and obtain calculation clauses, such as the sales calculation clauses at specific locations in the standard form of the standardized contract.

[0059] S2. Through semantic analysis, identify and deconstruct the calculation parameters, calculation logic and validity period of each calculation clause, and store them in order according to the calculation clause type.

[0060] Specifically, through semantic analysis, we can identify and obtain the calculation parameters in each calculation clause, such as sales base, discount rate, growth rate, etc., and deconstruct the calculation logic described in the clause, such as increasing by quarter, adjusting the commission ratio when a specific sales threshold is reached, etc.

[0061] The type of calculation clause is determined based on the calculation parameters and calculation logic in each calculation clause extracted; the types of calculation clauses include: sales calculation, commission distribution calculation, late payment fee calculation, etc.

[0062] Specifically, a deep learning algorithm is used to determine the classification of calculation clauses based on the calculation parameters and calculation logic of each calculation clause extracted, so that the calculation parameters and calculation logic of each calculation clause are stored in a contract clause library of the corresponding type according to the calculation clause type, so as to enable orderly storage and query.

[0063] The validity period of each clause can be determined through semantic analysis. If the validity period is not obtained in the individual clause, the validity period of each clause is determined based on the validity period of the scanned contract as a whole, and is associated with the calculation parameters and calculation logic of each calculation clause and stored in the contract clause library of the corresponding type.

[0064] S3. Build a computing function and process library.

[0065] Specifically, in order to more effectively match calculation functions or processes for calculation clauses, corresponding types of calculation function and process libraries are constructed according to the types of calculation clauses. That is, each calculation function and process library stores typical calculation functions and calculation processes of the corresponding calculation clause type. These functions and processes can be pre-defined standard functions and processes, or user-defined customized functions and processes.

[0066] S4. Intelligently match the calculation function or process for each identified calculation clause, configure the matching calculation function or process, and store them in the corresponding type of contract clause library.

[0067] Specifically, for each calculation clause obtained by scanning the contract identification, the most suitable calculation function or process is matched from the calculation function and process library of the corresponding type using the intelligent matching algorithm. The intelligent matching algorithm can be based on machine learning technology, such as KNN, SVM or neural network, and automatically learns the calculation function or process with the highest similarity and greater than the preset similarity threshold based on the calculation parameters and calculation logic corresponding to a large number of historical calculation clauses.

[0068] In this embodiment, a deep neural network algorithm is used, and the calculation parameters and calculation logic of historical specific types of calculation clauses are used, as well as the calculation function or process training generation with the highest similarity to the calculation parameters and calculation logic of historical specific types of calculation clauses stored in the calculation function and process library of the corresponding type, and the similarity is greater than the preset similarity threshold; wherein, the intelligent matching algorithm selected for different specific types of calculation clauses may be different. For example: the step-by-step calculation function x=x1*a+x2*b+x3*c matching the employee-level commission calculation clause, x1 is the first 1 million in sales, x2 is the next 1 million after the sales of 1 million, x3 is the sales after two 1 million, and a, b, c are the commission extraction ratios for each stage.

[0069] According to the calculation parameters and calculation logic configuration in a single calculation clause, the matching calculation function or process is configured, that is, the parameters defined in the calculation clause are configured correspondingly with the parameters defined in the calculation function or process. For example, if the employee level commission calculation clause defines the commission ratio parameters as 0.1, 0.2, and 0.3, then the corresponding configurations are a=0.1, b=0.2, and c=0.3.

[0070] Associate the configured calculation function or process with the corresponding single calculation clause to form a set of associated data including calculation clause calculation parameters, calculation logic and matching calculation function or process, which can be stored in the contract clause library of the corresponding type of single calculation clause in order according to the clause sequence number. For example, associate the calculation parameters, calculation logic and calculation function x=x1*0.1+x2*0.2+x3*0.3 of the employee level commission calculation clause with sequence number 10.

[0071] S5. Receive the calculation application instruction sent by the user regarding the scanned contract, analyze the received calculation application instruction sent by the user and determine the corresponding type of contract clause library, and complete the contract calculation processing corresponding to the calculation application instruction.

[0072] Specifically, the calculation application instruction includes parameters such as the contract number specified by the user, the specified calculation content (such as the number and type of the calculation clause, the calculation object and the calculation amount). When the user sends the calculation application instruction, the scanned contract based on the calculation will be determined according to the contract number in the calculation application instruction, and the corresponding type of contract clause library will be determined according to the actual calculation parameters of the scanned contract; if the calculation clause type is not directly stated in the actual calculation parameters of the scanned contract, it can be directly matched and determined by matching the actual calculation parameters with the calculation parameters of each clause in the scanned contract corresponding to the specific number.

[0073] And search for the corresponding calculation clause and calculation function or process from the determined contract clause library, that is, directly search for the calculation clause through the calculation clause number in the actual calculation parameters of the scanned contract, or search for the calculation clause with the highest matching similarity from the determined contract clause library according to the actual calculation parameters of the scanned contract; in order to ensure the validity of the calculation processing results of the searched calculation clause, it is also necessary to ensure that the searched calculation clause is within the validity period. After determining that the searched calculation clause is within the validity period, complete the contract calculation processing according to the calculation function or process associated with the calculation clause in the contract clause library.

[0074] For example, if a user sends a calculation instruction for the employee commission amount for a scanning contract with a specific number and the sales volume is 3.5 million, the corresponding contract clause library determined as the commission calculation type will determine the commission calculation clause with serial number 10 and the associated calculation function x=x1*0.1+x2*0.2+x3*0.3 to obtain the final calculation result.

[0075] When determining whether the calculation clause being searched is within the validity period, if the calculation clause found is not within the validity period, a prompt message indicating the expiration of the calculation clause will be generated accordingly, and a reminder message on whether a supplementary agreement should be made for the invalid calculation clause will be generated, thereby completing the active management of the contract life cycle.

[0076] By adopting the method described above, by receiving the scanned contract text and using natural language processing technology to identify and parse it, the system can automatically identify and extract the key calculation terms in the contract; by building a calculation function and process library, and using an intelligent matching algorithm to match the most appropriate calculation function or process, the contract calculation processing can be completed efficiently, the cost of manual intervention can be reduced, and the efficiency and accuracy of contract processing can be improved.

[0077] In a specific embodiment, in order to strengthen the continuity and integrity of contract management, in the face of changes in the supplementary agreement, how to flexibly and effectively complete the contract automation processing and avoid possible conflicts in the processing process, the method also includes:

[0078] Receive the supplementary agreement text of the scanned contract text; use natural language processing technology to identify the supplementary agreement text and identify the clauses involving calculations and their validity periods in each clause.

[0079] In order to avoid conflicts between the scanned contract text and its supplementary agreement text, the calculation clauses in the supplementary agreement are first automatically matched with the calculation clauses in the scanned contract text through keyword matching technology, that is, the same type or associated calculation clauses are matched, such as: matching the employee level commission calculation clause with serial number 2 in the supplementary agreement associated with the employee level commission calculation clause with serial number 10; further identifying the calculation clause pairs with differences between the matched calculation clauses to avoid duplicate items and repeated calculations, and waste of computing resources; among them, the identification of differences is mainly aimed at the differences in calculation parameters and calculation logic in the two calculation clauses.

[0080] To ensure the effectiveness and consistency of contract processing, for each pair of calculation clauses identified (clauses with differences), compare the validity periods of the two calculation clauses. If there is overlap in the validity periods, the calculation clauses of the overlapping part shall be subject to the calculation clauses of the supplementary agreement; if there is no overlap, the two calculation clauses of the calculation clause pair shall be retained; for example, the validity period of the employee level commission calculation clause with serial number 10 is from October 2013 to October 2025, and the validity period of the employee level commission calculation clause with serial number 2 as the supplementary agreement is from February 2025 to October 2026. In this case, there is overlap, and the calculation clause of the overlapping part shall be subject to the employee level commission calculation clause with serial number 2. However, the validity period of the employee level commission calculation clause with serial number 2 as the supplementary agreement is from November 2025 to October 2026, and there is no overlap, so both calculation clauses shall be retained.

[0081] For each calculation clause pair with overlapping validity periods, the calculation clauses of the supplementary agreement shall prevail during the overlapping period, and the calculation clauses belonging to the supplementary agreement shall be identified and deconstructed, and the corresponding calculation parameters and calculation logic shall be obtained. In order to further simplify the speed of synchronously updating the contract, the calculation clauses belonging to the supplementary agreement in each calculation clause pair with overlapping validity periods shall be identified and deconstructed to obtain the calculation parameters and calculation logic, and compared with the calculation parameters and calculation logic of the calculation clauses belonging to the scanned contract.

[0082] If there is only a difference in the calculation parameter values, the calculation parameter values ​​of the calculation clauses belonging to the scanned contract in the calculation clause pairs stored in the contract clause library of the corresponding type of the calculation clause pairs and the parameter values ​​configured in the calculation function or process are directly updated; for example: the employee level commission calculation clause with serial number 2 as the supplementary agreement is different only in the commission ratio of the calculation parameter: x2, then the calculation parameter value 0.2 is directly updated to the latest 0.15, and the corresponding calculation function x=x1*0.1+x2*0.15+x3*0.3.

[0083] Otherwise, the comparison results are quite different. The calculation clauses belonging to the supplementary agreement are identified and deconstructed, and the corresponding calculation parameters and calculation logic are obtained and the classification of the calculation clauses is determined. The matching of the calculation function or process is completed, and the obtained calculation parameters and calculation logic, the term of the overlapping part, and the matched calculation function or process are used to replace the cross-content of the calculation clauses belonging to the scanned contract in the calculation clause pair stored in the contract clause library of the corresponding type of the calculation clause pair; the cross-content is the calculation parameters and calculation logic in the calculation clause of the scanned contract corresponding to the overlapping part of the validity period, and the matched calculation function. Number or process; for example: the calculation logic in the employee level commission calculation clause with serial number 2 as the supplementary agreement does not adopt a step-by-step calculation, and the commission ratio is 0.5. Therefore, the employee level commission calculation clause with serial number 2 as the supplementary agreement is identified and deconstructed separately, the calculation clause classification and the matching of the calculation function or process are determined, and the obtained calculation function or process is x=x0*z(0.5). Then, in the overlapping part of the validity period from February 2025 to October 2025, the calculation parameters and calculation logic of the calculation clauses originally belonging to the scanning contract and the matching calculation functions or processes are replaced.

[0084] For each calculation clause pair that does not have any cross-overlapping, two calculation clauses are retained, and the corresponding calculation clauses shall prevail within different periods; then the calculation clauses that belong to the supplementary agreement are identified and deconstructed, the corresponding calculation parameters and calculation logic are obtained and the classification of the calculation clauses is determined, the matching of the calculation function or process is completed, and the obtained calculation parameters and calculation logic, the matching calculation function or process, and the validity period are added to the contract clause library; for example, the contract clause library stores: the calculation parameters and calculation logic, matching calculation function or process of the employee level commission calculation clause with a validity period of October 2013 to October 2025 and serial number 10, and the calculation parameters and calculation logic, matching calculation function and process of the employee level commission calculation clause with a validity period of November 2025 to October 2026.

[0085] By adopting the above method, the supplementary agreement text of the scanned contract text can be received and identified and parsed using natural language processing technology, and the calculation parameters, calculation logic and matching calculation functions or processes corresponding to the calculation terms in the contract can be automatically matched and updated, thereby improving the flexibility and accuracy of contract management.

[0086] In a specific embodiment, in order to further ensure the accuracy of contract processing, by verifying the calculation results of contract terms, the matching optimization or expansion of the contract terms calculation function is realized, and the accuracy and efficiency of contract calculation processing are further improved. The method also includes:

[0087] Obtain actual transaction calculation values ​​corresponding to application instructions for scanning contracts and specifying calculation clause types sent by several historical users; wherein the actual transaction calculation values ​​refer to true and accurate calculation results obtained by experts based on the calculation clause content in the scanning contract text corresponding to the application instructions for scanning contracts and specifying calculation clause types sent by historical users.

[0088] The application instructions for scanning contracts and specifying the type of calculation clauses sent by historical users are processed for contract calculation one by one, and the difference between the obtained contract calculation value and the actual transaction calculation value corresponding to the application instructions for scanning contracts and specifying the type of calculation clauses sent by historical users is calculated; if the number of calculated differences greater than the preset value accounts for a proportion of the total number that is greater than the first preset proportion, it indicates that a large part of the contract calculation results have large errors, and the contract calculation verification is deemed to have failed, and the intelligent matching algorithm is optimized and trained; the specific optimization training may adopt incremental training; the optimized intelligent matching algorithm is used to re-complete the contract calculation and verification of several application instructions for scanning contracts and specifying the type of calculation clauses sent by historical users; otherwise, the verification is deemed to be successful.

[0089] Considering that the reasons for verification failure include not only the influence of the intelligent matching algorithm, but also the limited preset calculation functions and processes in the originally constructed calculation function and process library, it is necessary to further expand the calculation function and process library. Specifically, if the contract calculation processing of the application instructions for scanning contracts and specifying the calculation clause type sent by historical users of several instruction types using the optimized intelligent matching algorithm fails to be verified for a preset number of consecutive times, the calculation function and process library of the specified type will be expanded until the latest optimized intelligent matching algorithm successfully completes the contract calculation processing of the application instructions for scanning contracts and specifying the calculation clause type sent by historical users of several instruction types.

[0090] In addition, considering that in the process of contract calculation and processing, the calculation of contract clauses of different complexity requires a higher accuracy of the corresponding intelligent matching algorithm, the design dynamically sets the continuous preset number according to different conditions to improve the system's adaptability and fault tolerance. Specifically, the continuous preset number is set to different values ​​under different conditions; wherein, under the first condition, it is set to the first continuous preset number, and under the second condition, it is set to the second continuous preset number; the first continuous preset number is greater than the second continuous preset number.

[0091] The first condition refers to calculating the complexity of corresponding calculation clauses found in the process of contract calculation based on application instructions for scanning contracts and specifying calculation clause types sent by several historical users during the contract calculation process. If the number of clauses with a calculated complexity greater than a preset complexity accounts for a proportion of the total number of calculated clauses greater than a second preset proportion; that is, in the case of high complexity, a larger continuous preset number of times is selected to try multiple times to optimize the intelligent matching algorithm to ensure the accuracy of the final calculation result.

[0092] The second condition refers to calculating the complexity of corresponding calculation clauses found in the process of contract calculation based on application instructions for scanning contracts and specifying the type of calculation clauses sent by several historical users during the contract calculation process. If the number of clauses with a calculated complexity greater than the preset complexity accounts for a proportion of the total number of calculated clauses not greater than a second preset proportion, that is, when the complexity is relatively small, a smaller continuous preset number of times is selected to optimize and improve the calculation efficiency through multiple attempts to ensure the accuracy of the final calculation result.

[0093] The complexity of a single clause can be obtained by identifying and deconstructing the quantity index of the calculation parameters in each calculation clause and weighted calculation of the result index of whether the calculation method corresponding to the calculation logic belongs to the basic operation or not.

[0094] By adopting the above method, the accuracy of contract calculation can be automatically verified by performing contract calculation on the application instructions sent by historical users and calculating the difference with the actual transaction calculation value. By optimizing and training the intelligent matching algorithm, the calculation function and process library are continuously improved and optimized to improve the accuracy and efficiency of contract calculation.

[0095] In a specific embodiment, in order to improve stability and availability under large-scale concurrent requests, shorten user waiting time, and improve user experience, a distributed processing method is used to achieve efficient parallel processing; the method includes:

[0096] Set up multiple edge node clusters, which can be achieved through cloud computing platforms such as AWS, Azure or Google Cloud. Each edge node in each edge node cluster has a built-in intelligent matching algorithm and a calculation function and process library built for a type of calculation clause in the contract. These calculation functions and process libraries can be stored locally on the edge node, such as SQLite.

[0097] When receiving a calculation application instruction for scanning a contract sent by a user, the corresponding type of contract clause library is determined according to the actual calculation parameters for scanning the contract in the calculation application instruction, and when searching for the corresponding calculation clauses from the determined contract clause library, it is judged whether the number of corresponding calculation clauses currently found is greater than the preset number; if greater, it indicates that the current computing resource demand is large and parallel computing processing can be performed; in addition, in order to ensure that the calculation clauses with associated relationships are calculated together to form a reference comparison as much as possible, the natural language analysis method is continued to be used to judge the correlation of the found calculation clauses, and the associated calculation clauses are assigned to the same edge node, and the matching edge node is used to find the calculation function or process that matches the calculation clause to complete the contract calculation processing; for example: the employee level commission calculation clause with serial number 10 and the manager level commission calculation clause with serial number 11 are assigned to the same edge node.

[0098] The remaining non-correlated calculation terms are respectively assigned to a single edge node in the edge node cluster of the corresponding type, and the assigned edge node is used to find the calculation function or process that matches the calculation term to complete the contract calculation processing; if it is not greater than, the same edge node is used to find the calculation function or process that matches the calculation term to complete the contract calculation processing.

[0099] By adopting the above method, multiple edge node clusters are set up to disperse computing tasks based on the actual number of computing tasks, thereby improving the efficiency and stability of contract computing processing.

[0100] In a specific embodiment, in order to ensure that the calculation functions and processes stored in the calculation function and process library comply with laws and regulations, thereby ensuring the compliance and security of the contract processing results; the method further includes:

[0101] Obtain the latest laws, regulations and policies in real time from external regulatory databases through API interfaces.

[0102] Utilize natural language processing and machine learning technologies to parse the latest laws, regulations and policies and extract restrictions on calculation parameters and calculation logic in various types of calculation clauses in received scanning contracts; that is, identify the latest laws, regulations and policies involving restrictions on calculation parameters and calculation logic in various types of calculation clauses in scanning contracts.

[0103] The extracted restrictions are compared with the most recently extracted restrictions in history; wherein the most recently extracted restrictions refer to the most recently extracted restrictions in history compared with the currently extracted restrictions.

[0104] If the comparison result shows that there are changes in restrictions, it means that the laws, regulations and policies have changed. It is necessary to update the calculation clause types in the received scanned contract according to the latest extracted restrictions and build corresponding types of calculation functions and process libraries, so that the calculation functions matching the calculation clauses in the received scanned contract and the calculation functions (calculation parameters of the calculation functions) or processes in the process library comply with the latest restrictions.

[0105] like Figure 2 As shown, this embodiment discloses a contract automation processing system, which specifically includes:

[0106] The contract acquisition module 101 is used to receive the scanned contract text;

[0107] The contract parsing module 102 is used to identify the scanned contract text by using natural language processing technology, identify the clauses involving calculation and their validity period in each clause; identify and deconstruct the calculation parameters and calculation logic in each calculation clause through semantic analysis; determine the classification of the calculation clause according to the calculation parameters and calculation logic in each calculation clause, and store the calculation parameters, calculation logic and validity period of each calculation clause in the contract clause library of the corresponding type according to the calculation clause type;

[0108] The contract calculation function library construction module 103 is used to construct corresponding types of calculation function and process libraries according to the calculation clause types; each calculation function and process library stores typical calculation functions and processes of the corresponding calculation clause type;

[0109] The contract calculation function library matching module 104 is used to match, for a single calculation clause, a calculation function or process with the highest similarity to the calculation parameters and calculation logic of the single calculation clause from the calculation function and process library of the corresponding type using an intelligent matching algorithm; configure the matching calculation function or process according to the calculation parameters and calculation logic in the single calculation clause, associate the configured calculation function or process with the single calculation clause, and store it in the contract clause library of the corresponding type of the single calculation clause;

[0110] The contract calculation result acquisition module 105 is used to receive the calculation application instruction regarding the scanned contract sent by the user, determine the corresponding type of contract clause library according to the actual calculation parameters regarding the scanned contract in the calculation application instruction, and search for the corresponding calculation clause and calculation function or process from the determined contract clause library, and complete the contract calculation processing after determining that the searched calculation clause is within the validity period.

[0111] The system further comprises:

[0112] The contract clause expiration reminder module 107 is used to determine whether the calculation clause being searched is within the validity period. If the calculation clause being searched is not within the validity period, a prompt message indicating the expiration of the calculation clause is generated accordingly, and a reminder message indicating whether a supplementary agreement should be made for the invalid calculation clause is generated.

[0113] The contract agreement supplementary calculation module 106 is used to receive the supplementary agreement text of the scanned contract text; use natural language processing technology to identify the supplementary agreement text, identify the clauses involved in calculation and their validity period in each clause; automatically match the calculation clauses in the supplementary agreement with the calculation clauses in the scanned contract text through keyword matching technology, and identify the calculation clause pairs with differences between the matched calculation clauses; compare the validity periods of the two calculation clauses for each pair of identified calculation clauses, if there is an overlap in the validity periods, the calculation clauses of the overlapped part shall be based on the calculation clauses of the supplementary agreement; if there is no overlap, retain the two calculation clauses of the calculation clause pair; for each calculation clause pair with an overlapped validity period, identify and deconstruct the calculation clause belonging to the supplementary agreement, obtain the corresponding calculation parameters and calculation logic, and compare them with the calculation parameters and calculation logic of the calculation clause belonging to the scanned contract; if there is only a difference in the calculation parameter values, directly update the calculation clause stored in the contract clause library of the corresponding type of the calculation clause pair The calculation parameter values ​​of the calculation clauses belonging to the scanned contract in the clause pair and the parameter values ​​configured in the calculation function or process; otherwise, the calculation clauses belonging to the supplementary agreement are identified and deconstructed, the calculation parameters and calculation logic are obtained and the classification of the calculation clauses is determined, the matching of the calculation function or process is completed, and the obtained calculation parameters and calculation logic, the term of the overlapping part, and the matched calculation function or process are used to replace the cross-content of the calculation clauses belonging to the scanned contract in the calculation clause pair stored in the contract clause library of the corresponding type of the calculation clause pair; the cross-content is the calculation parameters and calculation logic in the calculation clauses of the scanned contract corresponding to the overlapping part of the validity period and the matched calculation function or process; for each calculation clause pair without cross-overlapping, the calculation clauses belonging to the supplementary agreement are identified and deconstructed, the calculation parameters and calculation logic are obtained and the classification of the calculation clauses is determined, the matching of the calculation function or process is completed, and the obtained calculation parameters and calculation logic, the matched calculation function or process and the validity period are added to the contract clause library.

[0114] In a specific embodiment, the contract calculation function library matching module 104 in the system is also used to obtain the actual transaction calculation values ​​corresponding to the application instructions for scanning contracts and specifying the calculation clause type sent by several historical users; perform contract calculation processing on the application instructions for scanning contracts and specifying the calculation clause type sent by the historical users one by one, and perform difference calculation on the obtained contract calculation processing value and the actual transaction calculation value corresponding to the application instructions for scanning contracts and specifying the calculation clause type sent by the historical users; if the number of calculated differences greater than the preset value accounts for a proportion of the total number greater than the first preset proportion, it is determined that the contract calculation processing verification has failed, and the intelligent matching algorithm is performed. Optimize training, use the optimized intelligent matching algorithm to re-complete the contract calculation processing and verification of several historical users' application instructions for scanning contracts and specifying the calculation clause type; otherwise, the verification is deemed successful; if the contract calculation processing of several instruction types' application instructions sent by historical users with specified calculation clause types using the optimized intelligent matching algorithm to be re-completed for a preset number of consecutive times fails to be verified, then the calculation function and process library of the specified type are expanded until the latest optimized intelligent matching algorithm re-completes the contract calculation processing and verification of several instruction types' application instructions sent by historical users with specified calculation clause types.

[0115] In a specific embodiment, the contract calculation result acquisition module 105 in the system is also used to set up multiple edge node clusters, and each edge node in each edge node cluster has a built-in intelligent matching algorithm and a calculation function and process library constructed for a type of calculation clause of the contract; when receiving a calculation application instruction for scanning a contract sent by a user, the corresponding type of contract clause library is determined according to the actual calculation parameters of the scanned contract in the calculation application instruction, and when searching for the corresponding calculation clauses from the determined contract clause library, it is judged whether the number of corresponding calculation clauses currently found is greater than the preset number; if greater, the natural language analysis method is continued to be used to judge the relevance of the found calculation clauses, and the calculation clauses with relevance are assigned to the same edge node, and the matching edge node is used to find the calculation function or process matching the calculation clause to complete the contract calculation processing; the remaining calculation clauses without relevance are respectively assigned to a single edge node in the edge node cluster of the corresponding type, and the assigned edge node is used to find the calculation function and process matching the calculation clause to complete the contract calculation processing; if not greater, the same edge node is used to find the calculation function or process matching the calculation clause to complete the contract calculation processing.

[0116] In a specific embodiment, the contract calculation function library construction module 103 in the system is also used to obtain the latest laws, regulations and policy contents in real time from an external regulatory database through an API interface; utilize natural language processing and machine learning technology to parse the latest laws, regulations and policy contents and extract restrictions on calculation parameters and calculation logic in various types of calculation clauses in the received scanned contract; compare the extracted restrictions with the most recently extracted restrictions in history. If the comparison result shows that there are changes in the restrictions, then update each type of calculation clause in the received scanned contract according to the latest extracted restrictions, and construct a corresponding type of calculation function and process library, so that the calculation functions and processes in the calculation function and process library that match each calculation clause in the received scanned contract meet the latest restrictions.

[0117] The embodiment of the present application also discloses a computer-readable storage medium.

[0118] Specifically, the computer-readable storage medium stores a computer program that can be loaded by a processor and execute the above-mentioned contract automation processing method. The computer-readable storage medium includes, for example: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0119] The embodiment of the present application also discloses a computer device.

[0120] Specifically, the computer device includes a memory and a processor, and the memory stores a computer program that can be loaded by the processor and execute the above-mentioned contract automation processing method.

[0121] The above are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Any feature disclosed in this specification (including the abstract and drawings), unless otherwise stated, can be replaced by other equivalent or alternative features with similar purposes. That is, unless otherwise stated, each feature is only an example of a series of equivalent or similar features.

Claims

1. A method for automated contract processing, characterized in that: include: Receive scanned contract text; Use natural language processing technology to identify scanned contract texts and the clauses involving calculations and their validity periods; Through semantic analysis, the calculation parameters and calculation logic in each calculation clause are identified and deconstructed; the calculation clause classification is determined according to the calculation parameters and calculation logic in each calculation clause, and the calculation parameters, calculation logic and validity period of each calculation clause are stored in the contract clause library of the corresponding type according to the calculation clause type; Build corresponding types of calculation function and process libraries according to the calculation clause types; each calculation function and process library stores typical calculation functions and processes of the corresponding calculation clause types; For a single calculation clause, use the intelligent matching algorithm to match the calculation function or process with the highest similarity to the calculation parameters and calculation logic of the single calculation clause from the calculation function and process library of the corresponding type, and the similarity is greater than the preset similarity threshold; According to the calculation parameters and calculation logic in a single calculation clause, a matching calculation function or process is configured, and the configured calculation function or process is associated with a single calculation clause and stored in a contract clause library of the corresponding type of the single calculation clause; Receive the calculation application instruction regarding the scanned contract sent by the user, determine the corresponding type of contract clause library according to the actual calculation parameters regarding the scanned contract in the calculation application instruction, and search for the corresponding calculation clause and calculation function or process from the determined contract clause library, and complete the contract calculation processing after determining that the searched calculation clause is within the validity period.

2. The contract automation processing method according to claim 1, characterized in that: Also includes: Receive the supplementary agreement text of the scanned contract text; Use natural language processing technology to identify the text of the supplementary agreement and the clauses involving calculations and their validity periods; Automatically match the calculation clauses in the supplementary agreement with the calculation clauses in the scanned contract text through keyword matching technology, and identify the calculation clause pairs that have differences between the matched calculation clauses; compare the validity periods of the two calculation clauses for each pair of identified calculation clauses. If there is an overlap in the validity periods, the calculation clauses of the overlapping part shall be subject to the calculation clauses of the supplementary agreement; if there is no overlap, retain the two calculation clauses of the calculation clause pair; For each pair of calculation clauses with overlapping validity periods, the calculation clauses belonging to the supplementary agreement are identified and deconstructed, and the corresponding calculation parameters and calculation logic are obtained, and compared with the calculation parameters and calculation logic of the calculation clauses belonging to the scanned contract; If there is only a difference in the calculation parameter values, the calculation parameter values ​​of the calculation clauses belonging to the scanned contract in the calculation clause pairs stored in the contract clause library of the corresponding type of the calculation clause pairs and the parameter values ​​configured in the calculation function or process are directly updated; otherwise, the calculation clauses belonging to the supplementary agreement are identified and deconstructed, the calculation parameters and calculation logic are correspondingly obtained and the classification of the calculation clauses is determined, the matching of the calculation function or process is completed, and the obtained calculation parameters and calculation logic, the term of the cross-overlapping part, and the matched calculation function or process are used to replace the cross-content of the calculation clauses belonging to the scanned contract in the calculation clause pairs stored in the contract clause library of the corresponding type of the calculation clause pairs; the cross-content is the calculation parameters and calculation logic in the calculation clauses of the scanned contract corresponding to the cross-overlapping part of the validity period and the matched calculation function or process; For each pair of calculation clauses that do not have any cross-overlapping situations, the calculation clauses that belong to the supplementary agreement are identified and deconstructed, the corresponding calculation parameters and calculation logic are obtained and the classification of the calculation clauses is determined, the matching of the calculation function or process is completed, and the obtained calculation parameters and calculation logic, the matched calculation function or process, and the validity period are added to the contract clause library.

3. The contract automation processing method according to claim 1, characterized in that: Also includes: Obtain the actual transaction calculation values ​​corresponding to the application instructions for scanning contracts and specifying the calculation clause type sent by several historical users; Perform contract calculation processing on the application instructions for scanning contracts and specifying the type of calculation clauses sent by historical users one by one, and perform difference calculation on the value obtained by contract calculation processing and the actual transaction calculation value corresponding to the application instructions for scanning contracts and specifying the type of calculation clauses sent by historical users; If the number of calculated differences greater than the preset value accounts for a proportion of the total number greater than the first preset proportion, the contract calculation processing verification is deemed to have failed, and the intelligent matching algorithm is optimized and trained, and the contract calculation processing and verification of application instructions for scanning contracts and specifying the calculation clause type sent by several historical users are re-completed using the optimized intelligent matching algorithm; otherwise, the verification is deemed to be successful; If the contract calculation processing of application instructions for scanning contracts and specifying calculation clause types sent by historical users of several instruction types using the optimized intelligent matching algorithm fails to be verified for a preset number of consecutive times, the calculation function and process library of the specified type will be expanded until the latest optimized intelligent matching algorithm successfully completes the contract calculation processing of application instructions for scanning contracts and specifying calculation clause types sent by historical users of several instruction types.

4. The contract automation processing method according to claim 3, characterized in that: The continuous preset number of times is set to different values ​​under different conditions; wherein, under the first condition, it is set to the first continuous preset number of times, and under the second condition, it is set to the second continuous preset number of times; the first continuous preset number of times is greater than the second continuous preset number of times; The first condition refers to calculating the complexity of the corresponding calculation clauses found in the process of contract calculation processing according to the application instructions for scanning contracts and specifying the calculation clause types sent by several historical users, if the number of clauses with a calculated complexity greater than the preset complexity accounts for a proportion of the total number of calculation clauses greater than a second preset proportion; The second condition refers to the calculation of the complexity of the corresponding calculation clauses found in the process of contract calculation processing according to the application instructions for scanning contracts and specifying the calculation clause types sent by several historical users, if the number of clauses with a calculated complexity greater than the preset complexity accounts for no more than a second preset ratio in the total number of calculation clauses; The complexity of a single clause can be obtained by identifying and deconstructing the quantity index of the calculation parameters in each calculation clause and weighted calculation of the result index of whether the calculation method corresponding to the calculation logic belongs to the basic operation or not.

5. The contract automation processing method according to claim 1, characterized in that: Also includes: Set up multiple edge node clusters, and each edge node in each edge node cluster has a built-in intelligent matching algorithm and a calculation function and process library built for a type of calculation clause in the contract; When receiving a calculation application instruction for scanning a contract sent by a user, determine the corresponding type of contract clause library according to the actual calculation parameters of the scanned contract in the calculation application instruction, and when searching for the corresponding calculation clauses from the determined contract clause library, judge whether the number of corresponding calculation clauses currently found is greater than the preset number; if greater, continue to use the natural language analysis method to judge the relevance of the found calculation clauses, assign the related calculation clauses to the same edge node, and use the matching edge node to find the calculation function or process matching the calculation clause to complete the contract calculation processing; The remaining non-correlated computing clauses are respectively assigned to a single edge node in the edge node cluster of the corresponding type, and the assigned edge node is used to find the computing function or process matching the computing clause to complete the contract computing process; If not, the same edge node is used to find a calculation function or process that matches the calculation terms to complete the contract calculation processing.

6. The contract automation processing method according to claim 1, characterized in that: Also includes: Obtain the latest laws, regulations and policies from external regulatory databases in real time through API interfaces; Utilize natural language processing and machine learning technologies to parse the latest laws, regulations and policies and extract restrictions on calculation parameters and calculation logic in various types of calculation clauses in the received scanned contracts; compare the extracted restrictions with the most recently extracted restrictions in history. If the comparison result shows that there are changes in the restrictions, update each type of calculation clause in the received scanned contract according to the latest extracted restrictions, and construct corresponding types of calculation functions and process libraries, so that the calculation functions matching each calculation clause in the received scanned contract and the calculation functions or processes in the process library meet the latest restrictions.

7. The contract automation processing method according to claim 1, characterized in that: Also includes: When determining whether the calculation clause being searched is within the validity period, if the calculation clause being searched is not within the validity period, a prompt message indicating that the calculation clause is invalid is generated accordingly, and a reminder message indicating whether a supplementary agreement is to be made for the invalid calculation clause is generated.

8. A contract automation processing system, characterized in that: include: A contract acquisition module, used for receiving a scanned contract text; The contract parsing module is used to identify the scanned contract text using natural language processing technology, and identify the clauses involving calculations and their validity periods in each clause; Through semantic analysis, the calculation parameters and calculation logic in each calculation clause are identified and deconstructed; the calculation clause classification is determined according to the calculation parameters and calculation logic in each calculation clause, and the calculation parameters, calculation logic and validity period of each calculation clause are stored in the contract clause library of the corresponding type according to the calculation clause type; The contract calculation function library construction module is used to construct the corresponding type of calculation function and process library according to the calculation clause type; each calculation function and process library stores the typical calculation function and process of the corresponding calculation clause type; The contract calculation function library matching module is used to match the calculation function or process with the highest similarity in calculation parameters and calculation logic of the single calculation clause and the similarity greater than a preset similarity threshold from the calculation function and process library of the corresponding type for a single calculation clause using an intelligent matching algorithm; According to the calculation parameters and calculation logic in a single calculation clause, a matching calculation function or process is configured, and the configured calculation function or process is associated with a single calculation clause and stored in a contract clause library of the corresponding type of the single calculation clause; The contract calculation result acquisition module is used to receive the calculation application instructions regarding the scanned contract sent by the user, determine the corresponding type of contract clause library according to the actual calculation parameters regarding the scanned contract in the calculation application instructions, and search for the corresponding calculation clause and calculation function or process from the determined contract clause library, and complete the contract calculation processing after determining that the searched calculation clause is within the validity period.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 7.

10. A computer device, characterized in that: The computer device comprises a memory, a processor and a program stored and executable on the memory, and the program implements the steps of the method according to any one of claims 1 to 7 when executed by the processor.

Citation Information

Patent Citations

  • Control method and device for automatically calculating default contract, computer equipment and storage medium

    CN109583687A

  • Leasing management method, electronic equipment and readable storage medium

    CN118982416A