Class OpGraphSyllabifier

java.lang.Object
ca.phon.syllabifier.opgraph.OpGraphSyllabifier
All Implemented Interfaces:
Syllabifier

public final class OpGraphSyllabifier extends Object implements Syllabifier
Syllabifier implementation using operable graphs.
  • Field Details

  • Constructor Details

    • OpGraphSyllabifier

      public OpGraphSyllabifier(ca.phon.opgraph.OpGraph graph)
      Constructor
  • Method Details

    • createSyllabifier

      public static OpGraphSyllabifier createSyllabifier(InputStream is) throws IOException
      Create a new syllabifier from the given stream.
      Parameters:
      stream -
      Throws:
      IOException
    • getName

      public String getName()
      Description copied from interface: Syllabifier
      Syllabifier name. Preferably unique for identify syllabifiers in the UI.
      Specified by:
      getName in interface Syllabifier
      Returns:
      name
    • getGraph

      public ca.phon.opgraph.OpGraph getGraph()
    • getLanguage

      public Language getLanguage()
      Description copied from interface: Syllabifier
      Syllabifier language.
      Specified by:
      getLanguage in interface Syllabifier
      Returns:
      language for the syllabifier
    • syllabify

      public void syllabify(List<IPAElement> phones)
      Description copied from interface: Syllabifier
      Apply consituent type annotations on given phones.
      Specified by:
      syllabify in interface Syllabifier
      Parameters:
      phones -
    • toString

      public String toString()
      Overrides:
      toString in class Object