Package banner.annotation
Class Annotation
- java.lang.Object
-
- banner.annotation.Annotation
-
- All Implemented Interfaces:
Comparable<Annotation>
public class Annotation extends Object implements Comparable<Annotation>
-
-
Constructor Summary
Constructors Constructor Description Annotation(int start, int end, String textId, String semanticType, String conceptId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Annotation annotation2)StringgetConceptId()intgetEnd()StringgetSemanticType()intgetStart()StringgetTextId()static voidloadAnnotations(String filename, Map<String,Text> texts, Map<String,Concept> concepts, Map<String,List<Annotation>> annotations)static voidsaveAnnotations(String filename, Map<String,Text> texts, Map<String,List<Annotation>> annotations)voidsetConceptId(String conceptId)voidsetSemanticType(String semanticType)
-
-
-
Method Detail
-
getTextId
public String getTextId()
-
getSemanticType
public String getSemanticType()
-
setSemanticType
public void setSemanticType(String semanticType)
-
getConceptId
public String getConceptId()
-
setConceptId
public void setConceptId(String conceptId)
-
getStart
public int getStart()
-
getEnd
public int getEnd()
-
compareTo
public int compareTo(Annotation annotation2)
- Specified by:
compareToin interfaceComparable<Annotation>
-
loadAnnotations
public static void loadAnnotations(String filename, Map<String,Text> texts, Map<String,Concept> concepts, Map<String,List<Annotation>> annotations) throws IOException
- Throws:
IOException
-
-