Examination question data acquisition method and device, medium and product

By obtaining the identifiers in the test questions and using regular expressions to extract data, the problem of time-consuming and error-prone input of the test questions is solved, and the automatic import and storage of the test questions is realized, which improves the accuracy and reliability of the test paper.

CN119166703APending Publication Date: 2024-12-20GUANGZHOU BAOLUN ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411189712.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

In the prior art, manual input of test questions is time-consuming and prone to errors, which increases work burden and affects the accuracy and reliability of the test paper.

Method used

By obtaining the identifiers in the test questions, using regular expressions to identify and extract the test questions data, building a preset format data storage object, and realizing the automatic import and storage of the test questions.

Benefits of technology

It effectively reduces the time for importing test questions, improves the accuracy and reliability of test papers, and reduces the possibility of import errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119166703A_ABST
    Figure CN119166703A_ABST
Patent Text Reader

Abstract

The invention provides an examination question data acquisition method and device, a medium and a product, and relates to the technical field of data import. The examination question data acquisition method comprises the following steps: acquiring examination questions, and acquiring examination question data in the examination questions according to identifiers in the examination questions; and storing the examination question data in a preset format. According to the embodiment of the invention, the test questions can be automatically imported and stored, the time consumption for importing the test questions is effectively reduced, errors are not easy to occur during importing, and the accuracy and reliability of test papers are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data import, and specifically, to a method, device, medium and product for obtaining test question data. Background Art

[0002] With the acceleration of the global education informatization process, the traditional education model is facing major changes. In this process, digital examination systems have gradually replaced traditional paper examinations and become the mainstream choice of modern education. Digital examinations not only improve examination efficiency, but also provide students and teachers with a more convenient means of evaluation.

[0003] In the prior art, in order to realize digital examination, it is necessary to import the test questions into the digital examination system. In the prior art, the test questions are imported by manually inputting the test questions. This method is time-consuming and prone to errors, which not only increases the workload of the importer, but also easily affects the accuracy and reliability of the test paper. Summary of the invention

[0004] The embodiments of the present application provide a method, device, medium and product for obtaining test question data, which can solve the problem that the existing manual import of test questions is time-consuming, error-prone, increases the workload and affects the accuracy and reliability of the test paper. To achieve this purpose, the embodiments of the present application provide the following solutions.

[0005] According to one aspect of an embodiment of the present application, a method for obtaining test question data is provided, comprising:

[0006] Acquire a test question, and acquire the test question data in the test question according to an identifier in the test question;

[0007] The test question data is stored in a preset format.

[0008] In a possible implementation, obtaining the test questions includes:

[0009] In response to the import request, a file corresponding to the import request is obtained, and the test questions in the file are read.

[0010] In a possible implementation, the test questions further include at least one of fill-in-the-blank questions and picture questions, and different test question types correspond to different identifiers;

[0011] The step of obtaining the test question data in the test question according to the identifier in the test question comprises:

[0012] The text content in the test question is traversed in a loop, an identifier in the text content and start and end information corresponding to the identifier are identified, and test question data is extracted according to the start and end information.

[0013] In a possible implementation, the obtaining the test question data in the test question according to the identifier in the test question includes:

[0014] A pre-stored regular expression is obtained, and the identifier is identified and the test question data is extracted using the regular expression, wherein the test question data includes at least one of a question stem, options, answers, and scoring information.

[0015] In a possible implementation, the test question is a table test question, and obtaining the test question data in the test question according to the identifier in the test question includes:

[0016] The subtable corresponding to the table test question is obtained, and the test question data is obtained from the subtable using the regular expression.

[0017] In a possible implementation, storing the test question data in a preset format includes:

[0018] A data storage object in a preset format is constructed according to the test data, and the test data is stored using the data storage object.

[0019] In a possible implementation, storing the test question data in a preset format includes:

[0020] Back up the test data in the preset format:

[0021] In response to the export request, the test question data is reversely exported into a file in a predetermined format.

[0022] According to one aspect of an embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method described above.

[0023] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described above are implemented.

[0024] According to one aspect of an embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps of the method described above are implemented.

[0025] The beneficial effects of the technical solution provided by the embodiment of the present application are:

[0026] The test question data acquisition method provided in the present application acquires test questions, and acquires the test question data in the test questions according to the identifiers in the test questions; the test question data is stored in a preset format. The embodiment of the present application can realize automatic import and storage of test questions, effectively reduce the time consumption of importing test questions and is less prone to errors during importing, thereby improving the accuracy and reliability of the test paper. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following is a brief introduction to the drawings required for use in describing the embodiments of the present application.

[0028] Figure 1 A flowchart of a method for obtaining test question data provided in an embodiment of the present application;

[0029] Figure 2 A flowchart of the method for obtaining test data provided in the embodiment of the present application;

[0030] Figure 3 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0031] The embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the implementation methods described below in conjunction with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.

[0032] It will be understood by those skilled in the art that, unless specifically stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present application refer to that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements and / or components, but do not exclude the implementation of other features, information, data, steps, operations, elements, components and / or combinations thereof supported by the present technical field. It should be understood that when we say that an element is "connected" or "coupled" to another element, the one element may be directly connected or coupled to the other element, or it may refer to that the one element and the other element establish a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein indicates at least one of the items defined by the term, for example, "A and / or B" indicates that it is implemented as "A", or is implemented as "A", or is implemented as "A and B".

[0033] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0034] The following describes several exemplary embodiments to illustrate the technical solutions of the embodiments of the present application and the technical effects produced by the technical solutions of the present application. It should be noted that the following embodiments can refer to, draw on or combine with each other, and the same terms, similar features and similar implementation steps in different embodiments will not be described repeatedly.

[0035] The test question data acquisition method, device, medium and product provided in this application are intended to solve at least one technical problem existing in the prior art.

[0036] A method for obtaining test question data is provided in an embodiment of the present application. The method can be used in computers, servers, clouds, and other objects that can obtain test questions and obtain and store test question data from the test questions.

[0037] Alternatively, if Figure 1 , Figure 2 As shown, the method for obtaining test question data includes:

[0038] S101: Acquire a test question, and acquire the test question data in the test question according to the identifier in the test question.

[0039] Optionally, editable files in formats such as Excel, Word, Notepad, PDF, etc. can be used for test question preparation, and the test questions in the file can include fill-in-the-blank questions, table questions, picture questions, essay questions, and other types of test questions. When preparing test questions, each test question can be identified by a corresponding identifier according to the test question type, so as to facilitate identification of test questions in the test questions.

[0040] In one embodiment, an example of an identifier corresponding to a fill-in-the-blank question may be: {Fill-in-the-blank question 1: Question stem: "Keep the power supply voltage unchanged, and the reading of the ammeter becomes"; "*Fill in the blank"; Unit: "V"}, and a complete fill-in-the-blank question is obtained by inputting information into the question stem and unit corresponding to the identifier. An example of a table question identifier may be: {Table question 1: Example table 1}, where Example table 1 refers to the name of a subtable, which records the specific information of the table question. The table question can be obtained by filling in the subtable and modifying the text information in the identifier according to the content and position of the subtable. An example of a picture question identifier may be: {Picture: Picture 1.jpg}. This identifier is used to indicate the name of the picture to be imported. To facilitate quick import and processing of pictures, the picture must be located in the same directory or compressed package as the test question.

[0041] Optionally, the imported test questions may be stored in Excel files and other files that are inconsistent with the data storage format of the imported object. Therefore, obtaining the test questions includes: responding to the import request, obtaining the file corresponding to the import request, and reading the test questions in the file.

[0042] In one embodiment, the file may be an Excel file, which includes multiple worksheets, each of which represents a module in the test questions, and the test questions in the file can be read through a data processing library.

[0043] Optionally, the name of the file can be obtained according to the import request, and the file corresponding to the import request can be obtained from the local storage or a connected external storage device based on the name. The storage address of the file to be imported can also be obtained according to the import request, and the file can be obtained based on the storage address.

[0044] Optionally, the import request can be obtained through key input, mouse click, voice input, and other input methods acceptable to the object executing the test question data acquisition method.

[0045] Optionally, after obtaining the test question, a preview image of the test question or part of the test question content may be displayed to confirm whether the imported test question is a correct object. If the imported test question is determined to be correct based on the feedback information corresponding to the displayed result, the step of obtaining the test question data is executed. If the imported test question is determined to be incorrect based on the feedback information, a new import request is obtained.

[0046] Optionally, different test question types correspond to different identifiers, and the test question data in the test question is obtained according to the identifier in the test question, including: looping through the text content in the test question, identifying the identifier in the text content and the start and end information corresponding to the identifier, and extracting the test question data according to the start and end information.

[0047] In one embodiment, all or part of the test question data is included in an identifier, and the entire content of the test question data is obtained based on the start and end information of the identifier, or the location or content of the remaining test question data is obtained based on the test question data included in the test question, thereby obtaining the test question data.

[0048] Optionally, the text content traversed in the loop may be a string text content in a file, and the string text content includes an identifier and test question data.

[0049] Optionally, the test data can also be obtained through regular expressions. The test data in the test questions is obtained according to the identifiers in the test questions, including: obtaining a pre-stored regular expression, using the regular expression to identify the identifier and extract the test data, the test data including at least one of the question stem, options, answers, and scoring information.

[0050] Optionally, each test question in the test may also include a question type description and location information of the test question data. The question type description and location information may be parsed by semantic recognition, and the question type and location of the test question data of each test question may be determined based on the parsing results, thereby extracting the test question data.

[0051] Optionally, a regular expression for identifying the identifier and an expression for extracting the test question data may be pre-stored, wherein different test question types may correspond to different regular expressions. After obtaining the test questions, the test question type of each test question in the test questions is first identified using the regular expression for identifying the identifier. Then, the regular expression corresponding to the test question type is obtained, and the test question data is extracted using the regular expression corresponding to the test question type.

[0052] In one embodiment, regular expressions corresponding to different identifiers may be pre-stored. After obtaining the identifier corresponding to the test question, obtain the regular expression corresponding to the identifier, use the regular expression to parse the text content corresponding to the test question (the text content may be determined based on the start and end information of the identifier or information related to the test question in the identifier), obtain an array object of a specific structure based on the parsed structure of the regular expression, and use the array object as the test question data.

[0053] Specifically, for test questions of different types, the identification method may include: when identifying fill-in-the-blank questions, identify the fill-in-the-blank questions according to the identifier corresponding to the fill-in-the-blank questions, and extract the test question data in the fill-in-the-blank questions. When identifying table questions, identify the table questions according to the identifier corresponding to the table questions, and extract the content and table structure in the table questions through the regular expression corresponding to the table questions. When identifying picture questions, the question can be determined to be a picture question through the identifier corresponding to the picture question, and the URL corresponding to the picture in the picture question can be extracted through the regular expression. When identifying ordinary text, the test question text can be directly identified through existing text recognition technology.

[0054] Optionally, the question type and question data can be identified by format recognition. Fill-in-the-blank questions and picture questions can be written into the file using different formats. Fill-in-the-blank questions and picture questions are identified according to their formats, and question data is extracted based on the formats.

[0055] S102: storing the test question data in a preset format.

[0056] Optionally, the preset format may include JSON format, XML format, CSV format, SQL format, and other formats that can be used for data storage. Storing the test data in the preset format includes: constructing a data storage object in a preset format (such as a file or object in a preset format) according to the test data, and storing the test data using the data storage object.

[0057] In one embodiment, the preset format may be a JSON format, and storing the test data in the preset format includes: constructing a JSON object according to the test data, the JSON object including at least one of a module name, a module ID, a module type, a sort, and a content; and storing the test data based on the JSON object. The data in the JSON object may be filled in according to the content of the test data, and the integrity and security of the test data are ensured by storing the test data in a JSON format.

[0058] Optionally, after storing the test data, in order to improve the operability and security of the test data, the test data is stored in a preset format, including: backing up the test data in a preset format: in response to an export request, reverse exporting the test data to a file in a predetermined format, which predetermined format may be the same as the format of the imported file.

[0059] Optionally, after obtaining the test data, automatic scoring and calculation can be performed based on the test data, wherein the test data of each test question includes the answer and scoring information of the test question, and the scoring and calculation are performed based on the answer and scoring information.

[0060] Optionally, after obtaining the test data, the number of test questions in the test is calculated to obtain the number of test questions that the test object needs to fill in, and a scoring requirement table is generated according to the number of test questions and the scoring information corresponding to each test question. The scoring requirement table includes the scoring criteria and the corresponding score for each question, and the scoring criteria are associated with each test question.

[0061] Optionally, the test question data may not include answer information. After associating the test question content with the scoring criteria, the associated information is displayed, and the answer and score of each test question are determined based on the acquired filled-in information. The score corresponding to each test question can be filled in the scoring requirement table.

[0062] Optionally, after obtaining the score of each test question, the total score of the test question is calculated according to the score, and the total score of the test question is determined as the total score of the test paper.

[0063] Optionally, after the test question is imported, a preview effect of the test question can be automatically displayed, or a preview image of the test question can be displayed according to a received preview request.

[0064] Optionally, a test paper can be generated based on the acquired test data, wherein the test paper can be obtained by modifying or filling a preset test paper template based on the test data. The test paper template may include the size and position information of each module, and may also include information on the type of test questions filled in each module, and the test data is filled into the test paper template based on the information in the test paper template. The number of each module in the test paper template may be one or more.

[0065] In one embodiment, the test paper includes multiple modules such as required reading before the test, experimental content, experimental report, other content, etc. Among them, the number of the two modules of experimental content and experimental report is two.

[0066] Optionally, the data in the test paper can be displayed in a modular form, such as determining the test questions of the same test question type as the same module. In addition, the display order of each module can be adjusted according to the received instructions to achieve personalized settings of the test paper.

[0067] The following is a further description of the method for obtaining test questions through a specific workflow.

[0068] like Figure 2 As shown, obtain the designed file storing entities, use the data processing library to read the test questions, and use regular expressions to parse the test question data. Among them, fill-in-the-blank questions can be identified by format recognition, table questions can be identified by identifiers, and picture questions can be identified by format recognition. After obtaining the test question data, the test question data can be converted into JSON format, wherein fill-in-the-blank questions, table questions, and picture questions can all be converted into JSON objects. Data security is improved by backing up the test question data, and JSON data can be exported in reverse to Excel format. When automatically scoring and calculating the total score, the scoring criteria can be extracted through the scoring requirements or the scoring criteria can be generated according to user instructions and the scoring rules for each question can be defined. The total score is determined based on the score of each question. After the test paper is generated, the test paper preview operation is performed, and the order of the modules in the test paper can be adjusted according to user needs.

[0069] This application realizes the automatic import and reverse export of test questions. It can use files to create test questions, and finally convert them into a format that can be recognized by the test equipment by identifying and extracting the test question content. This application can support the import of table questions and specify the cells that need to be filled in the table. It also supports the backup and reverse export of test questions. In addition, this application supports the automatic generation of scoring standards and calculation of total scores, which improves the efficiency and accuracy of test question import, and provides the functions of test paper preview and customized display order, which has broad application prospects.

[0070] In an optional embodiment, an electronic device is provided, such as Figure 3 As shown, Figure 3The electronic device 4000 shown includes: a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, such as through a bus 4002. Optionally, the electronic device 4000 may also include a transceiver 4004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present application.

[0071] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0072] The bus 4002 may include a path to transmit information between the above components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0073] Memory 4003 can be ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or it can be EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disc, optical disk, digital versatile disc, Blu-ray disc, etc.), magnetic disk storage medium, other magnetic storage devices or any other medium that can be used to carry or store computer programs and can be read by a computer, without limitation here.

[0074] The memory 4003 is used to store the computer program for executing the embodiment of the present application, and the execution is controlled by the processor 4001. The processor 4001 is used to execute the computer program stored in the memory 4003 to implement the steps shown in the above method embodiment.

[0075] Among them, the electronic device can be any electronic product that can interact with an object, such as a personal computer, a tablet computer, a smart phone, a personal digital assistant (PDA), a game console, an interactive network television (IPTV), a smart wearable device, etc.

[0076] The electronic device may also include a network device and / or an object device, wherein the network device includes, but is not limited to, a single network server, a server group consisting of multiple network servers, or a cloud consisting of a large number of hosts or network servers for cloud computing.

[0077] The network where the electronic device is located includes but is not limited to the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (Virtual Private Network, VPN), etc.

[0078] An embodiment of the present application provides a computer-readable storage medium, which includes a computer program. When the computer program is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented.

[0079] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented.

[0080] The terms "first", "second", "third", "fourth", "1", "2", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that shown or described in the drawings.

[0081] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the implementation order of these steps is not limited to the order indicated by the arrows. Unless clearly stated herein, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders according to demand. In addition, some or all of the steps in each flowchart are used for actual implementation scenarios, and may include multiple sub-steps or multiple stages. Some or all of these sub-steps or stages can be executed at the same time, and each sub-step or stage in these sub-steps or stages can also be executed at different times respectively. In different scenarios at the execution time, the execution order of these sub-steps or stages can be flexibly configured according to demand, and the embodiment of the present application does not limit this.

[0082] The above is only an optional implementation method for some implementation scenarios of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the solution of the present application, other similar implementation means used for the technical ideas of the present application also fall within the protection scope of the embodiments of the present application.

Claims

1. A method for obtaining test question data, characterized in that: include: Acquire a test question, and acquire test question data in the test question according to an identifier in the test question, wherein the test question includes a table test question; The test question data is stored in a preset format.

2. The method for obtaining test question data according to claim 1, characterized in that: The obtaining of test questions comprises: In response to the import request, a file corresponding to the import request is obtained, and the test questions in the file are read.

3. The method for obtaining test question data according to claim 1, characterized in that: The test questions also include at least one of fill-in-the-blank questions and picture questions, and different test question types correspond to different identifiers; The step of obtaining the test question data in the test question according to the identifier in the test question comprises: The text content in the test question is traversed in a loop, an identifier in the text content and start and end information corresponding to the identifier are identified, and test question data is extracted according to the start and end information.

4. The method for obtaining test question data according to claim 1, characterized in that: The step of obtaining the test question data in the test question according to the identifier in the test question comprises: A pre-stored regular expression is obtained, and the identifier is identified and the test question data is extracted using the regular expression, wherein the test question data includes at least one of a question stem, options, answers, and scoring information.

5. The method for obtaining test question data according to claim 4, characterized in that: The test question is a table test question, and obtaining the test question data in the test question according to the identifier in the test question includes: The subtable corresponding to the table test question is obtained, and the test question data is obtained from the subtable using the regular expression.

6. The method for obtaining test question data according to claim 1, characterized in that: The storing of the test question data in a preset format includes: A data storage object in a preset format is constructed according to the test data, and the test data is stored using the data storage object.

7. The method for obtaining test question data according to claim 2, characterized in that: The storing of the test question data in a preset format includes: Back up the test data in the preset format: In response to the export request, the test question data is reversely exported into a file in a predetermined format.

8. An electronic device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 7.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.