|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmarytts.features.TargetFeatureComputer
public class TargetFeatureComputer
Compute a given set of features for a Target.
| Field Summary | |
|---|---|
protected ByteValuedFeatureProcessor[] |
byteValuedDiscreteFeatureProcessors
|
protected ContinuousFeatureProcessor[] |
continuousFeatureProcessors
|
protected FeatureDefinition |
featureDefinition
|
protected java.lang.String |
pauseSymbol
|
protected ShortValuedFeatureProcessor[] |
shortValuedDiscreteFeatureProcessors
|
| Constructor Summary | |
|---|---|
TargetFeatureComputer(FeatureProcessorManager manager,
java.lang.String featureProcessorNames)
Construct a TargetFeatureComputer that knows how to compute features for a Target using the given set of feature processor names. |
|
| Method Summary | |
|---|---|
FeatureVector |
computeFeatureVector(Target target)
Using the set of feature processors defined when creating the target feature computer, compute a feature vector for the target |
java.lang.String |
getAllFeatureProcessorNames()
List the names of all feature processors. |
java.lang.String |
getAllFeatureProcessorNamesAndValues()
List the names and values of all feature processors. |
java.lang.String |
getByteValuedFeatureProcessorNames()
List the names of all byte-valued feature processors, separated by space characters. |
java.lang.String |
getByteValuedFeatureProcessorNamesAndValues()
List the names of all byte-valued feature processors and their possible values. |
ByteValuedFeatureProcessor[] |
getByteValuedFeatureProcessors()
|
java.lang.String |
getContinuousFeatureProcessorNames()
List the names of all byte-valued feature processors, separated by space characters. |
java.lang.String |
getContinuousFeatureProcessorNamesAndValues()
List the names of all continuous feature processors and their possible values. |
ContinuousFeatureProcessor[] |
getContinuousFeatureProcessors()
|
FeatureDefinition |
getFeatureDefinition()
Provide the feature definition that can be used to interpret the feature processors generated by this TargetFeatureComputer. |
java.lang.String |
getPauseSymbol()
Get the pause symbol as associated with the "phone" feature processor used. |
java.lang.String |
getShortValuedFeatureProcessorNames()
List the names of all short-valued feature processors, separated by space characters. |
java.lang.String |
getShortValuedFeatureProcessorNamesAndValues()
List the names of all short-valued feature processors and their possible values. |
ShortValuedFeatureProcessor[] |
getShortValuedFeatureProcessors()
|
java.lang.String |
toStringValues(FeatureVector features)
For the given feature vector, convert each encoded value into its string representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ByteValuedFeatureProcessor[] byteValuedDiscreteFeatureProcessors
protected ShortValuedFeatureProcessor[] shortValuedDiscreteFeatureProcessors
protected ContinuousFeatureProcessor[] continuousFeatureProcessors
protected java.lang.String pauseSymbol
protected FeatureDefinition featureDefinition
| Constructor Detail |
|---|
public TargetFeatureComputer(FeatureProcessorManager manager,
java.lang.String featureProcessorNames)
manager - featureProcessorNames - a String containing the names of the
feature processors to use, separated by white space, and in the
right order (byte-valued discrete feature processors first, then
short-valued, then continuous)| Method Detail |
|---|
public FeatureDefinition getFeatureDefinition()
public FeatureVector computeFeatureVector(Target target)
target -
public java.lang.String toStringValues(FeatureVector features)
features - a feature vector, which must match the feature processors known to this feature computer.
java.lang.IllegalArgumentException - if the number of byte-valued, short-valued or continuous elements in features
do not match the set of feature processors in this feature computer.public ByteValuedFeatureProcessor[] getByteValuedFeatureProcessors()
public ShortValuedFeatureProcessor[] getShortValuedFeatureProcessors()
public ContinuousFeatureProcessor[] getContinuousFeatureProcessors()
public java.lang.String getAllFeatureProcessorNames()
public java.lang.String getByteValuedFeatureProcessorNames()
public java.lang.String getShortValuedFeatureProcessorNames()
public java.lang.String getContinuousFeatureProcessorNames()
public java.lang.String getAllFeatureProcessorNamesAndValues()
public java.lang.String getByteValuedFeatureProcessorNamesAndValues()
public java.lang.String getShortValuedFeatureProcessorNamesAndValues()
public java.lang.String getContinuousFeatureProcessorNamesAndValues()
public java.lang.String getPauseSymbol()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||