edu.columbia.cs.ref.engine.impl
Class WekaClassifierEngine

java.lang.Object
  extended by edu.columbia.cs.ref.engine.impl.WekaClassifierEngine
All Implemented Interfaces:
Engine

public class WekaClassifierEngine
extends java.lang.Object
implements Engine

The Class WekaClassifierEngine is an implementation of an Engine that produces models by using generic classifiers from Weka.

It receives as input the classifier that will be used, the features that will be considered, a structure configuration and a set of relationship extractions to be extracted.

Since:
2011-09-27
Version:
0.1
Author:
Pablo Barrio, Goncalo Simoes

Constructor Summary
WekaClassifierEngine(weka.classifiers.Classifier classifier, edu.washington.cs.knowitall.extractor.conf.BooleanFeatureSet<edu.washington.cs.knowitall.nlp.extraction.ChunkedBinaryExtraction> featureSet, StructureConfiguration conf, java.util.Set<RelationshipType> relationshipTypes)
          Instantiates a new Weka classifier engine.
 
Method Summary
 Model train(java.util.List<OperableStructure> list)
          Given a list of labeled operable structures that corresponds to the training data, produces a model for relationship extraction.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WekaClassifierEngine

public WekaClassifierEngine(weka.classifiers.Classifier classifier,
                            edu.washington.cs.knowitall.extractor.conf.BooleanFeatureSet<edu.washington.cs.knowitall.nlp.extraction.ChunkedBinaryExtraction> featureSet,
                            StructureConfiguration conf,
                            java.util.Set<RelationshipType> relationshipTypes)
Instantiates a new Weka classifier engine.

Parameters:
classifier - the classifier to be used (not yet trained)
featureSet - the features to be used by the classifier
conf - the structure configuration
relationshipTypes - the relationship types to extract
Method Detail

train

public Model train(java.util.List<OperableStructure> list)
Description copied from interface: Engine
Given a list of labeled operable structures that corresponds to the training data, produces a model for relationship extraction.

Specified by:
train in interface Engine
Parameters:
list - the training data
Returns:
the relationship extraction model produced by this engine with the provided training data.