Document processing method and device, electronic equipment and storage medium

By employing automated format repair technology driven by multimodal fusion parsing and a standardized knowledge base, the problem of low efficiency and uniformity in enterprise document review has been solved, achieving efficient and consistent document format processing.

CN123050402APending Publication Date: 2026-11-06BEIJING 21VIANET DATA CENT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611164430.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-31
Publication Date
2026-11-06

AI Technical Summary

Technical Problem

The format review of enterprise documents relies on manual inspection, which is inefficient, difficult to ensure consistency, prone to omissions and errors, and involves highly repetitive operations, which can easily lead to new format problems due to mistakes.

Method used

Multimodal fusion parsing technology is used to identify the layout, logical structure and format features of documents, generate multidimensional structured representations, identify abnormal formats using a standardized knowledge base and perform automatic repair, and combine a multi-agent collaborative processing architecture for format repair and optimization.

Benefits of technology

It has achieved automated document format review, which has improved efficiency, ensured the consistency of document format, avoided errors and omissions caused by manual review, and met the format requirements of different scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123050402A_ABST
    Figure CN123050402A_ABST
Patent Text Reader

Abstract

This application discloses a document processing method, apparatus, electronic device, and storage medium. The method includes: acquiring a document to be processed; identifying the document's layout features, logical structure, and format features; generating a multi-dimensional document structured representation based on the layout features, logical structure, and format features; identifying abnormal formats in the multi-dimensional document structured representation according to standard formats in a preset standardized knowledge base; and performing format repair operations on the document based on the abnormal formats and the standard formats to generate a format-repaired standard format document. This application offers high review efficiency, ensures document format consistency, avoids errors and omissions caused by manual review, and avoids the high repetitiveness and susceptibility to new format problems caused by manual repair operations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of document processing technology, and in particular relates to a document processing method, apparatus, electronic device and storage medium. Background Technology

[0002] As enterprises advance their digital transformation, the volume of documents created, circulated, and stored has increased significantly, making document format standardization one of the core requirements of enterprise document management. Enterprise documents typically have clear format standards, which not only affect the readability of the documents but also directly reflect the enterprise's internal management standards and the professionalism of external communication.

[0003] In related technologies, the format review of enterprise documents mainly relies on manual work. Reviewers need to check the titles, body text, tables, page settings, and other content in the document one by one against the format standards, and then manually adjust and fix them after finding problems. However, the above solution has the following drawbacks: 1) Manually checking page by page and paragraph by paragraph is inefficient; 2) Different reviewers have different understandings of the format standards, resulting in inconsistent review results for the same batch of documents, making it difficult to ensure the uniformity of document format; 3) Manual review is easily affected by factors such as fatigue and negligence, and errors are easily missed on details such as line spacing, paragraph spacing, and text formatting within tables; 4) When format errors are found, the error location needs to be manually located and adjusted one by one, which is highly repetitive and prone to causing new format problems due to operational errors. Summary of the Invention

[0004] The purpose of this application is to provide a document processing method, apparatus, electronic device, and storage medium to solve the problems in the related art, such as low review efficiency, difficulty in ensuring the uniformity of document format, easy omissions and errors, high repetitiveness of operations, and easy occurrence of new format problems due to operational errors.

[0005] To achieve the above objectives, the embodiments of this application adopt the following technical solutions: In a first aspect, embodiments of this application provide a document processing method, comprising: acquiring a document to be processed; identifying the layout features, logical structure, and format features of the document; generating a multidimensional document structured representation based on the layout features, logical structure, and format features; identifying abnormal formats in the multidimensional document structured representation based on standard formats in a preset standard knowledge base; and performing a format repair operation on the document based on the abnormal formats and the standard formats to generate a standard format document after format repair.

[0006] Secondly, embodiments of this application provide a document processing apparatus, comprising: an acquisition module for acquiring a document to be processed; a first identification module for identifying the layout features, logical structure, and format features of the document; a generation module for generating a multidimensional document structured representation based on the layout features, logical structure, and format features; a second identification module for identifying abnormal formats in the multidimensional document structured representation based on standard formats in a preset standard knowledge base; and a repair module for performing format repair operations on the document based on the abnormal formats and the standard formats to generate a standard format document after format repair.

[0007] Thirdly, embodiments of this application provide an electronic device, including: a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the method described in the first aspect of this application.

[0008] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect of this application.

[0009] The above-described technical solutions adopted in the embodiments of this application can achieve the following beneficial effects: This application embodiment can automatically parse and compare the documents to be processed, resulting in high review efficiency; it strictly follows the preset standard knowledge base, and all document checks and repairs are based on the same standard, ensuring the uniformity of document formats; automated comparison and review avoids errors and omissions caused by manual review; automated repair avoids the high repetition of manual repair operations and the possibility of new format problems caused by operational errors. Attached Figure Description

[0010] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings: Figure 1 A flowchart illustrating a document processing method provided in one embodiment of this application; Figure 2 A schematic diagram of a navigation bar and homepage module in a document processing platform provided for one embodiment of this application; Figure 3 A schematic diagram of a document upload module in a document processing platform provided in one embodiment of this application; Figure 4 A schematic diagram of a document list module in a document processing platform provided in one embodiment of this application; Figure 5 A schematic diagram of a format recognition and formatting module in a document processing platform provided in one embodiment of this application; Figure 6 A schematic diagram of a format conversion module in a document processing platform provided in one embodiment of this application; Figure 7 A schematic diagram of a template management module in a document processing platform provided in one embodiment of this application; Figure 8 A schematic diagram of an AI assistant module in a document processing platform provided in one embodiment of this application; Figure 9 A schematic diagram of a statistical analysis module in a document processing platform provided in one embodiment of this application; Figure 10 A schematic diagram of a history module in a document processing platform provided in one embodiment of this application; Figure 11 A schematic diagram of a document processing apparatus provided in one embodiment of this application; Figure 12 This is a schematic diagram of the structure of an electronic device provided in one embodiment of this application. Detailed Implementation

[0011] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0012] The terms "first," "second," etc., used in this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein. Furthermore, "and / or" in this application indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship. It should be noted that all data involved in this application was obtained with the user's authorization.

[0013] The technical solutions provided by the various embodiments of this application are described in detail below with reference to the accompanying drawings.

[0014] Figure 1 This is a flowchart illustrating a document processing method according to an embodiment of this application. Figure 1As shown, the document processing method of this application embodiment may specifically include the following steps: S101, Obtain the document to be processed.

[0015] In this embodiment of the application, the document processing method is executed by a document processing device, which can be located in an electronic device. This electronic device can be a terminal device or a server. The terminal device can be a mobile phone, tablet computer, desktop computer, laptop, in-vehicle device, etc.; the server can be a standalone server or a server cluster composed of multiple servers. For example, the document processing device can be located in a document processing platform.

[0016] Documents awaiting processing refer to those that require format review and correction, such as Word documents in .docx format. In corporate office settings, these documents can include, but are not limited to, reports, contracts, and proposals. Format standardization helps companies establish unified document standards, improving their image and work efficiency. In scientific research and academia, these documents require strict formatting, including papers and patent documents. Standardization ensures compliance with publication or submission requirements. In education and teaching, these documents include lesson plans and courseware. Standardization enhances the professionalism and standardization of teaching materials. In administrative management, these documents include government documents and corporate policy documents. Standardization ensures the authority and consistency of administrative documents.

[0017] The document to be processed can be obtained through at least one of the following methods: obtaining a document uploaded by the user via drag and drop; obtaining a document uploaded by the user via click. Specifically, documents can be uploaded via drag and drop or click within the document processing platform.

[0018] S102, Identify the layout features, logical structure, and format features of the document.

[0019] In this embodiment of the application, the format recognition function adopts multimodal fusion parsing technology. For the document obtained in step S101, it not only identifies the document format type (Word, PDF, Excel, PPT, TXT, Markdown, etc.), but also extracts the document layout features (such as the coordinate positioning of text areas, table areas, and image areas) through the visual analysis engine, identifies the document's logical structure (i.e., semantic hierarchy, such as heading levels, paragraph affiliation, table logic, etc.) through the semantic understanding engine, and extracts the document's format features (such as font, font size, color, spacing, etc.) through the style parsing engine.

[0020] This format recognition function supports multiple file formats such as doc, docx, pdf, xls, xlsx, ppt, pptx, txt, and md, and has good format compatibility and multi-version support capabilities. It can also intelligently diagnose format problems in documents and generate detailed problem reports.

[0021] For page layout features, optical character recognition (OCR) technology can be used to identify the page layout features of the document.

[0022] The logical structure of the document can be identified using Natural Language Processing (NLP) technology.

[0023] S103, Generate a multi-dimensional document structured representation based on the layout features, the logical structure, and the format features.

[0024] In this embodiment of the application, a multi-dimensional document structured representation can be generated based on the three parsing results identified in step S102 (i.e., layout features, logical structure, and format features).

[0025] As a feasible implementation method, the three parsing results can be integrated using a confidence-weighted fusion algorithm to generate a multi-dimensional document structured representation. Specifically, this can include the following steps: obtaining the weights corresponding to the layout features, the logical structure, and the format features, wherein the weights are determined based on the confidence levels of the layout features, the logical structure, and the format features; and generating the multi-dimensional document structured representation based on the layout features, the logical structure, the format features, and their respective weights.

[0026] S104, Identify abnormal formats in the multidimensional document structured representation based on the standard formats in the preset standard knowledge base.

[0027] In this embodiment of the application, a standard format is set in advance in the standard knowledge base, and abnormal formats in the multidimensional document structured representation generated in step S103 are identified based on the standard format.

[0028] As a feasible implementation method, step S104 can be specifically implemented through the following steps: identifying the category of the document; obtaining the corresponding standard format from the specification knowledge base according to the category; and identifying the abnormal format in the multidimensional document structured representation according to the standard format.

[0029] Specifically, the document category (e.g., academic papers, business contracts, technical reports, government documents, etc.) can be identified based on a document type classifier.

[0030] The standardized knowledge base has different standard formats for different document categories. The corresponding standard format can be retrieved from the standardized knowledge base based on the document category, and abnormal formats in the multidimensional document structured representation generated in step S103 can be identified based on this corresponding standard format.

[0031] Furthermore, the above step of "identifying the anomalous formats in the multidimensional document structured representation according to the standard format" may specifically include the following steps: obtaining the content features of the document; dynamically adjusting the standard format according to the content features, such as automatically adjusting the heading level depth according to the number of chapters, and automatically adjusting the table style according to the table complexity; identifying the anomalous formats in the multidimensional document structured representation according to the dynamically adjusted standard format. The standard format can be dynamically adjusted according to the content features using an adaptive rule generator.

[0032] S105, Perform a format repair operation on the document according to the abnormal format and the standard format to generate a standard format document after format repair.

[0033] In this embodiment, the document obtained in step S101 is formatted according to the abnormal format identified in step S104 and the standard format in the specification knowledge base. After all abnormal formats in the document are repaired, a repaired standard format document can be generated.

[0034] Furthermore, the document processing method in this application embodiment may also include the following steps: checking the consistency of the document's internal format logic through a consistency checker, such as the continuity of heading levels, the integrity of numbering sequences, and the uniformity of citation formats.

[0035] Furthermore, the document processing method in this application embodiment may also include the following steps: optimizing the content and / or style of the standard format document after format repair, wherein the content optimization includes grammatical error correction and / or expression polishing.

[0036] Specifically, style optimization involves adjusting the language style of a document to match the target scenario, such as converting colloquial expressions into written language or transforming technical descriptions into colloquial explanations.

[0037] The aforementioned abnormal format identification, content optimization, and style optimization can adopt a multi-agent collaborative processing architecture. The format analysis agent is responsible for identifying abnormal formats, the content optimization agent is responsible for content optimization, and the style adaptation agent is responsible for style optimization. The three agents are coordinated and scheduled by a coordinator to allocate tasks and integrate results. Finally, the quality assessment engine generates a comprehensive quality score based on multi-dimensional indicators (format standardization, content accuracy, expression fluency, and style consistency), and outputs standard Word documents, PDF files, formatted text, etc., which are suitable for enterprise office, scientific research, education, administration and other fields.

[0038] In addition, the document processing method of this application embodiment may also include a format conversion step: converting the standard format document after format repair from the source format to the target format required by the user, and the supported conversion types include Word to PDF, Word to Text, PDF to Word and other common combinations.

[0039] To clearly illustrate the document processing method of this application embodiment, the document processing platform that executes the document processing method will be described in detail below.

[0040] like Figure 2 The image shows a diagram of the navigation bar and homepage module in the document processing platform. Users can directly access the platform by opening their browser and visiting its address. Figure 2 The interface shown features a navigation bar module that serves as the core function of global navigation and user entry, and is the first interface element users encounter upon entering the document processing platform. This navigation bar module consists of a left-side navigation menu and a top title bar. The left-side navigation menu provides quick access to various functional modules, including homepage, document upload, document management, format processing, format conversion, template management, AI intelligent assistant, data statistics, and processing history. The top title bar displays the name of the document processing platform and the current page title. The main function of the navigation bar module is to provide users with a unified operation entry point, enabling quick switching between different functional modules, and helping users locate their current position through a clear visual hierarchy.

[0041] The homepage module serves as a data overview and quick access area for the entire document processing platform, acting as the user's workbench. This module primarily consists of three parts: a statistics card area, a quick access function area, and a recent document list. The statistics card area displays four core metrics: total number of documents, processed documents, pending documents, and documents in processing, providing users with a clear overview of their current work status. The quick access function area features six main function buttons: upload document, intelligent formatting, format conversion, AI analysis, template management, and data statistics. Users can quickly navigate to the corresponding function module using these buttons. The recent document list displays recently processed document records, including document name, type, status, and processing time information. Users can directly click to view details or perform subsequent operations. The overall design is simple and clear, providing an efficient starting page for work.

[0042] like Figure 3 The image shows a schematic of the document upload module in the document processing platform. The document upload module is the first practical function users encounter after entering the platform, responsible for receiving file upload requests. Its core components include a drag-and-drop upload area, a file selection button, and a progress display area. The drag-and-drop upload area features a large design, allowing users to directly drag and drop local files into it for upload—a simple and intuitive method that aligns with user habits. The file selection button offers a traditional click-based selection option; clicking it opens the system file selector, allowing users to choose the desired file. Multiple files can be uploaded simultaneously; during batch uploads, the system processes each file sequentially. The progress display area shows the real-time progress of the upload, allowing users to track the upload status. Furthermore, the page indicates supported file formats (Word, PDF, Excel, PPT, TXT, and other common office document formats) and a maximum file size limit of 200MB, helping users use the upload function correctly. Files exceeding the size limit will be rejected, and unsupported file formats cannot be uploaded.

[0043] File format and size limits can be implemented through the file verification function. This function checks the format and size of uploaded files to ensure they meet platform requirements; the maximum size for a single file is 200MB.

[0044] like Figure 4The image shows a schematic of the document list module in the document processing platform. The document list module displays and manages all document records uploaded by users and is the core document management interface of the platform. This module presents document information in a table format, with each row representing a document and containing six fields: document name, file type, processing status, file size, upload time, and operation. File types are distinguished by different colored labels; for example, Word documents are labeled in blue, and PDF documents in orange, making it easy for users to quickly identify them. Processing status is also labeled, including different states such as Completed, Pending, and Processing, each indicated by a different color: for example, Completed (green), Pending (gray), and Processing (blue). The right side of the table provides buttons for viewing details and deleting documents, meeting basic document management needs. A search box and filtering function can be provided at the top of the page, supporting fuzzy searches by keywords or precise filtering via drop-down menus for file type and processing status to quickly locate target documents. A pagination control at the bottom of the page facilitates browsing a large number of documents in pages, allowing adjustment of the number of documents displayed per page or jumping to a specific page number.

[0045] like Figure 5 The image shows the format recognition and formatting module in the document processing platform. This module is a core functional area of ​​the platform, responsible for analyzing document format and performing intelligent formatting. Upon entering this page, the system automatically analyzes the current document's format type and internal structure. This module can use a two-column layout. The top column lists various formatting issues automatically detected by the system, with each issue labeled with its type and severity. The bottom column is a preview area showing the formatting results after intelligent formatting. The top of the page displays basic information about the current document, including its name, file type, and processing status. The center of the page features "Start Formatting" and "Refresh" buttons. Clicking "Start Formatting" initiates intelligent formatting, automatically correcting heading levels, unifying paragraph indentation, standardizing numbering, and optimizing the page layout. The bottom of the page displays the formatting results, presenting the optimized document content in a standardized layout. Users can clearly compare the original document with the formatted results. Once satisfied, users can click the "Download Formatting Results" button and select the output format (Word or PDF) to download. For reprocessing, users can click the "Refresh" button to re-execute the formatting operation.

[0046] The intelligent formatting feature employs a dual-engine approach: a rules-based engine and a learning engine. The rules engine provides standardized formatting solutions based on an industry-standard knowledge base, while the learning engine trains a format generation model based on historical high-quality documents. These two engines work collaboratively through a strategy selector. Preset template formatting offers a variety of preset templates suitable for different scenarios and industry standards, which users can directly select and use. Custom formatting allows users to configure parameters such as font, font size, line spacing, margins, and paragraph indentation in detail to meet individual needs. This feature automatically identifies document formatting anomalies through an intelligent analysis engine, using a differentiated marking strategy to grade different types of anomalies (e.g., red for serious errors, yellow for warnings, and blue for suggestions), and provides both one-click repair and selective repair modes. It also offers real-time preview and before-and-after formatting comparison functions, and supports operation rollback.

[0047] The content proofreading and optimization features employ a RAG-enhanced error correction architecture. Through retrieval-enhanced generation technology, it searches for correct expressions in similar contexts from a high-quality document library. This, combined with the language understanding capabilities of a large model, enables error identification and correction. Furthermore, a reinforcement learning mechanism is introduced to continuously optimize the error correction strategy based on user feedback. The basic proofreading function can detect and correct grammatical errors, typos, and punctuation irregularities. The advanced analysis function provides intelligent services such as content polishing suggestions and duplicate content detection. The results are output in the form of an issue list and an optimization suggestion report. Users can choose to apply optimization with one click or manually select items for targeted optimization.

[0048] like Figure 6 The diagram shows a schematic of the format conversion module in a document processing platform. This module provides conversion functions between various document formats to meet users' format needs in different scenarios. The upper part of the module displays format conversion instructions, including supported formats and text descriptions. Supported conversion types include Word to PDF, PDF to Word, Word / PDF to Text, and other common combinations. The middle of the page is the conversion configuration area, with drop-down menus for source and target formats. Users can select the original document format to be converted and the desired output format. A "Start Conversion" button is located at the bottom of the page; users can click it after selecting the conversion type to execute the format conversion task. The page displays the processing progress during the conversion process; please wait patiently. During the conversion, the system will strive to maintain the consistency of the document structure and style to ensure the quality of the conversion result. After the conversion is complete, the system will indicate success and provide a download link. Clicking the link will download the converted document for subsequent use or secondary development. The entire module is clearly and intuitively designed, allowing users to quickly understand the supported conversion types and complete the operation.

[0049] like Figure 7The image shows a schematic of the template management module in a document processing platform. This module is used to create and manage document formatting templates, helping users establish personalized formatting standards. The top of the module displays a list of templates, presented in card format. Each card shows the template name, description, creation time, and usage count. Cards set as the default template have a "default template" label in the upper right corner. Clicking "Edit" on the right side of the page leads to the template details editing area, which includes a template name input box, a description text field, and a formatting options configuration area. Formatting options cover various parameter adjustments, including font settings, font size settings, line spacing settings, paragraph indentation, and page margins, allowing users to configure them in detail according to their needs. After configuration, clicking the "Save Template" button saves the settings. A "Create Template" button is located in the middle of the page, supporting the creation of new templates. The overall design emphasizes practicality and flexibility, meeting diverse user needs for customized formatting.

[0050] like Figure 8 The diagram shows the AI ​​assistant module in the document processing platform. This module provides intelligent question-and-answer and document analysis functions based on a large model, serving as the platform's intelligent service entry point. The AI ​​assistant module uses a chat-like interaction format, simulating a dialogue scenario with an AI assistant. The left side is the document selection area; users can select the document to be analyzed via a drop-down menu, and the system automatically loads the document content for the AI's reference. The center is the dialogue area, displaying the user's questions and the AI's responses. The dialogue bubbles use a differentiated design: user messages are displayed on the right with a blue background, while AI replies are displayed on the left with a gray background. At the bottom of the page is a message input box where users can enter any questions or instructions about the document, such as requesting a summary of the document content, checking formatting issues, or providing modification suggestions. Clicking the send button will prompt the AI ​​to provide an intelligent reply based on the context and document content. Users can continue to ask follow-up questions or switch topics for deeper discussion. It supports queries such as document content summarization, formatting checks, modification suggestions, and keyword extraction. The entire interactive interface is modern and intuitive, providing users with a convenient intelligent document service experience.

[0051] like Figure 9The image shows a schematic diagram of the statistical analysis module in the document processing platform. This module displays the statistical analysis results of the platform's operational data, providing users with data insights and operational references. At the top of the module are four core statistical indicator cards: total number of documents, processed, in progress, and processing efficiency. These indicators are presented using a combination of numbers and charts, intuitively reflecting the platform's usage and the value of efficiency improvements. The middle section of the page features data visualization charts, including a line chart of processing trends and a pie chart of document type distribution. The line chart shows the recent trend in processing volume, with the horizontal axis representing dates and the vertical axis representing processing volume. The pie chart shows the processing percentage distribution of different document types (Word, PDF, Excel, etc.). The charts use professional chart components with harmonious color schemes and clear data display. At the bottom of the page is a list of recent activities, detailing the execution time, type, and result status of each operation, allowing users to easily trace their operation history.

[0052] like Figure 10 The image shows a schematic of the history module in a document processing platform. The history module is used to trace and manage a user's operation history, providing comprehensive operation record query functionality. The top of the page features a filter area with dropdown filters for file type and operation type, as well as a time range selector. Users can use these filters individually or in combination to precisely locate historical records of interest. The filtered results are displayed in a history table at the bottom of the page, detailing information such as document name, operation type, processing time, processing status, and operation result for each record. Operation types include document upload, format recognition, formatting, and format conversion, among others. Each row in the table ends with two buttons: "View Details" and "Re-download." Users can view detailed information about historical operations (such as format parameter settings and processing time) or re-download previous processing results. The entire module is well-designed, providing users with complete operation tracing capabilities.

[0053] This document processing platform also offers multi-terminal adaptation capabilities. The multi-terminal adaptation feature employs a responsive layout design, supporting normal access and use on various devices such as PCs, tablets, and mobile phones.

[0054] In summary, the document processing method of this application can automatically parse and compare documents, resulting in high review efficiency. It strictly adheres to a preset knowledge base, ensuring document format consistency through consistent checking and repair of all documents based on the same standard. Automated comparison and review avoid errors and omissions caused by manual review. Automated repair avoids the high repetitiveness and potential for new formatting issues due to manual repair. Content and / or style optimization of the standard format documents after format repair can meet diverse user needs. Only target format (e.g., .docx) files are supported, and the maximum file size is limited to prevent malicious file uploads and storage space occupation, thus ensuring data security.

[0055] Figure 11 This is a schematic diagram of a document processing apparatus provided in one embodiment of this application. Figure 11 As shown, the document processing apparatus 1100 of this application embodiment may specifically include: an acquisition module 1101, a first identification module 1102, a generation module, a second identification module 1104, and a repair module 1105. Wherein: Module 1101 is used to acquire documents to be processed; The first identification module 1102 is used to identify the layout features, logical structure, and format features of the document; The generation module 1103 is used to generate a multidimensional document structured representation based on the layout features, the logical structure, and the format features. The second identification module 1104 is used to identify abnormal formats in the multidimensional document structured representation according to the standard formats in the preset standard knowledge base; Repair module 1105 is used to perform format repair operation on the document according to the abnormal format and the standard format, so as to generate a standard format document after format repair.

[0056] In the embodiments of this application, the specific process by which each module and unit in the document processing device of the embodiments of this application implements its function can be found in the relevant descriptions in the above-mentioned document processing method embodiments, and will not be repeated here.

[0057] In summary, the document processing apparatus of this application embodiment can automatically parse and compare documents to be processed, resulting in high review efficiency. It strictly adheres to a preset knowledge base, ensuring document format uniformity through consistent inspection and repair of all documents based on the same standard. Automated comparison and review avoids errors and omissions caused by manual review. Automated repair avoids the high repetitiveness and potential for new formatting issues due to manual repair. Content and / or style optimization of the standard format documents after format repair can meet diverse user needs. It only supports target format (e.g., .docx) files, limiting the maximum file size to prevent malicious file uploads and storage space occupation, thus ensuring data security.

[0058] This application also provides an electronic device. For example... Figure 12 As shown, the electronic device 1200 can vary considerably due to differences in configuration or performance. It may include one or more processors 1201 and memory 1202, and the memory 1202 may store one or more programs or instructions. The memory 1202 may be temporary or persistent storage. The application programs stored in the memory 1202 may include one or more modules (not shown), each module may include a series of computer-executable instructions in the electronic device 1200. Furthermore, the processor 1201 may be configured to communicate with the memory 1202 and execute the series of computer-executable instructions in the memory 1202 on the electronic device 1200. The electronic device 1200 may also include one or more power supplies 1203, one or more wired or wireless network interfaces 1204, one or more input / output interfaces 1205, and one or more keyboards 1206.

[0059] Specifically, in the embodiments of this application, the electronic device includes a processor, a memory, and a program or instructions stored in the memory and executable on the processor. When the program or instructions are executed by the processor, they implement the steps of any of the above-described document processing method embodiments.

[0060] The electronic device in this application embodiment can automatically parse and compare documents to be processed, resulting in high review efficiency. It strictly adheres to a preset knowledge base, ensuring document format consistency through consistent checking and repair of all documents based on the same standard. Automated comparison and review avoids errors and omissions caused by manual review. Automated repair avoids the high repetitiveness and potential for new formatting issues due to manual repair. Content and / or style optimization can be performed on the standard format documents after format repair to meet diverse user needs. Only target format (e.g., .docx) files are supported, and the maximum file size is limited to prevent malicious file uploads and storage space occupation, ensuring data security.

[0061] This application also proposes a readable storage medium storing one or more computer programs or instructions that, when executed by a processor in an electronic device, enable the processor in the electronic device to perform the steps of any of the document processing method embodiments described above.

[0062] The readable storage medium of this application embodiment can automatically parse and compare documents to be processed, resulting in high review efficiency. It strictly adheres to a preset knowledge base, ensuring document format uniformity through consistent inspection and repair based on the same standard. Automated comparison and review avoid errors and omissions caused by manual review. Automated repair avoids the high repetitiveness and potential for new formatting issues due to manual repair. Content and / or style optimization can be performed on the standard format documents after format repair to meet diverse user needs. Only target format (e.g., .docx) files are supported, and the maximum file size is limited to prevent malicious file uploads and storage occupation, ensuring data security.

[0063] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or any combination of these devices.

[0064] For ease of description, the above devices are described separately by function as various units. Of course, in implementing this application, the functions of each unit can be implemented in one or more software and / or hardware.

[0065] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0066] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0067] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0068] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0069] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0070] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0071] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0072] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0073] This application can be described in the general context of computer-executable instructions, such as program modules, that are executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a specific task or implement a specific abstract data type. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0074] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to interchangeably. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.

[0075] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims

1. A method of processing a document, characterized by, include: Get the document to be processed; Identify the document's layout features, logical structure, and formatting features; Based on the layout features, logical structure, and format features, a multidimensional document structured representation is generated. Based on the standard formats in the preset standardized knowledge base, identify abnormal formats in the multidimensional document structured representation; The document is formatted according to the abnormal format and the standard format to generate a standard format document after format repair.

2. The method of claim 1, wherein, The identification of the document's layout features includes: The document's layout features are identified using optical character recognition (OCR) technology.

3. The method of claim 1, wherein, Identifying the logical structure of the document includes: The logical structure of the document is identified based on Natural Language Processing (NLP) technology.

4. The method according to claim 1, characterized in that, The step of generating a multidimensional document structured representation based on the layout features, the logical structure, and the format features includes: Obtain the weights corresponding to the layout features, logical structure, and format features, and determine the weights based on the confidence levels of the layout features, logical structure, and format features. The multidimensional document structured representation is generated based on the layout features, logical structure, format features, and their respective weights.

5. The method according to claim 1, characterized in that, The step of identifying anomalous formats in the multidimensional document structured representation based on standard formats in a preset standardized knowledge base includes: Identify the category of the document; The corresponding standard format is obtained from the specification knowledge base according to the category; Identify the anomalous formats in the multidimensional document structured representation according to the standard format.

6. The method according to claim 5, characterized in that, The step of identifying the anomalous format in the multidimensional document structured representation according to the standard format includes: Obtain the content features of the document; The standard format is dynamically adjusted based on the content characteristics. Identify the anomalous formats in the multidimensional document structured representation based on the dynamically adjusted standard format.

7. The method according to claim 1, characterized in that, Also includes: The standard format document after the format repair is subjected to content optimization and / or style optimization, the content optimization including grammatical error correction and / or expression polishing.

8. A document processing apparatus, characterized in that, include: The acquisition module is used to acquire documents to be processed. The first identification module is used to identify the layout features, logical structure, and format features of the document; The generation module is used to generate a multidimensional document structured representation based on the layout features, the logical structure, and the format features. The second identification module is used to identify abnormal formats in the multidimensional document structured representation according to the standard formats in the preset standardized knowledge base; The repair module is used to perform format repair operations on the document based on the abnormal format and the standard format, so as to generate a standard format document after format repair.

9. An electronic device, characterized in that, It includes a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the method as described in any one of claims 1-7.

10. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the method as described in any one of claims 1-7.