[go: up one dir, main page]

CN112148858A - Contract analysis method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN112148858A
CN112148858A CN202011015186.XA CN202011015186A CN112148858A CN 112148858 A CN112148858 A CN 112148858A CN 202011015186 A CN202011015186 A CN 202011015186A CN 112148858 A CN112148858 A CN 112148858A
Authority
CN
China
Prior art keywords
contract
content
analyzed
keywords
preset
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
CN202011015186.XA
Other languages
Chinese (zh)
Inventor
张发恩
魏畅毅
王建华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Innovation Qizhi Qingdao Technology Co ltd
Original Assignee
Innovation Qizhi Qingdao Technology 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 Innovation Qizhi Qingdao Technology Co ltd filed Critical Innovation Qizhi Qingdao Technology Co ltd
Priority to CN202011015186.XA priority Critical patent/CN112148858A/en
Publication of CN112148858A publication Critical patent/CN112148858A/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/33Querying
    • G06F16/332Query formulation
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/289Phrasal analysis, e.g. finite state techniques or chunking
    • 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)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Technology Law (AREA)
  • Economics (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application provides a contract analysis method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring a contract to be analyzed; extracting content about contract mechanisms from the contract to be analyzed; and processing the content and the legal provision corresponding to the content by using a preset mechanism analysis model to determine whether the content meets the provision of the legal provision. It can be understood that after the content of the contract mechanism is automatically extracted from the contract, whether the content of the contract mechanism conforms to the provision of the legal provision or not can be automatically analyzed through the preset mechanism analysis model, manual confirmation is not needed, the confirmation efficiency of the contract is improved, and the drafting efficiency of the contract is also improved.

Description

Contract analysis method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a contract analysis method and apparatus, an electronic device, and a storage medium.
Background
In the contract document, the parties A and B need to agree on the contract mechanism in the contract, and usually the party A first draws up the contract. For the second party, in order to ensure the interest of the second party, the second party needs to confirm the contract mechanism to ensure that the contents conform to the provisions of the legal provisions. However, such confirmation can take a significant amount of time and effort from the second party, resulting in inefficient contract confirmation and drafting.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and an apparatus for analyzing a contract, an electronic device, and a storage medium, so as to improve efficiency of contract confirmation and drafting.
In a first aspect, an embodiment of the present application provides a method for analyzing a contract, where the method includes: acquiring a contract to be analyzed; extracting content about contract mechanisms from the contract to be analyzed; and processing the content and the legal provision corresponding to the content by using a preset mechanism analysis model to determine whether the content meets the provision of the legal provision.
In the embodiment of the application, after the content of the contract mechanism is automatically extracted from the contract, whether the content of the contract mechanism conforms to the provision of legal provisions can be automatically analyzed through the preset mechanism analysis model, manual confirmation is not needed, the confirmation efficiency of the contract is improved, and the drafting efficiency of the contract is also improved.
With reference to the first aspect, in a first possible implementation manner, extracting content about a contract mechanism from the contract to be analyzed includes: and matching the contract to be analyzed with each preset keyword for describing a contract mechanism to extract the content.
In the embodiment of the application, each preset keyword for describing the contract mechanism is preset, so that the content about the contract mechanism can be quickly extracted through keyword matching.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner, extracting the content by matching the contract to be analyzed with preset keywords used for describing a contract mechanism includes: matching the contract to be analyzed with the preset keywords to determine corresponding keywords in the contract to be analyzed, wherein the corresponding keywords are the same as at least part of the preset keywords; and extracting sentences or paragraphs where the corresponding keywords in the contract to be analyzed are located, wherein the sentences or paragraphs form the content.
In the embodiment of the application, the sentence or paragraph where the corresponding keyword is located is integrally extracted, so that content omission can be avoided.
With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner, after determining a corresponding keyword in the contract to be analyzed, and before processing the content and the legal provision corresponding to the content by using a preset mechanism analysis model, the method further includes: and traversing preset legal provisions by using the at least part of keywords to determine the legal provisions containing the at least part of keywords, wherein the legal provisions containing the at least part of keywords are the legal provisions corresponding to the content.
In the embodiment of the application, since the keywords are also present in the corresponding legal provisions, the corresponding legal provisions can be quickly found through keyword matching.
With reference to the second possible implementation manner of the first aspect, in a fourth possible implementation manner, after determining a corresponding keyword in the contract to be analyzed, and before processing the content and the legal provision corresponding to the content by using a preset mechanism analysis model, the method further includes: and traversing the pre-established corresponding relation between each preset keyword and each legal provision, and determining the legal provisions corresponding to at least part of the keywords, wherein the legal provisions corresponding to at least part of the keywords are the legal provisions corresponding to the content.
In the embodiment of the application, the corresponding relation is established in advance, so that the corresponding legal provision can be quickly and conveniently found through the corresponding relation during searching.
With reference to the first aspect, in a fifth possible implementation manner, the method further includes: extracting the basic content of the contract from the contract to be analyzed; displaying the basic content in the contract to be analyzed with a different display effect than other content of the contract to be analyzed.
In the embodiment of the application, the basic contents are highlighted in the contract to be analyzed, so that the user can quickly find and confirm the contents, and the user experience is improved.
With reference to the fifth possible implementation manner of the first aspect, in a sixth possible implementation manner, the extracting, from the contract to be analyzed, the basic content of the contract includes: and extracting the basic content by matching the contract to be analyzed with each preset keyword for describing the basic content.
In the embodiment of the application, each preset keyword for describing the basic content is preset, so that the basic content can be extracted quickly through keyword matching.
In a second aspect, an embodiment of the present application provides an apparatus for analyzing a contract, where the apparatus includes: the contract acquisition module is used for acquiring a contract to be analyzed; the contract analysis module is used for extracting content about a contract mechanism from the contract to be analyzed; and processing the content and the legal provision corresponding to the content by using a preset mechanism analysis model to determine whether the content meets the provision of the legal provision.
With reference to the second aspect, in a first possible implementation manner, the contract analysis module is configured to extract the content by matching the contract to be analyzed with preset keywords used for describing a contract mechanism.
With reference to the second possible implementation manner of the second aspect, in a second possible implementation manner, the contract analysis module is configured to determine corresponding keywords in the contract to be analyzed by matching the contract to be analyzed with the preset keywords, where the corresponding keywords are the same as at least some of the preset keywords; and extracting sentences or paragraphs where the corresponding keywords in the contract to be analyzed are located, wherein the sentences or paragraphs form the content.
With reference to the first possible implementation manner of the second aspect, in a third possible implementation manner, after the contract analysis module determines the corresponding keyword in the contract to be analyzed, and before the contract analysis module processes the content and the legal provision corresponding to the content by using a preset mechanism analysis model, the contract analysis module is further configured to traverse preset legal provisions by using the at least part of keywords to determine the legal provision containing the at least part of keywords, where the legal provision containing the at least part of keywords is the legal provision corresponding to the content.
With reference to the second possible implementation manner of the second aspect, in a fourth possible implementation manner, after the contract analysis module determines the corresponding keyword in the contract to be analyzed, and before the contract analysis module processes the content and the legal provision corresponding to the content by using a preset mechanism analysis model, the contract analysis module is further configured to traverse a pre-established corresponding relationship between each preset keyword and each legal provision, and determine the legal provision corresponding to at least part of the keywords, where the legal provision corresponding to at least part of the keywords is the legal provision corresponding to the content.
With reference to the second aspect, in a fifth possible implementation manner, the contract analysis module is further configured to extract the basic content of the contract from the contract to be analyzed; displaying the basic content in the contract to be analyzed with a different display effect than other content of the contract to be analyzed.
With reference to the fifth possible implementation manner of the second aspect, in a sixth possible implementation manner, the contract analysis module is further configured to extract the basic content by matching the contract to be analyzed with preset keywords used for describing the basic content.
In a third aspect, an embodiment of the present application provides an electronic device, including: a memory for storing a program; a bus; a processor connected to the memory via the bus, the processor being configured to run the program to perform a method of contract analysis as set forth in the first aspect or any implementation of the first aspect.
In a fourth aspect, embodiments of the present application provide a non-transitory computer-readable storage medium storing program code, which, when executed by a computer, performs a method for contract analysis according to the first aspect or any one of the implementation manners of the first aspect.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
FIG. 1 is a flow chart of a method for analyzing contracts provided by an embodiment of the present application;
fig. 2 is a block diagram of an electronic device according to an embodiment of the present disclosure;
fig. 3 is a block diagram of a contract analysis apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Referring to fig. 1, an embodiment of the present application provides a method for analyzing a contract, where the method for analyzing a contract may be performed by an electronic device, where the electronic device may be a terminal or a server, and a flow of the method for analyzing a contract may include:
step S100: acquiring a contract to be analyzed;
step S200: extracting content about contract mechanism from the contract to be analyzed;
step S300: and processing the content related to the contract mechanism and the legal provision corresponding to the content by using a preset mechanism analysis model to determine whether the content meets the provisions of the corresponding legal provision.
The above method will be described in detail with reference to the application scenarios.
Step S100: and acquiring the contract to be analyzed.
In this embodiment, the types of contracts to be analyzed in this embodiment are different according to different actual application scenarios; for example, when the method is actually applied to the engineering industry, the contract to be analyzed can be an engineering contract, a construction contract of construction engineering and a house assembly and repair contract; for another example, when the method is actually applied to the service industry, the contract to be analyzed can be a transportation contract, a loan contract and a lease contract; as another example, for practical applications to enterprises, the contract to be analyzed may be a labor contract.
In this embodiment, the manner in which the electronic device acquires the contract to be analyzed may be acquired through user operation or may also be acquired through transmission by another device. For example, the user accesses a mobile storage medium, such as a usb disk or a mobile hard disk, storing the contract to be analyzed to the electronic device, and performs a storage operation of the contract to be analyzed on the electronic device, so that the electronic device obtains the contract to be analyzed from the mobile storage medium in response to the storage operation of the user. For another example, after the contract to be analyzed is formulated by the first party, the device used by the first party can automatically send the contract to be analyzed to the electronic device used by the second party, so that the electronic device receives the contract to be analyzed sent by the other device.
Step S200: content about the contract mechanism is extracted from the contract to be analyzed.
In this embodiment, the content of the contract mechanism is the core content in the contract to be analyzed, which is the agreement of both parties of the contract in the contract; for example, one content of stipulating the responsibility of party b in the construction contract of the construction project is as follows: after the construction of the second party is finished, if the labor cost exceeds the total contract price, the exceeding part is borne by the second party, and the content belongs to the contract mechanism; for another example, one of the responsibilities of party b in the patent licensing contract is: the second party has no right to use in production and the product leaflet, the specification and the package are marked with the patent number of the patent product.
In the embodiment, the contract mechanism can be generally described by some keywords; for example, after the construction of the second party of the contract mechanism is finished, if the labor cost exceeds the total price of the contract, the exceeding part is assumed by the second party, and in the content, the terms "second party", "end", "cost" and "assumption" can generally describe the contract mechanism, and therefore can be used as a keyword for describing the contract mechanism; for another example, in the content of the contract mechanism "the second party is not in production and the right of the patent product patent number is marked on the product leaflet, the specification, the package," the words "second party", "marking", "patent number" and "right" can generally describe the contract mechanism and thus can be used as the keyword for describing the contract mechanism.
Based on the characteristic, each preset keyword for describing the contract mechanism can be stored in the electronic device in advance, so that the content about the contract mechanism in the contract to be analyzed can be extracted by matching the contract to be analyzed with each preset keyword for describing the contract mechanism.
Illustratively, after the contract to be analyzed is obtained, if the contract to be analyzed is in a text format, the electronic device may directly perform word segmentation and word stop processing on all contents in the contract to be analyzed, so as to segment all contents in the contract to be analyzed into phrases; if the contract to be analyzed is in a Portable Document Format (PDF), the electronic device converts the contract to be analyzed into a text Format by using Optical Character Recognition (OCR), and performs segmentation and word-stop processing on all contents in the contract to be analyzed, so as to segment all the contents in the contract to be analyzed into phrases.
Further, the electronic device matches each phrase with each preset keyword to determine a corresponding keyword in the contract to be analyzed, wherein the corresponding keyword is the same as at least part of the keywords in each preset keyword. For example, the electronic device converts each phrase into a vector, and converts each preset keyword into a vector; in this way, the electronic equipment judges whether the cosine value is the cosine value in each cosine value by calculating the cosine value between the vector of each phrase and the vector of each preset keyword; if yes, determining that the phrase is the keyword, otherwise, determining that the phrase is not the keyword; for example, after the cosine value between the vector a ' of the phrase a and the direction of each preset keyword is calculated, it is found that the cosine value between the vector a ' of the phrase a and the vector B ' of the preset keyword B is 1, and it is indicated that the phrase a is the same as the preset keyword a, and further, the phrase a is a corresponding keyword in the contract to be analyzed; for another example, after calculating the cosine value between the vector C 'of the phrase C and the vector of each preset keyword, if the maximum cosine value between the vector C' of the phrase C and the vector of each preset keyword is 0.8, it is determined that the phrase C is not a keyword in the contract to be analyzed.
Further, based on the determination of the corresponding keyword in the contract to be analyzed, the electronic device extracts the sentence or paragraph in the contract to be analyzed, where the sentence or paragraph constitutes the content related to the contract mechanism. In other words, the electronic device extracts the sentence or paragraph in the contract to be analyzed where the corresponding keyword is located, so as to obtain the content about the contract mechanism.
In this embodiment, in order to analyze whether the content of the contract mechanism conforms to the provisions of the legal provisions, the electronic device further needs to determine the legal provisions corresponding to the content of the contract mechanism.
As an exemplary way of determining the corresponding legal provisions, preset keywords for generally describing the contract mechanism may also be present in the corresponding legal provisions; for example, the legal provisions are: if the total price of the manual expense contract exceeds the contract and exceeds the part, both parties have an agreement, and from the agreement, the preset keyword of 'expense' in the preset keywords appears in the law; as another example, the legal provisions are: among the above preset keywords, the preset keywords "mark", "patent number" and "right" appear in the law, which means that the licensee has the right to mark the patent number of the patent product on the product leaflet, the specification and the package.
Based on the characteristic that the preset keywords are also contained in the corresponding legal provisions, after the electronic equipment determines that the corresponding keywords in the contract to be analyzed are the same as at least part of the keywords in the preset keywords, the electronic equipment can also use the at least part of the keywords to traverse the preset legal provisions so as to determine the legal provisions containing the at least part of the keywords.
For example, the electronic device also performs word segmentation and word stop processing on each legal provision, so as to divide each legal provision into word groups. In this way, the electronic device also determines the phrases in the phrases that are the same as at least some of the keywords by calculating cosine values between vectors of each keyword in at least some of the keywords and respective vectors of the phrases, and the legal provisions in which the same phrases are located are the legal provisions that include at least some of the keywords. Therefore, the electronic device determines the legal provision containing at least part of the keywords by searching the legal provision in which the same phrases are located.
As another exemplary way of determining the corresponding legal provisions, the electronic device may pre-establish a corresponding relationship between each preset keyword and each legal provision; for example, a corresponding relation between the preset keywords of ' party B ', ' end ', ' cost ' and ' undertake ' and ' if the total price of the manual cost contract exceeds the contract and exceeds the part, both parties have an agreement, and the agreement is agreed from the agreement; for another example, the corresponding relationship between the preset keywords "b square", "mark", "patent number" and "right" and the legal provision "the licensee has the right to mark the patent number of the patent on the product leaflet, specification and package" in production.
Therefore, after the electronic equipment determines that the corresponding key words in the contract to be analyzed are the same as at least part of the key words in the preset key words, the electronic equipment can also use the at least part of the key words to traverse the preset corresponding relation, so that the legal provision corresponding to the at least part of the key words can be determined.
Step S300: and processing the content related to the contract mechanism and the legal provision corresponding to the content by using a preset mechanism analysis model to determine whether the content meets the provisions of the corresponding legal provision.
In this embodiment, whether the content of the contract mechanism conforms to the corresponding legal provision is analyzed, which is essentially a two-classification problem of a model, for example, the model classifies the contract mechanism as "1" to represent that the contract mechanism conforms to the corresponding legal provision, and conversely, classifies the contract mechanism as "0" to represent that the contract mechanism does not conform to the corresponding legal provision, so the mechanism analysis model can be classified by using the conventional ResNet network.
Since the ResNet network generally processes images, and the nature of the images is matrix, the electronic device needs to convert the content about the contract mechanism and the legal provisions corresponding to the content into a feature matrix, and then input the feature matrix into a mechanism analysis model for processing.
As an exemplary way of converting the content related to the contract mechanism and the legal provision corresponding to the content into the feature matrix, the electronic device may first splice the content related to the contract mechanism and the legal provision corresponding to the content to obtain a text formed by splicing. The electronic equipment then carries out vectorization processing on the text formed by splicing so as to obtain a vector sequence. Finally, the electronic device converts the vector sequence from a sequence format to a matrix format, so that a feature matrix formed by the vectors can be obtained. For example, if the vector sequence obtained by the text vectorization process formed by concatenation is a 1 × 36 sequence, for example: 111111100001010101011010101010101111, respectively; and the matrix format satisfying the mechanical analysis model processing is 10 × 5, the electronic device needs to convert the 1 × 36 sequence into a feature matrix of 10 × 5. It can be understood that since the 1 × 36 sequence has 36 elements and the feature matrix of 10 × 5 has 50 elements, the last 14 elements in the feature matrix are filled with 0, and the feature matrix obtained is:
Figure BDA0002697174530000091
it should be noted that, since the ResNet network usually processes images, and the matrix format of the images is usually 480 × 240 or 360 × 240, the number of elements included in the matrix format is greater than the number of elements in the vector sequence, thereby ensuring that the vector sequence can be successfully converted into the feature matrix.
Further, after the electronic device inputs the feature matrix into the mechanical analysis model for processing, the mechanical analysis model may output a probability value indicating whether the content of the contract mechanism conforms to the corresponding legal provision. The electronic device compares the probability value with a preset probability threshold, for example, the probability threshold may be 0.7, and if the probability value is greater than or equal to the preset probability threshold, it is determined that the content of the contract mechanism conforms to the corresponding legal provision, otherwise, it is determined that the content of the contract mechanism does not conform to the corresponding legal provision.
For example, by analyzing the legal provision of "the total price of the labor cost exceeds the total price of the contract" by the second party after the construction of the second party of the contract mechanism, the exceeding part is assumed by the second party "and" the total price of the labor cost contract exceeds the contract, the exceeding part is agreed by both parties, and the agreement is agreed by the both parties ", the mechanism analysis model can output the probability value of 0.9, so that the electronic equipment can determine that the legal provision of" the total price of the labor cost exceeds the total price of the contract, the exceeding part is assumed by the second party "after the construction of the second party of the contract mechanism, the exceeding part is assumed by both parties, and the agreement is agreed by both parties.
For another example, by analyzing the legal provision of the contractual mechanism "the second party is not in production and the product leaflet, the specification and the right of the package for indicating the patent product patent number" and the allowed party is in production and the product leaflet, the specification and the right of the package for indicating the patent product patent number ", the mechanism analysis model can output a probability value of 0.3, so that the electronic device can determine that the legal provision of the contractual mechanism" the second party is not in production and the product leaflet, the specification and the right of the package for indicating the patent product patent number "does not conform to the legal provision of the allowed party is in production and the right of the product leaflet, the specification and the package for indicating the patent product patent number".
In this embodiment, in addition to analyzing whether the content of the contract mechanism in the contract to be analyzed conforms to the provisions of the corresponding legal provisions, the electronic device may highlight the basic content in the contract to be analyzed for the user to review.
Specifically, the basic content is used to describe basic information of the contract, i.e. names of both parties of the contract, information of both parties of the contract, time of the contract, and the like. For example, in a construction contract for a construction project, "party a: xxxxxx, second party: XXXXX' belongs to basic content; for another example, in a patent licensing contract, "licensor: xxxxxx, licensee: XXXXX "belongs to the basic content.
In the embodiment, the basic content can be generally described by some keywords; for example, in "Party A: xxxxxx, second party: XXXXX "in this basic content, the words" party A "and" party B "can describe this basic content as a whole, and therefore can be used as the key words for describing the basic content; as another example, in "licensor: xxxxxx, licensee: xxxxxx "in this basic content, the terms" licensor "and" licensee "may collectively describe this basic content and thus may serve as keywords describing the basic content.
Based on the characteristic, each preset keyword for describing the basic content can be stored in the electronic device in advance, so that the basic content in the contract to be analyzed can be extracted by matching the contract to be analyzed with each preset keyword for describing the basic content. The principle of extracting the basic content is similar to that of the extracting mechanism, and will not be described again here.
After extracting the basic content, the electronic device may display the basic content in the contract to be analyzed with a different display effect than other content of the contract to be analyzed, such as displaying the other content of the contract to be analyzed as black and displaying the basic content as red.
Referring to fig. 2, based on the same inventive concept, the present embodiment provides an electronic device 10, and the electronic device 10 may include a communication interface 11 connected to a network, one or more processors 12 for executing program instructions, a bus 13, and a memory 14 in different forms, such as a disk, a ROM, or a RAM, or any combination thereof. Illustratively, the computer platform may also include program instructions stored in ROM, RAM, or other types of non-transitory storage media, or any combination thereof.
The memory 14 is used for storing programs, and the processor 12 is used for calling and running the programs in the memory 14 to execute the contract analysis method described above.
Referring to fig. 3, based on the same inventive concept, an embodiment of the present application provides an analysis apparatus 100 for a contract, where the analysis apparatus 100 for a contract is applied to an electronic device, and the analysis apparatus 100 for a contract includes:
a contract obtaining module 110, configured to obtain a contract to be analyzed;
a contract analysis module 120, configured to extract content about contract mechanism from the contract to be analyzed; and processing the content and the legal provision corresponding to the content by using a preset mechanism analysis model to determine whether the content meets the provision of the legal provision.
It should be noted that, as those skilled in the art can clearly understand, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Some embodiments of the present application further provide a computer-readable storage medium of a computer-executable nonvolatile program code, which can be a general-purpose storage medium such as a removable disk, a hard disk, or the like, and the computer-readable storage medium stores a program code thereon, which when executed by a computer, performs the steps of the contract analysis method of any of the above embodiments.
The program code product of the contract analysis method provided in the embodiment of the present application includes a computer-readable storage medium storing the program code, and instructions included in the program code may be used to execute the method in the foregoing method embodiment, and specific implementation may refer to the method embodiment, which is not described herein again.
In summary, the embodiments of the present application provide a contract analysis method, apparatus, electronic device, and storage medium. After the content of the contract mechanism is automatically extracted from the contract, whether the content of the contract mechanism conforms to the provisions of the legal provisions can be automatically analyzed through a preset mechanism analysis model without manual confirmation, so that the confirmation efficiency of the contract is improved, and the drafting efficiency of the contract is also improved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method of analyzing a contract, the method comprising:
acquiring a contract to be analyzed;
extracting content about contract mechanisms from the contract to be analyzed;
and processing the content and the legal provision corresponding to the content by using a preset mechanism analysis model to determine whether the content meets the provision of the legal provision.
2. The method for analyzing contracts according to claim 1, wherein extracting the content about contract mechanism from the contract to be analyzed comprises:
and matching the contract to be analyzed with each preset keyword for describing a contract mechanism to extract the content.
3. The contract analysis method according to claim 2, wherein extracting the content by matching the contract to be analyzed with preset keywords for describing a contract mechanism comprises:
matching the contract to be analyzed with the preset keywords to determine corresponding keywords in the contract to be analyzed, wherein the corresponding keywords are the same as at least part of the preset keywords;
and extracting sentences or paragraphs where the corresponding keywords in the contract to be analyzed are located, wherein the sentences or paragraphs form the content.
4. The contract analysis method according to claim 3, wherein after determining the corresponding keywords in the contract to be analyzed and before processing the content and the legal provision corresponding to the content by using a preset mechanism analysis model, the method further comprises:
and traversing preset legal provisions by using the at least part of keywords to determine the legal provisions containing the at least part of keywords, wherein the legal provisions containing the at least part of keywords are the legal provisions corresponding to the content.
5. The contract analysis method according to claim 3, wherein after determining the corresponding keywords in the contract to be analyzed and before processing the content and the legal provision corresponding to the content by using a preset mechanism analysis model, the method further comprises:
and traversing the pre-established corresponding relation between each preset keyword and each legal provision, and determining the legal provisions corresponding to at least part of the keywords, wherein the legal provisions corresponding to at least part of the keywords are the legal provisions corresponding to the content.
6. The method of analyzing a contract according to claim 1, further comprising:
extracting the basic content of the contract from the contract to be analyzed;
displaying the basic content in the contract to be analyzed with a different display effect than other content of the contract to be analyzed.
7. The contract analysis method according to claim 6, wherein extracting the basic content of the contract from the contract to be analyzed comprises:
and extracting the basic content by matching the contract to be analyzed with each preset keyword for describing the basic content.
8. An apparatus for analyzing a contract, the apparatus comprising:
the contract acquisition module is used for acquiring a contract to be analyzed;
the contract analysis module is used for extracting content about a contract mechanism from the contract to be analyzed; and processing the content and the legal provision corresponding to the content by using a preset mechanism analysis model to determine whether the content meets the provision of the legal provision.
9. An electronic device, comprising:
a memory for storing a program;
a bus;
a processor connected to the memory via the bus, the processor being configured to run the program to perform a method of analyzing a contract according to any one of claims 1-7.
10. A non-transitory computer-readable storage medium storing program code for performing the contract analysis method according to any one of claims 1 to 7 when the program code is executed by a computer.
CN202011015186.XA 2020-09-23 2020-09-23 Contract analysis method and device, electronic equipment and storage medium Pending CN112148858A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011015186.XA CN112148858A (en) 2020-09-23 2020-09-23 Contract analysis method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011015186.XA CN112148858A (en) 2020-09-23 2020-09-23 Contract analysis method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112148858A true CN112148858A (en) 2020-12-29

Family

ID=73896546

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011015186.XA Pending CN112148858A (en) 2020-09-23 2020-09-23 Contract analysis method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112148858A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5692206A (en) * 1994-11-30 1997-11-25 Taco Bell Corporation Method and apparatus for automating the generation of a legal document
CN109902288A (en) * 2019-01-17 2019-06-18 深圳壹账通智能科技有限公司 Intelligent clause analysis method, device, computer equipment and storage medium
CN110163478A (en) * 2019-04-18 2019-08-23 平安科技(深圳)有限公司 A kind of the risk checking method and device of contract terms
CN110688847A (en) * 2019-08-23 2020-01-14 上海市研发公共服务平台管理中心 Technology contract determination method, device, computer equipment and storage medium
CN111178072A (en) * 2019-12-31 2020-05-19 北京明略软件系统有限公司 Legal provision determining method and device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5692206A (en) * 1994-11-30 1997-11-25 Taco Bell Corporation Method and apparatus for automating the generation of a legal document
CN109902288A (en) * 2019-01-17 2019-06-18 深圳壹账通智能科技有限公司 Intelligent clause analysis method, device, computer equipment and storage medium
CN110163478A (en) * 2019-04-18 2019-08-23 平安科技(深圳)有限公司 A kind of the risk checking method and device of contract terms
CN110688847A (en) * 2019-08-23 2020-01-14 上海市研发公共服务平台管理中心 Technology contract determination method, device, computer equipment and storage medium
CN111178072A (en) * 2019-12-31 2020-05-19 北京明略软件系统有限公司 Legal provision determining method and device and storage medium

Similar Documents

Publication Publication Date Title
CN110163478B (en) Risk examination method and device for contract clauses
CN109359175B (en) Electronic device, litigation data processing method, and storage medium
CN113064964A (en) Text classification method, model training method, device, equipment and storage medium
CN113868391B (en) Legal document generation method, device, equipment and medium based on knowledge graph
CN111143505B (en) Document processing method, device, medium and electronic equipment
CN111046142A (en) Text examination method and device, electronic equipment and computer storage medium
CN110941951B (en) Text similarity calculation method, text similarity calculation device, text similarity calculation medium and electronic equipment
CN112214987B (en) Information extraction method, extraction device, terminal equipment and readable storage medium
CN117707922A (en) Method and device for generating test case, terminal equipment and readable storage medium
CN113868419B (en) Text classification method, device, equipment and medium based on artificial intelligence
CN110929499B (en) Text similarity obtaining method, device, medium and electronic equipment
CN111460098A (en) Text matching method and device and terminal equipment
CN111782781A (en) A semantic analysis method, device, computer equipment and storage medium
CN115858751A (en) Processing method and device of table question-answer data and electronic equipment
CN118014699A (en) Label evaluation method and system based on artificial intelligence, electronic equipment and storage medium
CN114372157A (en) Insurance semantic understanding method, device, equipment and medium based on knowledge graph
CN113535938A (en) Standard data construction method, system, device and medium based on content identification
CN114743012B (en) Text recognition method and device
CN113936130A (en) Document information intelligent acquisition and error correction method, system and equipment based on OCR technology
CN113780996A (en) Post data detection method, model training method and device and electronic equipment
CN112069808A (en) Financing wind control method and device, computer equipment and storage medium
CN110083807B (en) Contract modification influence automatic prediction method, device, medium and electronic equipment
CN112148858A (en) Contract analysis method and device, electronic equipment and storage medium
CN114118049B (en) Information acquisition method, device, electronic equipment and storage medium
CN115098629B (en) File processing method, device, server and readable 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201229