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

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

public class JLibSVMMulticlassEngine
extends java.lang.Object
implements Engine

The Class JLibSVMMulticlassEngine 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 multi-label classifiers, which means that only one label can be assigned to a given object.

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

Constructor Summary
JLibSVMMulticlassEngine(StructureConfiguration conf, java.util.Set<RelationshipType> relationshipTypes)
          Instantiates a new multiclass 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

JLibSVMMulticlassEngine

public JLibSVMMulticlassEngine(StructureConfiguration conf,
                               java.util.Set<RelationshipType> relationshipTypes)
Instantiates a new multiclass 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.