Git Product home page Git Product logo

abstractive-text-summarization-1's Introduction

Transfer Learning for Abstractive Text Summarization with Pointer-Generator Networks

Based on https://arxiv.org/abs/1704.04368

Downloading the datasets

The CNN/Daily Mail dataset can be obtained from here.

The NYT Annotated corpus can be ontained from here

Generating data for training

To generate the training data from CNN/Daily Mail datasets, run the following command. The downloaded dataset is expected to be in the data/ folder. This will write the tokeninzed data to data/tokens folder and serialized tensorflow examples to data/bins.

python create_datafiles.py cnn-dailymail

To generate the NYT data, run the following command.

python create_datafiles.py nyt

Most of the sequence to sequence attention model code is borrowed from tensorflow

Experiments conducted

  1. Trained a pointer-gen on NYT corpus. The trained model is available here

  2. Evaluated a pre-trained model on NYT corpus which is available here

  3. Fine tuned the pre-trained model with few example from NYT corpus and evaluated the model. This model is available here

Results

11,000 examples from NYT corpus were sampled to generate sumamries and were evaluated using the ROUGE-2.0 java library. The scores in 95% confidence interval below:

  1. Baseline scores:
    ROUGE-1 Average_F: (0.3102, 0.3357
    ROUGE-2 Average_F: (0.1891, 0.2120)
    ROUGE-L Average_F: (0.2376, 0.2602)

  2. Pre-trained model scores:
    ROUGE-1 Average_F: (0.1762, 0.1949)
    ROUGE-2 Average_F: (0.0855, 0.1004)
    ROUGE-L Average_F: (0.1716, 0.1903)

  3. Scores for the fine-tuned model
    ROUGE-1 Average_F: (0.2965, 0.3229)
    ROUGE-2 Average_F: (0.1792, 0.2027)
    ROUGE-L Average_F: (0.2351, 0.2586)

abstractive-text-summarization-1's People

Contributors

rutikasb avatar

Watchers

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