Interface SuggestionsRanker
-
- All Superinterfaces:
SuggestionsOrderer
- All Known Implementing Classes:
XGBoostSuggestionsOrderer
public interface SuggestionsRanker extends SuggestionsOrderer
Implementing classes must provide confidence values with the SuggestedReplacement objects returned by orderSuggestions
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
shouldAutoCorrect(List<SuggestedReplacement> rankedSuggestions)
Model output should have been calibrated using a precision-recall curve evaluation, so that a threshold for confidence values with sufficiently high precision for auto correction is known-
Methods inherited from interface org.languagetool.rules.spelling.suggestions.SuggestionsOrderer
isMlAvailable, orderSuggestions, orderSuggestionsUsingModel
-
-
-
-
Method Detail
-
shouldAutoCorrect
boolean shouldAutoCorrect(List<SuggestedReplacement> rankedSuggestions)
Model output should have been calibrated using a precision-recall curve evaluation, so that a threshold for confidence values with sufficiently high precision for auto correction is known- Parameters:
rankedSuggestions
- suggestions returned by orderSuggestions- Returns:
- if confidence is high enough for auto correction
-
-