Skip to content
/ PacSum Public
forked from mswellhao/PacSum

Unsupervised Extractive Summarization based on Position-Augmented Centrality

Notifications You must be signed in to change notification settings

zhaotl4/PacSum

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PacSum

This code is for paper Sentence Centrality Revisited for Unsupervised Summarization ACL 2019

Some codes are borrowed from pytorch_pretrained_bert and gensim


Dependencies

Python3.6, pytorch >= 1.0, numpy, gensim, pyrouge


Data used in the paper:

Download https://drive.google.com/open?id=1gNKWkZG4dVr5XrOeQBVicy1fdnpH2d5l

Bert models fine-tuned using the approach in the paper:

Download https://drive.google.com/file/d/1wbMlLmnbD_0j7Qs8YY8cSCh935WKKdsP/view?usp=sharing

Tuning the hyperparamters and test the performance using TfIdf or BERT representation

python run.py --rep tfidf --mode tune --tune_data_file path/to/validation/data --test_data_file path/to/test/data
python run.py --rep bert --mode tune --tune_data_file path/to/validation/data --test_data_file path/to/test/data --bert_model_file  path/to/model --bert_config_file path/to/config --bert_vocab_file path/to/vocab

About

Unsupervised Extractive Summarization based on Position-Augmented Centrality

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.3%
  • Shell 0.7%