|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AnnotationFS
Interface for Annotation Feature Structures.
Method Summary | |
---|---|
int |
getBegin()
Get the start position of the annotation as character offset into the text. |
String |
getCoveredText()
Get the text covered by an annotation as a string. |
int |
getEnd()
Get the end position of the annotation as character offset into the text. |
Methods inherited from interface org.apache.uima.cas.AnnotationBaseFS |
---|
getView |
Methods inherited from interface org.apache.uima.cas.FeatureStructure |
---|
clone, equals, getBooleanValue, getByteValue, getCAS, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getLongValue, getShortValue, getStringValue, getType, hashCode, setBooleanValue, setByteValue, setDoubleValue, setFeatureValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue |
Method Detail |
---|
int getBegin()
0
, the offset of the first character in the text.
int getEnd()
(getEnd()-getBegin()) == getCoveredText().length()
.
String getCoveredText()
docText
is your document
text and annot
an annotation, then
annot.getCoveredText().equals(docText.substring(annot.getBegin(),
annot.getEnd()))
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |