├── LICENSE ├── README.md ├── bert_data └── README.md ├── bert_pretrained └── README.md ├── models └── README.md ├── requirements.txt ├── results └── .gitignore ├── slides.pdf └── src ├── __init__.py ├── baseline.py ├── cal_rouge.py ├── context_rewriter.py ├── distributed.py ├── exp_base.py ├── exp_guidabs.py ├── exp_varext_guidabs.py ├── models ├── __init__.py ├── adam.py ├── data_loader.py ├── decoder.py ├── encoder.py ├── loss.py ├── model_builder.py ├── neural.py ├── optimizers.py ├── predictor.py ├── predictor_ext.py ├── reporter.py ├── reporter_ext.py ├── trainer.py └── trainer_ext.py ├── others ├── __init__.py ├── logging.py ├── pyrouge.py ├── tokenization.py └── utils.py ├── prepro ├── __init__.py ├── data_builder.py └── utils.py ├── presumm ├── model_builder.py └── trainer_ext.py ├── train_abstractive.py └── translate ├── __init__.py ├── beam.py └── penalties.py /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/README.md -------------------------------------------------------------------------------- /bert_data/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/bert_data/README.md -------------------------------------------------------------------------------- /bert_pretrained/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/bert_pretrained/README.md -------------------------------------------------------------------------------- /models/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/models/README.md -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/requirements.txt -------------------------------------------------------------------------------- /results/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /slides.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/slides.pdf -------------------------------------------------------------------------------- /src/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/baseline.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/baseline.py -------------------------------------------------------------------------------- /src/cal_rouge.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/cal_rouge.py -------------------------------------------------------------------------------- /src/context_rewriter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/context_rewriter.py -------------------------------------------------------------------------------- /src/distributed.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/distributed.py -------------------------------------------------------------------------------- /src/exp_base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/exp_base.py -------------------------------------------------------------------------------- /src/exp_guidabs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/exp_guidabs.py -------------------------------------------------------------------------------- /src/exp_varext_guidabs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/exp_varext_guidabs.py -------------------------------------------------------------------------------- /src/models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/models/adam.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/models/adam.py -------------------------------------------------------------------------------- /src/models/data_loader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/models/data_loader.py -------------------------------------------------------------------------------- /src/models/decoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/models/decoder.py -------------------------------------------------------------------------------- /src/models/encoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/models/encoder.py -------------------------------------------------------------------------------- /src/models/loss.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/models/loss.py -------------------------------------------------------------------------------- /src/models/model_builder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/models/model_builder.py -------------------------------------------------------------------------------- /src/models/neural.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/models/neural.py -------------------------------------------------------------------------------- /src/models/optimizers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/models/optimizers.py -------------------------------------------------------------------------------- /src/models/predictor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/models/predictor.py -------------------------------------------------------------------------------- /src/models/predictor_ext.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/models/predictor_ext.py -------------------------------------------------------------------------------- /src/models/reporter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/models/reporter.py -------------------------------------------------------------------------------- /src/models/reporter_ext.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/models/reporter_ext.py -------------------------------------------------------------------------------- /src/models/trainer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/models/trainer.py -------------------------------------------------------------------------------- /src/models/trainer_ext.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/models/trainer_ext.py -------------------------------------------------------------------------------- /src/others/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/others/logging.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/others/logging.py -------------------------------------------------------------------------------- /src/others/pyrouge.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/others/pyrouge.py -------------------------------------------------------------------------------- /src/others/tokenization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/others/tokenization.py -------------------------------------------------------------------------------- /src/others/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/others/utils.py -------------------------------------------------------------------------------- /src/prepro/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/prepro/data_builder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/prepro/data_builder.py -------------------------------------------------------------------------------- /src/prepro/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/prepro/utils.py -------------------------------------------------------------------------------- /src/presumm/model_builder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/presumm/model_builder.py -------------------------------------------------------------------------------- /src/presumm/trainer_ext.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/presumm/trainer_ext.py -------------------------------------------------------------------------------- /src/train_abstractive.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/train_abstractive.py -------------------------------------------------------------------------------- /src/translate/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/translate/beam.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/translate/beam.py -------------------------------------------------------------------------------- /src/translate/penalties.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baoguangsheng/ctx-rewriter-for-summ/HEAD/src/translate/penalties.py --------------------------------------------------------------------------------