public class AnnotationIdCollection extends Object
Modifier and Type | Field and Description |
---|---|
static int |
NO_ENTITY_ID |
Constructor and Description |
---|
AnnotationIdCollection(ArrayList<BinaryTextRelation> temporalRelation) |
Modifier and Type | Method and Description |
---|---|
org.apache.uima.jcas.tcas.Annotation |
getAnnotation(org.apache.uima.jcas.tcas.Annotation entity) |
org.apache.uima.jcas.tcas.Annotation |
getAnnotation(int entityId) |
int |
getAnnotationId(org.apache.uima.jcas.tcas.Annotation entity) |
Set<Integer> |
getAnnotationIds() |
public static final int NO_ENTITY_ID
public AnnotationIdCollection(ArrayList<BinaryTextRelation> temporalRelation)
public Set<Integer> getAnnotationIds()
public int getAnnotationId(org.apache.uima.jcas.tcas.Annotation entity)
entity
- some entity, be it unique on its own or part of a coreference chainpublic org.apache.uima.jcas.tcas.Annotation getAnnotation(int entityId)
entityId
- some idpublic org.apache.uima.jcas.tcas.Annotation getAnnotation(org.apache.uima.jcas.tcas.Annotation entity)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.