|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmarytts.modules.InternalModule
marytts.modules.JTokeniser
marytts.language.en.JTokeniser
public class JTokeniser
| Field Summary |
|---|
| Fields inherited from class marytts.modules.JTokeniser |
|---|
TOKEN_MAXLENGTH |
| Fields inherited from class marytts.modules.InternalModule |
|---|
logger, state |
| Fields inherited from interface marytts.modules.MaryModule |
|---|
MODULE_OFFLINE, MODULE_RUNNING |
| Constructor Summary | |
|---|---|
JTokeniser()
|
|
| Method Summary | |
|---|---|
protected void |
normaliseToAscii(MaryData d)
|
MaryData |
process(MaryData d)
Perform this module's processing on abstract "MaryData" input d. |
protected void |
propagateForceAccent(MaryData d)
In current FreeTTS code, prosody elements get lost. |
| Methods inherited from class marytts.modules.JTokeniser |
|---|
setTokenizerLanguage, startup |
| Methods inherited from class marytts.modules.InternalModule |
|---|
getLocale, getState, inputType, name, outputType, powerOnSelfTest, shutdown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JTokeniser()
| Method Detail |
|---|
public MaryData process(MaryData d)
throws java.lang.Exception
InternalModuled.
Subclasses need to make sure that the process()
method is thread-safe, because in server-mode,
it will be called from different threads at the same time.
A sensible way to do this seems to be not to use any
global or static variables, or to use them read-only.
process in interface MaryModuleprocess in class JTokeniseroutputType() encapsulating the processing result.
This method just returns its input. Subclasses should override this.
java.lang.Exceptionprotected void normaliseToAscii(MaryData d)
protected void propagateForceAccent(MaryData d)
d -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||