Giter VIP home page Giter VIP logo

zeroshot's Introduction

Experiment on Text

0.) Data files are in ./data and baseline models are in ./models/baseline

1.) [Optional] Train the baseline classifier models for textual entailment: TE-embeddings and TE-lstm.

python train_baseline.py --data_path ./data --save_path ./models/baseline

You can also use the ones in ./models/baseline instead of training your own.

2.) Train the autoencoder (ARAE), generator and discriminator (GAN)

python train.py --data_path ./data --update_base --convolution_enc --classifier_path ./models

3.) Train the inverter

Once you have pretrained models for autoencoder, generator and discriminator, you can train the inverter as below

python train.py --data_path ./data --load_pretrained <pretrain_exp_ID> --classifier_path ./models

4.) By default, we use fast search instead of hybrid search (as described in the paper).

You can pass an argument --hybrid above to change that.

5.) TE-treeLSTM and machine translation results in the paper were done offline and are not included in the respository.

If you wish to get those results, you can contact [email protected] for further details.

Acknowledgment

Initial code is based on Zhao et al., 2017

zeroshot's People

Contributors

visirion07 avatar rishabh261998 avatar

Watchers

 avatar

Forkers

rishabh261998

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.