use of com.joliciel.talismane.machineLearning.features.FunctionDescriptor in project jochre by urieli.
the class SplitFeatureParser method getSplitFeatureSet.
public Set<SplitFeature<?>> getSplitFeatureSet(List<String> featureDescriptors) {
Set<SplitFeature<?>> features = new TreeSet<SplitFeature<?>>();
FunctionDescriptorParser descriptorParser = new FunctionDescriptorParser();
for (String featureDescriptor : featureDescriptors) {
LOG.trace(featureDescriptor);
if (featureDescriptor.length() > 0 && !featureDescriptor.startsWith("#")) {
FunctionDescriptor functionDescriptor = descriptorParser.parseDescriptor(featureDescriptor);
List<SplitFeature<?>> myFeatures = this.parseDescriptor(functionDescriptor);
features.addAll(myFeatures);
}
}
return features;
}
Aggregations