public FeatureVector classify(Object __example) { if (!(__example instanceof CExample)) { String type = __example == null ? "null" : __example.getClass().getName(); System.err.println("Classifier 'EmnlpBasicCoref$$1(CExample)' defined on line 56 of emnlpBasicCoref.lbj received '" + type + "' as input."); new Exception().printStackTrace(); System.exit(1); } FeatureVector __result; __result = new FeatureVector(); __result.addFeatures(__BasicFeatures.classify(__example)); __result.addFeatures(__EmnlpBasicCoref$$1$1.classify(__example)); return __result; }
public FeatureVector classify(Object __example) { if (!(__example instanceof CExample)) { String type = __example == null ? "null" : __example.getClass().getName(); System.err.println("Classifier 'EmnlpBasicCoref$$1(CExample)' defined on line 56 of emnlpBasicCoref.lbj received '" + type + "' as input."); new Exception().printStackTrace(); System.exit(1); } FeatureVector __result; __result = new FeatureVector(); __result.addFeatures(__BasicFeatures.classify(__example)); __result.addFeatures(__EmnlpBasicCoref$$1$1.classify(__example)); return __result; }
public FeatureVector classify(Object __example) { if (!(__example instanceof CExample)) { String type = __example == null ? "null" : __example.getClass().getName(); System.err.println("Classifier 'EmnlpBasicCoref$$1$1(CExample)' defined on line 56 of emnlpBasicCoref.lbj received '" + type + "' as input."); new Exception().printStackTrace(); System.exit(1); } FeatureVector __result; __result = new FeatureVector(); FeatureVector leftVector = left.classify(__example); int N = leftVector.featuresSize(); for (int j = 1; j < N; ++j) { Feature rf = leftVector.getFeature(j); for (int i = 0; i < j; ++i) __result.addFeature(leftVector.getFeature(i).conjunction(rf, this)); } __result.sort(); return __result; }
public FeatureVector classify(Object __example) { if (!(__example instanceof CExample)) { String type = __example == null ? "null" : __example.getClass().getName(); System.err.println("Classifier 'EmnlpBasicCoref$$1$1(CExample)' defined on line 56 of emnlpBasicCoref.lbj received '" + type + "' as input."); new Exception().printStackTrace(); System.exit(1); } FeatureVector __result; __result = new FeatureVector(); FeatureVector leftVector = left.classify(__example); int N = leftVector.featuresSize(); for (int j = 1; j < N; ++j) { Feature rf = leftVector.getFeature(j); for (int i = 0; i < j; ++i) __result.addFeature(leftVector.getFeature(i).conjunction(rf, this)); } __result.sort(); return __result; }