CN110069763A - Contract text method for customizing, device, equipment and readable storage medium storing program for executing - Google Patents

Contract text method for customizing, device, equipment and readable storage medium storing program for executing Download PDF

Info

Publication number
CN110069763A
CN110069763A CN201910206044.2A CN201910206044A CN110069763A CN 110069763 A CN110069763 A CN 110069763A CN 201910206044 A CN201910206044 A CN 201910206044A CN 110069763 A CN110069763 A CN 110069763A
Authority
CN
China
Prior art keywords
contract
clause
terms
template
word
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.)
Granted
Application number
CN201910206044.2A
Other languages
Chinese (zh)
Other versions
CN110069763B (en
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 Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910206044.2A priority Critical patent/CN110069763B/en
Publication of CN110069763A publication Critical patent/CN110069763A/en
Application granted granted Critical
Publication of CN110069763B publication Critical patent/CN110069763B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/36Creation of semantic tools, e.g. ontology or thesauri
    • G06F16/367Ontology
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/284Lexical analysis, e.g. tokenisation or collocates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Animal Behavior & Ethology (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of contract text method for customizing, comprising: requests corresponding contract customized information based on contract customization, is inquired in contract terms knowledge mapping, to obtain the corresponding target contract terms of the clause keyword;Obtain the corresponding contract template of the contract customized information and the corresponding template clause theme of the contract template;The contract template is filled based on the template clause theme and the clause theme of the target contract terms;The filled contract template is sent to the contract customization and requests corresponding terminal.The invention also discloses a kind of contract text customizing device, equipment and readable storage medium storing program for executing.The present invention customizes request to contract by knowledge mapping and carries out data analysis, realize the customization output of contract text, the clause keyword that can be provided according to user is that user recommends suitable contract text, it is ensured that filled contract template can satisfy the demand of user, improve user experience.

Description

Contract text method for customizing, device, equipment and readable storage medium storing program for executing
Technical field
The present invention relates to technical field of data processing more particularly to a kind of contract text method for customizing, device, equipment and can Read storage medium.
Background technique
Contract management system refers to foundation on Information Technology Foundation, using the advanced management thought of modern enterprise, for enterprise Industry provides comprehensive, systematization the contract management tool of decision, plan, control and business performance assessment.Contract management system A core function be embodied in and quickly generate contract text, to help contract draftsman and administrative staff simple and direct, efficiently complete At different type contract text draw up and examination and approval work.
The contract management system of current main-stream generallys use the mode of preset contract template to help contract draftsman, solves The fast custom problem of different type contract text.Using aforesaid way, user needs first to select preset contract template, then Contract text is generated according to the contract template of selection, the contract text for being unable to ensure generation can satisfy the demand of user.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill Art.
Summary of the invention
The main purpose of the present invention is to provide a kind of contract text method for customizing, device, equipment and readable storage medium storing program for executing, Aim to solve the problem that the generating mode of existing contract is unable to ensure the technical issues of contract text of generation can satisfy the demand of user.
To achieve the above object, the present invention provides a kind of contract text method for customizing, the contract text method for customizing packet Include following steps:
When receiving contract customization request, corresponding contract customized information is requested based on contract customization, in contract It is inquired in clause knowledge mapping, to obtain the corresponding target contract terms of the clause keyword;
Obtain the corresponding contract template of the contract customized information and the corresponding template clause master of the contract template Topic;
The contract template is filled based on the template clause theme and the clause theme of the target contract terms;
The filled contract template is sent to the contract customization and requests corresponding terminal.
Further, the contract customized information includes clause keyword, described to be corresponded to based on contract customization request Contract customized information, inquired in contract terms knowledge mapping, closed with obtaining the corresponding target of the clause keyword Include: with the step of clause
Word-based vector model is trained clause keyword, to obtain the corresponding term vector of the clause keyword;
Calculate the similarity between the term vector and the default term vector of contract terms knowledge mapping;
The target similarity for being greater than default similarity in the similarity is obtained, and it is corresponding to obtain the target similarity Default term vector, wherein if target similarity include it is multiple, using the maximum similarity in the similarity as the target Similarity;
The corresponding default contract terms of term vector will be preset described in the contract terms knowledge mapping as the target Contract terms.
Further, described that institute is filled based on the template clause theme and the clause theme of the target contract terms The step of stating contract template include:
Based on the classification of the template clause theme, the contract template is split, to obtain contract module;
Based on the classification of the clause theme, the target contract terms are filled to the contract module respectively.
Further, the contract customized information includes contract main body and/or clause keyword.
Further, described when receiving contract customization request, if corresponding contract customization is requested in contract customization Information includes clause keyword, then is inquired in contract terms knowledge mapping based on the clause keyword, to obtain Before the step of stating clause keyword corresponding target contract terms, the contract text method for customizing further include:
Contract text data are being got, pairing carries out text cutting with text data, to obtain contract text data institute Corresponding first contract terms;
Cleaning operation is carried out to first contract terms, the repetition clause in first contract terms is removed, to obtain Obtain the second contract terms;
Clause theme based on the second contract terms by agent model determination and is deleted in second contract terms Exceptional clause, to obtain third contract terms;
The contract terms knowledge mapping is generated based on the third contract terms.
Further, described the step of generating the contract terms knowledge mapping based on the third contract terms, includes:
Based on default stop words, stop words filter operation is carried out to the third contract terms, to obtain clause information;
Based on word, each corresponding contract main body of word and each word pair in the clause information The clause main body answered generates the contract terms knowledge mapping.
Further, the word based in the clause information, the corresponding contract main body of each word and The corresponding clause main body of each word, the step of generating the contract terms knowledge mapping include:
Word-based vector model is trained the word, to obtain the corresponding term vector of the word;
The corresponding clause main body of the word is determined based on third contract terms belonging to the word, and is based on institute's predicate The corresponding clause main body of language determines contract template belonging to the word;
Based on the word, the corresponding term vector of the word, the corresponding clause main body of the word and the word Corresponding contract template generates the contract terms knowledge mapping.
In addition, to achieve the above object, the present invention also provides a kind of contract text customizing device, the contract text customization Device includes:
Enquiry module, for requesting corresponding contract to customize if the contract customizes when receiving contract customization request Information includes clause keyword, then is inquired in contract terms knowledge mapping based on the clause keyword, to obtain State the corresponding target contract terms of clause keyword;
Module is obtained, it is corresponding for obtaining the corresponding contract template of the contract customized information and the contract template Template clause theme;
Module is filled, for filling institute based on the template clause theme and the clause theme of the target contract terms State contract template;
Sending module requests corresponding terminal for the filled contract template to be sent to the contract customization.
In addition, to achieve the above object, the present invention also provides a kind of contract text equipment for customizing, the contract text customization Equipment includes: that the contract text that can run on the memory and on the processor of memory, processor and being stored in is fixed Processing procedure sequence, the contract text custom program realize the step of contract text method for customizing above-mentioned when being executed by the processor Suddenly.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium Contract text custom program is stored on storage medium, the contract text custom program is realized above-mentioned when being executed by processor The step of contract text method for customizing.
The present invention is by requesting corresponding contract customization letter based on contract customization when receiving contract customization request Breath, is inquired in contract terms knowledge mapping, to obtain the corresponding target contract terms of the clause keyword, is then obtained The corresponding contract template of the contract customized information and the corresponding template clause theme of the contract template are taken, is then based on The template clause theme and the clause theme of the target contract terms fill the contract template, then will be filled The contract template is sent to the contract customization and requests corresponding terminal, is counted by knowledge mapping to contract customization request According to analysis, the customization output of contract text is realized, the clause keyword that can be provided according to user is that user recommends properly Contract text, it is ensured that filled contract template can satisfy the demand of user, improve user experience.
Detailed description of the invention
Fig. 1 is the structural representation of contract text equipment for customizing in hardware running environment that the embodiment of the present invention is related to Figure;
Fig. 2 is the flow diagram of contract text method for customizing first embodiment of the present invention;
Fig. 3 is to be known based on the clause keyword in contract terms in contract text method for customizing second embodiment of the present invention Know in map and is inquired, refinement process signal the step of to obtain the clause keyword corresponding target contract terms Figure;
Fig. 4 is that the template clause theme and the mesh are based in contract text method for customizing 3rd embodiment of the present invention The refinement flow diagram for the step of clause theme of mark contract terms fills the contract template;
Fig. 5 is the flow diagram of contract text method for customizing fourth embodiment of the present invention;
Fig. 6 is to generate the conjunction based on the third contract terms in the 5th embodiment of contract text method for customizing of the present invention With the refinement flow diagram of clause knowledge mapping;
Fig. 7 is in contract text method for customizing sixth embodiment of the present invention based on the word, each in the clause information The corresponding contract main body of word and the corresponding clause main body of each word, generate the contract terms knowledge mapping The step of refinement flow diagram;
Fig. 8 is the functional block diagram of one embodiment of contract text customizing device of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, Fig. 1 is contract text equipment for customizing in hardware running environment that the embodiment of the present invention is related to Structural schematic diagram.
As shown in Figure 1, contract text equipment for customizing of the embodiment of the present invention may include: processor 1001, such as CPU, net Network interface 1004, user interface 1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing these Connection communication between component.User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional user interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 is optional May include standard wireline interface and wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, It is also possible to stable memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally may be used also To be independently of the storage device of aforementioned processor 1001.
It will be understood by those skilled in the art that contract text equipment for customizing structure shown in Fig. 1 is not constituted to contract The restriction of text equipment for customizing may include perhaps combining certain components or different than illustrating more or fewer components Component layout.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium Believe module, Subscriber Interface Module SIM and contract text custom program.
In contract text equipment for customizing shown in Fig. 1, network interface 1004 is mainly used for connecting background server, and rear Platform server carries out data communication;User interface 1003 is mainly used for connecting client (user terminal), carries out data with client Communication;And processor 1001 can be used for calling the contract text custom program stored in memory 1005, and execute following close With the operation in each embodiment of text method for customizing.
The present invention also provides a kind of contract text method for customizing, are contract text method for customizing of the present invention referring to Fig. 2, Fig. 2 The flow diagram of first embodiment.
In the present embodiment, which includes:
Step S100 requests corresponding contract customization letter based on contract customization when receiving contract customization request Breath, is inquired in contract terms knowledge mapping, to obtain the corresponding target contract terms of the clause keyword;
In the present embodiment, user can send contract customization request to contract text by mobile terminal or PC and customize dress It sets, for example, sending contract customization request to contract text customizing device by the APP of mobile terminal.
Contract customization request is being received, contract customization request is being parsed to obtain contract customized information, is then based on closing Corresponding contract customized information is requested with customization, is inquired in contract terms knowledge mapping, it is crucial to obtain the clause The corresponding target contract terms of word.
Specifically, if contract customized information includes clause keyword, word-based vector model carries out clause keyword Training, to obtain the corresponding term vector of the clause keyword.Determine that contract terms knowledge mapping is crucial with the presence or absence of the clause The corresponding term vector of word, and if it exists, then closed contract terms corresponding to the contract terms knowledge mapping term vector as clause The corresponding target contract terms of key word;Alternatively, calculating the phase between term vector and the default term vector of contract terms knowledge mapping Like degree, the target similarity for being greater than default similarity in the similarity is obtained, and it is corresponding default to obtain the target similarity Term vector;It will include the default contract terms work of the corresponding default term vector of target similarity in the contract terms knowledge mapping For target contract terms.
It should be noted that the default contract terms including the corresponding default term vector of target similarity are a plurality of and more Item presets the similarity existed in the similarity between contract terms greater than preset value, then corresponding in the similarity for being greater than preset value Default contract terms in, select the maximum default contract terms of similarity as a target contract terms.
If the contract customized information includes contract main body and the contract customized information does not include clause keyword, It is inquired in contract terms knowledge mapping based on the contract main body, is closed with obtaining the corresponding target of the clause keyword Same clause specifically determines contract template based on the contract main body, and contract template is inquired in contract terms knowledge mapping and is wrapped All contract terms included are as target contract terms.
Step S200 obtains the corresponding contract template of the contract customized information and the corresponding mould of the contract template Lath money theme;
In the present embodiment, when getting target contract terms, the corresponding contract mould of acquisition contract customized information is determined Plate then obtains the corresponding template clause theme of the contract template in contract terms knowledge mapping.
Specifically, if contract customized information includes contract main body, based on contract main body is in contract terms knowledge mapping It is inquired, to obtain contract template;If contract customized information does not include contract main body, according to clause keyword in contract item It is inquired in money knowledge mapping, to obtain contract template.
It should be noted that including being preset corresponding to preset keyword, preset keyword in contract terms knowledge mapping Default contract terms (such as clause theme of default contract terms), default contract terms belonging to term vector, preset keyword The information such as affiliated contract template.
Step S300 fills the conjunction based on the template clause theme and the clause theme of the target contract terms Same template;
In the present embodiment, when getting template clause theme, template clause theme and target contract terms are based on Clause theme fill the contract template, the clause theme and a certain mould in contract template of even a certain target contract terms Lath money theme is consistent, then area filling target contract terms belonging to the template clause theme in contract template.
It should be noted that if the clause master of a plurality of contract terms in a certain template clause theme and target contract terms Topic is consistent, then the select button of a plurality of contract terms is generated in contract template, so that user is selected wherein by select button A contract terms.
The filled contract template is sent to the contract customization and requests corresponding terminal by step S400.
In the present embodiment, when contract template fills completion, the filled contract template is sent to contract and is determined System requests corresponding terminal, which shows the filled contract template when receiving filled contract template, It is convenient for the user to operate so that user consults.
The contract text method for customizing that the present embodiment proposes, by being based on the conjunction when receiving contract customization request Corresponding contract customized information is requested with customization, is inquired in contract terms knowledge mapping, it is crucial to obtain the clause The corresponding target contract terms of word then obtain the corresponding contract template of the contract customized information and the contract template Corresponding template clause theme is then filled based on the template clause theme and the clause theme of the target contract terms Then the filled contract template is sent to the contract customization and requests corresponding terminal, passed through by the contract template Knowledge mapping customizes request to contract and carries out data analysis, realizes the customization output of contract text, can be mentioned according to user The clause keyword of confession is that user recommends suitable contract text, it is ensured that filled contract template can satisfy the need of user It asks, improves user experience.
Based on first embodiment, the second embodiment of contract text method for customizing of the present invention is proposed, referring to Fig. 3, in this reality It applies in example, the contract customized information includes clause keyword, and step S100 includes:
Step S110, word-based vector model are trained clause keyword, corresponding to obtain the clause keyword Term vector;
Step S120 calculates the similarity between the term vector and the default term vector of contract terms knowledge mapping;
Step S130 obtains the target similarity for being greater than default similarity in the similarity, and obtains the target phase Like the corresponding default term vector of degree;
Step S140, will described in the contract terms knowledge mapping preset the corresponding default contract terms of term vector as The target contract terms.
In the present embodiment, it if it includes clause keyword that corresponding contract customized information is requested in contract customization, is based on Term vector model is trained clause keyword, to obtain the corresponding term vector of the clause keyword.Getting clause When the corresponding term vector of keyword, the similarity between term vector and the default term vector of contract terms knowledge mapping is calculated, it should Similarity refers to the cosine value between term vector and default term vector, is specifically calculated using cosine formula.Then, institute is obtained The target similarity for being greater than default similarity in similarity is stated, and obtains the corresponding default term vector of the target similarity, most Contract terms knowledge mapping is inquired according to default term vector afterwards, it is corresponding by term vector is preset described in contract terms knowledge mapping Contract terms are preset as the target contract terms.
It should be noted that if target similarity include it is multiple, then can be by the corresponding a plurality of default contract of target similarity Clause is used as target contract terms, or only using the corresponding default contract terms of maximum target similarity as target contract Clause.
Wherein, which is vector corresponding to each word in clause keyword.The term vector model mainly makes It is trained with CBOW and SKIP hypothesis, the unrecognized word of computer turns in the contract terms after adjusting stop words Change the identifiable vector of computer into;For example, the contract terms after adjusting stop words are trained using Word2Vec, it should Word2Vec is the neural network model for generating term vector, including CBOW and SKIP two ways.
The contract text method for customizing that the present embodiment proposes, instructs clause keyword by word-based vector model Practice, to obtain the corresponding term vector of the clause keyword, then calculates the pre- of the term vector and contract terms knowledge mapping If the similarity between term vector, the target similarity for being greater than default similarity in the similarity is then obtained, and obtain institute The corresponding default term vector of target similarity is stated, it is corresponding finally term vector will to be preset described in the contract terms knowledge mapping Default contract terms, can be according to the corresponding term vector of clause keyword accurately in contract terms as the target contract terms Knowledge mapping inquires target contract terms, improves the accuracy of target contract terms inquiry, and then improve the filled conjunction With the relevance between template and clause keyword.
Based on first embodiment, the 3rd embodiment of contract text method for customizing of the present invention is proposed, referring to Fig. 4, in this reality It applies in example, step S300 includes:
Step S310 splits the contract template based on the classification of the template clause theme, to obtain contract module;
Step S320 is respectively filled the target contract terms to the contract based on the classification of the clause theme Module.
In the present embodiment, when determining contract template, based on the classification of the template clause theme, the contract is split Template, to obtain contract module, specifically, based on contract module clause theme contract template splits into n part in template, each Part corresponds to one or multiple template clause theme, then the classification and each conjunction of the clause theme based on target contract terms With template clause theme included by module, the target contract terms are filled to the contract module respectively.
After the filled contract template to be sent to the contract customization and requests corresponding terminal, terminal is shown The filled contract template, for each contract module in contract template, user be may choose whether using the contract module, If user uses all contract modules, contract text is generated based on the filled contract template;If user selects not Contract module is not used using existing in certain contract module, that is, contract templates therein, then terminal is receiving user's selection When not using contract module, display is not using the clause theme of the target contract terms in contract module, so that user is according to this The clause theme confirmation position using the target contract terms in contract module in contract template, receive user according to It is true based on user when the position not using the target contract terms in contract module in contract template of clause theme confirmation The position recognized, adjusts the position of each target contract terms in filled contract template, and generates contract text.If user is not Using the contract template, then displaying target contract terms, so that user arranges target contract terms, and are based on after arranging Target contract terms generate contract text.
The contract text method for customizing that the present embodiment proposes splits institute by the classification based on the template clause theme Contract template is stated, to obtain contract module, classification then based on the clause theme respectively fills out the target contract terms It is charged to the contract module, based on contract module can realize the filling of contract template, in order to user's operation contract module, into One step improves user experience.
Based on first embodiment, the fourth embodiment of contract text method for customizing of the present invention is proposed, referring to Fig. 5, in this reality It applies in example, before step S100, the contract text method for customizing further include:
Step S500 is getting contract text data, and pairing carries out text cutting with text data, to obtain contract text First contract terms corresponding to notebook data;
Step S600 carries out cleaning operation to first contract terms, removes the repetition in first contract terms Clause, to obtain the second contract terms;
Step S700, the clause theme based on the second contract terms pass through agent model determination and delete described second and close With the exceptional clause in clause, to obtain third contract terms;
Step S800 generates the contract terms knowledge mapping based on the third contract terms.
In the present embodiment, contract text data are being got, pairing carries out text cutting with text data, to be closed With the first contract terms corresponding to text data;Wherein, if the contract text data are the contract dataset of picture format, first Pairing carries out OCR with text data and identifies to obtain contract text, text cutting is then carried out, for example, cutting using existing text It cuts algorithm and carries out text cutting, to ensure that the data after cutting are complete first contract terms, for example, after cutting It include a fullstop in data.Cleaning operation then is carried out to the contract terms, removes the repetition item in the contract terms Money, to obtain the contract terms to be analyzed.Cleaning operation then is carried out to the first contract terms, is removed in the first contract terms Repetition clause, to obtain the second contract terms.
When getting the second contract terms, the clause theme of the second contract terms is obtained, master is passed through based on clause theme Body Model traverses the second contract terms, with the exceptional clause in determination second contract terms, and deletes described Exceptional clause in two contract terms, to obtain third contract terms.Specifically, if the clause theme of the second contract terms and master Clause theme in body Model is consistent, then second contract terms are exceptional clause.
Finally, generating the contract terms knowledge mapping based on the third contract terms, it is based specifically on default deactivate Word carries out stop words filter operation to third contract terms, to obtain clause information, and based on the word in the clause information Language, each corresponding contract main body of word and the corresponding clause main body of each word generate contract terms knowledge Map.
It should be noted that agent model includes the clause theme of a plurality of default exceptional clause, by being based on clause theme The agent model is traversed, can determine the exceptional clause in contract terms to be evaluated roughly.
It should be noted that obtaining the corpus needed using crawler, targetedly crawl for different type contract Clause information (corpus), due to the particularity and preciseness of contract itself, and online contract dataset itself is rare, therefore services Device mainly crawls lawyer's class website, and the data of the websites such as document class website and judgement class website carry out the data crawled Parsing, obtains the contract text data of each document in the data.
Also, the corpus needed periodically can be obtained using crawler, to obtain newest contract text data, and based on newest Contract text data contract of novation clause knowledge mapping first obtain newest contract in contract of novation clause knowledge mapping The corresponding contract terms of text data then carry out cleaning operation, and again based on the contract terms in contract terms knowledge mapping Contract terms after secondary corresponding cleaning operation are cleaned, to remove the contract terms after cleaning operation and contract terms knowledge graph The duplicate contract terms of contract terms in spectrum, finally, using the contract terms after cleaning as the second contract terms, and execute step Rapid S700.
The contract text method for customizing that the present embodiment proposes carries out text to contract dataset by obtaining contract text data This cutting, to obtain the first contract terms corresponding to contract dataset;Then cleaning operation is carried out to first contract terms, The repetition clause in first contract terms is removed, to obtain the second contract terms;Item then based on the second contract terms Money theme by agent model determination and deletes the exceptional clause in second contract terms, to obtain third contract terms; It is then based on the third contract terms and generates the contract terms knowledge mapping, and then can based on contract establish text data Contract terms knowledge mapping further improves contract text customization in order to carry out the retrieval and inquiry of contract terms Efficiency.
Based on fourth embodiment, the 5th embodiment of contract text method for customizing of the present invention is proposed, referring to Fig. 6, in this reality It applies in example, step S800 includes:
Step S810 carries out stop words filter operation to the third contract terms, to obtain item based on default stop words Money information;
Step S820, based on the word in the clause information, the corresponding contract main body of each word and each The corresponding clause main body of the word, generates the contract terms knowledge mapping.
In the present embodiment, when getting third contract, based on default stop words, third contract terms are stopped Word filter operation, to obtain clause information, i.e. stop words in exceptional clause after removal cleaning specifically traverses clause Information will be traversed currently if existing in the clause information currently traversed and presetting the consistent word of stop words in deactivated dictionary Clause information in removed with the consistent word of stop words in default deactivated dictionary.Wherein, it is stored in the default deactivated dictionary Default stop words, which includes the exclusive stop words without legal sense, and including conjunction, preposition etc. Conventional stop words.
The contract text method for customizing that the present embodiment proposes, by being based on default stop words, to the third contract terms Stop words filter operation is carried out, to obtain clause information, then based on word, each word pair in the clause information The contract main body and the corresponding clause main body of each word answered, generate the contract terms knowledge mapping, pass through basis Filtered third contract terms generate contract terms knowledge mapping, it can be ensured that are not present and conjunction in contract terms knowledge mapping The unrelated word of same substantive content, and then ensure the accuracy of contract terms inquiry, further improve contract text customization Efficiency.
Based on the 5th embodiment, the sixth embodiment of contract text method for customizing of the present invention is proposed, referring to Fig. 7, in this reality It applies in example, step S820 includes:
Step S821, word-based vector model are trained the word, to obtain the corresponding term vector of the word;
Step S822 determines the corresponding clause main body of the word based on third contract terms belonging to the word, and Contract template belonging to the word is determined based on the corresponding clause main body of the word;
Step S823, based on the word, the corresponding term vector of the word, the corresponding clause main body of the word and The corresponding contract template of the word, generates the contract terms knowledge mapping.
In the present embodiment, word-based vector model is trained word, to obtain the corresponding term vector of each word. Then the third contract terms according to belonging to word determine the corresponding clause main body of each word, i.e., close each word in third Clause theme with the contract terms in clause is as the corresponding clause main body of each word, based on contract template clause in template Corresponding relationship between theme clause main body corresponding with each word, determines contract template belonging to each word, wherein if A certain word belongs to multiple contract terms in third contract terms, then the corresponding clause main body of the word includes multiple, if certain Template clause theme in the corresponding clause main body of one word and multiple contract templates, then contract template belonging to the word include It is multiple.
Finally, based on the word, the corresponding term vector of the word, the corresponding clause main body of the word and described The corresponding contract template of word generates the contract terms knowledge mapping, i.e., includes that word is (default in contract terms knowledge mapping Keyword), the corresponding term vector of word (default term vector corresponding to preset keyword), clause master belonging to preset keyword The information such as contract template (the corresponding contract template of word) belonging to (the corresponding clause main body of word), default contract terms are inscribed, The storage organization of contract terms knowledge mapping is " noun-relationship-noun ", for example, word (preset keyword), the word of the word Vector, clause theme belonging to the word, contract template belonging to the word etc..
Further, in other embodiments, the similarity between each term vector can also be calculated, and determines similarity Word corresponding greater than the term vector of preset threshold;And in contract terms knowledge mapping, storage similarity is greater than preset threshold Word, corresponding similarity and the corresponding similar word of the similarity.
The contract text method for customizing that the present embodiment proposes, is trained the word by word-based vector model, To obtain the corresponding term vector of the word;Then determine that the word is corresponding based on third contract terms belonging to the word Clause main body, and contract template belonging to the word is determined based on the corresponding clause main body of the word, is then based on institute Predicate language, the corresponding term vector of the word, the corresponding clause main body of the word and the corresponding contract template of the word, The contract terms knowledge mapping is generated, the contract terms knowledge mapping can be generated according to the word of third contract terms, And then ensure the accuracy of contract terms inquiry, further improve the efficiency of contract text customization.
It is the functional block diagram of one embodiment of contract text customizing device of the present invention referring to Fig. 8, Fig. 8.
In the present embodiment, contract text customizing device includes:
Enquiry module 10, for requesting corresponding contract fixed if the contract customizes when receiving contract customization request Information processed includes clause keyword, then is inquired in contract terms knowledge mapping based on the clause keyword, to obtain The corresponding target contract terms of the clause keyword;
Module 20 is obtained, for obtaining the corresponding contract template of the contract customized information and the contract template pair The template clause theme answered;
Module 30 is filled, for based on the template clause theme and the filling of the clause theme of the target contract terms The contract template;
Sending module 40 requests corresponding end for the filled contract template to be sent to the contract customization End.
It should be noted that each reality of each embodiment of contract text customizing device and said contract text method for customizing It is essentially identical to apply example, in this not go into detail.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium On be stored with contract text custom program, realize when the contract text custom program is executed by processor as any one of above-mentioned The step of described contract text method for customizing.
Each embodiment base of computer readable storage medium specific embodiment of the present invention and said contract text method for customizing This is identical, and in this not go into detail.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of contract text method for customizing, which is characterized in that the contract text method for customizing the following steps are included:
When receiving contract customization request, corresponding contract customized information is requested based on contract customization, in contract terms It is inquired in knowledge mapping, to obtain the corresponding target contract terms of the clause keyword;
Obtain the corresponding contract template of the contract customized information and the corresponding template clause theme of the contract template;
The contract template is filled based on the template clause theme and the clause theme of the target contract terms;
The filled contract template is sent to the contract customization and requests corresponding terminal.
2. contract text method for customizing as described in claim 1, which is characterized in that the contract customized information includes that clause closes Key word, it is described that corresponding contract customized information is requested based on contract customization, it is inquired in contract terms knowledge mapping, Include: the step of the clause keyword corresponding target contract terms to obtain
Word-based vector model is trained clause keyword, to obtain the corresponding term vector of the clause keyword;
Calculate the similarity between the term vector and the default term vector of contract terms knowledge mapping;
The target similarity for being greater than default similarity in the similarity is obtained, and it is corresponding default to obtain the target similarity Term vector;
The corresponding default contract terms of term vector will be preset described in the contract terms knowledge mapping as the target contract Clause.
3. contract text method for customizing as described in claim 1, which is characterized in that it is described based on the template clause theme with And the target contract terms clause theme fill the contract template the step of include:
Based on the classification of the template clause theme, the contract template is split, to obtain contract module;
Based on the classification of the clause theme, the target contract terms are filled to the contract module respectively.
4. contract text method for customizing as described in claim 1, which is characterized in that the contract customized information includes contract master Body and/or clause keyword.
5. such as the described in any item contract text method for customizing of Claims 1-4, which is characterized in that described to receive contract When customization request, if it includes clause keyword that corresponding contract customized information is requested in contract customization, it is based on the clause Keyword is inquired in contract terms knowledge mapping, to obtain the step of the corresponding target contract terms of the clause keyword Before rapid, the contract text method for customizing further include:
Contract text data are being got, pairing carries out text cutting with text data, to obtain corresponding to contract text data The first contract terms;
Cleaning operation is carried out to first contract terms, removes the repetition clause in first contract terms, to obtain the Two contract terms;
Clause theme based on the second contract terms by agent model determination and deletes the exception in second contract terms Clause, to obtain third contract terms;
The contract terms knowledge mapping is generated based on the third contract terms.
6. contract text method for customizing as claimed in claim 5, which is characterized in that described raw based on the third contract terms Include: at the step of contract terms knowledge mapping
Based on default stop words, stop words filter operation is carried out to the third contract terms, to obtain clause information;
Based in the clause information word, each corresponding contract main body of word and each word it is corresponding Clause main body generates the contract terms knowledge mapping.
7. contract text method for customizing as claimed in claim 6, which is characterized in that the word based in the clause information Language, each corresponding contract main body of word and the corresponding clause main body of each word, generate the contract terms The step of knowledge mapping includes:
Word-based vector model is trained the word, to obtain the corresponding term vector of the word;
The corresponding clause main body of the word is determined based on third contract terms belonging to the word, and is based on the word pair The clause main body answered determines contract template belonging to the word;
It is corresponding based on the word, the corresponding term vector of the word, the corresponding clause main body of the word and the word Contract template, generate the contract terms knowledge mapping.
8. a kind of contract text customizing device, which is characterized in that the contract text customizing device includes:
Enquiry module, for when receiving contract customization request, if corresponding contract customized information is requested in contract customization Including clause keyword, then inquired in contract terms knowledge mapping based on the clause keyword, to obtain the item The corresponding target contract terms of money keyword;
Module is obtained, for obtaining the corresponding contract template of the contract customized information and the corresponding mould of the contract template Lath money theme;
Module is filled, for filling the conjunction based on the template clause theme and the clause theme of the target contract terms Same template;
Sending module requests corresponding terminal for the filled contract template to be sent to the contract customization.
9. a kind of contract text equipment for customizing, which is characterized in that the contract text equipment for customizing includes: memory, processor And it is stored in the contract text custom program that can be run on the memory and on the processor, the contract text customization The step of contract text method for customizing as described in any one of claims 1 to 7 is realized when program is executed by the processor.
10. a kind of computer readable storage medium, which is characterized in that be stored with contract text on the computer readable storage medium This custom program is realized as described in any one of claims 1 to 7 when the contract text custom program is executed by processor The step of contract text method for customizing.
CN201910206044.2A 2019-03-16 2019-03-16 Contract text customization method, device, equipment and readable storage medium Active CN110069763B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910206044.2A CN110069763B (en) 2019-03-16 2019-03-16 Contract text customization method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910206044.2A CN110069763B (en) 2019-03-16 2019-03-16 Contract text customization method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN110069763A true CN110069763A (en) 2019-07-30
CN110069763B CN110069763B (en) 2024-04-30

Family

ID=67366339

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910206044.2A Active CN110069763B (en) 2019-03-16 2019-03-16 Contract text customization method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110069763B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110689459A (en) * 2019-09-27 2020-01-14 北京百度网讯科技有限公司 Contract processing method, contract processing device, contract processing equipment and storage medium
CN111814457A (en) * 2020-05-30 2020-10-23 国网上海市电力公司 Power grid engineering contract text generation method
CN111932412A (en) * 2020-09-04 2020-11-13 汪宏杰 Contract drafting and revising method, device, storage medium and equipment
CN112733515A (en) * 2020-12-31 2021-04-30 贝壳技术有限公司 Text generation method and device, electronic equipment and readable storage medium
CN113393201A (en) * 2020-03-12 2021-09-14 阿里巴巴集团控股有限公司 Contract processing system and method and electronic equipment
CN116842138A (en) * 2023-07-24 2023-10-03 上海诚狐信息科技有限公司 Document-based retrieval method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855304A (en) * 2012-08-20 2013-01-02 清华大学 Variable-clause electronic contract automatic generation method in business to customer (B2C) transaction
CN107908671A (en) * 2017-10-25 2018-04-13 南京擎盾信息科技有限公司 Knowledge mapping construction method and system based on law data
CN108009299A (en) * 2017-12-28 2018-05-08 北京市律典通科技有限公司 Law tries method and device for business processing
CN109325729A (en) * 2018-08-21 2019-02-12 平安科技(深圳)有限公司 A kind of method and server generating electronic contract

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855304A (en) * 2012-08-20 2013-01-02 清华大学 Variable-clause electronic contract automatic generation method in business to customer (B2C) transaction
CN107908671A (en) * 2017-10-25 2018-04-13 南京擎盾信息科技有限公司 Knowledge mapping construction method and system based on law data
CN108009299A (en) * 2017-12-28 2018-05-08 北京市律典通科技有限公司 Law tries method and device for business processing
CN109325729A (en) * 2018-08-21 2019-02-12 平安科技(深圳)有限公司 A kind of method and server generating electronic contract

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110689459A (en) * 2019-09-27 2020-01-14 北京百度网讯科技有限公司 Contract processing method, contract processing device, contract processing equipment and storage medium
CN110689459B (en) * 2019-09-27 2022-12-27 北京百度网讯科技有限公司 Contract processing method, contract processing device, contract processing equipment and storage medium
CN113393201A (en) * 2020-03-12 2021-09-14 阿里巴巴集团控股有限公司 Contract processing system and method and electronic equipment
CN111814457A (en) * 2020-05-30 2020-10-23 国网上海市电力公司 Power grid engineering contract text generation method
CN111932412A (en) * 2020-09-04 2020-11-13 汪宏杰 Contract drafting and revising method, device, storage medium and equipment
CN112733515A (en) * 2020-12-31 2021-04-30 贝壳技术有限公司 Text generation method and device, electronic equipment and readable storage medium
CN116842138A (en) * 2023-07-24 2023-10-03 上海诚狐信息科技有限公司 Document-based retrieval method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110069763B (en) 2024-04-30

Similar Documents

Publication Publication Date Title
CN110069763A (en) Contract text method for customizing, device, equipment and readable storage medium storing program for executing
KR102462365B1 (en) Method and apparatus for predicting text input based on user demographic information and context information
US11080493B2 (en) Translation review workflow systems and methods
KR100462292B1 (en) A method for providing search results list based on importance information and a system thereof
US20190180098A1 (en) Content based transformation for digital documents
US11163811B2 (en) Ranking of documents based on their semantic richness
CN105988996B (en) Index file generation method and device
US8838728B2 (en) Method, system, apparatus, network entity and computer program product for providing a user with an editable webpage
WO2018024166A1 (en) Candidate input determination method, input suggestion method, and electronic apparatus
US20190102472A1 (en) Systems and methods for generating a resource preview in a communication session
CN104899315A (en) Method and device for pushing user information
US9329778B2 (en) Supplementing a virtual input keyboard
KR101450453B1 (en) Method and apparatus for recommending contents
CN109155804A (en) Approaches to IM and system based on card
US8489590B2 (en) Cross-market model adaptation with pairwise preference data
CN105408894A (en) Method and device for determining user identity category
CN116842151A (en) Question-answer model construction, knowledge base creation, question-answer searching method and electronic equipment
CN114365118A (en) Knowledge graph-based queries in an artificial intelligence chat robot with basic query element detection and graphical path generation
CN111932198B (en) File auditing method and related products
CN106462588B (en) Content creation from extracted content
CN110348669B (en) Intelligent rule generation method, intelligent rule generation device, computer equipment and storage medium
CN111930891A (en) Retrieval text expansion method based on knowledge graph and related device
CN116402022A (en) Document generation method, device, electronic equipment and storage medium
KR102460438B1 (en) A document information processing system and a document information processing method for extracting summary sentences and keywords
KR20160129548A (en) System and method for providing customized research and development

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
GR01 Patent grant
GR01 Patent grant