public class PronunciationModel extends InternalModule
logger, stateMODULE_OFFLINE, MODULE_RUNNING| Constructor and Description |
|---|
PronunciationModel()
Constructor, stating that the input is of type INTONATION, the output of type ALLOPHONES.
|
PronunciationModel(Locale locale) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
postlexicalRules(Element token,
AllophoneSet allophoneSet)
Optionally, a language-specific subclass can implement any postlexical rules on the document.
|
MaryData |
process(MaryData d)
This computes a new pronunciation for the elements of some MaryData, that is phonemised.
|
void |
startup()
Allow the module to start up, performing whatever is necessary to become operational.
|
protected void |
updatePhAttributesFromPhElements(Element token) |
getInputType, getLocale, getOutputType, getState, inputType, name, outputType, powerOnSelfTest, shutdownpublic PronunciationModel()
public PronunciationModel(Locale locale)
public void startup()
throws Exception
MaryModulestartup in interface MaryModulestartup in class InternalModuleException - Exceptionprotected boolean postlexicalRules(Element token, AllophoneSet allophoneSet)
token - a <t> element with a syllable and <ph> substructure.allophoneSet - allophoneSetpublic MaryData process(MaryData d) throws Exception
process in interface MaryModuleprocess in class InternalModuled - doutputType() encapsulating the processing result.
This method just returns its input. Subclasses should override this.
Exception - Exceptionprotected void updatePhAttributesFromPhElements(Element token)
Copyright © 2000–2016 DFKI GmbH. All rights reserved.