CN112766901B - Digital contract generation method and device - Google Patents
Digital contract generation method and device Download PDFInfo
- Publication number
- CN112766901B CN112766901B CN202110057786.0A CN202110057786A CN112766901B CN 112766901 B CN112766901 B CN 112766901B CN 202110057786 A CN202110057786 A CN 202110057786A CN 112766901 B CN112766901 B CN 112766901B
- Authority
- CN
- China
- Prior art keywords
- contract
- clause
- content
- variable
- signature
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/103—Workflow collaboration or project management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Strategic Management (AREA)
- Human Resources & Organizations (AREA)
- General Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Marketing (AREA)
- Entrepreneurship & Innovation (AREA)
- Economics (AREA)
- Physics & Mathematics (AREA)
- Finance (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Technology Law (AREA)
- Data Mining & Analysis (AREA)
- Development Economics (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention belongs to the technical field of artificial intelligence, and provides a digital contract generation method and device, wherein the method comprises the steps of obtaining a contract frame template, an instance contract and dry system person information corresponding to a digital contract to be generated; generating clause content according to fixed content in a clause template corresponding to the instance contract and contract variable labels of positions corresponding to the fixed content, generating contract variable content corresponding to the contract variable labels according to contract variables corresponding to the contract variable labels and the contract variable formats, and generating the digital contract according to the contract variable content, the clause content, the contract frame template and the dry system clause content corresponding to the dry system information. The invention allows the transaction system to generate contract examples with different contents according to the transaction data based on the template configuration of the contract text, does not need to maintain a plurality of sets of contracts, and can greatly reduce the maintenance cost of the contract template.
Description
Technical Field
The invention relates to the technical field of artificial intelligence, in particular to a digital contract generation method and device.
Background
At present, with the popularization of the internet, the traditional paper contract is gradually replaced by an electronic contract (or called a digital contract), and it is understood that the electronic contract is an agreement between two parties or multiple parties to establish, change and terminate property civil right obligation relationships in an electronic form. The device has the advantages of convenient use, high transmission efficiency, no limitation of time and place, and the like.
In the prior art, a digital contract is usually a creation contract and a signing contract of a fixed mode provided by a contract provider for a user, the use habit of the user, the signing mode and the like are limited by format contracts, the digital contract is only applicable to a simple scene, the signing requirement of the contract is single, or the digital contract can be located only at a fixed position or manually by the user, and the signing position is not in accordance with the requirement of the contract form or the user experience is poor.
Disclosure of Invention
The invention belongs to the technical field of artificial intelligence, and provides a digital contract generation method and a digital contract generation device, which can reduce the maintenance cost of a contract template, support different dry system people to sign in each signature area, support a plurality of dry system people to sign in the same signature area, avoid the need of a user to manually position the signature position, and reduce the cost of signing digital contracts online by a transaction system.
In order to achieve the above object, there is provided a digital contract generation method including:
acquiring a contract frame template, an instance contract and dry system person information corresponding to a digital contract to be generated;
generating clause content according to the fixed content in the clause template corresponding to the instance contract and the contract variable label of the position corresponding to the fixed content;
Generating contract variable contents corresponding to contract variable labels according to contract variables corresponding to the contract variable labels and the contract variable formats;
And generating the digital contract according to the contract variable content, the clause content, the contract frame template and the dry system person clause content corresponding to the dry system person information.
Preferably, the generating the clause content according to the fixed content in the clause template corresponding to the instance contract and the contract variable label of the position corresponding to the fixed content includes:
performing operation according to the expression in the clause template to generate a clause template with a true operation result;
And generating clause content according to the fixed content of the clause template with the true operation result and the contract variable label of the position corresponding to the fixed content.
Preferably, the digital contract generation method further includes:
Replacing the clause variable labels corresponding to the instance contracts with the clause contents;
and replacing the contract variable labels in the example contract with the contract variable contents.
Preferably, the digital contract generation method further includes:
acquiring a signature position keyword label according to the dry system person information;
Acquiring a signature position according to the signature position keyword label;
A dry person signature is generated at the signature location.
In a second aspect, the present invention also provides a digital contract generating apparatus, including:
the data acquisition unit is used for acquiring a contract frame template, an instance contract and the dry system person 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 label at the position corresponding to the fixed content;
The variable content generation unit is used for generating contract variable contents corresponding to the contract variable labels according to the contract variables corresponding to the contract variable labels and the contract variable formats;
And the contract generation unit is used for generating the digital contract according to the contract variable content, the clause content, the contract frame template and the dry system person clause content corresponding to the dry system person information.
Preferably, the clause content generating unit includes:
The clause template generation module is used for carrying out operation according to the expression in the clause template so as to generate a clause template with a true operation result;
And the clause content generating module is used for generating clause content according to the fixed content of the clause template with the true operation result and the contract variable label at the corresponding position of the fixed content.
Preferably, the digital contract generating apparatus further includes:
a clause content replacing unit, configured to replace a clause variable label corresponding to the instance contract with the clause content;
and the variable content replacing unit is used for replacing the contract variable labels in the example contract with the contract variable contents.
Preferably, the digital contract generating apparatus further includes:
the keyword label acquisition unit is used for acquiring a signature position keyword label according to the dry system person information;
the signature position acquisition unit is used for acquiring a signature position according to the signature position keyword label;
And the signature generation unit is used for generating a dry system person signature at the signature position.
In a third aspect, the present invention provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of a digital contract generation method when the program is executed by the processor.
In a fourth aspect, the present invention provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of a digital contract generation method.
From the above description, it can be seen that the method and apparatus for generating a digital contract according to the embodiments of the present invention firstly obtain a contract frame template, an instance contract and dry-system person information corresponding to a digital contract to be generated, generate clause content according to a fixed content in a clause template corresponding to the instance contract and a contract variable label corresponding to a position corresponding to the fixed content, then generate a contract variable content corresponding to the contract variable label according to a contract variable corresponding to the contract variable label and a contract variable format, and finally generate a digital contract according to the contract variable content, the clause content, the contract frame template and the dry-system person clause content corresponding to the dry-system person information. The invention allows the transaction system to generate contract examples with different contents according to the transaction data based on the template configuration of the contract text, does not need to maintain a plurality of sets of contracts, and can greatly reduce the maintenance cost of the contract template.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a digital contract generating method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method step 200 of digital contract generation in accordance with an embodiment of the present invention;
FIG. 3 is a second flow chart of a digital contract generating method according to an embodiment of the present invention;
Fig. 4 is a flowchart of a digital contract generating method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of the operation of the digital contract generation system in an embodiment of the invention;
FIG. 6 is a flow chart of a digital contract generation method in an embodiment of the invention;
FIG. 7 is a conceptual diagram of a digital contract generation method in an example of an implementation of the invention;
FIG. 8 is a flow chart of a digital contract signing method in an embodiment of the invention;
FIG. 9 is a conceptual diagram of a digital contract signing method in an example of an embodiment of the present invention;
fig. 10 is a schematic diagram of a digital contract generating apparatus according to an embodiment of the present invention;
FIG. 11 is a schematic diagram showing the structure of a clause content generating unit in a specific application example of the present invention;
Fig. 12 is a schematic diagram of a digital contract generating apparatus according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of an electronic device in an embodiment of the invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
It is noted that the terms "comprises" and "comprising," and any variations thereof, in the description and claims of the present application and in the foregoing figures, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
An embodiment of the present invention provides a specific implementation manner of a digital contract generating method, referring to fig. 1, the method specifically includes the following contents:
Step 100, acquiring a contract frame template, an instance contract and dry system person information corresponding to the digital contract to be generated.
It will be appreciated that the contract framework template in step 100 refers to defining a certain type of contract by contract name, mainly for the completely unchanged terms and formats of the contract, including contract cover and contract body fixed content. An instance contract is generated using the transaction data and the template. The dry system person information comprises dry system person roles, dry system person certificate types, dry system person certificate numbers and dry system person names
And 200, generating clause content according to the fixed content in the clause template corresponding to the example contract and the contract variable label of the position corresponding to the fixed content.
Specifically, according to the contract framework template, an example contract corresponding to the transaction is copied and generated. And obtaining all the clause templates related to the contract framework template, processing all the obtained applicable clause templates one by one, and generating clause contents with contract variable labels according to the fixed contents in the clause templates and the contract variable labels at the corresponding positions.
And 300, generating contract variable contents corresponding to the contract variable labels according to the contract variables corresponding to the contract variable labels and the contract variable formats.
Specifically, the contract variable labels of all applicable clause templates and the contract variable labels under the contract framework templates are combined first, and the contract variable content corresponding to the contract variable labels is generated according to the contract variables and the display formats corresponding to the contract variable labels.
And 400, generating the digital contract according to the contract variable content, the clause content, the contract frame template and the dry system person clause content corresponding to the dry system person information.
And filling the determined contract variable content, the clause content and the dry system person clause content into a contract framework template to generate a digital contract.
From the above description, it can be seen that the digital contract generation method provided by the embodiment of the invention includes the steps of firstly obtaining a contract frame template, an instance contract and a dry-system person information corresponding to a digital contract to be generated, generating clause content according to a fixed content in a clause template corresponding to the instance contract and a contract variable label corresponding to a fixed content position, then generating a contract variable content corresponding to the contract variable label according to a contract variable corresponding to the contract variable label and a contract variable format, and finally generating the digital contract according to the contract variable content, the clause content, the contract frame template and the dry-system person clause content corresponding to the dry-system person information. The invention adopts the digital contract template and the reliable identity authentication mode, is especially suitable for scenes with more contract dry line people, various contract contents and higher signing form specification requirements, and can complete signing of various digital contracts with lower cost.
In one embodiment, referring to fig. 2, step 200 further comprises:
Step 201, performing operation according to the expression in the clause template to generate a clause template with a true operation result;
and 202, generating clause content according to the fixed content of the clause template with the true operation result and the contract variable label of the position corresponding to the fixed content.
In step 201 and step 202, all the clause templates related to the contract frame template are obtained, the corresponding condition variable values are replaced into the expressions according to the expressions of the clause-corresponding clause-applicable condition templates, and then the expressions are operated to obtain the applicable clause templates with true operation results of all the expressions. Then, according to the fixed content and the contract variable label of the corresponding position in the clause template, clause content attached with the contract variable label is generated.
In one embodiment, referring to fig. 3, the digital contract generation method further includes:
Step 500, replacing the clause variable labels corresponding to the instance contracts with the clause contents;
And 600, replacing the contract variable labels in the example contract with the contract variable contents.
In step 500 and step 600, on the basis of step 200, the clause variable label corresponding to the instance contract is replaced by clause content, and the contract variable label in the instance contract is replaced by corresponding contract variable content. And replacing the clause variable label with null, wherein the operation result in the example contract is false.
In one embodiment, referring to fig. 4, the digital contract generation method further includes:
step 700, acquiring signature position keyword labels according to the dry system person information;
Step 800, acquiring a signature position according to the signature position keyword label;
Step 900, generating a dry person signature at the signature location.
In steps 700 to 900, there are various cases:
1. and acquiring a signature position keyword corresponding to the dry person, and if the signature position keyword is signed on the keyword, acquiring the absolute position in the instance contract by the keyword as a final signature position.
2. If the key words are signed after the key words, the size of the picture seal corresponding to the dry system person is obtained from the key words. Then, the expected signature position is calculated according to the size of the photo signature.
In case 2, the method is further divided into obtaining the absolute position in the instance contract through the signature keyword corresponding to the trunk line person if the instance contract is signed for the first time, and calculating the expected signature position according to the absolute position of the half signature keyword in the instance contract through the dichotomy.
If the same signature keyword corresponding to the example contract is signed by other dry system people, the last dry system person signature position of the corresponding signature keyword is obtained, and the final dry system person signature position is calculated to be used as the expected signature position.
And acquiring a horizontal coordinate range according to the expected signature position, and acquiring the content of the contract instance document in the vertical coordinate range. If there is no content in the region, the current line is taken as the final signature position. If there is content in the corresponding region, the line feed is signed. Finally, the picture seal is used as a watermark at the final signature position and added into the contract example document.
To further explain the present solution, the present application provides a specific application example of the digital contract generation method, which specifically includes the following matters
First, the specific application example provides a digital contract generation system, which comprises a contract generation module and a contract signing module, wherein the contract generation module further comprises a contract framework template, a clause applicable condition template, a contract variable and a display format template, the contract signing template comprises a contract trunk person clause template, a signature position keyword template, a seal template and a contract example, and the digital contract generation system specifically comprises the following components:
1. And a contract frame template, which is to define a certain type of contract according to the contract name, and mainly aims at the part with completely unchanged clauses and formats in the type of contract, including the contract cover and the fixed content of the contract body. The content to be specified comprises three parts, namely ① variable parts, contract variables and presentation format templates. And generating a contract variable label according to the corresponding contract variable and the display format, and fixing the contract variable label at a specified position. ② Variable clause portion, corresponding to the clause template. Generating a clause variable label according to the appointed clause template, and fixing the clause variable label at the appointed position. ③ And the main system person part corresponds to the contract main system person clause template. And generating a dry system variable label and fixing the dry system variable label at a specified position.
2. And the clause template is used for defining contents of corresponding rights and obligations when meeting specific conditions in a certain type of contract. The content comprises a fixed part and a variable part, wherein the variable part generates a variable label according to the corresponding variable and the display format, and the variable label is fixed at a specified position.
3. And (3) rule modeling is carried out on the applicable conditions of the corresponding clauses in the same contract. For example, if the transaction amount is within a certain interval, corresponding clauses appear, wherein the transaction amount is used as a condition variable, the interval range is used as a rule, an atomic expression of which the condition lower limit is less than or equal to the condition variable and less than or equal to the condition upper limit is formed, and different atomic expressions are combined with each other or form a combined expression with more complex logic rules.
4. And in the same type of contract, different subjects, objects, options, quantity and other variable matters which do not have complete meanings and are required to be filled in by different transactions are defined as contract variables, such as transaction amount, term, interest rate and the like, and the range comprises contract covers and contract texts. For contract variables with the same meaning but different display formats, different contract variable labels are generated according to the different formats.
5. And defining the dry system people which need to participate in signing the contract according to different roles of the users in the same type of contract. The role of the stem system, the type of the stem system certificate, the number of the stem system certificate and the name of the stem system are used as the variable labels of the terms of the stem system and fixed at the appointed positions of the terms of the stem system of the contract. Wherein, for signature position keywords, signature position keyword labels are generated and fixed at the appointed positions of the contractual stem system clauses.
6. And signing the position keyword template, namely fixing the name of the stem system person as a stem system person clause variable label at a designated position of the keyword template, and designating whether to sign on the keyword or sign after the keyword.
7. And (3) a seal template, namely adding a picture seal at a designated position in a watermark manner for the signature pattern of the contract main system person in order to make the digital contract and the physical contract more closely in form. The seal may be reserved by the user or may be uploaded at the same time as signing. To make the signature form more standardized, the photo seal size of the signature keyword is the same in the same contract instance.
8. Contract instance-an instantiated contract generated using transaction data and templates is managed and signed information for each tie person is recorded.
Referring to fig. 6 and 7, based on the digital contract generating system, the specific application example further provides a digital contract generating method, which specifically includes the following steps:
S11, acquiring contract information submitted by a transaction system.
Specifically, the contract information comprises a specified contract framework template, variable information and stem person information. Wherein the variable information includes a condition variable, a contract variable, and a corresponding variable value.
And S12, copying and generating an instance contract corresponding to the transaction according to the contract framework template specified by the transaction system.
Specifically, all the clause templates related to the contract framework template are obtained, the corresponding condition variable values are replaced into the expressions according to the expressions of the clause applicable condition templates corresponding to the clauses, and then the expressions are subjected to operation processing, so that the applicable clause templates with true operation results of all the expressions are obtained. And replacing the clause variable label with null in the example contract, wherein the operation result is false.
Next, the applicable clause templates acquired in step S12 are processed circularly one by one, and clause contents with contract variable labels are generated according to the fixed contents and the contract variable labels of the corresponding positions in the clause templates. And replacing the clause variable labels corresponding to the instance contracts with clause contents.
S13, generating contract variable contents corresponding to the contract variable labels.
Specifically, combining the contract variable labels of all the applicable clause templates and the contract variable labels under the contract framework templates, generating contract variable contents corresponding to the contract variable labels according to contract variables and display formats corresponding to the contract variable labels, and replacing the contract variable labels in the instance contracts with the corresponding contract variable contents.
S14, generating the clauses of the stem system.
And generating each dry system person term item by item according to the dry system person list submitted by the transaction system and the dry system person template. The signature position keyword label is replaced by the signature position keyword content with the corresponding dry system person clause variable. And then, replacing all variable labels in the clauses of the stem system with corresponding stem system contents. And finally, removing the duplication of all the dry system human clauses, and then merging.
S15, replacing the variable labels of the dry system persons in the contract example with corresponding dry system person clause contents.
FIG. 7 is a schematic diagram of a digital contract generation method in a specific application example of the invention, firstly, receiving a contract generation instruction of a transaction system (responding to a user request), then, obtaining a clause template and a corresponding clause application condition template, replacing a condition variable in the clause application condition, judging whether an expression is true, if the expression result is false, replacing the clause variable label with null, otherwise, replacing the clause variable label with clause content, then judging whether the clause template is completely processed, if not completely processed, circulating all the obtained application clause templates, replacing the contract variable label according to the contract variable on the basis that all the clause templates and the corresponding clause application condition template are completely processed, then, generating a dry system person clause content according to a dry system person list and a dry system person template, and replacing the dry system person corresponding to a signature position keyword in the contract example, and finally, replacing the dry system person variable label in the contract example with the dry system person clause content.
Referring to fig. 8 and 9, based on the digital contract generating system, the specific application example further provides a digital contract signing method, which specifically includes the following steps:
S21, acquiring signature position keywords corresponding to the dry system people.
If signed on the keyword, the keyword obtains the absolute position (X0, Y0) in the instance contract as the final signature position. If the key words are signed, the sizes (a, b) of the picture seal corresponding to the dry system person are obtained by the key words, a is used as the picture width of the transverse coordinates, and b is used as the picture height of the vertical coordinates.
S22, calculating the expected signature position.
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 dry person, and the absolute position (X1, Y1) of the half signature keyword in the instance contract is obtained through a dichotomy. The result of x0= (|x1-x0|) X2 is calculated as an offset value of the lateral coordinate, and (x0+x0+a/2, y0) is taken as the expected signature position (X, Y).
If the same signature keyword corresponding to the example contract is signed by other dry system people, the last dry system people signature position (Xn, yn) of the corresponding signature keyword is obtained, and the (Xn+a, yn) is calculated as the expected signature position (X, Y).
S23, acquiring the content of the contract instance document.
The contract instance document content within the horizontal coordinate range (X-a/2, X+a/2) and the vertical coordinate range (Y-b/2, Y+b/2) is obtained based on the expected signature position. If there is no content in the region, (X, Y) is taken as the final signature position. If the corresponding area contains content, line feed signing is carried out, and (X0 +x0+a/2, Y +b) is taken as a predicted signature position, so that contract instance document content in a transverse coordinate range (X0 +x0, X0+x0 +a) and a longitudinal coordinate range (Y+b/2, Y+3 xb/2) is obtained. If the corresponding region has no content, (x0+x0+a/2, y+b) is taken as the final signature position. At the final signature location, the picture seal is added as a watermark to the contract instance document.
Fig. 9 is a diagram of the concept of a digital contract signing method in a specific application example of the present invention, in the diagram, a contract signing instruction of a transaction system is received first, then a picture seal corresponding to a dry person is obtained, a keyword is signed, whether the keyword can be signed is judged, if yes, a position of the keyword is obtained as a final signature position according to the keyword corresponding to the dry person, and a watermark is added at the signature position by using the picture seal, and the whole process is ended.
If the signature cannot be signed on the keywords, whether the signature is the first signature is needed to be judged, if the signature is the first signature, the expected signature position is calculated according to the signature keywords corresponding to the dry system person and the size of the picture seal, if the contract content exists in the signature position area, the picture seal is used for adding the watermark in the signature position, and the whole signing process is completed.
If the signature is not the first signature, the expected signature position is calculated according to the signature keyword corresponding to the main system person, the signature position of the last main system person is obtained and combined with the size of the picture seal, whether contract content exists in the signature position area or not is judged, if yes, the expected signature position is calculated by line changing, whether contract content exists in the signature position area or not is judged, if yes, the process is finished, and if not, the picture seal is used for adding a watermark in the signature position. If the signing location area is where no contract content exists, the picture seal is directly used to watermark the signing location.
From the above description, the digital contract generation method provided by the embodiment of the invention can enable the signing of the digital contract to meet the requirement of formal compliance, deconstructs the contract content, and proposes a scheme for automatically positioning the signing position of the picture seal in the digital contract through a series of template configuration to complete formal signing. In particular, it has the following beneficial effects:
1. Based on the template configuration of the contract text, the transaction system is allowed to generate contract examples with different contents according to the conditions of transaction data, a plurality of sets of contracts are not required to be maintained, and the maintenance cost of the contract template can be reduced.
2. The method realizes the rule of positioning the signature position, supports a plurality of dry system people to sign in the same signature area in addition to signing by different dry system people in the signature areas, does not need a user to manually position the signature position, and reduces the cost of signing digital contracts on line of a transaction system.
Based on the same inventive concept, the embodiment of the present application also provides a digital contract generating apparatus, which can be used to implement the method described in the above embodiment, such as the following embodiment. Since the principle of solving the problem of a digital contract generating apparatus is similar to that of a digital contract generating method, the implementation of a digital contract generating apparatus can be referred to a digital contract generating method implementation, and the repetition is omitted. As used below, the term "unit" or "module" may be a combination of software and/or hardware that implements the intended function. While the system described in the following embodiments is preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
An embodiment of the present invention provides a specific embodiment of a digital contract generating apparatus capable of implementing a digital contract generating method, referring to fig. 10, the digital contract generating apparatus specifically including:
A data acquisition unit 10, configured to acquire a contract frame template, an instance contract, and dry system person information corresponding to a digital contract to be generated;
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 label corresponding to the fixed content;
A variable content generating unit 30, configured to generate, according to a contract variable corresponding to a contract variable label and the contract variable format, contract variable content corresponding to the contract variable label;
and a contract generating unit 40, configured to generate the digital contract according to the contract variable content, the clause content, the contract frame template, and the dry-system person clause content corresponding to the dry-system person information.
Preferably, referring to fig. 11, the clause content generating unit 20 includes:
a clause template generating module 201, configured to perform an operation according to an expression in the clause template, so as to generate a clause template with a true operation result;
The clause content generating module 202 is configured to generate 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.
Preferably, referring to fig. 12, the digital contract generating apparatus further includes:
a clause content replacing unit 50 for replacing the clause variable label corresponding to the instance contract with the clause content;
a variable content replacing unit 60 for replacing the contract variable label in the instance contract with the contract variable content.
Preferably, the digital contract generating apparatus further includes:
a keyword tag acquiring unit 70, configured to acquire a signature position keyword tag according to the dry system person information;
a signature position obtaining unit 80, configured to obtain a signature position according to the signature position keyword tag;
A signature generation unit 90 for generating a dry person signature at the signature location.
From the above description, it can be seen that the digital contract generating device provided by the embodiment of the invention firstly obtains a contract frame template, an instance contract and a dry-system person information corresponding to a digital contract to be generated, generates a clause content according to a fixed content in a clause template corresponding to the instance contract and a contract variable label corresponding to a position corresponding to the fixed content, then generates a contract variable content corresponding to the contract variable label according to a contract variable corresponding to the contract variable label and a contract variable format, and finally generates the digital contract according to the contract variable content, the clause content, the contract frame template and the dry-system person clause content corresponding to the dry-system person information. The invention allows the transaction system to generate contract examples with different contents according to the transaction data based on the template configuration of the contract text, does not need to maintain a plurality of sets of contracts, and can greatly reduce the maintenance cost of the contract template.
The embodiment of the present application further provides a specific implementation manner of an electronic device capable of implementing all the steps in the digital contract generating method in the foregoing embodiment, and referring to fig. 13, the electronic device specifically includes the following contents:
A processor 1201, a memory 1202, a communication interface (Communications Interface) 1203, and a bus 1204;
The processor 1201, the memory 1202 and the communication interface 1203 are configured to communicate with each other through the bus 1204, and the communication interface 1203 is configured to implement information transmission between related devices such as a server device, a power measurement device and a user device.
The processor 1201 is configured to invoke a computer program in the memory 1202, and when the processor executes the computer program, the processor implements all the steps in one digital contract generation method in the above embodiment, for example, when the processor executes the computer program, the processor implements the following steps:
step 100, acquiring a contract frame template, an instance contract and dry system person information corresponding to a digital contract to be generated;
Step 200, generating clause content according to the fixed content in the clause template corresponding to the example contract and the contract variable label of the position corresponding to the fixed content;
Step 300, according to the contract variable corresponding to the contract variable label and the contract variable format, generating contract variable content corresponding to the contract variable label;
and 400, generating the digital contract according to the contract variable content, the clause content, the contract frame template and the dry system person clause content corresponding to the dry system person information.
The embodiment of the present application also provides a computer-readable storage medium capable of implementing all the steps in one digital contract generation method in the above embodiment, on which a computer program is stored, which when executed by a processor implements all the steps in one digital contract generation method in the above embodiment, for example, the processor implements the following steps when executing the computer program:
step 100, acquiring a contract frame template, an instance contract and dry system person information corresponding to a digital contract to be generated;
Step 200, generating clause content according to the fixed content in the clause template corresponding to the example contract and the contract variable label of the position corresponding to the fixed content;
Step 300, according to the contract variable corresponding to the contract variable label and the contract variable format, generating contract variable content corresponding to the contract variable label;
and 400, generating the digital contract according to the contract variable content, the clause content, the contract frame template and the dry system person clause content corresponding to the dry system person information.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for a hardware+program class embodiment, the description is relatively simple, as it is substantially similar to the method embodiment, as relevant see the partial description of the method embodiment.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Although the application provides method operational steps as an example or a flowchart, more or fewer operational steps may be included based on conventional or non-inventive labor. The order of steps recited in the embodiments is merely one way of performing the order of steps and does not represent a unique order of execution. When implemented by an actual device or client product, the instructions may be executed sequentially or in parallel (e.g., in a parallel processor or multi-threaded processing environment) as shown in the embodiments or figures.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the principles and embodiments of the present invention have been described in detail in the foregoing application of the principles and embodiments of the present invention, the above examples are provided for the purpose of aiding in the understanding of the principles and concepts of the present invention and may be varied in many ways by those of ordinary skill in the art in light of the teachings of the present invention, and the above descriptions should not be construed as limiting the invention.
Claims (8)
1. A digital contract generation method, characterized by comprising:
acquiring a contract frame template, an instance contract and dry system person information corresponding to a digital contract to be generated;
generating clause content according to the fixed content in the clause template corresponding to the instance contract and the contract variable label of the position corresponding to the fixed content;
Generating contract variable contents corresponding to contract variable labels according to contract variables corresponding to the contract variable labels and the contract variable formats;
generating the digital contract according to the contract variable content, the clause content, the contract frame template and the dry system person clause content corresponding to the dry system person information;
acquiring a signature position keyword label according to the dry system person information;
Acquiring a signature position according to the signature position keyword label;
generating a dry person signature at the signature location;
The generation of the clause content according to the fixed content in the clause template corresponding to the instance contract and the contract variable label of the position corresponding to the fixed content comprises the following steps:
The method comprises the steps of copying and generating an example contract corresponding to a transaction according to a contract framework template, obtaining all clause templates related to the contract framework template, processing all obtained applicable clause templates one by one, and generating clause contents with contract variable labels according to fixed contents in the clause templates and contract variable labels at corresponding positions;
The generating the contract variable content corresponding to the contract variable label according to the contract variable corresponding to the contract variable label and the contract variable format comprises the following steps:
Combining the contract variable labels of all the applicable clause templates and the contract variable labels under the contract framework templates, and generating contract variable contents corresponding to the contract variable labels according to contract variables and display formats corresponding to the contract variable labels;
Acquiring a signature position keyword tag according to the dry system person information, acquiring a signature position according to the signature position keyword tag, and generating a dry system person signature at the signature position, comprising:
Acquiring a signature position keyword corresponding to the dry system person, and if the signature position keyword is signed on the keyword, acquiring an absolute position in the instance contract by the keyword as a final signature position;
The method comprises the steps of signing after keywords, obtaining the size of a picture seal corresponding to a dry person at the keywords, calculating an expected signature position according to the size of the picture seal, specifically, obtaining the absolute position in an instance contract through the signature keywords corresponding to the dry person if the instance contract is currently signed for the first time, calculating the expected signature position according to the absolute position of half of the signature keywords in the instance contract through a dichotomy, obtaining the last dry person signature position corresponding to the signature keywords if the same signature keywords corresponding to the instance contract are signed by other dry persons, and calculating the last dry person signature position according to the last dry person signature position to serve as the expected signature position;
The method comprises the steps of obtaining a contract instance document content in a horizontal coordinate range and a vertical coordinate range according to a predicted signature position, taking a current line as a final signature position if no content exists in the area, line feed signing if content exists in a corresponding area, and finally taking a picture seal as a watermark at the final signature position and adding the picture seal into the contract instance document.
2. The digital contract generation method of claim 1, characterized in that the generation of the term content from the fixed content in the term template corresponding to the instance contract and the contract variable labels of the fixed content corresponding locations includes:
performing operation according to the expression in the clause template to generate a clause template with a true operation result;
And generating clause content according to the fixed content of the clause template with the true operation result and the contract variable label of the position corresponding to the fixed content.
3. The digital contract generation method according to claim 1, characterized by further comprising:
Replacing the clause variable labels corresponding to the instance contracts with the clause contents;
and replacing the contract variable labels in the example contract with the contract variable contents.
4. A digital contract generating apparatus, characterized by comprising:
the data acquisition unit is used for acquiring a contract frame template, an instance contract and the dry system person 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 label at the position corresponding to the fixed content;
The variable content generation unit is used for generating contract variable contents corresponding to the contract variable labels according to the contract variables corresponding to the contract variable labels and the contract variable formats;
a contract generation unit, configured to generate the digital contract according to the contract variable content, the clause content, the contract frame template, and the dry system person clause content corresponding to the dry system person information;
the keyword label acquisition unit is used for acquiring a signature position keyword label according to the dry system person information;
the signature position acquisition unit is used for acquiring a signature position according to the signature position keyword label;
a signature generation unit for generating a dry person signature at the signature position;
The generation of the clause content according to the fixed content in the clause template corresponding to the instance contract and the contract variable label of the position corresponding to the fixed content comprises the following steps:
The method comprises the steps of copying and generating an example contract corresponding to a transaction according to a contract framework template, obtaining all clause templates related to the contract framework template, processing all obtained applicable clause templates one by one, and generating clause contents with contract variable labels according to fixed contents in the clause templates and contract variable labels at corresponding positions;
The generating the contract variable content corresponding to the contract variable label according to the contract variable corresponding to the contract variable label and the contract variable format comprises the following steps:
Combining the contract variable labels of all the applicable clause templates and the contract variable labels under the contract framework templates, and generating contract variable contents corresponding to the contract variable labels according to contract variables and display formats corresponding to the contract variable labels;
Acquiring a signature position keyword tag according to the dry system person information, acquiring a signature position according to the signature position keyword tag, and generating a dry system person signature at the signature position, comprising:
Acquiring a signature position keyword corresponding to the dry system person, and if the signature position keyword is signed on the keyword, acquiring an absolute position in the instance contract by the keyword as a final signature position;
The method comprises the steps of signing after keywords, obtaining the size of a picture seal corresponding to a dry person at the keywords, calculating an expected signature position according to the size of the picture seal, specifically, obtaining the absolute position in an instance contract through the signature keywords corresponding to the dry person if the instance contract is currently signed for the first time, calculating the expected signature position according to the absolute position of half of the signature keywords in the instance contract through a dichotomy, obtaining the last dry person signature position corresponding to the signature keywords if the same signature keywords corresponding to the instance contract are signed by other dry persons, and calculating the last dry person signature position according to the last dry person signature position to serve as the expected signature position;
The method comprises the steps of obtaining a contract instance document content in a horizontal coordinate range and a vertical coordinate range according to a predicted signature position, taking a current line as a final signature position if no content exists in the area, line feed signing if content exists in a corresponding area, and finally taking a picture seal as a watermark at the final signature position and adding the picture seal into the contract instance document.
5. The digital contract generation apparatus of claim 4, characterized in that the clause content generation unit includes:
The clause template generation module is used for carrying out operation according to the expression in the clause template so as to generate a clause template with a true operation result;
And the clause content generating module is used for generating clause content according to the fixed content of the clause template with the true operation result and the contract variable label at the corresponding position of the fixed content.
6. The digital contract generating apparatus as recited in claim 4, further comprising:
a clause content replacing unit, configured to replace a clause variable label corresponding to the instance contract with the clause content;
and the variable content replacing unit is used for replacing the contract variable labels in the example contract with the contract variable contents.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of a digital contract generation method according to any one of claims 1 to 3 when the program is executed.
8. A computer readable storage medium having stored thereon a computer program, characterized in that the computer program when executed by a processor realizes the steps of a digital contract generation method according to any of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110057786.0A CN112766901B (en) | 2021-01-15 | 2021-01-15 | Digital contract generation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110057786.0A CN112766901B (en) | 2021-01-15 | 2021-01-15 | Digital contract generation method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112766901A CN112766901A (en) | 2021-05-07 |
CN112766901B true CN112766901B (en) | 2024-12-17 |
Family
ID=75702282
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110057786.0A Active CN112766901B (en) | 2021-01-15 | 2021-01-15 | Digital contract generation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112766901B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114239525A (en) * | 2021-11-25 | 2022-03-25 | 中国建设银行股份有限公司 | Contract template editing method and device, computer equipment and storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102855304A (en) * | 2012-08-20 | 2013-01-02 | 清华大学 | Variable-clause electronic contract automatic generation method in business to customer (B2C) transaction |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2380016A (en) * | 2001-09-21 | 2003-03-26 | Hewlett Packard Co | Generating a contract |
CN106933790B (en) * | 2017-03-02 | 2020-07-07 | 重庆砖家宝网络科技发展有限公司 | Contract template manufacturing method and system |
CN112214979A (en) * | 2020-03-12 | 2021-01-12 | 律大大网络(深圳)有限公司 | A custom contract template making method |
-
2021
- 2021-01-15 CN CN202110057786.0A patent/CN112766901B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102855304A (en) * | 2012-08-20 | 2013-01-02 | 清华大学 | Variable-clause electronic contract automatic generation method in business to customer (B2C) transaction |
Also Published As
Publication number | Publication date |
---|---|
CN112766901A (en) | 2021-05-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104572072B (en) | A kind of language transfer method and equipment to the program based on MVC pattern | |
JP7596015B2 (en) | IMAGE PROCESSING METHOD, APPARATUS, AND ELECTRONIC DEVICE | |
CN112463986B (en) | Information storage method and device | |
US20240420083A1 (en) | Digital work collaborative creation method, electronic device and computer-readable storage medium | |
CN114266093A (en) | Standardized BIM model lightweight realization method | |
CN111435367A (en) | Knowledge graph construction method, system, equipment and storage medium | |
Jung et al. | Transformer language model for mapping construction schedule activities to uniformat categories | |
Parakkat et al. | Delaunay painting: Perceptual image colouring from raster contours with gaps | |
CN112766901B (en) | Digital contract generation method and device | |
CN111737780B (en) | An online model editing method and online model editing system | |
Tauscher et al. | A modular graph transformation rule set for IFC‐to‐CityGML conversion | |
CN115240201B (en) | Chinese character generation method for alleviating network mode collapse problem by using Chinese character skeleton information | |
CN113822114A (en) | Image processing method, related equipment and computer readable storage medium | |
Bansal et al. | Redefining and exploring the smart city concept in Indian perspective: case study of Varanasi | |
CN112346736B (en) | Data processing method and system | |
GB2617412A (en) | Image tracing system and method | |
CN116309005A (en) | Virtual reloading method and device, electronic equipment and readable medium | |
CN106933563B (en) | Page flow editor | |
CN111160408A (en) | A tensor data fusion method and system | |
CN111597211A (en) | Data flow graph processing method, device and equipment and readable storage medium | |
CN110489430A (en) | A kind of source tracing method and its system signed and verified based on data block | |
He | Automatic Recognition System of Landscape Portrait Photography on Account of AI | |
CN116777804B (en) | Intelligent phase diagram local updating method, device and equipment based on generation countermeasure network | |
CN116778065B (en) | Image processing method, device, computer and storage medium | |
Anouar et al. | Heritage Information Modeling: The Case of Chellah’s Gate |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |