edu.washington.cs.knowitall.extractor.conf
Class WekaBooleanFeatureSet<T>

java.lang.Object
  extended by edu.washington.cs.knowitall.extractor.conf.WekaBooleanFeatureSet<T>
Type Parameters:
T -

public class WekaBooleanFeatureSet<T>
extends java.lang.Object

Used for converting an object of type T into a Weka Instance object.

Author:
afader

Constructor Summary
WekaBooleanFeatureSet(BooleanFeatureSet<T> featureSet)
          Constructs a new Weka feature set from the given feature set.
 
Method Summary
 weka.core.FastVector getAttributesCopy()
           
 weka.core.Instance getInstanceFrom(T object)
          Returns the feature representation of the given object as a Weka Instance object.
 weka.core.Instance getInstanceFrom(T object, int label)
          Returns the feature representation of the given object as a Weka Instance object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WekaBooleanFeatureSet

public WekaBooleanFeatureSet(BooleanFeatureSet<T> featureSet)
Constructs a new Weka feature set from the given feature set.

Parameters:
featureSet -
Method Detail

getAttributesCopy

public weka.core.FastVector getAttributesCopy()
Returns:
a copy of the Weka attributes for this feature representation.

getInstanceFrom

public weka.core.Instance getInstanceFrom(T object)
Returns the feature representation of the given object as a Weka Instance object. Does not add a class value attribute to the instance object.

Parameters:
object -
Returns:

getInstanceFrom

public weka.core.Instance getInstanceFrom(T object,
                                          int label)
Returns the feature representation of the given object as a Weka Instance object. Sets the class attribute to the given label.

Parameters:
object -
label -
Returns: