Package nzilbb.editpath
Class TestMinimumEditPathString
- java.lang.Object
-
- nzilbb.editpath.TestMinimumEditPathString
-
public class TestMinimumEditPathString extends Object
These tests ensure that basic string paths can easily be worked with, but also test the general beahviour of MinimumEditPath
-
-
Constructor Summary
Constructors Constructor Description TestMinimumEditPathString()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
customComparator()
These tests use a custom comparator which assigns distances depending on the characters involved: If it's the same character but different case, distance is 1 If it's a space character to another space character, distance is 4 If it's a digit to another digit, distance is 4 If it's a vowel to another vowel, distance is 4 If it's a plosive to another plosive, distance is 4 If it's a fricative to another fricative, distance is 4 If it's a stop to another stop, distance is 4 If it's a letter to another leffer, distance is 8 Otherwise it's 20 Also, deletes and inserts are both 10.void
customCosts()
void
defaultCosts()
void
defaultExpensiveChange()
void
emptyToEmpty()
void
emptyToThat()
static void
main(String[] args)
void
stringEqual()
void
thisToEmpty()
void
thisToThat()
-
-
-
Method Detail
-
stringEqual
public void stringEqual()
-
thisToThat
public void thisToThat()
-
emptyToThat
public void emptyToThat()
-
thisToEmpty
public void thisToEmpty()
-
emptyToEmpty
public void emptyToEmpty()
-
defaultCosts
public void defaultCosts()
-
defaultExpensiveChange
public void defaultExpensiveChange()
-
customCosts
public void customCosts()
-
customComparator
public void customComparator()
These tests use a custom comparator which assigns distances depending on the characters involved:- If it's the same character but different case, distance is 1
- If it's a space character to another space character, distance is 4
- If it's a digit to another digit, distance is 4
- If it's a vowel to another vowel, distance is 4
- If it's a plosive to another plosive, distance is 4
- If it's a fricative to another fricative, distance is 4
- If it's a stop to another stop, distance is 4
- If it's a letter to another leffer, distance is 8
- Otherwise it's 20
-
main
public static void main(String[] args)
-
-