Question creation support device, question creation support method, and program
By generating summary data and using BERT to create option candidates, the method addresses the challenge of creating relevant questions from large text datasets, improving question relevance and efficiency.
Patent Information
- Application Number
- JP2023053324
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-10
AI Technical Summary
Creating questions from large amounts of text data can result in questions that do not adequately capture the content, and manually selecting questions is time-consuming.
A data acquisition unit acquires text data, generates summary data, selects mask target locations, and uses a trained model like BERT to generate option candidates for fill-in-the-blank questions.
Supports the creation of more appropriate questions even when dealing with large volumes of text data, ensuring questions align with the content.
Smart Images

Figure 2024141589000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a question creation support device, a question creation support method, and a program. [Background technology]
[0002] With the recent advances in deep learning, machine learning technology has been applied to a wide range of technical fields. For example, in the field of natural language processing, research and development of machine learning models for use in information extraction, information retrieval, summary generation, machine translation, speech recognition, dialogue processing, and more is progressing.
[0003] For example, BERT (Bidirectinal Encoder Representations from Transformers), which is one of the models, can predict masked words in an input sentence with high accuracy. Patent Document 1 describes a technology that uses BERT to determine options for words in blank spaces in a given question and to create fill-in-the-blank questions using the determined options. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2022-175437 A Summary of the Invention [Problem to be solved by the invention]
[0005] On the other hand, there are cases where it is necessary to create questions that are in line with the contents of text from a certain amount of text data, such as several pages or more. In this case, for example, if question sentences are randomly selected from the input text data, questions that do not adequately capture the contents of the text may be created. In addition, when the amount of input text data is large, it takes time and effort to manually select question sentences by checking the entire text.
[0006] An object of the present disclosure is to provide a technology for supporting the creation of more appropriate questions even when a large amount of input documents is used. [Means for solving the problem]
[0007] One aspect of the present disclosure relates to a question creation support device having a data acquisition unit that acquires sentence data, a summary generation unit that generates summary data of the sentence data, a mask selection unit that selects a portion to be masked from the summary data, and a question creation unit that extracts sentences including the portion to be masked, inputs the masked sentences as question sentences into a trained model that has trained a plurality of sentences to obtain candidate options for the portion to be masked, and creates questions based on the question sentences, the candidate options, and a character string of the portion to be masked. Effect of the Invention
[0008] According to the present disclosure, it is possible to assist in creating more appropriate questions even when there is a large amount of input documents. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a schematic diagram showing a question creation support process according to an embodiment of the present disclosure. [Diagram 2] FIG. 2 is a schematic diagram illustrating a question creation support device according to an embodiment of the present disclosure. [Diagram 3] FIG. 3 is a block diagram illustrating a hardware configuration of a question creation support device according to an embodiment of the present disclosure. [Figure 4] FIG. 4 is a block diagram illustrating a functional configuration of a question creation support device according to an embodiment of the present disclosure. [Diagram 5] FIG. 5 is a screen transition diagram in a question creation support device according to an embodiment of the present disclosure. [Figure 6] FIG. 6 is a screen transition diagram in a question creation support device according to an embodiment of the present disclosure. [Figure 7] FIG. 7 is a screen transition diagram in a question creation support device according to an embodiment of the present disclosure. [Figure 8]FIG. 8 is a flowchart showing a question creation support process according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, embodiments of the present disclosure will be described with reference to the drawings.
[0011] In the following embodiment, a question creation support device that supports the creation of fill-in-the-blank questions from text data is disclosed.
[0012] [Summary of the Disclosure] In an embodiment described later, when text data is acquired, the question creation support device first generates summary data that summarizes the acquired text data. For example, as shown in Fig. 1, when text data such as "Patents are important to companies. Under Japanese patent law, the period is 20 years" is acquired, the question creation support device generates summary data such as "As long as a patent right exists, the implementation of the invention can be monopolized. However, patent rights have a valid period, and after the period has expired, the implementation of the invention with that patent can no longer be monopolized."
[0013] When the summary data is generated, the question creation support device determines the mask target portion (in the illustrated example, "valid") from the generated summary data, and extracts the question sentence including the mask target portion (in the illustrated example, "However, the patent right has a ( ) period, and after the period has passed, the implementation of the invention under the patent cannot be exclusively performed."). Alternatively, the question creation support device may extract the question sentence from the generated summary data, and determine the mask target portion in the extracted question sentence. Then, the question creation support device uses a trained model for natural language processing such as BERT to determine option candidates that may correspond to the mask target portion in the question sentence (in the illustrated example, "free", "flexible", "incomplete", and "private"), and creates a fill-in-the-blank question based on the question sentence, the option candidates, and the character string before masking (in the illustrated example, "valid").
[0014] In this way, by creating questions based on summary data that summarizes the contents of the text data, it becomes possible to create fill-in-the-blank questions that are suited to the contents of the text data.
[0015] [Question Creation Support Device] FIG. 2 is a schematic diagram showing a question creation support device 100 according to an embodiment of the present disclosure. As shown in FIG. 2, when the question creation support device 100 acquires text data for question creation from a user, the question creation support device 100 creates summary data from the text data and transmits the summary data in which the mask target portion is specified to the server 50. Then, the question creation support device 100 acquires option candidates for the mask target portion from a trained model trained using a processing method such as BERT on the server 50, and creates a question based on the summary data, the option candidates, and the masked character string. Then, the question creation support device 100 presents the created question to the user. Note that the trained model does not necessarily need to be independent of another computer, and may be stored in the question creation support device 100.
[0016] Here, the text data may be any type of electronic data containing text, such as text data extracted from a webpage on the Internet, HTML (HyperText Markup Language) data, WORD files, PowerPoint files, PDF (Portable Document Format) files, etc. Alternatively, the text data may be text data generated by performing voice recognition on voice data acquired from an online meeting or the like, or text data resulting from character recognition of an image file. Note that the text data according to the present disclosure is not limited to the specific form described above, and may be any other type of data.
[0017] Here, question creation support device 100 may be realized by a computing device such as a server, a personal computer (PC), a smartphone, a tablet, etc., and may have a hardware configuration such as that shown in Fig. 3. That is, question creation support device 100 has a drive device 101, a storage device 102, a memory device 103, a processor 104, a user interface (UI) device 105, and a communication device 106, which are interconnected via a bus B.
[0018] The programs or instructions for implementing the various functions and processes of the question creation support device 100 may be stored in a removable storage medium such as a CD-ROM (Compact Disk-Read Only Memory) or a flash memory. When the storage medium is set in the drive device 101, the programs or instructions are installed from the storage medium via the drive device 101 into the storage device 102 or the memory device 103. However, the programs or instructions do not necessarily have to be installed from the storage medium, and may be downloaded from any external device via a network or the like.
[0019] The storage device 102 is realized by a hard disk drive or the like, and stores installed programs or instructions as well as files, data, etc. used in executing the programs or instructions.
[0020] The memory device 103 is realized by a random access memory, a static memory, or the like, and when a program or an instruction is activated, reads and stores the program or instruction, data, or the like from the storage device 102. The storage device 102, the memory device 103, and the removable storage medium may be collectively referred to as a non-transitory storage medium.
[0021] The processor 104 may be realized by one or more CPUs (Central Processing Units), GPUs (Graphics Processing Units), processing circuitry, etc., which may be composed of one or more processor cores, and performs various functions and processing of the question creation support device 100 in accordance with programs, instructions, data such as parameters necessary to execute the programs or instructions, etc. stored in the memory device 103.
[0022] User interface (UI) device 105 may be composed of input devices such as a keyboard, mouse, camera, microphone, etc., output devices such as a display, speaker, headset, printer, etc., and input / output devices such as a touch panel, and realizes an interface between a user and question creation support device 100. For example, a user operates question creation support device 100 by operating a GUI (Graphical User Interface) displayed on a display or touch panel using a keyboard, mouse, etc.
[0023] The communication device 106 is realized by various communication circuits that execute wired and / or wireless communication processing with an external device, the Internet, a LAN (Local Area Network), a cellular network, or other communication network.
[0024] However, the above-described hardware configuration is merely an example, and the question creation support device 100 according to the present disclosure may be realized by any other appropriate hardware configuration.
[0025] 4 is a block diagram showing a functional configuration of question creation support device 100 according to an embodiment of the present disclosure. As shown in Fig. 4, question creation support device 100 has a data acquisition unit 110, a summary generation unit 120, a mask selection unit 130, and a question creation unit 140. Each of the functional units of data acquisition unit 110, summary generation unit 120, mask selection unit 130, and question creation unit 140 may be realized by processor 104 executing a computer program stored in memory device 103 of question creation support device 100.
[0026] The data acquisition unit 110 acquires text data. Here, the text data may mean data including characters, alphanumeric characters, symbols, etc. used in any language such as Japanese or English, without being limited thereto. For example, as shown in FIG. 5, the data acquisition unit 110 may acquire text data in response to an operation instruction from a user of the question creation support device 100, and display the acquired text data on a display as text data for question creation. Specifically, the data acquisition unit 110 may acquire a webpage selected by a user browsing a webpage or text data or HTML data on the webpage as text data. The data acquisition unit 110 may also acquire electronic data including text data, such as acquired or created WORD data, PDF data, PowerPoint data, etc., or a part thereof, as text data. Alternatively, the data acquisition unit 110 may acquire audio data or video data, and acquire a voice recognition result such as a spoken portion in the acquired audio data or video data as text data.
[0027] The summary generation unit 120 generates summary data of text data. Specifically, the summary generation unit 120 generates summary data indicating a summary of the contents of the text data acquired by the data acquisition unit 110, from the text data acquired by the data acquisition unit 110, using any known summarization algorithm / model. For example, the summarization algorithm / model can be broadly classified into an extraction type that creates summary data by extracting a part of the text data, and a generation type that creates new summary data from the contents of the text data. Examples of the extraction type summarization algorithm / model include Luhn, LSA (Latent Semantic Analysis), TextRank, Reduction, etc. On the other hand, examples of the generation type summarization algorithm / model include BERTSUM, etc. Furthermore, the summary generation unit 120 may generate different summarization data from the text data using different summarization algorithms / models.
[0028] The mask selection unit 130 selects a portion to be masked from the summary data. Specifically, the mask selection unit 130 may select a term in the summary data according to a predetermined selection criterion, and determine the selected term as a portion to be masked. For example, the mask selection unit 130 may select a portion to be masked from the summary data based on sentence data.
[0029] In one embodiment, the mask selection unit 130 may select the mask target portion based on the importance of the term included in the text data. For example, the importance may be the number of occurrences / frequency of the term in the text data, or any value that can be calculated based on the number of occurrences / frequency. Alternatively, the importance may be any known index indicating the importance of a term in a document, such as tf-idf (term frequency-inverse document frequency). After determining the importance of each term included in the text data, the mask selection unit 130 may identify the term with the highest importance among the terms included in the summary data, and select the identified term as the mask target portion in the summary data. Alternatively, the mask selection unit 130 may list the terms in the text data in descending order of importance, present the term list to the user, and select a term selected by the user from the presented term list as the mask target portion. According to this embodiment, important terms in the text data can be used to create questions.
[0030] In one embodiment, the mask selection unit 130 may select technical terms included in the text data as the mask target portion. For example, the mask selection unit 130 may extract technical terms included in the text data using any known tool / module for extracting technical terms, such as TermExtract, and randomly select any of the extracted technical terms as the mask target portion in the summary data. The mask selection unit 130 may also present the extracted terms to the user in a list format, and select a term selected by the user from the term list as the mask target portion. Each technical term in the term list may be presented to the user in association with importance, such as the number of occurrences / frequency and importance index, as described above. According to this embodiment, technical terms that are assumed to be important in the text data can be used to create questions.
[0031] In addition, in one embodiment, the mask selection unit 130 may randomly extract terms from the summary data and select the extracted terms as the mask target portions. Also, the mask selection unit 130 may select terms selected by a user from the terms in the entire summary data as the mask target portions. According to this embodiment, the mask selection unit 130 can select the mask target portions without incurring a computational load such as calculating the importance of terms or executing a tool / module for extracting technical terms.
[0032] In one embodiment, the mask selection unit 130 may further select the mask target portion based on the importance of the term included in the summary data. That is, the mask selection unit 130 may select the mask target portion based on both the importance of the term included in the text data and the importance of the term included in the summary data. For example, a term having a high importance in both the text data and the summary data may be considered to be suitable as a mask target portion. Therefore, the mask selection unit 130 may select the mask target portion by considering not only the importance in the text data but also the importance in the summary data. According to this embodiment, it is possible to select the mask target portion more suitable for the text content by considering the importance of both the terms in the text data and the summary data.
[0033] The question creation unit 140 inputs a question sentence including a mask target portion into the trained model to obtain option candidates for the mask target portion, and creates a question based on the question sentence, the option candidates, and the terms before masking. Here, the trained model may be any known language model including a Transformer-based machine learning model such as BERT (Bidirectional Encoder Representations from Transformers). As is well known to those skilled in the art, BERT can predict a named entity suitable for a masked portion in a sentence, taking into account the context before and after the sentence. Specifically, BERT can output a named entity suitable for the masked portion together with a confidence level (which may also be called a score). For example, the trained model is provided in the server 50, and the question creation unit 140 can transmit a question sentence including a mask target portion to the server 50, and receive multiple option candidates from the server 50 in association with their respective confidence levels. In addition, in order to detect option candidates more suitable for the context before and after, the question sentence input to the trained model may include not only one sentence including the mask target portion, but also multiple sentences before and after the mask target portion.
[0034] In one embodiment, the question creation unit 140 may select an option from the option candidates based on the certainty of the acquired option candidates, and create a question using the selected option. Specifically, when the option candidates for the mask target portion are acquired, the question creation unit 140 determines the top predetermined number of option candidates with the highest certainty from the acquired option candidates and the masked term (the correct answer to the question) as the options for the question, and creates a question from the question sentence including the mask target portion and the determined options. For example, in a fill-in-the-blank question with N options, the question creation unit 140 may determine the masked term (the correct answer to the question) and the top (N-1) option candidates with the highest certainty different from the correct answer provided by the trained model as options, create a question from the N options and the question sentence, and present it to the user as shown in FIG. 5. When the user approves the presented question, the question may be adopted as a question for the text data. According to this embodiment, a question can be created using an option suitable for the mask target portion using the certainty.
[0035] Also, in one embodiment, the problem creation unit 140 may present the acquired candidate options to the user and create a problem using the options selected by the user from the candidate options. For example, as shown in FIG. 6, the problem creation unit 140 may present K (N < K) candidate options to the user and allow the user to select an option from the presented candidate options. Here, the problem creation unit 140 may present the confidence level of each candidate option to the user together with the K candidate options. When (N - 1) options are selected by the user, the problem creation unit 140 may create a problem from the N options including the correct answer and the problem statement, and present it to the user as shown in FIG. 6. When the user approves the presented problem, this problem may be adopted as a problem for the text data. According to this embodiment, a problem can be created using the option selected by the user as the masked portion.
[0036] Also, in one embodiment, the problem creation unit 140 may present one or more problem candidates to the user and determine the problem candidate selected by the user as the problem. For example, as shown in FIG. 7, the problem creation unit 140 may create L problem candidates and present them to the user, and allow the user to select a problem from the presented problem candidates. Specifically, the problem creation unit 140 may acquire L masked portions from the mask selection unit 130, create a problem candidate for each of the acquired L masked portions, and present the created L problem candidates to the user as shown in FIG. 7. The problem selected by the user from the presented L problem candidates may be adopted as a problem for the text data. According to this embodiment, the user can select a problem from the created problem candidates.
[0037] Note that in the above-described embodiment, the masked portion is first selected and a problem is created for the problem statement including the selected masked portion, but the present disclosure is not necessarily limited to this. For example, the problem statement may be first determined from the summary data, and the masked portion may be selected in the determined problem statement. Here, the problem statement may be determined by the user or randomly determined.
[0038] [Question creation support process] Next, a question creation support process according to an embodiment of the present disclosure will be described with reference to Fig. 8. Fig. 8 is a flowchart showing the question creation support process according to an embodiment of the present disclosure. The question creation support process may be executed by, for example, question creation support device 100, and more specifically, may be realized by processor 104 of question creation support device 100 executing a computer program or instructions stored in memory device 103.
[0039] In step S101, the question creation support device 100 acquires text data. Specifically, the question creation support device 100 may acquire, as text data, a web page selected by a user while browsing a web page or text data or HTML data on a web page, electronic data or a part thereof including text data such as WORD data, PDF data, or PowerPoint data acquired or created by a user, a voice recognition result such as a spoken portion in acquired audio data or video data, or the like.
[0040] In step S102, question creation support device 100 generates summary data of the text data. Specifically, question creation support device 100 uses any known summarization algorithm / model to generate summary data that indicates a summary of the contents of the text data. Specific examples of summarization algorithms / models include Luhn, LSA, TextRank, Reduction, and BERTSUM. Furthermore, question creation support device 100 may generate multiple different summary data from the text data using different summarization algorithms / models.
[0041] In step S103, the question creation support device 100 selects a portion to be masked from the summary data. The portion to be masked may be selected based on the importance of terms included in the text data and / or the summary data. The portion to be masked may also be a technical term extracted from the text data and / or the summary data. Alternatively, the portion to be masked may be selected by the user from the summary data.
[0042] In step S104, the question creation support device 100 inputs a question sentence including a portion to be masked into the trained model to acquire option candidates for the portion to be masked. For example, the trained model may be any language model including a Transformer-based machine learning model such as BERT. Specifically, the question creation support device 100 may input one or more sentences including the portion to be masked in the summary data (for example, a sentence including the portion to be masked and several sentences before and after the sentence) to the trained model, and acquire multiple option candidates for the portion to be masked from the trained model.
[0043] In step S105, the question creation support device 100 creates a question based on the question sentence and the option candidates. Specifically, the question creation support device 100 may select a predetermined number of option candidates from the option candidates acquired from the trained model, determine the masked term (correct answer) and the selected option candidates as options, and create a question based on the determined options and the question sentence. For example, the options may be determined from the option candidates based on the confidence level and / or user selection. The created question may be presented to the user, and if approved by the user, may be adopted as a question for the text data.
[0044] According to the above-described embodiment, by creating questions based on summary data that summarizes the contents of text data, it becomes possible to create fill-in-the-blank questions that are suited to the contents of the text data.
[0045] Although the examples of the present disclosure have been described in detail above, the present disclosure is not limited to the specific embodiments described above, and various modifications and variations are possible within the scope of the gist of the present disclosure described in the claims. [Explanation of symbols]
[0046] 50 Servers 100 Question Creation Support Device 110 Data Acquisition Section 120 Summary generator 130 Mask Selection Section 140 Question Creation Department
Claims
1. A data acquisition unit that acquires text data; a summary generation unit for generating summary data of the text data; a mask selection unit that selects a portion to be masked from the summary data; a question creation unit that extracts a sentence including the portion to be masked, inputs the masked sentence as a question sentence into a trained model that has trained a plurality of sentences to obtain option candidates for the portion to be masked, and creates a question based on the question sentence, the option candidates, and the character string of the portion to be masked; A question creation support device having the above structure.
2. 2 . The question creation support device according to claim 1 , wherein the mask selection unit selects the mask target portion based on the importance of a term included in the text data.
3. 3. The question creation support device according to claim 2, wherein the mask selection unit further selects the portion to be masked based on the importance of a term included in the summary data.
4. The question creation support device according to claim 1 , wherein the question creation section selects an option from the option candidates based on the acquired certainty factors of the option candidates, and creates the question using the selected option.
5. The question creation support device according to claim 1 , wherein the question creation section presents the obtained option candidates to a user and creates the question using an option selected by the user from the option candidates.
6. 2. The question creation support device according to claim 1, wherein the question creation section presents one or more question candidates to a user and determines a question candidate selected by the user as the question.
7. The problem creation support device according to claim 1 , wherein the trained model is a Transformer-based machine learning model.
8. Obtaining text data; generating summary data of the text data; selecting a portion of the summary data to be masked; extracting a sentence including the portion to be masked, inputting the masked sentence as a question sentence into a trained model that has been trained on a plurality of sentences to obtain option candidates for the portion to be masked, and creating a question based on the question sentence, the option candidates, and the character string of the portion to be masked; A computer-implemented method for assisting in question creation comprising the steps of:
9. Obtaining text data; generating summary data of the text data; selecting a portion of the summary data to be masked; extracting a sentence including the portion to be masked, inputting the masked sentence as a question sentence into a trained model that has been trained on a plurality of sentences to obtain option candidates for the portion to be masked, and creating a question based on the question sentence, the option candidates, and the character string of the portion to be masked; A program that causes a computer to execute the following.
Citation Information
Patent Citations
Question automatic generation method and question automatic generation system
JP2012018300A
QA generation device, QA generation method and program
JP2020160158A
Question sentence preparation device, question sentence preparation method, and program
JP2022175437A
Fill-in-the-blank question creation device, fill-in-the-blank question creation method, and program
JP2023023810A
Program, information processing method, information processing device, and method of generating learning model
JP2024021471A
