A form quality detection method and device, electronic equipment and storage medium

By using a form quality inspection model to assess the quality of fields to be inspected in a form, the problem of low efficiency in manual inspection is solved, and efficient and accurate form quality inspection and feedback are achieved.

CN117540714BActive Publication Date: 2026-11-24WEAVER NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311695173.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-11
Publication Date
2026-11-24
Estimated Expiration
2043-12-11

AI Technical Summary

Technical Problem

Existing form quality checks mainly rely on manual inspection, which is inefficient and inaccurate.

Method used

A form quality inspection model is used to assess the quality of fields to be inspected in a form. The quality inspection results are generated by training data and prompt parameters, and a deep learning model such as BERT is used to perform quality inspection of field types.

Benefits of technology

It improves the efficiency and accuracy of form quality checks, simplifies the user input process, and provides accurate quality feedback to enhance content quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117540714B_ABST
    Figure CN117540714B_ABST
Patent Text Reader

Abstract

This application provides a form quality inspection method, apparatus, electronic device, and storage medium. The method includes: acquiring a field to be inspected in a form, the field type of the field to be inspected, and a prompt parameter corresponding to the field type; the prompt parameter is pre-written content reflecting the field type; based on the field type, inputting the field to be inspected and the prompt parameter into a pre-trained form quality inspection model to generate a quality inspection result; the form quality inspection model is obtained by training labeled training data and the prompt parameter corresponding to the training data as training instances. The form quality inspection model is used to evaluate the quality of the field to be inspected in the form. Since the form quality inspection model is obtained by training with different types of training instances, the trained form quality inspection model can perform quality inspection on different types of fields to be inspected, improving the efficiency and accuracy of quality inspection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of artificial intelligence technology, and more specifically, to a form quality inspection method, apparatus, electronic device, and storage medium. Background Technology

[0002] With the development of internet technology, various industries now encompass diverse business operations, leading to increasingly complex business information. This often results in the generation of corresponding forms based on these business processes. Within this large volume of form data, some content may be of low quality. Existing form services typically rely on manual review and validation of form content, a method that is inefficient. Summary of the Invention

[0003] The purpose of this application is to provide a form quality detection method, apparatus, electronic device, and storage medium. The form quality detection model is used to evaluate the quality of fields to be detected in a form. The form quality detection model is obtained by training labeled training data and corresponding prompt parameters as training instances, so that the trained form quality detection model can perform quality detection on different types of fields to be detected, thereby improving the efficiency and accuracy of quality detection.

[0004] In a first aspect, embodiments of this application provide a form quality detection method, comprising: obtaining a field to be detected in a form to be detected, the field type of the field to be detected, and a prompt parameter corresponding to the field type; the prompt parameter is pre-written content used to reflect the field type; according to the field type, the field to be detected and the prompt parameter are input into a pre-trained form quality detection model to generate a quality detection result; the form quality detection model is obtained by training the training instances using labeled training data and the prompt parameters corresponding to the training data as training instances.

[0005] In the above implementation process, a form quality detection model is used to evaluate the quality of the fields to be detected in the form. The form quality detection model is obtained by training the labeled training data and the corresponding prompt parameters of the training data as training instances, so that the trained form quality detection model can perform quality detection on different types of fields to be detected, thereby improving the efficiency and accuracy of quality detection.

[0006] Optionally, in this embodiment of the application, before inputting the field to be detected and the prompt parameters into a pre-trained form quality detection model according to the field type and generating a quality detection result, the method further includes: obtaining training data; the training data includes quality labels and field types; combining the training data and the prompt parameters corresponding to the field types according to the field types of the training data to obtain training instances; inputting the training instances into the model to be trained, using the quality labels as supervision signals, training the model to be trained, and obtaining a form quality detection model.

[0007] In the above implementation process, the field type of each field type and the corresponding prompt parameters are combined into a training instance. The training instance is used to train the model to be trained. The training instance covers multiple field types. Therefore, the form quality detection model can learn the prediction standards of content quality for various field types and realize quality detection of fields to be detected for multiple field types.

[0008] Optionally, in this embodiment of the application, before combining the training data and the prompt parameters corresponding to the field types according to the field types of the training data to obtain training instances, the method further includes: writing prompt parameters corresponding to each field type according to the content of the field types, wherein the prompt parameters include question text, description text or task instructions.

[0009] In the above implementation process, attention should be paid to the balance and diversity of data when collecting training data, and prompt parameters for each field type should be written in advance. The form quality detection model can perform well in terms of content quality of multiple field types, thereby improving the accuracy of content quality detection.

[0010] Optionally, in this embodiment, the field to be detected and the prompt parameters are input into a pre-trained form quality detection model according to the field type to generate a quality detection result. This includes: preprocessing the field to be detected to obtain the processed field; combining the processed field and the prompt parameters according to the field type to obtain combined data; converting the format of the combined data to obtain model input data; inputting the model input data into the form quality detection model to obtain a quality detection result; the quality detection result is used to characterize whether the text quality of the field to be detected meets the requirements.

[0011] In the above implementation process, a form quality inspection model is used to perform quality inspection on different types of fields to be inspected in the form, which improves the low efficiency of manual inspection of form content quality and enhances the efficiency and accuracy of quality inspection.

[0012] Optionally, in this embodiment of the application, after inputting the field to be detected and the prompt parameters into a pre-trained form quality detection model according to the field type and generating a quality detection result, the method further includes: if the quality detection result indicates that the text quality does not meet the requirements, then obtaining the reference text corresponding to the preset field to be detected; performing keyword analysis and / or word frequency difference analysis on the field to be detected and the reference text to generate analysis results; and obtaining quality feedback content based on the analysis results.

[0013] In the above implementation process, if the quality detection result indicates that the text quality does not meet the requirements, the reference text corresponding to the preset field to be detected is obtained, and the quality feedback content is generated by using keyword analysis and / or word frequency difference analysis. The user is given accurate quality feedback content, and the user can effectively improve the content quality based on the feedback content.

[0014] Optionally, in this embodiment of the application, after obtaining the field to be detected and the field type of the field to be detected in the form to be detected, the method further includes: obtaining the format checking rule corresponding to the field to be detected; the format checking rule is written in advance according to the format requirements of the field to be detected; performing data format processing on the field to be detected to obtain the field to be matched; using the format checking rule to perform format checking on the field to be matched and generating format checking results; and obtaining quality feedback content based on the analysis results, including: obtaining quality feedback content based on the analysis results and the format checking results.

[0015] In the above implementation process, the format checking rules corresponding to the field to be detected are obtained. The format checking rules are used to check the format of the field to be matched corresponding to the field to be detected, and the format checking results are generated. By checking the format of the field through the format checking rules, the accuracy and effect of text quality detection are further improved.

[0016] Optionally, in this embodiment of the application, before obtaining the fields to be detected in the form to be detected, the method further includes: obtaining audio information; performing speech recognition on the audio information to obtain the text information corresponding to the audio information; parsing the text information, separating the fields in the text information by field identifiers to obtain the fields to be filled; and mapping the fields to be filled to preset form templates to generate the form to be detected.

[0017] In the above implementation process, speech recognition is performed on the audio information to obtain the corresponding text information, and the text information is parsed to obtain the fields to be filled in. These fields are then mapped to preset form templates to generate the form to be tested. This simplifies the user input process, reduces complex and tedious manual input, and enables rapid form creation.

[0018] Secondly, embodiments of this application also provide a form quality detection device, including: an acquisition module, used to acquire the field to be detected, the field type of the field to be detected, and the prompt parameters corresponding to the field type in the form to be detected; the prompt parameters are pre-written content reflecting the field type; a quality detection module, used to input the field to be detected and the prompt parameters into a pre-trained form quality detection model according to the field type, and generate a quality detection result; the form quality detection model is obtained by training the training instances using labeled training data and the prompt parameters corresponding to the training data as training instances.

[0019] Thirdly, embodiments of this application also provide an electronic device, including: a processor and a memory, the memory storing machine-readable instructions executable by the processor, which, when executed by the processor, perform the method described above.

[0020] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program that, when executed by a processor, performs the methods described above.

[0021] The form quality detection method, apparatus, electronic device, and storage medium provided in this application are used to evaluate the quality of fields to be detected in a form using a form quality detection model. The form quality detection model is obtained by training labeled training data and corresponding prompt parameters as training instances, so that the trained form quality detection model can perform quality detection on different types of fields to be detected, thereby improving the efficiency and accuracy of quality detection. Attached Figure Description

[0022] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0023] Figure 1 A flowchart illustrating a form quality detection method provided in this application embodiment;

[0024] Figure 2 This is a schematic diagram of the form quality inspection device provided in the embodiments of this application;

[0025] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0026] The embodiments of the technical solution of this application will now be described in detail with reference to the accompanying drawings. These embodiments are only used to more clearly illustrate the technical solution of this application and are therefore merely examples, and should not be used to limit the scope of protection of this application.

[0027] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this application.

[0028] In the description of the embodiments of this application, technical terms such as "first" and "second" are used only to distinguish different objects and should not be construed as indicating or implying relative importance or implicitly specifying the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly defined.

[0029] Please see Figure 1 The illustration shows a flowchart of a form quality detection method provided in an embodiment of this application. The form quality detection method provided in this embodiment can be applied to electronic devices, which may include a terminal and a server; the terminal may specifically be a smartphone, tablet computer, computer, personal digital assistant (PDA), etc.; the server may specifically be an application server or a web server. The form quality detection method may include:

[0030] Step S110: Obtain the field to be tested, the field type of the field to be tested, and the prompt parameters corresponding to the field type from the form to be tested; the prompt parameters are pre-written content to reflect the field type.

[0031] Step S120: Based on the field type, input the field to be detected and the prompt parameters into the pre-trained form quality detection model to generate quality detection results; the form quality detection model is obtained by training the labeled training data and the prompt parameters corresponding to the training data as training instances.

[0032] In step S110, the form to be inspected can be a form generated based on business information or user responses, such as an appliance after-sales service form, a job application, or a user information form. The field to be inspected is a pre-defined field in the form that requires quality inspection; for example, it could be text content in a text input box. The field type of the field to be inspected is pre-defined based on the content theme of the field. The prompt parameter is pre-written content reflecting the field type of the field to be inspected; for example, it could be a question or description centered on the field type of the field to be inspected.

[0033] Taking a user's job application form as an example, the field to be tested can be the content of the job application submitted by the user; the field type of this field can be job application content; the corresponding prompt parameter for the field type can be "content about the job application". The field to be tested can also be the application date; the field type of this field can be date; the corresponding prompt parameter for the field type can be "about the date or time".

[0034] In step S120, based on the field type of the field to be detected, the field to be detected and the corresponding prompt parameters are combined to obtain the model's input data. The combination method could be, for example, adding a "text start marker" after the prompt parameters, and then concatenating the field to be detected after the text start marker to generate the model's input data. It is understood that other methods can also be used, such as direct concatenation, etc. For details, refer to the combination method of prompt parameters and training data during the training of the form quality detection model.

[0035] The input data obtained from the model is fed into a pre-trained form quality detection model, which then outputs the quality detection results. The training method for the form quality detection model includes: obtaining training data labeled with quality tags for each field. These quality tags indicate the content quality of the field, such as "high quality" and "low quality." The training data also includes field types, which characterize the content theme of the training data.

[0036] The labeled training data and the corresponding prompt parameters are combined to obtain training instances. These training instances are then used to train the initial model to be trained. During the training process, the model parameters are adjusted and the model performance is optimized until the model's output meets the expected accuracy, thus obtaining a trained form quality detection model.

[0037] During training, the field type and corresponding prompt parameters for each field type can be combined into a training instance. This process is repeated until the training instances cover all field types that need to be quality checked. Then, by training these training instances, the form quality detection model can learn the prediction standards for the content quality of various field types.

[0038] In the above implementation process, a form quality detection model is used to evaluate the quality of the fields to be detected in the form. The form quality detection model is obtained by training the labeled training data and the corresponding prompt parameters of the training data as training instances, so that the trained form quality detection model can perform quality detection on different types of fields to be detected, thereby improving the efficiency and accuracy of quality detection.

[0039] Optionally, in this embodiment of the application, before inputting the field to be detected and the prompt parameters into a pre-trained form quality detection model according to the field type and generating a quality detection result, the method further includes: obtaining training data; the training data includes quality labels and field types; combining the training data and the prompt parameters corresponding to the field types according to the field types of the training data to obtain training instances; inputting the training instances into the model to be trained, using the quality labels as supervision signals, training the model to be trained, and obtaining a form quality detection model.

[0040] In the specific implementation process: The collected dataset is pre-labeled for quality to obtain training data, and the field types of the training data are determined. Quality labeling can be achieved by adding quality labels to the dataset. For example, the dataset consists of pre-collected job application responses from multiple job seekers. Based on the completeness of the job application responses and whether they cover all questions, quality labels are added to the responses to obtain training data. The field types of this training data can be defined as job application content. The corresponding prompt parameter for the job application content could be "content related to the job application."

[0041] Among them, quality labels are specifically "high quality" and "low quality"; or they are the probability values ​​of content conforming to standards. The lower the probability value, the lower the content quality of the field, and the higher the probability value, the higher the content quality of the field.

[0042] Based on the field type of the training data, the training data and the corresponding prompt parameters of the field type are combined to obtain training instances. For example, if the prompt parameter corresponding to the field type is "content about job application", the start marker "[GEN]" of the text is added after the prompt parameter. The training data "job application content" and the corresponding quality label are then concatenated after the start marker to generate training instances.

[0043] The training instances are input into the model to be trained, which is an initialized deep learning model, such as a BERT model or a large language model. Annotated quality labels are used as supervision signals for model training. Appropriate optimizers, loss functions, and training strategies are selected based on requirements.

[0044] In an optional embodiment, the trained model can be evaluated using a validation set to calculate its performance on metrics such as accuracy, precision, and recall. Based on the evaluation results, the model's hyperparameters and architecture can be adjusted as needed, and model tuning can be performed.

[0045] In the above implementation process, the field type of each field type and the corresponding prompt parameters are combined into a training instance. The training instance is used to train the model to be trained. The training instance covers multiple field types. Therefore, the form quality detection model can learn the prediction standards of content quality for various field types and realize quality detection of fields to be detected for multiple field types.

[0046] Optionally, in this embodiment of the application, before combining the training data and the prompt parameters corresponding to the field types according to the field types of the training data to obtain training instances, the method further includes: writing prompt parameters corresponding to each field type according to the content of the field types, wherein the prompt parameters include question text, description text or task instructions.

[0047] In the specific implementation process: After collecting training data for various field types, you can first write prompt parameters for each field type. These prompt parameters should be clear and unambiguous, serving to identify the field type and reflecting its core content. For example, the prompt parameter for job application content could be "content about the job application." The prompt parameter for date could be "about the date or time."

[0048] In the above implementation process, attention should be paid to the balance and diversity of data when collecting training data, and prompt parameters for each field type should be written in advance. The form quality detection model can perform well in terms of content quality of multiple field types, thereby improving the accuracy of content quality detection.

[0049] Optionally, in this embodiment, the field to be detected and the prompt parameters are input into a pre-trained form quality detection model according to the field type to generate a quality detection result. This includes: preprocessing the field to be detected to obtain the processed field; combining the processed field and the prompt parameters according to the field type to obtain combined data; converting the format of the combined data to obtain model input data; inputting the model input data into the form quality detection model to obtain a quality detection result; the quality detection result is used to characterize whether the text quality of the field to be detected meets the requirements.

[0050] In the specific implementation process: data preprocessing is performed on the field to be detected to obtain the processed field. Data preprocessing may include word segmentation, vocabulary building, tokenization, etc. The data preprocessing process can be understood as converting the field to be detected into the input format preset by the form quality detection model.

[0051] Based on the field type, the processed fields and prompt parameters are combined to obtain combined data. It should be noted that the combination method here is the same as the method used when training the form quality detection model to combine the training data and the prompt parameters corresponding to the field types.

[0052] After obtaining the combined data, the format of the combined data can be converted. For example, if the form quality detection model is the BERT model, the combined data can be converted into BERT input IDs, attention masks, and paragraph marks.

[0053] Input the data into the form quality detection model, and use the pre-trained classification model to classify and judge the content quality of the pre-processed fields to be detected, and obtain the quality detection results.

[0054] In the above implementation process, a form quality inspection model is used to perform quality inspection on different types of fields to be inspected in the form, which improves the low efficiency of manual inspection of form content quality and enhances the efficiency and accuracy of quality inspection.

[0055] Optionally, in this embodiment of the application, after inputting the field to be detected and the prompt parameters into a pre-trained form quality detection model according to the field type and generating a quality detection result, the method further includes: if the quality detection result indicates that the text quality does not meet the requirements, then obtaining the reference text corresponding to the preset field to be detected; performing keyword analysis and / or word frequency difference analysis on the field to be detected and the reference text to generate analysis results; and obtaining quality feedback content based on the analysis results.

[0056] In the specific implementation process: the quality detection result indicates whether the text quality of the field to be detected meets the requirements. For example, a low quality result indicates that the text quality does not meet the requirements; or the predicted value corresponding to the quality detection result is below the preset probability value, which indicates that the text quality does not meet the requirements.

[0057] If the quality inspection results indicate that the text quality does not meet the requirements, the reference text corresponding to the pre-set field to be inspected is obtained. The reference text corresponding to the field to be inspected is pre-set and can be obtained according to the field type of the field to be inspected. For example, each type of field to be inspected has a pre-set reference text. The reference text is the text that meets the text quality requirements or is high-quality text corresponding to the field to be inspected.

[0058] Keyword analysis and / or term frequency difference analysis are performed on the field to be detected and the reference text. Keyword analysis can involve extracting keywords from both the reference text and the field to be detected separately. Text processing tools, such as keyword extraction algorithms in natural language processing libraries, can be used to obtain the corresponding keyword lists. Term frequency difference analysis can calculate the term frequency difference between the field to be detected and the reference text based on the extracted keyword list. The term frequency difference value can be calculated by comparing the frequency of keyword occurrences in the input text and high-quality text.

[0059] Based on the analysis results, quality feedback content is obtained. For example, if certain keywords have a low frequency in the field to be detected, but a high frequency in the reference text, the quality feedback content may be a suggestion to add relevant keywords to the field to be detected to improve the richness and quality of the content.

[0060] Alternatively, if the field to be detected contains keywords not found in the reference text, irrelevant keywords, or duplicate keywords, it can be suggested to delete or replace the content corresponding to these keywords to make the text more concise and accurate. Other modification suggestions can also be provided, such as adding domain-related professional terminology and optimizing the organization and arrangement of keywords.

[0061] In the above implementation process, if the quality detection result indicates that the text quality does not meet the requirements, the reference text corresponding to the preset field to be detected is obtained, and the quality feedback content is generated by using keyword analysis and / or word frequency difference analysis. The user is given accurate quality feedback content, and the user can effectively improve the content quality based on the feedback content.

[0062] Optionally, in this embodiment of the application, after obtaining the field to be detected and the field type of the field to be detected in the form to be detected, the method further includes: obtaining the format checking rule corresponding to the field to be detected; the format checking rule is written in advance according to the format requirements of the field to be detected; performing data format processing on the field to be detected to obtain the field to be matched; using the format checking rule to perform format checking on the field to be matched and generating format checking results; and obtaining quality feedback content based on the analysis results, including: obtaining quality feedback content based on the analysis results and the format checking results.

[0063] In the specific implementation process: the format checking rules corresponding to the field to be checked are pre-written according to the format requirements of the field to be checked. A set of format checking rules can be defined based on the text format requirements. Format checking rules can include regular expressions, keyword matching, syntax rules, etc. The corresponding format checking rule is determined from the rule set based on the field type of the field to be checked. Rules can be written using programming languages ​​and tools, such as Python's regular expression library and natural language processing library.

[0064] Perform data format processing on the field to be detected to obtain the field to be matched. For example, remove extra spaces and convert case. Ensure the text meets the requirements of the matching rules.

[0065] Formatting rules are used to check the format of the fields to be matched. For example, rule matching can be performed on text. By traversing the fields to be matched, rules are applied line by line or sentence by sentence to find the text portions that match the rules and the portions that do not, generating formatting check results. The formatting check results indicate whether the field to be checked meets the formatting requirements. If the formatting check results do not meet the formatting requirements, the quality feedback content can inform the user that the field to be checked does not meet the formatting requirements and provide suggestions for modification.

[0066] The following example describes the format checking process. The format detector uses predefined format checking rules, which can be regular expressions, to check whether the field to be checked conforms to the expected format. For example, if the field to be checked requires the user to enter a date, the regular expression is "YYYY-MM-DD". The format detector will use the regular expression rule "YYYY-MM-DD" to check the input. If the user enters "DD-YYYY-MM", the format detector will identify the mismatch and remind the user to correct the field to be checked.

[0067] In the above implementation process, the format checking rules corresponding to the field to be detected are obtained. The format checking rules are used to check the format of the field to be matched corresponding to the field to be detected, and the format checking results are generated. By checking the format of the field through the format checking rules, the accuracy and effect of text quality detection are further improved.

[0068] Optionally, in this embodiment of the application, before obtaining the fields to be detected in the form to be detected, the method further includes: obtaining audio information; performing speech recognition on the audio information to obtain the text information corresponding to the audio information; parsing the text information, separating the fields in the text information by field identifiers to obtain the fields to be filled; and mapping the fields to be filled to preset form templates to generate the form to be detected.

[0069] In the specific implementation process: In some application scenarios, users can fill out forms via voice input. For example, they can obtain audio information, which can be real-time audio captured by an audio acquisition device or obtained from an electronic device. Speech recognition is then performed on the audio information to obtain the corresponding text information. Speech recognition can be implemented using a deep learning model.

[0070] The text information is parsed, and fields are separated using field identifiers. For example, if the text information contains multiple fields, field identifiers can be used to separate the different fields, thus obtaining each field to be filled in. These fields are then mapped to preset form templates to generate a form to be checked. This mapping process can be implemented using preset rules or models. These preset rules or models can associate the fields to be filled with the corresponding positions in the form template, mapping the fields to be filled to the preset form templates based on these associations.

[0071] In the above implementation process, speech recognition is performed on the audio information to obtain the corresponding text information, and the text information is parsed to obtain the fields to be filled in. These fields are then mapped to preset form templates to generate the form to be tested. This simplifies the user input process, reduces complex and tedious manual input, and enables rapid form creation.

[0072] Please see Figure 2 The diagram shown is a structural schematic of the form quality inspection device provided in an embodiment of this application; this embodiment of the application provides a form quality inspection device 200, including:

[0073] The acquisition module 210 is used to acquire the field to be detected, the field type of the field to be detected, and the prompt parameters corresponding to the field type in the form to be detected; the prompt parameters are pre-written content that reflects the field type;

[0074] The quality detection module 220 is used to input the field to be detected and the prompt parameters into a pre-trained form quality detection model according to the field type, and generate quality detection results. The form quality detection model is obtained by training the labeled training data and the prompt parameters corresponding to the training data as training instances.

[0075] Optionally, in this embodiment of the application, the form quality detection device further includes a model training module to obtain training data; the training data includes quality labels and field types; according to the field types of the training data, the training data and the prompt parameters corresponding to the field types are combined to obtain training instances; the training instances are input into the model to be trained, and the quality labels are used as supervision signals to train the model to be trained to obtain a form quality detection model.

[0076] Optionally, in this embodiment, the form quality inspection device further includes a prompt parameter writing module, used to write prompt parameters corresponding to each field type based on the content of the field type. The prompt parameters include question text, description text, or task instructions.

[0077] Optionally, in this embodiment of the application, the form quality detection device and the quality detection module are further configured to preprocess the data of the field to be detected to obtain the processed field; combine the processed field and the prompt parameter according to the field type to obtain the combined data; perform format conversion on the combined data to obtain the model input data; input the model input data into the form quality detection model to obtain the quality detection result; the quality detection result is used to characterize whether the text quality of the field to be detected meets the requirements.

[0078] Optionally, in this embodiment of the application, the form quality detection device further includes: a quality feedback module, used to obtain a preset reference text corresponding to the field to be detected if the quality detection result indicates that the text quality does not meet the requirements; to perform keyword analysis and / or word frequency difference analysis on the field to be detected and the reference text to generate analysis results; and to obtain quality feedback content based on the analysis results.

[0079] Optionally, in this embodiment of the application, the form quality detection device further includes a format checking module, used to obtain the format checking rules corresponding to the field to be detected; the format checking rules are pre-written according to the format requirements of the field to be detected; the field to be detected is processed for data format to obtain the field to be matched; the format checking rules are used to perform format checking on the field to be matched to generate a format checking result; and quality feedback content is obtained based on the analysis result, including: obtaining quality feedback content based on the analysis result and the format checking result.

[0080] Optionally, in this embodiment of the application, the form quality detection device further includes a form generation module, used to acquire audio information; perform speech recognition on the audio information to obtain text information corresponding to the audio information; parse the text information, separate the fields in the text information by field identifiers to obtain fields to be filled; and map the fields to be filled to preset form templates to generate a form to be detected.

[0081] It should be understood that this device corresponds to the above-described form quality inspection method embodiment and is capable of performing the various steps involved in the above method embodiment. The specific functions of this device can be found in the description above, and detailed descriptions are omitted here to avoid repetition. The device includes at least one software functional module that can be stored in memory or embedded in the device's operating system (OS) in the form of software or firmware.

[0082] Please see Figure 3The diagram shows a structural schematic of an electronic device provided in an embodiment of this application. An electronic device 300 provided in this application includes a processor 310 and a memory 320. The memory 320 stores machine-readable instructions executable by the processor 310. When the machine-readable instructions are executed by the processor 310, the method described above is performed.

[0083] This application also provides a storage medium storing a computer program, which is executed by a processor to perform the above-described method.

[0084] The storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Red-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0085] It should be understood that the disclosed apparatus and methods can also be implemented in other ways, given the several embodiments provided in this application. The apparatus embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, or they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0086] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0087] The above description is only an optional implementation of the embodiments of this application, but the protection scope of the embodiments of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the embodiments of this application should be covered within the protection scope of the embodiments of this application.

Claims

1. A method for form quality inspection, characterized in that, include: Obtain the field to be tested, the field type of the field to be tested, and the prompt parameters corresponding to the field type from the form to be tested; The prompt parameters are pre-written content that reflects the field type; Based on the field type, the field to be detected and the prompt parameter are concatenated to obtain the model input data; The input data of the model is input into a pre-trained form quality detection model to generate quality detection results. The form quality detection model is obtained by concatenating the labeled training data and the prompt parameters corresponding to the field types of the training data as training instances, and training the training instances.

2. The method according to claim 1, characterized in that, Before inputting the field to be detected and the prompt parameter into the pre-trained form quality detection model according to the field type to generate the quality detection result, the method further includes: Obtain the training data; the training data includes quality labels and field types; According to the field type of the training data, the training data and the prompt parameters corresponding to the field type are combined to obtain the training instance; the combination includes concatenation; The training instance is input into the model to be trained, and the quality label is used as a supervision signal to train the model to obtain the form quality detection model.

3. The method according to claim 2, characterized in that, Before combining the training data and the prompt parameters corresponding to the field types according to the field types of the training data to obtain the training instance, the method further includes: Based on the content of the field type, write the prompt parameters corresponding to each field type. The prompt parameters include question text, description text, or task instructions.

4. The method according to claim 1, characterized in that, The step of inputting the field to be detected and the prompt parameter into a pre-trained form quality detection model according to the field type to generate a quality detection result includes: The field to be detected is preprocessed to obtain the processed field; Based on the field type, the processed field and the prompt parameter are combined to obtain combined data; the combination includes concatenation. The combined data is format-converted to obtain model input data; The input data of the model is input into the form quality detection model to obtain the quality detection result; the quality detection result is used to characterize whether the text quality of the field to be detected meets the requirements.

5. The method according to claim 1, characterized in that, After inputting the field to be detected and the prompt parameter into a pre-trained form quality detection model according to the field type to generate a quality detection result, the method further includes: If the quality detection result indicates that the text quality does not meet the requirements, then the preset reference text corresponding to the field to be detected is obtained; The field to be detected and the reference text are subjected to keyword analysis and / or word frequency difference analysis to generate analysis results; Based on the analysis results, quality feedback content is obtained.

6. The method according to claim 5, characterized in that, After obtaining the fields to be detected and their field types from the form to be detected, the method further includes: Obtain the format checking rules corresponding to the field to be detected; the format checking rules are written in advance according to the format requirements of the field to be detected. The data format of the field to be detected is processed to obtain the field to be matched; The format checking rules are used to perform a format check on the field to be matched, and a format check result is generated. The process of obtaining quality feedback based on the analysis results includes: The quality feedback content is obtained based on the analysis results and the format check results.

7. The method according to claim 1, characterized in that, Before obtaining the fields to be detected in the form to be detected, the method further includes: Obtain audio information; The audio information is subjected to speech recognition to obtain the corresponding text information; The text information is parsed, and the fields in the text information are separated by field identifiers to obtain the fields to be filled in; The fields to be filled are mapped to preset form templates to generate the form to be tested.

8. A form quality inspection device, characterized in that, include: The acquisition module is used to acquire the field to be detected, the field type of the field to be detected, and the prompt parameters corresponding to the field type in the form to be detected; The prompt parameters are pre-written content that reflects the field type; The quality inspection module is used to concatenate the field to be inspected and the prompt parameter according to the field type to obtain model input data; The input data of the model is input into a pre-trained form quality detection model to generate quality detection results. The form quality detection model is obtained by concatenating the labeled training data and the prompt parameters corresponding to the field types of the training data as training instances, and training the training instances.

9. An electronic device, characterized in that, include: A processor and a memory, the memory storing machine-readable instructions executable by the processor, which, when executed by the processor, perform the method as described in any one of claims 1 to 7.

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

Citation Information

Patent Citations

  • Data quality detection method and device, equipment and storage medium

    CN114860699A

  • Data quality detection method and device, computer equipment and storage medium

    CN116414815A