Open lgessler opened 10 months ago
@michaelpginn makes the good point that given their different behaviors, the version of this used for tokens should probably be different from the one used for spans and relations.
vocab-layer
(global): has a name
, also layer-type
(token/span/relation)vocab-item
(global): has a form
(for tokens, this is a reference form; for non-token applications this is just the value of e.g. the POS tag); has properties
(arbitrary map of KVPs for now, could make this structured in the future to e.g. provide validation)vocab-map
(document-level): maps between tokens/spans/relations/... and a vocabulary item. Has members
: collection of IDs of linked items
Implement Vocabularies, as specified in the documentation.