|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LemmatizerPlugin
The interface that all lemmatizer plugins implement.
| Method Summary | |
|---|---|
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 |
| Method Detail |
|---|
void init(String configFile,
Vector<Language> languages)
throws IndexException
configFile - The config filelanguages - The vector of languages that shall be supported
IndexException - In case of failure
String 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 failure
String 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 failure
void add_language(Language language)
throws IndexException
language - The language to add to the lemmatizer
IndexException - In case of failure
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||