Modifier and Type | Method and Description |
---|---|
static SuggestedReplacement |
GRPCUtils.fromGRPC(MLServerProto.SuggestedReplacement s) |
Modifier and Type | Method and Description |
---|---|
static List<SuggestedReplacement> |
SuggestedReplacement.convert(List<String> suggestions) |
List<SuggestedReplacement> |
RuleMatch.getSuggestedReplacementObjects() |
protected List<SuggestedReplacement> |
BERTSuggestionRanking.prepareSuggestions(List<SuggestedReplacement> suggestions)
transform suggestions before resorting, e.g. limit resorting to top-n candidates
|
static List<SuggestedReplacement> |
SuggestedReplacement.topMatch(String word) |
static List<SuggestedReplacement> |
SuggestedReplacement.topMatch(String word,
String shortDesc) |
Modifier and Type | Method and Description |
---|---|
static MLServerProto.SuggestedReplacement |
GRPCUtils.toGRPC(SuggestedReplacement s) |
Modifier and Type | Method and Description |
---|---|
protected List<SuggestedReplacement> |
BERTSuggestionRanking.prepareSuggestions(List<SuggestedReplacement> suggestions)
transform suggestions before resorting, e.g. limit resorting to top-n candidates
|
void |
RuleMatch.setLazySuggestedReplacements(Supplier<List<SuggestedReplacement>> replacements)
Set a lazy supplier that will compute suggested replacements
when
RuleMatch.getSuggestedReplacements() or RuleMatch.getSuggestedReplacementObjects() is called. |
void |
RuleMatch.setSuggestedReplacementObjects(List<SuggestedReplacement> replacements) |
Constructor and Description |
---|
SuggestedReplacement(SuggestedReplacement repl) |
Constructor and Description |
---|
RuleMatch(RuleMatch clone,
List<SuggestedReplacement> replacements) |
RuleMatch(RuleMatch clone,
List<SuggestedReplacement> replacements,
boolean ignored) |
Modifier and Type | Method and Description |
---|---|
protected List<SuggestedReplacement> |
MorfologikCatalanSpellerRule.getAdditionalTopSuggestions(List<SuggestedReplacement> suggestions,
String word) |
protected List<SuggestedReplacement> |
MorfologikCatalanSpellerRule.orderSuggestions(List<SuggestedReplacement> suggestions,
String word) |
Modifier and Type | Method and Description |
---|---|
protected List<SuggestedReplacement> |
MorfologikCatalanSpellerRule.getAdditionalTopSuggestions(List<SuggestedReplacement> suggestions,
String word) |
protected List<SuggestedReplacement> |
MorfologikCatalanSpellerRule.orderSuggestions(List<SuggestedReplacement> suggestions,
String word) |
Modifier and Type | Method and Description |
---|---|
protected List<SuggestedReplacement> |
GermanSpellerRule.filterNoSuggestWords(List<SuggestedReplacement> l) |
protected List<SuggestedReplacement> |
GermanSpellerRule.getAdditionalTopSuggestions(List<SuggestedReplacement> suggestions,
String word) |
protected List<SuggestedReplacement> |
GermanSpellerRule.getOnlySuggestions(String word) |
Modifier and Type | Method and Description |
---|---|
protected List<SuggestedReplacement> |
GermanSpellerRule.filterNoSuggestWords(List<SuggestedReplacement> l) |
protected List<SuggestedReplacement> |
GermanSpellerRule.getAdditionalTopSuggestions(List<SuggestedReplacement> suggestions,
String word) |
Modifier and Type | Method and Description |
---|---|
protected List<SuggestedReplacement> |
AbstractEnglishSpellerRule.filterNoSuggestWords(List<SuggestedReplacement> l) |
protected List<SuggestedReplacement> |
AbstractEnglishSpellerRule.filterSuggestions(List<SuggestedReplacement> suggestions) |
protected List<SuggestedReplacement> |
MorfologikAmericanSpellerRule.getAdditionalTopSuggestions(List<SuggestedReplacement> suggestions,
String word) |
protected List<SuggestedReplacement> |
AbstractEnglishSpellerRule.getAdditionalTopSuggestions(List<SuggestedReplacement> suggestions,
String word) |
protected List<SuggestedReplacement> |
AbstractEnglishSpellerRule.getOnlySuggestions(String word) |
Modifier and Type | Method and Description |
---|---|
protected List<SuggestedReplacement> |
AbstractEnglishSpellerRule.filterNoSuggestWords(List<SuggestedReplacement> l) |
protected List<SuggestedReplacement> |
AbstractEnglishSpellerRule.filterSuggestions(List<SuggestedReplacement> suggestions) |
protected List<SuggestedReplacement> |
MorfologikAmericanSpellerRule.getAdditionalTopSuggestions(List<SuggestedReplacement> suggestions,
String word) |
protected List<SuggestedReplacement> |
AbstractEnglishSpellerRule.getAdditionalTopSuggestions(List<SuggestedReplacement> suggestions,
String word) |
Modifier and Type | Method and Description |
---|---|
protected List<SuggestedReplacement> |
MorfologikSpanishSpellerRule.getAdditionalTopSuggestions(List<SuggestedReplacement> suggestions,
String word) |
protected List<SuggestedReplacement> |
MorfologikSpanishSpellerRule.orderSuggestions(List<SuggestedReplacement> suggestions,
String word) |
Modifier and Type | Method and Description |
---|---|
protected List<SuggestedReplacement> |
MorfologikSpanishSpellerRule.getAdditionalTopSuggestions(List<SuggestedReplacement> suggestions,
String word) |
protected List<SuggestedReplacement> |
MorfologikSpanishSpellerRule.orderSuggestions(List<SuggestedReplacement> suggestions,
String word) |
Modifier and Type | Method and Description |
---|---|
protected List<SuggestedReplacement> |
MorfologikFrenchSpellerRule.getAdditionalTopSuggestions(List<SuggestedReplacement> suggestions,
String word) |
protected List<SuggestedReplacement> |
MorfologikFrenchSpellerRule.orderSuggestions(List<SuggestedReplacement> suggestions,
String word) |
Modifier and Type | Method and Description |
---|---|
protected List<SuggestedReplacement> |
MorfologikFrenchSpellerRule.getAdditionalTopSuggestions(List<SuggestedReplacement> suggestions,
String word) |
protected List<SuggestedReplacement> |
MorfologikFrenchSpellerRule.orderSuggestions(List<SuggestedReplacement> suggestions,
String word) |
Modifier and Type | Method and Description |
---|---|
protected List<SuggestedReplacement> |
MorfologikItalianSpellerRule.orderSuggestions(List<SuggestedReplacement> suggestions,
String word) |
Modifier and Type | Method and Description |
---|---|
protected List<SuggestedReplacement> |
MorfologikItalianSpellerRule.orderSuggestions(List<SuggestedReplacement> suggestions,
String word) |
Modifier and Type | Method and Description |
---|---|
protected List<SuggestedReplacement> |
MorfologikRussianSpellerRule.filterNoSuggestWords(List<SuggestedReplacement> l) |
protected List<SuggestedReplacement> |
MorfologikRussianYOSpellerRule.filterNoSuggestWords(List<SuggestedReplacement> l) |
Modifier and Type | Method and Description |
---|---|
protected List<SuggestedReplacement> |
MorfologikRussianSpellerRule.filterNoSuggestWords(List<SuggestedReplacement> l) |
protected List<SuggestedReplacement> |
MorfologikRussianYOSpellerRule.filterNoSuggestWords(List<SuggestedReplacement> l) |
Modifier and Type | Method and Description |
---|---|
protected List<SuggestedReplacement> |
SpellingCheckRule.filterNoSuggestWords(List<SuggestedReplacement> l) |
protected List<SuggestedReplacement> |
SpellingCheckRule.filterSuggestions(List<SuggestedReplacement> suggestions)
Remove prohibited words from suggestions.
|
protected List<SuggestedReplacement> |
SpellingCheckRule.getAdditionalSuggestions(List<SuggestedReplacement> suggestions,
String word)
Get additional suggestions added after other suggestions (note the rule may choose to
re-order the suggestions anyway).
|
protected List<SuggestedReplacement> |
SpellingCheckRule.getAdditionalTopSuggestions(List<SuggestedReplacement> suggestions,
String word)
Get additional suggestions added before other suggestions (note the rule may choose to
re-order the suggestions anyway).
|
protected List<SuggestedReplacement> |
SpellingCheckRule.getOnlySuggestions(String word)
Get suggestions that will replace all other suggestions.
|
Modifier and Type | Method and Description |
---|---|
protected static void |
SpellingCheckRule.addSuggestionsToRuleMatch(String word,
List<SuggestedReplacement> userCandidatesList,
List<SuggestedReplacement> candidatesList,
SuggestionsOrderer orderer,
RuleMatch match) |
protected static void |
SpellingCheckRule.addSuggestionsToRuleMatch(String word,
List<SuggestedReplacement> userCandidatesList,
List<SuggestedReplacement> candidatesList,
SuggestionsOrderer orderer,
RuleMatch match) |
protected List<SuggestedReplacement> |
SpellingCheckRule.filterNoSuggestWords(List<SuggestedReplacement> l) |
protected List<SuggestedReplacement> |
SpellingCheckRule.filterSuggestions(List<SuggestedReplacement> suggestions)
Remove prohibited words from suggestions.
|
protected List<SuggestedReplacement> |
SpellingCheckRule.getAdditionalSuggestions(List<SuggestedReplacement> suggestions,
String word)
Get additional suggestions added after other suggestions (note the rule may choose to
re-order the suggestions anyway).
|
protected List<SuggestedReplacement> |
SpellingCheckRule.getAdditionalTopSuggestions(List<SuggestedReplacement> suggestions,
String word)
Get additional suggestions added before other suggestions (note the rule may choose to
re-order the suggestions anyway).
|
Modifier and Type | Method and Description |
---|---|
protected List<SuggestedReplacement> |
MorfologikSpellerRule.orderSuggestions(List<SuggestedReplacement> suggestions,
String word) |
Modifier and Type | Method and Description |
---|---|
protected List<SuggestedReplacement> |
MorfologikSpellerRule.orderSuggestions(List<SuggestedReplacement> suggestions,
String word) |
Modifier and Type | Method and Description |
---|---|
org.apache.commons.lang3.tuple.Pair<List<SuggestedReplacement>,SortedMap<String,Float>> |
SuggestionsOrdererFeatureExtractor.computeFeatures(List<String> suggestions,
String word,
AnalyzedSentence sentence,
int startPos)
compute features for training or prediction of a ranking model for suggestions
|
List<SuggestedReplacement> |
SuggestionsOrdererFeatureExtractor.orderSuggestions(List<String> suggestions,
String word,
AnalyzedSentence sentence,
int startPos) |
List<SuggestedReplacement> |
SuggestionsOrderer.orderSuggestions(List<String> suggestions,
String word,
AnalyzedSentence sentence,
int startPos) |
Modifier and Type | Method and Description |
---|---|
boolean |
SuggestionsRanker.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
|
Modifier and Type | Method and Description |
---|---|
protected List<SuggestedReplacement> |
MorfologikUkrainianSpellerRule.filterSuggestions(List<SuggestedReplacement> suggestions) |
protected List<SuggestedReplacement> |
MorfologikUkrainianSpellerRule.getAdditionalSuggestions(List<SuggestedReplacement> suggestions,
String word) |
Modifier and Type | Method and Description |
---|---|
protected List<SuggestedReplacement> |
MorfologikUkrainianSpellerRule.filterSuggestions(List<SuggestedReplacement> suggestions) |
protected List<SuggestedReplacement> |
MorfologikUkrainianSpellerRule.getAdditionalSuggestions(List<SuggestedReplacement> suggestions,
String word) |