public enum LanguageModel extends Enum<LanguageModel>
Enum Constant and Description |
---|
English
English language model.
|
French
French language model.
|
German
German language model.
|
Modifier and Type | Method and Description |
---|---|
CharTrie |
getTrie()
Gets trie.
|
static LanguageModel |
match(String text)
Match language model.
|
static LanguageModel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LanguageModel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LanguageModel English
public static final LanguageModel French
public static final LanguageModel German
public static LanguageModel[] values()
for (LanguageModel c : LanguageModel.values()) System.out.println(c);
public static LanguageModel 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 nullpublic static LanguageModel match(String text)
text
- the textpublic CharTrie getTrie()
Copyright © 2019 SimiaCryptus Software. All rights reserved.