Class SyllableVisitor

All Implemented Interfaces:
Visitor<IPAElement>
Direct Known Subclasses:
SyllableAndPausesVisitor

public class SyllableVisitor extends VisitorAdapter<IPAElement>
A phone visitor that breaks a list of phones into syllable. Requires that the SyllabificationInfo capability is present for each IPAElement.
  • Field Details

  • Constructor Details

    • SyllableVisitor

      public SyllableVisitor()
  • Method Details

    • fallbackVisit

      public void fallbackVisit(IPAElement obj)
      Description copied from class: VisitorAdapter
      Generic, i.e., fallback, processing method.
      Specified by:
      fallbackVisit in class VisitorAdapter<IPAElement>
    • visitBasicPhone

      @Visits public void visitBasicPhone(Phone phone)
    • visitCompoundPhone

      @Visits public void visitCompoundPhone(CompoundPhone phone)
    • visitStressMarker

      @Visits public void visitStressMarker(StressMarker stressMarker)
    • visitIntraWordPause

      @Visits public void visitIntraWordPause(IntraWordPause intraWordPause)
    • breakSyllable

      protected void breakSyllable()
    • getSyllables

      public List<IPATranscript> getSyllables()
      Get the syllables detected by this visitor
      Returns:
      detected syllables
    • reset

      public void reset()
      Rest syllable list