Class PolishTagger

java.lang.Object
org.languagetool.tagging.BaseTagger
org.languagetool.tagging.pl.PolishTagger
All Implemented Interfaces:
Tagger

public class PolishTagger extends BaseTagger
Polish POS tagger based on FSA morphological dictionaries.
  • Constructor Details

    • PolishTagger

      public PolishTagger()
  • Method Details

    • tag

      public final List<AnalyzedTokenReadings> tag(List<String> sentenceTokens)
      Description copied from interface: Tagger
      Returns a list of AnalyzedTokens that assigns each term in the sentence some kind of part-of-speech information (not necessarily just one tag).

      Note that this method takes exactly one sentence. Its implementation may implement special cases for the first word of a sentence, which is usually written with an uppercase letter.

      Specified by:
      tag in interface Tagger
      Overrides:
      tag in class BaseTagger
      Parameters:
      sentenceTokens - the text as returned by a WordTokenizer
    • addTokens

      private void addTokens(List<AnalyzedToken> taggedTokens, List<AnalyzedToken> l)