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 classSuggestionsOrdererGSoC.ContextUtilsDeprecated.private static classSuggestionsOrdererGSoC.NGramUtilDeprecated.
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringCOMMON_DEFAULT_MODEL_PATHDeprecated.private static java.lang.IntegerDEFAULT_CONTEXT_LENGTHDeprecated.private booleanmlAvailableDeprecated.private SuggestionsOrdererGSoC.NGramUtilnGramUtilDeprecated.private static java.lang.StringNO_NGRAM_BASED_MODEL_FILENAMEDeprecated.private biz.k11i.xgboost.PredictorpredictorDeprecated.private static java.lang.StringSPC_NGRAM_BASED_MODEL_FILENAMEDeprecated.private static java.lang.StringXGBOOST_MODEL_BASE_PATHDeprecated.
-
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 booleanisMlAvailable()Deprecated.java.util.List<SuggestedReplacement>orderSuggestions(java.util.List<java.lang.String> suggestions, java.lang.String word, AnalyzedSentence sentence, int startPos)Deprecated.private floatprocessRow(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:
isMlAvailablein 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:
orderSuggestionsin interfaceSuggestionsOrderer
-
-