Package nzilbb.encoding.comparator
Class TestComparators
- java.lang.Object
-
- nzilbb.encoding.comparator.TestComparators
-
public class TestComparators extends Object
Test encoding-based edit-path comparators
-
-
Constructor Summary
Constructors Constructor Description TestComparators()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
ArpabetToDISCMapping()
Vector<String>
arpabetToVector(String s)
Breaks the given ARPABET transcription (with phones delimited by spaces) into a Vector for String objects.void
CharacterToCharacterMapping()
void
DISCToArpabetMapping()
void
DISCToDISCMapping()
void
DISCToIPAMapping()
void
IPAToDISCMapping()
void
IPAToIPAMapping()
static void
main(String[] args)
void
Orthography2OrthographyMapping()
void
OrthographyToArpabetMapping()
void
OrthographyToDISCMapping()
String
pathToString(List<EditStep<String>> path)
Converts the path to a String.Vector<String>
stringToVector(String s)
Not to be confused with the famous Google algorithm, this method simply breaks the given string into a Vector for String objects.
-
-
-
Method Detail
-
DISCToDISCMapping
public void DISCToDISCMapping()
-
IPAToIPAMapping
public void IPAToIPAMapping()
-
DISCToIPAMapping
public void DISCToIPAMapping()
-
IPAToDISCMapping
public void IPAToDISCMapping()
-
OrthographyToDISCMapping
public void OrthographyToDISCMapping()
-
OrthographyToArpabetMapping
public void OrthographyToArpabetMapping()
-
CharacterToCharacterMapping
public void CharacterToCharacterMapping()
-
DISCToArpabetMapping
public void DISCToArpabetMapping()
-
ArpabetToDISCMapping
public void ArpabetToDISCMapping()
-
Orthography2OrthographyMapping
public void Orthography2OrthographyMapping()
-
stringToVector
public Vector<String> stringToVector(String s)
Not to be confused with the famous Google algorithm, this method simply breaks the given string into a Vector for String objects.- Parameters:
s
-- Returns:
- A list of label elements, one for each character in the string
-
arpabetToVector
public Vector<String> arpabetToVector(String s)
Breaks the given ARPABET transcription (with phones delimited by spaces) into a Vector for String objects.- Parameters:
s
-- Returns:
- A list of label elements, one for each character in the string
-
pathToString
public String pathToString(List<EditStep<String>> path)
Converts the path to a String.- Parameters:
path
-- Returns:
- A string representation of the path.
-
main
public static void main(String[] args)
-
-