public interface LanguageIdPlugin
| Modifier and Type | Field and Description |
|---|---|
static String |
LANG_UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
String |
detectLanguage(String document)
Detect the language.
|
void |
init(String configFile)
Initialise the language id plugin.
|
static final String LANG_UNKNOWN
void init(String configFile) throws IndexException
configFile - The config file.IndexException - The exception thrown in case of failureString detectLanguage(String document) throws IndexException
document - The document with the language to detect.IndexException - The exception thrown in case of failure.Copyright © 2014. All Rights Reserved.