public class Token extends Object implements Comparable<Token>
| Constructor and Description |
|---|
Token(Sentence sentence,
int start,
int end)
The token is from character start to character end - 1
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Token token2) |
boolean |
contains(int index) |
boolean |
equals(Object obj) |
int |
getEnd() |
int |
getEnd(boolean ignoreWhitespace) |
Sentence |
getSentence() |
int |
getStart() |
int |
getStart(boolean ignoreWhitespace) |
String |
getText() |
int |
hashCode() |
int |
length() |
String |
toString() |
public Token(Sentence sentence, int start, int end)
sentence - start - end - public String getText()
public int getStart()
public int getEnd()
public int getStart(boolean ignoreWhitespace)
public int getEnd(boolean ignoreWhitespace)
public boolean contains(int index)
public int length()
public int compareTo(Token token2)
compareTo in interface Comparable<Token>Copyright © 2018 JULIE Lab, Germany. All rights reserved.