Paraphrase Any Question with T5 (Text-To-Text Transformer)
Given a question, generate paraphrased versions of the question with T5 transformer. Pretrained model and training script provided.
t5 transformers huggingface pytorch text-generation question-generation paraphrasing natural-language-processing tutorial research article code

Using this program you can generate paraphrases of any given question.


The input to our program will be any general question that you can think of -

Which course should I take to get started in data Science?


The output will be **paraphrased **versions of the same question. Paraphrasing a question means, you create a new question that expresses the same meaning using a different choice of words.

Paraphrased Questions generated from the T5 Model :

0: What should I learn to become a data scientist?

1: How do I get started with data science?

2: How would you start a data science career?

3: How can I start learning data science?

4: How do you get started in data science?

5: What's the best course for data science?

6: Which course should I start with for data science?

7: What courses should I follow to get started in data science?

8: What degree should be taken by a data scientist?

9: Which course should I follow to become a Data Scientist?

Pretrained model and training script are provided

Practical use case

Imagine a middle school teacher preparing a quiz for the class. Instead of giving a fixed question to every student he/she can generate multiple variants of a given question and distribute them across students.

The school can also augment their question bank with several variants of a given question using this technique.

Don't forget to tag @ramsrigouthamg in your comment, otherwise they may not be notified.

Authors original post
Lead Data Scientist || BITS Pilani || Ex Co-Founder & CTO of a funded AI startup
Share this project
Similar projects
Questgen- An NLP library for state-of-the-art Question Generation
Questgen AI is an opensource, easy to use NLP library for Question generation. It can generate MCQs, Boolean (Yes/No), FAQs and also paraphrase any ...
Transformers - Hugging Face
🤗 Transformers: State-of-the-art Natural Language Processing for TensorFlow 2.0 and PyTorch.
Live demo : State-of-the-art MCQ Generator from any content
Demo for state-of-the-art MCQ (Multiple Choice Questions) generator from any content built using T5 transformer, HuggingFace, and Sense2vec
Generate Boolean (Yes/No) Questions From Any Content
Question generation algorithm trained on the BoolQ dataset using T5 text-to-text transformer model.
Top collections