Package ca.phon.syllable
Class SyllableVisitor
- All Implemented Interfaces:
Visitor<IPAElement>
- Direct Known Subclasses:
SyllableAndPausesVisitor
A phone visitor that breaks a list of phones
into syllable. Requires that the
SyllabificationInfo
capability is present for each IPAElement
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
fallbackVisit
(IPAElement obj) Generic, i.e., fallback, processing method.Get the syllables detected by this visitorvoid
reset()
Rest syllable listvoid
visitBasicPhone
(Phone phone) void
visitCompoundPhone
(CompoundPhone phone) void
visitIntraWordPause
(IntraWordPause intraWordPause) void
visitStressMarker
(StressMarker stressMarker) Methods inherited from class ca.phon.visitor.VisitorAdapter
visit
-
Field Details
-
currentSyllableBuilder
current syllable
-
-
Constructor Details
-
SyllableVisitor
public SyllableVisitor()
-
-
Method Details
-
fallbackVisit
Description copied from class:VisitorAdapter
Generic, i.e., fallback, processing method.- Specified by:
fallbackVisit
in classVisitorAdapter<IPAElement>
-
visitBasicPhone
-
visitCompoundPhone
-
visitStressMarker
-
visitIntraWordPause
-
breakSyllable
protected void breakSyllable() -
getSyllables
Get the syllables detected by this visitor- Returns:
- detected syllables
-
reset
public void reset()Rest syllable list
-