Class EnglishPartialPosTagFilter

java.lang.Object
org.languagetool.rules.patterns.RuleFilter
org.languagetool.rules.PartialPosTagFilter
org.languagetool.rules.en.EnglishPartialPosTagFilter

public class EnglishPartialPosTagFilter extends org.languagetool.rules.PartialPosTagFilter
A PartialPosTagFilter for English that also runs the disambiguator. Note that the disambiguator is called with a single token, so only rules will apply that have a single <match> element. Warning: Do not use this in disambiguation.xml, it would cause an endless loop, use NoDisambiguationEnglishPartialPosTagFilter instead.
Since:
2.8
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.languagetool.tagging.disambiguation.Disambiguator
     
    private final org.languagetool.tagging.Tagger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected List<org.languagetool.AnalyzedTokenReadings>
    tag(String token)
     

    Methods inherited from class org.languagetool.rules.PartialPosTagFilter

    acceptRuleMatch

    Methods inherited from class org.languagetool.rules.patterns.RuleFilter

    getRequired, matches

    Methods inherited from class java.lang.Object

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

    • tagger

      private final org.languagetool.tagging.Tagger tagger
    • disambiguator

      private final org.languagetool.tagging.disambiguation.Disambiguator disambiguator
  • Constructor Details

    • EnglishPartialPosTagFilter

      public EnglishPartialPosTagFilter()
  • Method Details

    • tag

      protected List<org.languagetool.AnalyzedTokenReadings> tag(String token)
      Specified by:
      tag in class org.languagetool.rules.PartialPosTagFilter