public class ProsodyGenericFST extends ProsodyGeneric
accentedSyllables, accentPriorities, applyParagraphDeclination, listMap, nextPlusXAttributesPattern, nextPlusXTextPattern, paragraphDeclination, previousMinusXAttributesPattern, previousMinusXTextPattern, priorities, syllableAccents, toBI2ContourMap, tobiPredFilename, tobiPredMaplogger, stateMODULE_OFFLINE, MODULE_RUNNING| Constructor and Description |
|---|
ProsodyGenericFST(MaryDataType inputType,
MaryDataType outputType,
Locale locale,
String tobipredFileName,
String accentPriorities,
String syllableAccents,
String paragraphDeclination) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkList(String currentVal,
String tokenValue)
Checks if tokenValue is contained in list.
|
protected Object |
readListFromResource(String resourceName)
Read a list from an external file.
|
applyRules, buildListMap, checkAttributes, checkAttributesOfOtherToken, checkFolTokens, checkFolWords, checkPrevTokens, checkPrevWords, checkProsodicPosition, checkRulePart, checkSentence, checkSpecialPosition, checkText, checkTextOfOtherToken, copyAccentsToSyllables, getAccentPosition, getAccentShape, getBoundary, getForceAccent, getSentenceType, insertBoundary, insertMajorBoundary, insertPhraseNode, isPunctuation, loadTobiPredRules, process, processSentence, setAccent, startupgetInputType, getLocale, getOutputType, getState, inputType, name, outputType, powerOnSelfTest, shutdownpublic ProsodyGenericFST(MaryDataType inputType, MaryDataType outputType, Locale locale, String tobipredFileName, String accentPriorities, String syllableAccents, String paragraphDeclination) throws IOException
IOExceptionprotected Object readListFromResource(String resourceName) throws IOException
.fst).readListFromResource in class ProsodyGenericresourceName - resource file in classpath from which to read the list; suffix identifies list format.IllegalArgumentException - if the fileName suffix cannot be identified as a list file format.IOException - if the file given in fileName cannot be found or read fromprotected boolean checkList(String currentVal, String tokenValue)
checkList in class ProsodyGenericcurrentVal - the condition to check; can be either INLIST: or !INLIST: followed by the list name to
check.tokenValue - value to look up in the listCopyright © 2000–2016 DFKI GmbH. All rights reserved.