public class CoverageUtils extends Object
Constructor and Description |
---|
CoverageUtils() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
sentenceToFeatures(String sentence,
Locale locale,
String featureNames,
boolean clientServer) |
static byte[] |
toCoverageFeatures(String featureNames,
FeatureDefinition def,
FeatureVector[] featureVectors)
Convert the given feature vectors to the coverage features format, containing all byte features in a single byte array.
|
public static byte[] sentenceToFeatures(String sentence, Locale locale, String featureNames, boolean clientServer) throws MaryConfigurationException, SynthesisException, IOException
public static byte[] toCoverageFeatures(String featureNames, FeatureDefinition def, FeatureVector[] featureVectors)
featureNames
- featureNamesdef
- deffeatureVectors
- featureVectorsCopyright © 2000–2016 DFKI GmbH. All rights reserved.