Uses of Class
nzilbb.editpath.EditStep
-
Packages that use EditStep Package Description nzilbb.editpath Implementation of Wagner-Fischer algorithm to determine the minimum edit path.nzilbb.encoding.comparator Comparators for helpingEditComparatormap elements of one encoding to elements of another. -
-
Uses of EditStep in nzilbb.editpath
Methods in nzilbb.editpath that return EditStep Modifier and Type Method Description EditStep<T>DefaultEditComparator. compare(T from, T to)EditComparatormethod: Compares two sequence elements, and evaluates the distance between them.EditStep<T>EditComparator. compare(T from, T to)Compares two sequence elements, and evaluates the distance between them.EditStep<T>DefaultEditComparator. delete(T from)The distance for deleting the given element.EditStep<T>EditComparator. delete(T from)The distance for deleting the given element.EditStep<T>EditStep. getBackTrace()Getter foreBackTrace: Backtrace to the previous (minimum) edit in the sequence.EditStep<T>DefaultEditComparator. insert(T to)The distance for inserting the given element.EditStep<T>EditComparator. insert(T to)The distance for inserting the given element.EditStep<T>EditStep. setBackTrace(EditStep<T> eNewBackTrace)Setter foreBackTrace: Backtrace to the previous (minimum) edit in the sequence.EditStep<T>EditStep. setFrom(T oNewFrom)Setter foroFrom: The element in the start sequence.EditStep<T>EditStep. setOperation(EditStep.StepOperation enNewOperation)Setter forenOperation: The operation represented by this step.EditStep<T>EditStep. setStepDistance(double newStepDistance)Setter forstepDistance: The distance represented by this single step.EditStep<T>EditStep. setTo(T oNewTo)Setter foroTo: The element in the end sequence.Methods in nzilbb.editpath that return types with arguments of type EditStep Modifier and Type Method Description List<EditStep<T>>MinimumEditPath. collapse(List<EditStep<T>> path)Collapses edit path so that subsequent delete/create steps are collapsed into a single change step, except those that would result in a change more than 3 times more costly than a delete and insert.List<EditStep<T>>MinimumEditPath. collapse(List<EditStep<T>> path, boolean ifChangeIsReasonable)Collapses edit path so that subsequent delete/create steps are collapsed into a single change step.List<EditStep<T>>MinimumEditPath. minimumEditPath(List<T> from, List<T> to)Computes the minimum path from one sequence to another.List<EditStep<Character>>MinimumEditPathString. minimumEditPath(String sFrom, String sTo)Computes the minimum path from one sequence to another.Methods in nzilbb.editpath with parameters of type EditStep Modifier and Type Method Description EditStep<T>EditStep. setBackTrace(EditStep<T> eNewBackTrace)Setter foreBackTrace: Backtrace to the previous (minimum) edit in the sequence.Method parameters in nzilbb.editpath with type arguments of type EditStep Modifier and Type Method Description List<EditStep<T>>MinimumEditPath. collapse(List<EditStep<T>> path)Collapses edit path so that subsequent delete/create steps are collapsed into a single change step, except those that would result in a change more than 3 times more costly than a delete and insert.List<EditStep<T>>MinimumEditPath. collapse(List<EditStep<T>> path, boolean ifChangeIsReasonable)Collapses edit path so that subsequent delete/create steps are collapsed into a single change step.doubleMinimumEditPath. errorRate(List<EditStep<T>> path)Return the error rate for the given path.Map<T,List<T>>MinimumEditPath. mapOneToMany(List<EditStep<T>> path)Maps 'from' elements to 'to' elements, allowing there to be zero or more 'to' elements per 'from' element.Map<T,List<T>>MinimumEditPath. mapOneToMany(List<EditStep<T>> path, BiFunction<T,T,Boolean> fromContainsTo)Maps 'from' elements to 'to' elements, allowing there to be zero or more 'to' elements per 'from' element.static StringMinimumEditPathString. printPath(List<EditStep<Character>> path)Prints the edit path, by displaying the from string on one line and the to string on the next line, vertically aligned to indicate changes, and marking inserts/deletes with a mid-dot '·' (a character unlikely to really appear in a string, so will likely unambiguously indicate a lack in one of the strings).Constructors in nzilbb.editpath with parameters of type EditStep Constructor Description EditStep(T from, T to, double stepDistance, EditStep.StepOperation operation, EditStep<T> backtrace)Constructor -
Uses of EditStep in nzilbb.encoding.comparator
Methods in nzilbb.encoding.comparator that return EditStep Modifier and Type Method Description EditStep<E>ARPAbet2DISCComparator. compare(E from, E to)Compares two sequence elements, and evaluates the distance between them.EditStep<E>Char2CharComparator. compare(E from, E to)Compares two sequence elements, and evaluates the distance between them.EditStep<E>DISC2ARPAbetComparator. compare(E from, E to)Compares two sequence elements, and evaluates the distance between them.EditStep<E>DISC2DISCComparator. compare(E from, E to)Compares two sequence elements, and evaluates the distance between them.EditStep<E>DISC2IPAComparator. compare(E from, E to)Compares two sequence elements, and evaluates the distance between them.EditStep<E>IPA2DISCComparator. compare(E from, E to)Compares two sequence elements, and evaluates the distance between them.EditStep<E>IPA2IPAComparator. compare(E from, E to)Compares two sequence elements, and evaluates the distance between them.EditStep<E>Orthography2ARPAbetComparator. compare(E from, E to)Compares two sequence elements, and evaluates the distance between them.EditStep<E>Orthography2DISCComparator. compare(E from, E to)Compares two sequence elements, and evaluates the distance between them.EditStep<E>Orthography2OrthographyComparator. compare(E from, E to)Compares two sequence elements, and evaluates the distance between them.EditStep<E>XSAMPA2IPAComparator. compare(E from, E to)Compares two sequence elements, and evaluates the distance between them.EditStep<E>ARPAbet2DISCComparator. delete(E from)The distance for deleting the given element.EditStep<E>Char2CharComparator. delete(E from)The distance for deleting the given element.EditStep<E>DISC2ARPAbetComparator. delete(E from)The distance for deleting the given element.EditStep<E>DISC2DISCComparator. delete(E from)The distance for deleting the given element.EditStep<E>DISC2IPAComparator. delete(E from)The distance for deleting the given element.EditStep<E>IPA2DISCComparator. delete(E from)The distance for deleting the given element.EditStep<E>IPA2IPAComparator. delete(E from)The distance for deleting the given element.EditStep<E>Orthography2ARPAbetComparator. delete(E from)The distance for deleting the given element.EditStep<E>Orthography2DISCComparator. delete(E from)The distance for deleting the given element.EditStep<E>Orthography2OrthographyComparator. delete(E from)The distance for deleting the given element.EditStep<E>XSAMPA2IPAComparator. delete(E from)The distance for deleting the given element.EditStep<E>ARPAbet2DISCComparator. insert(E to)The distance for inserting the given element.EditStep<E>Char2CharComparator. insert(E to)The distance for inserting the given element.EditStep<E>DISC2ARPAbetComparator. insert(E to)The distance for inserting the given element.EditStep<E>DISC2DISCComparator. insert(E to)The distance for inserting the given element.EditStep<E>DISC2IPAComparator. insert(E to)The distance for inserting the given element.EditStep<E>IPA2DISCComparator. insert(E to)The distance for inserting the given element.EditStep<E>IPA2IPAComparator. insert(E to)The distance for inserting the given element.EditStep<E>Orthography2ARPAbetComparator. insert(E to)The distance for inserting the given element.EditStep<E>Orthography2DISCComparator. insert(E to)The distance for inserting the given element.EditStep<E>Orthography2OrthographyComparator. insert(E to)The distance for inserting the given element.EditStep<E>XSAMPA2IPAComparator. insert(E to)The distance for inserting the given element.
-