CN-116089433-B - Test question structuring method and device, electronic equipment and storage medium
Abstract
The application discloses a test question structuring method, a test question structuring device, electronic equipment and a storage medium, relates to the technical field of computers, and particularly relates to the artificial intelligence fields of natural language processing, computer vision and the like. The method comprises the steps of obtaining a similar test question group, wherein the similar test question group comprises a plurality of similar first test questions, extracting first structural contents of each first test question in the plurality of first test questions, determining second structural contents corresponding to the similar test question group according to the first structural contents of the plurality of first test questions, and updating the first structural contents of each first test question according to the second structural contents to obtain target structural contents of each first test question. Therefore, based on the structured contents of the plurality of test questions in the similar test question group, the structured contents corresponding to the similar test question group are determined, and the structured contents of each test question in the similar test question group are updated by utilizing the structured contents corresponding to the similar test question group, so that the structured contents of the similar test questions are expanded, and the test question quality is improved.
Inventors
- ZHANG WEIBIN
Assignees
- 百度时代网络技术(北京)有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20230209
Claims (17)
- 1. A method of question structuring comprising: Obtaining a similar test question group, wherein the similar test question group comprises a plurality of similar first test questions; Extracting first structural content of each first test question in the plurality of first test questions; determining a union set of attribute items in the first structural contents of the plurality of first test questions as the attribute item corresponding to the similar test question group; Determining a second attribute value corresponding to the same attribute item according to first attribute values corresponding to the same attribute item in first structured contents of the plurality of first test questions; determining second structural contents corresponding to the similar test question groups according to the attribute items corresponding to the similar test question groups and the second attribute values corresponding to each attribute item; And updating the first structured content of each first test question according to the second structured content to obtain the target structured content of each first test question.
- 2. The method of claim 1, wherein the determining, according to the first attribute value corresponding to the same attribute item in the first structured content of the plurality of first test questions, the second attribute value corresponding to the same attribute item comprises: and processing the first attribute values corresponding to the same attribute item in the first structured contents of the plurality of first test questions according to the processing rule corresponding to the same attribute item so as to determine the second attribute values corresponding to the same attribute item.
- 3. The method of claim 1, wherein updating the first structured content of each of the first questions according to the second structured content to obtain the target structured content of each of the first questions comprises: Under the condition that the first structured content of any first test question and the second structured content have the same attribute item, updating a first attribute value corresponding to the same attribute in the first structured content of any first test question to a second attribute value corresponding to the same attribute in the second structured content; And under the condition that any attribute item in the second structured content is absent in the first structured content of any first test question, supplementing any attribute item and a second attribute value corresponding to the any attribute item in the first structured content of any first test question.
- 4. The method of any of claims 1-3, wherein the obtaining a set of similar questions comprises: acquiring a test question identifier set corresponding to the similar test question group from a test question queue; and acquiring the plurality of first test questions according to the plurality of test question identifications in the test question identification set.
- 5. The method of claim 4, further comprising: Acquiring a test question mark file, and dividing the test question mark file into a plurality of subfiles; reading test question identification from each sub-file based on concurrent threads; Acquiring a target test question identifier of a test question similar to the test question corresponding to the test question identifier; Pushing the test question marks and the target test question marks belonging to the same similar test question group to the test question queue.
- 6. The method of claim 5, wherein prior to the obtaining the test question identification file, further comprising: Searching similar test questions by using the question stems of each second test question in the test question resource library respectively to acquire a search result of each second test question; according to the search result of each second test question, determining similar test questions of each second test question; Under the condition that the similar test question of any second test question is non-empty, the test question mark of any second test question and the test question mark of the similar test question corresponding to any second test question are stored in a database in an associated mode; And generating the test question mark file based on the test question mark in the database.
- 7. The method of claim 6, wherein the search results include test question identifiers of candidate test questions and matching degrees corresponding to the candidate test questions, and the determining similar test questions of each second test question according to the search results of each second test question includes: Under the condition that the test question mark of a first candidate test question is inconsistent with the test question mark of the second test question and the matching degree corresponding to the first candidate test question is greater than a preset threshold value, determining that the first candidate test question is a similar test question of the second test question; and determining that the second candidate test question is a similar test question of the second test question under the condition that the test question identification of the first candidate test question is consistent with the test question identification of the second test question and the matching degree corresponding to the second candidate test question is greater than the preset threshold value.
- 8. A test question structuring device, comprising: The device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a similar test question group, and the similar test question group comprises a plurality of similar first test questions; the extraction module is used for extracting first structural contents of each first test question in the plurality of first test questions; The device comprises a first determining module, a second determining module, a first judging module and a second judging module, wherein the first determining module is used for determining the union of attribute items in first structured contents of a plurality of first test questions as attribute items corresponding to the similar test question group; and the updating module is used for updating the first structural content of each first test question according to the second structural content so as to obtain the target structural content of each first test question.
- 9. The apparatus of claim 8, wherein the first determination module is configured to: and processing the first attribute values corresponding to the same attribute item in the first structured contents of the plurality of first test questions according to the processing rule corresponding to the same attribute item so as to determine the second attribute values corresponding to the same attribute item.
- 10. The apparatus of claim 8, wherein the first determination module is configured to: Under the condition that the first structured content of any first test question and the second structured content have the same attribute item, updating a first attribute value corresponding to the same attribute in the first structured content of any first test question to a second attribute value corresponding to the same attribute in the second structured content; And under the condition that any attribute item in the second structured content is absent in the first structured content of any first test question, supplementing any attribute item and a second attribute value corresponding to the any attribute item in the first structured content of any first test question.
- 11. The apparatus of any of claims 8-10, wherein the first acquisition module is to: acquiring a test question identifier set corresponding to the similar test question group from a test question queue; and acquiring the plurality of first test questions according to the plurality of test question identifications in the test question identification set.
- 12. The apparatus of claim 11, further comprising: The segmentation module is used for acquiring the test question mark file and segmenting the test question mark file into a plurality of subfiles; the reading module is used for reading the test question mark from each sub-file based on the concurrent thread; The second acquisition module is used for acquiring target test question identifiers of test questions similar to the test questions corresponding to the test question identifiers; And the pushing module is used for pushing the test question marks belonging to the same similar test question group and the target test question mark to the test question queue.
- 13. The apparatus of claim 12, further comprising: The third acquisition module is used for searching similar test questions by using the question stems of each second test question in the test question resource library respectively so as to acquire a search result of each second test question; the second determining module is used for determining similar test questions of each second test question according to the search result of each second test question; the storage module is used for storing the test question mark of any second test question and the test question mark of the similar test question corresponding to any second test question in a database in a correlated manner under the condition that the similar test question of any second test question is non-empty; and the generation module is used for generating the test question identification file based on the test question identification in the database.
- 14. The apparatus of claim 13, wherein the search result includes a test question identifier of a candidate test question and a matching degree corresponding to the candidate test question, and the second determining module is configured to: Under the condition that the test question mark of a first candidate test question is inconsistent with the test question mark of the second test question and the matching degree corresponding to the first candidate test question is greater than a preset threshold value, determining that the first candidate test question is a similar test question of the second test question; and determining that the second candidate test question is a similar test question of the second test question under the condition that the test question identification of the first candidate test question is consistent with the test question identification of the second test question and the matching degree corresponding to the second candidate test question is greater than the preset threshold value.
- 15. An electronic device, comprising: at least one processor, and A memory communicatively coupled to the at least one processor, wherein, The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
- 16. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-7.
- 17. A computer program product comprising a computer program which, when executed by a processor, implements the steps of the method of any of claims 1-7.
Description
Test question structuring method and device, electronic equipment and storage medium Technical Field The application relates to the technical field of computers, in particular to the artificial intelligence field such as natural language processing, computer vision and the like, and particularly relates to a test question structuring method, a test question structuring device, electronic equipment and a storage medium. Background With the development of science and technology, internet information, artificial intelligence and big data are popularized, and online education demands are increasing, and online education leaves no high-quality test question resources. In practical application, some structural contents of the test questions, such as disciplines, school paragraphs, knowledge points, chapters and the like, are incomplete, so that the quality of the test questions can be affected. Disclosure of Invention The application provides a test question structuring method, a test question structuring device, electronic equipment and a storage medium. The specific scheme is as follows: According to an aspect of the present application, there is provided a test question structuring method, including: obtaining a similar test question group, wherein the similar test question group comprises a plurality of similar first test questions; Extracting first structural content of each first test question in the plurality of first test questions; determining second structural contents corresponding to the similar test question groups according to the first structural contents of the plurality of first test questions; and updating the first structured content of each first test question according to the second structured content to obtain the target structured content of each first test question. According to another aspect of the present application, there is provided a test question structuring apparatus, including: the first acquisition module is used for acquiring a similar test question group, wherein the similar test question group comprises a plurality of similar first test questions; The extraction module is used for extracting first structural contents of each first test question in the plurality of first test questions; The first determining module is used for determining second structural contents corresponding to the similar test question groups according to the first structural contents of the plurality of first test questions; And the updating module is used for updating the first structural content of each first test question according to the second structural content so as to obtain the target structural content of each first test question. According to another aspect of the present application, there is provided an electronic apparatus including: at least one processor, and A memory communicatively coupled to the at least one processor, wherein, The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the above embodiments. According to another aspect of the present application, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the method according to the above-described embodiments. According to another aspect of the application, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the steps of the method described in the above embodiments. It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the application or to delineate the scope of the application. Other features of the present application will become apparent from the description that follows. Drawings The drawings are included to provide a better understanding of the present application and are not to be construed as limiting the application. Wherein: FIG. 1 is a schematic flow chart of a test question structuring method according to an embodiment of the present application; FIG. 2 is a schematic flow chart of a test question structuring method according to another embodiment of the present application; FIG. 3 is a schematic flow chart of a test question structuring method according to another embodiment of the present application; FIG. 4 is a schematic flow chart of a test question structuring method according to another embodiment of the present application; FIG. 5 is a schematic flow chart of a test question structuring method according to another embodiment of the present application; FIG. 6 is a schematic diagram of a test question structuring process according to an embodiment of the present application; FIG. 7 is a schematic structural diagram of a test question structuring device according to an embodiment of the present application; Fig. 8 is a block diagram of an electronic device for implementing the test question structuring