Package opennlp.morfologik.tagdict
Class MorfologikTagDictionary
- java.lang.Object
-
- opennlp.morfologik.tagdict.MorfologikTagDictionary
-
- All Implemented Interfaces:
TagDictionary
public class MorfologikTagDictionary extends Object implements TagDictionary
ATagDictionaryimplementation based on Morfologik binary dictionaries
-
-
Constructor Summary
Constructors Constructor Description MorfologikTagDictionary(morfologik.stemming.Dictionary dict)Initializes a case sensitiveMorfologikTagDictionaryMorfologikTagDictionary(morfologik.stemming.Dictionary dict, boolean caseSensitive)Initializes aMorfologikTagDictionary
-
-
-
Constructor Detail
-
MorfologikTagDictionary
public MorfologikTagDictionary(morfologik.stemming.Dictionary dict) throws IllegalArgumentExceptionInitializes 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 IllegalArgumentExceptionInitializes 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 Detail
-
getTags
public String[] getTags(String word)
- Specified by:
getTagsin interfaceTagDictionary
-
isCaseSensitive
public boolean isCaseSensitive()
- Specified by:
isCaseSensitivein interfaceTagDictionary
-
-