Class MorfologikTagger

java.lang.Object
org.languagetool.tagging.MorfologikTagger
All Implemented Interfaces:
WordTagger

public class MorfologikTagger extends Object implements WordTagger
Tags a word using a Morfologik binary dictionary.
Since:
2.8
  • Field Details

    • dictUrl

      private final URL dictUrl
    • dictionary

      private morfologik.stemming.Dictionary dictionary
  • Constructor Details

    • MorfologikTagger

      public MorfologikTagger(String dictPath)
    • MorfologikTagger

      MorfologikTagger(URL dictUrl)
    • MorfologikTagger

      public MorfologikTagger(morfologik.stemming.Dictionary dictionary)
      Constructs a MorfologikTagger with the given morfologik dictionary.
      Since:
      3.4
  • Method Details

    • getDictionary

      private morfologik.stemming.Dictionary getDictionary() throws IOException
      Throws:
      IOException
    • tag

      public List<TaggedWord> tag(String word)
      Specified by:
      tag in interface WordTagger
      Parameters:
      word - the word to be tagged
      Returns:
      the possible POS tags, or an empty list