Contract text generation method and device, electronic equipment and storage medium

By obtaining the contract scenarios and attributes of loan cases, and automatically matching and generating contract templates, the problems of low efficiency and low accuracy of contract text generation in the existing technology are solved, and efficient and accurate contract text generation is achieved.

CN119398026APending Publication Date: 2025-02-07PING AN BANK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411552995.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

In the prior art, contract text generation efficiency is low and the accuracy is low, especially in business such as bank loans, where the multi-attribute combination is complex, resulting in low efficiency and error-prone contracts for manual judgment and combination.

Method used

By obtaining the contract scenario, case attributes, variable identification and variable values ​​of the loan case, obtain the associated contract template based on the contract scenario, use preset atomic logic to determine whether the contract template meets the attribute conditions. If it is satisfied, it will be used as the initial contract text, and according to Variable ID and variable value generate target contract text.

Benefits of technology

It improves the efficiency and accuracy of contract text generation, reduces manual intervention, reduces error rate, and realizes the full online contract process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119398026A_ABST
    Figure CN119398026A_ABST
Patent Text Reader

Abstract

The invention provides a contract text generation method and device, electronic equipment and a storage medium. The contract text generation method provided by the invention comprises the steps of obtaining a contract scene of a loan case, all case attributes of the loan case, a variable identifier of the loan case and a variable value of the loan case; obtaining all contract templates associated with the contract scene according to the contract scene; judging whether the current contract template meets attribute conditions or not according to all the case attributes, and if yes, taking the current contract template as an initial contract text; and generating a target contract text according to the variable identifier of the loan case, the variable value of the loan case and the initial contract text. According to the contract text generation method, the contract text generation efficiency and accuracy can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and is applicable to the financial field, and in particular to a contract text generation method, device, electronic device and storage medium. Background Art

[0002] The contract is mainly used to stipulate the responsibilities and obligations that both parties need to fulfill, and to clarify the work that both parties need to do within the time limit. The contract can specifically include matters such as how to deal with breach of contract, the basis for handling, and what legal procedures to follow. After both parties agree and sign, the contract will take legal effect. The current contracts on the market are mainly contracts drafted for a single scenario and a single user, while businesses such as bank loans involve many business attributes. For example, business attributes can include credit loans, mortgage loans, public license loans, whether there are co-borrowers, guarantors, arbitration agreements, etc., and in most cases, multiple attribute combinations are involved, such as public license mortgages, public license mortgages with guarantors, etc.; the traditional method of combining prefabricated contracts according to the case situation is inefficient; it is necessary to manually judge the case situation and select the contract to be signed, which is prone to errors and has low accuracy. Summary of the invention

[0003] The purpose of the present invention is to provide a contract text generation method, device, electronic device and storage medium to solve the technical problems of low efficiency and low accuracy of contract text generation in the prior art.

[0004] The technical solution of the present invention is as follows, which provides a method for generating a contract text, comprising:

[0005] Obtaining the contract scenario of the loan case, all case attributes of the loan case, the variable identifier of the loan case and the variable value of the loan case;

[0006] Acquire all contract templates associated with the contract scenario according to the contract scenario;

[0007] Determine whether the current contract template meets the attribute conditions according to the attributes of all the cases, and if so, use the current contract template as the initial contract text;

[0008] A target contract text is generated according to the variable identifier of the loan case, the variable value of the loan case and the initial contract text.

[0009] Furthermore, the applicable attributes of the contract template include applicable institution, guarantee method, license type, borrower type, arbitration method, signature keyword and seal keyword.

[0010] Further, judging whether the current contract template meets the attribute condition according to the attributes of all the cases includes: judging whether the contract template meets the attribute condition according to the attributes of all the cases and using preset atomic logic.

[0011] Furthermore, judging whether the contract template meets the attribute conditions based on the attributes of all the cases and using the preset atomic logic includes:

[0012] Determine whether the case attribute is the same as the corresponding applicable attribute in the current contract template, or whether the case attribute is included in the corresponding applicable attribute in the current contract template. If so, the applicable attribute corresponding to the case attribute in the current contract template satisfies the attribute condition. If the applicable attributes corresponding to all the case attributes in the current contract template satisfy the attribute condition, then it is determined that the current contract template satisfies the attribute condition.

[0013] Furthermore, generating a target contract text according to the variable identifier of the loan case, the variable value of the loan case and the initial contract text includes:

[0014] A variable identifier identical to the variable identifier of the loan case is parsed from the initial contract text as the selected variable identifier, and the variable value of the loan case is filled into the position corresponding to the selected variable identifier in the initial contract text to generate a target contract text.

[0015] Furthermore, the contract text generation method also includes: constructing a contract template library, and associating the contract templates in the contract template library with contract scenarios.

[0016] Further, associating the contract template in the contract template library with the contract scenario includes:

[0017] The contract templates in the contract template library are associated with the contract scenarios through an association table, and the association table includes a primary key id, a contract scenario code, a contract scenario configuration table id, a contract template configuration table id and a contract template number.

[0018] Another technical solution of the present invention is as follows: a contract text generation device is provided, including an information acquisition module, a contract template acquisition module, an initial contract text acquisition module and a target contract text acquisition module;

[0019] The information acquisition module is used to acquire the contract scenario of the loan case, all case attributes of the loan case, the variable identifier of the loan case and the variable value of the loan case;

[0020] The contract template acquisition module is used to acquire all contract templates associated with the contract scenario according to the contract scenario;

[0021] The initial contract text acquisition module is used to determine whether the current contract template meets the attribute conditions according to the attributes of all the cases, and if so, use the current contract template as the initial contract text;

[0022] The target contract text acquisition module is used to generate the target contract text according to the variable identifier of the loan case, the variable value of the loan case and the initial contract text.

[0023] Another technical solution of the present invention is as follows: an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program executable by the processor, and when the processor executes the computer program, the contract text generation method described in any of the above technical solutions is implemented.

[0024] Another technical solution of the present invention is as follows: a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the contract text generation method as described in any of the above technical solutions is implemented.

[0025] The beneficial effects of the present invention are: obtaining the contract scenario of a loan case, all case attributes of the loan case, the variable identifier of the loan case and the variable value of the loan case; obtaining all contract templates associated with the contract scenario according to the contract scenario; judging whether the current contract template meets the attribute conditions according to all case attributes, and if so, using the current contract template as the initial contract text; generating a target contract text according to the variable identifier of the loan case, the variable value of the loan case and the initial contract text; through the above technical solution, the efficiency and accuracy of contract text generation can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A schematic diagram of a flow chart of a method for generating a contract text provided by an embodiment of the present invention;

[0027] Figure 2 A schematic diagram of the structure of a contract text generating device provided by an embodiment of the present invention;

[0028] Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

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

[0030] In the description of this application, the words "first", "second", etc. are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying an order. In this specification, the terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0031] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0032] Figure 1 is a flow chart of the method for generating a contract text according to an embodiment of the present invention. It should be noted that the method for generating a contract text according to the present invention is not limited to the method for generating a contract text according to an embodiment of the present invention if the results are substantially the same. Figure 1 The process sequence shown is limited. Figure 1 As shown, the contract text generation method mainly includes the following steps:

[0033] S101, obtaining a contract scenario of a loan case, all case attributes of the loan case, a variable identifier of the loan case, and a variable value of the loan case;

[0034] In some embodiments, when generating a contract text for a loan case, a contract generation request may be obtained or received. The contract generation request may include information such as the product to which the loan case belongs, all case attributes, variable identifiers, and variable values. The contract scenario of the loan case may be obtained through the product to which the loan case belongs. For example, the contract scenario may include a new car loan contract scenario, a second-hand car loan contract scenario, etc. The corresponding product may refer to loan products such as new car loans and second-hand car loans. The above-mentioned case attributes may include applicable institutions, guarantee methods, license plate types, borrower types, arbitration methods, signature keywords, and signature keywords, etc. The above-mentioned variable identifiers may be information such as names and amounts to distinguish different signatories (signatories) and agreed events, and the variable values ​​may be specific information corresponding to the variable identifiers. For example, the variable identifier is the amount, and the variable value is 5000.

[0035] S102, acquiring all contract templates associated with the contract scenario according to the contract scenario;

[0036] In an optional implementation, the applicable attributes of the contract template include applicable institution, guarantee method, license type, borrower type, arbitration method, signature keyword and seal keyword.

[0037] In some embodiments, the applicable attributes of the contract template correspond to the above-mentioned case attributes. The applicable institution can be obtained through the organizational structure, and the applicable institution can include a single institution or multiple institutions. The guarantee method includes one or more of credit, mortgage, and guarantee. The license type can include one or more of public license and private license. The borrower type can include one or more of the main lender, co-borrower, mortgagor, and guarantor. The arbitration method can include one or more of offline arbitration and online arbitration. The above-mentioned signature keyword can define the signature of the borrower type that needs to be specified in the contract and the location of the signature. The above-mentioned signature keyword can define the location where the company seal corresponding to the contract needs to be stamped. The applicable attributes of the contract template need to be configured in advance.

[0038] In an optional implementation, the contract text generation method further includes: constructing a contract template library, and associating the contract templates in the contract template library with contract scenarios.

[0039] In some embodiments, a contract variable library can be constructed, which includes a large number of variable identifiers. A contract template document (such as a doc document) of a contract template can be uploaded through a page, and the variable identifier of the contract template document can be identified and associated with the variable identifier in the contract variable library. If the identified variable identifier cannot be associated with the variable identifier in the contract variable library, it means that the variable identifier does not exist in the contract variable library, and it can be determined whether to add the variable identifier to the contract variable library.

[0040] In an optional implementation, associating the contract template in the contract template library with the contract scenario includes:

[0041] The contract templates in the contract template library are associated with the contract scenarios through an association table, and the association table includes a primary key id, a contract scenario code, a contract scenario configuration table id, a contract template configuration table id and a contract template number.

[0042] In some embodiments, the contract template configuration table may include a primary key id, a contract template number, a contract template name, and may also include a contract template signature keyword configuration table, a contract template seal keyword configuration table, a contract template variable identification table, and a contract template attribute (applicable attribute) configuration table, wherein the contract template signature keyword configuration table may include a primary key id, a template configuration table id, the contract template seal keyword configuration table may include a primary key id, a template configuration table id, the contract template variable identification table may include a primary key id, a template configuration table id, and the contract template attribute configuration table includes a primary key id, a template configuration table id. Attribute code value and attribute value, it should be noted that the primary key id in different tables may be different.

[0043] In some embodiments, the definition of contract scenarios can be implemented through interfaces, and contract scenarios can be associated with all contract templates, and contract scenarios can be associated with loan products. Different contract scenarios can have multiple different contract templates, and the same contract template can belong to different contract scenarios. All contract templates can be obtained through the template list interface, so as to select the contract template related to the contract scenario. The contract scenario configuration table can include information such as the primary key id, the contract scenario configuration table id, and the contract scenario name.

[0044] S103, judging whether the current contract template meets the attribute conditions according to the attributes of all the cases, and if so, using the current contract template as the initial contract text;

[0045] In some embodiments, it is determined whether the current contract template meets the attribute conditions based on all case attributes. If so, the current contract template is used as the initial contract text. In this way, all contract templates that meet the above conditions can be obtained, thereby obtaining all initial contract texts.

[0046] In an optional implementation, judging whether the current contract template satisfies the attribute condition according to the attributes of all the cases includes: judging whether the contract template satisfies the attribute condition according to the attributes of all the cases and using preset atomic logic.

[0047] The embodiment of the present invention determines whether a contract template satisfies an attribute condition by using all case attributes and preset atomic logic, and can quickly and accurately determine whether a contract template satisfies an attribute condition, thereby improving the generation efficiency and accuracy of the contract text.

[0048] In an optional implementation, judging whether the contract template meets the attribute condition based on the attributes of all the cases and using preset atomic logic includes:

[0049] Determine whether the case attribute is the same as the corresponding applicable attribute in the current contract template, or whether the case attribute is included in the corresponding applicable attribute in the current contract template. If so, the applicable attribute corresponding to the case attribute in the current contract template satisfies the attribute condition. If the applicable attributes corresponding to all the case attributes in the current contract template satisfy the attribute condition, then it is determined that the current contract template satisfies the attribute condition.

[0050] In some embodiments, corresponding to a loan case, it may include multiple case attributes, some case attributes need to be the same as the corresponding applicable attributes in the contract template, for example, arbitration method, etc., and some attributes only need to be included in the corresponding applicable attributes in the contract template, that is, the scope of the corresponding applicable attributes in the contract template is larger than the scope of the case attributes of the loan case, for example, applicable institutions, etc. The scope of the corresponding applicable institutions in the contract template is larger than the scope of the applicable institutions of the loan case.

[0051] In a specific embodiment, without loss of generality, if the first case attribute is the arbitration method, it is determined whether the first case attribute is the same as the corresponding applicable attribute in the first contract template. If so, the applicable attribute corresponding to the first case attribute in the first contract template satisfies the attribute condition (the applicable attribute corresponding to the first case attribute in the first contract template satisfies the attribute condition), if not, the applicable attribute corresponding to the first case attribute in the first contract template does not satisfy the attribute condition; if the first case attribute is the applicable institution, it is determined whether the first case attribute is included in the corresponding applicable attribute in the first contract template. If so, the applicable attribute corresponding to the first case attribute in the first contract template satisfies the attribute condition, if not, the applicable attribute corresponding to the first case attribute in the first contract template does not satisfy the attribute condition. By analogy, it is determined whether the applicable attributes corresponding to all case attributes in the first contract template satisfy the attribute condition. If so, it is determined that the first contract template satisfies the attribute condition, and then it is determined whether the applicable attributes corresponding to all case attributes in the second contract template satisfy the attribute condition, so that all contract templates that meet the attribute condition can be obtained and used as the initial contract text. Among them, multiple case attributes can include guarantee method, applicable institution, license type, etc.

[0052] S104, generating a target contract text according to the variable identifier of the loan case, the variable value of the loan case and the initial contract text.

[0053] In an optional implementation, generating a target contract text according to the variable identifier of the loan case, the variable value of the loan case and the initial contract text includes:

[0054] A variable identifier identical to the variable identifier of the loan case is parsed from the initial contract text as the selected variable identifier, and the variable value of the loan case is filled into the position corresponding to the selected variable identifier in the initial contract text to generate a target contract text.

[0055] In some embodiments, a variable identifier identical to the variable identifier according to the loan case is parsed from the initial contract text as the selected variable identifier, and the variable value of the loan case is filled into the position corresponding to the selected variable identifier in the initial contract text. For example, if the variable identifier identical to the variable identifier according to the loan case is the amount parsed from the initial contract text, the amount is used as the selected variable identifier, and the variable value of the loan case is 5000, then 5000 is filled into the position corresponding to the amount in the initial contract text, such as after the amount. The above-mentioned target contract text may be a contract text in PDF format.

[0056] The contract text generation method provided by the embodiment of the present invention obtains the contract scenario of a loan case, all case attributes of the loan case, the variable identifier of the loan case and the variable value of the loan case; obtains all contract templates associated with the contract scenario according to the contract scenario; determines whether the current contract template meets the attribute conditions according to all case attributes, and if so, uses the current contract template as the initial contract text; generates the target contract text according to the variable identifier of the loan case, the variable value of the loan case and the initial contract text; and can improve the efficiency and accuracy of contract text generation.

[0057] The contract text generation method provided by the embodiment of the present invention, through configurable management of contract scenarios, contract templates, applicable attributes, etc., can pre-prepare contracts in advance and save manpower and reduce error rates based on the flexible combination of multiple scenarios and multiple case attributes of different cases. It can also improve the efficiency and accuracy of contract generation without manual intervention.

[0058] The contract text generation method provided in the embodiment of the present invention can be constructed based on artificial intelligence, and relevant data can be acquired and processed based on artificial intelligence technology to realize unattended artificial intelligence contract text generation. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0059] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0060] The embodiment of the present invention provides a contract text generation device, and its structural diagram is as follows: Figure 2 As shown, the contract text generation device 20 includes an information acquisition module 21, a contract template acquisition module 22, an initial contract text acquisition module 23 and a target contract text acquisition module 24;

[0061] The information acquisition module 21 is used to acquire the contract scenario of the loan case, all case attributes of the loan case, the variable identifier of the loan case and the variable value of the loan case;

[0062] The contract template acquisition module 22 is used to acquire all contract templates associated with the contract scenario according to the contract scenario;

[0063] The initial contract text acquisition module 23 is used to determine whether the current contract template meets the attribute conditions according to the attributes of all the cases, and if so, use the current contract template as the initial contract text;

[0064] The target contract text acquisition module 24 is used to generate a target contract text according to the variable identifier of the loan case, the variable value of the loan case and the initial contract text.

[0065] In some embodiments, when generating a contract text for a loan case, a contract generation request may be obtained or received. The contract generation request may include information such as the product to which the loan case belongs, all case attributes, variable identifiers, and variable values. The contract scenario of the loan case may be obtained through the product to which the loan case belongs. For example, the contract scenario may include a new car loan contract scenario, a second-hand car loan contract scenario, etc. The corresponding product may refer to loan products such as new car loans and second-hand car loans. The above-mentioned case attributes may include applicable institutions, guarantee methods, license plate types, borrower types, arbitration methods, signature keywords, and signature keywords, etc. The above-mentioned variable identifiers may be information such as names and amounts to distinguish different signatories (signatories) and agreed events, and the variable values ​​may be specific information corresponding to the variable identifiers. For example, the variable identifier is the amount, and the variable value is 5000.

[0066] In an optional implementation, the applicable attributes of the contract template include applicable institution, guarantee method, license type, borrower type, arbitration method, signature keyword and seal keyword.

[0067] In some embodiments, the applicable attributes of the contract template correspond to the above-mentioned case attributes. The applicable institution can be obtained through the organizational structure, and the applicable institution can include a single institution or multiple institutions. The guarantee method includes one or more of credit, mortgage, and guarantee. The license type can include one or more of public license and private license. The borrower type can include one or more of the main lender, co-borrower, mortgagor, and guarantor. The arbitration method can include one or more of offline arbitration and online arbitration. The above-mentioned signature keyword can define the signature of the borrower type that needs to be specified in the contract and the location of the signature. The above-mentioned signature keyword can define the location where the company seal corresponding to the contract needs to be stamped. The applicable attributes of the contract template need to be configured in advance.

[0068] In an optional implementation, the initial contract text acquisition module 23 determines whether the current contract template meets the attribute conditions according to the attributes of all the cases, including: determining whether the contract template meets the attribute conditions according to the attributes of all the cases and using preset atomic logic.

[0069] In an optional embodiment, the initial contract text acquisition module 23 determines whether the contract template meets the attribute conditions based on all the case attributes and using preset atomic logic, including: determining whether the case attributes are the same as the corresponding applicable attributes in the current contract template, or whether the case attributes are included in the corresponding applicable attributes in the current contract template. If so, the applicable attributes corresponding to the case attributes in the current contract template meet the attribute conditions. If the applicable attributes corresponding to all the case attributes in the current contract template meet the attribute conditions, then it is determined that the current contract template meets the attribute conditions.

[0070] In an optional embodiment, the target contract text acquisition module 24 generates a target contract text based on the variable identifier of the loan case, the variable value of the loan case and the initial contract text, including: parsing the variable identifier that is identical to the variable identifier of the loan case from the initial contract text as the selected variable identifier, and filling the variable value of the loan case into the position in the initial contract text corresponding to the selected variable identifier to generate the target contract text.

[0071] In an optional implementation, the contract text generating device 20 further includes an associating module, which is used to construct a contract template library and associate the contract templates in the contract template library with the contract scenarios.

[0072] In an optional embodiment, the association module associates the contract templates in the contract template library with the contract scenarios, including: associating the contract templates in the contract template library with the contract scenarios through an association table, the association table including a primary key id, a contract scenario code, a contract scenario configuration table id, a contract template configuration table id and a contract template number.

[0073] An embodiment of the present invention provides an electronic device, a schematic diagram of the structure of which is shown in FIG. Figure 3 As shown, the electronic device 30 includes a processor 31 and a memory 32 that is communicatively connected to the processor 31 .

[0074] The memory 32 stores program instructions for implementing the contract text generation method of any of the above embodiments.

[0075] The processor 31 is used to execute program instructions stored in the memory 32 to generate a contract text.

[0076] The processor 31 may also be referred to as a CPU (Central Processing Unit). The processor 31 may be an integrated circuit chip having signal processing capabilities. The processor 31 may also be a general-purpose processor, 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. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0077] The embodiment of the present invention provides a computer-readable storage medium, and the storage medium of the embodiment of the present invention stores program instructions that can implement all the above methods, and the storage medium can be non-volatile or volatile. Among them, the program instructions can be stored in the above storage medium in the form of a software product, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes, or terminal devices such as computers, servers, mobile phones, tablets, etc.

[0078] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0079] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each module may exist physically separately, or two or more modules may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of a software functional unit. The above is only an implementation mode of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the specification and drawings of the present invention, or directly or indirectly used in other related technical fields, is also included in the patent protection scope of the present invention.

[0080] The above description is only an implementation mode of the present invention. It should be pointed out that, for ordinary technicians in this field, improvements can be made without departing from the creative concept of the present invention, but these all belong to the protection scope of the present invention.

Claims

1. A method for generating a contract text, characterized in that: include: Obtaining the contract scenario of the loan case, all case attributes of the loan case, the variable identifier of the loan case and the variable value of the loan case; Acquire all contract templates associated with the contract scenario according to the contract scenario; Determine whether the current contract template meets the attribute conditions according to the attributes of all the cases, and if so, use the current contract template as the initial contract text; A target contract text is generated according to the variable identifier of the loan case, the variable value of the loan case and the initial contract text.

2. The method for generating a contract text according to claim 1, characterized in that: The applicable attributes of the contract template include applicable institution, guarantee method, license type, borrower type, arbitration method, signature keyword and seal keyword.

3. The method for generating a contract text according to claim 2, characterized in that: Judging whether the current contract template meets the attribute conditions according to the attributes of all the cases includes: judging whether the current contract template meets the attribute conditions according to the attributes of all the cases and using preset atomic logic.

4. The method for generating a contract text according to claim 3, characterized in that: According to all the case attributes and using the preset atomic logic, it is determined whether the current contract template meets the attribute conditions, including: Determine whether the case attribute is the same as the corresponding applicable attribute in the current contract template, or whether the case attribute is included in the corresponding applicable attribute in the current contract template. If so, the applicable attribute corresponding to the case attribute in the current contract template satisfies the attribute condition. If the applicable attributes corresponding to all the case attributes in the current contract template satisfy the attribute condition, then it is determined that the current contract template satisfies the attribute condition.

5. The method for generating a contract text according to claim 1, characterized in that: Generate a target contract text according to the variable identifier of the loan case, the variable value of the loan case and the initial contract text, including: A variable identifier identical to the variable identifier of the loan case is parsed from the initial contract text as the selected variable identifier, and the variable value of the loan case is filled into the position corresponding to the selected variable identifier in the initial contract text to generate a target contract text.

6. The method for generating a contract text according to claim 1, characterized in that: The contract text generation method also includes: building a contract template library, and associating the contract templates in the contract template library with contract scenarios.

7. The method for generating a contract text according to claim 6, characterized in that: Associating the contract template in the contract template library with the contract scenario, including: The contract templates in the contract template library are associated with the contract scenarios through an association table, and the association table includes a primary key id, a contract scenario code, a contract scenario configuration table id, a contract template configuration table id and a contract template number.

8. A device for generating a contract text, characterized in that: It includes an information acquisition module, a contract template acquisition module, an initial contract text acquisition module and a target contract text acquisition module; The information acquisition module is used to acquire the contract scenario of the loan case, all case attributes of the loan case, the variable identifier of the loan case and the variable value of the loan case; The contract template acquisition module is used to acquire all contract templates associated with the contract scenario according to the contract scenario; The initial contract text acquisition module is used to determine whether the current contract template meets the attribute conditions according to the attributes of all the cases, and if so, use the current contract template as the initial contract text; The target contract text acquisition module is used to generate the target contract text according to the variable identifier of the loan case, the variable value of the loan case and the initial contract text.

9. An electronic device, comprising a memory and a processor, wherein the memory stores a computer program executable by the processor, wherein: When the processor executes the computer program, the contract text generation method as described in any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the contract text generation method as described in any one of claims 1 to 7 is implemented.