public class MicroTextTokenizer extends Object
MicroTextTokenizer tokenizer = new MicroTextTokenizer("It's easier to buy something than to make something.");
Stack<LabeledToken> tokenStack = tokenizer.tokenize();
LabeledToken firstToken = tokenStack.get(0);
...
| Modifier and Type | Field and Description |
|---|---|
static List<String> |
abbreviationList |
| Constructor and Description |
|---|
MicroTextTokenizer(String tweetString) |
| Modifier and Type | Method and Description |
|---|---|
String |
getText() |
int |
getTokenPosition(int tokenIndex)
Retrieves the character position in the original string of the specified token.
|
List<String> |
getTokensAsList()
Retrieves the list of tokens as strings.
|
Stack<LabeledToken> |
tokenize()
Invokes the engine to execute the tokenizing process.
|
String |
toString() |
public MicroTextTokenizer(String tweetString)
public Stack<LabeledToken> tokenize()
public String getText()
public List<String> getTokensAsList()
public int getTokenPosition(int tokenIndex)
tokenIndex - the index into the token stackCopyright © 2017. All rights reserved.