Functions to analyse and manipulate dependency trees, as well as conversions between GF and dependency trees. The main use case is UD (Universal Dependencies), but the code is designed to be completely generic as for annotation scheme. This repository replaces the old gf-contrib/ud2gf code. It is also meant to be used in the 'vd' command of GF and replace the supporting code in gf-core in the future.
In order to avoid duplicating labels, it would be better to allow the labels for a given grammar to be in multiple files. In this example, the file B.labels should only contain labels for funs b1 and b2.
When giving the labels files as arguments to gf-ud, we could give a complete list of labels files, e.g.
gf-ud ud2gf B <startcat> <lang> A.labels B.labels
Or we could keep the existing arguments to ud-gf, and make the module structure a part of the labels files:
Many GF grammars are structured as follows:
If we want to use those grammars with gf-ud, we need the following labels files:
and
In order to avoid duplicating labels, it would be better to allow the labels for a given grammar to be in multiple files. In this example, the file
B.labels
should only contain labels for funsb1
andb2
.When giving the labels files as arguments to gf-ud, we could give a complete list of labels files, e.g.
Or we could keep the existing arguments to ud-gf, and make the module structure a part of the labels files: