CN112966671A - Contract detection method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN112966671A
CN112966671A CN202110435230.0A CN202110435230A CN112966671A CN 112966671 A CN112966671 A CN 112966671A CN 202110435230 A CN202110435230 A CN 202110435230A CN 112966671 A CN112966671 A CN 112966671A
Authority
CN
China
Prior art keywords
detected
contract
content
item
items
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
CN202110435230.0A
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.)
Shenzhen Dingsheng Computer Technology Co ltd
Original Assignee
Shenzhen Dingsheng Computer 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 Shenzhen Dingsheng Computer Technology Co ltd filed Critical Shenzhen Dingsheng Computer Technology Co ltd
Priority to CN202110435230.0A priority Critical patent/CN112966671A/en
Publication of CN112966671A publication Critical patent/CN112966671A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • G06V30/41Analysis of document content
    • G06V30/418Document matching, e.g. of document images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Artificial Intelligence (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a contract detection method, a contract detection device, electronic equipment and a storage medium; the method comprises the following steps: acquiring a contract template corresponding to the contract to be detected according to the type of the predetermined contract to be detected; extracting the content to be detected from the contract to be detected based on a contract template corresponding to the contract to be detected; the content to be detected comprises at least one item to be detected; comparing the content to be detected with predetermined target content to obtain a comparison result of the content to be detected and the target content; wherein the target content comprises at least one target item; and detecting whether the contract to be detected is correct or incorrect based on the comparison result of the content to be detected and the target content. The embodiment of the application can improve the accuracy of contract detection, reduce the detection cost and improve the detection efficiency.

Description

Contract detection method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of data detection, in particular to a contract detection method and device, electronic equipment and a storage medium.
Background
With the integration of global economy, the trade field of enterprises is wider and wider, and contracts are required to be signed in many trade transactions. In businesses involving the signing of electronic contracts, because the contracts have legal protection, they cannot be changed at will once signed, which can lead to legal disputes if the signed contract is wrong for technical or human reasons. Therefore, it is important to ensure the correctness of contract signing.
Currently, the methods for contract detection in the industry mainly include the following two methods: firstly, adopting a manual mode to detect: randomly extracting a preset number of contracts from a large number of to-be-detected contracts, and then detecting the extracted contracts one by one in a manual mode; secondly, detecting by adopting an Optical Character Recognition (OCR) mode: checking the characters printed on the contract, for example, by a scanner or a digital camera, determining the shape thereof by detecting the dark and light patterns; the shape is then translated into computer text for detection by character recognition methods.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
the manual detection mode not only can improve the labor cost, but also can not ensure the correctness of contract detection; with the OCR detection method, the specific content signed in the contract still cannot be accurately detected due to the limited OCR recognition capability.
Disclosure of Invention
The invention provides a contract detection method, a contract detection device, electronic equipment and a storage medium, which can improve the accuracy of contract detection, reduce the detection cost and improve the detection efficiency.
In a first aspect, an embodiment of the present invention provides a contract detection method, where the method includes:
acquiring a contract template corresponding to the contract to be detected according to the type of the contract to be detected which is determined in advance;
extracting the content to be detected from the contract to be detected based on the contract template corresponding to the contract to be detected; the content to be detected comprises at least one item to be detected;
comparing the content to be detected with predetermined target content to obtain a comparison result of the content to be detected and the target content; wherein the target content comprises at least one target item;
and detecting whether the contract to be detected is correct or incorrect based on the comparison result of the content to be detected and the target content.
In a second aspect, an embodiment of the present invention further provides a contract detecting apparatus, where the apparatus includes: the device comprises an acquisition module, an extraction module, a comparison module and a detection module; wherein the content of the first and second substances,
the acquisition module is used for acquiring a contract template corresponding to the contract to be detected according to the type of the contract to be detected which is determined in advance;
the extraction module is used for extracting the content to be detected from the contract to be detected based on the contract template corresponding to the contract to be detected; the content to be detected comprises at least one item to be detected;
the comparison module is used for comparing the content to be detected with predetermined target content to obtain a comparison result of the content to be detected and the target content; wherein the target content comprises at least one target item;
and the detection module is used for detecting whether the contract to be detected is correct or incorrect based on the comparison result of the content to be detected and the target content.
In a third aspect, an embodiment of the present invention provides an electronic device, including:
one or more processors;
a memory for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the contract detection method of any embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention provides a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a contract detection method according to any embodiment of the present invention.
The embodiment of the invention provides a contract detection method, a contract detection device, electronic equipment and a storage medium, wherein a corresponding contract template is obtained according to the type of a predetermined contract to be detected; then extracting the content to be detected from the contract to be detected based on a contract template corresponding to the contract to be detected; comparing the content to be detected with predetermined target content; and detecting whether the contract to be detected is correct or incorrect based on the comparison result of the content to be detected and the target content. That is to say, in the technical scheme of the invention, each item to be detected in the contract to be detected can be extracted based on the pre-constructed contract template; and detecting the correctness of the contract to be detected by comparing the consistency of each item to be detected and the corresponding target item. In the prior art, the manual detection mode not only can improve the labor cost, but also cannot ensure the correctness of contract detection; with the OCR detection method, the specific content signed in the contract still cannot be accurately detected due to the limited OCR recognition capability. Therefore, compared with the prior art, the contract detection method, the contract detection device, the electronic equipment and the storage medium provided by the embodiment of the invention can improve the accuracy of contract detection, reduce the detection cost and improve the detection efficiency; moreover, the technical scheme of the embodiment of the invention is simple and convenient to realize, convenient to popularize and wider in application range.
Drawings
FIG. 1 is a first flowchart of a contract detection method according to an embodiment of the present invention;
FIG. 2 is a second flowchart of a contract detection method according to an embodiment of the present invention;
fig. 3 is a third schematic flow chart of a contract detection method according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a contract detection apparatus provided in an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic first flowchart of a contract detection method according to an embodiment of the present invention. As shown in fig. 1, the contract detection method may include the steps of:
s101, acquiring a contract template corresponding to the contract to be detected according to the type of the predetermined contract to be detected.
In this step, the electronic device may obtain a contract template corresponding to the contract to be detected according to the predetermined type of the contract to be detected. Specifically, the type of contract to be detected in the present application includes, but is not limited to, one of the following: the buy-sell contract, the lease contract, the gift contract, the contract, and the entrust contract are equivalent. The different types correspond to different templates, e.g., a buy and sell contract corresponding to a buy and sell contract template, a lease contract corresponding to a lease contract template, etc. Therefore, the type of the contract to be detected can be determined in advance; and then acquiring a contract template corresponding to the contract to be detected based on the type.
S102, extracting the content to be detected from the contract to be detected based on a contract template corresponding to the contract to be detected; the content to be detected comprises at least one item to be detected.
In this step, the electronic device may extract the content to be detected from the contract to be detected based on the contract template corresponding to the contract to be detected; the content to be detected comprises at least one item to be detected. Specifically, the electronic device may extract a template unit from a contract template corresponding to the contract to be detected as a current template unit; then extracting a unit to be detected corresponding to the current template unit from the contract to be detected based on the current template unit; extracting items to be detected from the units to be detected corresponding to the current template unit; repeatedly executing the operation until all items to be detected are extracted from the contract to be detected; and obtaining the content to be detected based on all the items to be detected.
It should be noted that the contract to be detected in the present application is signed based on the corresponding contract template, so that the data format in the contract to be detected is consistent with the data format in the contract template. In the contract template, the contract template may be divided in advance, for example, the contract template is divided into at least one template unit according to contract terms, and correspondingly, the contract to be detected is also divided into at least one unit to be detected; wherein, one template unit corresponds to one unit to be detected; the difference between the two is that: the template unit only comprises general characters (or template characters) and does not comprise specifically signed contents (namely the items to be detected); the unit to be detected not only comprises the general characters (or template characters) but also comprises specifically signed contents (namely the item to be detected). In the template unit, specifically signed content is replaced with placeholders. Therefore, the items to be detected in the unit to be detected can be extracted based on the placeholders in the template unit.
S103, comparing the content to be detected with predetermined target content to obtain a comparison result of the content to be detected and the target content; wherein the target content comprises at least one target item.
In this step, the electronic device may compare the content to be detected with predetermined target content to obtain a comparison result of the content to be detected and the target content; wherein the target content comprises at least one target item. Specifically, the electronic device can extract a to-be-detected item from the to-be-detected content as a current to-be-detected item; then comparing the current item to be detected with the corresponding current target item to obtain a comparison result of the current item to be detected and the corresponding current target item; repeatedly executing the operation until the comparison results of all the items to be detected and the corresponding target items are obtained; and taking the comparison result of all the items to be detected and the corresponding target items as the comparison result of the content to be detected and the target content.
And S104, detecting whether the contract to be detected is correct or incorrect based on the comparison result of the content to be detected and the target content.
In this step, the electronic device may detect that the contract to be detected is correct or incorrect based on the comparison result between the content to be detected and the target content. Specifically, the content to be detected comprises at least one item to be detected; the target content comprises at least one target item; one item to be detected corresponds to one target item; if the contents of all the items to be detected are consistent with the contents of the corresponding target items, the electronic equipment can determine that the contract to be detected is correct; if the content of any item to be detected is inconsistent with the content of the corresponding target item, the electronic device can determine that the contract to be detected is incorrect.
The contract detection method provided by the embodiment of the invention comprises the steps of firstly obtaining a corresponding contract template according to the type of a predetermined contract to be detected; then extracting the content to be detected from the contract to be detected based on a contract template corresponding to the contract to be detected; comparing the content to be detected with predetermined target content; and detecting whether the contract to be detected is correct or incorrect based on the comparison result of the content to be detected and the target content. That is to say, in the technical scheme of the invention, each item to be detected in the contract to be detected can be extracted based on the pre-constructed contract template; and detecting the correctness of the contract to be detected by comparing the consistency of each item to be detected and the corresponding target item. In the prior art, the manual detection mode not only can improve the labor cost, but also cannot ensure the correctness of contract detection; with the OCR detection method, the specific content signed in the contract still cannot be accurately detected due to the limited OCR recognition capability. Therefore, compared with the prior art, the contract detection method provided by the embodiment of the invention can not only improve the accuracy of contract detection, but also reduce the detection cost and improve the detection efficiency; moreover, the technical scheme of the embodiment of the invention is simple and convenient to realize, convenient to popularize and wider in application range.
Example two
Fig. 2 is a schematic second flow chart of the contract detection method according to the embodiment of the present invention. As shown in fig. 2, the contract detection method may include the steps of:
s201, acquiring a contract template corresponding to the contract to be detected according to the type of the contract to be detected which is determined in advance.
S202, extracting a template unit from the contract template corresponding to the contract to be detected as a current template unit.
In this step, the electronic device may extract a template unit from the contract template corresponding to the contract to be detected as the current template unit. Specifically, each contract template may include one or more template units, which may be understood as a part of the contract template, for example, the contract template is divided into at least one template unit according to contract terms, and accordingly, the contract to be detected is also divided into at least one unit to be detected; wherein, one template unit corresponds to one unit to be detected; the difference between the two is that: the template unit only comprises general characters (or template characters) and does not comprise specifically signed contents (namely the items to be detected); the unit to be detected not only comprises the general characters (or template characters) but also comprises specifically signed contents (namely the item to be detected). In the template unit, specifically signed content is replaced with placeholders.
And S203, extracting the unit to be detected corresponding to the current template unit from the contract to be detected based on the current template unit.
In this step, the electronic device may extract the unit to be detected corresponding to the current template unit from the contract to be detected based on the current template unit. Since one template unit corresponds to one unit to be detected, the electronic device can extract the unit to be detected corresponding to the current template unit from the contract to be detected based on the current template unit.
S204, extracting items to be detected from the units to be detected corresponding to the current template unit; repeatedly executing the operation until all items to be detected are extracted from the contract to be detected; and obtaining the content to be detected based on all the items to be detected.
In this step, the electronic device may extract the item to be detected from the unit to be detected corresponding to the current template unit; repeatedly executing the operation until all items to be detected are extracted from the contract to be detected; and obtaining the content to be detected based on all the items to be detected. Specifically, the electronic device may extract an item to be detected from the unit to be detected 1 corresponding to the template unit 1; then extracting items to be detected from the units to be detected 2 corresponding to the template units 2; …, respectively; and repeating the steps until all the items to be detected are extracted from the contracts to be detected. The items to be checked in the present application refer to each content to be specifically checked and checked, for example, a work unit, a home address, and the like.
S205, extracting a to-be-detected item from the to-be-detected content as a current to-be-detected item.
In this step, the electronic device may extract one item to be detected from the content to be detected as the current item to be detected. Specifically, the content to be detected may include one or more items to be detected, and the electronic device may extract the items to be detected one by one as the current item to be detected; and then, detecting each current item to be detected to obtain a detection result of each current item to be detected.
S206, comparing the current item to be detected with the corresponding current target item to obtain a comparison result of the current item to be detected and the corresponding current target item; and repeatedly executing the operations until the comparison results of all the items to be detected and the corresponding target items are obtained.
In this step, the electronic device may compare the current item to be detected with the current target item corresponding to the current item to be detected, so as to obtain a comparison result between the current item to be detected and the current target item corresponding to the current item to be detected; and repeatedly executing the operations until the comparison results of all the items to be detected and the corresponding target items are obtained. Specifically, the target items corresponding to the items to be detected can be obtained in advance, so that the items to be detected can be compared with the corresponding target items to obtain the comparison result of the items to be detected and the corresponding target items.
And S207, if the contents of all the items to be detected are consistent with the contents of the corresponding target items, determining that the contract to be detected is correct.
The contract detection method provided by the embodiment of the invention comprises the steps of firstly obtaining a corresponding contract template according to the type of a predetermined contract to be detected; then extracting the content to be detected from the contract to be detected based on a contract template corresponding to the contract to be detected; comparing the content to be detected with predetermined target content; and detecting whether the contract to be detected is correct or incorrect based on the comparison result of the content to be detected and the target content. That is to say, in the technical scheme of the invention, each item to be detected in the contract to be detected can be extracted based on the pre-constructed contract template; and detecting the correctness of the contract to be detected by comparing the consistency of each item to be detected and the corresponding target item. In the prior art, the manual detection mode not only can improve the labor cost, but also cannot ensure the correctness of contract detection; with the OCR detection method, the specific content signed in the contract still cannot be accurately detected due to the limited OCR recognition capability. Therefore, compared with the prior art, the contract detection method provided by the embodiment of the invention can not only improve the accuracy of contract detection, but also reduce the detection cost and improve the detection efficiency; moreover, the technical scheme of the embodiment of the invention is simple and convenient to realize, convenient to popularize and wider in application range.
EXAMPLE III
Fig. 3 is a third flow diagram of the contract detection method according to the embodiment of the present invention. As shown in fig. 3, the contract detection method may include the steps of:
s301, acquiring a contract template corresponding to the contract to be detected according to the type of the predetermined contract to be detected.
S302, extracting a template unit from the contract template corresponding to the contract to be detected as a current template unit.
And S303, extracting the unit to be detected corresponding to the current template unit from the contract to be detected based on the current template unit.
S304, at least one preset placeholder is identified in the current template unit.
In this step, the electronic device may identify at least one placeholder preset in the current template unit. Specifically, in each template unit, specifically signed content is replaced by placeholders, so that the application can recognize at least one preset placeholder in each template unit based on a text or symbol recognition model.
S305, extracting items to be detected from the units to be detected corresponding to the current template unit based on the at least one placeholder; repeatedly executing the operation until all items to be detected are extracted from the contract to be detected; and obtaining the content to be detected based on all the items to be detected.
In this step, the electronic device may extract an item to be detected from the unit to be detected corresponding to the current template unit based on the at least one placeholder; repeatedly executing the operation until all items to be detected are extracted from the contract to be detected; and obtaining the content to be detected based on all the items to be detected. Specifically, when the electronic device extracts an item to be detected from the unit to be detected corresponding to the current template unit based on the at least one placeholder, one parameter of the item to be detected can be extracted at the position of each placeholder; and obtaining the items to be detected of the units to be detected based on the extracted parameters.
S306, extracting a to-be-detected item from the to-be-detected content as the current to-be-detected item.
S307, comparing the current item to be detected with the corresponding current target item to obtain a comparison result of the current item to be detected and the corresponding current target item; and repeatedly executing the operations until the comparison results of all the items to be detected and the corresponding target items are obtained.
And S308, if the contents of all the items to be detected are consistent with the contents of the corresponding target items, determining that the contract to be detected is correct.
In this step, if the contents of all the items to be detected are consistent with the contents of the corresponding target items, the electronic device may determine that the contract to be detected is correct; if the content of any item to be detected is inconsistent with the content of the corresponding target item, the electronic device can determine that the contract to be detected is incorrect.
The contract detection method provided by the embodiment of the invention comprises the steps of firstly obtaining a corresponding contract template according to the type of a predetermined contract to be detected; then extracting the content to be detected from the contract to be detected based on a contract template corresponding to the contract to be detected; comparing the content to be detected with predetermined target content; and detecting whether the contract to be detected is correct or incorrect based on the comparison result of the content to be detected and the target content. That is to say, in the technical scheme of the invention, each item to be detected in the contract to be detected can be extracted based on the pre-constructed contract template; and detecting the correctness of the contract to be detected by comparing the consistency of each item to be detected and the corresponding target item. In the prior art, the manual detection mode not only can improve the labor cost, but also cannot ensure the correctness of contract detection; with the OCR detection method, the specific content signed in the contract still cannot be accurately detected due to the limited OCR recognition capability. Therefore, compared with the prior art, the contract detection method provided by the embodiment of the invention can not only improve the accuracy of contract detection, but also reduce the detection cost and improve the detection efficiency; moreover, the technical scheme of the embodiment of the invention is simple and convenient to realize, convenient to popularize and wider in application range.
Example four
Fig. 4 is a schematic structural diagram of a contract detection apparatus according to an embodiment of the present invention. As shown in fig. 4, the contract detecting apparatus includes: an acquisition module 401, an extraction module 402, a comparison module 403 and a detection module 404; wherein the content of the first and second substances,
the acquiring module 401 is configured to acquire a contract template corresponding to the contract to be detected according to a predetermined type of the contract to be detected;
the extracting module 402 is configured to extract the content to be detected from the contract to be detected based on the contract template corresponding to the contract to be detected; the content to be detected comprises at least one item to be detected;
the comparison module 403 is configured to compare the content to be detected with predetermined target content to obtain a comparison result between the content to be detected and the target content; wherein the target content comprises at least one target item;
the detecting module 404 is configured to detect that the contract to be detected is correct or incorrect based on a comparison result between the content to be detected and the target content.
Further, the extracting module 402 is specifically configured to extract a template unit from the contract template corresponding to the contract to be detected as a current template unit; extracting a unit to be detected corresponding to the current template unit from the contract to be detected based on the current template unit; extracting items to be detected from the units to be detected corresponding to the current template unit; repeatedly executing the operation until all items to be detected are extracted from the contract to be detected; and obtaining the content to be detected based on all the items to be detected.
Further, the extracting module 402 is specifically configured to identify at least one preset placeholder in the current template unit; and extracting items to be detected from the units to be detected corresponding to the current template unit based on the at least one placeholder.
The contract detection device can execute the method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. The technical details that are not described in detail in this embodiment can be referred to the contract detection method provided in any embodiment of the present invention.
EXAMPLE five
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. FIG. 5 illustrates a block diagram of an exemplary electronic device suitable for use in implementing embodiments of the present invention. The electronic device 12 shown in fig. 5 is only an example and should not bring any limitation to the function and the scope of use of the embodiment of the present invention.
As shown in FIG. 5, electronic device 12 is embodied in the form of a general purpose computing device. The components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with electronic device 12, and/or with any devices (e.g., network card, modem, etc.) that enable electronic device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via the bus 18. It should be appreciated that although not shown in FIG. 5, other hardware and/or software modules may be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing, such as implementing the contract detection method provided by the embodiment of the present invention, by running a program stored in the system memory 28.
EXAMPLE six
The sixth embodiment of the invention provides a computer storage medium.
The computer-readable storage media of embodiments of the invention may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method of contract testing, the method comprising:
acquiring a contract template corresponding to the contract to be detected according to the type of the contract to be detected which is determined in advance;
extracting the content to be detected from the contract to be detected based on the contract template corresponding to the contract to be detected; the content to be detected comprises at least one item to be detected;
comparing the content to be detected with predetermined target content to obtain a comparison result of the content to be detected and the target content; wherein the target content comprises at least one target item;
and detecting whether the contract to be detected is correct or incorrect based on the comparison result of the content to be detected and the target content.
2. The method according to claim 1, wherein the extracting the content to be detected from the contract to be detected based on the contract template corresponding to the contract to be detected comprises:
extracting a template unit from the contract template corresponding to the contract to be detected as a current template unit;
extracting a unit to be detected corresponding to the current template unit from the contract to be detected based on the current template unit;
extracting items to be detected from the units to be detected corresponding to the current template unit; repeatedly executing the operation until all items to be detected are extracted from the contract to be detected; and obtaining the content to be detected based on all the items to be detected.
3. The method according to claim 2, wherein the extracting the item to be detected from the unit to be detected corresponding to the current template unit comprises:
identifying at least one preset placeholder in the current template unit;
and extracting items to be detected from the units to be detected corresponding to the current template unit based on the at least one placeholder.
4. The method according to claim 2, wherein the comparing the content to be detected with a predetermined target content to obtain a comparison result between the content to be detected and the target content comprises:
extracting a to-be-detected item from the to-be-detected content as a current to-be-detected item;
comparing the current item to be detected with the corresponding current target item to obtain a comparison result of the current item to be detected and the corresponding current target item; repeatedly executing the operation until the comparison results of all the items to be detected and the corresponding target items are obtained; and taking the comparison result of all the items to be detected and the corresponding target items as the comparison result of the content to be detected and the target content.
5. The method according to claim 4, wherein the detecting that the contract to be detected is correct or incorrect based on the comparison result between the content to be detected and the target content comprises:
if the contents of all the items to be detected are consistent with the contents of the corresponding target items, determining that the contract to be detected is correct; and if the content of any item to be detected is inconsistent with the content of the corresponding target item, determining that the contract to be detected is incorrect.
6. A contract detection apparatus, characterized in that the apparatus comprises: the device comprises an acquisition module, an extraction module, a comparison module and a detection module; wherein the content of the first and second substances,
the acquisition module is used for acquiring a contract template corresponding to the contract to be detected according to the type of the contract to be detected which is determined in advance;
the extraction module is used for extracting the content to be detected from the contract to be detected based on the contract template corresponding to the contract to be detected; the content to be detected comprises at least one item to be detected;
the comparison module is used for comparing the content to be detected with predetermined target content to obtain a comparison result of the content to be detected and the target content; wherein the target content comprises at least one target item;
and the detection module is used for detecting whether the contract to be detected is correct or incorrect based on the comparison result of the content to be detected and the target content.
7. The apparatus according to claim 6, wherein the extracting module is specifically configured to extract a template unit from the contract template corresponding to the contract to be detected as a current template unit; extracting a unit to be detected corresponding to the current template unit from the contract to be detected based on the current template unit; extracting items to be detected from the units to be detected corresponding to the current template unit; repeatedly executing the operation until all items to be detected are extracted from the contract to be detected; and obtaining the content to be detected based on all the items to be detected.
8. The apparatus according to claim 7, wherein the extraction module is specifically configured to identify at least one preset placeholder in the current template unit; and extracting items to be detected from the units to be detected corresponding to the current template unit based on the at least one placeholder.
9. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the contract detection method of any one of claims 1-5.
10. A storage medium on which a computer program is stored, which program, when being executed by a processor, carries out the contract detection method according to any one of claims 1 to 5.
CN202110435230.0A 2021-04-22 2021-04-22 Contract detection method and device, electronic equipment and storage medium Pending CN112966671A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110435230.0A CN112966671A (en) 2021-04-22 2021-04-22 Contract detection method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110435230.0A CN112966671A (en) 2021-04-22 2021-04-22 Contract detection method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112966671A true CN112966671A (en) 2021-06-15

Family

ID=76280983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110435230.0A Pending CN112966671A (en) 2021-04-22 2021-04-22 Contract detection method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112966671A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113420657A (en) * 2021-06-23 2021-09-21 平安科技(深圳)有限公司 Intelligent verification method and device, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113420657A (en) * 2021-06-23 2021-09-21 平安科技(深圳)有限公司 Intelligent verification method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110826494A (en) Method and device for evaluating quality of labeled data, computer equipment and storage medium
CN112149663A (en) RPA and AI combined image character extraction method and device and electronic equipment
CN112308069A (en) Click test method, device, equipment and storage medium for software interface
US11386499B2 (en) Car damage picture angle correction method, electronic device, and readable storage medium
CN111598122B (en) Data verification method and device, electronic equipment and storage medium
CN113032834A (en) Database table processing method, device, equipment and storage medium
CN110647523B (en) Data quality analysis method and device, storage medium and electronic equipment
CN111563429A (en) Drawing verification method and device, electronic equipment and storage medium
CN112966671A (en) Contract detection method and device, electronic equipment and storage medium
CN111723799B (en) Coordinate positioning method, device, equipment and storage medium
US11120074B2 (en) Streamlining citations and references
CN112542163B (en) Intelligent voice interaction method, device and storage medium
CN113762455A (en) Detection model training method, single character detection method, device, equipment and medium
CN111177387A (en) User list information processing method, electronic device and computer readable storage medium
CN113807416B (en) Model training method and device, electronic equipment and storage medium
CN115761778A (en) Document reconstruction method, device, equipment and storage medium
CN112559541B (en) Document auditing method, device, equipment and storage medium
CN111124862B (en) Intelligent device performance testing method and device and intelligent device
CN110532186B (en) Method, device, electronic equipment and storage medium for testing by using verification code
CN110134435B (en) Code repair case acquisition method, device, equipment and storage medium
CN114049686A (en) Signature recognition model training method and device and electronic equipment
CN110083807B (en) Contract modification influence automatic prediction method, device, medium and electronic equipment
CN112668298A (en) Questionnaire recording method, system, equipment and storage medium based on mobile terminal
CN117033309A (en) Data conversion method and device, electronic equipment and readable storage medium
CN114004029A (en) Method and device for generating part detection report, electronic device and storage medium

Legal Events

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