GithubHelp home page GithubHelp logo

github30 / latent-treelstm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from facebookresearch/latent-treelstm

0.0 2.0 0.0 49 KB

Cooperative Learning of Disjoint Syntax and Semantics

License: MIT License

Python 100.00%

latent-treelstm's Introduction

Cooperative Learning of Disjoint Syntax and Semantics

This code was used to obtain the results described in the paper:

Cooperative Learning of Disjoint Syntax and Semantics
Serhii Havrylov, Germán Kruszewski, Armand Joulin
Presented at NAACL2019

ListOps

  1. Download ListOps dataset. URLs of the original dataset and an extrapolation test set can be found in data/listops/external/urls.txt file.
  2. Run python listops/data_preprocessing/split.py to split the dataset into the train, the valid and the test sets. Make sure that you have downloaded the dataset and the files are present in the data/listops/external folder.
  3. Build vocabulary using python listops/data_preprocessing/build_vocab.py.
  4. Run python listops/ppo/train_ppo_model.py or python listops/reinforce/train_reinforce_model.py to train the model with PPO or REINFORCE estimators.

SST

  1. Run python sst/ppo/train_ppo_model.py to train the model using SST-2 or SST-5 datasets.

NLI

  1. Download SNLI and MultiNLI datasets and extract corresponding archives to data/nli folder. URLs can be found in data/nli/external/urls.txt file.
  2. Run python nli/data_preprocessing/preprocess.py to preprocess dataset and generate vocabulary files.
  3. Run python nli/ppo/train_ppo_model.py to train the model using SNLI or MultiNLI datasets.

The code is tested with Python 3.6.3 and PyTorch 1.0.1.

License

Latent-TreeLSTM is MIT licensed. See the LICENSE file for details.

latent-treelstm's People

Contributors

ajoulin avatar serhii-havrylov avatar

Watchers

 avatar  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.