A digital contract generation method and device
By obtaining contract framework templates, instance contracts and stakeholder information, generating terms content and signature locations, the problem that digital contract generation methods in the existing technology are limited by fixed mode, and flexible digital contract generation and efficient online signing are realized. , reduce maintenance costs.
Patent Information
- Application Number
- CN202110057786.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-15
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2041-01-15
AI Technical Summary
The existing digital contract generation methods are limited by fixed modes and cannot adapt to complex scenarios. Users need to manually locate the signature location, resulting in poor experience and high maintenance costs.
By obtaining the contract framework template, instance contract and stakeholder information, generating terms content and signature location, multiple stakeholders are supported to sign in the same signature area, reducing users' manual operation needs.
It realizes flexible digital contract generation, reduces the cost of contract template maintenance, and improves the user experience and online signing efficiency of trading systems.
Smart Images

Figure CN112766901B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a method and device for generating a digital contract. Background Art
[0002] At present, with the popularization of the Internet, traditional paper contracts are gradually being replaced by electronic contracts (or digital contracts). It can be understood that electronic contracts are agreements between two or more parties in electronic form to establish, change, or terminate property-related civil rights and obligations. They have the advantages of being easy to use, highly efficient in transmission, and not limited by time and place.
[0003] In the prior art, digital contracts are usually created and signed in a fixed mode provided by the contract provider to the user. The user's usage habits and signing methods are restricted by the standard contract and can only be applied to simple scenarios. The contract signing requirements are single and can either only be signed at a fixed location or require manual positioning by the user, resulting in the signing location not meeting the contract form requirements or poor user experience. Summary of the invention
[0004] The present invention belongs to the field of artificial intelligence technology. According to the digital contract generation method and device provided by the present invention, the maintenance cost of the contract template can be reduced, different stakeholders are supported to sign in their respective signature areas, and multiple stakeholders are supported to sign successively in the same signature area. There is no need for users to manually locate the signature position, thereby reducing the cost of online signing of digital contracts in the transaction system.
[0005] In order to achieve the above object, a digital contract generation method is provided, comprising:
[0006] Obtain the contract framework template, instance contract and stakeholder information corresponding to the digital contract to be generated;
[0007] Generate clause content according to the fixed content in the clause template corresponding to the instance contract and the contract variable tag at the position corresponding to the fixed content;
[0008] Generate contract variable content corresponding to the contract variable tag according to the contract variable corresponding to the contract variable tag and the contract variable format;
[0009] The digital contract is generated according to the contract variable content, the clause content, the contract framework template and the stakeholder clause content corresponding to the stakeholder information.
[0010] Preferably, the generating of clause content according to the fixed content in the clause template corresponding to the instance contract and the contract variable tag at the position corresponding to the fixed content includes:
[0011] Performing operations according to the expressions in the clause template to generate a clause template with a true operation result;
[0012] The clause content is generated according to the fixed content of the clause template whose operation result is true and the contract variable tag at the corresponding position of the fixed content.
[0013] Preferably, the digital contract generation method further comprises:
[0014] Replace the clause variable label corresponding to the instance contract with the clause content;
[0015] The contract variable tag in the instance contract is replaced with the contract variable content.
[0016] Preferably, the digital contract generation method further comprises:
[0017] Acquire a signature position keyword tag according to the stakeholder information;
[0018] Acquire the signature position according to the signature position keyword tag;
[0019] Generate a stakeholder signature at the signature location.
[0020] In a second aspect, the present invention further provides a digital contract generation device, the device comprising:
[0021] A data acquisition unit, used to acquire the contract framework template, instance contract and stakeholder information corresponding to the digital contract to be generated;
[0022] A clause content generating unit, configured to generate clause content according to the fixed content in the clause template corresponding to the instance contract and the contract variable tag at the position corresponding to the fixed content;
[0023] A variable content generating unit, configured to generate a contract variable content corresponding to the contract variable tag according to the contract variable corresponding to the contract variable tag and the contract variable format;
[0024] A contract generation unit is used to generate the digital contract according to the contract variable content, the clause content, the contract framework template and the stakeholder clause content corresponding to the stakeholder information.
[0025] Preferably, the clause content generating unit includes:
[0026] A clause template generating module, used for performing calculations according to the expressions in the clause template to generate a clause template whose calculation result is true;
[0027] The clause content generation module is used to generate the clause content according to the fixed content of the clause template whose operation result is true and the contract variable label at the corresponding position of the fixed content.
[0028] Preferably, the digital contract generating device further comprises:
[0029] A clause content replacement unit, used to replace the clause variable tag corresponding to the instance contract with the clause content;
[0030] The variable content replacement unit is used to replace the contract variable tag in the instance contract with the contract variable content.
[0031] Preferably, the digital contract generating device further comprises:
[0032] A keyword tag acquisition unit, used to acquire a signature position keyword tag according to the stakeholder information;
[0033] A signature position acquisition unit, used to acquire the signature position according to the signature position keyword tag;
[0034] The signature generation unit is used to generate a stakeholder signature at the signature position.
[0035] In a third aspect, the present invention provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of a method for generating a digital contract when executing the program.
[0036] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of a digital contract generation method.
[0037] From the above description, it can be seen that the digital contract generation method and device provided by the embodiment of the present invention first obtains the contract framework template, instance contract and stakeholder information corresponding to the digital contract to be generated; generates the clause content according to the fixed content in the clause template corresponding to the instance contract and the contract variable tag at the corresponding position of the fixed content; then, generates the contract variable content corresponding to the contract variable tag according to the contract variable corresponding to the contract variable tag and the contract variable format; finally, generates the digital contract according to the contract variable content, clause content, contract framework template and stakeholder clause content corresponding to the stakeholder information. Based on the template configuration of the contract text, the present invention allows the transaction system to generate contract instances with different contents according to the transaction data, without maintaining multiple sets of contracts, which can greatly reduce the maintenance cost of the contract template. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 A schematic diagram of a digital contract generation method provided in an embodiment of the present invention Figure 1 ;
[0040] Figure 2 A flowchart of step 200 of the method for generating a digital contract in an embodiment of the present invention;
[0041] Figure 3 A schematic diagram of a digital contract generation method provided in an embodiment of the present invention Figure 2 ;
[0042] Figure 4 A schematic diagram of a digital contract generation method provided in an embodiment of the present invention Figure 3 ;
[0043] Figure 5 It is a working principle diagram of a digital contract generation system in a specific application example of the present invention;
[0044] Figure 6 It is a flowchart of a method for generating a digital contract in a specific application example of the present invention;
[0045] Figure 7 A mind map of a digital contract generation method in a specific application example of the present invention;
[0046] Figure 8 It is a flowchart of a digital contract signing method in a specific application example of the present invention;
[0047] Fig. 9 A mind map of a digital contract signing method in a specific application example of the present invention;
[0048] Fig.10 The structure of the digital contract generation device in the embodiment of the present invention is shown as follows Figure 1 ;
[0049] Fig.11 It is a structural schematic diagram of a clause content generating unit in a specific application example of the present invention;
[0050] Fig.12 The structure of the digital contract generation device in the embodiment of the present invention is shown as follows Figure 2 ;
[0051] Fig.13 It is a schematic diagram of the structure of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0053] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0054] It should be noted that the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or apparatuses.
[0055] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0056] The embodiment of the present invention provides a specific implementation of a digital contract generation method, see Figure 1 , the method specifically includes the following contents:
[0057] Step 100: Obtain the contract framework template, instance contract and stakeholder information corresponding to the digital contract to be generated.
[0058] It is understandable that the contract framework template in step 100 refers to defining a certain type of contract by contract name, mainly for the parts of this type of contract whose terms and formats remain unchanged, including the contract cover and the fixed contents of the contract body. The instance contract generated using transaction data and template. Stakeholder information includes: stakeholder role, stakeholder ID type, stakeholder ID number, stakeholder name
[0059] Step 200: Generate clause content according to the fixed content in the clause template corresponding to the instance contract and the contract variable tag at the position corresponding to the fixed content.
[0060] Specifically, based on the contract framework template, the instance contract corresponding to this transaction is copied and generated. All clause templates involved in the contract framework template are obtained, and all applicable clause templates obtained are processed one by one. According to the fixed content in the clause template and the contract variable tag at the corresponding position, the clause content with the contract variable tag is generated.
[0061] Step 300: Generate contract variable content corresponding to the contract variable tag according to the contract variable corresponding to the contract variable tag and the contract variable format.
[0062] Specifically, firstly, the contract variable tags of all applicable clause templates and the contract variable tags under the contract framework template are merged, and the contract variable contents corresponding to the contract variable tags are generated according to the contract variables and display formats corresponding to the contract variable tags.
[0063] Step 400: Generate the digital contract according to the contract variable content, the clause content, the contract framework template, and the stakeholder clause content corresponding to the stakeholder information.
[0064] Fill the determined contract variable content, clause content, and stakeholder clause content into the contract framework template to generate a digital contract.
[0065] From the above description, it can be seen that a digital contract generation method provided by an embodiment of the present invention first obtains the contract framework template, instance contract and stakeholder information corresponding to the digital contract to be generated; generates the clause content according to the fixed content in the clause template corresponding to the instance contract and the contract variable tag at the corresponding position of the fixed content; then, generates the contract variable content corresponding to the contract variable tag according to the contract variable corresponding to the contract variable tag and the contract variable format; finally, generates the digital contract according to the contract variable content, clause content, contract framework template and stakeholder clause content corresponding to the stakeholder information. The present invention adopts a digital contract template and a reliable identity authentication method, which is particularly suitable for scenarios with a large number of contract stakeholders, diverse contract contents, and high requirements for signing form specifications, and can complete the signing of various types of digital contracts at a lower cost.
[0066] In one embodiment, see Figure 2 , step 200 further comprises:
[0067] Step 201: performing calculations according to the expressions in the clause template to generate a clause template whose calculation result is true;
[0068] Step 202: Generate clause content according to the fixed content of the clause template whose operation result is true and the contract variable tag at the corresponding position of the fixed content.
[0069] In step 201 and step 202, all clause templates involved in the contract framework template are obtained, and according to the expression of the clause applicable condition template corresponding to the clause, the corresponding condition variable value is replaced into the expression, and then the expression is operated to obtain all applicable clause templates whose expression operation results are true. Then, according to the fixed content in the clause template and the contract variable tag at the corresponding position, the clause content with the contract variable tag is generated.
[0070] In one embodiment, see Figure 3 , the digital contract generation method further includes:
[0071] Step 500: Replace the clause variable tag corresponding to the instance contract with the clause content;
[0072] Step 600: Replace the contract variable tag in the instance contract with the contract variable content.
[0073] In step 500 and step 600, based on step 200, the clause variable tag corresponding to the instance contract is replaced with the clause content; the contract variable tag in the instance contract is replaced with the corresponding contract variable content. And the clause variable tag with a false calculation result in the instance contract is replaced with null.
[0074] In one embodiment, see Figure 4 , the digital contract generation method further includes:
[0075] Step 700: Acquire signature location keyword tags according to the stakeholder information;
[0076] Step 800: Acquire the signature position according to the signature position keyword tag;
[0077] Step 900: Generate a stakeholder signature at the signature location.
[0078] In step 700 to step 900, there are the following situations:
[0079] 1. Get the signature position keyword corresponding to the stakeholder. If the signature is on the keyword, the absolute position of the keyword in the instance contract is obtained as the final signature position.
[0080] 2. If the signature is after the keyword, obtain the size of the image seal corresponding to the stakeholder in the keyword. Then, calculate the estimated signature position based on the size of the image seal.
[0081] In the second case, it is further divided into: if the instance contract is currently signed for the first time, the absolute position in the instance contract is obtained through the signature keywords corresponding to the stakeholders, and the estimated signature position is calculated according to the absolute positions of half of the signature keywords in the instance contract through the binary search method.
[0082] If the same signature keyword corresponding to the instance contract has been signed by other stakeholders, the last stakeholder signature position of the corresponding signature keyword is obtained, and the estimated signature position is calculated based on the last stakeholder signature position.
[0083] According to the expected signature position, the contract instance document content within the horizontal coordinate range and the vertical coordinate range is obtained. If there is no content in the area, the current line is used as the final signature position. If there is content in the corresponding area, the line is changed to sign. Finally, at the final signature position, the image seal is added as a watermark to the contract instance document.
[0084] To further illustrate this solution, this application provides a specific application example of a digital contract generation method, which specifically includes the following contents:
[0085] First, this specific application example provides a digital contract generation system, which includes: a contract generation module and a contract signing module, wherein the contract generation module further includes: a contract framework template, a clause template, a clause applicable condition template, a contract variable and display format template; the contract signing template includes: a contract stakeholder clause template, a signature position keyword template, a seal template and a contract instance, see Figure 5 , specifically including:
[0086] 1. Contract framework template: Define a certain type of contract by contract name, mainly for the parts of this type of contract whose terms and formats remain unchanged, including the contract cover and fixed content of the contract body. The content that needs to be specified includes three parts: ① Variable part, contract variables and display format template. Generate contract variable labels according to the corresponding contract variables and display formats, and fix the contract variable labels in the specified position. ② Variable clause part, corresponding to the clause template. Generate clause variable labels according to the specified clause template, and fix the clause variable labels in the specified position. ③ Stakeholder part, corresponding to the contract stakeholder clause template. Generate stakeholder variable labels, and fix the stakeholder variable labels in the specified position.
[0087] 2. Clause template: In a certain type of contract, it is used to define the content of the corresponding rights and obligations agreed upon when specific conditions are met. The content includes a fixed part and a variable part. The variable part is generated with variable labels according to the corresponding variables and display formats, and the variable labels are fixed in the specified position.
[0088] 3. Clause applicable condition template: In the same type of contract, the applicable conditions of the corresponding clauses are modeled by rules. For example, if the transaction amount is within a certain range, the corresponding clause will appear, where the transaction amount is used as the condition variable and the range is used as the rule to form an atomic expression of "condition lower limit ≤ condition variable ≤ condition upper limit". Different atomic expressions are combined through AND and OR to form a combination expression with more complex logical rules.
[0089] 4. Contract variables and display format template: In the same type of contract, different transactions need to fill in different subjects, objects, options, quantities and other variable items that do not have complete meanings, which are defined as contract variables, such as transaction amount, term, interest rate, etc., including the contract cover and contract text. For contract variables with the same meaning but different display formats, different contract variable labels are generated according to different formats.
[0090] 5. Contract Stakeholder Clause Template: In the same type of contract, define the stakeholders who need to participate in signing the contract according to different user roles. Set the stakeholder role, stakeholder ID type, stakeholder ID number, and stakeholder name as the stakeholder clause variable label and fix it in the specified position of the contract stakeholder clause. For the signature position keyword, generate the signature position keyword label and fix it in the specified position of the contract stakeholder clause.
[0091] 6. Signature position keyword template: Use the stakeholder name as the stakeholder clause variable label, fix it in the specified position of the keyword template, and specify whether to sign on the keyword or after the keyword.
[0092] 7. Seal template: To make the digital contract closer to the physical contract in form, a picture seal is added in the form of a watermark at the designated location for the signature style of the contract stakeholders. The seal can be reserved by the user or uploaded when signing the contract. To make the signature form more standardized, the picture seal size of the signature keyword in the same contract instance is the same.
[0093] 8. Contract instance: Manage instantiated contracts generated using transaction data and templates, and record the signature information of each stakeholder.
[0094] See also Figure 6 as well as Figure 7 Based on the digital contract generation system, this specific application example also provides a digital contract generation method, which specifically includes the following steps:
[0095] S11: Obtain the contract information submitted by the trading system.
[0096] Specifically, the contract information includes: a specified contract framework template, variable information, and stakeholder information. The variable information includes conditional variables, contract variables, and corresponding variable values.
[0097] S12: Based on the contract framework template specified by the transaction system, copy and generate the instance contract corresponding to this transaction.
[0098] Specifically, all clause templates involved in the contract framework template are obtained, and according to the expression of the clause applicable condition template corresponding to the clause, the corresponding condition variable value is replaced into the expression, and then the expression is operated to obtain all applicable clause templates with true expression operation results. The clause variable labels with false operation results in the instance contract are replaced with empty.
[0099] Next, the applicable clause templates obtained in step S12 are processed one by one in a loop, and clause contents with contract variable tags are generated according to the fixed contents in the clause templates and the contract variable tags at the corresponding positions. The clause variable tags corresponding to the instance contract are replaced with the clause contents.
[0100] S13: Generate contract variable content corresponding to the contract variable tag.
[0101] Specifically, the contract variable tags of all applicable clause templates and the contract variable tags under the contract framework template are merged, and the contract variable contents corresponding to the contract variable tags are generated according to the contract variables and display formats corresponding to the contract variable tags, and the contract variable tags in the instance contract are replaced with the corresponding contract variable contents.
[0102] S14: Generate stakeholder clauses.
[0103] According to the stakeholder list submitted by the transaction system, each stakeholder clause is generated one by one according to the stakeholder template. First, the signature position keyword tag is replaced with the signature position keyword content with the corresponding stakeholder clause variable. Then all variable tags in the stakeholder clause are replaced with the corresponding stakeholder content. Finally, all stakeholder clauses are deduplicated and then merged.
[0104] S15: Replace the stakeholder variable label in the contract instance with the corresponding stakeholder clause content.
[0105] Figure 7It is a mind map of the digital contract generation method in the specific application example of the present invention. First, the contract generation instruction of the transaction system is received (in response to the user's request). Then, the clause template and the corresponding clause applicable condition template are obtained, and the condition variable in the clause applicable condition is replaced to determine whether the expression is established. If the expression result is false, the clause variable label is replaced with empty, otherwise the clause variable label is replaced with the clause content. Then, it is determined whether the clause template has been fully processed. If not, all the applicable clause templates obtained are processed one by one in a loop. On the basis that all clause templates and the corresponding clause applicable condition templates have been processed, the contract variable label is replaced according to the contract variable display content. Then, according to the stakeholder list and the stakeholder template, the stakeholder clause content is generated, and the stakeholder corresponds to the signature position keyword in the contract instance. Finally, the stakeholder variable label in the contract instance is replaced with the stakeholder clause content.
[0106] See also Figure 8 as well as Fig. 9 Based on the digital contract generation system, this specific application example also provides a digital contract signing method, which specifically includes the following steps:
[0107] S21: Obtain signature position keywords corresponding to stakeholders.
[0108] If the signature is on the keyword, the absolute position (X0, Y0) of the keyword in the instance contract is obtained as the final signature position. If the signature is after the keyword, the size (a, b) of the image seal corresponding to the stakeholder is obtained at the keyword, with a as the width of the image in the horizontal coordinate and b as the height of the image in the vertical coordinate.
[0109] S22: Calculate the estimated signature position.
[0110] If the instance contract is currently signed for the first time, the absolute position (X0, Y0) in the instance contract is obtained through the signature keyword corresponding to the stakeholder, and the absolute position (X1, Y1) of half of the signature keywords in the instance contract is obtained through binary division. The result of calculating x0 = (|X1-X0|) × 2 is used as the offset value of the horizontal coordinate, and (X0+x0+a / 2, Y0) is used as the estimated signature position (X, Y).
[0111] If the same signature keyword corresponding to the instance contract has been signed by other stakeholders, obtain the last stakeholder signature position (Xn, Yn) of the corresponding signature keyword, and calculate (Xn+a, Yn) as the estimated signature position (X, Y).
[0112] S23: Obtain the content of the contract instance document.
[0113] According to the expected signature position, the content of the contract instance document within the horizontal coordinate range (Xa / 2, X+a / 2) and the vertical coordinate range (Yb / 2, Y+b / 2) is obtained. If there is no content in the area, (X, Y) is used as the final signature position. If there is content in the corresponding area, the signature is wrapped and (X0+x0+a / 2, Y+b) is used as the expected signature position to obtain the content of the contract instance document within the horizontal coordinate range (X0+x0, X0+x0+a) and the vertical coordinate range (Y+b / 2, Y+3×b / 2). If there is no content in the corresponding area, (X0+x0+a / 2, Y+b) is used as the final signature position. At the final signature position, the image seal is added as a watermark to the contract instance document.
[0114] Fig. 9 It is a mind map of the digital contract signing method in the specific application example of the present invention. In this figure, the contract signing instruction of the transaction system is first received, and then the picture seal and signature keywords corresponding to the stakeholders are obtained to determine whether the signature can be made on the keywords. If so, the key position is obtained as the final signature position based on the signature keywords corresponding to the stakeholders, and a watermark is added to the signature position using the picture seal, and the whole process ends.
[0115] If you cannot sign on the keywords, you need to determine whether it is the first signing. If so, calculate the estimated signature position based on the signature keywords corresponding to the stakeholders and the size of the picture seal, and check whether there is contract content in the signature position area. If not, use the picture seal to add a watermark to the signature position to complete the entire signing process.
[0116] If it is not the first signing, the signature position of the last stakeholder is obtained according to the signature keyword corresponding to the stakeholder, and the estimated signature position is calculated in combination with the size of the image seal, and it is determined whether there is contract content in the signature position area. If so, the estimated signature position is calculated in a new line, and then it is determined whether there is contract content in the signature position area. If so, the process ends. If not, the image seal is used to add a watermark to the signature position. If there is no contract content in the signature position area, the image seal is directly used to add a watermark to the signature position.
[0117] From the above description, it can be seen that the digital contract generation method provided by the embodiment of the present invention can make the signing of the digital contract meet the requirements of formal compliance. By deconstructing the contract content and configuring a series of templates, a set of solutions for automatically locating the signing position of the image seal in the digital contract is proposed to complete the formal signing. Specifically, it has the following beneficial effects:
[0118] 1. Based on the template configuration of the contract text, the trading system is allowed to generate contract instances with different contents according to the transaction data. There is no need to maintain multiple sets of contracts, which can reduce the maintenance cost of the contract template.
[0119] 2. A rule for locating the signature position has been implemented. In addition to supporting different stakeholders to sign in their respective signature areas, it also supports multiple stakeholders to sign in the same signature area one after another. Users do not need to manually locate the signature position, which reduces the cost of online signing of digital contracts in the transaction system.
[0120] Based on the same inventive concept, the embodiments of the present application also provide a digital contract generation device, which can be used to implement the method described in the above embodiments, such as the following embodiments. Since the principle of solving the problem by a digital contract generation device is similar to that of a digital contract generation method, the implementation of a digital contract generation device can refer to the implementation of a digital contract generation method, and the repeated parts will not be repeated. As used below, the terms "unit" or "module" can be a combination of software and / or hardware that implements predetermined functions. Although the system described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0121] The embodiment of the present invention provides a specific implementation of a digital contract generation device capable of implementing a digital contract generation method, see Fig.10 , the digital contract generation device specifically includes the following contents:
[0122] The data acquisition unit 10 is used to acquire the contract framework template, the instance contract and the stakeholder information corresponding to the digital contract to be generated;
[0123] A clause content generating unit 20, configured to generate clause content according to the fixed content in the clause template corresponding to the instance contract and the contract variable tag at the position corresponding to the fixed content;
[0124] A variable content generating unit 30, configured to generate a contract variable content corresponding to the contract variable tag according to the contract variable corresponding to the contract variable tag and the contract variable format;
[0125] The contract generation unit 40 is used to generate the digital contract according to the contract variable content, the clause content, the contract framework template and the stakeholder clause content corresponding to the stakeholder information.
[0126] Preferably, see Fig.11 , the clause content generating unit 20 comprises:
[0127] A clause template generating module 201, used for performing calculations according to expressions in the clause template to generate a clause template whose calculation result is true;
[0128] The clause content generating module 202 is used to generate clause content according to the fixed content of the clause template whose operation result is true and the contract variable tag at the corresponding position of the fixed content.
[0129] Preferably, see Fig.12 , the digital contract generating device further comprises:
[0130] A clause content replacement unit 50, configured to replace the clause variable tag corresponding to the instance contract with the clause content;
[0131] The variable content replacing unit 60 is used to replace the contract variable tag in the instance contract with the contract variable content.
[0132] Preferably, the digital contract generating device further comprises:
[0133] A keyword tag acquisition unit 70, configured to acquire a signature position keyword tag according to the stakeholder information;
[0134] A signature position acquisition unit 80, configured to acquire a signature position according to the signature position keyword tag;
[0135] The signature generating unit 90 is used to generate a stakeholder signature at the signature position.
[0136] From the above description, it can be seen that a digital contract generation device provided by an embodiment of the present invention first obtains the contract framework template, instance contract and stakeholder information corresponding to the digital contract to be generated; generates the clause content according to the fixed content in the clause template corresponding to the instance contract and the contract variable tag at the corresponding position of the fixed content; then, generates the contract variable content corresponding to the contract variable tag according to the contract variable corresponding to the contract variable tag and the contract variable format; finally, generates the digital contract according to the contract variable content, clause content, contract framework template and stakeholder clause content corresponding to the stakeholder information. Based on the template configuration of the contract text, the present invention allows the transaction system to generate contract instances with different contents according to the transaction data, without maintaining multiple sets of contracts, which can greatly reduce the maintenance cost of the contract template.
[0137] The embodiment of the present application also provides a specific implementation of an electronic device capable of implementing all steps in a digital contract generation method in the above embodiment, see Fig.13 , electronic equipment specifically includes the following:
[0138] Processor (processor) 1201, memory (memory) 1202, communication interface (CommunicationsInterface) 1203 and bus 1204;
[0139] The processor 1201 , the memory 1202 , and the communication interface 1203 communicate with each other via the bus 1204 ; the communication interface 1203 is used to realize information transmission between relevant devices such as the server-side device, the power measurement device, and the user-side device.
[0140] The processor 1201 is used to call the computer program in the memory 1202. When the processor executes the computer program, all the steps in the digital contract generation method in the above embodiment are implemented. For example, when the processor executes the computer program, the following steps are implemented:
[0141] Step 100: Obtain the contract framework template, instance contract and stakeholder information corresponding to the digital contract to be generated;
[0142] Step 200: Generate clause content according to the fixed content in the clause template corresponding to the instance contract and the contract variable tag at the position corresponding to the fixed content;
[0143] Step 300: Generate the contract variable content corresponding to the contract variable tag according to the contract variable corresponding to the contract variable tag and the contract variable format;
[0144] Step 400: Generate the digital contract according to the contract variable content, the clause content, the contract framework template, and the stakeholder clause content corresponding to the stakeholder information.
[0145] The embodiments of the present application also provide a computer-readable storage medium capable of implementing all the steps in a digital contract generation method in the above embodiments. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, all the steps in a digital contract generation method in the above embodiments are implemented. For example, when the processor executes the computer program, the following steps are implemented:
[0146] Step 100: Obtain the contract framework template, instance contract and stakeholder information corresponding to the digital contract to be generated;
[0147] Step 200: Generate clause content according to the fixed content in the clause template corresponding to the instance contract and the contract variable tag at the position corresponding to the fixed content;
[0148] Step 300: Generate the contract variable content corresponding to the contract variable tag according to the contract variable corresponding to the contract variable tag and the contract variable format;
[0149] Step 400: Generate the digital contract according to the contract variable content, the clause content, the contract framework template, and the stakeholder clause content corresponding to the stakeholder information.
[0150] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the hardware + program embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0151] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0152] Although the present application provides method operation steps such as embodiments or flow charts, more or fewer operation steps may be included based on conventional or non-creative labor. The order of steps listed in the embodiments is only one way of executing the order of many steps and does not represent the only execution order. When the actual device or client product is executed, it can be executed in the order of the method shown in the embodiments or the drawings or in parallel (for example, in a parallel processor or multi-threaded processing environment).
[0153] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0154] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0155] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0156] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for generating a digital contract, characterized in that: include: Obtain the contract framework template, instance contract and stakeholder information corresponding to the digital contract to be generated; Generate clause content according to the fixed content in the clause template corresponding to the instance contract and the contract variable tag at the position corresponding to the fixed content; Generate contract variable content corresponding to the contract variable tag according to the contract variable corresponding to the contract variable tag and the contract variable format; Generate the digital contract according to the contract variable content, the clause content, the contract framework template, and the stakeholder clause content corresponding to the stakeholder information; Acquire a signature position keyword tag according to the stakeholder information; Acquire the signature position according to the signature position keyword tag; Generate a stakeholder signature at the signature location; The generating of clause content according to the fixed content in the clause template corresponding to the instance contract and the contract variable tag at the position corresponding to the fixed content includes: Based on the contract framework template, copy and generate the instance contract corresponding to this transaction; and obtain all the clause templates involved in the contract framework template, process all the applicable clause templates obtained one by one, and generate the clause content with contract variable tags based on the fixed content in the clause template and the contract variable tags at the corresponding positions; The generating, according to the contract variable corresponding to the contract variable tag and the contract variable format, the contract variable content corresponding to the contract variable tag includes: Merge the contract variable tags of all applicable clause templates and the contract variable tags under the contract framework template, and generate the contract variable content corresponding to the contract variable tags according to the contract variables and display formats corresponding to the contract variable tags; Acquiring a signature position keyword tag according to the stakeholder information, acquiring a signature position according to the signature position keyword tag, and generating a stakeholder signature at the signature position, including: Get the signature position keyword corresponding to the stakeholder. If the stakeholder signs on the keyword, the absolute position of the keyword in the instance contract is obtained as the final signature position. If the signature is after the keyword, the size of the picture seal corresponding to the stakeholder is obtained at the keyword; then, the estimated signature position is calculated according to the size of the picture seal, specifically: if the instance contract is currently signed for the first time, the absolute position in the instance contract is obtained through the signature keyword corresponding to the stakeholder, and the estimated signature position is calculated according to the absolute position of half of the signature keywords in the instance contract through the binary search method; if the same signature keyword corresponding to the instance contract has been signed by other stakeholders, the signature position of the last stakeholder corresponding to the signature keyword is obtained, and the estimated signature position is calculated according to the last stakeholder signature position; The content of the contract instance document within the horizontal and vertical coordinate ranges is obtained based on the expected signature position; if there is no content in the area, the current line is used as the final signature position; if there is content in the corresponding area, the line is wrapped and signed; finally, at the final signature position, the image seal is used as a watermark and added to the contract instance document.
2. The digital contract generation method according to claim 1, characterized in that: The generating of clause content according to the fixed content in the clause template corresponding to the instance contract and the contract variable tag at the position corresponding to the fixed content includes: Performing operations according to the expressions in the clause template to generate a clause template with a true operation result; The clause content is generated according to the fixed content of the clause template whose operation result is true and the contract variable tag at the corresponding position of the fixed content.
3. The digital contract generation method according to claim 1, characterized in that: Also includes: Replace the clause variable label corresponding to the instance contract with the clause content; The contract variable tag in the instance contract is replaced with the contract variable content.
4. A digital contract generation device, characterized in that: include: A data acquisition unit, used to acquire the contract framework template, instance contract and stakeholder information corresponding to the digital contract to be generated; A clause content generating unit, configured to generate clause content according to the fixed content in the clause template corresponding to the instance contract and the contract variable tag at the position corresponding to the fixed content; A variable content generating unit, configured to generate a contract variable content corresponding to the contract variable tag according to the contract variable corresponding to the contract variable tag and the contract variable format; A contract generation unit, configured to generate the digital contract according to the contract variable content, the clause content, the contract framework template, and the stakeholder clause content corresponding to the stakeholder information; A keyword tag acquisition unit, used to acquire a signature position keyword tag according to the stakeholder information; A signature position acquisition unit, used to acquire the signature position according to the signature position keyword tag; A signature generating unit, used to generate a stakeholder signature at the signature position; The generating of clause content according to the fixed content in the clause template corresponding to the instance contract and the contract variable tag at the position corresponding to the fixed content includes: Based on the contract framework template, copy and generate the instance contract corresponding to this transaction; and obtain all the clause templates involved in the contract framework template, process all the applicable clause templates obtained one by one, and generate the clause content with contract variable tags based on the fixed content in the clause template and the contract variable tags at the corresponding positions; The generating, according to the contract variable corresponding to the contract variable tag and the contract variable format, the contract variable content corresponding to the contract variable tag includes: Merge the contract variable tags of all applicable clause templates and the contract variable tags under the contract framework template, and generate the contract variable content corresponding to the contract variable tags according to the contract variables and display formats corresponding to the contract variable tags; Acquiring a signature position keyword tag according to the stakeholder information, acquiring a signature position according to the signature position keyword tag, and generating a stakeholder signature at the signature position, including: Get the signature position keyword corresponding to the stakeholder. If the stakeholder signs on the keyword, the absolute position of the keyword in the instance contract is obtained as the final signature position. If the signature is after the keyword, the size of the picture seal corresponding to the stakeholder is obtained at the keyword; then, the estimated signature position is calculated according to the size of the picture seal, specifically: if the instance contract is currently signed for the first time, the absolute position in the instance contract is obtained through the signature keyword corresponding to the stakeholder, and the estimated signature position is calculated according to the absolute position of half of the signature keywords in the instance contract through the binary search method; if the same signature keyword corresponding to the instance contract has been signed by other stakeholders, the signature position of the last stakeholder corresponding to the signature keyword is obtained, and the estimated signature position is calculated according to the last stakeholder signature position; The content of the contract instance document within the horizontal and vertical coordinate ranges is obtained based on the expected signature position; if there is no content in the area, the current line is used as the final signature position; if there is content in the corresponding area, the line is wrapped and signed; finally, at the final signature position, the image seal is used as a watermark and added to the contract instance document.
5. The digital contract generation device according to claim 4, characterized in that: The clause content generating unit includes: A clause template generating module, used for performing calculations according to the expressions in the clause template to generate a clause template whose calculation result is true; The clause content generation module is used to generate the clause content according to the fixed content of the clause template whose operation result is true and the contract variable label at the corresponding position of the fixed content.
6. The digital contract generation device according to claim 4, characterized in that: Also includes: A clause content replacement unit, used to replace the clause variable tag corresponding to the instance contract with the clause content; The variable content replacement unit is used to replace the contract variable tag in the instance contract with the contract variable content.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of a digital contract generation method described in any one of claims 1 to 3 are implemented.
8. 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 a digital contract generation method described in any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Variable-clause electronic contract automatic generation method in business to customer (B2C) transaction
CN102855304A
Contract template making method and system
CN106933790A
Custom contract template manufacturing method
CN112214979A
Apparatus and methods for generating a contract
US20030074633A1
