Class TestComparators


  • public class TestComparators
    extends Object
    Test encoding-based edit-path comparators
    • Constructor Detail

      • TestComparators

        public TestComparators()
    • 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)