Method for generating document improvement suggestion, and device and storage medium

Through the use of the document quality detection model, the visual and text feature vectors of the document are obtained, detection results are generated and target features are determined to obtain modification suggestions, which solves the problem in the existing technology that document review relies on the level of professionals, and improves the efficiency of document quality detection. Accuracy and efficiency.

WO2024179330A1PCT designated stage expired Publication Date: 2024-09-06ZTE CORP +1

Patent Information

Application Number
PCT/CN2024/077771
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-27
Filing Date
2024-02-20
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing document review methods rely on the level of professionals, resulting in low review accuracy and low efficiency, making it difficult to effectively ensure document quality.

Method used

By obtaining the visual feature vector and text feature vector of the document to be detected, inputting it into the preset document quality detection model, the document quality detection results are generated, and the target features are determined based on the detection results to obtain modification suggestions.

Benefits of technology

It improves the accuracy and efficiency of document quality inspection, reduces modification content, and improves the automation level of document review.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024077771_06092024_PF_FP
    Figure CN2024077771_06092024_PF_FP
Patent Text Reader

Abstract

Embodiments of the present application relate to the technical field of computers, and provide a method for generating a document improvement suggestion, and a device and a storage medium. The method comprises: acquiring a visual feature vector and a text feature vector of a document to be detected, and inputting the visual feature vector and the text feature vector into a preset document quality detection model to generate a document quality detection result (S101); when the document quality detection result does not meet standards, according to the visual feature vector, the text feature vector and the preset document quality detection model, determining at least one target feature used for improving the document quality of said document (S102); and according to the at least one target feature, acquiring a modification suggestion matching said document (S103).
Need to check novelty before this filing date? Find Prior Art

Description

Document improvement suggestion generation method, device and storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is based on the Chinese patent application with application number 202310216441.4 and application date of February 27, 2023, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby introduced into this application as a reference. Technical Field

[0003] The embodiments of the present application relate to the field of computer technology, and in particular to a method, device, and storage medium for generating document improvement suggestions. Background Art

[0004] Documents are of vital importance to both individuals and businesses. They represent the cumulative output of knowledge and information. The quality of documents directly impacts the accuracy and effectiveness of information transmission, making ensuring document quality crucial. Currently, ensuring document quality primarily relies on reviews by technical personnel in relevant fields. This review process involves determining whether a document's quality meets certain requirements and providing improvement suggestions for unsatisfactory documents. However, existing review methods rely heavily on the reviewer's expertise, making the process difficult, time-consuming, and labor-intensive. This results in low accuracy and efficiency in document reviews.

[0005] Summary of the Invention

[0006] The embodiments of the present application provide a method, device, and storage medium for generating document improvement suggestions.

[0007] In the first aspect, an embodiment of the present application provides a method for generating document improvement suggestions, including: obtaining a visual feature vector and a text feature vector of a document to be detected, and inputting the visual feature vector and the text feature vector into a preset document quality detection model to generate a document quality detection result; when the document quality detection result is unqualified, determining at least one target feature for improving the document quality of the document to be detected based on the visual feature vector, the text feature vector and the preset document quality detection model; and obtaining modification suggestions for matching the document to be detected based on at least one of the target features.

[0008] In the second aspect, an embodiment of the present application also provides a terminal device, which includes a processor, a memory, a computer program stored on the memory and executable by the processor, and a data bus for realizing connection and communication between the processor and the memory, wherein when the computer program is executed by the processor, the steps of any document improvement suggestion generating method provided in the specification of this application are implemented.

[0009] In a third aspect, an embodiment of the present application further provides a storage medium for computer-readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of any document improvement suggestion generating method provided in the specification of this application. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] FIG1 is a flow chart of a method for generating document improvement suggestions provided in an embodiment of the present application;

[0011] FIG2 is a schematic flow chart of the sub-steps of the method for generating document improvement suggestions in FIG1 ;

[0012] FIG3 is a schematic flow chart of the sub-steps of the method for generating document improvement suggestions in FIG1 ;

[0013] FIG4 is a schematic block diagram of the structure of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0015] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, combined, or partially merged, so the actual execution order may vary depending on the actual situation.

[0016] It should be understood that the terms used in this specification are only for the purpose of describing specific embodiments and are not intended to limit this application. As used in this specification, the singular forms "a", "an" and "the" are intended to include the plural forms unless the context clearly indicates otherwise.

[0017] The embodiment of the present application provides a method, device and storage medium for generating document improvement suggestions. The method for generating document improvement suggestions can be applied to a terminal device, which can be a mobile phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant and other devices. For example, when the terminal device is a mobile phone, the mobile phone obtains the visual feature vector and text feature vector of the document to be detected, and inputs the visual feature vector and text feature vector into a preset document quality detection model to generate a document quality detection result; when the document quality detection result is unqualified, at least one target feature for improving the document quality of the document to be detected is determined based on the visual feature vector, the text feature vector and the preset document quality detection model; and based on the at least one target feature, a modification suggestion for matching the document to be detected is obtained.

[0018] The following describes some embodiments of the present application in detail with reference to the accompanying drawings. In the absence of conflict, the following embodiments and features therein may be combined with each other.

[0019] Please refer to Figure 1, which is a flow chart of a method for generating document improvement suggestions provided in an embodiment of the present application.

[0020] As shown in FIG1 , the document improvement suggestion generating method includes steps S101 to S103 .

[0021] Step S101: Obtain a visual feature vector and a text feature vector of a document to be detected, and input the visual feature vector and the text feature vector into a preset document quality detection model to generate a document quality detection result.

[0022] The visual feature vector is used to represent the vector of the visual feature dimension of the image of the document to be detected, and the visual feature dimension includes but is not limited to the size and number of the image of the document to be detected; the text feature vector is used to represent the vector of the text dimension of the document to be detected, and the text dimension includes but is not limited to the document completeness, the number of document paragraphs, the number of words in a document paragraph, the number of words in the document, the number of document tables, and the number of document drawings. The document quality test result represents whether the quality of the document is qualified. The document quality test result includes qualified and unqualified. The qualified document quality test result indicates that the quality of the document meets the expected requirements. For example, the bachelor's degree thesis form requirement is 30 pages, the number of pages of graduation thesis A is 32 pages, and the number of pages of graduation thesis B is 25 pages. It can be determined that the form of graduation thesis A is qualified and the form of graduation thesis B is unqualified.

[0023] In one embodiment, a document to be detected is obtained, along with a preset quantization rule. The document to be detected is parsed according to the preset quantization rule to generate a visual feature vector and a text feature vector for the document to be detected. The preset quantization rule is a pre-established document quantization rule that can be set based on actual circumstances and is not specifically limited in this embodiment of the present application. The preset quantization rule can accurately obtain the visual feature vector and text feature vector of the document to be detected.

[0024] It should be noted that the preset quantification rule includes a document feature splitting rule and a document vector conversion rule. The document feature splitting rule is used to split the document to be detected into multiple dimensional features, and the document vector conversion rule is used to convert each dimensional feature into a feature vector. The document feature splitting rule and the document vector conversion rule can be set according to actual conditions, and the embodiment of the present application does not make specific restrictions on this. For example, the document vector conversion rule splits the document to be detected to generate document completeness features, document paragraph quantity features, document paragraph word count features, document word count features, document table quantity features, and document figure quantity features. The document vector conversion rule can be a neural network model, which identifies the document word count features based on the neural network model to generate a document word count feature vector.

[0025] In one embodiment, as shown in FIG. 2 , step S101 includes sub-steps S1011 to S1014 .

[0026] Sub-step S1011 : acquiring sample data, where the sample data includes visual feature vectors and text feature vectors corresponding to a plurality of sample documents, and document quality detection results corresponding to the sample documents.

[0027] The sample data includes visual feature vectors and text feature vectors corresponding to multiple sample documents, as well as document quality detection results corresponding to the sample documents. The document quality detection results are document quality detection results obtained by technicians through quality evaluation of the sample documents.

[0028] In one embodiment, multiple sample documents are obtained, and preset quantization rules are obtained. Each sample document is parsed according to the preset quantization rules to generate visual feature vectors and text feature vectors for each document to be tested. A technician then evaluates each sample data to generate a document quality test result corresponding to each sample document. By obtaining multiple sample documents and parsing each sample document, the visual feature vectors and text feature vectors for each sample document can be accurately obtained. By evaluating each sample document, the document quality test result can be accurately obtained for each sample document, greatly improving the efficiency and accuracy of sample data construction.

[0029] Sub-step S1012: inputting the visual feature vector and the text feature vector of the sample document into a preset neural network to obtain a document quality prediction result of the sample document.

[0030] Among them, the preset neural network can be selected according to actual conditions, and the embodiments of the present application do not make specific limitations on this. For example, the preset neural network can be a long short-term memory artificial neural network model, a convolutional neural network model, and a recurrent convolutional neural network model.

[0031] The visual feature vector and text feature vector of the sample document are input into the preset neural network for processing to generate the document quality prediction result of the sample document. By processing the sample document through the preset neural network, the document quality prediction result of the sample document can be accurately generated.

[0032] Sub-step S1013: determining whether the preset neural network has converged based on the document quality detection result and the document quality prediction result.

[0033] In one embodiment, based on the document quality detection results and the document quality prediction results, the loss value of the preset neural network model is determined, and it is determined whether the loss value is less than or equal to the preset loss value; when the loss value is less than or equal to the preset loss value, it is determined that the preset neural network model has converged; when the loss value is greater than the preset loss value, it is determined that the preset neural network model has not converged. The preset loss value can be set according to actual conditions, and the embodiment of the present application does not make specific restrictions on this. For example, the preset loss value can be set to 0.01. By determining whether the loss value of the preset neural network model is less than or equal to the preset threshold, it is possible to accurately know whether the preset neural network model has converged.

[0034] In one embodiment, the loss value of a preset neural network model is determined based on the document quality detection results and the document quality prediction results. When the document quality detection results and the document quality prediction results are the same, the loss parameter of the neural network model is assigned a value of 0; when the document quality detection results and the document quality prediction results are different, the loss parameter of the neural network model is assigned a value of 1; the values ​​assigned for each training are accumulated to obtain a first parameter; the number of training times is counted to obtain a second parameter; the first parameter is divided by the second parameter to obtain a third parameter; and the third parameter is used as the loss value of the preset neural network model. By averaging the loss values ​​of each sample document, the accuracy of determining the loss value can be improved, greatly improving the efficiency and accuracy of training the neural network.

[0035] Sub-step S1014: If the preset neural network model has not converged, adjust the model parameters of the preset neural network model to update the preset neural network model, and continue to train the updated preset neural network model until convergence to obtain the preset document quality detection model.

[0036] If it is determined that the loss value of the preset neural network model is greater than a preset threshold, it is determined that the preset neural network model has not converged, the model parameters of the preset neural network model are adjusted to update the preset neural network model, and sample documents are continuously input into the updated preset neural network model for training until the preset neural network model converges, thereby obtaining a preset document quality detection model. By updating the model parameters of the preset neural network model and training until the model converges, the preset document quality detection model can be accurately obtained.

[0037] In one embodiment, the visual feature vector and the text feature vector are input into a preset document quality detection model to generate a document quality detection result. By processing the visual feature vector and the text feature vector using the preset document quality detection model, an accurate document quality detection result for the document to be detected can be obtained, greatly improving the efficiency and accuracy of the document quality detection result determination.

[0038] Step S102: When the document quality detection result is unqualified, determine at least one target feature for improving the document quality of the document to be detected based on the visual feature vector, the text feature vector and a preset document quality detection model.

[0039] Among them, the document quality inspection results include qualified and unqualified. When the document quality inspection result is qualified, it indicates that the quality of the document to be inspected meets the preset requirements and the document to be inspected does not need to be modified. When the document quality inspection result is unqualified, it indicates that the quality of the document to be inspected does not meet the preset requirements and the document to be inspected needs to be modified.

[0040] In one embodiment, as shown in FIG3 , step S102 includes sub-steps S1021 and S1022 .

[0041] Sub-step S1021: determining a plurality of candidate features that affect the document quality of the document to be detected based on the visual feature vector, the text feature vector and a preset document quality detection model.

[0042] In one embodiment, a visual feature vector, a text feature vector, and a preset document quality detection model are input into a preset algorithm to generate multiple candidate features that affect the document quality of the document to be detected. The preset algorithm is used to determine the features of the preset neural network model that affect document quality. The preset algorithm can be configured based on actual conditions and is not specifically limited in this embodiment of the present application. For example, the preset algorithm can be the Local Interpretable Model-agnostic Explanations (LIME) algorithm. This preset algorithm can accurately obtain multiple candidate features that affect the document quality of the document to be detected.

[0043] Sub-step S1022: adjusting the feature parameters of each candidate feature, and screening out at least one target feature from each candidate feature with adjusted feature parameters using the preset document quality detection model.

[0044] In one embodiment, the feature parameters of each candidate feature are adjusted, and the adjusted feature parameters of each candidate feature replace the corresponding feature parameters in the visual feature vector and / or text feature vector to obtain a target visual feature vector and a target text feature vector. The target visual feature vector and the target text feature vector are input into a preset document quality detection model to generate a first detection result. If the first detection result is qualified, each candidate feature with the adjusted feature parameters is determined as a target feature. By adjusting the feature parameters of the candidate features and re-identifying the target visual feature vector and the target text feature vector using the preset document quality detection model, it is possible to accurately determine whether the target feature exists among the multiple candidate features.

[0045] It should be noted that the method of adjusting the feature parameters of each candidate feature can be set according to actual conditions. The embodiment of the present application does not make specific limitations on this. The adjustment methods include but are not limited to: multiple adjustments to one candidate feature, multiple adjustments to multiple candidate features, and each adjustment of the feature parameters is regarded as a group of adjustment methods, and it is determined whether the results of the document quality inspection of the document to be inspected are qualified after each group of parameters are adjusted.

[0046] In one embodiment, when the first detection result is qualified, at least one candidate feature that causes the least adjustment between the visual feature vector and the text feature is determined, and the determined candidate feature is used as the target feature. By determining the target feature with the least adjustment, the modification content of the document to be detected can be reduced.

[0047] Exemplarily, the candidate features of the document to be detected include the number of words, the number of drawings and the number of ambiguous words. The adjustment of the first group of feature parameters includes the adjustment of ambiguous words, the adjustment of the second group of feature parameters includes the adjustment of the number of words and the number of drawings, and the adjustment of the third group of feature parameters includes the adjustment of the number of words, the number of drawings and ambiguous words. The adjustment of the first group of feature parameters is used as the target modification method of the document to be detected, that is, the number of ambiguous words is determined as the target feature.

[0048] Step S103: Obtain modification suggestions for the document to be detected based on at least one of the target features.

[0049] In one embodiment, a mapping relationship table of preset features and modification suggestions is obtained, and modification suggestions matching each target feature are queried from the mapping relationship table to obtain multiple sub-modification suggestions; each sub-modification suggestion is merged to generate a modification suggestion matching the document to be detected. The mapping relationship table is established in advance based on the features and modification suggestions. The mapping relationship table can be established according to actual conditions, and the embodiment of the present application does not make specific restrictions on this. The mapping relationship table can be used to accurately query the sub-modification suggestions matching each feature, and the sub-modification suggestions can be merged to accurately obtain the modification suggestion matching the document to be detected.

[0050] Exemplarily, the target features include an increase in the number of words by three, a reduction in the number of ambiguous words by 20, and an increase in the number of illustrations by 5. The sub-modification suggestions corresponding to the increase in the number of words, the reduction in the number of ambiguous words, and the increase in the number of illustrations are queried from the mapping relationship table, and the sub-modification suggestions of increasing the number of words, reducing the number of ambiguous words, and adding illustrations are obtained. The sub-modification suggestions of increasing the number of words, reducing the number of ambiguous words, and adding illustrations are merged, and the modification suggestions matching the document to be detected are increasing the number of words in the document, reducing the ambiguous words, and adding illustrations for auxiliary explanation.

[0051] The document improvement suggestion generation method in the above embodiment can accurately generate a document quality detection result by obtaining the visual feature vector and text feature vector of the document to be detected, and inputting the visual feature vector and text feature vector into a preset document quality detection model; in the case where the document quality detection result is unqualified, at least one target feature for improving the document quality of the document to be detected is determined based on the visual feature vector, text feature vector and the preset document quality detection model; and then, based on the at least one target feature, modification suggestions for matching the document to be detected can be accurately obtained. This solution can accurately determine the target feature for improving the document quality through the visual feature vector, text feature vector and the preset document quality detection model of the document to be detected when the document to be detected is detected as an unqualified document, and can accurately obtain modification suggestions for matching the document to be detected through the target feature, thereby greatly improving the accuracy and efficiency of generating modification suggestions for documents.

[0052] Please refer to FIG4 , which is a schematic block diagram of the structure of a terminal device provided in an embodiment of the present application.

[0053] As shown in FIG4 , a terminal device 200 includes a processor 201 and a memory 202 . The processor 201 and the memory 202 are connected via a bus 203 , such as an I 2 C (Inter-Integrated Circuit) bus.

[0054] In some embodiments, the processor 201 is used to provide computing and control capabilities to support the operation of the entire terminal device. The processor 201 can be a central processing unit (CPU), and the processor 201 can also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0055] In some embodiments, the memory 202 may be a Flash chip, a read-only memory (ROM) disk, an optical disk, a USB flash drive, or a mobile hard disk.

[0056] Those skilled in the art will appreciate that the structure shown in FIG4 is merely a block diagram of a portion of the structure related to the solution of the present application and does not limit the terminal device to which the solution of the present application is applied. In some embodiments, the terminal device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0057] The processor is configured to run a computer program stored in a memory, and implement any one of the document improvement suggestion generating methods provided in the embodiments of the present application when executing the computer program.

[0058] In one embodiment, the processor 201 is configured to run a computer program stored in a memory, and implement the following steps when executing the computer program:

[0059] Obtaining a visual feature vector and a text feature vector of the document to be detected, and inputting the visual feature vector and the text feature vector into a preset document quality detection model to generate a document quality detection result;

[0060] If the document quality detection result is unqualified, determining at least one target feature for improving the document quality of the document to be detected based on the visual feature vector, the text feature vector and a preset document quality detection model;

[0061] According to at least one of the target features, a modification suggestion for matching the document to be detected is obtained.

[0062] In one embodiment, when determining at least one target feature for improving the document quality of the document to be detected based on the visual feature vector, the text feature vector, and a preset document quality detection model, the processor 201 is configured to implement:

[0063] Determining, based on the visual feature vector, the text feature vector, and a preset document quality detection model, a plurality of candidate features that affect the document quality of the document to be detected;

[0064] The feature parameters of each candidate feature are adjusted, and at least one target feature is selected from each candidate feature with the adjusted feature parameters using the preset document quality detection model.

[0065] In one embodiment, when implementing the screening of at least one target feature from each of the candidate features with adjusted feature parameters according to the preset document quality detection model, the processor 201 is configured to implement:

[0066] Replacing the corresponding feature parameters in the visual feature vector and / or text feature vector with the adjusted feature parameters of each candidate feature to obtain a target visual feature vector and a target text feature vector;

[0067] Inputting the target visual feature vector and the target text feature vector into the preset document quality detection model to generate a first detection result;

[0068] When the first detection result is qualified, each of the candidate features with adjusted feature parameters is determined as a target feature.

[0069] In one embodiment, when the first detection result is qualified, the processor 201 determines each of the candidate features with adjusted feature parameters as a target feature, and is configured to implement:

[0070] When the first detection result is qualified, at least one candidate feature that causes the least adjustment between the visual feature vector and the text feature is determined, and the candidate feature is determined as a target feature.

[0071] In one embodiment, when obtaining the modification suggestion for the document to be detected according to at least one target feature, the processor 201 is configured to implement:

[0072] Obtaining a mapping relationship table between preset features and modification suggestions, and querying the mapping relationship table for modification suggestions matching each target feature to obtain multiple sub-modification suggestions;

[0073] The sub-modification suggestions are merged to generate a modification suggestion that matches the document to be detected.

[0074] In one embodiment, when obtaining the visual feature vector and the text feature vector of the document to be detected, the processor 201 is configured to implement:

[0075] Obtain the document to be tested and obtain the preset quantification rules;

[0076] The document to be detected is parsed according to the preset quantization rule to generate a visual feature vector and a text feature vector of the document to be detected.

[0077] In one embodiment, before inputting the visual feature vector and the text feature vector into a preset document quality detection model to generate a document quality detection result, the processor 201 is further configured to implement:

[0078] Acquire sample data, the sample data including visual feature vectors and text feature vectors corresponding to a plurality of sample documents, and document quality detection results corresponding to the sample documents;

[0079] Inputting the visual feature vector and text feature vector of the sample document into a preset neural network to obtain a document quality prediction result of the sample document;

[0080] Determining whether the preset neural network has converged based on the document quality detection result and the document quality prediction result;

[0081] If the preset neural network model does not converge, the model parameters of the preset neural network model are adjusted to update the preset neural network model, and the updated preset neural network model is continuously trained until convergence to obtain the preset document quality detection model.

[0082] In one embodiment, when determining whether the preset neural network has converged based on the document quality detection result and the document quality prediction result, the processor 201 is configured to implement:

[0083] Determining a loss value of the preset neural network model according to the document quality detection result and the document quality prediction result, and determining whether the loss value is less than or equal to a preset loss value;

[0084] When the loss value is less than or equal to a preset loss value, determining that the preset neural network model converges;

[0085] When the loss value is greater than the preset loss value, it is determined that the preset neural network model has not converged.

[0086] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the working process of the terminal device described above can refer to the corresponding process in the aforementioned document improvement suggestion generation method embodiment, and will not be repeated here.

[0087] An embodiment of the present application also provides a storage medium for computer-readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of any document improvement suggestion generating method provided in the specification of this application.

[0088] The storage medium may be an internal storage unit of the terminal device described in the aforementioned embodiment, such as a hard disk or memory of the terminal device. The storage medium may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device.

[0089] The embodiments of the present application provide a method, device and storage medium for generating document improvement suggestions. The embodiments of the present application can accurately generate a document quality detection result by obtaining a visual feature vector and a text feature vector of a document to be detected, and inputting the visual feature vector and the text feature vector into a preset document quality detection model. In the case where the document quality detection result is unqualified, at least one target feature for improving the document quality of the document to be detected is determined based on the visual feature vector, the text feature vector and the preset document quality detection model. Then, based on the at least one target feature, modification suggestions for matching the document to be detected can be accurately obtained. In the case where the document to be detected is detected as an unqualified document, this solution can accurately determine the target feature for improving the document quality through the visual feature vector, the text feature vector and the preset document quality detection model of the document to be detected, and can accurately obtain modification suggestions for matching the document to be detected through the target feature, thereby greatly improving the accuracy and efficiency of generating modification suggestions for documents.

[0090] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As is well known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable, and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those skilled in the art that communication media generally embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0091] It should be understood that the term "and / or" used in this specification refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations. It should be noted that, in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system that includes a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements that are inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "including a..." does not exclude the presence of other identical elements in the process, method, article or system that includes the element.

[0092] The serial numbers of the embodiments of the present application are for descriptive purposes only and do not represent the merits of the embodiments. The above description is only a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the scope of protection of the present application.

Claims

1. A method for generating document improvement suggestions, comprising: Obtaining a visual feature vector and a text feature vector of a document to be detected, and inputting the visual feature vector and the text feature vector into a preset document quality detection model to generate a document quality detection result; In the case where the document quality detection result is unqualified, determining at least one target feature for improving the document quality of the document to be detected according to the visual feature vector, the text feature vector and a preset document quality detection model; According to at least one of the target features, modification suggestions for matching the document to be detected are obtained.

2. The method for generating document improvement suggestions according to claim 1, wherein: The step of determining at least one target feature for improving the document quality of the document to be detected based on the visual feature vector, the text feature vector and a preset document quality detection model comprises: Determining a plurality of candidate features that affect the document quality of the document to be detected according to the visual feature vector, the text feature vector and a preset document quality detection model; The feature parameters of each of the candidate features are adjusted, and at least one of the target features is screened out from each of the candidate features with adjusted feature parameters through the preset document quality detection model.

3. The method for generating document improvement suggestions according to claim 2, wherein: The step of selecting at least one target feature from each of the candidate features whose feature parameters have been adjusted according to the preset document quality detection model includes: Replacing the corresponding feature parameters in the visual feature vector and / or the text feature vector with the adjusted feature parameters of each candidate feature to obtain a target visual feature vector and a target text feature vector; Inputting the target visual feature vector and the target text feature vector into the preset document quality detection model to generate a first detection result; When the first detection result is qualified, each of the candidate features whose feature parameters have been adjusted is determined as a target feature.

4. The method for generating document improvement suggestions according to claim 3, wherein: The step of determining each of the candidate features whose feature parameters have been adjusted as a target feature when the first detection result is qualified includes: When the first detection result is qualified, at least one candidate feature that minimizes the adjustment between the visual feature vector and the text feature is determined, and the candidate feature is determined as the target feature.

5. The method for generating document improvement suggestions according to claim 1, wherein: The obtaining, according to at least one of the target features, modification suggestions for matching the document to be detected includes: Obtaining a mapping relationship table of preset features and modification suggestions, and querying the modification suggestions matching each of the target features from the mapping relationship table to obtain a plurality of sub-modification suggestions; The sub-modification suggestions are merged to generate a modification suggestion matching the document to be detected.

6. The method for generating document improvement suggestions according to claim 1, wherein: The step of obtaining the visual feature vector and the text feature vector of the document to be detected includes: Obtain the document to be detected and obtain the preset quantification rules; The document to be detected is parsed according to the preset quantization rule to generate a visual feature vector and a text feature vector of the document to be detected.

7. The method for generating document improvement suggestions according to claim 1, wherein: Before inputting the visual feature vector and the text feature vector into a preset document quality detection model to generate a document quality detection result, the method further includes: Acquire sample data, the sample data including visual feature vectors and text feature vectors corresponding to a plurality of sample documents, and document quality detection results corresponding to the sample documents; Inputting the visual feature vector and the text feature vector of the sample document into a preset neural network to obtain a document quality prediction result of the sample document; Determining whether the preset neural network converges according to the document quality detection result and the document quality prediction result; If the preset neural network model has not converged, the model parameters of the preset neural network model are adjusted to update the preset neural network model, and the updated preset neural network model is continuously trained until convergence to obtain the preset document quality detection model.

8. The method for generating document improvement suggestions according to claim 7, wherein: The determining whether the preset neural network converges according to the document quality detection result and the document quality prediction result includes: Determining a loss value of the preset neural network model according to the document quality detection result and the document quality prediction result, and determining whether the loss value is less than or equal to a preset loss value; When the loss value is less than or equal to a preset loss value, determining that the preset neural network model converges; When the loss value is greater than the preset loss value, it is determined that the preset neural network model has not converged.

9. A terminal device, comprising a processor, a memory, a computer program stored in the memory and executable by the processor, and a data bus for realizing connection and communication between the processor and the memory, wherein when the computer program is executed by the processor, the steps of the document improvement suggestion generating method as described in any one of claims 1 to 8 are realized.

10. A storage medium for computer-readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the document improvement suggestion generating method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Text quality evaluation system and method

    CN113743085A

  • Power equipment defect text quality analysis and defect rating method

    CN114969320A

  • Demand document quality detection method and device, equipment and storage medium

    CN115237859A

Cited By

  • Document structured editing method and device based on deep learning

    CN119227649A