Proofreading method and device for document review, storage medium, and electronic device

By splitting the predetermined rules of the document, comparing the sentence vector or matching the character of the character, the inaccuracy problem caused by the wrong operation of manual labeling in the document review is solved, and the accuracy and correctness of the review is improved.

CN110674633BActive Publication Date: 2024-11-22PING AN TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910886011.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-18
Publication Date
2024-11-22
Estimated Expiration
2039-09-18

AI Technical Summary

Technical Problem

During the document review process, due to the erroneous operation of manual annotation, it is easy to change the original text expression method or format, resulting in inaccurate or error in the marking, affecting the accuracy of the review.

Method used

By obtaining the document to be proofread and splitting it into a proofreading template and a text to be proofread according to the predetermined rules, calculating the cosine similarity between the statement vectors or performing character matching, determining the correct annotation of the text to be proofreading.

Benefits of technology

Improve the accuracy of the comparison between the proofreading template and the text to be proofed, prevent mismatch caused by manual errors, and ensure the correctness and accuracy of the label.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110674633B_ABST
    Figure CN110674633B_ABST
Patent Text Reader

Abstract

The present disclosure provides a proofreading method and device for document review, which belongs to the technical field of similarity matching. The method includes: obtaining a document to be proofread, and splitting the document to be proofread according to a predetermined rule to obtain a proofreading template; obtaining the annotation information of the clauses in the clause catalog of the document to be proofread, and splitting the annotation information according to the predetermined rule to obtain a text to be proofread; comparing the proofreading template with the corresponding text to be proofread; when the content of the proofreading template and the corresponding text to be proofread are consistent, it is determined that the text to be proofread is correctly marked. The method improves the efficiency of document review and proofreading and reduces the proofreading cost.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] Documents refer to contract reviews related to laws, official documents related to government affairs, etc. Therefore, in order to ensure the interests of both parties to the contract or the correctness of the official documents, they all need to be reviewed. However, in the process of review and annotation, when manually annotating each clause of the document, it is easy to change the expression or format of the original text due to misoperation, resulting in inaccurate or wrong annotations, affecting the accuracy of the document review.

[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0004] Embodiments of the present disclosure provide a proofreading method for document review, a proofreading device for document review, a computer-readable storage medium, and an electronic device.

[0005] According to a first aspect of the present disclosure, there is provided a proofreading method for document review, comprising:

[0006] Acquire a document to be proofread, and split the document to be proofread according to a predetermined rule to obtain a proofreading template;

[0007] Acquire the annotation information of the clauses in the clause catalog of the document to be proofread, and split the annotation information according to the predetermined rule to obtain the text to be proofread;

[0008] Comparing the proofreading template with the corresponding text to be proofread;

[0009] When the content of the proofreading template and the corresponding text to be proofread are consistent, it is determined that the content of the text to be proofread is correctly marked.

[0010] In an exemplary embodiment of the present disclosure, comparing the proofreading template with the corresponding text to be proofread includes:

[0011] Obtaining a sentence vector of the proofreading template;

[0012] Acquire a sentence vector of the text to be proofread corresponding to the proofreading template;

[0013] Calculating the cosine similarity between the sentence vector of the proofreading template and the sentence vector of the text to be proofread corresponding to the sentence vector;

[0014] According to the cosine similarity, it is determined whether the content of the proofreading template and the corresponding text to be proofread are consistent.

[0015] In an exemplary embodiment of the present disclosure, determining whether the content of the proofreading template and the corresponding text to be proofread are consistent according to the cosine similarity includes:

[0016] When the cosine similarity is greater than or equal to a predetermined threshold, it is determined that the content of the proofreading template and the corresponding text to be proofread are consistent.

[0017] In an exemplary embodiment of the present disclosure, the determination of the predetermined threshold includes:

[0018] Acquire a sentence vector of a sample of the proofreading template, wherein the sample is a pre-set synonymous sentence of the proofreading template;

[0019] Selecting a test sample from the samples, and calculating the cosine similarity of the sentence vectors between the test sample and other samples;

[0020] The predetermined threshold is determined based on the cosine similarity of the sentence vectors between the test sample and the other samples.

[0021] In an exemplary embodiment of the present disclosure, after comparing the proofreading template with the corresponding to-be-proofreading text, the method further includes:

[0022] When the contents of the proofreading template and the corresponding text to be proofread are inconsistent, performing character matching between the proofreading template and the corresponding text to be proofread;

[0023] When the coincidence rate obtained by character matching between the proofreading template and the corresponding text to be proofread reaches a predetermined ratio, it is determined that the text to be proofread is correctly marked.

[0024] In an exemplary embodiment of the present disclosure, when the coincidence rate obtained by character matching between the proofreading template and the corresponding text to be proofread reaches a predetermined ratio, it is determined that the text to be proofread is correctly marked, and further includes:

[0025] The content of the text to be proofread is replaced with the content of the corresponding proofreading template.

[0026] In an exemplary embodiment of the present disclosure, after the document to be proofread is split according to a predetermined rule to obtain a proofreading template, the method further includes:

[0027] Obtaining the position number of the proofreading template in the document to be proofread;

[0028] Wherein, comparing the proofreading template with the corresponding text to be proofread includes:

[0029] The text to be proofread and the proofreading template with the same position number are compared.

[0030] According to a second aspect of the present disclosure, there is provided a proofreading device for document review, comprising:

[0031] A first acquisition module is used to acquire a document to be proofread, and split the document to be proofread according to a predetermined rule to obtain a proofreading template;

[0032] A second acquisition module is used to acquire the annotation information of the clauses in the clause catalog of the document to be proofread, and split the annotation information according to the predetermined rule to obtain the text to be proofread;

[0033] A comparison module, used for comparing the proofreading template with the corresponding text to be proofread;

[0034] The determination module is used to determine that the content of the text to be proofread is correctly marked when the content of the proofreading template and the corresponding text to be proofread are consistent.

[0035] According to a third aspect of the present disclosure, there is provided a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the proofreading method for document review as described in any one of the above items is implemented.

[0036] According to a fourth aspect of the present disclosure, there is provided an electronic device, including:

[0037] Processor; and

[0038] a memory having a computer program stored thereon;

[0039] The processor is configured to implement the document review proofreading method as described in any one of the above by executing the computer program.

[0040] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0041] Through the various embodiments of the present disclosure, a document to be proofread is obtained, and the document to be proofread is split according to a predetermined rule to obtain a proofreading template. The annotation information of the clauses in the clause catalog of the document to be proofread is obtained, and the annotation information is split according to the predetermined rule to obtain the text to be proofread. The proofreading template is compared with the corresponding text to be proofread. When the content of the proofreading template and the corresponding text to be proofread are consistent, it is determined that the text to be proofread is correctly marked. The proofreading template split according to the predetermined rule is compared with the text to be proofread, which ensures the uniformity of the format of the proofreading template and the text to be proofread, and facilitates comparison to improve the accuracy of the comparison result. And by comparing the text to be proofread with the proofreading template of the document to be proofread, the accuracy of the text to be proofread can be accurately identified, and the situation that the text to be proofread and the proofreading document do not match due to manual annotation errors or misoperation is prevented.

[0042] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0044] Figure 1 A schematic diagram showing an application scenario of a proofreading method for document review according to an exemplary embodiment of the present disclosure is shown.

[0045] Figure 2 A flowchart of a proofreading method for document review according to an exemplary embodiment of the present disclosure is shown.

[0046] Figure 3 An exemplary embodiment of the present disclosure is shown Figure 2 A flowchart of step S203 in the proofreading method for document review is shown.

[0047] Figure 4 A schematic block diagram of a proofreading device for document review according to an exemplary embodiment of the present disclosure is shown.

[0048] Figure 5 A schematic block diagram of an electronic device according to an exemplary embodiment of the present disclosure is shown.

[0049] Figure 6 A schematic diagram showing a computer-readable storage medium according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0050] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.

[0051] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings represent the same or similar parts, and thus their repeated description will be omitted.

[0052] See also Figure 1 , Figure 1 FIG. 1 is a schematic diagram of an application scenario of a proofreading method for document review according to an exemplary embodiment of the present disclosure. Figure 1 As shown in the embodiment of FIG. 1 , the application scenario includes one or more of terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0053] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. According to the implementation requirements, there may be any number of terminal devices, networks and servers. For example, the server 105 may be a server cluster composed of multiple servers.

[0054] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send information, etc. Terminal devices 101, 102, 103 can be various electronic devices with display screens, including but not limited to smart phones, tablet computers, portable computers, desktop computers, etc.

[0055] Server 105 can be a server that provides various services. For example, server 105 can obtain a document to be proofread, and split the document to be proofread according to a predetermined rule to obtain a proofreading template, obtain the annotation information of the clauses in the clause catalog of the document to be proofread, and split the annotation information according to the predetermined rule to obtain a text to be proofread, compare the proofreading template with the corresponding text to be proofread, and when the contents of the proofreading template and the corresponding text to be proofread are consistent, it is determined that the content of the text to be proofread is correctly marked.

[0056] Please refer to Figure 2 , Figure 2 A flowchart of a proofreading method for document review according to an exemplary embodiment of the present disclosure is shown in FIG. Figure 2 In the illustrated embodiment, the document review proofreading method includes at least steps S201 to S204, which are described in detail as follows:

[0057] Step S201, obtaining a document to be proofread, and splitting the document to be proofread according to a predetermined rule to obtain a proofreading template.

[0058] Among them, documents refer to contract reviews related to law, official documents related to government affairs, etc. Since the content of documents is relatively large, in order to facilitate overview, each document has a clause catalog corresponding to its content. For example, when the document is a contract, the clause catalog of the document includes the contract preamble, the parties to the contract, the content of the agreement, the date, etc.

[0059] Document review refers to marking each clause in the clause catalog of the document, and finding the corresponding expression of the clause in the document as the annotation of the clause. For example, when the document is a contract, the corresponding expression of the clause of the contract parties is Company A and Company B, etc. Since errors or misoperations are prone to occur during the document review process, it is necessary to proofread the annotations of the reviewed documents. Documents to be proofread refer to documents that have been reviewed.

[0060] The predetermined rule is pre-configured. In an exemplary embodiment, the server 105 can split the document to be proofread according to the predetermined rule to obtain a proofreading template. In one example, the predetermined rule can be to split the content of the document to be proofread according to the division of paragraphs. In another example, the predetermined rule is to split the content of the document to be proofread according to the division of sentences. This example does not impose any special restrictions on this, and those skilled in the art can set it according to actual design needs.

[0061] Step S202, obtaining the annotation information of the clauses in the clause catalog of the document to be proofread, and splitting the annotation information according to the predetermined rule to obtain the text to be proofread.

[0062] In this exemplary embodiment, the annotation information corresponding to each clause in the clause catalog of the document to be proofread is obtained, and the annotation information is split according to the predetermined rule to ensure the uniformity of the structure of the text to be proofread and the proofreading template, so as to facilitate subsequent comparison.

[0063] Step S203: comparing the proofreading template with the corresponding text to be proofread.

[0064] In this exemplary embodiment, the template to be proofread obtained by splitting according to the predetermined rule and the corresponding text to be proofread are compared. Since the proofreading template is split from the original content in the document to be proofread, comparing the two can ensure the correctness of the content of the text to be proofread.

[0065] In an exemplary embodiment, after the document to be proofread is split according to a predetermined rule to obtain a proofreading template, the proofreading method for document review further includes:

[0066] Obtaining the position number of the proofreading template in the document to be proofread;

[0067] Wherein, comparing the proofreading template with the corresponding text to be proofread includes:

[0068] The text to be proofread and the proofreading template with the same position number are compared.

[0069] In this exemplary embodiment, when the document to be proofread is split, the proofreading templates are numbered in the order in which they appear in the document to be proofread, for example, proofreading template A is numbered 1, proofreading template B is numbered 2, and so on. At the same time, when the annotation information is split to obtain the text to be proofread, the text to be proofread is numbered in order. When comparing, the text to be proofread and the proofreading template with the same position number are compared to facilitate comparison and prevent errors in the correspondence between the proofreading template and the text to be proofread. In one example, the number may be a letter, such as A, B, or C, and in another example, the number may be a number, which is not specifically limited in this example.

[0070] Please refer to Figure 3 , Figure 3 According to an exemplary embodiment of the present disclosure Figure 2 Schematic diagram of the process of step S203 in the proofreading method of document review. Figure 3 As shown in the embodiment of FIG. 1 , step S203, comparing the proofreading template with the corresponding text to be proofread, includes:

[0071] Step S301: Obtain the sentence vectors of the proofreading template.

[0072] The sentence vectors refer to dividing the content of the proofreading template into sentences and converting each sentence into a vector form to obtain the sentence vectors of the proofreading template.

[0073] In an exemplary embodiment, obtaining the sentence vectors of the proofreading template includes:

[0074] Segment each sentence of the proofreading template to obtain segmented words.

[0075] Obtain the word vectors corresponding to each segmented word.

[0076] Based on the word vectors corresponding to each segmented word, obtain the sentence vectors of the sentence.

[0077] In this exemplary embodiment, segment each sentence of the proofreading template to obtain segmented words, and obtain the word vectors of each segmented word based on the obtained segmented words. In one example, when obtaining the word vectors corresponding to each segmented word, meaningless segmented words such as "de" can be removed to improve the acquisition efficiency. Then, based on the word vectors of each segmented word, obtain the sentence vectors of each sentence of the proofreading template.

[0078] Step S302: Obtain the sentence vectors of the text to be proofread corresponding to the proofreading template.

[0079] In this exemplary embodiment, the method for obtaining the sentence vectors of the text to be proofread is the same as that for obtaining the sentence vectors of the proofreading template, so it will not be elaborated here.

[0080] Step S303: Calculate the cosine similarity between the sentence vectors of the proofreading template and the sentence vectors of the text to be proofread corresponding to it.

[0081] In this exemplary embodiment, the cosine similarity refers to calculating the cosine value between two vectors to measure the similarity between the two vectors. By calculating the cosine similarity between the sentence vectors of the proofreading template and the sentence vectors of the text to be proofread corresponding to it, the similarity degree between the proofreading template and the text to be proofread can be obtained to determine whether the proofreading template and the text to be proofread are consistent.

[0082] Step S304: Determine whether the content of the proofreading template and the text to be proofread corresponding to it are consistent according to the cosine similarity.

[0083] In this exemplary embodiment, the value of cosine similarity is between -1 and 1. The larger the value of cosine similarity is, the higher the similarity of the two vectors is. When the cosine similarity is 1, it means that the two vectors coincide, that is, they are completely consistent. Therefore, according to the size of the cosine similarity, it can be judged whether the content of the proofreading template and the corresponding text to be proofread are consistent.

[0084] In an exemplary embodiment, determining whether the content of the proofreading template and the corresponding text to be proofread are consistent according to the cosine similarity includes:

[0085] When the cosine similarity is greater than or equal to a predetermined threshold, it is determined that the content of the proofreading template and the corresponding text to be proofread are consistent.

[0086] The predetermined threshold is pre-configured, and the predetermined threshold may be 0.8, 0.9 or 1, etc. By setting the predetermined threshold, when the cosine similarity is greater than or equal to the predetermined threshold, it means that the proofreading template and the corresponding text to be proofread have a high degree of similarity. When the predetermined threshold is large enough, it can be considered that the proofreading template with the cosine similarity reaching the predetermined threshold is consistent with the content of the text to be proofread.

[0087] In an exemplary embodiment, the determination of the predetermined threshold comprises:

[0088] Acquire a sentence vector of a sample of the proofreading template, wherein the sample is a pre-set synonymous sentence of the proofreading template;

[0089] Selecting a test sample from the samples, and calculating the cosine similarity of the sentence vectors between the test sample and other samples;

[0090] The predetermined threshold is determined based on the cosine similarity of the sentence vectors between the test sample and the other samples.

[0091] The samples of the proofreading template refer to synonymous sentences of the proofreading template, for example: "Signing date: XX / XX / 201X" and "Signing time: XX / XX / 201X" are synonymous sentences, and so on. Based on the samples of the proofreading template, the sentence vector of each sample is obtained, and then any one of the sentence vectors of multiple samples is selected as a test sample, and the cosine similarity of the sentence vectors between the test sample and the other samples is calculated respectively. The predetermined threshold is determined based on the cosine similarity of the sentence vectors between the test sample and the other samples. This makes the setting of the predetermined threshold more reasonable to avoid being too large or too small, which may lead to proofreading errors.

[0092] In an exemplary embodiment, determining the predetermined threshold based on the cosine similarity of the sentence vectors between the test sample and the other samples includes:

[0093] The minimum value of the cosine similarity between the sentence vectors of the test sample and other samples is selected as the predetermined threshold.

[0094] In another exemplary embodiment, determining the predetermined threshold based on the cosine similarity of the sentence vectors between the test sample and the other samples includes:

[0095] The average value of the cosine similarities between the sentence vectors of the test sample and the other samples is calculated and used as the predetermined threshold.

[0096] Please continue to refer to Figure 2 , step S204, when the content of the proofreading template and the corresponding text to be proofread are consistent, it is determined that the text to be proofread is correctly marked.

[0097] When it is determined that the text to be proofread is correctly annotated, it means that the text to be proofread does not need to be modified and the annotated content is correct. By comparing the proofreading template with the text to be proofread, the correctness of the text to be proofread is ensured, avoiding errors or misoperations during manual proofreading, which may lead to deviations between the text to be proofread and the proofreading template.

[0098] In an exemplary embodiment, after comparing the proofreading template with the corresponding text to be proofread, the proofreading method for document review further includes:

[0099] When the contents of the proofreading template and the corresponding text to be proofread are inconsistent, performing character matching between the proofreading template and the corresponding text to be proofread;

[0100] When the coincidence rate between the characters of the proofreading template and the corresponding text to be proofread reaches a predetermined ratio, the text to be proofread is determined to be correctly marked.

[0101] In this exemplary embodiment, the proofreading template and the corresponding text to be proofread are matched by character matching to determine the overlap rate of the characters of the proofreading template and the corresponding text to be proofread. When the overlap rate reaches a predetermined ratio, it means that the proofreading template and the corresponding text to be proofread are roughly consistent, and there may only be errors in punctuation marks or individual words. Therefore, the text to be proofread is determined to be correctly marked. This is to avoid reporting errors and modifications due to minor differences, resulting in increased proofreading costs. Among them, the predetermined ratio is pre-configured, and the predetermined ratio can be 90%, 95% or 98%, etc. This example does not make any special restrictions on this.

[0102] In an exemplary embodiment, when the coincidence rate obtained by character matching between the proofreading template and the corresponding text to be proofread reaches a predetermined ratio, after determining that the text to be proofread is correctly marked, the method further includes:

[0103] The content of the text to be proofread is replaced with the content of the corresponding proofreading template.

[0104] In this exemplary embodiment, when the overlap rate between the characters of the proofreading template and the corresponding text to be proofread reaches a predetermined ratio, the content of the text to be proofread is replaced with the content of the corresponding proofreading template, thereby ensuring the accuracy of the text to be proofread, without the need for manual modification, and reducing the proofreading cost.

[0105] The disclosed embodiment also provides a proofreading device for document review. Figure 4 As shown, the exemplary document review proofreading device may include a first acquisition module 401, a second acquisition module 402, a comparison module 403 and a determination module 404. Among them:

[0106] The first acquisition module 401 is used to acquire the document to be proofread, and split the document to be proofread according to a predetermined rule to obtain a proofreading template;

[0107] The second acquisition module 402 is used to acquire the annotation information of the clauses in the clause catalog of the document to be proofread, and split the annotation information according to the predetermined rule to obtain the text to be proofread;

[0108] The comparison module 403 is used to compare the proofreading template with the corresponding text to be proofread;

[0109] The determination module 404 is used to determine that the content of the to-be-proofreading text is correctly marked when the content of the proofreading template and the corresponding to-be-proofreading text are consistent.

[0110] The specific details of each module in the above-mentioned document review proofreading device have been described in detail in the corresponding document review proofreading method, so they will not be repeated here.

[0111] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0112] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0113] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0114] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as a system, method or program product. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as a "circuit", "module" or "system".

[0115] According to an exemplary embodiment, the device can be implemented as an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor causes the processor to perform any one of the method embodiments described above, or, when the computer program is executed by the processor, the electronic device implements the functions implemented by the constituent units / modules of the various embodiments of the device described above.

[0116] The processor described in the above embodiments may refer to a single processing unit, such as a central processing unit CPU, or may refer to a distributed processor system including a plurality of dispersed processing units.

[0117] The memory described in the above embodiments may include one or more memories, which may be internal memories of the computing device, such as various transient or non-transient memories, or external storage devices connected to the computing device via a memory interface.

[0118] Refer to the following Figure 5 The electronic device 500 according to this embodiment of the present invention is described. Figure 5 The electronic device 500 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0119] like Figure 5 As shown, the electronic device 500 is in the form of a general computing device. The components of the electronic device 500 may include but are not limited to: at least one processing unit 510, at least one storage unit 520, and a bus 530 connecting different system components (including the storage unit 520 and the processing unit 510).

[0120] The storage unit stores program codes, which can be executed by the processing unit 510, so that the processing unit 510 performs the steps according to various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification. For example, the processing unit 510 can perform the following steps: Figure 2 In the step S201 shown in the figure, a document to be proofread is obtained, and the document to be proofread is split according to a predetermined rule to obtain a proofreading template; in the step S202, the annotation information of the clauses in the clause catalog of the document to be proofread is obtained, and the annotation information is split according to the predetermined rule to obtain a text to be proofread; in the step S203, the proofreading template is compared with the corresponding text to be proofread; in the step S204, when the contents of the proofreading template and the corresponding text to be proofread are consistent, it is determined that the text to be proofread is correctly annotated.

[0121] The storage unit 520 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 5201 and / or a cache storage unit 5202 , and may further include a read-only storage unit (ROM) 5203 .

[0122] The storage unit 520 may also include a program / utility 5204 having a set (at least one) of program modules 5205, such program modules 5205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0123] Bus 530 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0124] The electronic device 500 may also communicate with one or more external devices 700 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 500, and / or communicate with any device that enables the electronic device 500 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 550. Furthermore, the electronic device 500 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 560. As shown, the network adapter 560 communicates with other modules of the electronic device 500 via a bus 530. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0125] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0126] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.

[0127] refer to Figure 6 As shown, a program product 600 for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.

[0128] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0129] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0130] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0131] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0132] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to an exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0133] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

Claims

1. A proofreading method for document review, characterized in that: include: Acquire a document to be proofread, and split the document to be proofread according to a predetermined rule to obtain a proofreading template; Numbering the proofreading templates in the document to be proofread according to their sequence, and obtaining position numbers of the proofreading templates in the document to be proofread; Acquire the annotation information of the clauses in the clause catalog of the document to be proofread, and split the annotation information according to the predetermined rule to obtain the text to be proofread; Determine the position number of the text to be proofread according to the order in which the text to be proofread is obtained by splitting the annotation information; Comparing the proofreading template with the corresponding text to be proofread; Wherein, comparing the proofreading template with the corresponding text to be proofread includes: Comparing the text to be proofread and the proofreading template having the same position number; When the content of the proofreading template is consistent with the content of the corresponding text to be proofread, it is determined that the text to be proofread is correctly marked.

2. The document review proofreading method according to claim 1, characterized in that: Comparing the proofreading template with the corresponding text to be proofread, including: Obtaining a sentence vector of the proofreading template; Acquire a sentence vector of the text to be proofread corresponding to the proofreading template; Calculating the cosine similarity between the sentence vector of the proofreading template and the sentence vector of the text to be proofread corresponding to the sentence vector; According to the cosine similarity, it is determined whether the content of the proofreading template and the corresponding text to be proofread are consistent.

3. The document review proofreading method according to claim 2, characterized in that: Determining whether the proofreading template and the corresponding text to be proofread are consistent according to the cosine similarity includes: When the cosine similarity is greater than or equal to a predetermined threshold, it is determined that the content of the proofreading template and the corresponding text to be proofread are consistent.

4. The document review proofreading method according to claim 3, characterized in that: The determination of the predetermined threshold comprises: Acquire a sentence vector of a sample of the proofreading template, wherein the sample is a pre-set synonymous sentence of the proofreading template; Selecting a test sample from the samples, and calculating the cosine similarity of the sentence vectors between the test sample and other samples; The predetermined threshold is determined based on the cosine similarity of the sentence vectors between the test sample and the other samples.

5. The document review proofreading method according to claim 1, characterized in that: After comparing the proofreading template with the corresponding text to be proofread, the method further includes: When the contents of the proofreading template and the corresponding text to be proofread are inconsistent, performing character matching between the proofreading template and the corresponding text to be proofread; When the coincidence rate obtained by character matching between the proofreading template and the corresponding text to be proofread reaches a predetermined ratio, it is determined that the text to be proofread is correctly marked.

6. The document review proofreading method according to claim 5, characterized in that: When the coincidence rate between the characters of the proofreading template and the corresponding text to be proofread reaches a predetermined ratio, it is determined that the text to be proofread is correctly marked, and further includes: The content of the text to be proofread is replaced with the content of the corresponding proofreading template.

7. A proofreading device for document review, characterized in that: include: A first acquisition module is used to acquire a document to be proofread, and split the document to be proofread according to a predetermined rule to obtain a proofreading template; Numbering the proofreading templates in the document to be proofread according to their sequence, and obtaining position numbers of the proofreading templates in the document to be proofread; A second acquisition module is used to acquire the annotation information of the clauses in the clause catalog of the document to be proofread, and split the annotation information according to the predetermined rule to obtain the text to be proofread; Determine the position number of the text to be proofread according to the order in which the text to be proofread is obtained by splitting the annotation information; A comparison module, used for comparing the proofreading template with the corresponding text to be proofread; Wherein, comparing the proofreading template with the corresponding text to be proofread includes: Comparing the text to be proofread and the proofreading template having the same position number; The determination module is used to determine that the content of the text to be proofread is correctly marked when the content of the proofreading template and the corresponding text to be proofread are consistent.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the document review proofreading method according to any one of claims 1 to 6 is implemented.

9. An electronic device, characterized in that: include: processor; as well as a memory having a computer program stored thereon; The processor is configured to implement the document review proofreading method according to any one of claims 1 to 6 by executing the computer program.