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

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

public class JLibSVMBinaryEngine
extends java.lang.Object
implements Engine

The Class JLibSVMBinaryEngine is an implementation of an Engine that produces models by using the SVM engine from JLibSVM.

It receives as input a structure configuration and a set of relationship extractions to be extracted.

The model produced by this engine will use one VS all binary classifiers, which means that several labels can be assigned to a given object

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

Constructor Summary
JLibSVMBinaryEngine(StructureConfiguration conf, java.util.Set<RelationshipType> relationshipTypes)
          Instantiates a new binary engine that uses JLibSVM to train.
 
Method Summary
 Model train(java.util.List<OperableStructure> train)
          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

JLibSVMBinaryEngine

public JLibSVMBinaryEngine(StructureConfiguration conf,
                           java.util.Set<RelationshipType> relationshipTypes)
Instantiates a new binary engine that uses JLibSVM to train.

Parameters:
conf - the structure configuration
relationshipTypes - the relationship types to extract
Method Detail

train

public Model train(java.util.List<OperableStructure> train)
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:
train - the training data
Returns:
the relationship extraction model produced by this engine with the provided training data.