public class StemmedLookupAnnotationToJCasAdapter extends java.lang.Object implements LookupAnnotation, LookupToken
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.lang.String> |
iv_attrMap |
private Annotation |
iv_jcasAnnotObj |
Constructor and Description |
---|
StemmedLookupAnnotationToJCasAdapter(Annotation jcasAnnotObj) |
Modifier and Type | Method and Description |
---|---|
void |
addStringAttribute(java.lang.String attrKey,
java.lang.String attrVal)
Adds an attribute that may be used for filtering.
|
int |
getEndOffset()
Gets the end offset.
|
int |
getLength()
Gets the length of this annotation based on offsets.
|
int |
getStartOffset()
Gets the start offset.
|
java.lang.String |
getStringAttribute(java.lang.String attrKey)
Gets an attribute.
|
java.lang.String |
getText()
if this is a word, return the stemmed word, if available - i.e.
|
private java.util.Map<java.lang.String,java.lang.String> iv_attrMap
private Annotation iv_jcasAnnotObj
public StemmedLookupAnnotationToJCasAdapter(Annotation jcasAnnotObj)
public void addStringAttribute(java.lang.String attrKey, java.lang.String attrVal)
LookupAnnotation
addStringAttribute
in interface LookupAnnotation
public int getEndOffset()
LookupAnnotation
getEndOffset
in interface LookupAnnotation
public int getLength()
LookupAnnotation
getLength
in interface LookupAnnotation
public int getStartOffset()
LookupAnnotation
getStartOffset
in interface LookupAnnotation
public java.lang.String getStringAttribute(java.lang.String attrKey)
LookupAnnotation
getStringAttribute
in interface LookupAnnotation
public java.lang.String getText()
getText
in interface LookupAnnotation
SetupAuiFirstWord