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 'noETypeAlias' defined on line 581 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 'noETypeAlias(CExample)' defined on line 581 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 'BasicFeatures(CExample)' defined on line 39 of emnlpBasicCoref.lbj received '" + type + "' as input."); new Exception().printStackTrace(); System.exit(1); } FeatureVector __result; __result = new FeatureVector(); __result.addFeature(__genderMatchForBasic.featureValue(__example)); __result.addFeature(__numberMatch.featureValue(__example)); __result.addFeature(__headMatchSoon.featureValue(__example)); __result.addFeature(__extentMatchSoon.featureValue(__example)); __result.addFeature(__m1MentionType.featureValue(__example)); __result.addFeature(__m2MentionType.featureValue(__example)); __result.addFeature(__mentionTypes.featureValue(__example)); __result.addFeature(__noETypeAlias.featureValue(__example)); __result.addFeature(__soonAppositive.featureValue(__example)); __result.addFeature(__relativePronounFor.featureValue(__example)); __result.addFeature(__areSynonyms.featureValue(__example)); __result.addFeature(__areAntonyms.featureValue(__example)); __result.addFeature(__areHypernyms.featureValue(__example)); __result.addFeature(__headsShareHypernyms.featureValue(__example)); __result.addFeature(__bothSpeak.featureValue(__example)); __result.addFeature(__prenominalModifierOrHeadMatch.featureValue(__example)); __result.addFeature(__substringHead.featureValue(__example)); return __result; }
public FeatureVector classify(Object __example) { if (!(__example instanceof CExample)) { String type = __example == null ? "null" : __example.getClass().getName(); System.err.println("Classifier 'BasicFeatures(CExample)' defined on line 39 of emnlpBasicCoref.lbj received '" + type + "' as input."); new Exception().printStackTrace(); System.exit(1); } FeatureVector __result; __result = new FeatureVector(); __result.addFeature(__genderMatchForBasic.featureValue(__example)); __result.addFeature(__numberMatch.featureValue(__example)); __result.addFeature(__headMatchSoon.featureValue(__example)); __result.addFeature(__extentMatchSoon.featureValue(__example)); __result.addFeature(__m1MentionType.featureValue(__example)); __result.addFeature(__m2MentionType.featureValue(__example)); __result.addFeature(__mentionTypes.featureValue(__example)); __result.addFeature(__noETypeAlias.featureValue(__example)); __result.addFeature(__soonAppositive.featureValue(__example)); __result.addFeature(__relativePronounFor.featureValue(__example)); __result.addFeature(__areSynonyms.featureValue(__example)); __result.addFeature(__areAntonyms.featureValue(__example)); __result.addFeature(__areHypernyms.featureValue(__example)); __result.addFeature(__headsShareHypernyms.featureValue(__example)); __result.addFeature(__bothSpeak.featureValue(__example)); __result.addFeature(__prenominalModifierOrHeadMatch.featureValue(__example)); __result.addFeature(__substringHead.featureValue(__example)); return __result; }
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 'noETypeAlias' defined on line 581 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 'noETypeAlias(CExample)' defined on line 581 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 'noETypeAlias(CExample)' defined on line 581 of corefFeatures.lbj received '" + type + "' as input."); new Exception().printStackTrace(); System.exit(1); } return new FeatureVector(cachedFeatureValue(__example)); }
public FeatureVector classify(Object __example) { if (!(__example instanceof CExample)) { String type = __example == null ? "null" : __example.getClass().getName(); System.err.println("Classifier 'noETypeAlias(CExample)' defined on line 581 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 'noETypeAlias(CExample)' defined on line 581 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 'noETypeAlias(CExample)' defined on line 581 of corefFeatures.lbj received '" + type + "' as input."); new Exception().printStackTrace(); System.exit(1); } return cachedFeatureValue(__example).getStringValue(); }