Example usage for edu.stanford.nlp.ling BasicDatum BasicDatum

List of usage examples for edu.stanford.nlp.ling BasicDatum BasicDatum

Introduction

In this page you can find the example usage for edu.stanford.nlp.ling BasicDatum BasicDatum.

Prototype

public BasicDatum(Collection<FeatureType> features, LabelType label) 

Source Link

Document

Constructs a new BasicDatum with the given features and label.

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;
}