public class TargetFeatureLister extends InternalModule
logger, state
MODULE_OFFLINE, MODULE_RUNNING
Constructor and Description |
---|
TargetFeatureLister() |
TargetFeatureLister(MaryDataType outputType) |
Modifier and Type | Method and Description |
---|---|
static List<Target> |
createTargetsWithPauses(List<Element> segmentsAndBoundaries,
String silenceSymbol)
Create the list of targets from the segments to be synthesized Prepend and append pauses if necessary
|
List<Target> |
getListTargetFeatures(TargetFeatureComputer featureComputer,
List<Element> segmentsAndBoundaries)
Return directly the targets, and set in each target its feature vector
|
String |
listTargetFeatures(TargetFeatureComputer featureComputer,
List<Element> segmentsAndBoundaries)
For the given elements and using the given feature computer, create a string representation of the target features.
|
protected List<Target> |
overridableCreateTargetsWithPauses(List<Element> segmentsAndBoundaries,
String pauseSymbol)
Access the code from within the our own code so that a subclass can override it.
|
MaryData |
process(MaryData d)
Perform this module's processing on abstract "MaryData" input
d . |
getInputType, getLocale, getOutputType, getState, inputType, name, outputType, powerOnSelfTest, shutdown, startup
public TargetFeatureLister(MaryDataType outputType)
public TargetFeatureLister()
public MaryData process(MaryData d) throws Exception
InternalModule
d
. 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 MaryModule
process
in class InternalModule
d
- doutputType()
encapsulating the processing result.
This method just returns its input. Subclasses should override this.
Exception
- Exceptionpublic String listTargetFeatures(TargetFeatureComputer featureComputer, List<Element> segmentsAndBoundaries)
featureComputer
- featureComputersegmentsAndBoundaries
- segmentsAndBoundariespublic List<Target> getListTargetFeatures(TargetFeatureComputer featureComputer, List<Element> segmentsAndBoundaries)
featureComputer
- featureComputersegmentsAndBoundaries
- segmentsAndBoundariesprotected List<Target> overridableCreateTargetsWithPauses(List<Element> segmentsAndBoundaries, String pauseSymbol)
segmentsAndBoundaries
- segmentsAndBoundariespauseSymbol
- pauseSymbolpublic static List<Target> createTargetsWithPauses(List<Element> segmentsAndBoundaries, String silenceSymbol)
segmentsAndBoundaries
- a list of MaryXML phone and boundary elementssilenceSymbol
- silenceSymbolCopyright © 2000–2016 DFKI GmbH. All rights reserved.