|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.creole.annic.PatternAnnotation
public class PatternAnnotation
Pattern Annotation is similar to a GATE Annotation except that it doesn't have any annotation ID but it contains its position in the token stream that is created when indexing documents.
| Constructor Summary | |
|---|---|
PatternAnnotation()
Constructor |
|
| Method Summary | |
|---|---|
void |
addFeature(String key,
String val)
Adds a feature |
int |
getEndOffset()
Gets the end offset |
String |
getFeature(String key)
Gets the value of a feature |
Map<String,String> |
getFeatures()
Gets the Features |
int |
getPosition()
Gets the position of this annotation in the token stream. |
int |
getStartOffset()
Gets the start offset |
String |
getText()
Gets the text of the annotation |
String |
getType()
Gets the type of the annotation |
void |
setEnOffset(int en)
Sets the end offset |
void |
setPosition(int pos)
Sets the position |
void |
setStOffset(int st)
Sets the start offset |
void |
setText(String text)
Sets the TExt |
void |
setType(String type)
Sets the Type |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PatternAnnotation()
| Method Detail |
|---|
public void setType(String type)
type - public void setText(String text)
text - public void setStOffset(int st)
st - public void setEnOffset(int en)
en -
public void addFeature(String key,
String val)
key - val - public void setPosition(int pos)
pos - public Map<String,String> getFeatures()
public String getFeature(String key)
key -
public String getType()
public String getText()
public int getStartOffset()
public int getEndOffset()
public int getPosition()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||