QGen / fill_in_the_blanks_generation.py
AneriThakkar's picture
Upload files for modules/functions
7fafac4 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