Class SuggestionsOrdererGSoC
- java.lang.Object
-
- org.languagetool.rules.spelling.morfologik.suggestions_ordering.SuggestionsOrdererGSoC
-
- All Implemented Interfaces:
SuggestionsOrderer
@Deprecated public class SuggestionsOrdererGSoC extends java.lang.Object implements SuggestionsOrderer
Deprecated.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
SuggestionsOrdererGSoC.ContextUtils
Deprecated.private static class
SuggestionsOrdererGSoC.NGramUtil
Deprecated.
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
COMMON_DEFAULT_MODEL_PATH
Deprecated.private static java.lang.Integer
DEFAULT_CONTEXT_LENGTH
Deprecated.private boolean
mlAvailable
Deprecated.private SuggestionsOrdererGSoC.NGramUtil
nGramUtil
Deprecated.private static java.lang.String
NO_NGRAM_BASED_MODEL_FILENAME
Deprecated.private biz.k11i.xgboost.Predictor
predictor
Deprecated.private static java.lang.String
SPC_NGRAM_BASED_MODEL_FILENAME
Deprecated.private static java.lang.String
XGBOOST_MODEL_BASE_PATH
Deprecated.
-
Constructor Summary
Constructors Constructor Description SuggestionsOrdererGSoC(Language language, LanguageModel languageModel, java.lang.String ruleId)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
isMlAvailable()
Deprecated.java.util.List<SuggestedReplacement>
orderSuggestions(java.util.List<java.lang.String> suggestions, java.lang.String word, AnalyzedSentence sentence, int startPos)
Deprecated.private float
processRow(java.lang.String sentence, java.lang.String correctedSentence, java.lang.String covered, java.lang.String replacement, java.lang.Integer contextLength)
Deprecated.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.languagetool.rules.spelling.suggestions.SuggestionsOrderer
orderSuggestionsUsingModel
-
-
-
-
Field Detail
-
SPC_NGRAM_BASED_MODEL_FILENAME
private static final java.lang.String SPC_NGRAM_BASED_MODEL_FILENAME
Deprecated.- See Also:
- Constant Field Values
-
NO_NGRAM_BASED_MODEL_FILENAME
private static final java.lang.String NO_NGRAM_BASED_MODEL_FILENAME
Deprecated.- See Also:
- Constant Field Values
-
XGBOOST_MODEL_BASE_PATH
private static final java.lang.String XGBOOST_MODEL_BASE_PATH
Deprecated.- See Also:
- Constant Field Values
-
COMMON_DEFAULT_MODEL_PATH
private static final java.lang.String COMMON_DEFAULT_MODEL_PATH
Deprecated.- See Also:
- Constant Field Values
-
DEFAULT_CONTEXT_LENGTH
private static final java.lang.Integer DEFAULT_CONTEXT_LENGTH
Deprecated.
-
mlAvailable
private boolean mlAvailable
Deprecated.
-
nGramUtil
private SuggestionsOrdererGSoC.NGramUtil nGramUtil
Deprecated.
-
predictor
private biz.k11i.xgboost.Predictor predictor
Deprecated.
-
-
Constructor Detail
-
SuggestionsOrdererGSoC
public SuggestionsOrdererGSoC(Language language, LanguageModel languageModel, java.lang.String ruleId)
Deprecated.
-
-
Method Detail
-
isMlAvailable
public boolean isMlAvailable()
Deprecated.- Specified by:
isMlAvailable
in interfaceSuggestionsOrderer
-
processRow
private float processRow(java.lang.String sentence, java.lang.String correctedSentence, java.lang.String covered, java.lang.String replacement, java.lang.Integer contextLength)
Deprecated.
-
orderSuggestions
public java.util.List<SuggestedReplacement> orderSuggestions(java.util.List<java.lang.String> suggestions, java.lang.String word, AnalyzedSentence sentence, int startPos)
Deprecated.- Specified by:
orderSuggestions
in interfaceSuggestionsOrderer
-
-