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.
|
tokenizeToSet
public QGram(int q)
q
- size of the tokenspublic int getQ()
public List<String> tokenizeToList(String input)
Tokenizer
input
- input string to tokenizeCopyright © 2014–2018. All rights reserved.