Class 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:
    NoDisambiguationEnglishPartialPosTagFilter
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.languagetool.tagging.disambiguation.Disambiguator disambiguator  
      private org.languagetool.tagging.Tagger tagger  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.List<org.languagetool.AnalyzedTokenReadings> tag​(java.lang.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 Detail

      • tagger

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

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

      • EnglishPartialPosTagFilter

        public EnglishPartialPosTagFilter()
    • Method Detail

      • tag

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