|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.extraction.Extractor
An abstract extractor class. Takes a set of objects and trains on it; then can be used for extraction on a testing set.
Field Summary | |
protected java.util.ArrayList |
m_statistics
An arraylist of Object arrays containing statistics |
Constructor Summary | |
Extractor()
|
Method Summary | |
static Extractor |
forName(java.lang.String extractorName,
java.lang.String[] options)
A helper function that may be needed by command-line Weka |
java.util.ArrayList |
getStatistics()
Return the list of statistics collected during extraction |
abstract void |
testExtractor(Instances testData,
java.util.HashMap docFillerMap)
Perform extraction on a set of data. |
abstract void |
trainExtractor(Instances labeledData,
Instances unlabeledData)
Given training data, train the extractor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.ArrayList m_statistics
Constructor Detail |
public Extractor()
Method Detail |
public abstract void trainExtractor(Instances labeledData, Instances unlabeledData) throws java.lang.Exception
labeledData
- a set of training dataunlabeledData
- a set of unlabeled data; used only by extractors
that implement transductive learning
java.lang.Exception
public abstract void testExtractor(Instances testData, java.util.HashMap docFillerMap) throws java.lang.Exception
testData
- a set of instances on which to perform extractiondocFillerMap
- a map where the uniqueID of an instance (document) is mapped to a
HashMap, which maps fillers to a list of Integer positions
java.lang.Exception
public java.util.ArrayList getStatistics()
public static Extractor forName(java.lang.String extractorName, java.lang.String[] options) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |