Package opennlp.morfologik.tagdict
Class MorfologikTagDictionary
java.lang.Object
opennlp.morfologik.tagdict.MorfologikTagDictionary
- All Implemented Interfaces:
TagDictionary
A
TagDictionary implementation based on Morfologik binary
dictionaries-
Constructor Summary
ConstructorsConstructorDescriptionMorfologikTagDictionary(morfologik.stemming.Dictionary dict) Initializes a case sensitiveMorfologikTagDictionaryMorfologikTagDictionary(morfologik.stemming.Dictionary dict, boolean caseSensitive) Initializes aMorfologikTagDictionary -
Method Summary
-
Constructor Details
-
MorfologikTagDictionary
Initializes a case sensitiveMorfologikTagDictionary- Parameters:
dict- A Morfologik FSADictionary.- Throws:
IllegalArgumentException- Thrown if FSA's root node cannot be acquired (dictionary is empty).
-
MorfologikTagDictionary
public MorfologikTagDictionary(morfologik.stemming.Dictionary dict, boolean caseSensitive) throws IllegalArgumentException Initializes aMorfologikTagDictionary- Parameters:
dict- A Morfologik FSADictionary.caseSensitive- Iftrueit performs case-sensitive lookup- Throws:
IllegalArgumentException- Thrown if FSA's root node cannot be acquired (dictionary is empty).
-
-
Method Details
-
getTags
- Specified by:
getTagsin interfaceTagDictionary
-
isCaseSensitive
public boolean isCaseSensitive()- Specified by:
isCaseSensitivein interfaceTagDictionary
-