public class Phonemiser extends JPhonemiser
allophoneSet, lexicon, lts, punctuationPosRegex, removeTrailingOneFromPhones, unpronounceablePosRegex, userdictlogger, stateMODULE_OFFLINE, MODULE_RUNNING| Constructor and Description |
|---|
Phonemiser() |
| Modifier and Type | Method and Description |
|---|---|
String |
phonemise(String text,
String pos,
StringBuilder g2pMethod)
Phonemise the word text.
|
getAllophoneSet, isPosPunctuation, isUnpronounceable, lexiconLookup, maybePronounceable, process, readLexicon, setPh, setPunctuationPosRegex, setUnpronounceablePosRegex, startup, userdictLookupgetInputType, getLocale, getOutputType, getState, inputType, name, outputType, powerOnSelfTest, shutdownpublic Phonemiser()
throws IOException,
MaryConfigurationException
public String phonemise(String text, String pos, StringBuilder g2pMethod)
JPhonemiserphonemise in class JPhonemisertext - the textual (graphemic) form of a word.pos - the part-of-speech of the wordg2pMethod - This is an awkward way to return a second String parameter via a StringBuilder. If a phonemisation of the text
is found, this parameter will be filled with the method of phonemisation ("lexicon", ... "rules").Copyright © 2000–2016 DFKI GmbH. All rights reserved.