public static enum JapaneseTokenizer.Mode extends Enum<JapaneseTokenizer.Mode>
Enum Constant and Description |
---|
EXTENDED
Extended mode outputs unigrams for unknown words.
|
NORMAL
Ordinary segmentation: no decomposition for compounds,
|
SEARCH
Segmentation geared towards search: this includes a
decompounding process for long nouns, also including
the full compound token as a synonym.
|
Modifier and Type | Method and Description |
---|---|
static JapaneseTokenizer.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JapaneseTokenizer.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JapaneseTokenizer.Mode NORMAL
public static final JapaneseTokenizer.Mode SEARCH
public static final JapaneseTokenizer.Mode EXTENDED
public static JapaneseTokenizer.Mode[] values()
for (JapaneseTokenizer.Mode c : JapaneseTokenizer.Mode.values()) System.out.println(c);
public static JapaneseTokenizer.Mode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.