text-generation-questions-english-t5

Text generation model for question generation by prepending the answer to the context

Input

Prompt:

Press Ctrl + Enter to submit

Output

Submit a prompt for a response.

Notes

T5-base fine-tuned on SQuAD for Question Generation

huggingface model id: mrm8488/t5-base-finetuned-question-generation-ap

Google's T5 fine-tuned on SQuAD v1.1 for Question Generation by just prepending the answer to the context.

Details of T5

The T5 model was presented in Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer by Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu in Here the abstract:

Transfer learning, where a model is first pre-trained on a data-rich task before being fine-tuned on a downstream task, has emerged as a powerful technique in natural language processing (NLP). The effectiveness of transfer learning has given rise to a diversity of approaches, methodology, and practice. In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks. By combining the insights from our exploration with scale and our new “Colossal Clean Crawled Corpus”, we achieve state-of-the-art results on many benchmarks covering summarization, question answering, text classification, and more. To facilitate future work on transfer learning for NLP, we release our dataset, pre-trained models, and code.

model image

Details of the downstream task (Q&A) - Dataset 📚 🧐 ❓

Dataset ID: squad from Huggingface/NLP

DatasetSplit# samples
squadtrain87599
squadvalid10570

Model fine-tuning 🏋️‍

The training script is a slightly modified version of this awesome one by Suraj Patil

He also made a great research on Question Generation

Model in Action 🚀

Try with the following raw text input: answer: Manuel context: Manuel has created RuPERTa-base with the support of HF-Transformers and Google

Expected output: question: Who created the RuPERTa-base?

  • ID
  • Model Type ID
    Text To Text
  • Input Type
    text
  • Output Type
    text
  • Description
    Text generation model for question generation by prepending the answer to the context
  • Last Updated
    Jun 28, 2022
  • Privacy
    PUBLIC
  • Toolkit
  • License
  • Share
  • Badge
    text-generation-questions-english-t5