AdjacencyField with MultiLabels


Im using AdjacencyField and I would like each index to hold multiple labels. How would you do this?

Im trying to build a graph parser (similar to the biaffine one), where edges might have multiple labels. The AdjacencyField is used for the (customized) dataset_reader.


Unfortunately, you’ll probably need to write a new Field class for this, based on AdjacencyField, but taking a List[List[str]] for the labels, instead of List[str].

1 Like