Interface SuggestionsRanker
- All Superinterfaces:
SuggestionsOrderer
- All Known Implementing Classes:
XGBoostSuggestionsOrderer
Implementing classes must provide confidence values with the SuggestedReplacement objects returned by orderSuggestions
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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 knownMethods inherited from interface org.languagetool.rules.spelling.suggestions.SuggestionsOrderer
isMlAvailable, orderSuggestions, orderSuggestionsUsingModel
-
Method Details
-
shouldAutoCorrect
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
-