use of edu.illinois.cs.cogcomp.lbjava.classify.DiscretePrimitiveStringFeature in project cogcomp-nlp by CogComp.
the class labelOneBefore method cachedFeatureValue.
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;
}
use of edu.illinois.cs.cogcomp.lbjava.classify.DiscretePrimitiveStringFeature in project cogcomp-nlp by CogComp.
the class labelOneBeforeU method cachedFeatureValue.
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;
}
use of edu.illinois.cs.cogcomp.lbjava.classify.DiscretePrimitiveStringFeature in project cogcomp-nlp by CogComp.
the class labelOrBaselineU method cachedFeatureValue.
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;
}
use of edu.illinois.cs.cogcomp.lbjava.classify.DiscretePrimitiveStringFeature in project cogcomp-nlp by CogComp.
the class labelTwoBefore method cachedFeatureValue.
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;
}
use of edu.illinois.cs.cogcomp.lbjava.classify.DiscretePrimitiveStringFeature in project cogcomp-nlp by CogComp.
the class labelTwoBeforeU method cachedFeatureValue.
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;
}
Aggregations