edu.washington.cs.knowitall.extractor.conf.opennlp
Class OpenNlpConfFunction<E>
java.lang.Object
edu.washington.cs.knowitall.extractor.conf.opennlp.OpenNlpConfFunction<E>
public class OpenNlpConfFunction<E>
- extends Object
An extraction confidence function that is backed by a logistic regression
classifier. This function will assign an extraction a real valued number
between 0 and 1 according to the logistic regression model.
It represents an extraction using a boolean feature set.
- Author:
- schmmd
|
Method Summary |
String[] |
featurize(E extr)
Turn an extraction into the feature representation used by OpenNlp. |
double |
getConf(E extr)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OpenNlpConfFunction
public OpenNlpConfFunction(opennlp.maxent.GISModel model,
BooleanFeatureSet<E> featureSet)
throws IOException
- Throws:
IOException
featurize
public String[] featurize(E extr)
- Turn an extraction into the feature representation used by OpenNlp.
- Parameters:
extr - the extraction to featurize
- Returns:
- a featurized representation
getConf
public double getConf(E extr)
throws ConfidenceFunctionException
- Parameters:
extr -
- Returns:
- the probability that the given extraction belongs to the positive
class
- Throws:
ConfidenceFunctionException - if unable to compute the confidence score
Copyright © 2010-2012 University of Washington CSE. All Rights Reserved.