Git Product home page Git Product logo

summarunner's Introduction

The PyTorch Implementation Of SummaRuNNer

License

Models

  1. RNN_RNN
  1. CNN_RNN
  1. Hierarchical Attention Networks

Setup

Requires pipenv. Use pip install pipenv if not installed.

pipenv install
pipenv shell

Usage

# train
python main.py -device 0 -batch_size 32 -model RNN_RNN -seed 1 -save_dir checkpoints/XXX.pt
# test
python main.py -device 0 -batch_size 1 -test -load_dir checkpoints/XXX.pt

pretrained models

  1. RNN_RNN(checkpoints/RNN_RNN_seed_1.pt)
  2. CNN_RNN(checkpoints/CNN_RNN_seed_1.pt)
  3. AttnRNN(checkpoints/AttnRNN_seed_1.pt)

Result

DailyMail(75 bytes)

model ROUGE-1 ROUGE-2 ROUGE-L
SummaRNNer(Nallapati) 26.2 10.8 14.4
RNN-RNN 26.0 11.5 13.8
CNN-RNN 25.8 11.3 13.8
Hierarchical Attn Net 26.0 11.4 13.8

Blog

Download Data:

Evaluation

Acknowledge

  • Thanks for @AlJohri's contribution

summarunner's People

Contributors

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