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.


Field Summary
static String LANG_UNKNOWN
           
 
Method Summary
 String detectLanguage(String document)
          Detect the language.
 void init(String configFile)
          Initialise the language id plugin.
 

Field Detail

LANG_UNKNOWN

static final String LANG_UNKNOWN
See Also:
Constant Field Values
Method Detail

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.