|
||||||||||
| 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 tag
public 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 sentence| Method 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 Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic boolean equals(edu.mit.csail.brill.TaggedToken tok)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||