CN113590823A - Contract approval method and device, storage medium and electronic equipment - Google Patents

Contract approval method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113590823A
CN113590823A CN202110872691.4A CN202110872691A CN113590823A CN 113590823 A CN113590823 A CN 113590823A CN 202110872691 A CN202110872691 A CN 202110872691A CN 113590823 A CN113590823 A CN 113590823A
Authority
CN
China
Prior art keywords
contract
target
keywords
keyword
approval
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
CN202110872691.4A
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.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China 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 Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN202110872691.4A priority Critical patent/CN113590823A/en
Publication of CN113590823A publication Critical patent/CN113590823A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/35Clustering; Classification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • G06F18/232Non-hierarchical techniques
    • G06F18/2321Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions
    • G06F18/23213Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions with fixed number of clusters, e.g. K-means clustering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/18Legal services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Tourism & Hospitality (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Health & Medical Sciences (AREA)
  • Evolutionary Computation (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Technology Law (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Probability & Statistics with Applications (AREA)
  • Evolutionary Biology (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Databases & Information Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本申请公开了一种合同审批方法、装置、存储介质及电子设备。其中方法包括:获取待审批的目标合同;基于预设的目标神经网络语言模型对所述目标合同进行关键词提取,获得若干关键词;基于K均值聚类算法对所述关键词进行筛选,获得若干目标关键词;确定所述目标合同的合同类型;至少基于与所述合同类型对应的审批规则对各所述关键词进行审批,获得所述目标合同的审批结果。本申请通过利用目标神经网络语言模型对合同文件进行关键词提取来获得若干关键词,然后利用预设的、与合同类型对应的审批规则来对关键词进行审批,由此能够提高合同的审批速率,解决了合同审批耗费大量人力和时间的问题。

Figure 202110872691

The present application discloses a contract approval method, device, storage medium and electronic device. The method includes: obtaining a target contract to be approved; extracting keywords from the target contract based on a preset target neural network language model to obtain several keywords; screening the keywords based on a K-means clustering algorithm to obtain several target keywords; determine the contract type of the target contract; approve each keyword based on at least an approval rule corresponding to the contract type, and obtain an approval result of the target contract. In this application, several keywords are obtained by using the target neural network language model to extract keywords from the contract documents, and then the keywords are approved by the preset approval rules corresponding to the contract type, thereby improving the approval rate of the contract. , which solves the problem that the contract approval consumes a lot of manpower and time.

Figure 202110872691

Description

Contract approval method and device, storage medium and electronic equipment
Technical Field
The application relates to the technical field of artificial intelligence, in particular to a contract approval method, a contract approval device, a contract approval storage medium and electronic equipment.
Background
In the process of signing a contract, a contract document is usually approved manually by an enterprise, or only the contract document is input online, the follow-up examination and approval of the contract still needs to be completed manually, a large amount of manpower and time are consumed, the examination and approval efficiency is low, and some problems which are difficult to find are missed sometimes in manual examination and approval, such as cross-level signing and the like, so that the problem that the examination and approval of the contract document are not accurate enough is caused. In addition, because the contract is managed manually, after the contract is signed, the data in the contract cannot be subjected to statistical analysis, for example, the amount of the contract cannot be counted, an enterprise with poor performance cannot be counted, and risks cannot be avoided for the enterprise.
Disclosure of Invention
In view of this, the present application provides a contract approval method, a contract approval apparatus, a storage medium, and an electronic device, and mainly aims to solve the problems that the current manual contract approval is not accurate enough and the approval efficiency is low.
In order to solve the above problem, the present application provides a contract approval method, including:
acquiring a target contract to be examined and approved;
extracting keywords from the target contract based on a preset target neural network language model to obtain a plurality of keywords;
screening the keywords based on a K-means clustering algorithm to obtain a plurality of target keywords;
determining a contract type for the target contract;
and examining and approving each target keyword at least based on an examination and approval rule corresponding to the contract type to obtain an examination and approval result of the target contract.
Optionally, the method for training the target neural network language model includes:
obtaining a plurality of corpus samples of contract types;
acquiring keywords corresponding to each of the speech samples to obtain a keyword set;
and training a neural network language model based on the corpus sample and the keyword set to obtain the target neural network language model.
Optionally, the screening the keywords based on the K-means clustering algorithm specifically includes:
calculating the distance between each keyword and a clustering center based on a K-means clustering algorithm;
and screening the keywords based on the distance between the keywords and the clustering center to obtain the target keywords.
Optionally, after each target keyword is approved, the method further includes:
displaying the keywords which are not approved according to a preset display rule according to a preset display mode so as to prompt for selection, wherein after the target keywords are obtained through screening, the method further comprises the following steps:
acquiring position information of the target keyword in the target contract;
establishing a mapping relation between each target keyword and the position information to obtain a mapping relation table;
under the condition that the target keyword is not approved, searching the mapping relation table based on the target keyword to obtain the position information corresponding to the target keyword,
and displaying the keywords at the corresponding positions in the target contract according to a preset display mode based on the position information.
Optionally, before approving each of the target keywords, the method further includes:
determining the keyword type of the missing keywords to be acquired based on the preset keyword type and the keyword type of the target keywords;
and acquiring the missing keywords based on the keyword types of the missing keywords, and examining and approving the target keywords and the missing keywords based on an examination and approval rule corresponding to the contract type.
Optionally, after obtaining the target contract, the method further includes:
determining a target storage location based on the format of the target contract for storage of the target contract.
In order to solve the above problem, the present application provides a contract approval apparatus, including:
the acquisition module is used for acquiring a target contract to be examined and approved;
the extraction module is used for extracting keywords from the target contract based on a preset target neural network language model to obtain a plurality of keywords;
the screening module is used for screening the keywords based on a K-means clustering algorithm to obtain a plurality of target keywords;
a determining module for determining a contract type of the target contract;
an approval module for approving each target keyword at least based on an approval rule corresponding to the contract type to obtain an approval result of the target contract
In order to solve the above problem, the present application provides an electronic device, which at least includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the contract approval method according to any one of the above methods when executing the computer program on the memory.
To solve the above problem, the present application provides a storage medium storing a computer program, which when executed by a processor implements the steps of the contract approval method according to any one of the above.
According to the contract approval method, the contract approval device, the storage medium and the electronic equipment, a plurality of keywords are obtained by extracting keywords from a contract file through a target neural network language model, the keywords are screened through a K-means clustering algorithm to obtain a plurality of target keywords, and then the keywords are approved through a preset approval rule corresponding to the contract type, so that the approval rate of the contract can be improved, and the problem that the contract approval consumes a large amount of manpower and time is solved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart of a contract approval method according to an embodiment of the present application;
FIG. 2 is a flow chart of a contract approval process according to yet another embodiment of the present application;
FIG. 3 is a flowchart of a contract administration according to an embodiment of the present application;
FIG. 4 is a flowchart of obtaining a target key in an embodiment of the present application;
fig. 5 is a block diagram of a contract approval apparatus according to another embodiment of the present application.
Detailed Description
Various aspects and features of the present application are described herein with reference to the drawings.
It will be understood that various modifications may be made to the embodiments of the present application. Accordingly, the foregoing description should not be construed as limiting, but merely as exemplifications of embodiments. Those skilled in the art will envision other modifications within the scope and spirit of the application.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and, together with a general description of the application given above and the detailed description of the embodiments given below, serve to explain the principles of the application.
These and other characteristics of the present application will become apparent from the following description of preferred forms of embodiment, given as non-limiting examples, with reference to the attached drawings.
It is also to be understood that although the present application has been described with reference to some specific examples, those skilled in the art are able to ascertain many other equivalents to the practice of the present application.
The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the application, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the application of unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present application in virtually any appropriately detailed structure.
The specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the application.
The embodiment of the application provides a contract approval method, as shown in fig. 1, which includes the following steps:
step S101, acquiring a target contract to be examined and approved;
in the specific implementation process of the step, the target contract to be examined and approved can be obtained from a preset platform system, and the contract attachment manually input or manually uploaded can be received as the target contract. The format of the target contract may be a text format or a picture format, and may be, for example: word format, pdf format, text format, jpg format, png format, etc. In this step, when the target contract is in the non-word format, format conversion can be performed on the target contract in the non-word format, so as to obtain a contract file in the word format.
Step S102, extracting keywords from the target contract based on a preset target neural network language model to obtain a plurality of keywords;
in the specific implementation process of this step, a natural language processing model may be specifically used to extract information of the target contract to obtain a plurality of corpora, for example, the same document is divided according to document paragraphs, punctuations, etc. to obtain individual sentences as a prediction, and then a target neural network language model obtained by pre-training is used to extract keywords from each corpus/sentence, thereby obtaining a plurality of keywords.
S103, screening the keywords based on a K-means clustering algorithm to obtain a plurality of target keywords;
step S104, determining the contract type of the target contract;
in this step, the contract type may specifically include any one of the following: a headquarter contract type and a non-headquarter contract type. Of course, the contract type can be refined according to the actual need, for example, the contract type can also be refined into a lease type contract, a buying and selling contract, a technical contract, a construction project contract, a contract, and the like.
Step S105, examining and approving each target keyword at least based on the examination and approval rule corresponding to the contract type, and obtaining the examination and approval result of the target contract.
In the specific implementation process of the step, the corresponding relation between the contract type and the approval rule can be established in advance, then after the contract type is determined, the corresponding approval rule can be rapidly determined by searching the corresponding relation, and the approval rule is utilized to examine and verify the target keyword so as to obtain the approval result.
According to the contract approval method, a plurality of keywords are obtained by extracting the keywords from the contract file through the target neural network language model, the keywords are screened through the K-means clustering algorithm to obtain a plurality of target keywords, and then the keywords are approved through the preset approval rule corresponding to the contract type, so that the contract approval rate can be improved, and the problem that a large amount of labor and time are consumed in contract approval is solved.
Another embodiment of the present application provides a contract approval method, as shown in fig. 2, including the following steps:
step S201, obtaining a plurality of corpus samples of contract types; acquiring keywords corresponding to each of the speech samples to obtain a keyword set; training a neural network language model based on the corpus sample and the keyword set to obtain the target neural network language model;
in this step, corpus samples, i.e., sentences, for model training can be obtained from a plurality of contract documents; keywords in the prospective sample are then obtained. The model training is specifically to use the pre-training model embedded based on shallow words by using NNLM
Figure BDA0003189308370000061
Performing training, wherein wtRepresenting the t-th word in the sequence of words,
Figure BDA0003189308370000062
representing the subsequence from the 1 st key to the t key words, P representing the probability, i.e. inputting the subsequence of the 1 st word to the t-1 st word to predict and obtain the key word wtF denotes the probability distribution of the calculation condition. And predicting through the training model to finally obtain candidate keywords, converting the candidate keywords into word vector files, and further screening the candidate keywords. For example, sentences including keywords, underwriters, parties A, parties B, contract amount and the like in the contract are extracted, the words are segmented and words and sentences without practical significance are removed, for example, "the contract underwriter is China's safety property insurance Limited company, the insurance period is from xxxx to xxxx, and the underwriting amount is xxxx (RMB)", and the sentence is finally segmented into "the underwriter is China's safety property insurance Limited company" and "the underwriting amount is xxxx. Specifically, the model principle is as follows: 1. inputting a model: first, a series of text sequences (w) with the length of n are collected from a corpust,wt-1,...,wt-n+1) Then, a training set D is formed, the corpus is a text corpus collected in the contract field, and the corpus is used as training data, and meanwhile, a corresponding keyword set is obtained and used as a dictionary. Model training is then performed based on the training data and the dictionary. First, a single sentence sequence is calculated, which can also be said to be a single sample, such as: w is a1…wtWherein wtE.v, V is the set of all words (i.e. the lexicon) Vi represents the lexiconThe ith word in (1). 2. Model parameters: the goal of NNLM is to train a model that means the probability that the nth word is predicted by the (t-1) words that precede it when a segment sequence is given.
Figure BDA0003189308370000071
Wherein, wtRepresenting the t-th word in the sequence of words,
Figure BDA0003189308370000072
representing a subsequence consisting of the 1 st word through the t-th word. The model needs to satisfy the following two constraints:
the first limiting condition is as follows: f (w)t,wt-1,...,wt-n+2,wt-n+1)>And 0, the limiting condition indicates that each probability value obtained by the neural network model is greater than 0.
The second limiting condition is as follows:
Figure BDA0003189308370000073
the limitation condition represents: the resulting output of the neural network model is to predict what the next, i.e., tth word, is for every t-1 word input. The actual output of the model is thus a vector, each component of which in turn corresponds to the probability that the next word is a word in the dictionary. There must be one of the probability values of the | v | dimension that is the largest probability, while the others are smaller. In the step, the final target neural network model can be obtained by performing model training in the above manner, and then keyword extraction can be performed by using the neural network model.
Step S202, obtaining a target contract to be examined and approved;
step S203, extracting keywords from the target contract based on the target neural network language model to obtain a plurality of keywords;
step S204, calculating the distance between each keyword and a clustering center based on a K-means clustering algorithm; screening each keyword based on the distance between each keyword and a clustering center to obtain a target keyword;
in this step, in order to make the obtained keywords more reasonable and accurate, each keyword may be further screened to obtain the target keyword. Firstly, an initial clustering center is randomly selected, word vector files are used for converting all keywords to obtain word vector representations of all the keywords, then a K-means clustering algorithm, namely a K mean clustering algorithm, is used for calculating the distance between each keyword and the initial clustering center, then all the keywords are classified according to the clustering between each keyword and the clustering center to obtain a plurality of clustering clusters, then an average value is calculated based on all the clustering clusters to serve as a new clustering center, then the distance between each keyword and the clustering center is calculated, and finally the keywords are screened according to the distance between each keyword and the clustering center to obtain target keywords. For example, the keywords obtained by the screening include "contract", "amount", "my a limited liability company", "other B limited liability company", "effective date 2020 year 1 month 1 day", "due date 2021 year 1 month 1 day", "total amount of contract 100 ten thousand rmb", "signature date 2020 year 12 month 1 day", "seal date 2020 year 12 month 1 day", and "seal object: a, and the like, then determining the clustering centers as "contract" and "amount", respectively calculating the clustering of each keyword and the two clustering centers, obtaining all keywords and the desired clustering in the clustering after a plurality of iterations, and taking Topk (top) closest to the clustering center as a finally selected target keyword, for example, finally obtaining the keywords comprises: "my party a limited liability company", "other party B limited liability company", "effective date 2020 year 1 month 1 day", "due date 2021 year 1 month 1 day", "total amount of contract 100 ten thousand renminbi", and "object of stamp use: a ".
Step S205, determining the contract type of the target contract;
in this step, the contract type may specifically include any one of the following: a headquarter contract type and a non-headquarter contract type. The contract type can be refined according to actual needs, for example, the contract type can also be a lease type contract, a buying and selling contract, a technical contract, a construction project contract, a contract, and the like.
Step S206, each target keyword is approved based on the approval rule corresponding to the contract type, and the approval result of the target contract is obtained.
Taking the example that the contract types include a headquarter contract type and a non-headquarter contract type in this step, the approval rules may include a first approval rule corresponding to the headquarter contract type and a second approval rule corresponding to the non-headquarter contract type.
Specifically, the first approval rule may include any one or more of the following: verifying the signing main body and judging whether the signing main body is a headquarter name or not; verifying the signed amount, and judging whether the signed amount is smaller than a first preset value; the method comprises the steps of checking a printing object and judging whether the printing object is a preset first printing object; and auditing the other party information, and judging whether the credit corresponding to the other party information is good or not.
The second approval rule may include any one or more of the following: verifying the signing main body, and judging whether the signing main body is a subordinate agency name; verifying the signed amount, and judging whether the signed amount is smaller than a second preset value; the printing object is checked, and whether the printing object is a preset second printing object is judged; and auditing the other party information, and judging whether the credit corresponding to the other party information is good or not.
For example, when the contract type is determined to be a non-headquarter contract type, and the approval rule is determined to be a second approval rule, and the following target keywords are obtained: "my party a limited liability company", "other party B limited liability company", "effective date 2020 year 1 month 1 day", "due date 2021 year 1 month 1 day", "total amount of contract 100 ten thousand renminbi", and "object of stamp use: and A', the target key can be approved, for example, whether the approval "My A company with limited responsibility" is the name of the subordinate organization, and if not, the signing subject is determined to be wrong and the signing subject fails to approve. And (3) examining whether the ' total amount of the contract of 100 million RMB ' is smaller than a second preset value, for example, examining whether the ' total amount of the contract of 100 million RMB ' is smaller than 500 million, and determining that the total amount of the contract is approved if the ' total amount of the contract of 500 million is smaller. Examine "print object: if the first print object is a preset second print object, the first print object passes the approval of the second print object. And examining and approving the credit corresponding to the information of the other party 'other party B finite responsibility company', judging whether the credit of the 'other party B finite responsibility company' is good, and if so, examining and approving the credit of the other party.
In the specific implementation process of the embodiment, the reputation of the other party enterprise/unit that has signed the contract can be determined according to the performance condition of the historical contract, and then the corresponding relationship between the other party enterprise/unit and the reputation is established, so that the reputation condition of the other party can be quickly obtained by searching the corresponding relationship. Specifically, the reputation may be ranked, for example, the reputation of a company/unit that has been paid but has not been paid due may be set to be poor, the reputation of a company/unit that has been paid but has been paid due may be set to be general, and the reputation of a company/unit that has been paid according to contract rules may be set to be good. Therefore, when reputation approval is carried out, different approval results can be obtained according to different reputation levels, for example, approval of an enterprise/unit with a poor reputation level is failed, approval of an enterprise/unit with a general reputation level is passed, risk prompt is carried out according to a preset prompt mode, and approval of an enterprise/unit with a good reputation level is passed.
In a specific implementation process of the embodiment, after the approval results of the keys are obtained, the keywords that do not pass the approval may be highlighted according to a predetermined display mode for prompting. For example, the failed keywords are displayed according to the preset font color, so that the user can check or modify the related content of the contract document in a targeted manner, and the examination and approval efficiency of the contract document is improved.
In the embodiment, in order to enable a user to quickly find out a specific position in a contract file, where the specific position of related content needs to be further confirmed and modified, that is, to determine a specific position of a keyword which has not been approved in the contract file, after extracting and obtaining each keyword, the position information of each keyword in a target contract can be further obtained, so that when each keyword is screened and obtained to obtain a target keyword, the position information of each target keyword in the target contract can be directly obtained; establishing a mapping relation between each target keyword and the position information to obtain a mapping relation table; and under the condition that the examination and approval of the target keywords are not passed, searching the mapping relation table based on the target keywords to obtain position information corresponding to the target keywords, and displaying the keywords at the corresponding positions in the target contract based on the position information and according to a preset display mode. For example, when the total amount of the contract 600 ten thousand RMB is approved to be not less than the predetermined 500 ten thousand RMB, it may be determined that the total amount of the contract is not approved, and at this time, the position information of the total amount of the contract 600 ten thousand RMB in the target contract may be found by looking up the mapping relation table, for example, it is determined that the total amount of the contract 600 ten thousand RMB is located in the 2 nd row in the 3 rd page of the target contract, and the corresponding position of the target contract may be directly highlighted, for example, the text in the 2 nd row in the 3 rd page is displayed according to a predetermined text color, or the background in the 2 nd row in the 3 rd page is displayed according to a predetermined shading color, so as to quickly find the position of the document to be modified.
In the specific implementation process of the embodiment, in order to make the final approval result more accurate, the missing keywords can be obtained manually. Specifically, the keyword type of the missing keyword to be acquired is determined based on a preset keyword type and the keyword type of the target keyword; and then acquiring the missing keywords based on the keyword types of the missing keywords, and examining and approving the target keywords and the missing keywords based on an examination and approval rule corresponding to the contract type. That is, the type of the keyword to be examined and approved, which needs to be obtained, is preset, for example, the keyword type may include a contract amount, a name of my party, a name of other party, and the like, and when the keyword type of the obtained target keyword includes only the contract amount, the name of my party, and is less than a predetermined keyword type, it is described that the obtained target keyword is missing, so that the keyword type of the missing keyword to be obtained may be determined as the name of other party, and then the missing keyword is further obtained. For example, after the target keyword is acquired, the target keyword may be filled in the approval template, and when the type of the acquired target keyword is less than a predetermined keyword type, that is, when an unfilled position exists in the approval template, it is indicated that keyword extraction is missing. Therefore, missing keywords can be manually acquired according to the keyword types of the missing keywords, and then the acquired missing keywords are filled in the corresponding positions of the examination and approval template, so that each keyword in the examination and approval template can be examined and approved according to the examination and approval rules, and examination and approval results can be obtained. In the embodiment, the missing keywords are obtained manually, so that a foundation is laid for follow-up examination and approval of the keywords, and a guarantee is provided for follow-up fast examination and approval of the target contract based on the keywords. In this embodiment, in order to make the final approval result more accurate, after the approval result is obtained, review may be performed manually. By only reviewing the approved contract, the workload of workers can be reduced, and the approval rate of the contract is improved while the accuracy of the contract file is ensured.
In a specific implementation process of this embodiment, after the target contract is obtained, a storage location of the target contract may be further determined based on a format of the target contract, so as to store the target contract. In this embodiment, contract files of different format types are provided with different storage locations, and a corresponding relationship between the format and the storage locations is established, for example, a word format contract file may be provided with the storage location a, and a PDF format contract file may be provided with the storage location B, so that target contracts of the same format may be stored at the same location, and thus the target contracts are backed up, and problems that the target contracts are lost due to errors and the contracts need to be uploaded again are avoided. And when the target contract is checked in subsequent manual work, the storage position of the contract can be quickly determined according to the format of the contract, so that the target contract can be quickly found.
In this embodiment, after the target contract is approved, the target contract may be sealed and signed according to the print-using object in the extracted target keyword. After the printing is finished, contracts can be classified and classified, and the contracts are uniformly stored in a first preset position, for example, the contracts can be classified and stored according to the contract types and the amount of money related to the contracts.
For further explanation of the above embodiment, the contract approval process is described in detail below with reference to fig. 3 and 4. Step S1 is performed after contract entry begins to select the type of target contract. Then step S2 is executed to upload the contract attachment. Specifically, the method includes the steps of identifying contract attachments to obtain a text file, performing AI parsing on a contract of the text file type by using a target neural network model, namely executing step S3 to perform AI parsing on the content of the contract to obtain a plurality of keywords, then executing step S4 to screen the keywords to obtain a plurality of target keywords, wherein a specific process of specifically obtaining the target keywords can be as shown in fig. 4, firstly performing model training in step S41, then processing the target contract by using a word vector file, obtaining a preprocessed text in step S42, then performing keyword extraction on the preprocessed text by using the model obtained by training, obtaining a plurality of candidate keywords in step S43, converting the candidate keywords by using the word vector file, obtaining word vector representations of the candidate keywords in step S44, obtaining a clustering center by using a K-MEANS clustering method in step S45, calculating a distance between each candidate keyword and the clustering center, s46, the candidate keywords are ranked according to the Manhattan distance between the candidate keywords and the cluster center, and S47 selects Top-K as the last target keyword, namely selects the candidate keywords with the distance less than the preset value as the last target keyword. If the parsing is successful and the screening is completed, step S5 is executed to automatically fill contract elements, that is, to fill the obtained target keywords to each target position in the predetermined approval, and if the parsing is not successful or all the target keywords are not obtained, step S6 is executed to automatically fill part of the keywords and to manually fill the rest. And then, the step S7 of submitting the contract and performing rule verification, that is, submitting the approval targets filled with the target keywords to a corresponding auditing module, so as to approve each target keyword in the approval targets by using the approval regulation corresponding to the target contract type. And if the examination and approval fails, returning, and pushing the contract flow to a node for uploading the contract attachment. If the approval is successful, step S8 is executed to enter into a review, for example, the contract document that is qualified for approval may be reviewed manually. And if the review fails, pushing the flow of the contract to a node for uploading the contract attachment. If the review is passed, step S9 is executed to print the contract, step S10 is executed to archive the contract, step S11 is executed to perform, and step S12 is executed to complete the statistical analysis of the data. In the implementation process, the ongoing contracts can be further managed uniformly in the performance process, for example, the contracts are classified and stored according to the contract types and the amount of money involved in the contracts. And after the fulfillment is finished, further performing statistical analysis on the data to determine an enterprise with poor fulfillment condition so as to perform risk reminding in the subsequent cooperation with the enterprise.
In order to solve the above technical problem, another embodiment of the present application provides a contract approval apparatus, as shown in fig. 5, including:
the acquisition module 1 is used for acquiring a target contract to be examined and approved;
the extraction module 2 is used for extracting keywords from the target contract based on a preset target neural network language model to obtain a plurality of keywords;
the screening module 3 is used for screening the keywords based on a K-means clustering algorithm to obtain a plurality of target keywords;
a determining module 4, configured to determine a contract type of the target contract;
an approval module 5, configured to approve each keyword at least based on an approval rule corresponding to the contract type, to obtain an approval result of the target contract
The contract approval apparatus in this embodiment further includes a model training module, and the model training module is configured to: acquiring a plurality of corpus samples of contract types; acquiring keywords corresponding to each of the speech samples to obtain a keyword set; and training a neural network language model based on the corpus sample and the keyword set to obtain the target neural network language model.
The screening module in this embodiment is specifically configured to: calculating the distance between each keyword and a clustering center based on a K-means clustering algorithm; and screening the keywords based on the distance between the keywords and the clustering center to obtain target keywords, and examining and approving the target keywords based on an examination and approval rule corresponding to the contract type.
In this embodiment, the contract type includes any one of the following: a headquarter contract type and a non-headquarter contract type; the approval rules comprise a first approval rule corresponding to the headquarter contract type and a second approval rule corresponding to the non-headquarter contract type. The first approval rule comprises any one or more of the following: verifying the signing main body and judging whether the signing main body is a headquarter name or not; verifying the signed amount, and judging whether the signed amount is smaller than a first preset value; the method comprises the steps of checking a printing object and judging whether the printing object is a preset first printing object; auditing the other party information, and judging whether the credit corresponding to the other party information is good or not; the second approval rule comprises any one or more of the following rules: verifying the signing main body, and judging whether the signing main body is a subordinate agency name; verifying the signed amount, and judging whether the signed amount is smaller than a second preset value; the printing object is checked, and whether the printing object is a preset second printing object is judged; and auditing the other party information, and judging whether the credit corresponding to the other party information is good or not.
Specifically, the contract approval apparatus in this embodiment further includes a display module, where the display module is configured to: and highlighting the keywords which are not approved according to a preset display mode so as to prompt.
Specifically, the contract approval apparatus in this embodiment further includes a position prompt module, where the position prompt module is specifically configured to: acquiring position information of the target keyword in the target contract; establishing a mapping relation between each target keyword and the position information to obtain a mapping relation table; and under the condition that the examination and approval of the target keywords are not passed, searching the mapping relation table based on the target keywords to obtain position information corresponding to the target keywords, and displaying the keywords at the corresponding positions in the target contract based on the position information and according to a preset display mode.
In this embodiment, the contract approval apparatus further includes a review module, and the review module is specifically configured to: determining the keyword type of the missing keywords to be acquired based on the preset keyword type and the keyword type of the target keywords; and acquiring the missing keywords based on the keyword types of the missing keywords, and examining and approving the target keywords and the missing keywords based on an examination and approval rule corresponding to the contract type.
The embodiment further includes a storage module, where the storage module is specifically configured to: determining a target storage location based on the format of the target contract for storage of the target contract.
According to the method and the device, a plurality of keywords are obtained by extracting the keywords from the contract file, the keywords are screened by using a K-means clustering algorithm to obtain a plurality of target keywords, and then the keywords are examined and approved by using the examination and approval rules which are preset and correspond to the contract types, so that the examination and approval rate of the contract can be improved, and the problem that a large amount of labor and time are consumed for contract examination and approval is solved.
Yet another embodiment of the present application provides a storage medium storing a computer program which, when executed by a processor, performs the method steps of:
step one, obtaining a target contract to be examined and approved;
secondly, extracting keywords from the target contract based on a preset target neural network language model to obtain a plurality of keywords;
thirdly, screening the keywords based on a K-means clustering algorithm to obtain a plurality of target keywords;
step four, determining the contract type of the target contract;
and fifthly, examining and approving the keywords at least based on an examination and approval rule corresponding to the contract type to obtain an examination and approval result of the target contract.
The specific implementation process of the above method steps can be referred to in the above embodiment of any contract approval method, and this embodiment is not repeated herein.
According to the method and the device, a plurality of keywords are obtained by extracting the keywords from the contract file, the keywords are screened by using a K-means clustering algorithm to obtain a plurality of target keywords, and then the keywords are examined and approved by using the examination and approval rules which are preset and correspond to the contract types, so that the examination and approval rate of the contract can be improved, and the problem that a large amount of labor and time are consumed for contract examination and approval is solved.
Yet another embodiment of the present application provides an electronic device, at least comprising a memory and a processor, the memory having a computer program stored thereon, the processor implementing the steps of the following method when executing the computer program on the memory:
step one, obtaining a target contract to be examined and approved;
secondly, extracting keywords from the target contract based on a preset target neural network language model to obtain a plurality of keywords;
thirdly, screening the keywords based on a K-means clustering algorithm to obtain a plurality of target keywords;
step four, determining the contract type of the target contract;
and fifthly, examining and approving the keywords at least based on an examination and approval rule corresponding to the contract type to obtain an examination and approval result of the target contract.
The specific implementation process of the above method steps can be referred to in the above embodiment of any contract approval method, and this embodiment is not repeated herein.
According to the method and the device, a plurality of keywords are obtained by extracting the keywords from the contract file, the keywords are screened by using a K-means clustering algorithm to obtain a plurality of target keywords, and then the keywords are examined and approved by using the examination and approval rules which are preset and correspond to the contract types, so that the examination and approval rate of the contract can be improved, and the problem that a large amount of labor and time are consumed for contract examination and approval is solved.
The above embodiments are only exemplary embodiments of the present application, and are not intended to limit the present application, and the protection scope of the present application is defined by the claims. Various modifications and equivalents may be made by those skilled in the art within the spirit and scope of the present application and such modifications and equivalents should also be considered to be within the scope of the present application.

Claims (10)

1.一种合同审批方法,其特征在于,包括:1. a contract approval method, is characterized in that, comprises: 获取待审批的目标合同;Obtain the target contract pending approval; 基于预设的目标神经网络语言模型对所述目标合同进行关键词提取,获得若干关键词;Perform keyword extraction on the target contract based on a preset target neural network language model to obtain several keywords; 基于K均值聚类算法对所述关键词进行筛选,获得若干目标关键词;Screen the keywords based on the K-means clustering algorithm to obtain several target keywords; 确定所述目标合同的合同类型;determining the contract type of said target contract; 基于与所述合同类型对应的审批规则对各所述目标关键词进行审批,获得所述目标合同的审批结果。Approve each of the target keywords based on the approval rule corresponding to the contract type, and obtain an approval result of the target contract. 2.如权利要求1所述的方法,其特征在于,所述目标神经网络语言模型的训练方法包括:2. The method of claim 1, wherein the training method of the target neural network language model comprises: 获取若干合同类型的语料样本;Obtain corpus samples of several contract types; 获取与各所述语料样本对应的关键词,以获得关键词集合;acquiring keywords corresponding to each of the corpus samples to obtain a keyword set; 基于所述语料样本以及所述关键词集合进行神经网络语言模型的训练,获得所述目标神经网络语言模型。A neural network language model is trained based on the corpus sample and the keyword set, and the target neural network language model is obtained. 3.如权利要求1所述的方法,其特征在于,所述基于K均值聚类算法对所述关键词进行筛选,具体包括:3. The method according to claim 1, wherein the keyword is screened based on a K-means clustering algorithm, specifically comprising: 基于K均值聚类算法计算各所述关键词与聚类中心之间的距离;Calculate the distance between each of the keywords and the cluster center based on the K-means clustering algorithm; 基于各所述关键词与聚类中心之间的距离对各所述关键词进行筛选,获得所述若干目标关键词。Screen each of the keywords based on the distance between each of the keywords and the cluster center to obtain the several target keywords. 4.如权利要求1所述的方法,其特征在于,在对各所述目标关键词进行审批之后,所述方法还包括:4. The method of claim 1, wherein after each of the target keywords is approved, the method further comprises: 按照预定的显示方式对未通过审批的关键词按照预设显示规则显示,以进行提示。The keywords that have not passed the approval are displayed according to the preset display rules according to the predetermined display mode for prompting. 5.如权利要求3所述的方法,其特征在于,在筛选获得目标关键词后,所述方法还包括:5. The method according to claim 3, wherein after screening and obtaining the target keyword, the method further comprises: 获取所述目标关键词位于所述目标合同中的位置信息;obtaining the location information of the target keyword in the target contract; 建立各目标关键词与位置信息的映射关系,获得映射关系表;Establish a mapping relationship between each target keyword and location information, and obtain a mapping relationship table; 在目标关键词审批未通过的情况下,基于所述目标关键词查找所述映射关系表,获得与目标关键词对应的位置信息,In the case where the approval of the target keyword fails, the mapping table is searched based on the target keyword, and the location information corresponding to the target keyword is obtained, 基于所述位置信息、按照预定的显示方式对所述目标合同中的相应位置的关键词进行显示。Based on the location information, the keyword of the corresponding location in the target contract is displayed in a predetermined display manner. 6.如权利要求3所述的方法,其特征在于,在对各所述目标关键词进行审批之前,所述方法还包括:6. The method according to claim 3, wherein before the approval of each of the target keywords, the method further comprises: 基于预定的关键词类型以及所述目标关键词的关键词类型确定待获取的遗漏关键词的关键词类型;Determine the keyword type of the missing keyword to be acquired based on the predetermined keyword type and the keyword type of the target keyword; 基于所述遗漏关键词的关键词类型获取遗漏的遗漏关键词,以基于与所述合同类型对应的审批规则对各所述目标关键词以及所述遗漏关键词进行审批。The missing missing keyword is acquired based on the keyword type of the missing keyword, so as to approve each of the target keyword and the missing keyword based on the approval rule corresponding to the contract type. 7.如权利要求1所述的方法,其特征在于,在获得所述目标合同之后,所述方法还包括:7. The method of claim 1, wherein after obtaining the target contract, the method further comprises: 基于所述目标合同的格式确定目标存储位置,以对所述目标合同进行存储。A target storage location is determined based on the format of the target contract to store the target contract. 8.一种合同审批装置,其特征在于,包括:8. An apparatus for examining and approving contracts, comprising: 获取模块,用于获取待审批的目标合同;The acquisition module is used to acquire the target contract to be approved; 提取模块,用于基于预设的目标神经网络语言模型对所述目标合同进行关键词提取,获得若干关键词;an extraction module, configured to perform keyword extraction on the target contract based on a preset target neural network language model to obtain several keywords; 筛选模块,用于基于K均值聚类算法对所述关键词进行筛选,获得若干目标关键词;A screening module, used for screening the keywords based on the K-means clustering algorithm to obtain several target keywords; 确定模块,用于确定所述目标合同的合同类型;a determining module, used to determine the contract type of the target contract; 审批模块,用于至少基于与所述合同类型对应的审批规则对各所述关键词进行审批,获得所述目标合同的审批结果。An approval module, configured to approve each of the keywords based on at least an approval rule corresponding to the contract type, and obtain an approval result of the target contract. 9.一种电子设备,其特征在于,至少包括存储器、处理器,所述存储器上存储有计算机程序,所述处理器在执行所述存储器上的计算机程序时实现上述1-7任一项所述合同审批方法的步骤。9. An electronic device, characterized in that it comprises at least a memory and a processor, wherein a computer program is stored on the memory, and the processor implements any of the above 1-7 when executing the computer program on the memory. Describe the steps of the contract approval method. 10.一种存储介质,其特征在于,所述存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述1-7任一项所述合同审批方法的步骤。10. A storage medium, characterized in that, the storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the contract approval method described in any one of the above 1-7 are implemented.
CN202110872691.4A 2021-07-30 2021-07-30 Contract approval method and device, storage medium and electronic equipment Pending CN113590823A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110872691.4A CN113590823A (en) 2021-07-30 2021-07-30 Contract approval method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110872691.4A CN113590823A (en) 2021-07-30 2021-07-30 Contract approval method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN113590823A true CN113590823A (en) 2021-11-02

Family

ID=78252631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110872691.4A Pending CN113590823A (en) 2021-07-30 2021-07-30 Contract approval method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113590823A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114445048A (en) * 2022-01-30 2022-05-06 九恒星(武汉)信息技术有限公司 Contract processing method, device, equipment and storage medium based on RPA
CN115497178A (en) * 2022-11-21 2022-12-20 山东双仁信息技术有限公司 Method and system for managing external vehicles in parking lot
CN117132244A (en) * 2023-10-26 2023-11-28 国网浙江省电力有限公司 Classification processing method, device and storage medium for smart compliance management system
CN117422428A (en) * 2023-12-19 2024-01-19 尚恰实业有限公司 Automatic examination and approval method and system for robot based on artificial intelligence
CN117436815A (en) * 2023-11-17 2024-01-23 北京九思协同软件有限公司 Flow intelligent approval method based on natural language big model
CN117495314A (en) * 2024-01-02 2024-02-02 尚恰实业有限公司 Automatic approval method and system based on machine learning

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109766430A (en) * 2018-12-17 2019-05-17 深圳壹账通智能科技有限公司 Contract audit method, apparatus, computer equipment and storage medium
CN111753541A (en) * 2020-06-24 2020-10-09 云南电网有限责任公司信息中心 Method and system for performing Natural Language Processing (NLP) on contract text data
CN112330304A (en) * 2020-11-27 2021-02-05 泰康保险集团股份有限公司 A contract approval method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109766430A (en) * 2018-12-17 2019-05-17 深圳壹账通智能科技有限公司 Contract audit method, apparatus, computer equipment and storage medium
CN111753541A (en) * 2020-06-24 2020-10-09 云南电网有限责任公司信息中心 Method and system for performing Natural Language Processing (NLP) on contract text data
CN112330304A (en) * 2020-11-27 2021-02-05 泰康保险集团股份有限公司 A contract approval method and device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114445048A (en) * 2022-01-30 2022-05-06 九恒星(武汉)信息技术有限公司 Contract processing method, device, equipment and storage medium based on RPA
CN115497178A (en) * 2022-11-21 2022-12-20 山东双仁信息技术有限公司 Method and system for managing external vehicles in parking lot
CN117132244A (en) * 2023-10-26 2023-11-28 国网浙江省电力有限公司 Classification processing method, device and storage medium for smart compliance management system
CN117132244B (en) * 2023-10-26 2024-01-09 国网浙江省电力有限公司 Classification processing method, device and storage medium for intelligent compliance management system
CN117436815A (en) * 2023-11-17 2024-01-23 北京九思协同软件有限公司 Flow intelligent approval method based on natural language big model
CN117436815B (en) * 2023-11-17 2024-06-07 北京九思协同软件有限公司 Flow intelligent approval method based on natural language big model
CN117422428A (en) * 2023-12-19 2024-01-19 尚恰实业有限公司 Automatic examination and approval method and system for robot based on artificial intelligence
CN117422428B (en) * 2023-12-19 2024-03-08 尚恰实业有限公司 Automatic examination and approval method and system for robot based on artificial intelligence
CN117495314A (en) * 2024-01-02 2024-02-02 尚恰实业有限公司 Automatic approval method and system based on machine learning
CN117495314B (en) * 2024-01-02 2024-04-02 尚恰实业有限公司 Automatic approval method and system based on machine learning

Similar Documents

Publication Publication Date Title
CN113590823A (en) Contract approval method and device, storage medium and electronic equipment
US20220237230A1 (en) System and method for automated file reporting
CN108876166A (en) Financial risk authentication processing method, device, computer equipment and storage medium
CN110765770A (en) Automatic contract generation method and device
CN110377631B (en) Case information processing method, device, computer equipment and storage medium
CN110362798B (en) Method, apparatus, computer device and storage medium for judging information retrieval analysis
CN112908473B (en) Model-based data processing method, device, computer equipment and storage medium
CN113627182B (en) Data matching method, device, computer equipment and storage medium
US11899727B2 (en) Document digitization, transformation and validation
CN110362542B (en) Nuclear power station file encoding method and device, computer equipment and storage medium
CN113256383B (en) Recommendation method and device for insurance products, electronic equipment and storage medium
CN112035595A (en) Construction method and device of audit rule engine in medical field and computer equipment
CN113868391A (en) Knowledge graph-based legal document generation method, device, equipment and medium
CN113591480A (en) Named entity identification method and device for power metering and computer equipment
KR102280490B1 (en) Training data construction method for automatically generating training data for artificial intelligence model for counseling intention classification
CN110674250A (en) Text matching method, text matching device, computer system and readable storage medium
CN111767390A (en) Skill word evaluation method and device, electronic equipment and computer readable medium
CA3169288A1 (en) Knowledge graph based reasoning recommendation system and method
CN113297852B (en) Medical entity word recognition method and device
CN113269179B (en) Data processing method, device, equipment and storage medium
CN112270224B (en) Insurance liability analysis method, device and computer-readable storage medium
US20210042515A1 (en) Method and system for analyzing documents
Amujala et al. Digitization and data frames for card index records
CN113688854B (en) Data processing method, device and computing equipment
CN115293915A (en) Service data verification method, device, equipment and storage medium

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