Skip to content

JiaxunCai/Dynet-Biaffine-SRL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dynet-Biaffine-SRL

This repository implements the semantic role labeler described in the paper A Full End-to-End Semantic Role Labeler, Syntax-agnostic Over Syntax-aware?

The codes are developed based on the Dynet implementation of biaffine dependency parser.

Prerequisite

Dynet Library

Usage (by examples)

Data Preprocess

python preprocess-conll09.py --train /path/to/train.dataset --test /path/to/test.dataset --dev /path/to/dev.dataset
or
python preprocess-conll08.py --train /path/to/train.dataset --test /path/to/test.dataset --dev /path/to/dev.dataset

Train

We use embedding pre-trained by GloVe (Wikipedia 2014 + Gigaword 5, 6B tokens, 100d)

  cd run
  python train.py --config_file ../config.cfg [--dynet-gpu]

Test

  cd run
  python test.py --config_file ../config.cfg [--dynet-gpu]

All configuration options (see in run/config.py) can be specified by the configuration file config.cfg.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published