org.gcube.indexmanagement.common.linguistics.languageidplugin
Interface LanguageIdPlugin
- All Known Implementing Classes:
- DummyLangidPlugin, JTextCatPlugin
public interface LanguageIdPlugin
This class loads the real implementation of the language id module.
LANG_UNKNOWN
static final String LANG_UNKNOWN
- See Also:
- Constant Field Values
init
void init(String configFile)
throws IndexException
- Initialise the language id plugin.
- Parameters:
configFile - The config file.
- Throws:
IndexException - The exception thrown in case of failure
detectLanguage
String detectLanguage(String document)
throws IndexException
- Detect the language.
- Parameters:
document - The document with the language to detect.
- Returns:
- The detecetd language.
- Throws:
IndexException - The exception thrown in case of failure.
Copyright © 2013. All Rights Reserved.