Document proofreading method and device, storage medium and computer equipment

By embedding documents into canvas and leveraging the interactive functions of document canvas and business forms, the problem of lack of intuitiveness and interactivity in the prior art document proofreading is solved, and a more efficient and accurate document proofreading process is achieved.

CN119558309APending Publication Date: 2025-03-041DATA TECH SHANGHAI CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411681874.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-22
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

In the prior art, document proofreading methods lack intuitiveness and interactivity, and are complex in operation, which affects the accuracy and efficiency of proofreading.

Method used

By obtaining a complete set of documents and business forms, embed the documents into the canvas, forming a document canvas, using the document canvas and business forms to form a proofreading page, monitoring user click behavior, extracting field information, highlighting field blocks, performing field mapping and form backfill or document reflow updates.

Benefits of technology

It improves the interactivity and intuitiveness of document proofreading, reduces user manual operations, improves the accuracy and efficiency of proofreading, and ensures the durability and traceability of proofreading results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119558309A_ABST
    Figure CN119558309A_ABST
Patent Text Reader

Abstract

According to the document proofreading method and device, the storage medium and the computer equipment provided by the invention, when the document set is proofreading, the document set and the business form of the document set are firstly obtained, the document set is embedded into the canvas to form the document canvas, and a proofreading mode is entered in a manner of forming the document canvas proofreading page through the document canvas and the business form. When it is monitored that a user clicks a service field in the service form in the document canvas proofreading page, field information corresponding to the service field is extracted, and after a field block corresponding to the field information is obtained through retrieval in the document canvas, text information in the field block is analyzed in a highlighted mode, and wireframe display is carried out. And finally, performing field mapping on the text information and the field information, and performing form backfilling or document backflow updating according to a mapping result and a user instruction until the proofreading mode is exited. Therefore, through canvas embedding and field highlight mapping, automatic proofreading can be carried out on multiple documents at the same time, and then the proofreading accuracy and efficiency are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a document proofreading method, device, storage medium and computer equipment. Background Art

[0002] At present, ERP system has become an indispensable management tool for many enterprises. Its core function is to integrate and optimize various business processes of enterprises, significantly improving the operational efficiency of enterprises. Especially in the field of shipping supply chain, documents such as consignment books, supplementary materials, bills of lading and customs declaration materials are usually sets of composite files. The creation, proofreading and management of these sets of documents constitute an indispensable part of ERP system.

[0003] However, most existing document proofreading methods rely on standard front-end UI components to display and edit documents. Specifically, ERP systems usually use HTML tags to display document images and combine form controls to complete data proofreading, that is, users need to manually proofread single documents one by one. This method lacks intuitiveness and interactivity, which is not only complicated to operate, but also further affects the accuracy and efficiency of proofreading. Summary of the invention

[0004] The purpose of this application is to solve at least one of the above-mentioned technical defects, especially the technical defects that the document proofreading method in the prior art lacks intuitiveness and interactivity, which is not only complicated to operate, but also further affects the accuracy and efficiency of proofreading.

[0005] The present application provides a document proofreading method, the method comprising:

[0006] Acquire a set of documents consisting of multiple types of documents and a business form corresponding to the set of documents, and embed the set of documents into a canvas to form a document canvas; wherein each type of document is composed of multiple field blocks;

[0007] The document canvas and the business form are used to form a document canvas proofreading page, a proofreading mode is entered, and the user's click behavior is monitored in the document canvas proofreading page, so as to extract field information corresponding to the business field when the user is detected to click on the business field in the business form;

[0008] Retrieving a field block corresponding to the field information in the document canvas, and highlighting the field block to form a highlight block, and parsing text information in the highlight block and displaying the text information in a wireframe;

[0009] Field mapping is performed on the text information and the field information, and form backfilling or document reflow update is performed according to the mapping result and user instructions, until the proofreading mode is exited, and the proofread document canvas and business form are saved.

[0010] Optionally, embedding the set of documents into a canvas to form a document canvas includes:

[0011] Splitting the set of documents to obtain multiple types of documents and a document ID corresponding to each type of document;

[0012] A document tag corresponding to each document ID is generated, and each type of document is synchronously drawn in the canvas based on each document tag to form a document canvas.

[0013] Optionally, the synchronously drawing each type of document in the canvas based on each document tag includes:

[0014] For each type of document, perform field parsing on the document of that type to obtain field blocks in the document of that type and the coordinate position of each field block, and draw the field blocks of the document of that type on the canvas according to each coordinate position;

[0015] The drawing results of each type of document are indexed one-to-one with each document label, and a document canvas is generated based on the index results.

[0016] Optionally, each type of document in the document canvas corresponds to a document tag;

[0017] The retrieving a field block corresponding to the field information in the document canvas includes:

[0018] Determine the document ID corresponding to the field information and the document tag corresponding to the document ID;

[0019] Jump to the type document corresponding to the document tag in the document canvas, and retrieve the field block corresponding to the field information in the type document.

[0020] Optionally, the performing field mapping on the text information and the field information includes:

[0021] Determine a plurality of subfields in the text information and a field value of each subfield, and a plurality of subfields in the field information and a fill-in value of each subfield;

[0022] The same subfields in the text information and the field information are determined, and a field value corresponding to each same subfield in the text information is mapped to a corresponding blank value in the field information.

[0023] Optionally, performing form backfilling or document reflow updating according to the mapping result and the user instruction includes:

[0024] When it is confirmed that the user instruction is a form backfill instruction, for each identical subfield, the blank value of the subfield under the business field in the business form is automatically updated to the field value corresponding to the subfield;

[0025] When it is confirmed that the user instruction is a document reflow update instruction, for each identical sub-field, the field value of the sub-field in the field block is automatically updated to the blank value corresponding to the sub-field in the document canvas.

[0026] Optionally, the method further comprises:

[0027] The blank values ​​of the subfields in the business form are directly filled in or updated according to the user's input information.

[0028] The present application also provides a document proofreading device, comprising:

[0029] A document canvas generation module is used to obtain a set of documents consisting of multiple types of documents and a business form corresponding to the set of documents, and embed the set of documents into a canvas to form a document canvas; wherein each type of document is composed of multiple field blocks;

[0030] A field information extraction module, used to use the document canvas and the business form to form a document canvas proofreading page, enter a proofreading mode, and monitor the user's click behavior in the document canvas proofreading page, so as to extract field information corresponding to the business field when it is detected that the user clicks on a business field in the business form;

[0031] A text information display module, used to retrieve a field block corresponding to the field information in the document canvas, highlight the field block to form a highlight block, and parse the text information in the highlight block and display the text information in a wireframe;

[0032] The document proofreading module is used to perform field mapping between the text information and the field information, and to perform form backfilling or document reflow update according to the mapping result and user instructions, until the proofreading mode is exited, and the proofread document canvas and business form are saved.

[0033] The present application also provides a storage medium, in which computer-readable instructions are stored. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the document proofreading method described in any one of the above embodiments.

[0034] The present application also provides a computer device, comprising: one or more processors, and a memory;

[0035] The memory stores computer-readable instructions, and when the computer-readable instructions are executed by the one or more processors, the steps of the document proofreading method described in any one of the above embodiments are performed.

[0036] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0037] The document proofreading method, device, storage medium and computer equipment provided by the present application can first obtain a set of documents consisting of multiple types of documents and the business form corresponding to the set of documents when proofreading a set of documents, and then embed the set of documents into the canvas to form a document canvas, so that the document canvas and the business form are used to form a document canvas proofreading page, so that the interactivity in the proofreading process can be improved through the event function of the document canvas. After entering the proofreading mode, the user's click behavior can be monitored in the document canvas proofreading page, so that when the user clicks on the business field in the business form, the field information corresponding to the business field can be extracted, thereby reducing the user's manual operation and improving efficiency. Since each type of document in the document canvas is composed of multiple field blocks, the field block corresponding to the field information can be retrieved in the document canvas, and then the field block is highlighted as a highlight block, the text information in the highlight block is parsed, and the text information is displayed in a wireframe to improve intuitiveness. Finally, the text information and field information can be mapped, and the form can be backfilled or the document can be reflowed and updated according to the mapping results and user instructions until the proofreading mode is exited, and the proofread document canvas and business form can be saved to ensure the persistence and traceability of the proofreading results. In short, through canvas embedding and field highlighting mapping, this application can automatically proofread multiple documents at the same time, thereby improving the accuracy and efficiency of proofreading. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0039] Figure 1 A flowchart of a document proofreading method provided in an embodiment of the present application;

[0040] Figure 2 A schematic diagram of the structure of a document proofreading device provided in an embodiment of the present application;

[0041] Figure 3 A schematic diagram of the internal structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0043] Most existing document proofreading methods rely on standard front-end UI components to display and edit documents. Specifically, ERP systems usually use HTML tags to display document images and combine form controls to complete data proofreading, that is, users need to manually proofread single documents one by one. This method lacks intuitiveness and interactivity, is not only complicated to operate, but also further affects the accuracy and efficiency of proofreading.

[0044] Based on this, this application proposes the following technical solutions, see below for details:

[0045] In one embodiment, Figure 1 As shown, Figure 1 A flowchart of a document proofreading method provided in an embodiment of the present application; the present application provides a document proofreading method, which specifically includes the following:

[0046] S110: Obtain a set of documents consisting of multiple types of documents and a business form corresponding to the set of documents, and embed the set of documents into a canvas to form a document canvas; wherein each type of document is composed of multiple field blocks.

[0047] In this step, when proofreading a set of documents, the user can first upload a set of documents consisting of multiple types of documents in the computer device, so that the computer device can embed the set of documents into the canvas to form a document canvas, and at the same time obtain the business form corresponding to the set of documents. In this way, the computer device can realize backfill proofreading between the set of documents and the business form based on the document canvas.

[0048] Among them, a set of documents refers to a complete set of project files composed of a group of interrelated documents belonging to the same project or business process, which is usually used to support the needs of a certain business process or project. The type documents in a set of documents may contain files of different types and formats, such as text files, tables, drawings, reports, etc. Business forms refer to business process forms obtained by summarizing key data in a set of documents, which may include basic information, approval process information, check items, data entry items, etc.

[0049] Specifically, when the computer device obtains the business form corresponding to the set of documents, it can first obtain the project ID corresponding to the set of documents, and then search whether there is a business form corresponding to the project ID in the database. If not, it means that the set of documents has not been backfilled, that is, the key data in the set of documents has not been summarized, and the business form of the set of documents does not exist in the database. At this time, the computer device can obtain a blank template form as the business form of the set of documents, and then the data of the business form can be backfilled based on the set of documents during the document proofreading process; if the business form corresponding to the project ID exists in the database, it means that the set of documents has been backfilled, that is, the key data in the set of documents has been summarized to form a business form. At this time, the computer device can directly obtain the business form corresponding to the set of documents from the database, and then the document proofreading can be performed.

[0050] It should be noted that the canvas in this application refers to a visual space used by computer devices to display and manage complete sets of documents. Through the canvas, various types of files in the complete set of documents can be embedded, arranged and displayed as needed to form an overall view of the document, so that users can view, edit and proofread the document content in the canvas, thereby improving the intuitiveness of the proofreading process. In addition, through the canvas document embedded in the complete set of documents, users can intuitively view various types of documents and perform event triggering, such as clicking, marking, associating data and other operations. These events can enable two-way interaction between the complete set of documents and the business form, thereby improving the interactivity of the proofreading process.

[0051] S120: compose a document canvas proofreading page using the document canvas and the business form, enter the proofreading mode, and monitor the user's click behavior in the document canvas proofreading page, so as to extract the field information corresponding to the business field when monitoring the user clicking on the business field in the business form.

[0052] In this step, after obtaining the document canvas and the business form through step S110, the computer device can use the document canvas and the business form to form a document canvas proofreading page, thereby entering the proofreading mode, and monitor the user's click behavior in the document canvas proofreading page. Once the user is detected clicking on the business field in the business form, the computer device can extract the field information corresponding to the business field and perform subsequent proofreading operations, thereby reducing the user's manual operations and improving efficiency.

[0053] It is understandable that the document canvas proofreading page of the present application is a specially designed proofreading interface for displaying and proofreading complete sets of documents and their corresponding business forms; in this page, users can intuitively view the document content of each type of document and interact with related business fields to achieve proofreading and backfilling of data. For example, the document canvas proofreading page can be formed by combining two columns of operation windows side by side, where the left window can be used to display each type of document in the document canvas, and the right side can display business forms, thereby achieving simultaneous proofreading of multiple documents.

[0054] Specifically, after entering the proofreading mode, when the user clicks on a business field in the business form, the computer device will trigger a corresponding event, and according to the preset logic and association rules in the canvas, quickly retrieve the content related to the business field in the document canvas, and then compare and check; wherein, the retrieval of the computer device may include extracting corresponding text, numerical values ​​or chart information from multiple types of documents, which is not limited here. This application uses the event function of the document canvas for proofreading, which can not only ensure the consistency and accuracy of data proofreading, but also reduce a large number of manual operations during the proofreading process, greatly improving the proofreading efficiency.

[0055] S130: Retrieve a field block corresponding to the field information in the document canvas, highlight the field block to form a highlighted block, and parse text information in the highlighted block and display the text information in a wireframe.

[0056] In this step, since each type of file is composed of multiple field blocks, when the computer device obtains the field information corresponding to the business field, it can retrieve the field block corresponding to the field information in the document canvas, highlight the retrieved field block to form a highlighted block, and parse the text information in the highlighted block and display the text information in a wireframe, thereby further improving the intuitiveness of the proofreading process.

[0057] It is understandable that by highlighting the retrieved field blocks to form obvious highlight blocks, users can clearly identify the specific content corresponding to the business fields; once the highlight blocks are identified, the computer device can also parse the text information therein and display the text information in the form of wireframes at adjacent positions of the highlight blocks, thereby enhancing the visibility and operability of the text and making the structure of the information clearer. Therefore, during the proofreading process, the computer device can identify and annotate the text content that the user is concerned about, so that the user can more intuitively see the relationship between the text content in the highlight block and the business field, reducing the possibility of errors in the proofreading process.

[0058] Furthermore, the field blocks retrieved by the computer device may be one or more; when there are multiple field blocks, these field blocks may exist in the same type of document or in different types of documents; when they exist in different types of documents, the computer device can highlight and wireframe the corresponding field blocks in each type of document, and at the same time, can also mark the type of document where each field block is located, so that the user can intuitively see the type of document where each field block is located, and then jump between different types of documents and view the content. Therefore, the present application can realize field comparison across documents in the same business form, further improving the efficiency of document proofreading.

[0059] S140: Field mapping is performed on the text information and the field information, and form backfilling or document reflow update is performed according to the mapping result and the user instruction, until the proofreading mode is exited, and the proofread document canvas and business form are saved.

[0060] In this step, after the text information displayed in the wireframe in the document canvas is obtained through step S130, the computer device can perform field mapping between the text information in the document canvas and the field information in the business form, and then based on user instructions, perform form backfilling or document reflow update between the document canvas and the business form according to the mapping result until the proofreading mode is exited and the proofread document canvas and business form are saved.

[0061] It is understandable that the computer device can accurately map the text information in the document canvas with the field information in the business form, thereby ensuring that each field in the text information can be accurately mapped to the corresponding field in the field information, forming an effective interaction framework. Based on this interaction framework, i.e., the mapping result, after the user issues an instruction, the computer device can perform a form backfill or document reflow update operation between the document canvas and the business form according to the type of instruction.

[0062] To elaborate, through form backfill, the computer device can fill the relevant data in the text information back into the corresponding field content in the business form; and through document reflux update, the computer device can update the corresponding field content in the text canvas according to the relevant data in the field information.

[0063] Therefore, when the user exits the proofreading mode, the document canvas and business form may have content adjustments. At this time, the computer device can save the proofread document canvas and business form to ensure that all adjustment results can be recorded, ensuring the persistence and traceability of the proofreading results.

[0064] In the above embodiment, when proofreading a set of documents, a set of documents consisting of multiple types of documents and a business form corresponding to the set of documents can be first obtained, and then the set of documents can be embedded in the canvas to form a document canvas. In this way, the document canvas and the business form are used to form a document canvas proofreading page, so that the interactivity in the proofreading process can be improved through the event function of the document canvas. After entering the proofreading mode, the user's click behavior can be monitored in the document canvas proofreading page, so that when the user clicks on the business field in the business form, the field information corresponding to the business field can be extracted, thereby reducing the user's manual operation and improving efficiency. Since each type of document in the document canvas is composed of multiple field blocks, the field block corresponding to the field information can be retrieved in the document canvas, and then the field block is highlighted as a highlight block, the text information in the highlight block is parsed, and the text information is displayed in a wireframe to improve intuitiveness. Finally, the text information and field information can be mapped, and the form can be backfilled or the document can be reflowed and updated according to the mapping results and user instructions until the proofreading mode is exited, and the proofread document canvas and business form can be saved to ensure the persistence and traceability of the proofreading results. In short, through canvas embedding and field highlighting mapping, this application can automatically proofread multiple documents at the same time, thereby improving the accuracy and efficiency of proofreading.

[0065] In one embodiment, the process of embedding the set of documents into the canvas to form the document canvas in step S110 may include:

[0066] S111: Split the set of documents to obtain multiple types of documents and the document ID corresponding to each type of document.

[0067] S112: Generate a document tag corresponding to each document ID, and synchronously draw each type of document in the canvas based on each document tag to form a document canvas.

[0068] In this embodiment, when the computer device embeds a document in a canvas, it can first split the set of documents to obtain multiple types of documents and a document ID corresponding to each type of document, and then generate a document tag corresponding to each document ID. Then, each type of document can be synchronously drawn in the canvas based on each document tag to form a document canvas. Therefore, the user can jump to the location of a type of document in the document canvas by clicking on each document tag.

[0069] The document ID refers to the unique identifier of the document, which is used to distinguish and identify each type of document. The document ID is usually automatically generated by the system when a new document is created to ensure the uniqueness of each document in the system. The document tag refers to the visual element corresponding to the document ID, which is used to represent and manage various types of documents in the document canvas. The document tag can be displayed in the form of graphics and text at the top of the document canvas. Users can quickly jump to the location of the corresponding type of document in the document canvas by clicking on these document tags, which improves efficiency.

[0070] For example, computer equipment can use AI capabilities to intelligently split and classify sets of documents containing multiple types of documents. In this process, computer equipment can automatically analyze the structure and content of the set of documents through document recognition services and identify the characteristics of different types of documents. For example, in a set of documents, pages 1-3 are ocean bills of lading, which contain the cargo transportation number, consignor and consignee, etc.; pages 4-5 are packing lists, which contain the specific contents and quantity of the goods, etc.; pages 6-10 are commercial invoices, which contain transaction amounts, payment terms and tax information, etc.

[0071] In one embodiment, the process of synchronously drawing each type of document in the canvas based on each document tag in step S112 may include:

[0072] S1121: For each type of document, perform field parsing on the document of that type to obtain field blocks in the document of that type and the coordinate position of each field block, and draw the field blocks of the document of that type on the canvas according to the coordinate positions.

[0073] S1122: Perform one-to-one indexing of the drawing results of each type of document and each document tag, and generate a document canvas according to the indexing results.

[0074] In this embodiment, when drawing a document canvas, for each type of document, the computer device can perform field parsing on that type of document to obtain the field blocks in that type of document and the coordinate position of each field block, and then the computer device can draw the field blocks of that type of document in the canvas according to the various coordinate positions; when the field blocks in each type of document are drawn, the computer device can perform one-to-one indexing of the drawing results of each type of document and each document label, and generate a document canvas based on the indexing results.

[0075] Specifically, the computer device can use OCR (Optical Character Recognition) technology to parse the field structure and layout in the type document, so that the document content in the type document can be divided into multiple field blocks according to the parsing results, and the coordinate position of each field block in the type document can be calculated. After obtaining the coordinate position of each field block, the computer device can accurately draw each field block to the corresponding position in the preset canvas layout, so that the structure and information of the document can be displayed in a visual manner. Then, the computer device can index the drawing results of each type of document with the corresponding document label one-to-one based on the document ID, so as to ensure that when the user needs to view or proofread a field block, he can quickly jump to the corresponding position by clicking the corresponding document label.

[0076] In one embodiment, each type of document in the document canvas in step S130 corresponds to a document tag; wherein the process of retrieving a field block corresponding to the field information in the document canvas may include:

[0077] S131: Determine the document ID corresponding to the field information, and the document tag corresponding to the document ID.

[0078] S132: Jump to the type document corresponding to the document tag in the document canvas, and retrieve the field block corresponding to the field information in the type document.

[0079] In this embodiment, when a computer device searches for field information, it can first determine the document ID corresponding to the field information and the document tag corresponding to the document ID. Then the computer device can jump to the type document corresponding to the document tag in the document canvas, and retrieve the field block corresponding to the field information in the type document, thereby narrowing the search scope and improving the search efficiency.

[0080] It is understandable that the document ID, as a unique identifier of a type of document, enables the computer to accurately locate the corresponding type of document, and the document tag can provide an intuitive query entry to quickly access the type of document. Therefore, after determining the document ID and its corresponding document tag, the computer device can quickly jump to the type of document corresponding to the document tag in the document canvas, and accurately search for the extracted field information, and quickly locate the coordinate position of the field block that meets the conditions, thereby improving the consistency of the data proofreading process and improving efficiency.

[0081] It should be noted that there may be one or more document IDs corresponding to the same field information, which will not be explained in detail here.

[0082] In one embodiment, the process of performing field mapping between text information and field information in step S140 may include:

[0083] S141: Determine multiple subfields in the text information and the field value of each subfield, as well as multiple subfields in the field information and the blank value of each subfield.

[0084] S142: Determine the same subfields in the text information and the field information, and map the field value corresponding to each same subfield in the text information with the corresponding fill-in-the-blank value in the field information.

[0085] In this embodiment, when performing field mapping, the computer device may first determine multiple subfields in the text information and the field value of each subfield, as well as multiple subfields in the field information and the blank value of each subfield, where the blank value may be a specific string or a null value. Then, the computer device may determine the same subfields in the text information and the field information, and map the field value corresponding to each of the same subfields in the text information with the corresponding blank value in the field information, thereby forming an effective interaction framework.

[0086] It is understandable that when performing field mapping, the computer device will first analyze the text information and identify multiple subfields and their corresponding field values, such as name, address, date and other fields, and the field value is the actual content of these subfields, such as a specific name or address. At the same time, the computer device can also perform similar analysis on the field information to extract multiple subfields and the blank value of each subfield. It should be noted here that the blank value can be a specific string, indicating that the subfield has been filled in, or it can be a null value, indicating that the subfield has not been filled in.

[0087] For example, in a text message or field information whose business field is INVOICE, the subfields and their corresponding values ​​are as follows: [INV.NO: 0224097887], [DATE: 2024 / 09 / 27], [SHOOPPING NO: 67928521].

[0088] Specifically, the computer device can compare the subfields in the text information and field information one by one to determine which subfields are the same. This process involves matching field names and types to ensure that only subfields with the same meaning and format are considered the same. Once the same subfield is determined, the computer device can match the field value corresponding to the subfield in the text information with the corresponding blank value in the field information one by one to form a mapping relationship, thereby representing the relationship between the field value that needs to be filled in the text information and the blank value actually filled in the field information, thereby improving the efficiency and accuracy of proofreading.

[0089] In one embodiment, the process of performing form backfilling or document reflow updating according to the mapping result and the user instruction in step S140 may include:

[0090] S143: When it is confirmed that the user instruction is a form filling instruction, for each identical sub-field, the blank value of the sub-field under the business field in the business form is automatically updated to the field value corresponding to the sub-field.

[0091] S144: When it is confirmed that the user instruction is a document reflow update instruction, for each identical sub-field, the field value of the sub-field in the field block in the document canvas is automatically updated to the blank value corresponding to the sub-field.

[0092] In this embodiment, after establishing the mapping relationship between the text information and the field information, the computer device can monitor and receive the user instructions sent by the user. The user instructions here include form backfill instructions and document reflow update instructions. The computer device can perform different operation methods according to different types of user instructions to achieve form backfill or document reflow update.

[0093] Specifically, when the user instruction is a form backfill instruction, for each identical sub-field, the computer device can automatically update the blank value of the sub-field under the business field in the business form to the field value corresponding to the sub-field, thereby realizing the field backfill and proofreading of the business form; when the user instruction is a document reflow update instruction, for each identical sub-field, the computer device can automatically update the field value of the sub-field in the field block in the document canvas to the blank value corresponding to the sub-field, thereby realizing the reverse update of the document canvas.

[0094] Furthermore, the computer device can use the postMessage event to backfill the form or reflow the document. The postMessage event here can be used for cross-source communication, which allows different windows, frames or work threads to safely pass messages, so the present application can implement data exchange between the document canvas and the business form through the postMessage event. To elaborate, the computer device can use the postMessage event to send the text information in the document canvas to the business form for data backfilling and field proofreading, and can also send the field information in the business form to the document canvas for drawing updates. In addition, the computer device can also directly paste the text information displayed in the wireframe in the document canvas to the clipboard, providing a reference basis for subsequent related operations, thereby improving the operability of the text information.

[0095] In one embodiment, the method may further include:

[0096] S150: directly fill in or update the blank values ​​of the subfields in the business form according to the user's input information.

[0097] In this embodiment, the user can also input information in the business form, and after receiving the input information of the user in the business form, the computer device can directly fill in or update the blank value of the corresponding subfield in the business form according to the input information. Therefore, during the document proofreading process, if there is an error in the type document, the user can also directly modify the business form through the computer device, and then reversely update the document canvas based on the modification result, thereby improving the scalability of document proofreading.

[0098] The document proofreading device provided in an embodiment of the present application is described below. The document proofreading device described below and the document proofreading method described above can be referenced to each other.

[0099] In one embodiment, Figure 2 As shown, Figure 2 A schematic diagram of the structure of a document proofreading device provided in an embodiment of the present application; the present application also provides a document proofreading device, including a document canvas generating module 210, a field information extracting module 220, a text information displaying module 230 and a document proofreading module 240, specifically including the following:

[0100] The document canvas generation module 210 is used to obtain a set of documents consisting of multiple types of documents and a business form corresponding to the set of documents, and embed the set of documents into the canvas to form a document canvas; wherein each type of document is composed of multiple field blocks.

[0101] The field information extraction module 220 is used to use the document canvas and the business form to form a document canvas proofreading page, enter the proofreading mode, and monitor the user's click behavior in the document canvas proofreading page, so as to extract the field information corresponding to the business field when it is detected that the user clicks on the business field in the business form.

[0102] The text information display module 230 is used to retrieve the field block corresponding to the field information in the document canvas, highlight the field block to form a highlighted block, and parse the text information in the highlighted block and display the text information in a wireframe;

[0103] The document proofreading module 240 is used to perform field mapping between text information and field information, and to perform form backfilling or document reflow update according to the mapping result and user instructions, until the proofreading mode is exited, and the proofread document canvas and business form are saved.

[0104] In the above embodiment, when proofreading a set of documents, a set of documents consisting of multiple types of documents and a business form corresponding to the set of documents can be first obtained, and then the set of documents can be embedded in the canvas to form a document canvas. In this way, the document canvas and the business form are used to form a document canvas proofreading page, so that the interactivity in the proofreading process can be improved through the event function of the document canvas. After entering the proofreading mode, the user's click behavior can be monitored in the document canvas proofreading page, so that when the user clicks on the business field in the business form, the field information corresponding to the business field can be extracted, thereby reducing the user's manual operation and improving efficiency. Since each type of document in the document canvas is composed of multiple field blocks, the field block corresponding to the field information can be retrieved in the document canvas, and then the field block is highlighted as a highlight block, the text information in the highlight block is parsed, and the text information is displayed in a wireframe to improve intuitiveness. Finally, the text information and field information can be mapped, and the form can be backfilled or the document can be reflowed and updated according to the mapping results and user instructions until the proofreading mode is exited, and the proofread document canvas and business form can be saved to ensure the persistence and traceability of the proofreading results. In short, through canvas embedding and field highlighting mapping, this application can automatically proofread multiple documents at the same time, thereby improving the accuracy and efficiency of proofreading.

[0105] In one embodiment, the document canvas generation module 210 may include:

[0106] The document splitting submodule is used to split a set of documents to obtain multiple types of documents and the document ID corresponding to each type of document.

[0107] The canvas drawing submodule is used to generate a document tag corresponding to each document ID, and synchronously draw each type of document in the canvas based on each document tag to form a document canvas.

[0108] In one embodiment, the canvas drawing submodule may include:

[0109] The field block drawing unit is used to perform field analysis on each type of document, obtain the field blocks in the type of document and the coordinate position of each field block, and draw the field blocks of the type of document in the canvas according to the coordinate positions.

[0110] The drawing result combination unit is used to index the drawing results of each type of document with each document label one-to-one, and generate a document canvas according to the index results.

[0111] In one embodiment, each type of document in the document canvas of the text information display module 230 corresponds to a document tag; the text information display module 230 may include:

[0112] The label determination submodule is used to determine the document ID corresponding to the field information and the document label corresponding to the document ID.

[0113] The field block retrieval submodule is used to jump to the type document corresponding to the document tag in the document canvas, and retrieve the field block corresponding to the field information in the type document.

[0114] In one embodiment, the document proofreading module 240 may include:

[0115] The field parsing submodule is used to determine multiple subfields in the text information and the field value of each subfield, as well as multiple subfields in the field information and the blank value of each subfield.

[0116] The field mapping submodule is used to determine the same subfields in the text information and the field information, and map the field value corresponding to each same subfield in the text information with the corresponding blank value in the field information.

[0117] In one embodiment, the document proofreading module 240 may further include:

[0118] The first updating submodule is used for automatically updating the blank value of the subfield under the business field in the business form to the field value corresponding to the subfield for each identical subfield when confirming that the user instruction is a form backfill instruction.

[0119] The second updating submodule is used to automatically update the field value of the subfield in the field block to the corresponding blank value of the subfield in the document canvas for each identical subfield when confirming that the user instruction is a document reflow update instruction.

[0120] In one embodiment, the method may further include:

[0121] The third updating module is used to directly fill in or update the blank values ​​of the subfields in the business form according to the user's input information.

[0122] In one embodiment, the present application further provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the document proofreading method described in any of the above embodiments.

[0123] In one embodiment, the present application further provides a computer device having computer-readable instructions stored therein. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the document proofreading method described in any one of the above embodiments.

[0124] Indicatively, Figure 3 As shown, Figure 3 This is a schematic diagram of the internal structure of a computer device provided in an embodiment of the present application. The computer device 300 may be provided as a server. Figure 3 The computer device 300 includes a processing component 302, which further includes one or more processors, and a memory resource represented by a memory 301 for storing instructions executable by the processing component 302, such as an application. The application stored in the memory 301 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 302 is configured to execute instructions to perform the document proofreading method of any of the above embodiments.

[0125] The computer device 300 may further include a power supply component 303 configured to perform power management of the computer device 300, a wired or wireless network interface 304 configured to connect the computer device 300 to a network, and an input / output (I / O) interface 305. The computer device 300 may operate based on an operating system stored in the memory 301, such as Windows Server TM, Mac OS X TM, Unix TM, Linux TM, Free BSD TM, or the like.

[0126] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0127] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0128] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can refer to each other.

[0129] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A document proofreading method, characterized in that: The method comprises: Acquire a set of documents consisting of multiple types of documents and a business form corresponding to the set of documents, and embed the set of documents into a canvas to form a document canvas; wherein each type of document is composed of multiple field blocks; The document canvas and the business form are used to form a document canvas proofreading page, a proofreading mode is entered, and the user's click behavior is monitored in the document canvas proofreading page, so as to extract field information corresponding to the business field when the user is detected to click on the business field in the business form; Retrieving a field block corresponding to the field information in the document canvas, and highlighting the field block to form a highlight block, and parsing text information in the highlight block and displaying the text information in a wireframe; Field mapping is performed on the text information and the field information, and form backfilling or document reflow update is performed according to the mapping result and user instructions, until the proofreading mode is exited, and the proofread document canvas and business form are saved.

2. The document proofreading method according to claim 1, characterized in that: The step of embedding the set of documents into a canvas to form a document canvas includes: Splitting the set of documents to obtain multiple types of documents and a document ID corresponding to each type of document; A document tag corresponding to each document ID is generated, and each type of document is synchronously drawn in the canvas based on each document tag to form a document canvas.

3. The document proofreading method according to claim 2, characterized in that: The synchronously drawing each type of document in the canvas based on each document tag includes: For each type of document, perform field parsing on the document of that type to obtain field blocks in the document of that type and the coordinate position of each field block, and draw the field blocks of the document of that type on the canvas according to each coordinate position; The drawing results of each type of document are indexed one-to-one with each document label, and a document canvas is generated based on the index results.

4. The document proofreading method according to claim 1, characterized in that: Each type of document in the document canvas corresponds to a document tag; The retrieving a field block corresponding to the field information in the document canvas includes: Determine the document ID corresponding to the field information and the document tag corresponding to the document ID; Jump to the type document corresponding to the document tag in the document canvas, and retrieve the field block corresponding to the field information in the type document.

5. The document proofreading method according to claim 1, characterized in that: The performing field mapping on the text information and the field information includes: Determine a plurality of subfields in the text information and a field value of each subfield, and a plurality of subfields in the field information and a fill-in value of each subfield; The same subfields in the text information and the field information are determined, and a field value corresponding to each same subfield in the text information is mapped to a corresponding blank value in the field information.

6. The document proofreading method according to claim 5, characterized in that: The form backfilling or document reflow updating according to the mapping result and the user instruction includes: When it is confirmed that the user instruction is a form backfill instruction, for each identical subfield, the blank value of the subfield under the business field in the business form is automatically updated to the field value corresponding to the subfield; When it is confirmed that the user instruction is a document reflow update instruction, for each identical sub-field, the field value of the sub-field in the field block is automatically updated to the blank value corresponding to the sub-field in the document canvas.

7. The document proofreading method according to claim 5 or 6, characterized in that: The method further comprises: The blank values ​​of the subfields in the business form are directly filled in or updated according to the user's input information.

8. A document proofreading device, characterized in that: include: A document canvas generation module is used to obtain a set of documents consisting of multiple types of documents and a business form corresponding to the set of documents, and embed the set of documents into a canvas to form a document canvas; wherein each type of document is composed of multiple field blocks; A field information extraction module, used to use the document canvas and the business form to form a document canvas proofreading page, enter a proofreading mode, and monitor the user's click behavior in the document canvas proofreading page, so as to extract field information corresponding to the business field when it is detected that the user clicks on a business field in the business form; A text information display module, used to retrieve a field block corresponding to the field information in the document canvas, highlight the field block to form a highlight block, and parse the text information in the highlight block and display the text information in a wireframe; The document proofreading module is used to perform field mapping between the text information and the field information, and to perform form backfilling or document reflow update according to the mapping result and user instructions, until the proofreading mode is exited, and the proofread document canvas and business form are saved.

9. A storage medium, characterized in that: The storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the document proofreading method according to any one of claims 1 to 7.

10. A computer device, characterized in that: include: one or more processors, and memory; The memory stores computer-readable instructions, and when the computer-readable instructions are executed by the one or more processors, the steps of the document proofreading method according to any one of claims 1 to 7 are performed.

Citation Information

Cited By

  • Electronic document format intelligent proofreading system and method based on multi-dimensional verification rule

    CN122133629A