ppcool1163 / question_answer_generator

This model takes any format (PDF, docx, txt, png, jpg, jpeg) of document and generates question and answers from the text in the document.
5 stars 0 forks source link

question_answer_generator

This model takes any format (PDF, docx, txt, png, jpg, jpeg) of document and generates question and answers from the text in the document.

I have added 2 new features in the model and that is:

So this model will take the file path as an input and then ask whether the questions to be generated is from the whole document or a part of the document. If you want the questions to be generated from a part of the document it will then list out the keywords for you to select the keywords you want questions about. Then it will get the paragraphs corresponding to that keyword and generates the question-answer pairs from it.

Requirements

How to Use

I have made using the model easy. clone the repo and then run main.py file either in your environment or in Anaconda prompt. Note: If there is any form of runtime error refresh the kernel and again run the model.