GithubHelp home page GithubHelp logo

claire-xuey1 / paraphrase-any-question-with-t5-text-to-text-transfer-transformer- Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ramsrigouthamg/paraphrase-any-question-with-t5-text-to-text-transfer-transformer-

0.0 1.0 0.0 5.88 MB

Paraphrase any question with T5 (Text-To-Text Transfer Transformer) - Pretrained model and training script provided

Jupyter Notebook 28.39% Python 71.61%

paraphrase-any-question-with-t5-text-to-text-transfer-transformer-'s Introduction

Paraphrase any question with T5 (Text-To-Text Transfer Transformer) - Pretrained model and training script provided

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

A detailed Medium blogpost explaining necessary steps can be found here.

Input

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?

Ouput

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?  

Inference code

The t5-pretrained-question-paraphraser.ipynb notebook has all the code to run the model on any given question of your choice and generate paraphrases for it.

Training the model

The training and validation datasets are present in the paraphrase_data folder. Install the necessary libraries from requirements.txt. Use any GPU machine and run train.py

Training this model for 2 epochs (default) took about 20 hrs on p2.xlarge (AWS ec2)

paraphrase-any-question-with-t5-text-to-text-transfer-transformer-'s People

Contributors

ramsrigouthamg avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.