marytts.tools.voiceimport
Class TranscriptionAligner
java.lang.Object
marytts.tools.voiceimport.VoiceImportComponent
marytts.tools.voiceimport.TranscriptionAligner
public class TranscriptionAligner
- extends VoiceImportComponent
|
Method Summary |
void |
alignTranscription(java.lang.String baseName)
|
boolean |
compute()
align and change automatic transcriptions to manually
corrected ones. |
java.util.SortedMap<java.lang.String,java.lang.String> |
getDefaultProps(DatabaseLayout theDb)
Get the map of properties2values
containing the default values |
java.lang.String |
getName()
Get the name of this component |
int |
getProgress()
Provide the progress of computation, in percent, or -1 if
that feature is not implemented. |
void |
initialiseComp()
Initialise a voice import component:
component specific initialisation;
to be overwritten by subclasses |
static void |
main(java.lang.String[] args)
|
protected void |
setupHelp()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TranscriptionAligner
public TranscriptionAligner()
getName
public java.lang.String getName()
- Description copied from class:
VoiceImportComponent
- Get the name of this component
- Specified by:
getName in class VoiceImportComponent
- Returns:
- the name
initialiseComp
public void initialiseComp()
throws javax.xml.parsers.ParserConfigurationException,
java.io.IOException,
org.xml.sax.SAXException,
javax.xml.transform.TransformerConfigurationException,
MaryConfigurationException
- Description copied from class:
VoiceImportComponent
- Initialise a voice import component:
component specific initialisation;
to be overwritten by subclasses
- Overrides:
initialiseComp in class VoiceImportComponent
- Throws:
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException
javax.xml.transform.TransformerConfigurationException
MaryConfigurationException
getDefaultProps
public java.util.SortedMap<java.lang.String,java.lang.String> getDefaultProps(DatabaseLayout theDb)
- Description copied from class:
VoiceImportComponent
- Get the map of properties2values
containing the default values
- Specified by:
getDefaultProps in class VoiceImportComponent
- Returns:
- map of props2values
setupHelp
protected void setupHelp()
- Specified by:
setupHelp in class VoiceImportComponent
getProgress
public int getProgress()
- Description copied from class:
VoiceImportComponent
- Provide the progress of computation, in percent, or -1 if
that feature is not implemented.
- Specified by:
getProgress in class VoiceImportComponent
- Returns:
- -1 if not implemented, or an integer between 0 and 100.
compute
public boolean compute()
throws java.lang.Exception
- align and change automatic transcriptions to manually
corrected ones.
XML-Version: this changes mary xml-files (PHONEMISED)
- Specified by:
compute in class VoiceImportComponent
- Returns:
- true on success, false on failure
- Throws:
java.lang.Exception
javax.xml.xpath.XPathExpressionException
alignTranscription
public void alignTranscription(java.lang.String baseName)
throws java.lang.Exception
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Parameters:
args -
- Throws:
java.lang.Exception