Disclosure of Invention
The invention provides a test question indexing method and device, which are used for solving the problems of poor timeliness and accuracy of test question indexing attributes in the prior art.
The first aspect of the present invention provides a test question indexing method, including:
acquiring a test paper to be used by a user and chapter attributes of the test paper, wherein the test paper to be used consists of at least one test question in a test question database;
inquiring a preset knowledge map according to the chapter attributes of the test paper to acquire the knowledge point attributes of the test paper; the corresponding relation between the chapters and the knowledge points is prestored in the knowledge map;
determining the knowledge point attribute of the test paper as the knowledge point attribute of at least one test question in the test paper, and determining the chapter attribute of the test paper as the chapter attribute of at least one test question in the test paper;
storing the test questions and the test question attributes of the test questions into the test question database to realize indexing operation of the test questions; the test question attributes of the test questions comprise: the chapter attribute of the test question and the knowledge point attribute of the test question.
Further, before obtaining the test paper to be used by the user and the section attribute of the test paper, the method further includes:
acquiring test questions uploaded by a user;
and storing the test questions uploaded by the user into the test question database.
Further, before obtaining the test paper to be used by the user and the section attribute of the test paper, the method further includes:
and creating a knowledge graph according to an education outline and an examinee, wherein the education outline comprises all chapters, and the examinee comprises knowledge points corresponding to all chapters.
Further, the method further comprises the following steps: acquiring test question identification corresponding to the test question in a test paper to be used by a user;
after storing the test questions and the test question attributes of the test questions in the test question database, the method further comprises the following steps:
and storing the test question identification of the test question and the chapter attribute corresponding to the test question as a history record in a history record table.
Further, before storing the test questions and the test question attributes of the test questions in the test question database, the method further includes:
inquiring a historical record table according to the test question identification of the first test question in the test paper, and judging whether a historical record comprising the test question identification is stored in the historical record table;
if the historical record comprising the test question identification is stored in the historical record table, calculating at least one first chapter attribute with the maximum acquisition times according to the historical record comprising the test question identification and the chapter attribute of the first test question;
inquiring the knowledge graph according to the first chapter attributes to obtain the knowledge point attributes corresponding to the first chapter attributes;
judging whether the attribute of the knowledge point corresponding to the first chapter attribute is the same as the attribute of the knowledge point corresponding to the first test question in the test question database;
and if the knowledge point attribute corresponding to the first chapter attribute is different from the knowledge point attribute corresponding to the first test question in the test question database, replacing the knowledge point attribute corresponding to the first test question in the test question database with the knowledge point attribute corresponding to the first chapter attribute.
Furthermore, the knowledge map also prestores knowledge point classifications to which the knowledge points belong;
the test question attributes corresponding to the test questions further comprise: and classifying the knowledge points corresponding to the test questions.
Further, after storing the test questions and the test question attributes of the test questions in the test question database, the method further includes:
receiving a test question query request of a user, wherein the test question query request carries: the attribute of the knowledge point to be inquired;
inquiring the test question database according to the attribute of the knowledge point to be inquired to obtain a test question comprising the attribute of the knowledge point to be inquired;
and pushing the test questions comprising the attribute of the knowledge points to be inquired to the user.
In the invention, by acquiring the test paper to be used by a user and the chapter attribute of the test paper, the test paper to be used consists of at least one test question in a test question database; inquiring a preset knowledge map according to the chapter attributes of the test paper to acquire the knowledge point attributes of the test paper; determining the knowledge point attribute of the test paper as the knowledge point attribute of at least one test question in the test paper, and determining the chapter attribute of the test paper as the chapter attribute of at least one test question in the test paper; storing the test questions and the test question attributes of the test questions into a test question database to realize indexing operation of the test questions; the test question attributes of the test question include: the chapter attributes of the test questions and the knowledge point attributes of the test questions realize automatic indexing of the test question attributes, avoid the participation of professionals, and improve the efficiency and accuracy of the test question indexing process.
A second aspect of the present invention provides a test question indexing apparatus, including:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a test paper to be used by a user and chapter attributes of the test paper, and the test paper to be used consists of at least one test question in a test question database;
the query module is used for querying a preset knowledge map according to the chapter attributes of the test paper to acquire the knowledge point attributes of the test paper; the corresponding relation between the chapters and the knowledge points is prestored in the knowledge map;
the determination module is used for determining the knowledge point attribute of the test paper as the knowledge point attribute of at least one test question in the test paper and determining the chapter attribute of the test paper as the chapter attribute of at least one test question in the test paper;
the storage module is used for storing the test questions and the test question attributes of the test questions into the test question database and realizing the indexing operation of the test questions; the test question attributes of the test questions comprise: the chapter attribute of the test question and the knowledge point attribute of the test question.
Further, the obtaining module is further configured to obtain test question identifiers corresponding to the test questions in the test paper to be used by the user;
after the storage module stores the test questions and the test question attributes of the test questions in the test question database, the storage module is also used for storing the test questions and the test question attributes of the test questions in the test question database,
and storing the test question identification of the test question and the chapter attribute corresponding to the test question as a history record in a history record table.
Further, the device also comprises: the device comprises a judgment module, a calculation module and a replacement module;
before the storage module stores the test questions and the test question attributes of the test questions into the test question database, the judging module is used for inquiring a historical record table according to the test question identification of the first test question in the test paper and judging whether the historical record including the test question identification is stored in the historical record table;
the calculation module is used for calculating at least one first chapter attribute with the maximum acquisition times according to the historical record comprising the test question identification and the chapter attribute of the first test question when the historical record comprising the test question identification is stored in the historical record table;
the query module is further configured to query the knowledge graph according to the first chapter attribute, and acquire a knowledge point attribute corresponding to the first chapter attribute;
the judging module is further configured to judge whether the attribute of the knowledge point corresponding to the first chapter attribute is the same as the attribute of the knowledge point corresponding to the first test question in the test question database;
the replacing module is used for replacing the knowledge point attribute corresponding to the first test question in the test question database with the knowledge point attribute corresponding to the first chapter attribute when the knowledge point attribute corresponding to the first chapter attribute is different from the knowledge point attribute corresponding to the first test question in the test question database.
In the invention, by acquiring the test paper to be used by a user and the chapter attribute of the test paper, the test paper to be used consists of at least one test question in a test question database; inquiring a preset knowledge map according to the chapter attributes of the test paper to acquire the knowledge point attributes of the test paper; determining the knowledge point attribute of the test paper as the knowledge point attribute of at least one test question in the test paper, and determining the chapter attribute of the test paper as the chapter attribute of at least one test question in the test paper; storing the test questions and the test question attributes of the test questions into a test question database to realize indexing operation of the test questions; the test question attributes of the test question include: the chapter attributes of the test questions and the knowledge point attributes of the test questions realize automatic indexing of the test question attributes, avoid the participation of professionals, and improve the efficiency and accuracy of the test question indexing process.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of an embodiment of a test question indexing method provided by the present invention, as shown in fig. 1, including:
101. the method comprises the steps of obtaining a test paper to be used by a user and chapter attributes of the test paper, wherein the test paper to be used is composed of at least one test question in a test question database.
The execution subject of the test question indexing method provided by the invention is a test question indexing device, and the test question indexing device can be a terminal, equipment or a server and the like capable of executing the test question indexing method.
When a teacher or a professional examines a knowledge point of a certain chapter or a plurality of knowledge points of a plurality of chapters, test questions are selected from the test question database and form a test paper. The section attribute of the test paper refers to one or more sections to be assessed. The chapter attributes may specifically include: chapter, section, subject, grade, etc.
Further, before step 101, the method may further include: and creating a knowledge graph according to an education outline and an examinee, wherein the education outline comprises all chapters, and the examinee comprises knowledge points corresponding to all chapters.
The educational synopsis includes all chapters in a certain textbook or a plurality of textbooks. The examinee includes knowledge points to be examined for each chapter in a certain textbook or multiple textbooks.
In addition, the knowledge point classification to which the knowledge point belongs is prestored in the knowledge map. The test question attributes corresponding to the test questions further include: and classifying the knowledge points corresponding to the test questions. So that the user can inquire the corresponding test questions according to the classification of the knowledge points. The knowledge point classification can refer to the knowledge point classification in the education synopsis or the test synopsis.
Further, before step 101, the method may further include: acquiring test questions uploaded by a user; and storing the test questions uploaded by the user into a test question database.
102. Inquiring a preset knowledge map according to the chapter attributes of the test paper to acquire the knowledge point attributes of the test paper; the corresponding relation between the chapters and the knowledge points is prestored in the knowledge map.
The relation between knowledge points, the relation between knowledge points in the knowledge graph, and the correspondence between chapters and knowledge points may be stored in the knowledge graph as shown in fig. 2, where fig. 2 is a schematic diagram of the knowledge graph. Wherein, the elements, the finite set, the empty set, the union set, the subset and the complement set are knowledge points.
103. And determining the knowledge point attribute of the test paper as the knowledge point attribute of at least one test question in the test paper, and determining the chapter attribute of the test paper as the chapter attribute of at least one test question in the test paper.
104. Storing the test questions and the test question attributes of the test questions into a test question database to realize indexing operation of the test questions; the test question attributes of the test question include: chapter attributes of the test questions and knowledge point attributes of the test questions.
After the test questions are indexed, the user can check the chapter attributes and the knowledge point attributes of the test questions when checking the test questions in the test question database.
Further, step 104 may be followed by: receiving a test question query request of a user, wherein the test question query request carries: the attribute of the knowledge point to be inquired; inquiring a test question database according to the attribute of the knowledge point to be inquired to obtain a test question comprising the attribute of the knowledge point to be inquired; and pushing the test questions comprising the attribute of the knowledge points to be inquired to the user.
In addition, the test question indexing device can also call one or more test questions comprising the attribute of the knowledge point according to the test question calling request of the user carrying the attribute of the knowledge point and form a test paper so as to perform examination or test.
In the embodiment, by acquiring the test paper to be used by the user and the chapter attribute of the test paper, the test paper to be used is composed of at least one test question in the test question database; inquiring a preset knowledge map according to the chapter attributes of the test paper to acquire the knowledge point attributes of the test paper; determining the knowledge point attribute of the test paper as the knowledge point attribute of at least one test question in the test paper, and determining the chapter attribute of the test paper as the chapter attribute of at least one test question in the test paper; storing the test questions and the test question attributes of the test questions into a test question database to realize indexing operation of the test questions; the test question attributes of the test question include: the chapter attributes of the test questions and the knowledge point attributes of the test questions realize automatic indexing of the test question attributes, avoid the participation of professionals, and improve the efficiency and accuracy of the test question indexing process.
Fig. 3 is a flowchart of another embodiment of the test question indexing method provided by the present invention, as shown in fig. 3, including:
301. the method comprises the steps of obtaining a test paper to be used by a user and chapter attributes of the test paper, wherein the test paper to be used is composed of at least one test question in a test question database.
302. And acquiring test question identification corresponding to the test questions in the test paper to be used by the user.
The test question indexing device can distribute corresponding test question marks for test questions when the test questions are uploaded for the first time so as to be convenient to identify and distinguish.
303. Inquiring a preset knowledge map according to the chapter attributes of the test paper to acquire the knowledge point attributes of the test paper; the corresponding relation between the chapters and the knowledge points is prestored in the knowledge map.
304. And determining the knowledge point attribute of the test paper as the knowledge point attribute of at least one test question in the test paper, and determining the chapter attribute of the test paper as the chapter attribute of at least one test question in the test paper.
305. And inquiring a historical record table according to the test question identification of the first test question in the test paper, and judging whether the historical record including the test question identification is stored in the historical record table.
All the test questions in the used test paper, the test question marks of the test questions and the section attributes of the test questions are stored in the history table.
If the history record including the test question mark is not stored in the history record table, the test questions and the test question attributes of the test questions are stored in the test question database, and the indexing operation of the test questions is realized.
306. And if the historical record comprising the test question identification is stored in the historical record table, calculating at least one first chapter attribute with the maximum acquisition times according to the historical record comprising the test question identification and the chapter attributes of the first test question.
For example, in the history including the test question identifier, the test questions uploaded by the user, and the chapter attributes corresponding to the test questions, the number of times that the first finite set of sections appears is 6, and the number of times that the second section joins, and complements the set appears is 3, so that the first finite set of sections, the chapter where the section is located, and the like can be determined as the first chapter attributes.
307. And inquiring the knowledge graph according to the first chapter attributes to obtain the knowledge point attributes corresponding to the first chapter attributes.
308. And judging whether the attribute of the knowledge point corresponding to the first chapter attribute is the same as the attribute of the knowledge point corresponding to the first test question in the test question database.
309. And if the knowledge point attribute corresponding to the first chapter attribute is different from the knowledge point attribute corresponding to the first test question in the test question database, replacing the knowledge point attribute corresponding to the first test question in the test question database with the knowledge point attribute corresponding to the first chapter attribute.
And if the knowledge point attribute corresponding to the first chapter attribute is the same as the knowledge point attribute corresponding to the first test question in the test question database, the knowledge point attribute of the test question in the test question database is not modified.
310. And storing the test question identification of the test question and the chapter attribute corresponding to the test question as a history record in a history record table.
In the embodiment, by acquiring the test paper to be used by the user and the chapter attribute of the test paper, the test paper to be used is composed of at least one test question in the test question database; inquiring a preset knowledge map according to the chapter attributes of the test paper to acquire the knowledge point attributes of the test paper; determining the knowledge point attribute of the test paper as the knowledge point attribute of at least one test question in the test paper, and determining the chapter attribute of the test paper as the chapter attribute of at least one test question in the test paper; inquiring a historical record table according to the test question identification of the first test question in the test paper, and judging whether a historical record comprising the test question identification is stored in the historical record table; if the historical record comprising the test question identification is stored in the historical record table, calculating at least one first chapter attribute with the maximum acquisition times according to the historical record comprising the test question identification and the chapter attributes of the first test question; inquiring a knowledge graph according to the first chapter attribute to obtain a knowledge point attribute corresponding to the first chapter attribute; when the knowledge point attribute corresponding to the first chapter attribute is different from the knowledge point attribute corresponding to the first test question in the test question database, the knowledge point attribute corresponding to the first test question in the test question database is replaced by the knowledge point attribute corresponding to the first chapter attribute, so that automatic indexing of the test question attribute is realized, participation of professionals is avoided, and efficiency and accuracy in indexing the test question attribute are improved.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Fig. 4 is a schematic structural diagram of an embodiment of a test question indexing device provided in the present invention, as shown in fig. 4, including:
an obtaining module 41, configured to obtain a test paper to be used by a user and chapter attributes of the test paper, where the test paper to be used is composed of at least one test question in a test question database;
the query module 42 is configured to query a preset knowledge graph according to the chapter attributes of the test paper, and obtain the knowledge point attributes of the test paper; the corresponding relation between the chapters and the knowledge points is prestored in the knowledge map;
the determining module 43 is configured to determine the knowledge point attribute of the test paper as the knowledge point attribute of at least one test question in the test paper, and determine the chapter attribute of the test paper as the chapter attribute of at least one test question in the test paper;
the storage module 44 is configured to store the test questions and the test question attributes of the test questions in a test question database, so as to implement an indexing operation on the test questions; the test question attributes of the test question include: chapter attributes of the test questions and knowledge point attributes of the test questions.
The test question indexing device provided by the invention can be a terminal, equipment, a server or the like capable of executing the test question indexing method. When a teacher or a professional examines a knowledge point of a certain chapter or a plurality of knowledge points of a plurality of chapters, test questions are selected from the test question database and form a test paper. The section attribute of the test paper refers to one or more sections to be assessed. The chapter attributes may specifically include: chapter, section, subject, grade, etc.
Further, the obtaining module 41 is further configured to obtain a test question identifier corresponding to a test question in a test paper to be used by the user;
after the storage module 44 stores the test questions and the test question attributes of the test questions in the test question database, the storage module 44 is further configured to store the test question identifiers of the test questions and the chapter attributes corresponding to the test questions as history records in a history record table.
Further, the device may further include: the creating module is used for creating a knowledge graph according to an education outline and an examinee, the education outline comprises all chapters, and the examinee comprises knowledge points corresponding to all the chapters.
The educational synopsis includes all chapters in a certain textbook or a plurality of textbooks. The examinee includes knowledge points to be examined for each chapter in a certain textbook or multiple textbooks.
In addition, the knowledge point classification to which the knowledge point belongs is prestored in the knowledge map. The test question attributes corresponding to the test questions further include: and classifying the knowledge points corresponding to the test questions. So that the user can inquire the corresponding test questions according to the classification of the knowledge points. The knowledge point classification can refer to the knowledge point classification in the education synopsis or the test synopsis.
Further, before the obtaining module 41 obtains the test paper to be used by the user and the chapter attribute of the test paper, the obtaining module 41 may be further configured to obtain the test questions uploaded by the user; and storing the test questions uploaded by the user into a test question database.
Further, the storage module 44 is further configured to store the test questions, the test question identifiers of the test questions, and the section attributes of the test questions as a history in a history table.
Further, on the basis of the above embodiment, the test question indexing device may further include: the device comprises a receiving module and a pushing module;
the receiving module is used for receiving a test question query request of a user, wherein the test question query request carries: the attribute of the knowledge point to be inquired;
the query module is used for querying the test question database according to the attribute of the knowledge point to be queried and acquiring test questions comprising the attribute of the knowledge point to be queried;
the pushing module is used for pushing the test questions including the attribute of the knowledge points to be inquired to the user.
In the embodiment, by acquiring the test paper to be used by the user and the chapter attribute of the test paper, the test paper to be used is composed of at least one test question in the test question database; inquiring a preset knowledge map according to the chapter attributes of the test paper to acquire the knowledge point attributes of the test paper; determining the knowledge point attribute of the test paper as the knowledge point attribute of at least one test question in the test paper, and determining the chapter attribute of the test paper as the chapter attribute of at least one test question in the test paper; storing the test questions and the test question attributes of the test questions into a test question database to realize indexing operation of the test questions; the test question attributes of the test question include: the chapter attributes of the test questions and the knowledge point attributes of the test questions realize automatic indexing of the test question attributes, avoid the participation of professionals, and improve the efficiency and accuracy of the test question indexing process.
Fig. 5 is a schematic structural diagram of another embodiment of the test question indexing device provided by the present invention, as shown in fig. 5, based on the embodiment shown in fig. 4, the device further includes: a judgment module 45, a calculation module 46 and a replacement module 47;
before the storage module 44 stores the test questions and the test question attributes of the test questions into the test question database, the judgment module 45 is used for inquiring the historical record table according to the test question identifiers of the first test questions in the test paper and judging whether the historical records containing the test question identifiers are stored in the historical record table;
a calculating module 46, configured to calculate, when a history record including the test question identifier is stored in the history record table, at least one first section attribute with the largest number of times of acquisition according to the history record including the test question identifier and the section attribute of the first test question;
the query module 42 is further configured to query the knowledge graph according to the first chapter attribute, and obtain a knowledge point attribute corresponding to the first chapter attribute;
the judging module 45 is further configured to judge whether the attribute of the knowledge point corresponding to the first chapter attribute is the same as the attribute of the knowledge point corresponding to the first test question in the test question database;
and a replacing module 47, configured to replace the knowledge point attribute corresponding to the first test question in the test question database with the knowledge point attribute corresponding to the first chapter attribute when the knowledge point attribute corresponding to the first chapter attribute is different from the knowledge point attribute corresponding to the first test question in the test question database.
If the history record including the test question identifier is not stored in the history record table, the storage module 44 stores the test questions and the test question attributes of the test questions in the test question database, so as to implement the indexing operation on the test questions. And if the knowledge point attribute corresponding to the first chapter attribute is the same as the knowledge point attribute corresponding to the first test question in the test question database, not modifying the knowledge point attribute of the test question in the test question database.
In the embodiment, by acquiring the test paper to be used by the user and the chapter attribute of the test paper, the test paper to be used is composed of at least one test question in the test question database; inquiring a preset knowledge map according to the chapter attributes of the test paper to acquire the knowledge point attributes of the test paper; determining the knowledge point attribute of the test paper as the knowledge point attribute of at least one test question in the test paper, and determining the chapter attribute of the test paper as the chapter attribute of at least one test question in the test paper; inquiring a historical record table according to the test question identification of the first test question in the test paper, and judging whether a historical record comprising the test question identification is stored in the historical record table; if the historical record comprising the test question identification is stored in the historical record table, calculating at least one first chapter attribute with the maximum acquisition times according to the historical record comprising the test question identification and the chapter attributes of the first test question; inquiring a knowledge graph according to the first chapter attribute to obtain a knowledge point attribute corresponding to the first chapter attribute; when the knowledge point attribute corresponding to the first chapter attribute is different from the knowledge point attribute corresponding to the first test question in the test question database, the knowledge point attribute corresponding to the first test question in the test question database is replaced by the knowledge point attribute corresponding to the first chapter attribute, so that automatic indexing of the test question attribute is realized, participation of professionals is avoided, and efficiency and accuracy in indexing the test question attribute are improved.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.