Class MorfologikFilter

All Implemented Interfaces:
Closeable, AutoCloseable, Unwrappable<TokenStream>

public class MorfologikFilter extends TokenFilter
TokenFilter using Morfologik library to transform input tokens into lemma and morphosyntactic (POS) tokens. Applies to Polish only.

MorfologikFilter contains a MorphosyntacticTagsAttribute, which provides morphosyntactic annotations for produced lemmas. See the Morfologik documentation for details.

See Also:
  • Constructor Details

    • MorfologikFilter

      public MorfologikFilter(TokenStream in)
      Creates a filter with the default (Polish) dictionary.
    • MorfologikFilter

      public MorfologikFilter(TokenStream in, morfologik.stemming.Dictionary dict)
      Creates a filter with a given dictionary.
      Parameters:
      in - input token stream.
      dict - Dictionary to use for stemming.
  • Method Details