public interface LemmatizerPlugin
| Modifier and Type | Method and Description |
|---|---|
void |
add_language(Language language)
Method to initialise this plugin, the configuration file is optional,
but most language detection tools need some sort
of statistics, references and so on.
|
void |
init(String configFile,
Vector<Language> languages)
Method to initialise this plugin, the configuration file is optional.
|
String |
lemmatize_string(String stringToLemmatize,
Language language)
Method to lemmatize a word
|
String |
lemmatize_word(String wordToLemmatize,
Language language)
Method to lemmatize a word
|
void init(String configFile, Vector<Language> languages) throws IndexException
configFile - The config filelanguages - The vector of languages that shall be supportedIndexException - In case of failureString lemmatize_word(String wordToLemmatize, Language language) throws IndexException
wordToLemmatize - The word to lemmatize.language - The language to use when getting
the lemmatized forms.IndexException - In case of failureString lemmatize_string(String stringToLemmatize, Language language) throws IndexException
stringToLemmatize - The string to lemmatize. The string can
be a single word,
or several words
separated by spaces.language - The language to use when getting the lemmatized forms.IndexException - In case of failurevoid add_language(Language language) throws IndexException
language - The language to add to the lemmatizerIndexException - In case of failureCopyright © 2014. All Rights Reserved.