org.gcube.indexmanagement.common.linguistics.synonymplugin
Interface SynonymPlugin


public interface SynonymPlugin

The synonym plugin interface.


Method Summary
 String detectEncoding(Object document)
          Method to detect encoding.
 String detectLanguage(Object document)
          Method to detect the language.
 void init(String optConfigFile)
          Method to initialise this plugin, the configuration file is optional, but most language detection tools need some sort of statistics, references and so on.
 

Method Detail

init

void init(String optConfigFile)
Method to initialise this plugin, the configuration file is optional, but most language detection tools need some sort of statistics, references and so on.

Parameters:
optConfigFile - - The config file

detectLanguage

String detectLanguage(Object document)
Method to detect the language.

Parameters:
document - The document
Returns:
The language string

detectEncoding

String detectEncoding(Object document)
Method to detect encoding.

Parameters:
document - The document
Returns:
The encoding string


Copyright © 2013. All Rights Reserved.