Giter VIP home page Giter VIP logo

presumm-amicorpus-dialsum's Introduction

About

Disclaimer

The PreSumm model, presented in the EMNLP 2019 paper titled "Text Summarization with Pretrained Encoders" [original code], is not my work. Please credit the appropriate authors for that model.

Purpose of this repository

Contents

RequirementsHow to UseHow to Cite

Requirements

Python 3.5.2, PyRouge [notes]

pip install -r requirements.txt

How to Use

  1. First run: For the first time, you should use single-GPU, so the code can download the BERT model. Use -visible_gpus -1, after downloading, you could kill the process and rerun the code with multi-GPUs.

  2. Download best performing model with PreSumm: CNN/DM BertExtAbs

A. Evaluate on untrained BertSumExtAbs

Modify script with directory where BertSumExtAbs weights are saved and run:

./src/load_custom_data_an_eval.sh

B. Fine-tune BertSumExtAbs For AMI DialSum Meeting Corpus

B.1. Download CoreNLP and export:

export CLASSPATH=./stanford-corenlp-full-2018-10-05/stanford-corenlp-3.9.2.jar

B.2. Prepare dataset

B.3. Fine-tune model with AMI DIalSum dataset (modified settings such as train_steps, lrbert, lrdec, warmup*, ...)

./src/fine_tuning.sh

B.4. Evaluate

./src/eval.sh

Acknowledgement

presumm-amicorpus-dialsum's People

Contributors

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