Class AnnotatorConfig
java.lang.Object
com.yahoo.vespa.indexinglanguage.linguistics.AnnotatorConfig
- All Implemented Interfaces:
Cloneable
- Author:
- Simon Thoresen Hult
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.yahoo.language.process.LinguisticsParametersbooleanstatic intcom.yahoo.language.Languagebooleanintdoubleintintintbooleancom.yahoo.language.process.StemModeinthashCode()booleanbooleanbooleanbooleanbooleansetLanguage(com.yahoo.language.Language language) setLowercase(boolean lowercase) setMaxReplacementCharacters(int count) setMaxReplacementCharactersRatio(double ratio) setMaxTermOccurrences(int maxTermCount) setMaxTokenizeLength(int maxTokenizeLength) setMaxTokenLength(int maxTokenLength) setRemoveAccents(boolean removeAccents) setStemMode(com.yahoo.language.process.StemMode stemMode) setStemMode(String name) toString()
-
Field Details
-
DEFAULT_MAX_TERM_OCCURRENCES
public static final int DEFAULT_MAX_TERM_OCCURRENCES
-
-
Constructor Details
-
AnnotatorConfig
public AnnotatorConfig() -
AnnotatorConfig
-
-
Method Details
-
getLanguage
public com.yahoo.language.Language getLanguage() -
setLanguage
-
getStemMode
public com.yahoo.language.process.StemMode getStemMode() -
setStemMode
-
setStemMode
-
getRemoveAccents
public boolean getRemoveAccents() -
setRemoveAccents
-
getLowercase
public boolean getLowercase() -
setLowercase
-
getMaxTermOccurrences
public int getMaxTermOccurrences() -
setMaxTermOccurrences
-
setMaxTokenLength
-
getMaxTokenLength
public int getMaxTokenLength() -
getDefaultMaxTokenLength
public static int getDefaultMaxTokenLength() -
getMaxReplacementCharactersRatio
public double getMaxReplacementCharactersRatio() -
setMaxReplacementCharactersRatio
-
getMaxReplacementCharacters
public int getMaxReplacementCharacters() -
setMaxReplacementCharacters
-
setMaxTokenizeLength
-
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
-
hashCode
public int hashCode() -
toString
-
parameterString
-