This is a MLP group project work in University of Edinburgh. Our work is an extension for the pointer-generator network proposed by See (2017). See the report in the folder docs
for detailed information.
git clone https://github.com/JZ95/feature-rich-pointer-generator
cd feature-rich-pointer-generator
# you may create a new virutal env for that
python setup.py develop
# run the command to see the help info
frpg_run --help
you may see the instructions here and preprocess the data on you own, or just use the data processed by us by going through the following steps.
- Download the tarball of data from Google Drive.
- decompress the tarball
tar -xzf data.tar.gz
, then get a folder nameddata
. - move the
data
folder into the ROOT path of this repo.
check the SHELL scripts in the folder scripts
, see the comments for detailed explaination.
- install python wrapper for ROUGE
pip install pyrouge
- set rouge path clone the ROUGE PERL repo
git clone https://github.com/andersjo/pyrouge
pyrouge_set_rouge_path /absolute/path/to/pyrouge/tools/ROUGE-1.5.5
- run evaluation
frpg_eval_rouge --dir=/path/to/your/result
Refer the file docs/docker_usage.md
for guidelines to deploy this repo using docker.