marytts.modules
Class CARTDurationModeller

java.lang.Object
  extended by marytts.modules.InternalModule
      extended by marytts.modules.CARTDurationModeller
All Implemented Interfaces:
MaryModule

Deprecated.

public class CARTDurationModeller
extends InternalModule

Predict phone durations using a CART.

Author:
Marc Schröder

Field Summary
protected  DirectedGraph cart
          Deprecated.  
protected  TargetFeatureComputer featureComputer
          Deprecated.  
protected  TargetFeatureComputer pauseFeatureComputer
          Deprecated.  
protected  StringPredictionTree pausetree
          Deprecated.  
 
Fields inherited from class marytts.modules.InternalModule
logger, state
 
Fields inherited from interface marytts.modules.MaryModule
MODULE_OFFLINE, MODULE_RUNNING
 
Constructor Summary
protected CARTDurationModeller(java.util.Locale locale, java.lang.String propertyPrefix, FeatureProcessorManager featureProcessorManager)
          Deprecated. Constructor to be called with instantiated objects.
  CARTDurationModeller(java.lang.String locale, java.lang.String propertyPrefix)
          Deprecated. Constructor which can be directly called from init info in the config file.
  CARTDurationModeller(java.lang.String locale, java.lang.String propertyPrefix, java.lang.String featprocClassInfo)
          Deprecated. Constructor which can be directly called from init info in the config file.
 
Method Summary
 MaryData process(MaryData d)
          Deprecated. Perform this module's processing on abstract "MaryData" input d.
 void startup()
          Deprecated. Allow the module to start up, performing whatever is necessary to become operational.
 
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
 

Field Detail

cart

protected DirectedGraph cart
Deprecated. 

pausetree

protected StringPredictionTree pausetree
Deprecated. 

featureComputer

protected TargetFeatureComputer featureComputer
Deprecated. 

pauseFeatureComputer

protected TargetFeatureComputer pauseFeatureComputer
Deprecated. 
Constructor Detail

CARTDurationModeller

public CARTDurationModeller(java.lang.String locale,
                            java.lang.String propertyPrefix)
                     throws java.lang.Exception
Deprecated. 
Constructor which can be directly called from init info in the config file. This constructor will use the registered feature processor manager for the given locale.

Parameters:
locale - a locale string, e.g. "en"
propertyPrefix - the prefix to be used when looking up entries in the config files, e.g. "english.duration"
Throws:
java.lang.Exception

CARTDurationModeller

public CARTDurationModeller(java.lang.String locale,
                            java.lang.String propertyPrefix,
                            java.lang.String featprocClassInfo)
                     throws java.lang.Exception
Deprecated. 
Constructor which can be directly called from init info in the config file. Different languages can call this code with different settings.

Parameters:
locale - a locale string, e.g. "en"
propertyPrefix - the prefix to be used when looking up entries in the config files, e.g. "english.duration"
featprocClassInfo - a package name for an instance of FeatureProcessorManager, e.g. "marytts.language.en.FeatureProcessorManager"
Throws:
java.lang.Exception

CARTDurationModeller

protected CARTDurationModeller(java.util.Locale locale,
                               java.lang.String propertyPrefix,
                               FeatureProcessorManager featureProcessorManager)
Deprecated. 
Constructor to be called with instantiated objects.

Parameters:
locale -
propertyPrefix - the prefix to be used when looking up entries in the config files, e.g. "english.duration"
Method Detail

startup

public void startup()
             throws java.lang.Exception
Deprecated. 
Description copied from interface: MaryModule
Allow the module to start up, performing whatever is necessary to become operational. After successful completion, getState() should return MODULE_RUNNING.

Specified by:
startup in interface MaryModule
Overrides:
startup in class InternalModule
Throws:
java.lang.Exception

process

public MaryData process(MaryData d)
                 throws java.lang.Exception
Deprecated. 
Description copied from class: InternalModule
Perform this module's processing on abstract "MaryData" input 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.

Specified by:
process in interface MaryModule
Overrides:
process in class InternalModule
Returns:
A MaryData object of type outputType() encapsulating the processing result.

This method just returns its input. Subclasses should override this.

Throws:
java.lang.Exception