Example usage for edu.stanford.nlp.classify LogisticClassifier probabilityOf

List of usage examples for edu.stanford.nlp.classify LogisticClassifier probabilityOf

Introduction

In this page you can find the example usage for edu.stanford.nlp.classify LogisticClassifier probabilityOf.

Prototype

public double probabilityOf(RVFDatum<L, F> example) 

Source Link

Usage

From source file:knu.univ.lingvo.coref.Mention.java

License:Open Source License

private void setSingleton(LogisticClassifier<String, String> predictor, Dictionaries dict) {
    double coreference_score = predictor
            .probabilityOf(new BasicDatum<String, String>(getSingletonFeatures(dict), "1"));
    if (coreference_score < 0.2)
        this.isSingleton = true;
}