Method and device for generating review result of review report and medium
By loading and reviewing document content, integrating and displaying error information, the problem of unclear display of document review errors in the existing technology is solved, and the review efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202411968139.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-05-06
AI Technical Summary
It is difficult for the prior art to clearly display the number of errors and specific content in document review, resulting in a long review process and inefficient efficiency.
By loading the text content of the report to be reviewed, the text content is reviewed using a preset review algorithm, integrating the error content, filling it into the preset HTML template, and generating an error display report.
Clearly display the error categories and error content of each document, provide writing specifications, reduce the number of changes in the document, and improve review efficiency.
Smart Images

Figure CN119940323A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of document review, and more specifically, to a method, device and medium for generating review results of a review report. Background Art
[0002] Document review is the process of reviewing a document through one or more stages and reviewers providing feedback in the document. The result of the document review process is improved accuracy and quality of the document. However, currently, the number and specific content of errors found in the document review are not clearly known. This leads to technical problems such as a long review process and low efficiency. Summary of the invention
[0003] In view of the deficiencies in the prior art, the present invention provides a method, device and medium for generating review results of a review report.
[0004] According to one aspect of the present invention, a method for generating an audit result of an audit report is provided, comprising:
[0005] Load the text content of the report to be reviewed and obtain the review text content;
[0006] Using a preset review algorithm to review the review text content, and obtain the error text content of the report to be reviewed;
[0007] Integrate the error text content according to preset rules to obtain an error content collection;
[0008] Fill the error content collection into the preset HTML template to obtain the error display report of the report to be reviewed.
[0009] Optionally, load the text content of the report to be reviewed and obtain the review text content, including:
[0010] Determine whether the DOM structure of the report to be reviewed has been loaded through preset monitoring events;
[0011] When the DOM structure of the report to be reviewed is loaded, locate the DOM element containing the text content in the DOM structure;
[0012] Get the text content of all DOM elements and generate the review text content.
[0013] Optionally, fill the error content set into a preset HTML template to obtain an error display report of the report to be reviewed, including:
[0014] Create an HTML template to display the error content using table, list, and header HTML elements;
[0015] Fill the error content collection into the HTML template to obtain the error display report.
[0016] Optionally, the table includes one or more of: title, category, error number, and error content.
[0017] According to another aspect of the present invention, there is provided a device for generating a review result of a review report, comprising:
[0018] A loading module is used to load the text content of the report to be reviewed and obtain the review text content;
[0019] A review module is used to review the review text content using a preset review algorithm to obtain the error text content of the report to be reviewed;
[0020] An integration module is used to integrate the error text content according to preset rules to obtain an error content set;
[0021] The acquisition module is used to fill the error content set into the preset HTML template and obtain the error display report of the report to be reviewed.
[0022] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and the computer program is used to execute the method described in any one of the above aspects of the present invention.
[0023] According to another aspect of the present invention, an electronic device is provided, comprising: a processor; a memory for storing instructions executable by the processor; the processor is configured to read the executable instructions from the memory and execute the instructions to implement the method described in any one of the above aspects of the present invention.
[0024] Therefore, this application proposes a method for generating the review results of the review report. When the HTML file is opened with a browser, the JavaScript code will be executed when the page is loaded to generate a corresponding detection report. Through the error report, the error category and error content of each document can be clearly seen, so that the writing specification can be provided for the next document writing, reducing the number of document changes. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] A more complete understanding of exemplary embodiments of the present invention may be obtained by referring to the following drawings:
[0026] Figure 1 It is a flowchart of a method for generating review results of a review report provided by an exemplary embodiment of the present invention;
[0027] Figure 2 It is a structural schematic diagram of a review result generating device for a review report provided by an exemplary embodiment of the present invention;
[0028] Figure 3 This is a structure of an electronic device provided by an exemplary embodiment of the present invention. DETAILED DESCRIPTION
[0029] Below, the exemplary embodiments according to the present invention will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments of the present invention, and it should be understood that the present invention is not limited to the exemplary embodiments described here.
[0030] It should be noted that the relative arrangement of components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
[0031] Those skilled in the art can understand that the terms "first" and "second" in the embodiments of the present invention are only used to distinguish different steps, devices or modules, etc., and neither represent any specific technical meaning nor indicate the necessary logical order between them.
[0032] It should also be understood that, in the embodiments of the present invention, “plurality” may refer to two or more than two, and “at least one” may refer to one, two or more than two.
[0033] It should also be understood that any component, data or structure mentioned in the embodiments of the present invention can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0034] In addition, the term "and / or" in the present invention is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present invention generally indicates that the associated objects before and after are in an "or" relationship.
[0035] It should also be understood that the description of the various embodiments of the present invention focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0036] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0037] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
[0038] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.
[0039] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0040] Embodiments of the present invention can be applied to electronic devices such as terminal devices, computer systems, servers, etc., which can operate with many other general or special computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments and / or configurations suitable for use with electronic devices such as terminal devices, computer systems, servers, etc. include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, small computer systems, large computer systems, and distributed cloud computing technology environments including any of the above systems, etc.
[0041] Electronic devices such as terminal devices, computer systems, servers, etc. can be described in the general context of computer system executable instructions (such as program modules) executed by computer systems. Generally, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in a distributed cloud computing environment, where tasks are performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules can be located on local or remote computing system storage media including storage devices.
[0042] Exemplary Methods
[0043] Figure 1 FIG. 1 is a flow chart of a method for generating an examination result of an examination report provided by an exemplary embodiment of the present invention. This embodiment can be applied to electronic devices, such as Figure 1 As shown, the review result generation method 100 of the review report includes the following steps:
[0044] Step 101, loading the text content of the report to be reviewed and obtaining the review text content;
[0045] Step 102, using a preset review algorithm to review the review text content, and obtaining the error text content of the report to be reviewed;
[0046] Step 103, integrating the error text content according to a preset rule to obtain an error content set;
[0047] Step 104, fill the error content set into the preset HTML template to obtain the error display report of the report to be reviewed.
[0048] Specifically, this application collects various types of data from the review, organizes them into a set of data, and generates a new review report page. The specific process is as follows:
[0049] 1. Get the report content you want to display:
[0050] 1) Wait for the document to load: Before getting the text content, make sure that the DOM structure of the document has been loaded. This step is judged by the DOMContentLoaded event to ensure that the code does not encounter the problem of not finding the DOM element when getting the text content. Use addEventListener to trigger the event content.
[0051] 2) Select the text element: Next, use the selector method provided by the DOM operation library to locate the DOM element containing the text content. You can use element selectors, class selectors, ID selectors, etc. to select the target element. For example: querySelector and querySelectorAll.
[0052] 3) Get text content: After locating the element content, use the methods or attributes provided by the DOM operation library to get the text content of the target element. You can use methods such as `.text()`, `.html()`, and `.val()` to get the text content of the DOM element, such as: targetElement.textContent.
[0053] 2. Review the obtained documents through system functions:
[0054] Through the previous step, the document content to be reviewed is obtained. At this time, the errors in the document can be filtered out through the review function of the system itself, such as Chrome DevTools, and then the error content can be collected.
[0055] 3. Get the filtered error content:
[0056] Use string-related methods (such as includes, indexOf) or regular expressions to traverse the obtained document content and filter out the error content set. This time, use the textContent.match method to filter out the error content.
[0057] 4. Create an HTML template to present the structure and style of the report:
[0058] After the error content is collected, you need to make a template for display. You can use HTML elements such as tables, lists, and titles to organize the report content. This table contains: title, category, number of errors, error content, etc. (use tr / th).
[0059] 5. Fill in the error content results into the HTML template:
[0060] Based on the detection results, DOM operations in JavaScript are used to dynamically create table rows for the report and populate the results into the report template.
[0061] Use document.getElementById method to capture all information content, use errors.forEach to capture and store error content, use document.createElement('tr') and reportTableBody.appendChild(row) methods to traverse all error content and display it in a table.
[0062] Therefore, this application proposes a method for generating the review results of the review report. When the HTML file is opened with a browser, the JavaScript code will be executed when the page is loaded to generate a corresponding detection report. Through the error report, the error category and error content of each document can be clearly seen, so that the writing specification can be provided for the next document writing, reducing the number of document changes.
[0063] Exemplary Devices
[0064] Figure 2 FIG. 1 is a schematic diagram of a structure of a review result generating device for a review report provided by an exemplary embodiment of the present invention. Figure 2 As shown, the device 200 includes:
[0065] The loading module 210 is used to load the text content of the report to be reviewed and obtain the review text content;
[0066] The review module 220 is used to review the review text content using a preset review algorithm to obtain the error text content of the report to be reviewed;
[0067] An integration module 230 is used to integrate the error text content according to a preset rule to obtain an error content set;
[0068] The acquisition module 240 is used to fill the error content set into the preset HTML template to obtain the error display report of the report to be reviewed.
[0069] Optionally, the loading module 210 includes:
[0070] The judgment submodule is used to judge whether the DOM structure of the report to be reviewed has been loaded through preset monitoring events;
[0071] The positioning submodule is used to locate the DOM element containing text content in the DOM structure when the DOM structure of the report to be reviewed is loaded;
[0072] Generate submodule, used to obtain the text content of all DOM elements and generate review text content.
[0073] Optionally, the acquisition module 240 includes:
[0074] Create a submodule to create an HTML template for displaying error content using HTML elements such as tables, lists, and headers;
[0075] The filling submodule is used to fill the error content collection into the HTML template and obtain the error display report.
[0076] Optionally, the table includes one or more of: title, category, error number, and error content.
[0077] Exemplary Electronic Devices
[0078] Figure 3 This is a structure of an electronic device provided by an exemplary embodiment of the present invention. Figure 3 As shown, the electronic device 30 includes one or more processors 31 and a memory 32 .
[0079] The processor 31 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
[0080] The memory 32 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 31 may run the program instructions to implement the methods of the software programs of the various embodiments of the present invention described above and / or other desired functions. In one example, the electronic device may also include: an input device 33 and an output device 34, which are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0081] In addition, the input device 33 may also include, for example, a keyboard, a mouse, and the like.
[0082] The output device 34 can output various information to the outside. The output device 34 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto.
[0083] Of course, to simplify, Figure 3 Only some of the components related to the present invention in the electronic device are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application conditions, the electronic device may also include any other appropriate components.
[0084] Exemplary computer program products and computer-readable storage media
[0085] In addition to the above-mentioned methods and devices, an embodiment of the present invention may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the method according to various embodiments of the present invention described in the above-mentioned "Exemplary Method" section of this specification.
[0086] The computer program product may be written in any combination of one or more programming languages to write program code for performing the operations of the embodiments of the present invention, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0087] In addition, an embodiment of the present invention may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, enables the processor to execute the steps of the method for information mining of historical change records according to various embodiments of the present invention described in the above “Exemplary Method” section of this specification.
[0088] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, system or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0089] The basic principle of the present invention is described above in conjunction with specific embodiments. However, it should be pointed out that the advantages, strengths, effects, etc. mentioned in the present invention are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. must be possessed by each embodiment of the present invention. In addition, the specific details disclosed above are only for the purpose of illustration and facilitation of understanding, rather than limitation, and the above details do not limit the present invention to being implemented by adopting the above specific details.
[0090] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0091] The block diagrams of the devices, systems, equipment, and systems involved in the present invention are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, systems, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The word "such as" used here refers to the phrase "such as but not limited to", and can be used interchangeably with it.
[0092] The method and system of the present invention may be implemented in many ways. For example, the method and system of the present invention may be implemented by software, hardware, firmware or any combination of software, hardware, firmware. The above order of steps for the method is only for illustration, and the steps of the method of the present invention are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present invention may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present invention. Thus, the present invention also covers a recording medium storing a program for executing the method according to the present invention.
[0093] It should also be noted that in the system, device and method of the present invention, each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. The above description of the disclosed aspects is provided to enable any technician in the field to make or use the present invention. Various modifications to these aspects are very obvious to those skilled in the art, and the general principles defined here can be applied to other aspects without departing from the scope of the present invention. Therefore, the present invention is not intended to be limited to the aspects shown here, but in accordance with the widest range consistent with the principles and novel features disclosed here.
[0094] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present invention to the forms disclosed herein. Although a number of example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. A method for generating an examination result of an examination report, characterized in that: include: Load the text content of the report to be reviewed and obtain the review text content; Using a preset review algorithm to review the review text content, and obtain the error text content of the report to be reviewed; Integrate the error text content according to preset rules to obtain an error content set; Fill the error content set into a preset HTML template to obtain an error display report of the report to be reviewed.
2. The method according to claim 1, characterized in that Load the text content of the report to be reviewed and obtain the review text content, including: Determining whether the DOM structure of the report to be reviewed is loaded through a preset monitoring event; When the DOM structure of the report to be reviewed is loaded, locating a DOM element containing text content in the DOM structure; The text content of all DOM elements is obtained to generate the review text content.
3. The method according to claim 1, characterized in that Fill the error content set into a preset HTML template to obtain an error display report of the report to be reviewed, including: Create an HTML template to display error content using table, list, and header HTML elements; Fill the error content set into the HTML template to obtain the error display report.
4. The method according to claim 3, characterized in that The table includes one or more items of: title, category, error number, and error content.
5. A device for generating an examination result of an examination report, characterized in that: include: The loading module is used to load the text content of the report to be reviewed and obtain the review text content; A review module, configured to review the review text content using a preset review algorithm to obtain error text content of the report to be reviewed; An integration module, configured to integrate the error text contents according to preset rules to obtain an error content set; The acquisition module is used to fill the error content set into a preset HTML template and obtain the error display report of the report to be reviewed.
6. The device according to claim 5, characterized in that Load modules, including: A judgment submodule, configured to judge whether the DOM structure of the report to be reviewed has been loaded through a preset monitoring event; A positioning submodule, configured to locate a DOM element containing text content in the DOM structure when the DOM structure of the report to be reviewed is loaded; The generation submodule is used to obtain the text content of all DOM elements and generate the review text content.
7. The device according to claim 5, characterized in that Get modules, including: Create a submodule to use the HTML elements of table, list and title to create an HTML template to display error content; The filling submodule is used to fill the error content set into the HTML template and obtain the error display report.
8. The device according to claim 7, characterized in that The table includes one or more items of: title, category, error number, and error content.
9. A computer-readable storage medium, characterized in that The storage medium stores a computer program, and the computer program is used to execute the method according to any one of claims 1 to 4.
10. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is configured to read the executable instructions from the memory and execute the instructions to implement the method according to any one of claims 1 to 4.