Package org.apache.ctakes.coreference.util

Examples of org.apache.ctakes.coreference.util.AbstractClassifier


    super.initialize(uc);

    // Load svm models
    mod_anaphoricity = loadModel(uc, "svmAnaphoricityModel");
    // FIXME why is there a minus one here?
    mod_pron = new AbstractClassifier(uc, "svmPronModel", FeatureVector.getPronCorefFeatures().length + SyntaxAttributeCalculator.getNumPronFeats() - 1);
//    mod_dem = new AbstractClassifier(uc, "svmDemModel", FeatureVector.getDemCorefFeatures().length + SyntaxAttributeCalculator.getNumDemFeats() - 1);
    mod_coref = new AbstractClassifier(uc, "svmCorefModel", FeatureVector.getNECorefFeatures().length + SyntaxAttributeCalculator.getNumNEFeats() - 1);

    int[] labels = new int[2];
    svm.svm_get_labels(mod_anaphoricity, labels);
    anaphoricity_idx = labels[0]==1 ? 0 : 1;
    //    svm.svm_get_labels(mod_coref, labels);
View Full Code Here


    // Load svm models
//    mod_anaphoricity = loadModel(uc, "svmAnaphoricityModel");
    // FIXME why is there a minus one here?
//    mod_pron = new AbstractClassifier(uc, "svmPronModel", FeatureVector.getPronCorefFeatures().length + SyntaxAttributeCalculator.getNumPronFeats() - 1);
//    mod_dem = new AbstractClassifier(uc, "svmDemModel", FeatureVector.getDemCorefFeatures().length + SyntaxAttributeCalculator.getNumDemFeats() - 1);
    mod_coref = new AbstractClassifier(uc, "svmCorefModel", FeatureVector.getNECorefFeatures().length + SyntaxAttributeCalculator.getNumNEFeats() - 1);

//    int[] labels = new int[2];
//    svm.svm_get_labels(mod_anaphoricity, labels);
//    anaphoricity_idx = labels[0]==1 ? 0 : 1;
    //    svm.svm_get_labels(mod_coref, labels);
View Full Code Here

TOP

Related Classes of org.apache.ctakes.coreference.util.AbstractClassifier

Copyright © 2018 www.massapicom. 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.