edu.columbia.cs.ref.engine.impl
Class JLibSVMMulticlassEngine
java.lang.Object
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
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 |
JLibSVMMulticlassEngine
public JLibSVMMulticlassEngine(StructureConfiguration conf,
java.util.Set<RelationshipType> relationshipTypes)
- Instantiates a new multiclass engine that uses JLibSVM to train.
- Parameters:
conf
- the structure configurationrelationshipTypes
- the relationship types to extract
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.