I am trying out a change to the typesystem (explained below). If it works as I
hope, I would want to contribute this back to the trunk. Before I invest too
much time into this, can anyone tell me if this is likely to break things for
other users? I am thinking of this causing problems reading existing annotated
corpora, like SHARP.
Problem I'm trying to fix:
The DBConsumer database writer from YTEX seems to ignore
BinaryTextRelation types (e.g. LocationOfTextRelation, used for the
bodyLocation feature on annotations like DiseaseDisorderMention). This is
because they are not added to the default AnnotationIndex index and are not
contained in FSArrays or FSLists inside other annotation types, like the
UmlsConcept annotations inside the ontologyConceptArr feature are.
It seems that if I were to change the bodyLocation feature to be a FSArray of
annotations instead of a bare annotation, the DBConsumer should write it to the
output table and add an entry in the anno_link table.
Would changing the type of the bodyLocation feature in certain
IdentifiedAnnotations break things for others?
Thanks,
Sean