Class 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 Detail

      • MorfologikTagDictionary

        public MorfologikTagDictionary​(morfologik.stemming.Dictionary dict,
                                       boolean caseSensitive)
                                throws IllegalArgumentException,
                                       IOException
        Creates MorfologikLemmatizer
        Parameters:
        dict - a Morfologik FSA dictionary
        caseSensitive - 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
    • Method Detail

      • getTags

        public String[] getTags​(String word)
        Specified by:
        getTags in interface opennlp.tools.postag.TagDictionary