Examples of DoubleFeatures


Examples of edu.washington.cs.knowitall.extractor.conf.classifier.DoubleFeatures

                np_count_before = patternExtractor.getNPCountBefore(extr, k);
                word_before_vp = patternExtractor.wordBeforeIsVP(extr, k);
                intervening_np = patternExtractor.getInterveningNPCount(extr,
                        k);

                DoubleFeatures featureMap = new DoubleFeatures();
                featureMap.put("simple_subj", toDouble(simple_subj));
                featureMap.put("quotes_subj", toDouble(quotes_subj));
                featureMap.put("relative_subj", toDouble(relative_subj));
                featureMap.put("verb_conj", toDouble(verb_conj));
                featureMap.put("app", toDouble(app_clause));
                featureMap.put("which_who", toDouble(which_who));
                featureMap.put("capitalized", toDouble(capitalized));
                featureMap.put("punct_count", toDouble(punctuation_count));
                featureMap.put("intervening_np_count", toDouble(intervening_np));
                featureMap.put("np_count_before", toDouble(np_count_before));
                featureMap.put("word_before_pred_conj", toDouble(word_before_pred_conj));
                featureMap.put("intervening_and", toDouble(intervening_and));
                featureMap.put("word_after_vp", toDouble(word_after_vp));
                featureMap.put("word_before_vp", toDouble(word_before_vp));

                return featureMap;
            }
        }
View Full Code Here

Examples of edu.washington.cs.knowitall.extractor.conf.classifier.DoubleFeatures

            int rightbound = -1;

            // classify each np
            while (k > -1 && classification == -1) {
                if (predicate.getSentence().getChunkTag(k).equals("B-NP")) {
                    DoubleFeatures features = featuregenerator.extractFeatures(
                            predicate, null, k, false);
                    String outcome = classifier.classify(features);
                    classification = outcome.equals("closest_np") ? 0 : -1;
                    rightbound = k;
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.