public class SuggestionsChanges extends Object
Modifier and Type | Method and Description |
---|---|
org.languagetool.rules.spelling.suggestions.SuggestionChangesTestConfig |
getConfig() |
SuggestionChangesExperiment |
getCurrentExperiment() |
List<SuggestionChangesExperiment> |
getExperiments() |
static SuggestionsChanges |
getInstance()
null if nothing is configured, i.e. in most normal use cases
|
static boolean |
isRunningExperiment(String name) |
void |
setCurrentExperiment(SuggestionChangesExperiment experiment)
For testing changes to suggestion ordering using a data corpus;
iterate over experiments (including grid search for parameters)
original behavior (for A/B testing) can be modeled by an experiment without parameters and an arbitrary name
|
void |
trackExperimentResult(org.apache.commons.lang3.tuple.Pair<SuggestionChangesExperiment,org.languagetool.rules.spelling.suggestions.SuggestionChangesDataset> source,
int position,
int resultTextSize,
long resultComputationTime) |
@Nullable public static SuggestionsChanges getInstance()
public org.languagetool.rules.spelling.suggestions.SuggestionChangesTestConfig getConfig()
@Nullable public SuggestionChangesExperiment getCurrentExperiment()
public void setCurrentExperiment(@Nullable SuggestionChangesExperiment experiment)
public static boolean isRunningExperiment(String name)
public void trackExperimentResult(org.apache.commons.lang3.tuple.Pair<SuggestionChangesExperiment,org.languagetool.rules.spelling.suggestions.SuggestionChangesDataset> source, int position, int resultTextSize, long resultComputationTime)
public List<SuggestionChangesExperiment> getExperiments()