A training system and method for question bank data

By constructing a question bank data training system and utilizing the Canny algorithm and group index structure, the system identifies and calculates the correlation degree of test point keywords, thus solving the problem of lack of parameters in paper text scanned question bank data and achieving efficient and accurate test paper generation and question bank management.

CN114064842BActive Publication Date: 2024-11-05GUIZHOU GOUFEN BANXUE TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111438296.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-30
Publication Date
2024-11-05
Estimated Expiration
2041-11-30

AI Technical Summary

Technical Problem

In existing technologies, the question bank data obtained by scanning paper texts lacks parameter information, resulting in low efficiency in generating test papers, and the processing efficiency of manually annotating massive question banks is also low.

Method used

The question bank data training system consists of a test point character library, a file processing unit, a text extraction unit, a storage unit, a test point extraction unit, a test point index library, a data request unit, and a text retrieval unit. It generates test question images using the Canny algorithm, identifies test question text and answer text, calculates the correlation degree of test point keywords, and quickly retrieves related test points using a group index structure to generate test questions.

Benefits of technology

It improved the efficiency of question bank data processing and the accuracy of question selection, enhanced the system response speed, and achieved efficient management of massive question banks and test paper generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114064842B_ABST
    Figure CN114064842B_ABST
Patent Text Reader

Abstract

The present invention provides a training system and method for question bank data. The training system includes a test point character library, a file processing unit, a text extraction unit, a first memory, a second memory independent of the first memory, a test point extraction unit, a test point index library, a data request unit, a text retrieval unit, a target question bank, and a file generation unit. Among them, the test point extraction unit identifies the test point keywords in each answer text in the second memory, and generates the test point relevance PMI between any test point keyword and other test point keywords. The text retrieval unit retrieves the target answer text in the second memory according to the test point relevance PMI, and finally the file generation unit extracts the corresponding test question text and answer text. This application analyzes the relevance of the test questions and selects test questions with different relevance as needed to improve the accuracy of the selected questions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to text data processing technology, and in particular to a question bank file training system and method. Background Art

[0002] Question bank data can be imported from text data or scanned from paper documents. The imported text data usually contains the parameters of the question bank (such as test points, difficulty, etc.), such as the test paper generation system of CN201210154234.2, in which the automatic question selection module of the system automatically selects questions and generates test papers according to the test points and test question difficulty ratios input by the teacher. Question bank data obtained by scanning paper documents generally do not have corresponding parameters. In order to improve the efficiency of generating such test questions, it is necessary to input the question bank according to the test question data in the existing paper text. In addition, in order to obtain larger question bank data, the test question image can be obtained by continuous scanning and reading, referring to the prior art AU2014280904, JP2017103593A, etc. Text parameter training relies on natural language processing, for example, CN109918653B discloses a method for training text-related parameters, and its training model considers the matching and relevance of text and topic. However, this case still requires manual annotation, and the processing efficiency is low for a large number of question banks. Summary of the invention

[0003] In order to solve the difficulty in generating test papers from the scanned test questions in the above-mentioned prior art, the present invention proposes a training system and method for question bank data.

[0004] A training system for question bank data, characterized by comprising:

[0005] Test point character library, used to store multiple test point keywords;

[0006] The file processing unit scans multiple original files and generates test image through Canny algorithm;

[0007] A text extraction unit, which identifies a plurality of test question texts and answer texts matching the test question texts from the test question image, wherein each test question text and answer text has a unique corresponding serial number;

[0008] A first memory, storing the corresponding test text with the serial number as an index;

[0009] A second memory independent of the first memory, the second memory storing the corresponding answer text with the serial number as an index;

[0010] A test point extraction unit, which identifies the test point keywords in each answer text in the second memory, and generates a test point relevance PMI between any test point keyword and other test point keywords;

[0011] The test point index library uses any test point keyword as an index to store the test point correlation degree PMI between the test point keyword and other test point keywords;

[0012] The data request unit receives a target test point keyword and a deviation threshold, and retrieves from the test point index library a plurality of associated test point keywords whose test point relevance PMI with the target test point keyword is greater than or equal to the deviation threshold;

[0013] A text retrieval unit, which retrieves a plurality of target answer texts having the target test point keywords and associated test point keywords in the second memory;

[0014] A target question bank storing serial numbers corresponding to a plurality of target answer texts;

[0015] The file generation unit selects any sequence number from the target question bank using a random algorithm, and extracts the test question text and answer text of the sequence number from the first memory and the second memory, wherein:

[0016] Test point relevance , p(xy) is the number of answer texts that have both test point keyword x and test point keyword y, p(x) is the number of answer texts that have test point keyword x, and p(y) is the number of answer texts that have test point keyword y.

[0017] In the present invention, the file generating unit is connected to the first memory or the second memory via an access control unit.

[0018] In the present invention, the document processing unit includes a scanning unit and an edge cutting unit.

[0019] In the present invention, the scanning unit transmits the original document at a first speed and scans the original document at a second speed lower than the first speed. The scanning unit switches the first speed or the second speed by detecting pixel points of the original document.

[0020] In the present invention, the edge clipping unit sequentially executes the Gaussian filtering algorithm, the gradient algorithm, the non-maximum suppression algorithm and the edge connection algorithm to generate the test image.

[0021] In the present invention, the test point character library divides the test point keywords into multiple groups according to the first character pinyin and the character length, and establishes a group index with the hash value of the first character pinyin.

[0022] A training method for question bank data, characterized in that it comprises the following steps:

[0023] Step 1: Store multiple test point keywords;

[0024] Step 2: Scan multiple original files and generate test image through Canny algorithm;

[0025] Step 3: Identify multiple test question texts and answer texts matching the test question texts from the test question image, each test question text and answer text having a unique corresponding serial number;

[0026] Step 4: storing the corresponding test text in a first memory using the serial number as an index, and storing the corresponding answer text in a second memory independent of the first memory using the serial number as an index;

[0027] Step 5: Identify the test point keywords in each answer text in the second memory, and generate the test point relevance PMI between any test point keyword and other test point keywords;

[0028] Step 6: Using any test point keyword as an index, store the test point relevance PMI of the test point keyword and other test point keywords;

[0029] Step 7: receiving a target test point keyword and a deviation threshold, and retrieving from the test point index library a plurality of associated test point keywords whose test point relevance PMI with the target test point keyword is greater than or equal to the deviation threshold;

[0030] Step 8: Retrieving a plurality of target answer texts having the target test point keywords and associated test point keywords in the second memory;

[0031] Step 9: storing the sequence numbers corresponding to the plurality of target answer texts;

[0032] Step 10: Use a random algorithm to select any sequence number from the target question bank, and extract the test question text and answer text of the sequence number from the first memory and the second memory, wherein:

[0033] Test point relevance , p(xy) is the number of answer texts that have both test point keyword x and test point keyword y, p(x) is the number of answer texts that have test point keyword x, and p(y) is the number of answer texts that have test point keyword y.

[0034] The training system and method for question bank data of the present invention have the following beneficial effects: by analyzing the correlation degree of test questions, test questions with different correlation degrees are selected according to needs, thereby improving the accuracy of the selected questions. Through the test point index library and the innovative use of the group index structure, the related test point keywords can be quickly retrieved, thereby improving the system response speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A block diagram of a training system for question bank data of the present invention;

[0036] Figure 2A flowchart of the training method of the question bank data of the present invention;

[0037] Figure 3 is a schematic diagram of a scanning unit of the present invention;

[0038] Figure 4 This is a flow chart of detecting image edges using the Canny operator of the present invention;

[0039] Figure 5 A schematic diagram of the access control unit of the present invention implementing access control. DETAILED DESCRIPTION

[0040] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0041] like Figure 1 The training system of the question bank data of the present invention shown is used to input and classify and store a large number of test questions, and generate new test question files as needed. The system includes a test point character library, a file processing unit, a text extraction unit, a first memory, a second memory, a test point extraction unit, a test point index library, a data request unit, a text retrieval unit, a target question bank and a file generation unit. The test point character library is used to store multiple test point keywords. The present application preferably sorts the first pinyin of the test point keywords, sorts the words with the same pinyin according to the length of the words, and then groups the words with the same pinyin and the same length into a group. The first character of each group is indexed with a unique corresponding Hash value to form a group index. At the beginning of subsequent matching, first find the character with the same pinyin, and then use the character as the first letter to match the other characters of the test point keywords one by one.

[0042] The file processing unit includes a scanning unit and an edge cropping unit. The file processing unit scans multiple original files and generates a test image through a Canny algorithm. The text extraction unit identifies multiple test texts and answer texts matching the test texts from the test image. Each test text and answer text has a unique corresponding serial number. The first memory stores the corresponding test text with the serial number as an index. The second memory stores the corresponding answer text with the serial number as an index.

[0043] The test point extraction unit identifies the test point keywords in each answer text in the second memory. Specifically, the corresponding characters in the answer text can be matched one by one by using a group index in combination with the storage structure of the test point character library. The test point extraction unit generates a test point relevance PMI between any test point keyword and other test point keywords. , p(xy) is the number of answer texts that have both test point keyword x and test point keyword y, p(x) is the number of answer texts that have test point keyword x, and p(y) is the number of answer texts that have test point keyword y. The test point index library uses any test point keyword as an index to store the test point relevance PMI between the test point keyword and other test point keywords.

[0044] The data request unit receives a target test point keyword and a deviation threshold, and retrieves multiple associated test point keywords whose test point relevance PMI with the target test point keyword is greater than or equal to the deviation threshold from the test point index library. The text retrieval unit retrieves multiple target answer texts with the target test point keyword and the associated test point keyword in the second memory. The target question bank stores serial numbers corresponding to the multiple target answer texts. The file generation unit selects an arbitrary serial number from the target question bank using a random algorithm, and extracts the test question text and answer text of the serial number from the first memory and the second memory.

[0045] Reference Figure 2 The training method of the question bank data of the present invention comprises the following steps:

[0046] Step 1: Store multiple test point keywords. Test point keywords are, for example, the main answer keywords of the test point, for example, "appropriateness", "illegality", and "culpability" in the test point "Three-tier theory of criminal law" are test point keywords.

[0047] Step 2: Scan multiple original files and generate a test image through the Canny algorithm. The original file is, for example, an external test file, which has multiple test texts and corresponding answer texts. The original file can be a paper of A3 or A4 size. Step 2 specifically includes: Step 21, transmitting the original file at a first speed, and scanning the original file at a second speed lower than the first speed. After obtaining the unprocessed image; Step 22, sequentially execute the Gaussian filtering algorithm, the gradient algorithm, the non-maximum suppression algorithm and the edge connection algorithm to generate the test image.

[0048] Step 3: Identify multiple test texts and answer texts matching the test texts from the test image, and each test text and answer text has a unique corresponding serial number. The present invention does not limit the specific method of text recognition, such as CTPN, pixellink, psenet and other algorithms based on deep learning technology. This application does not limit the serial numbering, and the serial number is, for example, 010. The serial number corresponds to the test text: "Try to answer the three-tier theory of criminal law", and the answer text: "The three tiers include the subject's responsibility, the illegality of the behavior, and the responsibility for the harmful consequences."

[0049] Step 4: Store the corresponding test text in the first memory using the serial number as an index, and store the corresponding answer text in the second memory using the serial number as an index. The test text and answer text are stored in a classified manner to facilitate data encryption and subsequent processing.

[0050] Step 5: Identify the test point keywords in each answer text in the second memory, and generate the test point relevance PMI between any test point keyword and other test point keywords. , p(xy) is the number of answer texts that have both test point keywords x and y, p(x) is the number of answer texts that have test point keyword x, and p(y) is the number of answer texts that have test point keyword y. Some test points are frequently examined in correlation, and the degree of correlation between test points should be considered when selecting topics. In some cases, it is necessary to select test points with lower correlation as the scope of topic selection. The present invention first uses the PMI (mutual information) algorithm to calculate the cohesion strength of test point keywords. Test point correlation The relevance of test points uses mutual information to characterize the cohesion strength of adjacent strings. The higher the relevance, the higher the probability that the components are usually jointly examined. It should be understood that the frequency of occurrence of p(x) and p(y) may be 0. If p(x) or p(y)=0, then PMI=0.

[0051] Step 6: Use any test point keyword as an index to store the test point relevance PMI of the test point keyword and other test point keywords. In order to improve the text retrieval efficiency, the indexing method of the test point keyword can also adopt the aforementioned group index structure.

[0052] Step 7: Receive a target test point keyword and a deviation threshold, and retrieve multiple associated test point keywords whose test point relevance PMI with the target test point keyword is greater than or equal to the deviation threshold from the test point index library. The deviation threshold is the operator's requirement for question setting. If a test question contains more strongly associated test points, the degree of deviation between the test points is low. If a test question contains fewer strongly associated test points, the degree of deviation between the test points is high.

[0053] Step 8: Retrieve multiple target answer texts having the target test point keywords and associated test point keywords in the second memory.

[0054] Step 9: Store serial numbers corresponding to the plurality of target answer texts.

[0055] Step 10: Use a random algorithm to select any serial number from the target question bank, and extract the test question text and answer text of the serial number from the first memory and the second memory.

[0056] Embodiment 1

[0057] If there are few original documents, a single-sheet input method can be used. If there are many original documents, a continuous scanning method can be used, in which case a scanning unit is required. The present invention discloses a preferred embodiment of the scanning unit. Figure 3 The scanning unit switches the first speed or the second speed by detecting the pixel points of the original document. The scanning unit is composed of a scanner base 1, a scanner probe bracket 2 and a scanning probe 3. The scanner base 1 is used to fix the probe bracket 2 and is located below the conveyor 4. The scanning probe 3 continuously scans the corresponding area. When the original document passes, the speed of the conveyor 4 is reduced to scan the original document. For example, when the first speed of the conveyor 4 is When the original file is transmitted to the scanning area of ​​the scanning probe, the size of the scanning area is: width Gao Wei , the number of pixels in this area is , since the background color of the transmission device is black, the RGB value is expressed as (0,0,0). Ideally, the number of pixels in the black area is also When the original file is transferred to the scanning area, since the color values ​​of the original file are not all (0,0,0), the number of pixels with RGB value (0,0,0) will decrease. and The pixel number ratio is: .in, for The number of pixels is The number of pixels is When the When the speed exceeds the set value, it is determined that an original document is being transmitted to the scanning area of ​​the scanner, thereby reducing the speed of the transmission device to the second speed. ,in , so that the scanner can scan paper documents. After testing, when the setting value is 0.3, there will be better results. When the speed of the conveyor is reduced to the second speed After a 0.5s delay, the original document is scanned. After the scanned image is acquired, the speed of the conveyor 4 is restored to , so as to continue the subsequent original file scanning.

[0058] Embodiment 2

[0059] Reference Figure 4 For the irregular original files, the edge clipping unit can be used. The edge clipping unit uses the Canny operator to extract the edge contour information of the scanned image and obtain the test image. First, the scanned image is Gaussian filtered using a two-dimensional Gaussian function. The two-dimensional Gaussian function is, for example, , is the standard deviation of the Gaussian function, usually taken as 0.6, where x and y are the coordinate values ​​of the pixel, respectively.

[0060] Secondly, calculate the gradient value and direction of the pixels in the scanned image. The edges of the scanned image can point to different directions, so four gradient operators are used to calculate the gradients in the horizontal, vertical and diagonal directions respectively. The magnitude and direction of the gradient can be calculated: , . and is the difference in the horizontal and vertical directions calculated using the edge difference operator, the gradient angle The range is ( ), which can be approximated to four directions, representing the horizontal, vertical and two diagonal directions, namely (0°, 45°, 90°, 135°).

[0061] Next, the non-maximum suppression algorithm is used to find the local maximum of the pixel point, and a double threshold is set, a high threshold and a low threshold to distinguish edge pixels. If the edge pixel gradient value is greater than the high threshold, it is considered a strong edge point. If the edge gradient value is less than the high threshold and greater than the low threshold, it is marked as a weak edge point, and the point less than the low threshold is suppressed. Finally, the remaining points are connected to obtain the processed test image.

[0062] Embodiment 3

[0063] The training system of the question bank data of the present invention is divided into an internal system and an external system according to the degree of data confidentiality. Figure 1 The dotted-line part, the data request unit or the file generation unit is an external system. The present invention preferably limits the connection between the file generation unit and the internal memory to improve system security. Figure 5 , the file generation unit is connected to the first memory or the second memory through an access control unit. For example, there may be multiple users (user A, user B, user C) accessing the first memory or the second memory through the file generation unit at the same time. The input unit independently initiates an access request , and The access initiation request is transmitted to the test point index library, and after obtaining the relevant data from the test point index library, the relevant data of the first memory or the second memory is read through the access control unit. The corresponding response is obtained in the first memory or the second memory respectively. , and .

[0064] In the prior art, when the cache data of the first memory or the second memory is larger than its cache limit, traffic overflow will occur, and the data accessed by the user will be cleared. At this time, exception processing will be triggered, and a prompt will be returned to the user, requiring the user to re-access or wait. The access control unit of the present application can use a funnel model to control the bandwidth. For example, if each bandwidth segment is 100KB / s, the total bandwidth is 300KB / s. With this solution, the network stability of the file generation unit of multiple users can be guaranteed.

[0065] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A training system for question bank data, characterized in that: include: Test point character library, used to store multiple test point keywords; The file processing unit scans multiple original files and generates test image through Canny algorithm; A text extraction unit, which identifies a plurality of test question texts and answer texts matching the test question texts from the test question image, wherein each test question text and answer text has a unique corresponding serial number; A first memory, storing the corresponding test text with the serial number as an index; A second memory independent of the first memory, the second memory storing the corresponding answer text with the serial number as an index; A test point extraction unit, which identifies the test point keywords in each answer text in the second memory, and generates a test point relevance PMI between any test point keyword and other test point keywords; The test point index library uses any test point keyword as an index to store the test point correlation degree PMI between the test point keyword and other test point keywords; The data request unit receives a target test point keyword and a deviation threshold, and retrieves from the test point index library a plurality of associated test point keywords whose test point relevance PMI with the target test point keyword is greater than or equal to the deviation threshold; A text retrieval unit, which retrieves a plurality of target answer texts having the target test point keywords and associated test point keywords in the second memory; A target question bank storing serial numbers corresponding to a plurality of target answer texts; The file generation unit selects any sequence number from the target question bank using a random algorithm, and extracts the test question text and answer text of the sequence number from the first memory and the second memory, wherein: Test point relevance , p(xy) is the number of answer texts that have both test point keyword x and test point keyword y, p(x) is the number of answer texts that have test point keyword x, and p(y) is the number of answer texts that have test point keyword y.

2. The training system for question bank data according to claim 1, characterized in that: The file generating unit is connected to the first memory or the second memory via an access control unit.

3. The training system for question bank data according to claim 1, characterized in that: The document processing unit includes a scanning unit and an edge cutting unit.

4. The training system for question bank data according to claim 3, characterized in that: The scanning unit transmits the original document at a first speed and scans the original document at a second speed lower than the first speed. The scanning unit switches the first speed or the second speed by detecting pixel points of the original document.

5. The training system for question bank data according to claim 3, characterized in that: The edge clipping unit sequentially executes Gaussian filtering algorithm, gradient algorithm, non-maximum suppression algorithm and edge connection algorithm to generate the test image.

6. The training system for question bank data according to claim 1, characterized in that: The test point character library divides the test point keywords into multiple groups according to the first character pinyin and character length, and establishes a group index based on the hash value of the first character pinyin.

7. A training method for question bank data, characterized in that: The following steps are included: Step 1: Store multiple test point keywords; Step 2: Scan multiple original files and generate test image through Canny algorithm; Step 3: Identify multiple test question texts and answer texts matching the test question texts from the test question image, each test question text and answer text having a unique corresponding serial number; Step 4: storing the corresponding test text in a first memory using the serial number as an index, and storing the corresponding answer text in a second memory independent of the first memory using the serial number as an index; Step 5: Identify the test point keywords in each answer text in the second memory, and generate the test point relevance PMI between any test point keyword and other test point keywords; Step 6: Using any test point keyword as an index, store the test point relevance PMI of the test point keyword and other test point keywords; Step 7: receiving a target test point keyword and a deviation threshold, and retrieving from the test point index library a plurality of associated test point keywords whose test point relevance PMI with the target test point keyword is greater than or equal to the deviation threshold; Step 8: Retrieving a plurality of target answer texts having the target test point keywords and associated test point keywords in the second memory; Step 9: storing the sequence numbers corresponding to the plurality of target answer texts; Step 10: Use a random algorithm to select any sequence number from the target question bank, and extract the test question text and answer text of the sequence number from the first memory and the second memory, wherein: Test point relevance , p(xy) is the number of answer texts that have both test point keyword x and test point keyword y, p(x) is the number of answer texts that have test point keyword x, and p(y) is the number of answer texts that have test point keyword y.