|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.cogroo.entities.Token
public abstract class Token
A token is the smallest annotated unit of the text. Examples: "home" "," "." "12.55"
| Constructor Summary | |
|---|---|
Token()
Constructs a token without a lexeme and with a default span (0, 0). |
|
Token(int start,
int end)
Constructs a token without a lexeme and with the given span indexes. |
|
Token(opennlp.tools.util.Span span)
Constructs a token with the given span. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
Chunk |
getChunk()
|
ChunkTag |
getChunkTag()
|
String |
getLexeme()
|
LexemeTypes |
getLexemeType()
|
MorphologicalTag |
getMorphologicalTag()
|
String[] |
getPrimitive()
|
opennlp.tools.util.Span |
getSpan()
|
SyntacticChunk |
getSyntacticChunk()
|
SyntacticTag |
getSyntacticTag()
|
int |
hashCode()
|
void |
setChunk(Chunk chunk)
|
void |
setChunkTag(ChunkTag ct)
|
abstract void |
setLexeme(String lexeme)
|
void |
setMorphologicalTag(MorphologicalTag tag)
|
void |
setPrimitive(String[] primitive)
|
void |
setSpan(opennlp.tools.util.Span span)
|
void |
setSyntacticChunk(SyntacticChunk syntacticChunk)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Token()
public Token(opennlp.tools.util.Span span)
span -
public Token(int start,
int end)
start - the start index of the spanend - the end index of the span| Method Detail |
|---|
public String getLexeme()
public abstract void setLexeme(String lexeme)
public String[] getPrimitive()
public void setPrimitive(String[] primitive)
public MorphologicalTag getMorphologicalTag()
public void setMorphologicalTag(MorphologicalTag tag)
public ChunkTag getChunkTag()
public void setChunkTag(ChunkTag ct)
public void setSpan(opennlp.tools.util.Span span)
public SyntacticTag getSyntacticTag()
public Chunk getChunk()
public void setChunk(Chunk chunk)
public LexemeTypes getLexemeType()
public opennlp.tools.util.Span getSpan()
public String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic void setSyntacticChunk(SyntacticChunk syntacticChunk)
public SyntacticChunk getSyntacticChunk()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||