private FeatureVector cachedFeatureValue(Object __example) { if (__example == __exampleCache.get()) return (FeatureVector) __cache.get(); __exampleCache.set(__example); FeatureVector __result; __result = new FeatureVector(); __result.addFeatures(__fTextWords.classify(__example)); __result.addFeatures(__fInLists.classify(__example)); __result.addFeatures(__mPrefixes.classify(__example)); __result.addFeatures(__mSuffixes.classify(__example)); __cache.set(__result); return __result; }
private FeatureVector cachedFeatureValue(Object __example) { if (__example == __exampleCache.get()) return (FeatureVector) __cache.get(); __exampleCache.set(__example); FeatureVector __result; __result = new FeatureVector(); __result.addFeatures(__fTextWords.classify(__example)); __result.addFeatures(__fInLists.classify(__example)); __result.addFeatures(__mPrefixes.classify(__example)); __result.addFeatures(__mSuffixes.classify(__example)); __cache.set(__result); return __result; }
public FeatureVector classify(Object __example) { if (!(__example instanceof Mention)) { String type = __example == null ? "null" : __example.getClass().getName(); System.err.println("Classifier 'MTypePredictor$$1$7(Mention)' defined on line 114 of mTypePredictor.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(); FeatureVector rightVector = right.classify(__example); int M = rightVector.featuresSize(); for (int i = 0; i < N; ++i) { Feature lf = leftVector.getFeature(i); for (int j = 0; j < M; ++j) { Feature rf = rightVector.getFeature(j); if (lf.equals(rf)) continue; __result.addFeature(lf.conjunction(rf, this)); } } __result.sort(); return __result; }
public FeatureVector classify(Object __example) { if (!(__example instanceof Mention)) { String type = __example == null ? "null" : __example.getClass().getName(); System.err.println("Classifier 'MTypePredictor$$1$8(Mention)' defined on line 114 of mTypePredictor.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(); FeatureVector rightVector = right.classify(__example); int M = rightVector.featuresSize(); for (int i = 0; i < N; ++i) { Feature lf = leftVector.getFeature(i); for (int j = 0; j < M; ++j) { Feature rf = rightVector.getFeature(j); if (lf.equals(rf)) continue; __result.addFeature(lf.conjunction(rf, this)); } } __result.sort(); return __result; }
public FeatureVector classify(Object __example) { if (!(__example instanceof Mention)) { String type = __example == null ? "null" : __example.getClass().getName(); System.err.println("Classifier 'MTypePredictor$$1$7(Mention)' defined on line 114 of mTypePredictor.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(); FeatureVector rightVector = right.classify(__example); int M = rightVector.featuresSize(); for (int i = 0; i < N; ++i) { Feature lf = leftVector.getFeature(i); for (int j = 0; j < M; ++j) { Feature rf = rightVector.getFeature(j); if (lf.equals(rf)) continue; __result.addFeature(lf.conjunction(rf, this)); } } __result.sort(); return __result; }
public FeatureVector classify(Object __example) { if (!(__example instanceof Mention)) { String type = __example == null ? "null" : __example.getClass().getName(); System.err.println("Classifier 'MTypePredictor$$1$4(Mention)' defined on line 113 of mTypePredictor.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(); FeatureVector rightVector = right.classify(__example); int M = rightVector.featuresSize(); for (int i = 0; i < N; ++i) { Feature lf = leftVector.getFeature(i); for (int j = 0; j < M; ++j) { Feature rf = rightVector.getFeature(j); if (lf.equals(rf)) continue; __result.addFeature(lf.conjunction(rf, this)); } } __result.sort(); return __result; }
public FeatureVector classify(Object __example) { if (!(__example instanceof Mention)) { String type = __example == null ? "null" : __example.getClass().getName(); System.err.println("Classifier 'MTypePredictor$$1$4(Mention)' defined on line 113 of mTypePredictor.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(); FeatureVector rightVector = right.classify(__example); int M = rightVector.featuresSize(); for (int i = 0; i < N; ++i) { Feature lf = leftVector.getFeature(i); for (int j = 0; j < M; ++j) { Feature rf = rightVector.getFeature(j); if (lf.equals(rf)) continue; __result.addFeature(lf.conjunction(rf, this)); } } __result.sort(); return __result; }
public FeatureVector classify(Object __example) { if (!(__example instanceof Mention)) { String type = __example == null ? "null" : __example.getClass().getName(); System.err.println("Classifier 'MTypePredictor$$1$8(Mention)' defined on line 114 of mTypePredictor.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(); FeatureVector rightVector = right.classify(__example); int M = rightVector.featuresSize(); for (int i = 0; i < N; ++i) { Feature lf = leftVector.getFeature(i); for (int j = 0; j < M; ++j) { Feature rf = rightVector.getFeature(j); if (lf.equals(rf)) continue; __result.addFeature(lf.conjunction(rf, this)); } } __result.sort(); return __result; }