private Feature cachedFeatureValue(Object __example) { if (__example == __exampleCache.get()) return (Feature) __cache.get(); __exampleCache.set(__example); String __cachedValue = _discreteValue(__example); if (valueIndexOf(__cachedValue) == -1) { System.err.println("Classifier 'BisSpeaker' defined on line 315 of corefFeatures.lbj produced '" + __cachedValue + "' as a feature value, which is not allowable."); System.exit(1); } Feature __result = new DiscretePrimitiveStringFeature(containingPackage, name, "", __cachedValue, valueIndexOf(__cachedValue), (short) allowableValues().length); __cache.set(__result); return __result; }
public Feature featureValue(Object __example) { if (!(__example instanceof CExample)) { String type = __example == null ? "null" : __example.getClass().getName(); System.err.println("Classifier 'BisSpeaker(CExample)' defined on line 315 of corefFeatures.lbj received '" + type + "' as input."); new Exception().printStackTrace(); System.exit(1); } return cachedFeatureValue(__example); }
private Feature cachedFeatureValue(Object __example) { if (__example == __exampleCache.get()) return (Feature) __cache.get(); __exampleCache.set(__example); String __cachedValue = _discreteValue(__example); if (valueIndexOf(__cachedValue) == -1) { System.err.println("Classifier 'BisSpeaker' defined on line 315 of corefFeatures.lbj produced '" + __cachedValue + "' as a feature value, which is not allowable."); System.exit(1); } Feature __result = new DiscretePrimitiveStringFeature(containingPackage, name, "", __cachedValue, valueIndexOf(__cachedValue), (short) allowableValues().length); __cache.set(__result); return __result; }
public Feature featureValue(Object __example) { if (!(__example instanceof CExample)) { String type = __example == null ? "null" : __example.getClass().getName(); System.err.println("Classifier 'BisSpeaker(CExample)' defined on line 315 of corefFeatures.lbj received '" + type + "' as input."); new Exception().printStackTrace(); System.exit(1); } return cachedFeatureValue(__example); }
public FeatureVector classify(Object __example) { if (!(__example instanceof CExample)) { String type = __example == null ? "null" : __example.getClass().getName(); System.err.println("Classifier 'BisSpeaker(CExample)' defined on line 315 of corefFeatures.lbj received '" + type + "' as input."); new Exception().printStackTrace(); System.exit(1); } return new FeatureVector(cachedFeatureValue(__example)); }
public String discreteValue(Object __example) { if (!(__example instanceof CExample)) { String type = __example == null ? "null" : __example.getClass().getName(); System.err.println("Classifier 'BisSpeaker(CExample)' defined on line 315 of corefFeatures.lbj received '" + type + "' as input."); new Exception().printStackTrace(); System.exit(1); } return cachedFeatureValue(__example).getStringValue(); }
public FeatureVector classify(Object __example) { if (!(__example instanceof CExample)) { String type = __example == null ? "null" : __example.getClass().getName(); System.err.println("Classifier 'BisSpeaker(CExample)' defined on line 315 of corefFeatures.lbj received '" + type + "' as input."); new Exception().printStackTrace(); System.exit(1); } return new FeatureVector(cachedFeatureValue(__example)); }
public String discreteValue(Object __example) { if (!(__example instanceof CExample)) { String type = __example == null ? "null" : __example.getClass().getName(); System.err.println("Classifier 'BisSpeaker(CExample)' defined on line 315 of corefFeatures.lbj received '" + type + "' as input."); new Exception().printStackTrace(); System.exit(1); } return cachedFeatureValue(__example).getStringValue(); }