Hostname: page-component-74656f9884-kv2lp Total loading time: 0 Render date: 2026-11-05T00:32:17.343Z Has data issue: false hasContentIssue false

Automatic question generation based on sentence structure analysis using machine learning approach

Published online by Cambridge University Press:  17 June 2021

Miroslav Blšták*
Affiliation:
Kempelen Institute of Intelligent Technologies, Mlynske nivy 5, Bratislava, Slovakia
Viera Rozinajová
Affiliation:
Kempelen Institute of Intelligent Technologies, Mlynske nivy 5, Bratislava, Slovakia
*
*Corresponding author. E-mail: miroslav.blstak@kinit.sk
Rights & Permissions [Opens in a new window]

Abstract

Automatic question generation is one of the most challenging tasks of Natural Language Processing. It requires “bidirectional” language processing: first, the system has to understand the input text (Natural Language Understanding), and it then has to generate questions also in the form of text (Natural Language Generation). In this article, we introduce our framework for generating the factual questions from unstructured text in the English language. It uses a combination of traditional linguistic approaches based on sentence patterns with several machine learning methods. We first obtain lexical, syntactic and semantic information from an input text, and we then construct a hierarchical set of patterns for each sentence. The set of features is extracted from the patterns, and it is then used for automated learning of new transformation rules. Our learning process is totally data-driven because the transformation rules are obtained from a set of initial sentence–question pairs. The advantages of this approach lie in a simple expansion of new transformation rules which allows us to generate various types of questions and also in the continuous improvement of the system by reinforcement learning. The framework also includes a question evaluation module which estimates the quality of generated questions. It serves as a filter for selecting the best questions and eliminating incorrect ones or duplicates. We have performed several experiments to evaluate the correctness of generated questions, and we have also compared our system with several state-of-the-art systems. Our results indicate that the quality of generated questions outperforms the state-of-the-art systems and our questions are also comparable to questions created by humans. We have also created and published an interface with all created data sets and evaluated questions, so it is possible to follow up on our work.

Information

Type
Article
Copyright
© The Author(s), 2021. Published by Cambridge University Press
Figure 0

Table 1. Comparison of AQG approaches on QGSTEC data set

Figure 1

Table 2. Automatic evaluation of AQG approaches on SQuAD data set

Figure 2

Figure 1. Conceptual overview of our proposed AQG framework.

Figure 3

Table 3. Example of Data Structure for Composite Pattern (CP), which consists of several patterns (rows of table)

Figure 4

Figure 2. Hierarchical relationships between patterns: one POS simple pattern covers several various sentence subpatterns with higher level of granularity.

Figure 5

Procedure 1 Creation of complex pattern (createCP)

Figure 6

Procedure 2 Training phase

Figure 7

Figure 3. Conceptual view of preprocessing module which extract the sentence from input text and create composite patterns for each sentence. In case of complex sentences, there is also sentence simplification process which splits the sentence and adds new simplified sentences into global list of sentences.

Figure 8

Table 4. Example of Data Structure for Composite Pattern (CP)

Figure 9

Procedure 3 generateQuestions (sentences)

Figure 10

Table 5. Comparison of AQG approaches on QGSTEC data set

Figure 11

Table 6. Comparison of AQG approaches on QGSTEC data set by user evaluators in our interface

Figure 12

Figure 4. Histogram of votes (syntactic + semantic) obtained by user evaluators for each AQG system: our system (marked as M) obtained more positive points and less negative points in comparison to other state-of-the-art systems.

Figure 13

Table 7. Coverage of sentences with generated questions based on question correctness

Figure 14

Table 8. Inter-rater reliability of evaluators

Figure 15

Figure 16

Table 9. Comparison of reference questions (expected by users) and generated questions by AQG systems

Figure 17

Table 10. User evaluation on SQuAD data set

Figure 18

Table 11. Comparison of reference questions (expected by users) and generated questions by our AQG system on SQuAD data set

Figure 19

Table 12. Evaluation in real scenarios

Figure 20

Table 13. Extrinsic evaluation: measuring the suitability of questions in the process of self-education