public class NGramTokenizer extends Object implements com.wcohen.ss.api.Tokenizer
| Modifier and Type | Class and Description |
|---|---|
class |
NGramTokenizer.BasicToken |
| Constructor and Description |
|---|
NGramTokenizer(int ngram_size) |
| Modifier and Type | Method and Description |
|---|---|
com.wcohen.ss.api.Token |
intern(String s) |
int |
maxTokenIndex() |
Iterator<com.wcohen.ss.api.Token> |
tokenIterator() |
com.wcohen.ss.api.Token[] |
tokenize(String str) |
public com.wcohen.ss.api.Token[] tokenize(String str)
tokenize in interface com.wcohen.ss.api.Tokenizerpublic com.wcohen.ss.api.Token intern(String s)
intern in interface com.wcohen.ss.api.Tokenizerpublic Iterator<com.wcohen.ss.api.Token> tokenIterator()
tokenIterator in interface com.wcohen.ss.api.Tokenizerpublic int maxTokenIndex()
maxTokenIndex in interface com.wcohen.ss.api.TokenizerCopyright © 2020. All rights reserved.