Remove multiple choice questions from reading.

This commit is contained in:
Cristiano Ferreira
2024-03-18 21:34:25 +00:00
parent 1bd012d340
commit 8b83a4163d
2 changed files with 2 additions and 6 deletions

View File

@@ -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

View File

@@ -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))