public class FeatureUtility extends Object
Constructor and Description |
---|
FeatureUtility() |
Modifier and Type | Method and Description |
---|---|
static Map<String,Feature> |
loadFeatures(com.google.common.io.InputSupplier<? extends InputStream> featureInputSupplier)
Reads a feature set in XML format as follows:
<parameters>
<feature fid="Feature_ID" featureClass="Feature_class"
scoringFunctionClass="ScoringFunction_class" scoring_function_parameters />
</parameters>
|
static Map<String,Feature> |
parseFeatures(String featurePath) |
public static Map<String,Feature> loadFeatures(com.google.common.io.InputSupplier<? extends InputStream> featureInputSupplier) throws ParserConfigurationException, SAXException, IOException, ClassNotFoundException
featureInputSupplier
- An input supplier that provides the featuresParserConfigurationException
SAXException
IOException
ClassNotFoundException