Skip to content

An arc-eager transition-based dependency parser that won 1st place in a competition for a master's course. It uses an averaged perceptron to train and has many features including bucketed distance.

License

Notifications You must be signed in to change notification settings

Reem-Alatrash/Dependency-Parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Transition-based Dependency Parser

About

This repository contains An arc-eager transition-based dependency parser for a master's course I took in 2017.

input

The parser takes as input CONLL06-formatted files from the Penn treebank (English) and the TIGER treebank (German).

output

The parser outputs 1 file which in CONLL06 format which contains the predictions. The files is saved as prediction-[lang].conll06 where [lang] refers to the current language being used. Example: prediction-english.conll06

Features

This parser:

Usage

Run the python files via line commands or using any python IDE.

Training

The script can be called using terminal or shell commands with the following argument:

  • < language >: language of the treebank data (either en for English or de for German).
python trainer.py <language>

Example

python trainer.py en
Parsing

The script can be called using terminal or shell commands with the following argument:

  • < language >: language of the treebank data (either en for English or de for German).
python parser.py <language>

Example

python parser.py de

About

An arc-eager transition-based dependency parser that won 1st place in a competition for a master's course. It uses an averaged perceptron to train and has many features including bucketed distance.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages