Class AnnotatorConfig

java.lang.Object
com.yahoo.vespa.indexinglanguage.linguistics.AnnotatorConfig
All Implemented Interfaces:
Cloneable

public class AnnotatorConfig extends Object implements Cloneable
Author:
Simon Thoresen Hult
  • Field Details

    • DEFAULT_MAX_TERM_OCCURRENCES

      public static final int DEFAULT_MAX_TERM_OCCURRENCES
  • Constructor Details

    • AnnotatorConfig

      public AnnotatorConfig()
    • AnnotatorConfig

      public AnnotatorConfig(AnnotatorConfig other)
  • Method Details

    • getLanguage

      public com.yahoo.language.Language getLanguage()
    • setLanguage

      public AnnotatorConfig setLanguage(com.yahoo.language.Language language)
    • getStemMode

      public com.yahoo.language.process.StemMode getStemMode()
    • setStemMode

      public AnnotatorConfig setStemMode(com.yahoo.language.process.StemMode stemMode)
    • setStemMode

      public AnnotatorConfig setStemMode(String name)
    • getRemoveAccents

      public boolean getRemoveAccents()
    • setRemoveAccents

      public AnnotatorConfig setRemoveAccents(boolean removeAccents)
    • getLowercase

      public boolean getLowercase()
    • setLowercase

      public AnnotatorConfig setLowercase(boolean lowercase)
    • getMaxTermOccurrences

      public int getMaxTermOccurrences()
    • setMaxTermOccurrences

      public AnnotatorConfig setMaxTermOccurrences(int maxTermCount)
    • setMaxTokenLength

      public AnnotatorConfig setMaxTokenLength(int maxTokenLength)
    • getMaxTokenLength

      public int getMaxTokenLength()
    • getDefaultMaxTokenLength

      public static int getDefaultMaxTokenLength()
    • getMaxReplacementCharactersRatio

      public double getMaxReplacementCharactersRatio()
    • setMaxReplacementCharactersRatio

      public AnnotatorConfig setMaxReplacementCharactersRatio(double ratio)
    • getMaxReplacementCharacters

      public int getMaxReplacementCharacters()
    • setMaxReplacementCharacters

      public AnnotatorConfig setMaxReplacementCharacters(int count)
    • setMaxTokenizeLength

      public AnnotatorConfig setMaxTokenizeLength(int maxTokenizeLength)
    • getMaxTokenizeLength

      public int getMaxTokenizeLength()
    • hasNonDefaultMaxTokenLength

      public boolean hasNonDefaultMaxTokenLength()
    • hasNonDefaultMaxTokenizeLength

      public boolean hasNonDefaultMaxTokenizeLength()
    • hasNonDefaultMaxTermOccurrences

      public boolean hasNonDefaultMaxTermOccurrences()
    • hasNonDefaultMaxReplacementCharactersRatio

      public boolean hasNonDefaultMaxReplacementCharactersRatio()
    • hasNonDefaultMaxReplacementCharacters

      public boolean hasNonDefaultMaxReplacementCharacters()
    • asLinguisticsParameters

      public com.yahoo.language.process.LinguisticsParameters asLinguisticsParameters()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • parameterString

      public String parameterString()