This repository contains codes and configs for training models presented in : Syntax-aware Neural Semantic Role Labeling
We use the deep srl as our basic model. Deep Semantic Role Labeling. And, to use our code, you should install pytorch >= 0.4.0.
To train our syntax-aware neural models, you should set the train.sh and config.json. Then, run
nohup ./train.sh 0 > log.txt 2>&1 &
where 0 is the GPU id. We also give an corresponding example in ./Syntax-aware-DeepSRL-w-ELMo/exp-Tree-GRU-w-ELMo/
For test, you should run the predict.sh presentated in the exp-Tree-GRU-w-ELMo/ dir.
./predict.sh 0