KiroSummer / Syntax-aware-Neural-SRL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Syntax-aware Neural Semantic Role Labeling

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.

Train

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/

Test

For test, you should run the predict.sh presentated in the exp-Tree-GRU-w-ELMo/ dir.

./predict.sh 0

About


Languages

Language:Python 99.8%Language:Shell 0.2%