hydra.utils.conllu

Utilities for ConLL-U dependency output format.

hydra.utils.conllu.get_conllu(tokens: TokenList, labels: LabelDict, nps: list[bool] | None) → str[source]

Generate a ConLL-U formatted dependency tree representation.

Returns:

the ConLL-U string.