Tokenizers.qGram(int) instead@Deprecated public class QGram extends AbstractTokenizer
This class is immutable and thread-safe.
| Constructor and Description |
|---|
QGram(int q)
Deprecated.
Constructs a q-gram tokenizer with the given q.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getQ()
Deprecated.
Returns the q of this tokenizer.
|
List<String> |
tokenizeToList(String input)
Deprecated.
Return tokenized version of a string as a list of tokens.
|
String |
toString()
Deprecated.
|
tokenizeToSetpublic QGram(int q)
q - size of the tokenspublic int getQ()
public List<String> tokenizeToList(String input)
Tokenizerinput - input string to tokenizeCopyright © 2014–2018. All rights reserved.