edu.cmu.minorthird.text.learn
Class BinaryTextClassifier

java.lang.Object
  extended by edu.cmu.minorthird.text.learn.BinaryTextClassifier
All Implemented Interfaces:
TextClassifier

public class BinaryTextClassifier
extends java.lang.Object
implements TextClassifier

Class the returns the score of a string rather than an instance

Author:
Cameron Williams

Constructor Summary
BinaryTextClassifier(OnlineClassifierLearner learner, SpanFeatureExtractor fe)
           
 
Method Summary
 double score(java.lang.String text)
          Returns the weight for a String being in the positive class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryTextClassifier

public BinaryTextClassifier(OnlineClassifierLearner learner,
                            SpanFeatureExtractor fe)
Method Detail

score

public double score(java.lang.String text)
Returns the weight for a String being in the positive class

Specified by:
score in interface TextClassifier