public class TweetNLPTokenizer
extends java.lang.Object
implements org.deeplearning4j.text.tokenization.tokenizer.Tokenizer, java.io.Serializable
| Constructor and Description |
|---|
TweetNLPTokenizer(java.lang.String content)
initializes the Object
|
| Modifier and Type | Method and Description |
|---|---|
int |
countTokens() |
java.util.List<java.lang.String> |
getTokens() |
boolean |
hasMoreTokens() |
java.lang.String |
nextToken() |
void |
setTokenPreProcessor(org.deeplearning4j.text.tokenization.tokenizer.TokenPreProcess tokenPreProcessor) |
public TweetNLPTokenizer(java.lang.String content)
content - the String to tokenizepublic int countTokens()
countTokens in interface org.deeplearning4j.text.tokenization.tokenizer.Tokenizerpublic java.util.List<java.lang.String> getTokens()
getTokens in interface org.deeplearning4j.text.tokenization.tokenizer.Tokenizerpublic void setTokenPreProcessor(org.deeplearning4j.text.tokenization.tokenizer.TokenPreProcess tokenPreProcessor)
setTokenPreProcessor in interface org.deeplearning4j.text.tokenization.tokenizer.Tokenizerpublic boolean hasMoreTokens()
hasMoreTokens in interface org.deeplearning4j.text.tokenization.tokenizer.Tokenizerpublic java.lang.String nextToken()
nextToken in interface org.deeplearning4j.text.tokenization.tokenizer.Tokenizer