Class GermanTagger

java.lang.Object
org.languagetool.tagging.BaseTagger
org.languagetool.tagging.de.GermanTagger
All Implemented Interfaces:
org.languagetool.tagging.Tagger
Direct Known Subclasses:
SwissGermanTagger

public class GermanTagger extends org.languagetool.tagging.BaseTagger
German part-of-speech tagger, requires data file in de/german.dict in the classpath. The POS tagset is described in tagset.txt
Author:
Marcin Milkowski, Daniel Naber
  • Field Summary

    Fields inherited from class org.languagetool.tagging.BaseTagger

    conversionLocale, wordTagger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    @Nullable org.languagetool.AnalyzedTokenReadings
    lookup(String word)
    Return only the first reading of the given word or null.
    List<org.languagetool.tagging.TaggedWord>
    tag(String word)
     
    List<org.languagetool.AnalyzedTokenReadings>
    tag(List<String> sentenceTokens)
     
    List<org.languagetool.AnalyzedTokenReadings>
    tag(List<String> sentenceTokens, boolean ignoreCase)
     

    Methods inherited from class org.languagetool.tagging.BaseTagger

    additionalTags, asAnalyzedToken, asAnalyzedTokenList, asAnalyzedTokenListForTaggedWords, createNullToken, createToken, getAnalyzedTokens, getDictionary, getDictionaryPath, getWordTagger, overwriteWithManualTagger

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GermanTagger

      public GermanTagger()
  • Method Details

    • getManualAdditionsFileName

      public String getManualAdditionsFileName()
      Specified by:
      getManualAdditionsFileName in class org.languagetool.tagging.BaseTagger
    • getManualRemovalsFileName

      public String getManualRemovalsFileName()
      Overrides:
      getManualRemovalsFileName in class org.languagetool.tagging.BaseTagger
    • lookup

      @Nullable public @Nullable org.languagetool.AnalyzedTokenReadings lookup(String word) throws IOException
      Return only the first reading of the given word or null.
      Throws:
      IOException
    • tag

      public List<org.languagetool.tagging.TaggedWord> tag(String word)
    • tag

      public List<org.languagetool.AnalyzedTokenReadings> tag(List<String> sentenceTokens) throws IOException
      Specified by:
      tag in interface org.languagetool.tagging.Tagger
      Overrides:
      tag in class org.languagetool.tagging.BaseTagger
      Throws:
      IOException
    • tag

      public List<org.languagetool.AnalyzedTokenReadings> tag(List<String> sentenceTokens, boolean ignoreCase) throws IOException
      Throws:
      IOException