GithubHelp home page GithubHelp logo

on-lstm-tensorflow's Introduction

ON-LSTM (tensorflow version)

This repository contains the code used for word-level language model experiments in Ordered Neurons: Integrating Tree Structures into Recurrent Neural Networks paper. The original code in their paper is based on Pytorch, and this code is a corresponding tensorflow version with keras. Reference:

@article{shen2018ordered,
  title={Ordered Neurons: Integrating Tree Structures into Recurrent Neural Networks},
  author={Shen, Yikang and Tan, Shawn and Sordoni, Alessandro and Courville, Aaron},
  journal={arXiv preprint arXiv:1810.09536},
  year={2018}
}

Software Requirements

Python 3.7, tensorflow 1.13.1 are required for the current codebase.

Steps

  1. Install Tensorflow 1.13.1:

pip install tensorflow==1.13.1

  1. Scripts and commands

    • Train Language Modeling python main.py --batch_size 20 --dropout 0.65 --rnn_dropout 0.25 --input_dropout 0.5 --w_drop 0.2 --chunk_size 10 --seed 1111 --epoch 200 --data /path/to/your/data

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.