public class Annotation extends Object implements Comparable<Annotation>
| Constructor and Description |
|---|
Annotation(int start,
int end,
String textId,
String semanticType,
String conceptId) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Annotation annotation2) |
String |
getConceptId() |
int |
getEnd() |
String |
getSemanticType() |
int |
getStart() |
String |
getTextId() |
static void |
loadAnnotations(String filename,
Map<String,Text> texts,
Map<String,Concept> concepts,
Map<String,List<Annotation>> annotations) |
static void |
saveAnnotations(String filename,
Map<String,Text> texts,
Map<String,List<Annotation>> annotations) |
void |
setConceptId(String conceptId) |
void |
setSemanticType(String semanticType) |
public String getTextId()
public String getSemanticType()
public void setSemanticType(String semanticType)
public String getConceptId()
public void setConceptId(String conceptId)
public int getStart()
public int getEnd()
public int compareTo(Annotation annotation2)
compareTo in interface Comparable<Annotation>public static void loadAnnotations(String filename, Map<String,Text> texts, Map<String,Concept> concepts, Map<String,List<Annotation>> annotations) throws IOException
IOExceptionCopyright © 2018 JULIE Lab, Germany. All rights reserved.