Home

Awesome

crop-rotate-augment

The code for our EMNLP18 paper "Data Augmentation via Dependency Tree Morphing for Low-Resource Languages".

First you need to download UD treebanks v2.1. You can do so by running 'sh preprocess.sh' Then you can either experiment with the method parameters and single connlu files by running 'sh augment_single.sh'. File parameters are:

We also provide the script, augment_all.sh to augment all training UD files. The parameters are:

Beware that this is Python 2.7 code!