Class FrenchTagger

java.lang.Object
org.languagetool.tagging.BaseTagger
org.languagetool.tagging.fr.FrenchTagger
All Implemented Interfaces:
Tagger

public class FrenchTagger extends BaseTagger
French Tagger Based on Dicollecte (http://www.dicollecte.org/) implemented in FSA.
  • Field Details

    • INSTANCE

      public static final FrenchTagger INSTANCE
    • VERB

      private static final Pattern VERB
    • PREFIXES_FOR_VERBS

      private static final Pattern PREFIXES_FOR_VERBS
    • NOUN_ADJ

      private static final Pattern NOUN_ADJ
    • PREFIXES_NOUN_ADJ

      private static final Pattern PREFIXES_NOUN_ADJ
    • PREFIXES_FOR_NOUN_ADJ

      private static final Pattern PREFIXES_FOR_NOUN_ADJ
    • ambigousTokens

      private List<String> ambigousTokens
  • Constructor Details

    • FrenchTagger

      public FrenchTagger()
  • Method Details

    • overwriteWithManualTagger

      public boolean overwriteWithManualTagger()
      Description copied from class: BaseTagger
      If true, tags from the binary dictionary (*.dict) will be overwritten by manual tags from the plain text dictionary.
      Overrides:
      overwriteWithManualTagger in class BaseTagger
    • tag

      public 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
    • tagWord

      private List<AnalyzedToken> tagWord(String word, String originalWord)
    • additionalTags

      @Nullable protected List<AnalyzedToken> additionalTags(String word)
    • addTokens

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