public class WekaTokenizer
extends java.lang.Object
implements org.deeplearning4j.text.tokenization.tokenizer.Tokenizer, java.io.Serializable
Constructor and Description |
---|
WekaTokenizer(java.lang.String content,
weka.core.tokenizers.Tokenizer wekaTokenizer)
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 WekaTokenizer(java.lang.String content, weka.core.tokenizers.Tokenizer wekaTokenizer)
content
- the String to tokenizewekaTokenizer
- the WekaTokenizer Objectpublic int countTokens()
countTokens
in interface org.deeplearning4j.text.tokenization.tokenizer.Tokenizer
public java.util.List<java.lang.String> getTokens()
getTokens
in interface org.deeplearning4j.text.tokenization.tokenizer.Tokenizer
public void setTokenPreProcessor(org.deeplearning4j.text.tokenization.tokenizer.TokenPreProcess tokenPreProcessor)
setTokenPreProcessor
in interface org.deeplearning4j.text.tokenization.tokenizer.Tokenizer
public boolean hasMoreTokens()
hasMoreTokens
in interface org.deeplearning4j.text.tokenization.tokenizer.Tokenizer
public java.lang.String nextToken()
nextToken
in interface org.deeplearning4j.text.tokenization.tokenizer.Tokenizer