GithubHelp home page GithubHelp logo

shengminp / vt-stower Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fe1ixxu/vt-stower

0.0 0.0 0.0 79.5 MB

License: MIT License

Shell 0.06% C++ 0.08% Python 15.25% Lua 0.02% Cuda 0.19% Cython 0.06% Roff 84.33%

vt-stower's Introduction

Prerequisites

conda create -n stower python=3.7
conda activate stower
  • transformers >= 4.4.2
    pip install transformers
    
  • Install our fairseq repo
    cd VT-STOWER
    pip install --editable ./
    
  • hydra = 1.0.3
    pip install hydra-core==1.0.3
    
  • boto3
    pip install boto3
    

Our outputs

For simplity, we directly put our outputs under the folder outputs.

Data Preprocessing

Dataset is stored at preprocess folder. To preprocess dataset, run the command:

cd preprocess
bash prepare.sh

After preprocessing, three databins will be generated:

  • yelp-databin: yelp dataset for sentiment transfer;
  • gyafc-databin: gyafc dataset for formality transfer;
  • en-hi-databin: Hindi-Hinglish dataset for code-switching transfer.

Training

Training scripts are stored in the train folder

cd train
bash train-{yelp,gyafc,en-hi}.sh

Training bash files include stage I, classifier, and stage II training process.

Style Transfer

To transfer style, please run the commands under generate folder:

cd generate
bash generate-{yelp,gyafc,en-hi}.sh

Outputs are named as *.out

vt-stower's People

Contributors

myleott avatar alexeib avatar tangyuq avatar cndn avatar louismartin avatar liezl200 avatar huihuifan avatar edunov avatar theweiho avatar kahne avatar freewym avatar liuchen9494 avatar jhcross avatar joshim5 avatar lematt1991 avatar multipath avatar pipibjc avatar kartikayk avatar fe1ixxu avatar erip avatar xu-song avatar jma127 avatar halilakin avatar nng555 avatar stephenroller avatar maigoakisame avatar hitvoice avatar ngoyal2707 avatar xianxl avatar skritika 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.