xuwenkang / SummaRuNNer

The PyTorch Implementation of SummaRuNNer

Home Page:https://arxiv.org/pdf/1611.04230.pdf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 -seed 1 -save_dir checkpoints/XXX.pt
# test
python main.py -test -model RNN -load_dir checkpoints/XXX.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.4 13.8
CNN-RNN 25.6 11.3 13.8
Hierarchical Attn Net 26.1 11.5 13.8

Blog

Download Data:

Evaluation

Acknowledge

  • Thanks for @AlJohri's contribution

About

The PyTorch Implementation of SummaRuNNer

https://arxiv.org/pdf/1611.04230.pdf

License:MIT License


Languages

Language:Python 100.0%