Package | Description |
---|---|
cz.cuni.mff.corrector.corrector |
Implementations of correction algorithms.
|
cz.cuni.mff.corrector.grammar |
Regular tree grammars.
|
cz.cuni.mff.corrector.intent |
Correction intents implementation.
|
cz.cuni.mff.corrector.testing |
Profiling tests for measuring performance.
|
Modifier and Type | Field and Description |
---|---|
protected Grammar |
Corrector.treeGrammar
Single type tree grammar object reference.
|
Modifier and Type | Method and Description |
---|---|
static Corrector |
Corrector.createCorrectorInstance(Tree dataTree,
Grammar treeGrammar,
Corrector.AlgorithmStrategy algorithmStrategy,
Corrector.ExecutionApproach executionApproach,
Corrector.SignatureHandling signatureHandling,
boolean profilingTimes,
boolean profilingStats)
Prepares and executes the required correction algorithm.
|
Constructor and Description |
---|
Corrector(Tree dataTree,
Grammar treeGrammar,
Corrector.AlgorithmStrategy algorithmStrategy,
Corrector.ExecutionApproach executionApproach,
Corrector.SignatureHandling signatureHandling,
boolean profilingTimes,
boolean profilingStats)
Internal constructor for the universal corrector implementation.
|
Modifier and Type | Method and Description |
---|---|
static Grammar |
Grammar.createFromDataFile(java.lang.String fileName)
Initializes a new grammar from a provided data file.
|
static Grammar |
Grammar.createFromDataString(java.lang.String grammarString)
Initializes a new grammar from a provided consistent data string.
|
Constructor and Description |
---|
Context(Rule baseRule,
Grammar grammarRef)
Creates a new instance of a grammar context for a given rule.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<Intent> |
Intent.generateNestedIntents(Intent parentIntent,
int initialStratum,
java.lang.String initialState,
Grammar treeGrammar,
java.util.EnumSet<Intent.Type> enabledIntents)
Generates the set of all permitted nested correction intents.
|
static void |
IntentDelete.generateNestedIntents(java.util.List<Intent> outputSet,
Intent parentIntent,
int initialStratum,
java.lang.String initialState,
Grammar treeGrammar)
Generates the set of all permitted nested delete intents.
|
static void |
IntentInsert.generateNestedIntents(java.util.List<Intent> outputSet,
Intent parentIntent,
int initialStratum,
java.lang.String initialState,
Grammar treeGrammar,
java.util.Map<java.lang.String,java.lang.String> transitions)
Generates the set of all permitted nested insert intents.
|
static void |
IntentRename.generateNestedIntents(java.util.List<Intent> outputSet,
Intent parentIntent,
int initialStratum,
java.lang.String initialState,
Grammar treeGrammar,
java.util.Map<java.lang.String,java.lang.String> transitions)
Generates the set of all permitted nested rename intents.
|
static void |
IntentRepair.generateNestedIntents(java.util.List<Intent> outputSet,
Intent parentIntent,
int initialStratum,
java.lang.String initialState,
Grammar treeGrammar,
java.util.Map<java.lang.String,java.lang.String> transitions)
Generates the set of all permitted nested repair intents.
|
Modifier and Type | Method and Description |
---|---|
protected Grammar |
Analysis.acquireGrammarInstance(int grammarId)
Provides the instance of the required evaluation grammar instance.
|