The Question and answering generation is based on paragraph For a paragraph it finds outs the most relavent key sentences Key sentences are found on the basic of similarity matrixes and keeping their scores obtained by word similarity In that specific paragraph , I have used nltk (rake) to find out the accurate summary in which we implement similarity measure In that specific sentence we Find a key word There are many pre implemented libraries in python to do just that , rake is the best to Use. Our key word becomes our Answer. Thanks for viewing, more in the code cell
QandA.ipynb , is the recent addition after testing transformers and genrating question with Answers from any text.