CN115563942A - Contract generation method and device, electronic equipment and computer readable medium - Google Patents

Contract generation method and device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN115563942A
CN115563942A CN202211371230.XA CN202211371230A CN115563942A CN 115563942 A CN115563942 A CN 115563942A CN 202211371230 A CN202211371230 A CN 202211371230A CN 115563942 A CN115563942 A CN 115563942A
Authority
CN
China
Prior art keywords
contract
determining
service data
identifier
variable
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211371230.XA
Other languages
Chinese (zh)
Inventor
施雅峰
王伟
曾欣
杨楠
谢博文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202211371230.XA priority Critical patent/CN115563942A/en
Publication of CN115563942A publication Critical patent/CN115563942A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a contract generation method, a contract generation device, electronic equipment and a computer readable medium, which relate to the technical field of big data processing.A specific implementation mode comprises the steps of receiving a contract generation request, acquiring a corresponding contract identifier and then jumping to a contract editing page corresponding to the contract identifier; identifying a dynamic change area of a contract editing page, and further determining a corresponding pluggable variable; matching the pluggable variable with the service data pool to obtain matched service data; and determining the target position of the insertable variable in the dynamic change area, and further inserting the service data into the corresponding target position so as to generate and output target contract data on a contract editing page. Thereby improving the efficiency and accuracy of contract making.

Description

Contract generation method and device, electronic equipment and computer readable medium
Technical Field
The present application relates to the field of big data processing technologies, and in particular, to a contract generation method and apparatus, an electronic device, and a computer-readable medium.
Background
Due to local differences, the terms of the same part need to be distinguished and distinguished, and the uniform terms of the system cannot meet the requirements. In order to meet the business requirements, the existing contract template cannot be directly used, or an offline word version is adopted to make a contract, or the requirement is submitted to a development center to perform distinctive transformation on the contract template, but the offline word version contract making is time-consuming, easy to cause human errors and omissions, and easy to generate operation risks.
In the process of implementing the present application, the inventor finds that at least the following problems exist in the prior art:
the offline contract making adopted to meet the requirements of the featured contract making is time-consuming and easy to cause errors.
Disclosure of Invention
In view of this, embodiments of the present application provide a contract generating method, an apparatus, an electronic device, and a computer readable medium, which can solve the problem that the existing offline contract making adopted to meet the requirement of the featured contract making is time-consuming and prone to errors.
To achieve the above object, according to an aspect of the embodiments of the present application, there is provided a contract generating method including:
receiving a contract generation request, acquiring a corresponding contract identifier, and then jumping to a contract editing page corresponding to the contract identifier;
identifying a dynamic change area of a contract editing page, and further determining a corresponding pluggable variable;
matching the pluggable variable with the service data pool to obtain matched service data;
and determining the target position of the insertable variable in the dynamic change area, and further inserting the service data into the corresponding target position so as to generate and output target contract data on a contract editing page.
Optionally, identifying a dynamically changing area of the contract edit page includes:
performing region division on the same editing page based on the content similarity to obtain each data region;
acquiring a target attribute value corresponding to the target attribute of each data area;
and determining a dynamic change area of the contract editing page according to the target attribute value.
Optionally, determining the corresponding insertable variable comprises:
and acquiring a field to be filled in the dynamic change area, and determining the field to be filled as an insertable variable.
Optionally, jumping to a contract editing page corresponding to the contract identifier includes:
determining a corresponding contract template according to the contract identifier;
skipping to a contract editing page corresponding to the contract template.
Optionally, obtaining a corresponding contract identifier includes:
acquiring a service identifier, a product type identifier and a contract type identifier in a contract generation request;
and determining a corresponding contract identifier according to the service identifier, the product type identifier and the contract type identifier.
Optionally, obtaining the matched service data includes:
responding to a plurality of service data corresponding to the pluggable variable in the service data pool, and determining the priority of each corresponding service data;
and determining the business data matched with the insertable variables in each corresponding business data according to the priority.
Optionally, determining, according to the priority, service data matched with the insertable variable in each corresponding service data includes:
sequencing each corresponding service data based on the priority to obtain sequenced service data;
and sequentially acquiring a preset number of service data corresponding to the insertable variables from the sequenced service data, and further determining the service data matched with the insertable variables.
In addition, the present application also provides a contract generating apparatus, including:
the receiving unit is configured to receive the contract generation request, acquire the 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 dynamically changing region of the contract edit page, thereby determining a corresponding insertable variable;
the matching unit is configured to match the pluggable variable with the business data pool to obtain matched business data;
and the contract generating unit is configured to determine a target position of the insertable variable in the dynamic change area, and further insert the business data into the corresponding target position so as to generate and output target contract data on a contract editing page.
Optionally, the insertable variable determination unit is further configured to:
performing region division on the same editing page based on the content similarity to obtain each data region;
acquiring a target attribute value corresponding to the target attribute of each data area;
and determining a dynamic change area of the contract editing page according to the target attribute value.
Optionally, the insertable variable determination unit is further configured to:
and acquiring a field to be filled in the dynamic change area, and determining the field to be filled as an insertable variable.
Optionally, the receiving unit is further configured to:
determining a corresponding contract template according to the contract identifier;
skipping to a contract editing page corresponding to the contract template.
Optionally, the receiving unit is further configured to:
acquiring a service identifier, a product type identifier and a contract type identifier in a contract generation request;
and determining a corresponding contract identifier according to the service identifier, the product type identifier and the contract type identifier.
Optionally, the matching unit is further configured to:
responding to a plurality of service data corresponding to the pluggable variable in the service data pool, and determining the priority of each corresponding service data;
and determining the business data matched with the insertable variables in each corresponding business data according to the priority.
Optionally, the matching unit is further configured to:
sequencing each corresponding service data based on the priority to obtain sequenced service data;
and sequentially acquiring a preset number of service data corresponding to the insertable variables from the sequenced service data, and further determining the service data matched with the insertable variables.
In addition, the present application also provides a contract generation electronic device, including: one or more processors; a storage device for storing one or more programs which, when executed by one or more processors, cause the one or more processors to implement the contract generation method as described above.
In addition, the present application also provides a computer-readable medium on which a computer program is stored, which when executed by a processor, implements the contract generation method as described above.
To achieve the above object, according to still another aspect of embodiments of the present application, there is provided a computer program product.
A computer program product according to an embodiment of the present application includes a computer program, and when the computer program is executed by a processor, the computer program implements the contract generating method according to an embodiment of the present application.
One embodiment of the above invention has the following advantages or benefits: the method comprises the steps of 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 a contract editing page, and further determining a corresponding pluggable variable; matching the pluggable variable with the service data pool to obtain matched service data; and determining the target position of the insertable variable in the dynamic change area, and further inserting the service data into the corresponding target position so as to generate and output target contract data on a contract editing page. Thereby improving the efficiency and accuracy of contract making.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a further understanding of the application and are not to be construed as limiting the application. Wherein:
FIG. 1 is a schematic illustration of a main flow of a contract generation method according to one embodiment of the present application;
FIG. 2 is a schematic diagram of the main flow of a contract generation method according to one embodiment of the present application;
FIG. 3 is a schematic main flow diagram of a contract generation method according to one embodiment of the present application;
FIG. 4 is a schematic diagram of an application scenario of a contract generation method according to an embodiment of the present application;
FIG. 5 is a schematic diagram of the major elements of a contract generation apparatus according to an embodiment of the present application;
FIG. 6 is an exemplary system architecture diagram to which embodiments of the present application may be applied;
fig. 7 is a schematic structural diagram of a computer system suitable for implementing the terminal device or the server according to the embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness. It should be noted that, in the technical solution of the present application, the aspects of collecting, analyzing, using, transmitting, storing, etc. of the related user personal information all conform to the regulations of relevant laws and regulations, are used for legal and reasonable purposes, are not shared, leaked or sold outside the aspects of legal use, etc., and are under the supervision and management of the supervision department. Necessary measures should be taken for the personal information of the user to prevent illegal access to such personal information data, ensure that personnel who have access to the personal information data comply with the regulations of relevant laws and regulations, and ensure the security of the personal information of the user. 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.
User privacy is protected by de-identifying data when used, including in certain related applications, such as by removing specific identifiers, controlling the amount or specificity of stored data, controlling how data is stored, and/or other methods of de-identifying when used.
Fig. 1 is a schematic diagram of a main flow of a contract generating method according to an embodiment of the present application, and as shown in fig. 1, the contract generating method includes:
step S101, receiving a contract generation request, acquiring a corresponding contract identifier, and then jumping to a contract editing page corresponding to the contract identifier.
In this embodiment, the execution subject (for example, a server) of the contract generation method may receive the contract generation request by means of wired connection or wireless connection. Specifically, acquiring a corresponding contract identifier includes: acquiring a service identifier, a product type identifier and a contract type identifier in a contract generation request; and determining a corresponding contract identifier according to the service identifier, the product type identifier and the contract type identifier.
And determining the corresponding contract identifier by the service type, the product type and the contract type corresponding to the contract generation request. In particular, the contract identification may be a contract number. The contract number can be associated with the corresponding contract editing page through a hyperlink, for example, a hyperlink is arranged on the contract number, and by clicking the hyperlink, the execution main body responds to the operation for clicking the hyperlink, and then jumps to the corresponding contract editing page for the corresponding contract editing.
As another implementation manner of the embodiment of the application, jumping to a contract editing page corresponding to the contract identifier includes: determining a corresponding contract template according to the contract identifier; skipping to a contract editing page corresponding to the contract template. Each contract identification can represent the type of one contract, the contract template corresponding to the corresponding contract type can be obtained through the contract identification, and after the execution main body responds to the obtained contract identification, the execution main body can directly jump to the contract template corresponding to the contract type corresponding to the contract identification to edit the contract.
Step S102, identifying the dynamic change area of the contract editing page, and further determining the corresponding insertable variable.
Specifically, in the embodiment of the present application, the execution subject may determine whether the contract editing page has a formula with variable parameters to determine whether the contract editing page is a dynamic change area. If a formula with variable parameters exists in the contract editing page, the area where the formula is located is determined as a dynamic change area.
Specifically, determining corresponding insertable variables includes:
and acquiring a field to be filled in the dynamic change area, and determining the field to be filled as an insertable variable.
The execution body may screen all fields from the dynamic change area by detecting all fields, select a field without a corresponding field value, and determine the field without the corresponding field value as the field to be filled. The field to be filled is determined as an insertable variable.
And step S103, matching the pluggable variable with the service data pool to obtain matched service data.
The business data pool can be a data pool composed of preset field values. The execution main body may match a field to be filled corresponding to the insertable variable with each field value in a data pool composed of preset field values to find a matched field value, and the matched field value is the service data matched with the insertable variable.
And step S104, determining the target position of the insertable variable in the dynamic change area, and further inserting the service data into the corresponding target position to generate and output target contract data on a contract editing page.
After determining the insertable variables, the execution subject may mark the insertable variables, and then invoke a location tracking program to locate the location of each marked insertable variable in the dynamically changing region as the target location. And inserting the determined business data matched with the insertable variable (e.g. a) into a target position corresponding to the insertable variable (e.g. a), further generating corresponding target contract data on a contract editing page, and outputting the target contract data to a terminal submitting a contract generation request for use after generating the target contract data.
In the embodiment, the corresponding contract identifier is acquired by receiving the contract generating request, and then the contract editing page corresponding to the contract identifier is skipped to; identifying a dynamic change area of a contract editing page, and further determining a corresponding pluggable variable; matching the pluggable variable with the service data pool to obtain matched service data; and determining the target position of the insertable variable in the dynamic change area, and further inserting the service data into the corresponding target position so as to generate and output target contract data on a contract editing page. Thereby improving the efficiency and accuracy of contract making.
Fig. 2 is a schematic main flow diagram of a contract generating method according to an embodiment of the present application, and as shown in fig. 2, the contract generating method includes:
step S201, receiving a contract generation request, acquiring a corresponding contract identifier, and then jumping to a contract editing page corresponding to the contract identifier.
The contract generation request may 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 characterize the type of contract, whether it is a private contract or a public contract.
Step S202, performing area division on the same editing page based on the content similarity to obtain each data area.
Clustering the content of the contract editing page based on the similarity, specifically, converting the content of the contract editing page into content vectors in a word embedding manner, and then calculating the similarity between the content vectors. Specifically, converting the content of the contract editing page into a content vector in a word embedding manner, including: and differentiating the content of the contract editing page, dividing the content into a plurality of small content blocks, and respectively calculating a content vector corresponding to each small content block in a word embedding mode.
Step S203, a target attribute value corresponding to the target attribute of each data area is acquired.
Specifically, the target attribute may be, for example, an href attribute, and the attribute value corresponding to the href attribute may include an IP address and an attribute.
And step S204, determining a dynamic change area of the contract editing page according to the target attribute value.
Specifically, the href attribute is a static web page if href = IP address, and is a dynamic web page if href = attribute (href = attribute, which needs to be loaded by js, which can make the page dynamic, so the page loaded by js is a dynamic page). Thus, the region in the contract edit page corresponding to the target attribute value as the attribute is determined as the dynamic change region of the contract edit page.
In step S205, corresponding insertable variables are determined.
After the execution subject determines the dynamic change area in the contract editing page, the field or blank field of the unfilled field value in the dynamic change area can be obtained to be used as an insertable variable.
And step S206, matching the pluggable variable with the service data pool to obtain matched service data.
And matching the insertable variable with each service data in the service data pool through the mapping relation between the insertable variable and the preset service data to acquire the service data with the mapping relation with the insertable variable, and further using the service data as the service data matched with the insertable variable.
And step S207, determining the target position of the insertable variable in the dynamic change area, and further inserting the service data into the corresponding target position to generate and output target contract data on a contract editing page.
The execution subject may acquire a position range of the insertable variable in the dynamically changing region, and determine each position in the position range as a target position. The execution main body can insert the business data into each target position and display the insertion effect of the business data, obtain the scores of the user on each insertion effect, and generate and output target contract data according to each score.
Specifically, generating target contract data from the scores includes:
and sequencing the scores, and generating target contract data according to the insertion effect with the highest score. Therefore, target contract data with higher user satisfaction can be generated, contract generation efficiency is improved, and user experience is improved.
Fig. 3 is a schematic main flow diagram of a contract generating method according to an embodiment of the present application, and as shown in fig. 3, the contract generating method includes:
step S301, receiving a contract generation request, acquiring a corresponding contract identifier, and then jumping to a contract editing page corresponding to the contract identifier.
The contract generation request may be, for example, a request for dynamically generating contract data requiring update of a preset field value with time. The contract identification can be directly carried in the contract generation request, and the contract identification can be a contract number input by the user, and the contract number can represent the type of the contract by the user.
Step S302, performing area division on the same editing page based on the content similarity to obtain each data area.
The execution main body can perform region division on the same editing page based on the content similarity corresponding to the preset dimension. Wherein, predetermine the dimension, include: format, font size, color, etc., and the preset dimension is not specifically limited in the embodiments of the present application.
Step S303, a target attribute value corresponding to the target attribute of each data area is obtained.
The target attribute may be, for example, an href attribute. Whether the corresponding region is a dynamic change region can be judged according to the attribute value (namely the target attribute value) corresponding to the attribute.
And step S304, determining a dynamic change area of the contract editing page according to the target attribute value.
If href = IP address, this sub-page is a static web page, and if href = attribute, this sub-page is a dynamic web page (href = attribute, this attribute needs to be loaded by js, js can make the page dynamic, so the page loaded by js is a dynamic page). Thus, the region in the contract edit page corresponding to the target attribute value as the attribute (i.e., required to be loaded by js) is determined as the dynamically changing region of the contract edit page.
Step S305, corresponding insertable variables are determined.
And taking the field of the unfilled field value in the dynamic change area or a blank field as an insertable variable.
Step S306, the insertable variable is matched with the business data pool, and in response to a plurality of business data corresponding to the insertable variable in the business data pool, the priority of each corresponding business data is determined.
According to the mapping relation, when the execution subject determines that more than one business data corresponding to the pluggable variable exists in the business data pool, such as A, B, C, the priority of A, B, C, such as B, A, C, can be determined
And step S307, determining the business data matched with the insertable variable in each corresponding business data according to the priority.
The service data with the highest priority, e.g., B, is determined as the service data matching the insertable variable.
Specifically, determining the service data matched with the insertable variable in each corresponding service data according to the priority includes:
sorting each corresponding service data based on priority to obtain sorted service data, such as B, A, C;
acquiring a preset number of service data corresponding to the insertable variable from the sequenced service data in sequence, where the preset number may be 2, for example, and determining the service data to be matched with the insertable variable, for example, acquiring two service data in sequence, which are B, A respectively.
Step S308, determining the target position of the insertable variable in the dynamic change area, and further inserting the service data into the corresponding target position to generate and output target contract data on a contract editing page.
The execution main body can display the preview effect of the business data corresponding to the inserted variable at the target position, and determine which preview effect is adopted to generate the target contract data by acquiring the feedback information of the user on the preview effect. Specifically, the feedback information may include a score, evaluation text, and the like, and the feedback information is not specifically limited in this embodiment of the application.
In the aspect of generating the contract, the embodiment of the application overcomes the defect of the traditional Word filling data, and is more accurate and adaptive to different templates. The editing efficiency is greatly improved, the online and offline contract-making businesses can be simultaneously met, the business requirement can be quickly responded, the pain point of business contract making is solved, and therefore the customer satisfaction is improved.
FIG. 4 is a schematic diagram of an application scenario of the contract generation method according to an embodiment of the application. The contract generation method is applied to a contract dynamic generation scene. Contract template: the variable information such as borrowers, lenders and loan information and contract text information are synthesized and manufactured according to a contract format (XSL, HTML and PDF) to be generated. A variable library: refers to variable information such as borrowers, lenders, loan information (interest rate, term, loan amount, etc.) in contracts, and forms a library for contract makers to use. Visual editing: the method is one of the functional modules of the system in the contract, the table contents of the same characters can be edited like Microsoft Word, and the parameter variables of the contract can be generated into the corresponding contract template only by selecting and placing the required positions in the variable library. The contract dynamic generation is to realize the visual operation and high-efficiency editing of business personnel. The contract generation method comprises the steps of visually editing contract text content; extracting a part of the contract which needs to be dynamically changed to form an insertable variable; and acquiring corresponding business data to fill in the variable position according to the corresponding relation between the set variable name and the business data name. As shown in fig. 4, taking loan contract creation as an example, first, contract template creation is performed, the user creates a contract on a contract creation page, configures basic information (including a template name, a template type, and the like) of the contract template, and after the configuration is completed, the user enters a template content editing page, and enters contract text content in a template editor. And then, inserting contract variables, and when a user edits text contents, reserving some contents needing dynamic input, selecting variables corresponding to the contents from a variable library for insertion, or setting the variables as editable blank fields. Then, contract generation is carried out, and basic loan information (such as loan types, product types and the like) of the user and required contract types are obtained and matched with corresponding contract templates when the contract is generated; obtaining the variable existing in the template and the service data in the loan information, obtaining the service data corresponding to the service from the service system according to the preset mapping relation between the variable identifier and the service data identifier, filling the service data to the position corresponding to the variable, and further generating the corresponding contract data. When a contract is generated, the corresponding contract template can be automatically matched according to the service data, the service data is more accurately filled, and the problem that some data are misplaced and the like which can be generated originally is avoided, so that a user needs to continuously modify the contract.
In the embodiment of the application, the execution main body can also perform contract variable maintenance on time. Contract variable maintenance can be divided into basic information maintenance and corresponding relation maintenance, fields which need to be dynamically filled when a contract is made are sorted out by a user, namely contract variables, and the fields are corresponding to service system data by technical personnel and are maintained in a system for the user to use; basic information of the variable, such as variable name, insertion position and the like, can be parameterized and adjusted by a user at any time. Through the visual editing function, the characters and the forms in the visual editor are copied and pasted according to the checked contract contents, the characters and the forms are not required to be edited for the second time, variable parameters are added to corresponding positions, and the visual editor can be obtained in a visible mode, and is efficient and convenient.
Fig. 5 is a schematic diagram of the main units of the contract generating apparatus according to the embodiment of the present application. As shown in fig. 5, the contract generating apparatus 500 includes a receiving unit 501, an insertable variable determining unit 502, a matching unit 503, and a contract generating unit 504.
A receiving unit 501 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 determining unit 502 configured to identify a dynamically changing region of the contract editing page, thereby determining a corresponding insertable variable;
a matching unit 503 configured to match the insertable variable with the service data pool to obtain matched service data;
and a contract generating unit 504 configured to determine a target position of the insertable variable in the dynamic change area, and further insert the business data into the corresponding target position to generate and output target contract data on a contract editing page.
In some embodiments, the insertable variable determination unit 502 is further configured to: performing region division on the same editing page based on the content similarity to obtain each data region; acquiring a target attribute value corresponding to the target attribute of each data area; and determining a dynamic change area of the contract editing page according to the target attribute value.
In some embodiments, the pluggable variable determination unit 502 is further configured to: and acquiring a field to be filled in the dynamic change area, and determining the field to be filled as an insertable variable.
In some embodiments, the receiving unit 501 is further configured to: determining a corresponding contract template according to the contract identifier; skipping to a contract editing page corresponding to the contract template.
In some embodiments, the receiving unit 501 is further configured to: acquiring a service identifier, a product type identifier and a contract type identifier in a contract generation request; and determining a corresponding contract identifier according to the service identifier, the product type identifier and the contract type identifier.
In some embodiments, the matching unit 503 is further configured to: responding to a plurality of service data corresponding to the pluggable variable in the service data pool, and determining the priority of each corresponding service data; and determining the business data matched with the insertable variables in each corresponding business data according to the priority.
In some embodiments, the matching unit 503 is further configured to: sequencing each corresponding service data based on the priority to obtain sequenced service data; and acquiring a preset number of service data corresponding to the insertable variables from the sequenced service data in sequence, and determining the service data matched with the insertable variables.
The contract generation method and the contract generation apparatus according to the present application have a corresponding relationship in the details of implementation, and therefore, the description of the details will not be repeated.
Fig. 6 shows an exemplary system architecture 600 to which the contract generation method or contract generation apparatus of the embodiments of the present application can be applied.
As shown in fig. 6, the system architecture 600 may include terminal devices 601, 602, 603, a network 604, and a server 605. The network 604 serves to provide a medium for communication links between the terminal devices 601, 602, 603 and the server 605. Network 604 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
A user may use the terminal devices 601, 602, 603 to interact with the server 605 via the network 604 to receive or send messages or the like. The terminal devices 601, 602, 603 may have installed thereon various communication client applications, such as shopping applications, web browser applications, search applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 601, 602, 603 may be various electronic devices having a contract generation processing screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 605 may be a server that provides various services, such as a background management server (for example only) that provides support for contract generation requests submitted by users using the terminal devices 601, 602, 603. The background management server can receive the contract generation request, acquire the corresponding contract identification and then jump to a contract editing page corresponding to the contract identification; identifying a dynamic change area of a contract editing page, and further determining a corresponding pluggable variable; matching the pluggable variable with the service data pool to obtain matched service data; and determining the target position of the insertable variable in the dynamic change area, and further inserting the service data into the corresponding target position to generate and output target contract data on a contract editing page. Thereby improving the efficiency and accuracy of contract making.
It should be noted that the contract generating method provided in the embodiment of the present application is generally executed by the server 605, and accordingly, the contract generating apparatus is generally provided in the server 605.
It should be understood that the number of terminal devices, networks, and servers in fig. 6 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 7, shown is a block diagram of a computer system 700 suitable for use in implementing a terminal device of an embodiment of the present application. The terminal device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 7, the computer system 700 includes a Central Processing Unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM703, various programs and data necessary for the operation of the computer system 700 are also stored. The CPU701, the ROM702, and the RAM703 are connected to each other via a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including a display such as a Cathode Ray Tube (CRT), a liquid crystal credit authorization query processor (LCD), and the like, and a speaker and the like; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. 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 needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read out therefrom is mounted into the storage section 708 as necessary.
In particular, according to embodiments disclosed herein, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments disclosed herein include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711. The computer program executes the above-described functions defined in the system of the present application when executed by the Central Processing Unit (CPU) 701.
It should be noted that the computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may 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, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, which may be described as: a processor includes a receiving unit, an insertable variable determining unit, a matching unit, and a contract generating unit. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs, and when the one or more programs are executed by one device, the device receives a contract generation request, acquires a corresponding contract identifier, and then jumps to a contract editing page corresponding to the contract identifier; identifying a dynamic change area of a contract editing page, and further determining a corresponding pluggable variable; matching the pluggable variable with the service data pool to obtain matched service data; and determining the target position of the insertable variable in the dynamic change area, and further inserting the service data into the corresponding target position so as to generate and output target contract data on a contract editing page. Thereby improving the efficiency and accuracy of contract making.
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.
According to the technical scheme of the embodiment of the application, the efficiency and the accuracy of contract making can be improved.
The above-described embodiments should not be construed as limiting the scope of the present application. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (16)

1. A method of contract generation, comprising:
receiving a contract generation request, acquiring 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, and further determining a corresponding pluggable variable;
matching the pluggable variable with a service data pool to obtain matched service data;
and determining the target position of the insertable variable in the dynamic change area, and further inserting the service data into the corresponding target position so as to generate and output target contract data on the contract editing page.
2. The method of claim 1, wherein the identifying a dynamically changing region of the contract edit page comprises:
performing region division on the contract editing page based on the content similarity to obtain each data region;
acquiring target attribute values corresponding to the target attributes of the data areas;
and determining a dynamic change area of the contract editing page according to the target attribute value.
3. The method of claim 1, wherein determining the corresponding insertable variable comprises:
and acquiring a field to be filled in the dynamic change area, and determining the field to be filled as an insertable variable.
4. The method of claim 1, wherein the skipping to a contract edit page corresponding to the contract identification comprises:
determining a corresponding contract template according to the contract identifier;
skipping to a contract editing page corresponding to the contract template.
5. The method of claim 1, wherein the obtaining the corresponding contract identifier comprises:
acquiring a service identifier, a product type identifier and a contract type identifier in the contract generation request;
and determining a corresponding contract identifier according to the service identifier, the product type identifier and the contract type identifier.
6. The method of claim 1, wherein obtaining the matched service data comprises:
responding to a plurality of service data corresponding to the pluggable variable in a service data pool, and determining the priority of each corresponding service data;
and determining the business data matched with the insertable variable in each corresponding business data according to the priority.
7. The method of claim 6, wherein said determining, based on said priority, which of said corresponding service data matches said insertable variable comprises:
sequencing each corresponding service data based on the priority to obtain sequenced service data;
and sequentially acquiring a preset number of service data corresponding to the insertable variables from the sequenced service data, and determining the service data matched with the insertable variables.
8. A contract generation apparatus, comprising:
the receiving unit is configured to receive a contract generation request, acquire 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 dynamically changing region of the contract editing page, thereby determining a corresponding insertable variable;
a matching unit configured to match the insertable variable with a service data pool to obtain matched service data;
a contract generating unit configured to determine a target position of the insertable variable in the dynamic change area, and further insert the business data into the corresponding target position to generate and output target contract data on the contract editing page.
9. The apparatus of claim 8, wherein the insertable variable determination unit is further configured to:
performing region division on the contract editing page based on content similarity to obtain each data region;
acquiring target attribute values corresponding to the target attributes of the data areas;
and determining a dynamic change area of the contract editing page according to the target attribute value.
10. The apparatus of claim 8, wherein the insertable variable determination unit is further configured to:
and acquiring a field to be filled in the dynamic change area, and determining the field to be filled as an insertable variable.
11. The apparatus of claim 8, wherein the receiving unit is further configured to:
determining a corresponding contract template according to the contract identifier;
skipping to a contract editing page corresponding to the contract template.
12. The apparatus of claim 8, wherein the receiving unit is further configured to:
acquiring a service identifier, a product type identifier and a contract type identifier in the contract generating request;
and determining a corresponding contract identifier according to the service identifier, the product type identifier and the contract type identifier.
13. The apparatus of claim 8, wherein the matching unit is further configured to:
responding to a plurality of service data corresponding to the pluggable variable in a service data pool, and determining the priority of each corresponding service data;
and determining the business data matched with the insertable variable in each corresponding business data according to the priority.
14. A contract generation electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
15. A computer-readable medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method of any one of claims 1-7.
16. A computer program product comprising a computer program, characterized in that the computer program realizes the method according to any of claims 1-7 when executed by a processor.
CN202211371230.XA 2022-11-03 2022-11-03 Contract generation method and device, electronic equipment and computer readable medium Pending CN115563942A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211371230.XA CN115563942A (en) 2022-11-03 2022-11-03 Contract generation method and device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211371230.XA CN115563942A (en) 2022-11-03 2022-11-03 Contract generation method and device, electronic equipment and computer readable medium

Publications (1)

Publication Number Publication Date
CN115563942A true CN115563942A (en) 2023-01-03

Family

ID=84768627

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211371230.XA Pending CN115563942A (en) 2022-11-03 2022-11-03 Contract generation method and device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN115563942A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116227456A (en) * 2023-05-09 2023-06-06 上海甄零科技有限公司 Contract generation method, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116227456A (en) * 2023-05-09 2023-06-06 上海甄零科技有限公司 Contract generation method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111259663B (en) Information processing method and device
US11244153B2 (en) Method and apparatus for processing information
CN113377653B (en) Method and device for generating test cases
CN110737824B (en) Content query method and device
CN109413056B (en) Method and apparatus for processing information
CN109255035A (en) Method and apparatus for constructing knowledge mapping
CN111143505A (en) Document processing method, device, medium and electronic equipment
CN108038172B (en) Search method and device based on artificial intelligence
CN111339743B (en) Account number generation method and device
CN111435367A (en) Knowledge graph construction method, system, equipment and storage medium
CN113435859A (en) Letter processing method and device, electronic equipment and computer readable medium
CN115563942A (en) Contract generation method and device, electronic equipment and computer readable medium
CN114297476A (en) Questionnaire survey method, system, electronic equipment and storage medium based on user tags
CN108959289B (en) Website category acquisition method and device
CN110852057A (en) Method and device for calculating text similarity
CN113590756A (en) Information sequence generation method and device, terminal equipment and computer readable medium
CN111026849B (en) Data processing method and device
CN116956326A (en) Authority data processing method and device, computer equipment and storage medium
CN109034085B (en) Method and apparatus for generating information
CN116362216A (en) Form data processing method, device, electronic equipment and storage medium
CN108536715B (en) Preview page generation method, device, equipment and storage medium
CN109857838B (en) Method and apparatus for generating information
CN111125501B (en) Method and device for processing information
CN114066603A (en) Post-loan risk early warning method and device, electronic equipment and computer readable medium
CN113742564A (en) Target resource pushing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination