public class MaryTranscriptionAligner extends TranscriptionAligner
aligncost, allophoneSet, defaultBoundaryCost, defaultcost, ensureInitialBoundary, entrySeparator, possibleBnd, skipcost
Constructor and Description |
---|
MaryTranscriptionAligner() |
MaryTranscriptionAligner(AllophoneSet allophoneSet) |
MaryTranscriptionAligner(AllophoneSet allophoneSet,
boolean insertDummyDurations) |
Modifier and Type | Method and Description |
---|---|
void |
alignXmlTranscriptions(Document allophones,
String labels)
This changes the transcription of a MARYXML document in ALLOPHONES format to match the label sequence given as the "labels"
parameter.
|
alignLabels, distanceAlign, getEnsureInitialBoundary, getEntrySeparator, readLabelFile, SetEnsureInitialBoundary
public MaryTranscriptionAligner()
public MaryTranscriptionAligner(AllophoneSet allophoneSet)
allophoneSet
- allophoneSetpublic MaryTranscriptionAligner(AllophoneSet allophoneSet, boolean insertDummyDurations)
allophoneSet
- allophoneSetinsertDummyDurations
- if true, in any inserted items, a duration of 1 millisecond will be set.public void alignXmlTranscriptions(Document allophones, String labels) throws InvalidDataException
allophones
- the MARYXML document, in ALLOPHONES formatlabels
- the sequence of label symbols to use, separated by the entry separator as provided by getEntrySeparator().InvalidDataException
- if a manual label is encountered that is not in the AllophoneSetCopyright © 2000–2016 DFKI GmbH. All rights reserved.