QGen / fill_in_the_blanks_generation.py
DevBM's picture
Upload files for modules/functions (#5)
f7842f6 verified
raw
history blame
258 Bytes
async def generate_fill_in_the_blank_questions(context,answer):
answerSize = len(answer)
replacedBlanks = ""
for i in range(answerSize):
replacedBlanks += "_"
blank_q = context.replace(answer,replacedBlanks)
return blank_q