This repository contains our experiments of developing an IRTG (Interpreted Regular Tree Grammar) which implements a mapping between the output of the Stanford Parser, Universal Dependencies v2.1 and 4lang.
Our system for Surface Realization Shared Task 2019 can be found here.
Whenever possible, all code should be written in Python3 and use the repository's virtual environment.
mkvirtualenv -p python3 irtgpython3 -m venv .venvIf the default python executable is Python3 (e.g. on Windows):
python -m venv .venvworkon irtg. .venv/bin/activateUsing CMD.exe:
.venv\Scripts\activate.batUsing powershell:
.\.venv\Scripts\Activate.ps1After activating the virtual environment:
pip install -r requirements.txtdeactivateAlto console usage
java -cp "<path to ALTO's jar>" de.up.ling.irtg.script.ParsingEvaluator "<path to input file>" -g "<path to the grammar file>" -I "<input format>" -O "<output format>" -o "<output file>"