edu.columbia.cs.api
Class ClassifierBasedRelationshipExtractor<D extends Document>

java.lang.Object
  extended by edu.columbia.cs.api.ClassifierBasedRelationshipExtractor<D>
All Implemented Interfaces:
RelationshipExtractor<Document>

public class ClassifierBasedRelationshipExtractor<D extends Document>
extends java.lang.Object
implements RelationshipExtractor<Document>

Implementation of the relationship extractor that uses a classifier to extract information from a document

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

Constructor Summary
ClassifierBasedRelationshipExtractor(Model m, SentenceSplitter s)
          Constructor of the classifier based relationship extractor.
 
Method Summary
 java.util.List<Relationship> extractTuples(Document d)
          Implementation of the extract Tuples method that uses the classifier to extract tuples from the input document
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassifierBasedRelationshipExtractor

public ClassifierBasedRelationshipExtractor(Model m,
                                            SentenceSplitter s)
Constructor of the classifier based relationship extractor. It receives as input a classification model and a sentence splitter.

Parameters:
m - classification model
s - sentence splitter
Method Detail

extractTuples

public java.util.List<Relationship> extractTuples(Document d)
Implementation of the extract Tuples method that uses the classifier to extract tuples from the input document

Specified by:
extractTuples in interface RelationshipExtractor<Document>
Parameters:
d - the document that contains the information to be extracted