Remove multiple choice questions from reading.
This commit is contained in:
@@ -16,7 +16,7 @@ GRADING_FIELDS = ['comment', 'overall', 'task_response']
|
|||||||
GEN_FIELDS = ['topic']
|
GEN_FIELDS = ['topic']
|
||||||
GEN_TEXT_FIELDS = ['title']
|
GEN_TEXT_FIELDS = ['title']
|
||||||
LISTENING_GEN_FIELDS = ['transcript', 'exercise']
|
LISTENING_GEN_FIELDS = ['transcript', 'exercise']
|
||||||
READING_EXERCISE_TYPES = ['multipleChoice', 'fillBlanks', 'writeBlanks', 'trueFalse']
|
READING_EXERCISE_TYPES = ['fillBlanks', 'writeBlanks', 'trueFalse']
|
||||||
LISTENING_EXERCISE_TYPES = ['multipleChoice', 'writeBlanksQuestions', 'writeBlanksFill', 'writeBlanksForm']
|
LISTENING_EXERCISE_TYPES = ['multipleChoice', 'writeBlanksQuestions', 'writeBlanksFill', 'writeBlanksForm']
|
||||||
|
|
||||||
TOTAL_READING_PASSAGE_1_EXERCISES = 13
|
TOTAL_READING_PASSAGE_1_EXERCISES = 13
|
||||||
|
|||||||
@@ -297,11 +297,7 @@ def generate_reading_exercises(passage: str, req_exercises: list, number_of_exer
|
|||||||
for req_exercise in req_exercises:
|
for req_exercise in req_exercises:
|
||||||
number_of_exercises = number_of_exercises_q.get()
|
number_of_exercises = number_of_exercises_q.get()
|
||||||
|
|
||||||
if req_exercise == "multipleChoice":
|
if req_exercise == "fillBlanks":
|
||||||
question = gen_multiple_choice_exercise(passage, number_of_exercises, start_id, difficulty)
|
|
||||||
exercises.append(question)
|
|
||||||
print("Added multiple choice: " + str(question))
|
|
||||||
elif req_exercise == "fillBlanks":
|
|
||||||
question = gen_summary_fill_blanks_exercise(passage, number_of_exercises, start_id, difficulty)
|
question = gen_summary_fill_blanks_exercise(passage, number_of_exercises, start_id, difficulty)
|
||||||
exercises.append(question)
|
exercises.append(question)
|
||||||
print("Added fill blanks: " + str(question))
|
print("Added fill blanks: " + str(question))
|
||||||
|
|||||||
Reference in New Issue
Block a user