Coder Social home page Coder Social logo

colinsongf / feature-rich-pointer-generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jz95/feature-rich-pointer-generator

0.0 1.0 0.0 1.91 MB

An extension for pointer-generator network in Abstractive Text Summerization.

License: MIT License

Python 96.54% Shell 3.46%

feature-rich-pointer-generator's Introduction

Feature Rich Pointer Generator

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.

Usage

Step 1. install pacakge

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

Step 2. get CNN/Daily Mail Data Set

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.

  1. Download the tarball of data from Google Drive.
  2. decompress the tarball tar -xzf data.tar.gz, then get a folder named data.
  3. move the data folder into the ROOT path of this repo.

Step 3. run your experiment

check the SHELL scripts in the folder scripts, see the comments for detailed explaination.


TIPS for Setting pyrouge.

  1. install python wrapper for ROUGE
pip install pyrouge
  1. 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
  1. run evaluation
frpg_eval_rouge --dir=/path/to/your/result

Docker

Refer the file docs/docker_usage.md for guidelines to deploy this repo using docker.


Collaborators:

@Shihao Liu, @Christos Drou

feature-rich-pointer-generator's People

Contributors

jz95 avatar hrblack avatar cdroutsas avatar

Watchers

James Cloos 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.