Skip to content

Confusing about relation between meta data and annotations #27

@marcverhagen

Description

@marcverhagen

This is taken from a comment by Fazleh.

Sometimes metadata information of view and annotation in LIF do not match. In the metadata we can have

"metadata": {
   "contains": {
      "http://vocab.lappsgrid.org/Token#pos": {
         "producer": "edu.brandeis.cs.uima.dkpro.StanfordNlpPOSTagger:0.0.1-SNAPSHOT",
         "type": "postagger:dkpro_stanford"   }}}

but the annotations look like

{  
   "@type": "http://vocab.lappsgrid.org/Token",
   "id": "40",
   "start": 25,
   "end": 28,
   "features": { "word": "was",  "pos": "VBD" }}

Fazleh remarked that

The metadata information in view (http://vocab.lappsgrid.org/Token#pos) is correct but in annotation it is not the same (http://vocab.lappsgrid.org/Token)

This is actually correct, but confusing nevertheless. The meta data says that the view contains pos attributes on the Token annotation elements. The @type attribute refers to the type of the annotation element, which is a Token. Since the meta data uses Token#pos we know that the features dictionary of the Token is supposed to have a value for the pos attribute, we do not have an explicit mechanism to map the attribute directly to a type.

Update the LIF specifications so this is clear.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions