public class Phonemiser extends JPhonemiser
allophoneSet, lexicon, lts, punctuationPosRegex, removeTrailingOneFromPhones, unpronounceablePosRegex, userdict
logger, state
MODULE_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, userdictLookup
getInputType, getLocale, getOutputType, getState, inputType, name, outputType, powerOnSelfTest, shutdown
public Phonemiser() throws IOException, MaryConfigurationException
public String phonemise(String text, String pos, StringBuilder g2pMethod)
JPhonemiser
phonemise
in class JPhonemiser
text
- 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.