public class SequenceRepair
extends java.lang.Object
Constructor and Description |
---|
SequenceRepair(Graph correctionGraph,
Intent.Type intentType)
Creates a new instance of the sequence repair.
|
Modifier and Type | Method and Description |
---|---|
protected void |
combineNestedMends(java.util.List<Mend> outputContainer,
java.util.List<java.util.List<Mend>> pathMends)
Finds all mend combinations for a given sequence.
|
java.util.List<Mend> |
generateSequenceFix()
Transforms the sequence repair into all possible edit sequences.
|
Graph |
getCorrectionGraph()
Returns the associated correction multigraph.
|
Intent.Type |
getIntentType()
Returns the type of the associated correction intent.
|
int |
getRepairCost()
Returns the overall sequence repair cost from the multigraph.
|
public SequenceRepair(Graph correctionGraph, Intent.Type intentType)
correctionGraph
- Reference to the correction multigraph.intentType
- Particular type of associated intent.public Graph getCorrectionGraph()
public int getRepairCost()
public Intent.Type getIntentType()
public java.util.List<Mend> generateSequenceFix()
protected void combineNestedMends(java.util.List<Mend> outputContainer, java.util.List<java.util.List<Mend>> pathMends)
outputContainer
- Output container for generated mends.pathMends
- List of original mend sets to be combined.
Cloned edit operations are used.