Pytorch implementation of :
Learning Structured Text Representations
Yang Liu and Mirella Lapata,
Accepted by TACL
-
Dataset Instructions : https://github.com/nlpyang/structured
-
Pre-processing code has been borrowed from : https://github.com/nlpyang/structured
-
We use https://github.com/andersjo/dependency_decoding for chu_liu_edmonds algorithm
-
This code by default requires Pytorch Nightly version (For batched inverse).
-
To run with Pytorch stable use --pytorch_version stable
-
Dependencies are listed in requirements.txt.
-
Create dir saved_models before running