A contract generation method and device, electronic equipment and computer readable medium
By identifying the dynamically changing areas of the contract editing page and matching them with the business data pool, the problem of time-consuming and error-prone creation of customized contracts was solved, achieving efficient and accurate contract generation.
Patent Information
- Application Number
- CN202211371230.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-03
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2042-11-03
AI Technical Summary
In existing technologies, the creation of specialized contracts is time-consuming and prone to errors, failing to meet the efficiency and accuracy requirements of offline contract creation.
By receiving contract generation requests, identifying dynamically changing areas on the contract editing page, determining insertable variables, matching them with the business data pool, determining the target location for data insertion, and generating the target contract data.
It improved the efficiency and accuracy of contract preparation, met the rapid response needs of online and offline contract business, and enhanced customer satisfaction.
Smart Images

Figure CN115563942B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of big data data processing, and particularly relates to a contract generation method and device, electronic equipment and a computer readable medium. BACKGROUND
[0002] Due to local differences, some clauses of the contract need to be regionally specified, and the system-unified clauses cannot meet the needs. In order to meet the business needs, the existing contract templates cannot be directly used, or the contracts are made offline in word version, or the requirements are submitted to the development center for the contract templates to be customized, but the offline contract making in word version is time-consuming and prone to human errors, and is prone to operational risks.
[0003] In the process of implementing the present application, the inventors have found that at least the following problems exist in the prior art:
[0004] The offline contract making for meeting the needs of customized contract making is time-consuming and prone to errors. SUMMARY
[0005] Therefore, the embodiments of the present application provide a contract generation method and device, electronic equipment and a computer readable medium, which can solve the problem that the offline contract making for meeting the needs of customized contract making is time-consuming and prone to errors.
[0006] To achieve the above object, according to an aspect of the embodiments of the present application, a contract generation method is provided, comprising:
[0007] receiving a contract generation request, obtaining a corresponding contract identifier, and then jumping to a contract editing page corresponding to the contract identifier;
[0008] identifying a dynamic change area of the contract editing page, and then determining a corresponding insertable variable;
[0009] matching the insertable variable with a business data pool to obtain matched business data;
[0010] determining a target position of the insertable variable in the dynamic change area, and then inserting the business data into the corresponding target position to generate target contract data in the contract editing page and output.
[0011] Optionally, identifying the dynamic change area of the contract editing page comprises:
[0012] dividing the contract editing page into various data areas based on content similarity;
[0013] obtaining a target attribute value corresponding to a target attribute of each data area;
[0014] According to the target attribute value, a dynamic change area of a contract editing page is determined.
[0015] Optionally, the corresponding insertable variable is determined, including:
[0016] An to-be-filled field in the dynamic change area is obtained, and the to-be-filled field is determined as the insertable variable.
[0017] Optionally, the jump to the contract editing page corresponding to the contract identifier includes:
[0018] According to the contract identifier, a corresponding contract template is determined.
[0019] The jump is performed to the contract editing page corresponding to the contract template.
[0020] Optionally, the corresponding contract identifier is obtained, including:
[0021] The business identifier, the product type identifier and the contract type identifier in the contract generation request are obtained.
[0022] According to the business identifier, the product type identifier and the contract type identifier, the corresponding contract identifier is determined.
[0023] Optionally, the matched business data is obtained, including:
[0024] In response to a plurality of business data corresponding to the insertable variable in the business data pool, a priority of each corresponding business data is determined.
[0025] According to the priority, the business data matched with the insertable variable in each corresponding business data is determined.
[0026] Optionally, according to the priority, the business data matched with the insertable variable in each corresponding business data is determined, including:
[0027] Each corresponding business data is sorted based on the priority to obtain sorted business data.
[0028] A preset number of business data corresponding to the insertable variable is obtained from the sorted business data in sequence, and the business data matched with the insertable variable is determined.
[0029] In addition, the application also provides a contract generation device, including:
[0030] A receiving unit is configured to receive a contract generation request, obtain a corresponding contract identifier, and then jump to a contract editing page corresponding to the contract identifier.
[0031] An insertable variable determination unit is configured to identify a dynamic change area of a contract editing page, and then determine a corresponding insertable variable.
[0032] The matching unit is configured to match the insertable variable with the business data pool to obtain matched business data.
[0033] The contract generating unit is configured to determine a target position of the insertable variable in a dynamic change area, and then insert the business data into the corresponding target position to generate target contract data on the contract editing page and output.
[0034] Optionally, the insertable variable determining unit is further configured to:
[0035] The contract editing page is divided into data areas based on content similarity;
[0036] Obtain the target attribute value corresponding to the target attribute of each data area;
[0037] According to the target attribute value, determine the dynamic change area of the contract editing page.
[0038] Optionally, the insertable variable determining unit is further configured to:
[0039] Obtain the to-be-filled field in the dynamic change area, and determine the to-be-filled field as the insertable variable.
[0040] Optionally, the receiving unit is further configured to:
[0041] According to the contract identifier, determine the corresponding contract template;
[0042] Jump to the contract editing page corresponding to the contract template.
[0043] Optionally, the receiving unit is further configured to:
[0044] Obtain the business identifier, product type identifier and contract type identifier in the contract generation request;
[0045] According to the business identifier, product type identifier and contract type identifier, determine the corresponding contract identifier.
[0046] Optionally, the matching unit is further configured to:
[0047] In response to multiple business data corresponding to the insertable variable in the business data pool, determine the priority of each corresponding business data;
[0048] According to the priority, determine the business data matching the insertable variable in each corresponding business data.
[0049] Optionally, the matching unit is further configured to:
[0050] Sort each corresponding business data based on the priority to obtain sorted business data;
[0051] In sequence, a preset number of service data corresponding to the insertable variable is obtained from the sorted service data, and service data matching the insertable variable is determined.
[0052] In addition, the application further provides a contract generation electronic device, comprising: 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 contract generation method as described above.
[0053] In addition, the application further provides a computer readable medium, which stores a computer program, and the program is executed by a processor to implement the contract generation method as described above.
[0054] To achieve the above object, according to another aspect of the embodiments of the application, a computer program product is provided.
[0055] The computer program product of the embodiments of the application comprises a computer program, and the program is executed by a processor to implement the contract generation method provided by the embodiments of the application.
[0056] The above-mentioned embodiment of the application has the following advantages or beneficial effects: the application receives a contract generation request, obtains a corresponding contract identifier, and then jumps to a contract editing page corresponding to the contract identifier; a dynamic change area of the contract editing page is identified, and then a corresponding insertable variable is determined; the insertable variable is matched with a service data pool to obtain matched service data; a target position of the insertable variable in the dynamic change area is determined, and then the service data is inserted into the corresponding target position to generate target contract data in the contract editing page and output. Thus, the efficiency and accuracy of contract making are improved.
[0057] The further effects of the above-mentioned non-conventional optional mode will be described in the following combined with the specific embodiments. BRIEF DESCRIPTION OF DRAWINGS
[0058] The accompanying drawings serve to better understand the application and do not constitute an improper limitation on the application. Among them:
[0059] Figure 1 is a schematic diagram of the main process of the contract generation method according to an embodiment of the application;
[0060] Figure 2 is a schematic diagram of the main process of the contract generation method according to an embodiment of the application;
[0061] Figure 3 is a schematic diagram of the main process of the contract generation method according to an embodiment of the application;
[0062] Figure 4is a schematic diagram of an application scenario of a contract generation method according to an embodiment of the present application;
[0063] Figure 5 is a schematic diagram of main units of a contract generation apparatus according to an embodiment of the present application;
[0064] Figure 6 is an exemplary system architecture diagram in which embodiments of the present application can be applied;
[0065] Figure 7 is a structural schematic diagram of a computer system of a terminal device or a server suitable for implementing embodiments of the present application. DETAILED DESCRIPTION
[0066] Exemplary embodiments of the present application are described below with reference to the accompanying drawings, which include various details of the embodiments of the present application to assist in understanding, and should be considered as merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Also, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description. It should be noted that in the technical solutions of the present application, the collection, analysis, use, transmission, storage, etc. of user personal information involved in the technical solutions comply with relevant legal regulations, are used for legal and reasonable purposes, are not shared, disclosed or sold outside these legal uses, and are subject to supervision and management by regulatory authorities. Necessary measures should be taken for user personal information to prevent illegal access to such personal information data, to ensure that personnel with access to personal information data comply with relevant legal regulations, and to ensure the security of user personal information. Once these user personal information data are no longer needed, the risk should be minimized by limiting or even prohibiting data collection and / or deleting data.
[0067] When used, including in certain related applications, user privacy is protected by de-identifying data, such as by removing specific identifiers, controlling the amount or specificity of data stored, controlling how data is stored, and / or other methods of de-identifying.
[0068] Figure 1 is a schematic diagram of the main process of a contract generation method according to an embodiment of the present application, as shown in Figure 1 The contract generation method includes:
[0069] Step S101, receiving a contract generation request, obtaining a corresponding contract identifier, and then jumping to a contract editing page corresponding to the contract identifier.
[0070] In this embodiment, the execution subject of the contract generation method (for example, can be a server) can receive a contract generation request through wired connection or wireless connection. Specifically, the corresponding contract identifier is obtained, including: obtaining the business identifier, product type identifier and contract type identifier in the contract generation request; determining the corresponding contract identifier according to the business identifier, product type identifier and contract type identifier.
[0071] The corresponding contract identifier is determined by the business type, product type and contract type corresponding to the contract generation request. Specifically, the contract identifier can be a contract number. The contract number can be associated with the corresponding contract editing page through a hyperlink, for example, a hyperlink is set on the contract number, and the user clicks the hyperlink. The execution subject responds to the operation of clicking the hyperlink, and then jumps to the corresponding contract editing page to edit the corresponding contract.
[0072] As another implementation manner of the embodiment of the present application, jumping to the contract editing page corresponding to the contract identifier includes: determining the corresponding contract template according to the contract identifier; jumping to the contract editing page corresponding to the contract template. Each contract identifier can represent a type of contract, and the contract template corresponding to the contract type corresponding to the contract identifier can be obtained through the contract identifier. When the execution subject responds to the obtained contract identifier, it can directly jump to the contract template corresponding to the contract type corresponding to the contract identifier to edit the contract.
[0073] Step S102, identifying the dynamic change area of the contract editing page, and determining the corresponding insertable variable.
[0074] Specifically, in the embodiment of the present application, the execution subject can judge whether it is a dynamic change area by detecting whether there is a formula with variable parameters in the contract editing page. If there is a formula with variable parameters in the contract editing page, the area where the formula is located is determined as the dynamic change area.
[0075] Specifically, determining the corresponding insertable variable includes:
[0076] Obtaining the to-be-filled field in the dynamic change area, and determining the to-be-filled field as the insertable variable.
[0077] The execution subject can detect all fields in the dynamic change area, filter out the field without corresponding field value from all fields, and determine the field without corresponding field value as the to-be-filled field. The to-be-filled field is determined as the insertable variable.
[0078] Step S103, matching the insertable variable with the business data pool to obtain the matched business data.
[0079] The business data pool can be a data pool composed of preset field values. The execution subject can match the to-be-filled field corresponding to the insertable variable with each field value in the data pool composed of preset field values to find a matched field value, and the matched field value is the business data matched with the insertable variable.
[0080] In step S104, the target position of the insertable variable in the dynamic change area is determined, and the business data is inserted into the corresponding target position to generate target contract data on the contract editing page and output.
[0081] After determining the insertable variable, the execution subject can mark the insertable variable, and then call a position tracking program to locate the position of each marked insertable variable in the dynamic change area as the target position. The determined business data matched with the insertable variable (for example, a) is inserted into the target position corresponding to the insertable variable (for example, a), and the corresponding target contract data is generated on the contract editing page. After generating the target contract data, it can be output to the terminal that submitted the contract generation request for use.
[0082] The embodiment receives a contract generation request, obtains a corresponding contract identifier, and then jumps to a contract editing page corresponding to the contract identifier. The dynamic change area of the contract editing page is identified, and the corresponding insertable variable is determined. The insertable variable is matched with a business data pool to obtain matched business data. The target position of the insertable variable in the dynamic change area is determined, and the business data is inserted into the corresponding target position to generate target contract data on the contract editing page and output. Thus, the efficiency and accuracy of contract production are improved.
[0083] Figure 2 is the main flow diagram of the contract generation method according to an embodiment of the present application, as shown in Figure 2 The contract generation method includes:
[0084] In step S201, a contract generation request is received, a corresponding contract identifier is obtained, and then a contract editing page corresponding to the contract identifier is jumped to.
[0085] The contract generation request can be a request for generation of various types of contracts. The contract identifier, for example, can be a contract number. The contract number can be used to represent the type of contract, whether it is a private contract or a public contract.
[0086] In step S202, the contract editing page is regionally divided based on content similarity to obtain each data region.
[0087] The content of the contract editing page is clustered based on similarity. Specifically, the content of the contract editing page is converted into content vectors through word embedding, and then the similarity between the content vectors is calculated. Specifically, the content of the contract editing page is converted into content vectors through word embedding, including: differentiating the content of the contract editing page into multiple small content blocks, and calculating the content vector corresponding to each small content block through word embedding.
[0088] In step S203, the target attribute value corresponding to the target attribute of each data region is obtained.
[0089] Specifically, the target attribute can be, for example, an href attribute, and the attribute value corresponding to the href attribute can include an IP address and an attribute.
[0090] In step S204, the dynamic change region of the contract editing page is determined according to the target attribute value.
[0091] Specifically, the href attribute, if href=IP address, this subpage is a static web page, if href=attribute, this subpage is a dynamic web page (href=attribute, this attribute needs to be loaded through js, js can make the page become a dynamic page, so the page loaded through js is a dynamic page). Therefore, the region in the contract editing page corresponding to the attribute as the target attribute value is determined as the dynamic change region of the contract editing page.
[0092] In step S205, the corresponding insertable variable is determined.
[0093] When the execution subject determines the dynamic change region in the contract editing page, the field or blank position of the unfilled field value in the dynamic change region can be obtained as the insertable variable.
[0094] In step S206, the insertable variable is matched with the business data pool to obtain the matched business data.
[0095] Through the mapping relationship between the insertable variable and the preset business data, the insertable variable is matched with each business data in the business data pool to obtain the business data having a mapping relationship with the insertable variable, which is further used as the business data matched with the insertable variable.
[0096] In step S207, the target position of the insertable variable in the dynamic change region is determined, and then the business data is inserted into the corresponding target position to generate target contract data in the contract editing page and output.
[0097] The execution subject can obtain a position range of the insertable variable in the dynamic change area, determine each position in the position range as a target position. The execution subject can insert the business data into each target position and show the insertion effect of the business data, obtain a score of each insertion effect given by the user, generate target contract data according to each score and output.
[0098] Specifically, generating the target contract data according to each score includes:
[0099] Ranking each score, and generating the target contract data according to the insertion effect with the highest score. Thus, the target contract data with high user satisfaction can be generated, and the contract generation efficiency is accelerated while the user experience is improved.
[0100] Figure 3 is a main flow diagram of a contract generation method according to an embodiment of the present application, as Figure 3 shown, the contract generation method includes:
[0101] Step S301, receiving a contract generation request, obtaining a corresponding contract identifier, and then jumping to a contract editing page corresponding to the contract identifier.
[0102] The contract generation request may be, for example, a request for dynamically generating contract data with changes over time and updates of preset field values. The contract generation request may directly carry a contract identifier, which may be a contract number input by the user, and the contract number may represent the type of the contract.
[0103] Step S302, dividing the contract editing page into regions based on content similarity to obtain each data region.
[0104] The execution subject can divide the contract editing page into regions based on the content similarity corresponding to the preset dimension. The preset dimension includes, for example, format, font, font size, color, etc., and the present application does not make specific limitations on the preset dimension.
[0105] Step S303, obtaining a target attribute value corresponding to a target attribute of each data region.
[0106] The target attribute may be, for example, an href attribute. According to the attribute value (i.e., the target attribute value) corresponding to the attribute, it can be determined whether the corresponding region is a dynamic change region.
[0107] Step S304, determining a dynamic change region of the contract editing page according to the target attribute value.
[0108] If the href=IP address, this sub-page is a static web page, if the href= attribute, this sub-page is a dynamic web page (href= attribute, this attribute needs to be loaded through js, js can make the page become a dynamic page, so the page loaded through js is a dynamic page). Therefore, when the target attribute value is attribute (i.e. needs to be loaded through js), the area in the contract editing page corresponding to the attribute is determined as the dynamic change area of the contract editing page.
[0109] Step S305, determine the corresponding insertable variable.
[0110] The field or blank field in the dynamic change area with an unfilled field value is taken as the insertable variable.
[0111] Step S306, match the insertable variable with the business data pool, and determine the priority of each corresponding business data in response to the fact that there are multiple business data corresponding to the insertable variable in the business data pool.
[0112] According to the mapping relationship, when the execution subject determines that there are more than one business data corresponding to the insertable variable in the business data pool, for example, A, B, C, the priority of A, B, C can be determined, for example, B, A, C
[0113] Step S307, determine the business data corresponding to the insertable variable in each corresponding business data according to the priority.
[0114] The business data with the highest priority, for example, B, is determined as the business data corresponding to the insertable variable.
[0115] Specifically, determining the business data corresponding to the insertable variable in each corresponding business data according to the priority comprises:
[0116] Based on the priority, each corresponding business data is sorted to obtain sorted business data, for example, B, A, C;
[0117] A preset number of business data corresponding to the insertable variable are sequentially obtained from the sorted business data, wherein the preset number may be two, for example, and the business data corresponding to the insertable variable are determined, for example, two business data are sequentially obtained, which are B and A.
[0118] Step S308, determine the target position of the insertable variable in the dynamic change area, and then insert the business data into the corresponding target position to generate target contract data in the contract editing page and output.
[0119] The execution subject can show a preview effect of inserting the business data corresponding to the insertable variable at the target position, and determine which preview effect is used to generate the target contract data by obtaining feedback information of the preview effect. Specifically, the feedback information can include scores, evaluation texts, etc., and the embodiments of the present application do not make specific limitations on the feedback information.
[0120] The embodiments of the present application solve the defects of traditional Word data filling in contract generation, are more accurate and adaptive to different templates, greatly improve the editing efficiency, can meet online and offline contract business at the same time, can quickly respond to business needs to solve the pain points of business contract production, and thus improve customer satisfaction.
[0121] Figure 4 is a schematic diagram of an application scenario of a contract generation method according to an embodiment of the present application. The contract generation method of the embodiments of the present application is applied to a contract dynamic generation scenario. Contract template: is to synthesize variable information such as borrower, lender, loan information, and contract text information, and make according to the contract format (XSL, HTML, PDF) to be generated. Variable library: refers to variable information such as borrower, lender, loan information (interest rate, term, loan amount, etc.) in the contract, and forms a library for contract makers. Visual editing: is one of the functional modules of the contract system, which can edit the contract text table content like Microsoft Word, and the parameter variables of the contract only need to be selected and placed in the required position in the variable library to generate the corresponding contract template. Contract dynamic generation is to realize visual operation and efficient editing of business personnel. A contract is composed of contract template content and business data, and the contract generation method of the embodiments of the present application includes visual editing of contract text content; extracting the part that needs to be dynamically changed in the contract to form an insertable variable; according to the correspondence between the variable name and the business data name, the corresponding business data is obtained and filled into the variable position. For example Figure 4As shown, taking the loan contract generation as an example, first, a contract template is made, a user creates a contract on a contract making page, configures template basic information (including template name, template type, etc.), and after the configuration is completed, enters a template content editing page, and inputs contract text content in a template editor. Then, contract variable insertion is performed, when the user edits the text content, some contents that need to be dynamically input can be reserved, a variable corresponding to the content is selected from a variable library and inserted, or set as an editable blank field. Then, contract generation is performed, when the contract is generated, user loan basic information (such as loan type, product type, etc.) and required contract types are obtained, and a corresponding contract template is matched; variables existing in the template and business data in the loan information are obtained, according to a mapping relationship that has been set between variable identifiers and business data identifiers, business data corresponding to the business is obtained from a business system, and is filled into a position of the corresponding variable, and then corresponding contract data is generated. When the contract is generated, the corresponding contract template can be automatically matched according to the business data, and the business data can be more accurately filled, so that some data misplacement problems that occur in the original contract can be avoided, and the user needs to constantly modify the contract.
[0122] In the embodiment of the application, the execution subject can also maintain the contract variable in time. The contract variable maintenance can be divided into basic information maintenance and corresponding relationship maintenance, the user collates the fields that need to be dynamically filled when making the contract, that is, the contract variable, and the technical personnel correspond the fields to the business system data, maintain them in the system, and provide them for the user to use; the basic information of the variable, such as variable name and insertion position, can be parameterized, and adjusted by the user at any time. Through the visual editing function, according to the contract content that has been audited and passed, the text and tables in the visual editor are copied and pasted without secondary editing, and the variable parameters are added at the corresponding positions, which can be obtained visually, efficiently and conveniently.
[0123] Figure 5 is a schematic diagram of main units of a contract generation device according to an embodiment of the application. As shown in Figure 5 The contract generation device 500 includes a receiving unit 501, a insertable variable determination unit 502, a matching unit 503, and a contract generation unit 504.
[0124] The receiving unit 501 is configured to receive a contract generation request, obtain a corresponding contract identifier, and then jump to a contract editing page corresponding to the contract identifier;
[0125] The insertable variable determination unit 502 is configured to identify a dynamic change area of the contract editing page, and then determine a corresponding insertable variable;
[0126] The matching unit 503 is configured to match the insertable variable with a business data pool to obtain matched business data;
[0127] The contract generation unit 504 is configured to determine a target position of the insertable variable in the dynamic change region, and then insert the business data into the corresponding target position to generate target contract data on the contract editing page and output.
[0128] In some embodiments, the insertable variable determination unit 502 is further configured to: divide the contract editing page into various data regions based on content similarity; obtain a target attribute value corresponding to a target attribute of each data region; and determine a dynamic change region of the contract editing page according to the target attribute value.
[0129] In some embodiments, the insertable variable determination unit 502 is further configured to: obtain a to-be-filled field in the dynamic change region, and determine the to-be-filled field as the insertable variable.
[0130] In some embodiments, the receiving unit 501 is further configured to: determine a corresponding contract template according to the contract identifier; and jump to a contract editing page corresponding to the contract template.
[0131] In some embodiments, the receiving unit 501 is further configured to: obtain a business identifier, a product type identifier, and a contract type identifier in the contract generation request; and determine a corresponding contract identifier according to the business identifier, the product type identifier, and the contract type identifier.
[0132] In some embodiments, the matching unit 503 is further configured to: in response to a plurality of business data corresponding to the insertable variable in the business data pool, determine a priority of each corresponding business data; and determine the business data corresponding to the insertable variable from each corresponding business data according to the priority.
[0133] In some embodiments, the matching unit 503 is further configured to: sort each corresponding business data based on the priority to obtain sorted business data; and sequentially obtain a preset number of business data corresponding to the insertable variable from the sorted business data to determine the business data corresponding to the insertable variable.
[0134] It should be noted that the contract generation method and the contract generation apparatus of the present application have a corresponding relationship in the specific implementation content, and therefore repeated content will not be described.
[0135] Figure 6 An exemplary system architecture 600 to which the contract generation method or the contract generation apparatus of the embodiments of the present application can be applied is shown.
[0136] As Figure 6As shown, the system architecture 600 can include terminal devices 601, 602, 603, a network 604 and a server 605. The network 604 is a medium for providing communication links between the terminal devices 601, 602, 603 and the server 605. The network 604 can include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0137] The user can use the terminal devices 601, 602, 603 to interact with the server 605 through the network 604 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 601, 602, 603, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0138] The terminal devices 601, 602, 603 can be various electronic devices with contract generation processing screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers and desktop computers, etc.
[0139] The server 605 can be a server providing various services, such as a background management server supporting the contract generation request submitted by the user using the terminal devices 601, 602, 603 (only as an example). The background management server can receive the contract generation request, obtain the corresponding contract identifier, and then jump to the contract editing page corresponding to the contract identifier; identify the dynamic change area of the contract editing page, and then determine the corresponding insertable variable; match the insertable variable with the business data pool to obtain the matched business data; determine the target position of the insertable variable in the dynamic change area, and then insert the business data into the corresponding target position to generate target contract data on the contract editing page and output. Thus, the efficiency and accuracy of contract making are improved.
[0140] It should be noted that the contract generation method provided by the embodiments of the present application is generally executed by the server 605, and correspondingly, the contract generation apparatus is generally provided in the server 605.
[0141] It should be understood that Figure 6 The number of terminal devices, networks and servers in the above system architecture is only illustrative. According to the implementation needs, there can be any number of terminal devices, networks and servers.
[0142] The following refers to Figure 7 which shows a structural schematic diagram of a computer system 700 of a terminal device suitable for implementing the embodiments of the present application. Figure 7 The terminal device shown is only an example and should not impose any limitation on the functions and use range of the embodiments of the present application.
[0143] AsFigure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701 which can perform various appropriate actions and processes in accordance with programs stored in a read only memory (ROM) 702 or loaded from a storage section 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the computer system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0144] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a display device such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as necessary. A removable recording medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is attached to the drive 710 as necessary, so that a computer program read therefrom is installed into the storage section 708 as necessary.
[0145] In particular, according to the embodiments of the present application, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, the embodiments of the present application include a computer program product comprising a computer program carried on a computer readable medium, the computer program containing program codes for executing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network by the communication section 709, and / or installed from the removable recording medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-described functions defined in the system of the present application are executed.
[0146] Note that the computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium or a combination thereof. The computer-readable storage medium can include, for example, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the computer-readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, the computer-readable storage medium can be any tangible medium that contains or stores a program used by an instruction execution system, apparatus, or device to function according to the program. In the present application, the computer-readable signal medium can include a computer-readable storage medium or any computer-readable medium that transmits, propagates, or transfers programs used by an instruction execution system, apparatus, or device to function according to the programs. The program code contained in the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber, RF, etc., or any suitable combination of the foregoing.
[0147] The flow diagrams and block diagrams in the drawings are schematic illustrations of possible architectures, functions, and operations of systems, methods, and computer program products in accordance with various embodiments of the present application. In this regard, each block in the flow diagrams or block diagrams can represent a module, a segment, or a portion of code, which comprises one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently or in the reverse order, depending on the functionality involved. It will also be noted that each block of the block diagrams or flow diagrams, and combinations of blocks in the block diagrams or flow diagrams, can be implemented by special purpose hardware-based systems that perform the specified functions or operations, or combinations of special purpose hardware and computer instructions.
[0148] The units described in the embodiments of the present application can be implemented in the form of software, or can be implemented in the form of hardware. The described units can also be arranged in a processor, for example, a processor can be described as including a receiving unit, an insertable variable determining unit, a matching unit and a contract generating unit. In some cases, the names of these units do not constitute a limitation on the units themselves.
[0149] As another aspect, the present application also provides a computer readable medium, which can be included in the device described in the above embodiments, or can exist independently without being assembled into the device. The computer readable medium carries one or more programs, which, when executed by the device, cause the device to receive a contract generation request, obtain a corresponding contract identifier, and then jump to a contract editing page corresponding to the contract identifier; identify a dynamic change area of the contract editing page, and then determine a corresponding insertable variable; match the insertable variable with a business data pool to obtain matched business data; determine a target position of the insertable variable in the dynamic change area, and then insert the business data into the corresponding target position to generate target contract data in the contract editing page and output. Thus, the efficiency and accuracy of contract making are improved.
[0150] The computer program product of the present application includes a computer program, which, when executed by a processor, implements the contract generation method in the embodiments of the present application.
[0151] According to the technical solutions of the embodiments of the present application, the efficiency and accuracy of contract making can be improved.
[0152] The above specific embodiments do not constitute a limitation on the protection scope of the present application. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions can be made depending on design requirements and other factors. Any modification, equivalent replacement and improvement made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A contract generation method characterized by, The method comprises the following steps: receiving a contract generation request, obtaining a corresponding contract identifier, and then jumping to a contract editing page corresponding to the contract identifier; identifying a dynamic change area of the contract editing page, which comprises: dividing the contract editing page into various data areas based on content similarity to obtain target attribute values corresponding to target attributes of the various data areas; and determining the dynamic change area of the contract editing page according to the target attribute values; then determining a corresponding insertable variable; matching the insertable variable with a business data pool to obtain matched business data; determining a target position of the insertable variable in the dynamic change area, and then inserting the business data into the corresponding target position to generate target contract data on the contract editing page and output the target contract data.
2. The method of claim 1, wherein, The determination of the corresponding insertable variable comprises: obtaining a to-be-filled field in the dynamic change area, and determining the to-be-filled field as an insertable variable.
3. The method of claim 1, wherein, The jumping to the contract editing page corresponding to the contract identifier comprises: determining a corresponding contract template according to the contract identifier; and jumping to a contract editing page corresponding to the contract template. The obtaining of the corresponding contract identifier comprises:
4. The method of claim 1, wherein, obtaining a business identifier, a product type identifier, and a contract type identifier in the contract generation request; and determining a corresponding contract identifier according to the business identifier, the product type identifier, and the contract type identifier. The obtaining of the matched business data comprises: determining a priority of each corresponding business data in the business data pool in response to a plurality of corresponding business data in the business data pool; and determining business data matched with the insertable variable in each corresponding business data according to the priority.
5. The method of claim 1, wherein, The determination of the business data matched with the insertable variable in each corresponding business data according to the priority comprises: sorting each corresponding business data based on the priority to obtain sorted business data; and sequentially obtaining a preset number of business data corresponding to the insertable variable from the sorted business data to determine the business data matched with the insertable variable. The method comprises the following steps:
6. The method of claim 5, wherein, a receiving unit configured to receive a contract generation request, obtain a corresponding contract identifier, and then jump to a contract editing page corresponding to the contract identifier; an insertable variable determination unit configured to identify a dynamic change area of the contract editing page and then determine a corresponding insertable variable; a matching unit configured to match the insertable variable with a business data pool to obtain matched business data; 7. A contract generating apparatus characterized by comprising: a contract generation unit configured to determine a target position of the insertable variable in the dynamic change area, and then insert the business data into the corresponding target position to generate target contract data on the contract editing page and output the target contract data. The insertable variable determination unit is further configured to: divide the contract editing page into data regions based on content similarity to obtain respective data regions; obtain a target attribute value corresponding to a target attribute of the respective data regions; and determine a dynamic change region of the contract editing page according to the target attribute value.
8. The apparatus of claim 7, wherein, The insertable variable determination unit is further configured to: obtain a to-be-filled field in the dynamic change region, and determine the to-be-filled field as an insertable variable.
9. The apparatus of claim 7, wherein, The receiving unit is further configured to: determine a corresponding contract template according to the contract identifier; jump to a contract editing page corresponding to the contract template.
10. The apparatus of claim 7, wherein, The receiving unit is further configured to: obtain a business identifier, a product type identifier, and a contract type identifier in the contract generation request; determine a corresponding contract identifier according to the business identifier, the product type identifier, and the contract type identifier.
11. The apparatus of claim 7, wherein, The matching unit is further configured to: determine a priority of each corresponding business data corresponding to the insertable variable in response to a plurality of corresponding business data in a business data pool; determine business data corresponding to the insertable variable in each corresponding business data according to the priority.
12. An electronic contract generation device, comprising: comprise: one or more processors; a memory 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 of any one of claims 1-6.
13. A computer readable medium having stored thereon a computer program, characterized in that The program is executed by the processor to implement the method of any one of claims 1-6.
14. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to implement the method of any one of claims 1-6.
Citation Information
Patent Citations
Automatic contract generation method and device, server, medium and product
CN114091415A