├── Makefile ├── README.md ├── bin ├── evaluate.py ├── evaluate_hc_output.py ├── predict.py ├── run_hc.py └── train.py ├── config ├── example.json ├── gigaword-L8.json ├── hc.json ├── newsroom-CR75.json └── newsroom-L11.json ├── data └── test-data │ ├── bnc.jsonl │ ├── broadcast.jsonl │ ├── duc2004.jsonl │ ├── gigaword.jsonl │ ├── google.jsonl │ └── newsroom.jsonl ├── example.py ├── images └── model.png ├── loaders ├── gigaword.py └── newsroom.py ├── requirements.txt ├── scrl ├── config.py ├── config_hc.py ├── data.py ├── eval_metrics.py ├── hill_climbing.py ├── model.py ├── rewards.py ├── sampling.py ├── training.py └── utils.py └── setup.py /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/README.md -------------------------------------------------------------------------------- /bin/evaluate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/bin/evaluate.py -------------------------------------------------------------------------------- /bin/evaluate_hc_output.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/bin/evaluate_hc_output.py -------------------------------------------------------------------------------- /bin/predict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/bin/predict.py -------------------------------------------------------------------------------- /bin/run_hc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/bin/run_hc.py -------------------------------------------------------------------------------- /bin/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/bin/train.py -------------------------------------------------------------------------------- /config/example.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/config/example.json -------------------------------------------------------------------------------- /config/gigaword-L8.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/config/gigaword-L8.json -------------------------------------------------------------------------------- /config/hc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/config/hc.json -------------------------------------------------------------------------------- /config/newsroom-CR75.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/config/newsroom-CR75.json -------------------------------------------------------------------------------- /config/newsroom-L11.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/config/newsroom-L11.json -------------------------------------------------------------------------------- /data/test-data/bnc.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/data/test-data/bnc.jsonl -------------------------------------------------------------------------------- /data/test-data/broadcast.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/data/test-data/broadcast.jsonl -------------------------------------------------------------------------------- /data/test-data/duc2004.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/data/test-data/duc2004.jsonl -------------------------------------------------------------------------------- /data/test-data/gigaword.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/data/test-data/gigaword.jsonl -------------------------------------------------------------------------------- /data/test-data/google.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/data/test-data/google.jsonl -------------------------------------------------------------------------------- /data/test-data/newsroom.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/data/test-data/newsroom.jsonl -------------------------------------------------------------------------------- /example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/example.py -------------------------------------------------------------------------------- /images/model.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/images/model.png -------------------------------------------------------------------------------- /loaders/gigaword.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/loaders/gigaword.py -------------------------------------------------------------------------------- /loaders/newsroom.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/loaders/newsroom.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/requirements.txt -------------------------------------------------------------------------------- /scrl/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/scrl/config.py -------------------------------------------------------------------------------- /scrl/config_hc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/scrl/config_hc.py -------------------------------------------------------------------------------- /scrl/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/scrl/data.py -------------------------------------------------------------------------------- /scrl/eval_metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/scrl/eval_metrics.py -------------------------------------------------------------------------------- /scrl/hill_climbing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/scrl/hill_climbing.py -------------------------------------------------------------------------------- /scrl/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/scrl/model.py -------------------------------------------------------------------------------- /scrl/rewards.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/scrl/rewards.py -------------------------------------------------------------------------------- /scrl/sampling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/scrl/sampling.py -------------------------------------------------------------------------------- /scrl/training.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/scrl/training.py -------------------------------------------------------------------------------- /scrl/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/scrl/utils.py -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/complementizer/rl-sentence-compression/HEAD/setup.py --------------------------------------------------------------------------------