public class SimpleLemmatizer extends Object implements DictionaryLemmatizer
| Constructor and Description |
|---|
SimpleLemmatizer(InputStream dictionary,
String aLang)
Construct a hashmap from the input tab separated dictionary.
|
| Modifier and Type | Method and Description |
|---|---|
HashMap<List<String>,String> |
getDictMap()
Get the Map containing the dictionary.
|
String |
lemmatize(String word,
String postag)
Lemmatize by dictionary lookup.
|
public SimpleLemmatizer(InputStream dictionary, String aLang)
dictionary - the input dictionary via inputstreamaLang - the languagepublic HashMap<List<String>,String> getDictMap()
public String lemmatize(String word, String postag)
DictionaryLemmatizerlemmatize in interface DictionaryLemmatizerword - the surface form wordpostag - the postag assignedCopyright © 2015 IXA pipes. All rights reserved.