private Feature cachedFeatureValue(Object __example) { if (__example == __exampleCache.get()) return (Feature) __cache.get(); __exampleCache.set(__example); String __cachedValue = _discreteValue(__example); 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 'AnextPOS(CExample)' defined on line 323 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); 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 'AnextPOS(CExample)' defined on line 323 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 'AnextPOS(CExample)' defined on line 323 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 'AnextPOS(CExample)' defined on line 323 of corefFeatures.lbj received '" + type + "' as input."); new Exception().printStackTrace(); System.exit(1); } return cachedFeatureValue(__example).getStringValue(); }
public String discreteValue(Object __example) { if (!(__example instanceof CExample)) { String type = __example == null ? "null" : __example.getClass().getName(); System.err.println("Classifier 'AnextPOS(CExample)' defined on line 323 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 'AnextPOS(CExample)' defined on line 323 of corefFeatures.lbj received '" + type + "' as input."); new Exception().printStackTrace(); System.exit(1); } return new FeatureVector(cachedFeatureValue(__example)); }