|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.mit.csail.brill.TaggedToken
Object representing a tagged token. A Sentence
is a collection of such objects.
Constructor Summary | |
TaggedToken(String s,
String pos)
Constructs a tagged token. |
|
TaggedToken(String s,
String pos,
edu.mit.csail.brill.Sentence sent,
int i)
Constructs a tagged token. |
Method Summary | |
boolean |
equals(Object obj)
|
boolean |
equals(edu.mit.csail.brill.TaggedToken tok)
|
int |
getOffset()
Returns the character offset of this token with respect to the enclosing sentence. |
edu.mit.csail.brill.Sentence |
getSentence()
Returns the sentence to which this token belongs. |
String |
getToken()
Returns the token string. |
String |
getTokenType()
Returns the part-of-speech type of this token. |
int |
hashCode()
|
void |
setOffest(int i)
Sets the character offset of this token with respect to the enclosing sentence. |
void |
setSentence(edu.mit.csail.brill.Sentence s)
Sets the sentence to which this token belongs. |
String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TaggedToken(String s, String pos)
s
- the tokenpos
- the part-of-speech tagpublic TaggedToken(String s, String pos, edu.mit.csail.brill.Sentence sent, int i)
s
- the tokenpos
- the part-of-speech tagsent
- the sentence to which this token belongsi
- the offset of this token relative to the enclosing sentenceMethod Detail |
public int getOffset()
public edu.mit.csail.brill.Sentence getSentence()
public String getToken()
public String getTokenType()
public void setOffest(int i)
public void setSentence(edu.mit.csail.brill.Sentence s)
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public boolean equals(edu.mit.csail.brill.TaggedToken tok)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |