Skip to content

Semantic Role Labeling with Heterogeneous Syntactic Knowledge

Notifications You must be signed in to change notification settings

KiroSummer/HDP-SRL

Repository files navigation

Semantic Role Labeling with Heterogeneous Syntactic Knowledge

Code for our COLING-2020 paper,

Semantic Role Labeling with Heterogeneous Syntactic Knowledge

Qingrong Xia, Rui Wang, Zhenghua Li, Yue Zhang, and Min Zhang

HDP-SRL

Requirements

Python2, Pytorch0.4.1

Data

SRL Data

We conduct experiments on both Chinese and English SRL datasets, i.e, CPB1.0 and CoNLL-2005. Please follow Chinese-SRL for the data prepration of CPB1.0 and lsgn for the data prepration of CoNLL-2005.

Dependency Data

For Chinese, we use the PCTB and CDT as the dependency treebanks. For English, we use the PTB and UD as the dependency treebanks. As described in our paper, we employ the biaffine parser to obtain the automatic dependency trees of the SRL data. Since only the UD treebank is publicly available, we give an example as follows: ud-conll05-example The last column is the dependency edge probabilities. Besides, we upload the CPB1.0 model (without RoBERTa) in url

Training

Preparing all the data, then you can train our model with the command:

bash train.sh GPU_ID

Test

For evaluation, the bash command is:

bash predict.sh GPU_ID

About

Semantic Role Labeling with Heterogeneous Syntactic Knowledge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published