This is the code we used in the following paper
Yuxuan Wang*, Zhilin Lei*, Yuqiu Ji, Wanxiang Che
Coling 2022
Python 3.6, PyTorch >=1.3.1, ...
First to set the branch:
git checkout -b origin/linear-transfer
Then to the scripts folder:
cd scripts
To train a g2g parser, simply run
./scripts/DFT.sh
Remeber to setup the paths for data, embeddings and other parameters.
All methods in this paper are included in the branch "linear-transfer", except for the Pattern Embedding method which is coded into the branch "pattern".
Thanks to Ma et al. The implementation is based on the dependency parser by Ma et al. (2018) (https://github.com/XuezheMax/NeuroNLP2) and reuses part of its code.