Package opennlp.morfologik.tagdict
Class MorfologikTagDictionary
- java.lang.Object
-
- opennlp.morfologik.tagdict.MorfologikTagDictionary
-
- All Implemented Interfaces:
opennlp.tools.postag.TagDictionary
public class MorfologikTagDictionary extends Object implements opennlp.tools.postag.TagDictionary
A POS Tagger dictionary implementation based on Morfologik binary dictionaries
-
-
Constructor Summary
Constructors Constructor Description MorfologikTagDictionary(morfologik.stemming.Dictionary dict)Creates a case sensitiveMorfologikTagDictionaryMorfologikTagDictionary(morfologik.stemming.Dictionary dict, boolean caseSensitive)Creates MorfologikLemmatizer
-
-
-
Constructor Detail
-
MorfologikTagDictionary
public MorfologikTagDictionary(morfologik.stemming.Dictionary dict) throws IllegalArgumentException, IOExceptionCreates a case sensitiveMorfologikTagDictionary- Parameters:
dict- a Morfologik FSA dictionary- Throws:
IllegalArgumentException- if FSA's root node cannot be acquired (dictionary is empty).IOException- could not read dictionary from dictURL
-
MorfologikTagDictionary
public MorfologikTagDictionary(morfologik.stemming.Dictionary dict, boolean caseSensitive) throws IllegalArgumentException, IOExceptionCreates MorfologikLemmatizer- Parameters:
dict- a Morfologik FSA dictionarycaseSensitive- if true it performs case sensitive lookup- Throws:
IllegalArgumentException- if FSA's root node cannot be acquired (dictionary is empty).IOException- could not read dictionary from dictURL
-
-