edu.washington.cs.knowitall.extractor.conf
Class ReVerbOpenNlpConfFunction

java.lang.Object
  extended by edu.washington.cs.knowitall.extractor.conf.ReVerbOpenNlpConfFunction
All Implemented Interfaces:
ConfidenceFunction

public class ReVerbOpenNlpConfFunction
extends Object
implements ConfidenceFunction

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 the boolean features defined by the ReVerbFeatures class. See that documentation for details.

Author:
schmmd

Constructor Summary
ReVerbOpenNlpConfFunction()
          Constructs a new instance of the confidence function.
ReVerbOpenNlpConfFunction(File modelFile)
          Load a model from the specified file.
ReVerbOpenNlpConfFunction(String modelResourcePath)
          Load a model specified as a resource path from the root.
ReVerbOpenNlpConfFunction(URL url)
          Constructs a new instance of the confidence function from the specified URL.
 
Method Summary
 double getConf(ChunkedBinaryExtraction extr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReVerbOpenNlpConfFunction

public ReVerbOpenNlpConfFunction()
                          throws ConfidenceFunctionException,
                                 IOException
Constructs a new instance of the confidence function.

Throws:
ConfidenceFunctionException - if unable to initialize
IOException

ReVerbOpenNlpConfFunction

public ReVerbOpenNlpConfFunction(URL url)
                          throws IOException
Constructs a new instance of the confidence function from the specified URL.

Throws:
ConfidenceFunctionException - if unable to initialize
IOException

ReVerbOpenNlpConfFunction

public ReVerbOpenNlpConfFunction(String modelResourcePath)
                          throws IOException
Load a model specified as a resource path from the root.

Parameters:
modelResourcePath -
Throws:
IOException

ReVerbOpenNlpConfFunction

public ReVerbOpenNlpConfFunction(File modelFile)
                          throws IOException
Load a model from the specified file.

Parameters:
modelFile -
Throws:
IOException
Method Detail

getConf

public double getConf(ChunkedBinaryExtraction extr)
               throws ConfidenceFunctionException
Specified by:
getConf in interface ConfidenceFunction
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.