public class Durator extends Object implements UtteranceProcessor
Relation.SEGMENT
relations in an
utterance. Annotates the Relation.SEGMENT
relation with an "end"
time feature.
[[[TODO: The mean words-per-minute rate should become part of the CART data. For now, it is passed into the constructor.]]]
Relation.SEGMENT
Modifier and Type | Field and Description |
---|---|
protected CART |
cart
The CART used for this duration UtteranceProcessor.
|
private static PathExtractor |
DURATION_STRETCH_PATH |
protected PhoneDurations |
durations
The PhoneDurations used for this duration UtteranceProcessor.
|
Constructor and Description |
---|
Durator(CART cart,
PhoneDurations durations)
Creates a new duration UtteranceProcessor with the given CART and phone
durations.
|
Modifier and Type | Method and Description |
---|---|
void |
processUtterance(Utterance utterance)
Annotates the
Relation.SEGMENT relations with cumulative
"end" time features based on phone durations. |
String |
toString() |
protected final CART cart
protected final PhoneDurations durations
private static final PathExtractor DURATION_STRETCH_PATH
public Durator(CART cart, PhoneDurations durations)
cart
- contains zscore duration datadurations
- contains mean and standard deviation phone durationspublic void processUtterance(Utterance utterance) throws ProcessException
Relation.SEGMENT
relations with cumulative
"end" time features based on phone durations. Expects the CART to return
a zscore for each phone, which specifies the number of standard
deviations from the mean. This is coupled with a phone durations table
that returns the mean and standard deviation for phones.processUtterance
in interface UtteranceProcessor
utterance
- the utterance to processProcessException
- if a problem is encountered during the processing of the
utteranceWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses