public class TargetFeatureComputer extends Object
Modifier and Type | Field and Description |
---|---|
protected ByteValuedFeatureProcessor[] |
byteValuedDiscreteFeatureProcessors |
protected ContinuousFeatureProcessor[] |
continuousFeatureProcessors |
protected FeatureDefinition |
featureDefinition |
protected String |
pauseSymbol |
protected ShortValuedFeatureProcessor[] |
shortValuedDiscreteFeatureProcessors |
Constructor and Description |
---|
TargetFeatureComputer(FeatureProcessorManager manager,
String featureProcessorNames)
Construct a TargetFeatureComputer that knows how to compute features for a Target using the given set of feature processor
names.
|
Modifier and Type | Method and Description |
---|---|
FeatureVector |
computeFeatureVector(Target target)
Using the set of feature processors defined when creating the target feature computer, compute a feature vector for the
target
|
String |
getAllFeatureProcessorNames()
List the names of all feature processors.
|
String |
getAllFeatureProcessorNamesAndValues()
List the names and values of all feature processors.
|
String |
getByteValuedFeatureProcessorNames()
List the names of all byte-valued feature processors, separated by space characters.
|
String |
getByteValuedFeatureProcessorNamesAndValues()
List the names of all byte-valued feature processors and their possible values.
|
ByteValuedFeatureProcessor[] |
getByteValuedFeatureProcessors() |
String |
getContinuousFeatureProcessorNames()
List the names of all byte-valued feature processors, separated by space characters.
|
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.
|
String |
getPauseSymbol()
Get the pause symbol as associated with the "phone" feature processor used.
|
String |
getShortValuedFeatureProcessorNames()
List the names of all short-valued feature processors, separated by space characters.
|
String |
getShortValuedFeatureProcessorNamesAndValues()
List the names of all short-valued feature processors and their possible values.
|
ShortValuedFeatureProcessor[] |
getShortValuedFeatureProcessors() |
String |
toStringValues(FeatureVector features)
For the given feature vector, convert each encoded value into its string representation.
|
protected ByteValuedFeatureProcessor[] byteValuedDiscreteFeatureProcessors
protected ShortValuedFeatureProcessor[] shortValuedDiscreteFeatureProcessors
protected ContinuousFeatureProcessor[] continuousFeatureProcessors
protected String pauseSymbol
protected FeatureDefinition featureDefinition
public TargetFeatureComputer(FeatureProcessorManager manager, String featureProcessorNames)
manager
- managerfeatureProcessorNames
- 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)public FeatureDefinition getFeatureDefinition()
public FeatureVector computeFeatureVector(Target target)
target
- targetpublic String toStringValues(FeatureVector features)
features
- a feature vector, which must match the feature processors known to this feature computer.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 String getAllFeatureProcessorNames()
public String getByteValuedFeatureProcessorNames()
public String getShortValuedFeatureProcessorNames()
public String getContinuousFeatureProcessorNames()
public String getAllFeatureProcessorNamesAndValues()
public String getByteValuedFeatureProcessorNamesAndValues()
public String getShortValuedFeatureProcessorNamesAndValues()
public String getContinuousFeatureProcessorNamesAndValues()
public String getPauseSymbol()
Copyright © 2000–2016 DFKI GmbH. All rights reserved.