public class Intonator extends Object implements UtteranceProcessor
Relation.SYLLABLE
relations of an
utterance with "accent"
and "endtone" features. Though not required, a typical use of
this is to use the ToBI (tones and break indeces) scheme for
transcribing intonation and accent in English, developed by Janet
Pierrehumbert and Mary Beckman. This implementation is independent
of the ToBI scheme: ToBI annotations are not
used by this class, but are merely copied from the CART result
to the "accent" and "endtone" features of the
Relation.SYLLABLE
relation.Modifier and Type | Field and Description |
---|---|
protected CART |
accentCart
The accent CART used for this Intonation UtteranceProcessor.
|
protected CART |
toneCart
The tone CART used for this Intonation UtteranceProcessor.
|
Constructor and Description |
---|
Intonator(CART accentCart,
CART toneCart)
Creates a new Intonation UtteranceProcessor with the given
CARTs.
|
Modifier and Type | Method and Description |
---|---|
void |
processUtterance(Utterance utterance)
Annotates the
Relation.SYLLABLE relations of an
utterance with "accent"
and "endtone" features. |
String |
toString() |
protected CART accentCart
public void processUtterance(Utterance utterance) throws ProcessException
Relation.SYLLABLE
relations of an
utterance with "accent"
and "endtone" features. Depends upon "NONE" being returned by
either the accent or tone CART to indicate there isn't an
intonation feature for a syllable.processUtterance
in interface UtteranceProcessor
utterance
- the utterance to process/tokenizeProcessException
- if an IOException is thrown during the
processing of the utteranceWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses