Giter Club home page Giter Club logo

abs-lrmodel's Introduction

Source code of Abs-LR Model for Abstractive Summarization with Guiding Entities

Implementation of Our Paper "Controllable Abstractive Sentence Summarization with Guiding Entities" in COLING 2020.

Requirements

  • tensorflow > 2.1.0
  • tqdm
  • pyrouge
  • numpy
  • nltk

Model Architecture

model

Our controllable neural model with guiding entities. The original article texts are encoded with a BiLSTM layer. We utilize a pretrained BERT named entity recognition tool to extract entities from input texts. The decoder consists of two LSTMs: LSTM-L and LSTM-R. Our model starts generating the left and right part of a summary with selected entities and can guarantee that entities appear in final output summaries.

Data Format

Check the README.md file for more details about sources and usage in ./data.

The preprocessed data are composed by three parts:

Source file, each line contains a sentence

Sonia Sotomayor was sworn in Saturday as the Supreme Court 's first Hispanic justice and only third female member in the top U.S. court 's 220-year history.

Target file, each line contains a reference summary

Sotomayor sworn in to top U.S. court.

Object file, each line contains the extracted entities, separated by a delimiter

Sonia Sotomayor <sep> Supreme court <sep> Hispanic <sep> U.S.

Usage

Set parameter and path in config.py

Tokenize with tokenizer.py

Train the model with train.py

Citation

If you find this repo helpful, please cite the following:

@inproceedings{zheng2020controllable,
  title={Controllable Abstractive Sentence Summarization with Guiding Entities},
  author={Zheng, Changmeng and Cai, Yi and Zhang, Guanjie and Li, Qing},
  booktitle={Proceedings of the 28th International Conference on Computational Linguistics},
  pages={5668--5678},
  year={2020}
}

abs-lrmodel's People

Contributors

thecharm avatar

Stargazers

Shahbaz Syed avatar  avatar  avatar David Preti avatar Yuan Hao, Cheng avatar MrChen18 avatar Qiyao Wu avatar  avatar  avatar DICP_Zhou avatar  avatar  avatar

Watchers

 avatar

Forkers

shoaib-19

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.