Package org.omegat.tokenizer
Class HunspellTokenizer
- java.lang.Object
-
- org.omegat.tokenizer.BaseTokenizer
-
- org.omegat.tokenizer.HunspellTokenizer
-
- All Implemented Interfaces:
ITokenizer
public class HunspellTokenizer extends BaseTokenizer
Methods for tokenize string.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.omegat.tokenizer.ITokenizer
ITokenizer.StemmingMode
-
-
Field Summary
-
Fields inherited from class org.omegat.tokenizer.BaseTokenizer
TOKENIZER_DEBUG_PROVIDER
-
-
Constructor Summary
Constructors Constructor Description HunspellTokenizer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
getSupportedLanguages()
Return an array of language strings (xx-yy
) indicating the tokenizer's supported languages.static void
loadPlugins()
static void
unloadPlugins()
-
Methods inherited from class org.omegat.tokenizer.BaseTokenizer
tokenizeVerbatim, tokenizeVerbatimToStrings, tokenizeWords, tokenizeWordsToStrings
-
-
-
-
Method Detail
-
getSupportedLanguages
public java.lang.String[] getSupportedLanguages()
Description copied from interface:ITokenizer
Return an array of language strings (xx-yy
) indicating the tokenizer's supported languages. Meant for tokenizers for which the supported languages can only be determined at runtime, like theHunspellTokenizer
.Indicate that this should be used by setting the
Tokenizer
annotation to contain onlyTokenizer.DISCOVER_AT_RUNTIME
.- Specified by:
getSupportedLanguages
in interfaceITokenizer
- Overrides:
getSupportedLanguages
in classBaseTokenizer
-
loadPlugins
public static void loadPlugins()
-
unloadPlugins
public static void unloadPlugins()
-
-