Method and device for automatically generating contract text
By obtaining the basic contract information entered by the user, the selected contract templates and list information, the contract documents are automatically generated, which solves the problems of low efficiency in writing, review and signing of contract texts and high management costs in the existing technology, and achieves efficient and intelligent contract management.
Patent Information
- Application Number
- CN202011034145.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-27
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2040-09-27
AI Technical Summary
The existing technology has problems such as human error, low review efficiency, difficulty in revision and high contract management costs in the writing, review and signing of contract texts, especially in the management of banking credit business contracts.
By obtaining the basic contract information entered by the user, the selected contract template and list information, a contract cache file is generated, and a formal contract file is automatically generated based on the preset contract service information and parameters, so as to automatically generate it from offline handwriting to pure online.
It improves the efficiency of contract generation, review and signing, reduces human errors, saves storage space and costs, and realizes rapid query and intelligent contract management.
Smart Images

Figure CN112115107B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of text processing, and in particular to a method and device for automatically generating contract text. Background Art
[0002] In the promotion of paperless online operating systems that are becoming more and more popular, the current technology is still stuck in the manual writing, review, and signing of contracts for various trades and activities between market entities. This is prone to human errors caused by manual filling, low review efficiency due to different business types and entities, and difficulties and complexities in modification and adjustment. Especially in the banking industry, with the rapid development of the financial credit industry, the workload of drafting, reviewing, signing, archiving and version management of credit business contracts has become increasingly huge, the space and cost of storing contracts have continued to increase, and contracts cannot be quickly queried. It is easy for contracts to be lost or damaged due to human factors. Obviously, the traditional manual method can no longer meet the development needs of the industry. Summary of the invention
[0003] The embodiment of the present invention provides a method and device for automatically generating a contract text, so as to improve the efficiency of generating, reviewing or signing a contract.
[0004] In a first aspect, an embodiment of the present invention provides a method for automatically generating a contract text, which includes:
[0005] Get the basic information of the contract entered by the user;
[0006] Get the contract template selected by the user;
[0007] Get the list information of the contract entered by the user;
[0008] Generate a contract cache file according to the basic information of the contract, the list information of the contract and the contract template;
[0009] Acquiring preset contract service information and preset contract parameters corresponding to the contract template;
[0010] A formal contract document is generated according to the contract cache file, the preset contract service information and the preset contract parameters.
[0011] In a second aspect, an embodiment of the present invention provides a device for automatically generating a contract text, which includes:
[0012] The first acquisition module is used to acquire basic information of the contract input by the user;
[0013] The second acquisition module is used to acquire the contract template selected by the user;
[0014] The third acquisition module is used to obtain the list information of the contract input by the user;
[0015] A contract cache file generation module, used to generate a contract cache file according to the basic information of the contract, the list information of the contract and the contract template;
[0016] A fourth acquisition module, used to acquire preset contract service information and preset contract parameters corresponding to the contract template;
[0017] The formal contract document generation module is used to generate a formal contract document according to the contract cache file, the preset contract service information and the preset contract parameters.
[0018] In a third aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for automatically generating a contract text as described above.
[0019] In a fourth aspect, an embodiment of the present invention provides a computer device, comprising:
[0020] one or more processors;
[0021] A storage device for storing one or more programs;
[0022] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for automatically generating a contract text as described above.
[0023] The above technical solution has the following beneficial effects:
[0024] The embodiment of the present invention obtains the basic information of the contract input by the user; obtains the contract template selected by the user; fills the basic information of the contract into the contract template to generate the first electronic text of the contract; obtains the contract text production list information input by the user; performs text recognition on the contract text production list information to obtain contract parameters; generates the second electronic text of the contract according to the contract parameters; generates the final electronic text of the contract according to the first electronic text of the contract and the second electronic text of the contract; thereby realizing the automatic generation from offline handwriting to pure online, saving the time of printing to manually processing the contract, making the contract signing faster and more efficient, improving the efficiency of contract signing, and avoiding human errors caused by manual filling. In addition, for paper contract management, it is changed to cloud storage, realizing the management and configuration of contract types, the establishment of various types of contract template libraries, standardizing contract texts, intelligent contract management, saving space and cost for storing contracts, and being able to quickly find contracts to avoid some human factors that cause the loss and damage of contracts. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] 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 only 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.
[0026] Figure 1 It is a flow chart of the method for automatically generating contract text according to an embodiment of the present invention;
[0027] Figure 2 is another flow chart of the method for automatically generating a contract text according to an embodiment of the present invention;
[0028] Figure 3 It is a functional block diagram of a device for automatically generating contract text according to an embodiment of the present invention;
[0029] Figure 4 is a functional block diagram of a computer device according to an embodiment of the present invention;
[0030] Figure 5 It is the list information corresponding to the guarantee mortgage contract type in the guarantee category used as an example in the present invention;
[0031] Figure 6 This is a list of information with LPR pricing in the fixed asset loan contract class used as an example in the present invention;
[0032] Figure 7 It is a word diagram of a preset contract template used as an example in the present invention;
[0033] Figure 8 It is an Excel representation of a preset contract template used as an example of the present invention. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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.
[0035] Taking the characteristics of banking business as an example, the technical problems to be solved by the embodiments of the present invention mainly include any one or more of the following: (1) realizing online contract preparation, online approval and online printing; (2) system management and maintenance of contract templates; (3) automatic acquisition of data during the contract preparation process.
[0036] The embodiment of the present invention realizes the unified connection between the online system and the traditional paper contract. The embodiment of the present invention obtains the preset contract configuration information according to the contract template, generates the contract data to be generated according to the preset contract configuration information, and further automatically generates the final contract according to the contract service information and saves it. The final contract has two different formats, one is an html file corresponding to the viewing function, and the other is a PDF file corresponding to the generation function.
[0037] The above-mentioned preset contract configuration information mainly includes: basic contract information and contract list quick entry information. The basic information items of different contract templates are consistent, but the list items are different. The basic contract information items include: basic information for text production, Party A information and Party B information; contract list configuration items, such as guarantee and mortgage contracts, include mortgagor information configuration items; guarantee and guarantee contracts include guarantor information items; project financing contracts include interest rates, repayment methods, other agreements and other configuration items. These configuration items are pre-defined and imported.
[0038] The above contract service information refers to the parts of the contract that do not need to be changed according to the contract type. Formal contracts contain many clauses, which are pre-saved texts according to the contract type and do not need to be changed, but they are required items for each contract.
[0039] Based on the overall business model of the bank, the embodiment of the present invention provides the following business process to realize the automatic generation of contracts. Figure 1 FIG. 1 is a flow chart of a method for automatically generating a contract text based on a pattern according to an embodiment of the present invention. Figure 1 As shown, the following steps are included:
[0040] S110: Obtain basic information of the contract input by the user.
[0041] Optionally, basic information of the contract input by the user may be obtained through a web page.
[0042] S120: Obtain the contract template selected by the user.
[0043] Specifically, a contract template maintenance menu may be provided to the user; and a contract template selected by the user through an operation on the contract template maintenance menu may be received.
[0044] The following is a sample contract template information table and contract template value information table:
[0045]
[0046]
[0047] Among them, Table 2 is mainly used to match the contract list template with the contract template. The basic information of the contract is often not enough to explain a contract. At this time, a list is needed to supplement it. Table 2 is used to associate the contract list template with the contract template.
[0048] S130: Obtain the list information of the contract input by the user.
[0049] As an example, the list information of the contract text may specifically include any one or more of the following fields: contract text list supplementary element ID, list creation number, contract text type, template list number, list creation name, list data item values, and an indication of whether it is a standard contract text.
[0050] The following is a sample contract text preparation checklist:
[0051]
[0052] It should be noted that the elements exemplified in Table 3 are only examples, and those skilled in the art may add, delete or modify the elements in Table 3 according to application scenarios.
[0053] This step may specifically include: generating a contract list template corresponding to the type of contract template selected by the user; obtaining the list information of the contract filled in and input by the user into the contract list template, and saving the list information of the contract to a database.
[0054] Figure 5 This is the list information corresponding to the guarantee mortgage contract type in the guarantee category used as an example in the present invention. Figure 6 This is another example of a fixed asset loan contract category with LPR pricing list information in the present invention.
[0055] In the exemplary embodiment, the contract text list is made to supplement the content of the generated electronic contract text, mainly to supplement the third-party information. The list making is a quick entry and supplement of the third-party information. Different contract list templates are generated according to different types of contract templates. The user fills in the content of the contract list template, saves it and stores it in the database. The automatic filling of the contract list template content is also achieved through parsing, matching and assignment. The PDF file of the contract list can be viewed through the preview function.
[0056] S140: Generate a contract cache file according to the basic information of the contract, the list information of the contract and the contract template.
[0057] In an exemplary embodiment, basic information of a contract is filled into a preset placeholder in a contract template, and a cached electronic text of the contract is generated as a cache file on a database of a server.
[0058] In the exemplary embodiment, the basic contract information input by the user is automatically stored in the database after saving; the specific data items of the selected contract template are parsed and matched with the key value in the database. If the key values are equal, the specific value corresponding to the key value in the database is taken out and assigned to the cache file corresponding to the contract template in the server, so as to realize the automatic filling of the basic information of the contract template. Click preview to generate a PDF electronic text.
[0059] In the exemplary embodiment, this step will match the assignment rules according to the cache file stored in the server in the previous steps (when parsing the specific data items of the contract template, there will be a column of assignment rules reserved for matching the template list. This assignment rule is set by the user according to needs. It is to supplement the contract content and make the contract template more flexible). If the match is successful, the value filled in the contract list template will be automatically filled into the specific items of the contract template, and the final cache contract file will be generated and saved in the server. Click the preview function to generate the final formal contract. After the content of the contract list template is filled in, save it. These filled-in contents will be saved in the database, and there is no need to generate a cache file. The cache file is generated after the basic information of the contract is filled in and saved.
[0060] According to the parsing matching assignment, the corresponding values are assigned to the required fields in the contract cache file. The contract cache file can be an HTML file saved in the server, which is initially an empty contract template. Then, the values are taken from the basic contract information and the contract list information respectively. The basic contract information is a required item of the contract, so the basic contract information is put together with the contract template and the cache file is generated at the same time. The list information is the variable part and is optional. You only need to parse and match to see if it is needed. If it is needed, assign it to the contract template. If it is not needed, you can also not assign it to the contract template. This distinction will greatly improve the usability of the contract template. Fixed content will reduce repetitiveness and improve efficiency; variable content will make the contract more flexible.
[0061] The following are further examples:
[0062] Figure 7 It is a word schematic diagram of a preset contract template used as an example in the present invention. Figure 8 This is an Excel representation of a preset contract template used as an example of the present invention. Figure 7 and Figure 8As shown, the word and Excel tables of the preset contract template are uploaded to the server. The values filled in by the user for the basic information of the contract will be stored in a database such as this Excel table. After parsing the code, the corresponding values will be matched and retrieved, and the assignment of the html cache file will be completed. The generation of the html file here can be generated when the importing user clicks the preview function during import, or when the user fills in the information and clicks Save. There will be a column of assignment rules in the Excel table, which describes the matching rules between the basic information of the contract and the list information. If a field of the contract list information meets one of the conditions, the value stored in the database in the field of the contract list information will be retrieved and also assigned to the html file, thus realizing the overall assignment of the information that needs to be filled in the entire contract.
[0063] Regarding the assignment rules, Figure 7 In the WORD contract template, ${htbh} and other similar symbols are pre-defined placeholders, which are the codes in the Excel table. The fields in the contract list data table and the fields in the contract basic information data table can find the corresponding codes in the pre-imported Excel table. When the code of the field in the database is consistent with the placeholder, the value of the field in the database will be taken out and assigned to the placeholder in the cached HTML cache file.
[0064] S150: Acquire preset contract service information and preset contract parameters corresponding to the contract template.
[0065] The above contract parameters are some default values, such as contract number and other variable parameters that can be automatically generated by the system, with default encoding and sorting methods; contract service information is mainly text information of some contract terms.
[0066] S160: Generate a formal contract document according to the contract cache file, preset contract service information and preset contract parameters.
[0067] The execution order of the above steps can be swapped if there is no conflict. For example, the execution order of step S150 can be adjusted to be immediately after step S120.
[0068] The following combination Figure 2 The above method is described in more detail, wherein steps S1-S7 are the user operation process, and steps S1'-S3' are the computer program execution process:
[0069] S1: The account manager initiates a request on the relevant contract production application initiation page, fills in the preset text production related information and the basic information of Party A and Party B, selects the specific contract template for the current business, and clicks OK to automatically fill in the basic information in the preset placeholder in the contract template. At this time, a simple word contract document containing basic information can be generated. There is a special contract template maintenance menu for importing contract templates. The contract template maintenance menu can be used to import and update contract templates, which is convenient for account managers to use directly when initiating contract production.
[0070] The above-mentioned contract template maintenance menu is a menu entry specifically used to maintain contract templates. Contract templates are created and contract list information is preset through a unified entry interface.
[0071] S2: After the account manager fills in the basic information, it will be submitted to the supervisor for review and confirmation of the basic information of the contract to ensure the accuracy of the basic information input.
[0072] S3: Contract preparation and acceptance allocation is to facilitate designated personnel to prepare and track contracts and further confirm basic information.
[0073] S4-S7: After the basic information is confirmed, the contract preparation staff prepares the contract, generates an unmodifiable PDF document from the original word text information, automatically reads the content supplemented by the contract text preparation list, generates the final electronic contract, and submits it to the corresponding approval personnel to make the contract effective.
[0074] The above-mentioned contract making personnel making a contract means: generating a contract through multiple personnel with contract making and generating authority. The system of the embodiment of the present invention is not operated by a single person to operate the contract, but is subdivided into each step, and the job role authority required for each step is different. This can better ensure the correctness of the contract information and confirm it through different personnel at each level.
[0075] The contract finally generated above is a non-modifiable and non-editable contract document, and its format is not limited to the PDF format. Other non-editable and non-modifiable text formats can also be applied to the embodiments of the present invention.
[0076] In the process of automatically reading the contract text to make the supplemented content of the list and generating the final electronic contract, the embodiment of the present invention is implemented through an assignment rule matching method. The assignment rule matching is associated through Table 2. The assignment rule matching refers to assigning the value of the configuration item of the contract list template to the configuration item in the contract template, thereby completing the supplement to the contract template.
[0077] Steps S1'-S3' include the following processing flow:
[0078] S1': Import the required type of contract template and fill in the basic information and list information.
[0079] S2': Data reading and text automatic recognition to generate electronic contracts.
[0080] S3': Contract review, signing and archiving.
[0081] The advantages of the above technical solution of the embodiment of the present invention include:
[0082] In the embodiment of the present invention, the contract data to be generated includes contract configuration information, a list of contract template files, and parameters (the parameters are some default values, such as the contract number, etc.), etc. The online contract generation program asynchronously retrieves the contract data to be generated, calls the contract generation service, and the generated files are all contract PDF files, retrieves the template file and the corresponding template parameter values from the cache file on the server, generates the contract PDF file accordingly and uploads it to the server, thereby realizing the transition from offline handwriting to pure online automatic generation, saving the time from printing to manually processing the contract, making the contract signing faster and more efficient, improving the efficiency of contract signing, and avoiding human errors caused by manual filling.
[0083] In addition, paper contract management has been changed to cloud storage, which has realized the management and configuration of contract types, the establishment of template libraries for various types of contracts, standardized contract texts, and intelligent contract management. It saves space and costs for storing contracts, and can quickly find contracts to avoid the loss and damage of contracts due to some human factors.
[0084] The above-mentioned asynchronous retrieval of the contract data to be generated is because the basic information and the list information belong to different process steps for the bank's system, so they are obtained through different methods. Asynchronous data retrieval is more conducive to maintenance.
[0085] There are cache files on the server. The embodiment of the present invention takes out the cache files such as the basic information of the contract and the list file information to generate the final contract file.
[0086] Figure 3 200 is a functional block diagram of a device for automatically generating contract text according to an embodiment of the present invention. Based on similar inventive concepts, the device 200 includes:
[0087] A first acquisition module 210 is used to acquire basic information of a contract input by a user;
[0088] The second acquisition module 220 is used to acquire the contract template selected by the user;
[0089] The third acquisition module 230 is used to acquire the list information of the contract input by the user;
[0090] The contract cache file generating module 240 is used to generate a contract cache file according to the basic information of the contract, the list information of the contract and the contract template;
[0091] A fourth acquisition module 250, configured to acquire preset contract service information and preset contract parameters corresponding to the contract template;
[0092] The formal contract document generation module 260 is used to generate a formal contract document according to the contract cache file, the preset contract service information and the preset contract parameters.
[0093] Furthermore, the third acquisition module 230 is specifically used to: generate a contract list template corresponding to the type of contract template selected by the user; obtain the list information of the contract filled in and input by the user in the contract list template, and save the list information of the contract to the database.
[0094] Furthermore, the contract cache file generation module 240 is specifically used to: parse the basic information of the contract and the list information of the contract; assign the parsed basic information of the contract and the list information of the contract to the contract template according to the assignment rules to generate a contract cache file.
[0095] Specifically, the contract text production list information includes any one or more of the following fields: contract text production list supplementary element ID, list production number, contract text type, template list number, list production name, list data item value, whether it belongs to the standard contract text indication
[0096] The beneficial technical effects of the embodiments of the present invention include:
[0097] (1) Realize intelligent contract generation; (2) Realize automatic text information acquisition; (3) Realize standardization of contract text; (4) Realize refinement of contract text. By automatically generating contract text online and saving it in cloud storage devices, the efficiency, speed and accuracy of contract signing and contract management are improved.
[0098] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any one of the above-described methods for automatically generating a contract text.
[0099] The embodiment of the present invention further provides an electronic device, such as Figure 4 As shown, it includes one or more processors 301 , a communication interface 302 , a memory 303 and a communication bus 304 , wherein the processor 301 , the communication interface 302 , and the memory 303 communicate with each other via the communication bus 304 .
[0100] Memory 303, used for storing computer programs;
[0101] The processor 301 is used to implement each step of any of the above-mentioned methods for automatically generating contract texts when executing the program stored in the memory 303.
[0102] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The communication interface is used for communication between the above electronic device and other devices.
[0103] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0104] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0105] Those skilled in the art may also understand that the various illustrative logical blocks, units, and steps listed in the embodiments of the present invention may be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly demonstrate the interchangeability of hardware and software, the various illustrative components, units, and steps described above have generally described their functions. Whether such functions are implemented by hardware or software depends on the specific application and the design requirements of the entire system. Those skilled in the art may use various methods to implement the described functions for each specific application, but such implementation should not be understood as exceeding the scope of protection of the embodiments of the present invention.
[0106] The various illustrative logic blocks or units described in the embodiments of the present invention can be implemented or operated by a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array or other programmable logic device, a discrete gate or transistor logic, a discrete hardware component, or any combination of the above. The general-purpose processor can be a microprocessor, and optionally, the general-purpose processor can also be any conventional processor, controller, microcontroller or state machine. The processor can also be implemented by a combination of computing devices, such as a digital signal processor and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a digital signal processor core, or any other similar configuration.
[0107] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0108] Each embodiment in this specification is described in a related 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 device, electronic device, and readable storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0109] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A method for automatically generating a contract text, characterized in that: include: Obtaining basic information of the contract input by the user, the basic information including basic information for text production, information of Party A and information of Party B; Get the contract template selected by the user; Get the list information of the contract entered by the user; Generate a contract cache file according to the basic information of the contract, the list information of the contract and the contract template; Acquiring preset contract service information and preset contract parameters corresponding to the contract template; Generate a formal contract document according to the contract cache file, the preset contract service information and the preset contract parameters; The step of generating a contract cache file according to the basic information of the contract, the list information of the contract and the contract template specifically includes: Parse the basic information of the contract and the list information of the contract. When parsing the specific data items of the contract template, there is a column of assignment rules reserved for matching the template list. The list information is a variable part. If the list information is needed, it is assigned to the contract template; if the list information is not needed, it is not assigned to the contract template. According to the assignment rule, the parsed basic information of the contract and the list information of the contract are assigned to the contract template to generate a contract cache file, wherein, if the match is successful, the value filled in the contract list template is automatically filled into the specific item of the contract template to generate a final cache contract file and save it in the server; wherein, the assignment rule is used to describe the matching rule between the basic information and the list information; Among them, after the content of the contract list template is filled in, it is saved in the database, and there is no need to generate a cache file. The cache file is generated after the basic information of the contract is filled in and saved, wherein the basic information is a necessary item of the contract, and the basic information is placed together with the contract template; The step of obtaining the list information of the contract input by the user specifically includes: According to the type of the contract template selected by the user, a contract list template corresponding to the type is generated, and the contract list template is used to supplement the third-party information; The list information of the contract filled in and input by the user in the contract list template is obtained, and the list information of the contract is saved in a database.
2. The method according to claim 1, characterized in that The obtaining of the basic information of the contract input by the user specifically includes: obtaining the basic information of the contract input by the user through a web page; The obtaining of the contract template selected by the user specifically includes: providing a contract template maintenance menu to the user; and receiving the contract template selected by the user through an operation on the contract template maintenance menu.
3. The method according to claim 1, characterized in that The contract text preparation list information specifically includes any one or more of the following fields: contract text preparation list supplementary element ID, list preparation number, contract text type, template list number, list preparation name, list data item value, and an indication of whether it is a standard contract text.
4. A device for automatically generating contract text, characterized in that: include: A first acquisition module is used to acquire basic information of the contract input by the user, wherein the basic information includes basic information for text production, information of Party A and information of Party B; The second acquisition module is used to acquire the contract template selected by the user; The third acquisition module is used to obtain the list information of the contract input by the user; A contract cache file generation module, used to generate a contract cache file according to the basic information of the contract, the list information of the contract and the contract template; A fourth acquisition module, used to acquire preset contract service information and preset contract parameters corresponding to the contract template; A formal contract document generation module, used to generate a formal contract document according to the contract cache file, the preset contract service information and the preset contract parameters; Wherein, the contract cache file generation module is specifically used for: Parse the basic information of the contract and the list information of the contract. When parsing the specific data items of the contract template, there is a column of assignment rules reserved for matching the template list. The list information is a variable part. If the list information is needed, it is assigned to the contract template; if the list information is not needed, it is not assigned to the contract template. According to the assignment rule, the parsed basic information of the contract and the list information of the contract are assigned to the contract template to generate a contract cache file, wherein, if the match is successful, the value filled in the contract list template is automatically filled into the specific item of the contract template to generate a final cache contract file and save it in the server; wherein, the assignment rule is used to describe the matching rule between the basic information and the list information; Among them, after the content of the contract list template is filled in, it is saved in the database, and there is no need to generate a cache file. The cache file is generated after the basic information of the contract is filled in and saved, wherein the basic information is a necessary item of the contract, and the basic information is placed together with the contract template; Among them, the third acquisition module is specifically used to: generate a contract list template corresponding to the type of contract template selected by the user, and the contract list template is used to supplement the third-party information; obtain the list information of the contract filled in and input by the user in the contract list template, and save the list information of the contract to the database.
5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, it implements the method for automatically generating contract text as described in any one of claims 1-3.
6. A computer device, characterized in that: It includes: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method for automatically generating a contract text as described in any one of claims 1-3.
Citation Information
Patent Citations
A method and system for automatically generating contracts
CN109636360A