Question quality detection method and device
Prompt words are generated through the detection process and preset language model, which solves the problem of lack of standards for question quality judgment and achieves rapid and accurate question quality detection.
Patent Information
- Application Number
- CN202410900727.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-07-05
AI Technical Summary
In the existing technology, there is a lack of standards for determining the quality of questions, which results in low efficiency of manual determination and makes it difficult to quickly and accurately determine the quality of the questions.
A question quality detection method is provided. By obtaining the questions to be detected and preset defects, the detection process and the preset language model are used to generate prompt words, and the number of preset defects is comprehensively detected to determine the question quality.
It realizes fully automatic question quality detection, taking into account the accuracy and efficiency of detection, and can quickly and accurately determine the quality of the questions.
Smart Images

Figure CN118428360B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a question quality detection method and device. Background Art
[0002] Questions are a key tool for testing the knowledge mastery of the test takers. The quality of the questions is directly related to the accuracy and effectiveness of the test results. High-quality questions can accurately test the test takers' understanding and application of specific knowledge points, while low-quality questions may lead to inaccurate test results and mislead our judgment of the test takers' true level.
[0003] Currently, the quality of questions is judged based on the experience of professionals without a specific standard. In addition, the manual judgment process is inefficient, making it difficult to quickly and accurately determine the quality of questions. Summary of the invention
[0004] In view of the above problems, the object of the present invention is to provide a question quality detection method and device, which can quickly and accurately determine the quality of the question.
[0005] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0006] On the one hand, a method for detecting the quality of a question is provided, comprising:
[0007] Obtain the questions to be tested and multiple preset defects;
[0008] According to the detection process corresponding to each of the preset defects, the number of preset defects contained in the to-be-detected problem is detected to obtain a first number;
[0009] Based on each of the preset defects and the preset prompt word template, generating a prompt word to be used corresponding to each of the preset defects;
[0010] Determine the number of preset defects contained in the to-be-tested question by using a preset language model and the prompt words to be used corresponding to each preset defect, and obtain a second number;
[0011] A quality inspection result corresponding to the question to be inspected is determined according to the first quantity and the second quantity.
[0012] Optionally, the detecting the number of preset defects contained in the to-be-detected question according to the detection process corresponding to each preset defect to obtain the first number includes:
[0013] For each of the preset defects, obtaining a detection range and defect information corresponding to the preset defect;
[0014] Extracting the object to be detected from the subject to be detected according to the detection range;
[0015] Based on the detection process corresponding to the preset defect, detecting the defect information in the object to be detected;
[0016] If the defect information is detected in the object to be detected, a preset defect corresponding to the defect information is used as a designated defect;
[0017] The number of the specified defects is obtained to obtain a first number.
[0018] Optionally, the object to be detected includes multiple options in the question to be detected and at least one of the stems, and the detection process corresponding to the preset defect, detecting the defect information in the object to be detected, includes:
[0019] Obtaining a preset word corresponding to the preset defect;
[0020] Searching for the preset word in the object to be detected;
[0021] If the preset word is found in the object to be detected, it is determined to detect the defect information in the object to be detected.
[0022] Optionally, the object to be detected includes multiple options in the question to be detected, and the detection process corresponding to the preset defect, detecting the defect information in the object to be detected, includes:
[0023] Obtain the length corresponding to each of the options to obtain multiple option lengths;
[0024] Based on a specified length range, detecting a target length among the multiple option lengths, the target length being an option length within the specified length range;
[0025] If the target length is detected among the multiple option lengths, it is determined that defect information is detected in the object to be detected.
[0026] Optionally, the object to be detected includes multiple options in the question to be detected, and the detection process corresponding to the preset defect, detecting the defect information in the object to be detected, includes:
[0027] Performing feature extraction processing on each of the options to obtain option features corresponding to each of the options;
[0028] Based on each of the option features, the feature distance between any two options is calculated to obtain multiple option similarities;
[0029] If, among the plurality of option similarities, there is an option similarity that is within a first specified similarity range, it is determined to detect the defect information in the object to be detected.
[0030] Optionally, the object to be detected includes a plurality of options and a stem in the question to be detected, and the detection process corresponding to the preset defect, detecting the defect information in the object to be detected, includes:
[0031] Obtaining option features corresponding to each of the options and question stem features corresponding to the question stem;
[0032] Based on the option features and the question stem features, the feature distance between each option and the question stem is calculated to obtain multiple question stem similarities;
[0033] If, among the plurality of question stem similarities, there is an option similarity that is within a second specified similarity range, it is determined to detect the defect information in the object to be detected.
[0034] Optionally, the object to be detected includes a plurality of options and a stem in the question to be detected, and the detection process corresponding to the preset defect, detecting the defect information in the object to be detected, includes:
[0035] Performing a fluency test on the question stem to obtain the fluency of the question stem;
[0036] Performing a fluency test on each of the options to obtain the option fluency of each of the options;
[0037] The fluency of the question stem and the fluency of each of the options are used as the fluency to be used;
[0038] If any one of the fluency to be used is within the fluency range, it is determined that the defect information is detected in the object to be detected.
[0039] Optionally, the object to be detected includes a plurality of options and a stem in the question to be detected, and the detection process corresponding to the preset defect, detecting the defect information in the object to be detected, includes:
[0040] Identify the question type corresponding to the question to be tested according to the multiple options and the question stem;
[0041] If the topic type does not match the preset type, it is determined that the defect information is detected in the object to be detected.
[0042] Optionally, determining the quality test result corresponding to the to-be-tested topic according to the first quantity and the second quantity includes:
[0043] Performing weighted processing on the first quantity based on a first preset weight to obtain a first weighted quantity;
[0044] Performing weighted processing on the second quantity based on a second preset weight to obtain a second weighted quantity;
[0045] summing the first weighted quantity and the second weighted quantity to obtain a target quantity;
[0046] If the target number is less than the preset number, determining that the subject to be tested has passed the quality test;
[0047] If the target number is not less than the preset number, it is determined that the question to be tested has failed the quality test.
[0048] On the other hand, a question quality detection device is provided, which is used to implement any of the above methods, and the device includes:
[0049] An acquisition module, used to acquire the question to be tested and a plurality of preset defects;
[0050] A first determination module is used to detect the number of preset defects contained in the to-be-detected question according to the detection process corresponding to each preset defect, and obtain a first number;
[0051] A prompt word module, used to generate a prompt word to be used corresponding to each preset defect based on each preset defect and a preset prompt word template;
[0052] A second determination module is used to determine the number of preset defects contained in the to-be-tested question by using a preset language model and a prompt word to be used corresponding to each preset defect, so as to obtain a second number;
[0053] A result determination module is used to determine the quality detection result corresponding to the to-be-detected question according to the first quantity and the second quantity.
[0054] On the other hand, an electronic device is provided, comprising a processor and a memory, wherein the memory stores a plurality of instructions; the processor loads instructions from the memory to execute the steps in any one of the question quality detection methods provided by the present invention.
[0055] On the other hand, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor to execute the steps in any one of the question quality detection methods provided by the present invention.
[0056] On the other hand, a computer program product is provided, comprising a computer program / instruction, which, when executed by a processor, implements the steps in any one of the question quality detection methods provided in the present invention.
[0057] The beneficial effects brought about by the technical solution provided by the present invention include at least:
[0058] The present invention can obtain a subject to be tested and a plurality of preset defects; the number of preset defects detected in the subject to be tested based on the detection process is taken as a first number; the preset defects and the preset prompt word template are used to generate prompt words to be used, and the number of preset defects detected in the subject to be tested based on the prompt words to be used is taken as a second number; finally, the quality detection result of the subject to be tested is determined by combining the first number and the second number. The present invention provides a fully automatic quality detection method, which determines the number of preset defects by combining the detection process and the prompt words, takes into account the accuracy and efficiency of the detection, and can quickly and accurately determine the quality of the subject. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0060] Figure 1 It is a schematic diagram of an application scenario of the question quality detection method provided by an embodiment of the present invention;
[0061] Figure 2 It is a flowchart of a method for detecting question quality provided by an embodiment of the present invention;
[0062] Figure 3 It is a schematic diagram of the overall framework of the question quality detection method provided by an embodiment of the present invention;
[0063] Figure 4 is a structural schematic diagram of a question quality detection device provided by an embodiment of the present invention;
[0064] Figure 5 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0065] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0066] With the rapid development of artificial intelligence technology, models trained based on artificial intelligence technology have been widely used in various fields. For example, in order to reduce the burden of compiling test questions, questions can be automatically generated based on knowledge points by training a neural network model. In order to ensure that the generated questions can accurately detect the respondent's mastery and application of knowledge points, the quality of the questions can be determined by experts based on experience, and some high-quality questions can be retained. Since there is no specific judgment standard for manual judgment of question quality and the efficiency is low, it is difficult to quickly and accurately determine the quality of the questions. Therefore, the present invention proposes a question quality detection method to quickly and accurately determine the quality of the questions.
[0067] It is understandable that in the specific implementation of the present invention, data related to user information, etc., needs to obtain user permission or consent, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0068] For example, see Figure 1 , shows a schematic diagram of an application scenario of the question quality detection method. The application scenario may include a terminal 101 and a server 102, and data can be exchanged between the terminal 101 and the server 102 via a network. The terminal 101 may be a mobile phone, a tablet computer, a smart Bluetooth device, a computer, etc.; the server 102 may be a single server or a server cluster consisting of multiple servers.
[0069] The subject to be detected can be sent from the terminal 101 to the server 102 so that the server 102 can obtain the subject to be detected and multiple preset defects; according to the detection process corresponding to each preset defect, the number of preset defects included in the subject to be detected is detected to obtain a first number; based on each preset defect and the preset prompt word template, a prompt word to be used corresponding to each preset defect is generated; through the preset language model and the prompt word to be used corresponding to each preset defect, the number of preset defects included in the subject to be detected is determined to obtain a second number; according to the first number and the second number, the quality detection result corresponding to the subject to be detected is determined. Then the server 102 can feed back the quality detection result to the terminal 101.
[0070] The details are described below.
[0071] In this embodiment, a method for detecting the quality of a topic is provided. Figure 2 As shown, the specific process of the title quality detection method can be as follows:
[0072] S110, obtaining a question to be tested and a plurality of preset defects.
[0073] The questions to be tested refer to the questions that need to be quality tested. Questions refer to questions that need to be answered by the test takers during exams or exercises. The presentation forms of questions can include various forms, such as multiple-choice questions, single-choice questions, fill-in-the-blank questions, etc. In the embodiment of the present invention, only the example of the question to be tested being a single-choice question is used for explanation.
[0074] In some embodiments, the test questions can be automatically generated by a pre-trained language model, and the trained language model can be recorded as a question generation model. The knowledge points to be examined are input into the question generation model, and the question generation model can give questions related to the knowledge points. For another example, the test questions can be questions in existing test papers, exercises, or question banks. The following description will be given by taking the test questions generated by the question generation model as an example.
[0075] Preset defects refer to relevant indicators that lead to poor question quality, among which the specific definition and number of preset defects can be set according to actual needs.
[0076] S120. According to the detection process corresponding to each of the preset defects, detect the number of preset defects included in the to-be-detected question to obtain a first number.
[0077] Each preset defect may be provided with a corresponding detection process, which is a process step for detecting whether the preset defect exists in the subject to be detected. Thus, based on the detection process, the number of preset defects contained in the subject to be detected can be detected to obtain a first number.
[0078] As an implementation method, when obtaining the first quantity, for each preset defect, the detection range and defect information corresponding to the preset defect can be obtained; based on the detection range, the object to be detected is extracted from the subject to be detected; based on the detection process corresponding to the preset defect, the defect information is detected in the object to be detected; if the defect information is detected in the object to be detected, the preset defect corresponding to the defect information is used as the designated defect; and the number of the designated defects is obtained to obtain the first quantity.
[0079] Each preset defect can be pre-set with its corresponding detection range, which can be understood as the range in which the preset defect appears in the question to be detected. For example, the question to be detected is a single-choice question, which can be composed of a stem and options. Some preset defects only appear in the stem, some preset defects only appear in the options, and some preset defects appear in the stem and options. Therefore, by setting the detection range of the preset defects, the content that needs to be detected can be quickly determined, which speeds up the detection efficiency.
[0080] Defect information refers to specific information that can be detected from the subject to be detected when the subject to be detected contains a preset defect. That is, the defect information can be considered as characteristic information that the subject to be detected contains a preset defect.
[0081] Among them, the preset defect, preset range and defect information can be stored in association. For example, the unique identifier of the preset defect is associated with the preset range and the preset information. When obtaining the detection range and defect information of the preset defect, the unique identifier of the preset defect can be used as the target identifier, and the preset range associated with the target identifier is determined as the detection range, and the preset information associated with the target identifier is determined as the defect information.
[0082] After obtaining the detection range, the object to be detected can be extracted from the title to be detected based on the detection range, and the object to be detected is the content that needs to be detected in the title to be detected. For example, if the detection range is the stem, the stem is extracted from the title to be detected as the object to be detected; if the detection range is the options, the options are extracted from the title to be detected as the object to be detected; if the detection range is the stem and the options, the entire title to be detected is directly used as the object to be detected. It should be noted that the title to be detected can usually include at least one of text, image, video, and audio, and the object to be detected can also refer to at least one of text, image, video, and audio. In an embodiment of the present invention, it will be described as an example that the title to be detected and the object to be detected are both text.
[0083] Then, based on the detection process corresponding to each preset defect, defect information can be detected in the object to be detected. The detection process can refer to a pre-set detection program, that is, directly running the detection program can realize the detection of defect information in the object to be detected. If the defect information is detected in the object to be detected, it can be considered that the object to be detected contains the corresponding preset defect. In order to facilitate the counting of the number of preset defects, when the defect information is detected in the object to be detected, the preset defect corresponding to the defect information can be used as the designated defect, and finally the number of the designated defects is obtained to obtain the first number.
[0084] In the embodiment of the present invention, a plurality of preset defects are provided, and a specific detection method for each preset defect will be described in detail below.
[0085] In some embodiments, the object to be detected may include multiple options in the question to be detected and at least one of the stems. Based on the detection process, when detecting defect information in the object to be detected, it may be to obtain a preset word corresponding to the preset defect; query the preset word in the object to be detected; if the preset word is queried in the object to be detected, determine to detect the defect information in the object to be detected.
[0086] The preset words are words that are pre-set to be detected, wherein the specific content and quantity of the preset words set for different preset defects are different. The preset words can be pre-associated with the preset defects, and the preset words are obtained based on the preset defects. Then, the preset words corresponding to the preset defects are queried in the object to be detected. If the preset words are queried in the object to be detected, it can be determined that defect information is detected in the object to be detected.
[0087] As an implementation method, the preset defect may be a preset word of the first type appearing in the options, and the preset word of the first type indicates that the other options do not meet the requirements of the question stem. Such options do not directly correspond to any information in the question to be tested, which may confuse the test taker. The preset words of the first type may include none of the above, none of the above is correct, none of the above meets the requirements of the question stem, etc. There may be multiple preset words of the first type, and if any one of the preset words of the first type is detected in the options, it can be determined that defect information is detected in the object to be tested.
[0088] For example, the preset defect includes the option "None of the above", and the first type of preset words is "None of the above". If "None of the above" is found in the options, it is determined that a defect is detected in the object to be detected.
[0089] As an implementation method, the preset defect may be a preset word of the second type appearing in the options, and the preset word of the second type indicates that the other options meet the requirements of the question stem. Similarly, this option does not directly correspond to any information in the question to be tested, which may confuse the test taker. Among them, the preset words of the second type may include all of the above, all of the above are correct, and all of the above meet the requirements of the question stem. There may be multiple preset words of the second type, and if any one of the preset words of the second type is detected in the options, it can be determined that defect information is detected in the object to be tested.
[0090] For example, the preset defect includes the option "all of the above", and the second type of preset words is "all of the above". If "all of the above" is found in the options, it is determined that a defect is detected in the object to be detected.
[0091] As an implementation method, the preset defect may be a preset word of the third type contained in the question to be tested, and the preset word of the third type refers to negative information. Among them, negative information may be words that violate relevant regulations and absolute and imperative words. Absolute and imperative words may include must, absolutely, and definitely. The inclusion of the preset word of the third type in the options may make the answerer feel uncomfortable or distracted, thereby affecting their answering performance. Among them, there may be multiple preset words of the third type. If any preset word of the third type is detected in the options, it can be determined that defect information is detected in the object to be tested.
[0092] As an implementation method, the preset defect may be that the options only include the fourth type of preset words, and the fourth type of preset words may refer to numbers, that is, the options only include numbers, which are pure numeric questions. In the scenario where the question generation model automatically generates questions to be tested, since the corpus used to train the question generation model is not necessarily accurate numbers, such pure numeric questions should be avoided as much as possible.
[0093] For example, the question to be tested is: What proportion of breast cancer and colon cancer burden is caused by physical inactivity? A, 10% to 20%; B, 21% to 25%; C, 26% to 30%; D, 31% to 35%. If the query contains only pure numbers in each option, it is determined that a defect is detected in the object to be tested.
[0094] In some embodiments, the object to be detected may include multiple options in the question to be detected. Based on the detection process, when detecting defect information in the object to be detected, the length corresponding to each option may be obtained to obtain multiple option lengths; based on a specified length range, a target length is detected in the multiple option lengths, and the target length is the option length within the specified length range; if the target length is detected in the multiple option lengths, it is determined that defect information is detected in the object to be detected.
[0095] When the object to be detected includes multiple options in the question to be detected, the length corresponding to each option can be obtained to obtain multiple option lengths. Among them, the option length can be determined based on the number of characters and the number of multimedia in the option. The number of characters in the option refers to the number of characters in the option. For example, if the option is "plant-based foods can reduce calcium excretion", the number of characters in the option is 12, then the number of characters is also 12. The number of multimedia refers to the number of images, videos, audios, etc.
[0096] When calculating the option length, it can be calculated according to the following formula: , where a represents the character weight, a1 represents the number of characters, b represents the multimedia weight, b represents the number of multimedia, and c represents the option length. Both the character weight and the multimedia weight can be set according to actual needs and are not specifically limited here.
[0097] The specified length range can be a pre-set length range, and the target length is the option length within the specified length range. Determining the target length among multiple option lengths is to determine whether there is an option length within the specified length range. If there is any option whose option length is within the specified range, it can be determined that defect information is detected in the object to be detected. For example, if the specified length range is (0, c1), and the option length is within the specified length range, it indicates that the option length of the option is less than c1, that is, the option is too short. An option that is too short may result in the option lacking sufficient information to help the respondent make a correct choice.
[0098] As an implementation method, the specified length range may be (c2, +∞). If the option length of any one of the multiple options is within the specified range, it can be determined that defect information is detected from the object to be detected. If the option length is within the specified length range, it indicates that the option length is greater than c2, that is, the option is too long. An option that is too long may contain some redundant information, which increases the burden on the respondent.
[0099] In some embodiments, the object to be detected may include multiple options in the question to be detected. Based on the detection process, when detecting defect information in the object to be detected, feature extraction processing may be performed on each of the options to obtain option features corresponding to each of the options; based on each of the option features, the feature distance between any two options is calculated to obtain multiple option similarities; if among the multiple option similarities, there is an option similarity within a first specified similarity range, it is determined that the defect information is detected in the object to be detected.
[0100] For each option, feature extraction processing can be performed on the option to convert the option into option features. In some embodiments, the option may include one of text, image, video, and audio. For text, the text can be converted into text features through word embedding, such as Word2Vec, GloVe, etc.; for images, the images can be converted into image features through a deep learning model; for videos, time series information in the video can be extracted to convert the video into video features, for example, a recurrent neural network or an attention mechanism can be used for conversion; for audio, the audio signal can be converted into coefficients in the Mel frequency domain to obtain audio features.
[0101] In other implementations, the options may consist of information in multiple modes. For example, the options may include at least one of text, image, video, and audio. The features of each mode can be extracted and then fused to obtain the corresponding option features. It should be noted that the above feature extraction method is only for illustrative purposes. Of course, other feature extraction methods can also be used, which are not specifically limited here.
[0102] According to the above method, the option feature corresponding to each option can be extracted, and then, based on each option feature, the feature distance between any two options can be calculated to obtain multiple option similarities. Among them, the feature distance can refer to the cosine distance between option features. The larger the cosine distance, the less similar the two options are, and the smaller the cosine distance, the more similar the two options are. In other words, the larger the option similarity, the less similar the two options are, and the smaller the option similarity, the more similar the two options are.
[0103] If there is any option whose similarity is within the first specified similarity range, it can be determined that the object to be detected meets the defect condition. The first specified similarity range can be set according to actual needs and is not specifically limited here. For example, if the first specified similarity range is less than S1, if there is an option whose similarity is less than S1, it indicates that the repetition of the option is high, resulting in the option being unable to provide new information or choices, making the question redundant.
[0104] As an implementation method, the option feature of the correct option can also be recorded as the first feature, and the option features of other options except the correct option can be recorded as the second feature. Then, the similarity between the first feature and each second feature is calculated to obtain multiple specific similarities. The first specified similarity range can be greater than S2. If there is a specific similarity greater than S2, it indicates that there is an option with a large gap with the correct option. Since the gap between this option and the correct option is too large, it is very easy to be excluded, which makes the question to be tested meaningless.
[0105] In some embodiments, the object to be detected includes multiple options and a stem in the question to be detected. Based on the detection process, when detecting defect information in the object to be detected, the option feature corresponding to each of the options and the stem feature corresponding to the stem can be obtained; based on the option feature and the stem feature, the feature distance between each of the options and the stem is calculated to obtain multiple stem similarities; if among the multiple stem similarities, there is an option similarity that is within a second specified similarity range, it is determined to detect the defect information in the object to be detected.
[0106] The extraction method of the option features can refer to the corresponding description above, which will not be repeated here. The question stem features refer to the features obtained after feature extraction processing of the question stem, and the extraction method of the question stem features can be consistent with the extraction method of the option features.
[0107] After extracting features from each option and stem, the stem can be converted into stem features, and each option can be converted into option features. Then, the feature distance between the stem feature and each of the option features is calculated to obtain multiple stem similarities. It can be understood that the number of stem similarities is consistent with the number of options. If there are 4 options, 4 stem similarities can be calculated.
[0108] As an implementation method, the feature distance may refer to the cosine distance; the smaller the feature distance, the smaller the question stem similarity, indicating that the options are more similar to the question stem; the larger the feature distance, the greater the question stem similarity, indicating that the options are less similar to the question stem. If there is any question stem similarity within the second specified similarity range, it can be determined that defect information has been detected from the object to be detected. Among them, the second specified similarity range can be set according to actual needs and is not specifically limited here. For example, the second specified similarity range is less than S3. If there is a question stem similarity less than S3, it indicates that there are options with a higher similarity to the question stem, which may cause the respondent to mistakenly select options that simply repeat the question information, rather than based on a deep understanding of the question requirements.
[0109] In some embodiments, the object to be detected includes multiple options and a stem of the question to be detected. When detecting defect information in the object to be detected based on the detection process, the question type corresponding to the question to be detected can be identified based on the multiple options and the stem; if the question type does not match the preset type, it is determined that the defect information is detected in the object to be detected.
[0110] The question type refers to the presentation type and examination type used by the question to be tested when testing knowledge points, where the presentation type refers to the presentation form of the question to be tested, such as single-choice questions, multiple-choice questions, etc., and the examination type may include concept examination, application examination, etc. Therefore, when identifying the question type corresponding to the question to be tested, it is necessary to identify its presentation type and examination type.
[0111] As an implementation method, when identifying its presentation type, the question stem and multiple options can be input into the answer model, and then the target answer selected by the answer model from the multiple options is obtained. If the number of target answers is greater than the specified number, its presentation type can be determined to be a multiple choice type; if the number of target answers is the specified number, its presentation type can be determined to be a single choice type. Among them, the specified number can be set according to actual needs and is not specifically limited here. For example, the specified number here can be set to 1.
[0112] The preset type may include a preset expression type. If the identified expression type is not the preset expression type, it may be determined that defect information is detected in the object to be detected.
[0113] As an implementation method, when identifying the test type, multiple models can be used for identification. For example, the question stem is identified based on the first model to determine whether the intention of the question stem is to ask about a concept; if so, the test type is determined to be a concept test; if not, the entire question to be tested is identified based on the second model to determine whether the difficulty of the question comes from the understanding of a specific concept; if so, the test type is determined to be a concept test; if not, based on the third model, it is determined whether answering the question to be tested only requires generating the content in the knowledge points of the question to be tested; if so, the test type is determined to be a concept test; if not, the test type is determined to be an application test. Among them, the first model, the second model, and the third model can be three independent neural network models, or they can be integrated in one model. Of course, these models all need to be pre-trained according to actual needs before use.
[0114] If the defect information is detected in the object to be detected, the preset defect corresponding to the defect information is used as the designated defect; the number of the designated defects is obtained to obtain a first number. Optionally, the first number can be calculated according to the following formula:
[0115] ;
[0116] Wherein, x represents the first quantity; n represents the total number of preset defects set; i represents the i-th preset defect; When the defect information corresponding to the i-th preset defect is detected, the value is 1; when the defect information corresponding to the i-th preset defect is not detected, the value is 0.
[0117] S130: Based on each of the preset defects and the preset prompt word template, generate a prompt word to be used corresponding to each of the preset defects.
[0118] The preset prompt word template refers to the prompt word template that needs to be used later. The prompt word is a method of using natural language to guide or stimulate the neural network model to complete a specific task. The prompt word can help the model better understand the input intent and respond accordingly.
[0119] In some embodiments, the preset prompt word template may include multiple slots to be filled, and the slots to be filled may include defect slots and question slots. Among them, the defect slot can be filled with a specific preset defect and the definition corresponding to the preset defect. The question slot can be filled with relevant information of the question to be tested, such as the question to be tested itself, the answer and analysis corresponding to the question to be tested, etc. For example, the preset prompt word template can be expressed as follows: task: question evaluation. description: You are given a question and multiple evaluation criteria, and start your answer with "yes" or "no". Does this question meet the criteria related to {criteria}: {definition}? Explain the reason. {Question slot}, {defect slot}.
[0120] If there is a question: In the dietary guidelines for patients with hypertension, which of the statements about "three lows in diet" and "three highs in diet" is incorrect? A. Low salt, low sugar, and low fat. B. High water intake, high fruit and vegetable intake, and high protein intake. C. Control total energy intake and control weight. D. Limit cholesterol intake and increase unsaturated fatty acid intake. The correct answer is C. Controlling total energy intake and controlling weight are what obese hypertensive patients need to do, not the content of "three lows in diet" and "three highs in diet". There is a preset defect that is vague content. The definition of this preset defect is "the questions and options of the question are vague or easily ambiguous."
[0121] For the question to be tested, the generated prompt words corresponding to the preset defect are: "task: question evaluation. description: You are given a question and multiple evaluation criteria. Start your answer with "yes" or "no". Does this question meet the criteria related to {criteria} and {definition}? Explain the reason. {question}, {criteria}. For example:'''{"question":"In the dietary guidelines for patients with hypertension, which of the statements about "three lows in diet" and "three highs in diet" is incorrect? ","question_type":"Single choice","candidate_options":{"A":"Low salt, low sugar, low fat","B":"High water intake, high fruit and vegetable intake, high protein intake","C":"Control total energy intake and control weight","D":"Limit cholesterol intake and increase unsaturated fatty acid intake"},"answer":{"correct_option":"C","reason":"Controlling total energy intake and controlling weight are what obese patients with hypertension need to do, not the content of "three lows in diet" and "three highs in diet". "}}, {"criteria":"The content is vague", "definition":"The questions and options in the title are unclear or ambiguous"}'''.
[0122] As an implementation method, a prompt word to be used may include only one preset defect related information, or may include multiple. That is, the correspondence between the preset defect and the prompt word to be used may be one-to-one, or multiple preset defects may correspond to one prompt word to be used, which can be selected according to actual needs.
[0123] S140, determining the number of preset defects included in the to-be-tested question by using a preset language model and the prompt words to be used corresponding to each preset defect, and obtaining a second number.
[0124] The preset language model may be a generative language model, and the prompt words to be used are input into the preset language model to obtain the corresponding response of the preset language model. Taking the prompt words to be used in the above example as input into the preset language model, the response output by the preset language model may be: Yes, there are indeed some ambiguities in the question and options of the title. In the given options, the concepts of "three lows in diet" and "three highs in diet" are not clearly explained, which may cause confusion among the answerers about the correct options. In addition, although the control of total energy intake and weight control mentioned in option C are important in dietary guidelines, they are not directly related to the statements of "three lows in diet" and "three highs in diet". Therefore, option C does not meet the requirements of the question.
[0125] As an implementation, if a preset defect corresponds to a prompt word to be used, the number of prompt words to be used with a "yes" answer can be obtained, and the number is used as the second number. In other implementations, if multiple preset defects correspond to a prompt word to be used, the number of "yes" answers can be obtained, and the number is used as the second number. As an implementation, the second number can be calculated by the following formula:
[0126] ;
[0127] Wherein, y represents the second quantity; n represents the total number of preset defects set; i represents the i-th preset defect; When the preset language model answers yes to the prompt word to be used corresponding to the i-th preset defect, the value is 1; when the preset language model answers no to the prompt word to be used corresponding to the i-th preset defect, the value is 0.
[0128] S150. Determine a quality test result corresponding to the question to be tested by combining the first number and the second number.
[0129] The first number and the second number have been obtained through the aforementioned steps, wherein the first number refers to the number of preset defects contained in the questions to be tested detected by using the detection process corresponding to the preset defects, and the second number refers to the number of preset defects contained in the questions to be tested detected by using the preset language model and the prompt words to be used.
[0130] Among them, after manual comparative analysis, the detection method using the preset language model is more rigorous, and the detection method using the detection process has a higher accuracy. In order to ensure that the quality detection result has a high accuracy while retaining a certain degree of rigor, the first number and the second number can be corrected based on the weight. Thus, when determining the quality detection result corresponding to the question to be detected based on the first number and the second number, the first number can be weighted based on the first preset weight to obtain the first weighted number; the second number can be weighted based on the second preset weight to obtain the second weighted number; the first weighted number and the second weighted number are summed to obtain the target number; if the target number is less than the preset number, it is determined that the question to be detected has passed the quality detection; if the target number is not less than the preset number, it is determined that the question to be detected has not passed the quality detection.
[0131] Among them, the first preset weight is the weight corresponding to the first quantity, the second preset weight is the preset weight corresponding to the second quantity, and the sum of the first preset weight and the second preset weight is 1. The first weighted quantity can be obtained by weighting the first quantity with the first preset weight, and the second weighted quantity can be obtained by weighting the second quantity with the second preset weight. Then sum the first weighted quantity and the second weighted quantity to obtain the target quantity. Optionally, the target quantity can be calculated by the following formula: z=αx+βy; wherein z represents the target quantity; α represents the first preset weight; x represents the first quantity; β represents the second preset weight; y represents the second quantity.
[0132] The preset number is the maximum number of preset defects contained in the test question when the quality is good. The preset number can be obtained through a large amount of data analysis, or can be set according to actual needs, and is not specifically limited here. As an implementation method, it can be determined based on the total number of preset defects, such as setting a proportionality coefficient first, and multiplying the total number and the proportionality coefficient to obtain the preset number.
[0133] If the target number is less than the preset number, it can be determined that the subject to be tested has passed the quality test, that is, the quality of the subject to be tested is good. If the target number is not less than the preset number, it can be determined that the subject to be tested has not passed the quality test, that is, the quality of the subject to be tested is poor.
[0134] In order to explain the quality inspection method more clearly, the following will be combined with Figure 3And the specific preset defects are described in detail, among which, Figure 3 The overall framework diagram of the quality detection method is shown in FIG. 1 . In the embodiment of the present invention, the preset defects specifically set may include the following contents:
[0135] 1. Unclear content: The questions and options are unclear or ambiguous. The sentence fluency scoring model can be called to obtain the fluency of the question. If the fluency is less than the specified fluency, the content model is considered unclear.
[0136] 2. The distractors are too obvious. The similarity between the correct option and other options can be calculated. If the similarity difference is too large, it means that the distractors are too obvious. The length and semantics of the options can be considered when calculating the similarity.
[0137] 3. The option "None of the above" appears. That is, the option "None of the above" appears, and is detected by keyword matching and other methods.
[0138] 4. The option is too long. That is, the length of the option exceeds the expected length.
[0139] 5. The option is too short. That is, the length of the option is shorter than expected.
[0140] 6. The option "All of the above" appears. That is, the option "All of the above" appears, and is detected by keyword matching and other methods.
[0141] 7. Contains multiple correct options. That is, there are multiple correct options in the single-choice question. You can input the question into the language model and wait for the language model to give the correct option. If the number of correct options given by the language model is greater than 1, it is determined that the question contains multiple correct options.
[0142] 8. Contains negative information. That is, the options contain some illegal words, or some mandatory or imperative words, which can be detected by keyword matching.
[0143] 9. There is too much repetition between options. That is, there is no obvious difference between the options. You can extract features from each option so that you can use the features to calculate similarity. If the similarity is too high, it can be considered that the repetition is too high.
[0144] 10. The similarity between the options and the question is too high. Similarly, the similarity between the options and the question stem can be calculated to detect.
[0145] 11. Ask pure numerical questions. That is, there are only numbers in the options, which can be identified through keyword detection.
[0146] 12. The option "cannot be determined" appears. If the option "cannot be determined" appears, it will be detected by keyword matching and other methods.
[0147] 13. Questions that test concepts. You can use the language model to test the following aspects: 1. Determine whether the question stem is asking about a concept. 2. Determine whether the difficulty of the question mainly comes from the understanding of a specific concept, rather than the ability to analyze or apply it. 3. Evaluate whether the question can be answered directly based on the content of the corresponding knowledge point.
[0148] For the questions to be tested, such as Figure 3 In the above, each of the preset defects can be set with a corresponding detection program to execute the detection process. When it is detected that the problem to be detected contains a preset defect, the first number is increased by 1. When the detection programs corresponding to all preset defects are run, the final first number can be obtained for output.
[0149] The definition of the above-mentioned preset defect and the like are integrated into the prompt word to form the prompt word to be used, so as to guide the preset language model to determine whether the question to be tested contains the preset defect, so as to obtain the second number.
[0150] Then, the target number of preset defects contained in the subject to be tested is calculated based on the preset weight, the first number, and the second number. If the target number is less than the preset number, it can be considered that the quality of the subject to be tested is high, and it is determined that the subject to be tested has passed the quality test; if the target number is not less than the preset number, it can be considered that the quality of the subject to be tested is poor, and it is determined that the subject to be tested has not passed the quality test. For example, in this embodiment, the preset defects are 13, and the preset number can be set to 3. If the target number of preset defects contained in the subject to be tested is 3, it is determined that the quality of the subject to be tested is poor and has not passed the quality test.
[0151] The question quality detection scheme provided by the embodiment of the present invention can be applied in various scenarios. For example, questions can be automatically generated based on the question generation model, and the question quality detection method can be applied to the training stage of the question generation model. For example, the questions generated by the question generation model can be quality-checked. If they fail the quality detection, the model parameters of the question generation model are adjusted to ensure that the question generation model can generate high-quality questions.
[0152] For another example, it can be used to evaluate the model's question generation capability, such as performing quality checks on questions generated by a model and measuring the model's capability based on the number of questions that pass the quality check.
[0153] For another example, it can also be used in a question screening scenario, where a large number of questions can be acquired in advance, and the question quality detection method can be used to quickly identify high-quality questions.
[0154] The method provided by the embodiment of the present invention can pre-define multiple preset defects, and set a corresponding detection program for each preset defect, so as to execute the detection process to determine the number of preset defects contained in the subject to be detected, and obtain a first number. In order to ensure the accuracy of the detection, the preset language model and the prompt words to be used are introduced to continue to detect the number of preset defects contained in the subject to be detected, and obtain a second number. Finally, the numbers detected by the two methods are combined to determine the target number, and the target number is used to determine the quality detection result, which can take into account the accuracy and efficiency of the detection and can quickly and accurately determine the quality of the subject.
[0155] In order to better implement the above method, the embodiment of the present invention further provides a question quality detection device, which can be integrated in an electronic device, and the electronic device can be a terminal, a server, etc. Among them, the terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop, a personal computer, etc.; the server can be a single server or a server cluster composed of multiple servers.
[0156] For example, in this embodiment, the method of the embodiment of the present invention is described in detail by taking the specific integration of the question quality detection device in the server as an example.
[0157] For example, Figure 4 As shown, the question quality detection device 200 may include an acquisition module 210 , a first determination module 220 , a prompt word module 230 , a second determination module 240 and a result determination module 250 .
[0158] An acquisition module 210 is used to acquire a question to be detected and a plurality of preset defects;
[0159] A first determination module 220 is used to detect the number of preset defects contained in the to-be-detected problem according to the detection process corresponding to each preset defect, and obtain a first number;
[0160] A prompt word module 230, configured to generate a prompt word to be used corresponding to each preset defect based on each preset defect and a preset prompt word template;
[0161] The second determination module 240 is used to determine the number of preset defects contained in the to-be-tested question by using a preset language model and a prompt word to be used corresponding to each preset defect, so as to obtain a second number;
[0162] The result determination module 250 is used to determine the quality detection result corresponding to the to-be-detected question according to the first number and the second number.
[0163] In some embodiments, the first determining module 220 is specifically configured to:
[0164] For each of the preset defects, obtaining a detection range and defect information corresponding to the preset defect;
[0165] Extracting the object to be detected from the subject to be detected according to the detection range;
[0166] Based on the detection process corresponding to the preset defect, detecting the defect information in the object to be detected;
[0167] If the defect information is detected in the object to be detected, a preset defect corresponding to the defect information is used as a designated defect;
[0168] The number of the specified defects is obtained to obtain a first number.
[0169] In some embodiments, the object to be detected includes at least one of the multiple options and the stem of the question to be detected, and the first determination module 220 is specifically used to:
[0170] Obtaining a preset word corresponding to the preset defect;
[0171] Searching for the preset word in the object to be detected;
[0172] If the preset word is found in the object to be detected, it is determined to detect the defect information in the object to be detected.
[0173] In some embodiments, the object to be detected includes multiple options in the question to be detected, and the first determination module 220 is specifically used to:
[0174] Obtain the length corresponding to each of the options to obtain multiple option lengths;
[0175] Based on a specified length range, detecting a target length among the multiple option lengths, the target length being an option length within the specified length range;
[0176] If the target length is detected among the multiple option lengths, it is determined that defect information is detected in the object to be detected.
[0177] In some embodiments, the object to be detected includes multiple options in the question to be detected, and the first determination module 220 is specifically used to:
[0178] Performing feature extraction processing on each of the options to obtain option features corresponding to each of the options;
[0179] Based on each of the option features, the feature distance between any two options is calculated to obtain multiple option similarities;
[0180] If, among the plurality of option similarities, there is an option similarity that is within a first specified similarity range, it is determined to detect the defect information in the object to be detected.
[0181] In some embodiments, the object to be detected includes multiple options and a stem of the question to be detected, and the first determination module 220 is specifically used to:
[0182] Obtaining option features corresponding to each of the options and question stem features corresponding to the question stem;
[0183] Based on the option features and the question stem features, the feature distance between each option and the question stem is calculated to obtain multiple question stem similarities;
[0184] If, among the plurality of question stem similarities, there is an option similarity that is within a second specified similarity range, it is determined to detect the defect information in the object to be detected.
[0185] In some embodiments, the object to be detected includes multiple options and a stem of the question to be detected, and the first determination module 220 is specifically used to:
[0186] Performing a fluency test on the question stem to obtain the fluency of the question stem;
[0187] Performing a fluency test on each of the options to obtain the option fluency of each of the options;
[0188] The fluency of the question stem and the fluency of each of the options are used as the fluency to be used;
[0189] If any one of the fluency to be used is within the fluency range, it is determined that the defect information is detected in the object to be detected.
[0190] In some embodiments, the object to be detected includes multiple options and a stem of the question to be detected, and the first determination module 220 is specifically used to:
[0191] According to the multiple options and the question stem, identifying the question type corresponding to the question to be tested;
[0192] If the topic type does not match the preset type, it is determined that the defect information is detected in the object to be detected.
[0193] In some embodiments, the result determination module 250 is specifically used to:
[0194] Performing weighted processing on the first quantity based on a first preset weight to obtain a first weighted quantity;
[0195] Performing weighted processing on the second quantity based on a second preset weight to obtain a second weighted quantity;
[0196] summing the first weighted quantity and the second weighted quantity to obtain a target quantity;
[0197] If the target number is less than the preset number, determining that the subject to be tested has passed the quality test;
[0198] If the target number is not less than the preset number, it is determined that the question to be tested has failed the quality test.
[0199] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation of the above units can refer to the previous method embodiments, which will not be repeated here.
[0200] As can be seen from the above, the question quality detection device of this embodiment can obtain the question to be detected and multiple preset defects; take the number of preset defects detected in the question to be detected based on the detection process as the first number; generate the prompt words to be used using the preset defects and the preset prompt word template, and take the number of preset defects detected in the question to be detected based on the prompt words to be used as the second number; finally, combine the first number and the second number to determine the quality detection result of the question to be detected. A fully automatic quality detection method is provided, which combines the two methods of detection process and prompt words to determine the number of preset defects, takes into account the accuracy and efficiency of detection, and can quickly and accurately determine the quality of the question.
[0201] The embodiment of the present invention further provides an electronic device, which may be a terminal, a server, or the like. The terminal may be a mobile phone, a tablet computer, a smart Bluetooth device, a notebook computer, a personal computer, or the like; the server may be a single server or a server cluster composed of multiple servers, or the like.
[0202] In some embodiments, the question quality detection device may also be integrated into multiple electronic devices. For example, the question quality detection device may be integrated into multiple servers, and the question quality detection method of the present invention may be implemented by multiple servers.
[0203] In this embodiment, the electronic device of this embodiment is a server as an example for detailed description, for example, Figure 5 As shown, it shows a schematic diagram of the structure of an electronic device involved in an embodiment of the present invention, specifically:
[0204] The electronic device may include components such as a processor 310 with one or more processing cores, a memory 320 with one or more computer-readable storage media, a power supply 330, an input module 340, and a communication module 350. Those skilled in the art will appreciate that Figure 5The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0205] The processor 310 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 320, and calling data stored in the memory 320. In some embodiments, the processor 310 may include one or more processing cores; in some embodiments, the processor 310 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 310.
[0206] The memory 320 can be used to store software programs and modules. The processor 310 executes various functional applications and data processing by running the software programs and modules stored in the memory 320. The memory 320 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 320 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 320 may also include a memory controller to provide the processor 310 with access to the memory 320.
[0207] The electronic device also includes a power supply 330 for supplying power to various components. In some embodiments, the power supply 330 can be logically connected to the processor 310 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 330 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0208] The electronic device may further include an input module 340, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
[0209] The electronic device may further include a communication module 350. In some embodiments, the communication module 350 may include a wireless module. The electronic device may perform short-range wireless transmission through the wireless module of the communication module 350, thereby providing the user with wireless broadband Internet access. For example, the communication module 350 may be used to help the user send and receive emails, browse web pages, and access streaming media.
[0210] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 310 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 320 according to the following instructions, and the processor 310 will run the application programs stored in the memory 320, thereby implementing the steps in the methods of the embodiments of the present invention.
[0211] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0212] From the above, it can be seen that the embodiment of the present invention can obtain the subject to be detected and multiple preset defects; the number of preset defects detected in the subject to be detected based on the detection process is used as the first number; the preset defects and the preset prompt word template are used to generate the prompt words to be used, and the number of preset defects detected in the subject to be detected based on the prompt words to be used is used as the second number; finally, the quality detection result of the subject to be detected is determined by combining the first number and the second number. A fully automatic quality detection method is provided, which combines the detection process and the prompt words to determine the number of preset defects, takes into account the accuracy and efficiency of the detection, and can quickly and accurately determine the quality of the subject.
[0213] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0214] To this end, an embodiment of the present invention provides a computer-readable storage medium, in which a plurality of instructions are stored. The instructions can be loaded by a processor to execute the steps in any one of the question quality detection methods provided in the embodiment of the present invention.
[0215] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0216] According to one aspect of the present invention, a computer program product or computer program is provided, the computer program product or computer program comprising a computer program / instruction, the computer program / instruction being stored in a computer-readable storage medium. A processor of an electronic device reads the computer program / instruction from the computer-readable storage medium, and the processor executes the computer program / instruction, so that the electronic device executes the method provided in various optional implementations of the question quality detection provided in the above embodiments.
[0217] Since the instructions stored in the storage medium can execute the steps in any one of the question quality detection methods provided in the embodiments of the present invention, the beneficial effects that can be achieved by any one of the question quality detection methods provided in the embodiments of the present invention can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0218] The above is a detailed introduction to a method and device for detecting question quality provided by an embodiment of the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there may be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for detecting the quality of a question, characterized in that: The method comprises: Obtain the questions to be tested and multiple preset defects; According to the detection process corresponding to each of the preset defects, the number of preset defects contained in the to-be-detected problem is detected to obtain a first number, including: For each of the preset defects, obtain a detection range and defect information corresponding to the preset defect; extract an object to be detected from the subject to be detected according to the detection range; detect the defect information in the object to be detected based on the detection process corresponding to the preset defect; if the defect information is detected in the object to be detected, take the preset defect corresponding to the defect information as a designated defect; obtain the number of the designated defects to obtain a first number; Based on each of the preset defects and the preset prompt word template, generating a prompt word to be used corresponding to each of the preset defects; Determine the number of preset defects contained in the to-be-tested question by using a preset language model and the prompt words to be used corresponding to each preset defect, and obtain a second number; Determining a quality test result corresponding to the to-be-tested topic according to the first quantity and the second quantity includes: The first quantity is weighted based on a first preset weight to obtain a first weighted quantity; the second quantity is weighted based on a second preset weight to obtain a second weighted quantity; the first weighted quantity and the second weighted quantity are summed to obtain a target quantity; if the target quantity is less than the preset quantity, it is determined that the question to be tested has passed the quality test; if the target quantity is not less than the preset quantity, it is determined that the question to be tested has not passed the quality test.
2. The method according to claim 1, characterized in that The object to be detected includes multiple options in the question to be detected and at least one of the stems, and the detection process corresponding to the preset defect, detecting the defect information in the object to be detected, includes: Obtaining a preset word corresponding to the preset defect; Searching for the preset word in the object to be detected; If the preset word is found in the object to be detected, it is determined to detect the defect information in the object to be detected.
3. The method according to claim 1, characterized in that The object to be detected includes a plurality of options in the question to be detected, and the detection process corresponding to the preset defect is based on detecting the defect information in the object to be detected, including: Obtain the length corresponding to each of the options to obtain multiple option lengths; Based on a specified length range, detecting a target length among the multiple option lengths, the target length being an option length within the specified length range; If the target length is detected among the multiple option lengths, it is determined that defect information is detected in the object to be detected.
4. The method according to claim 1, characterized in that: The object to be detected includes a plurality of options in the question to be detected, and the detection process corresponding to the preset defect is based on detecting the defect information in the object to be detected, including: Performing feature extraction processing on each of the options to obtain option features corresponding to each of the options; Based on each of the option features, the feature distance between any two options is calculated to obtain multiple option similarities; If, among the plurality of option similarities, there is an option similarity that is within a first specified similarity range, it is determined to detect the defect information in the object to be detected.
5. The method according to claim 1, characterized in that The object to be detected includes a plurality of options and a stem in the question to be detected, and the detection process corresponding to the preset defect, detecting the defect information in the object to be detected, includes: Obtaining option features corresponding to each of the options and question stem features corresponding to the question stem; Based on the option features and the question stem features, the feature distance between each option and the question stem is calculated to obtain multiple question stem similarities; If, among the plurality of question stem similarities, there is an option similarity that is within a second specified similarity range, it is determined to detect the defect information in the object to be detected.
6. The method according to claim 1, characterized in that The object to be detected includes a plurality of options and a stem in the question to be detected, and the detection process corresponding to the preset defect, detecting the defect information in the object to be detected, includes: Performing a fluency test on the question stem to obtain the fluency of the question stem; Performing a fluency test on each of the options to obtain the option fluency of each of the options; The fluency of the question stem and the fluency of each of the options are used as the fluency to be used; If any one of the fluency to be used is within the fluency range, it is determined that the defect information is detected in the object to be detected.
7. The method according to claim 1, characterized in that The object to be detected includes a plurality of options and a stem in the question to be detected, and the detection process corresponding to the preset defect, detecting the defect information in the object to be detected, includes: According to the multiple options and the question stem, identifying the question type corresponding to the question to be tested; If the topic type does not match the preset type, it is determined that the defect information is detected in the object to be detected.
8. A question quality detection device, used to implement the method according to any one of claims 1 to 7, characterized in that: The device comprises: An acquisition module, used to acquire the question to be tested and a plurality of preset defects; The first determination module is used to detect the number of preset defects contained in the to-be-detected question according to the detection process corresponding to each preset defect, and obtain a first number, including: For each of the preset defects, obtain a detection range and defect information corresponding to the preset defect; extract an object to be detected from the subject to be detected according to the detection range; detect the defect information in the object to be detected based on the detection process corresponding to the preset defect; if the defect information is detected in the object to be detected, take the preset defect corresponding to the defect information as a designated defect; obtain the number of the designated defects to obtain a first number; A prompt word module, used to generate a prompt word to be used corresponding to each preset defect based on each preset defect and a preset prompt word template; A second determination module is used to determine the number of preset defects contained in the to-be-tested question by using a preset language model and a prompt word to be used corresponding to each preset defect, so as to obtain a second number; A result determination module, used to determine the quality test result corresponding to the to-be-tested question according to the first number and the second number, includes: The first quantity is weighted based on a first preset weight to obtain a first weighted quantity; the second quantity is weighted based on a second preset weight to obtain a second weighted quantity; the first weighted quantity and the second weighted quantity are summed to obtain a target quantity; if the target quantity is less than the preset quantity, it is determined that the question to be tested has passed the quality test; if the target quantity is not less than the preset quantity, it is determined that the question to be tested has not passed the quality test.
