Class BretonTagger

java.lang.Object
org.languagetool.tagging.BaseTagger
org.languagetool.tagging.br.BretonTagger
All Implemented Interfaces:
Tagger

public class BretonTagger extends BaseTagger
Breton Tagger. Based on Breton diction diction from apertium: Copyright (C) 2008--2010 Francis Tyers (ftyers@prompsit.com) Copyright (C) 2009--2010 Fulup Jakez (fulup.jakez@ofis-bzh.org) Copyright (C) 2009 Gwenvael Jekel (jequelg@yahoo.fr) Development supported by: * Prompsit Language Engineering, S. L. * Ofis ar Brezhoneg * Grup Transducens, Universitat d'Alacant Implemented in FSA.
  • Field Details

    • patternSuffix

      private static final Pattern patternSuffix
    • conversionLocale

      private final Locale conversionLocale
  • Constructor Details

    • BretonTagger

      public BretonTagger()
  • Method Details

    • tag

      public List<AnalyzedTokenReadings> tag(List<String> sentenceTokens) throws IOException
      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
      Throws:
      IOException
    • addTokens

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