public static enum QGramComparator.Tokenizer extends java.lang.Enum<QGramComparator.Tokenizer>
Enum Constant and Description |
---|
BASIC
Produces basic q-grams, so that 'gail' -> 'ga', 'ai', 'il'.
|
ENDS
Produces q-grams with padding, so that 'gail' -> '.g', 'ga', 'ai',
'il', 'l.'.
|
POSITIONAL
Produces positional q-grams, so that 'gail' -> 'ga1', 'ai2', 'il3'.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
qgrams(java.lang.String s,
int q) |
static QGramComparator.Tokenizer |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static QGramComparator.Tokenizer[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QGramComparator.Tokenizer BASIC
public static final QGramComparator.Tokenizer POSITIONAL
public static final QGramComparator.Tokenizer ENDS
public static QGramComparator.Tokenizer[] values()
for (QGramComparator.Tokenizer c : QGramComparator.Tokenizer.values()) System.out.println(c);
public static QGramComparator.Tokenizer valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.util.Set<java.lang.String> qgrams(java.lang.String s, int q)