This repository provides the implementation of cross-lingual biaffine graph-based dependency parser which utilizes multilingual cased BERT.
How to run the program:
- Set up a new conda environment with Python 3.
- Download torchtext 0.9.0, torch, nltk, transformers, and matplotlib using pip command.
- Download
ud-treebanks-v2.9
from Universal Dependencies 2.9 and place it insideexternal_resources
folder. - Create
figures
,logs
, andtrained_models
folders to store the results of the experiments. - Set the settings and parameters of the candidate model in
.json
file and store it inside theconfigs
folder. You can find existing examples inside the folder. - Run the training using
python main.py <name of the config file>
, for example:python main.py czech_serbian_few
if you store the config insideconfigs/czech_serbian_few.json
.