|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.extraction.ExtractionEvaluation
Class for evaluating extractors
Field Summary | |
protected Instances |
m_testInstances
Test instances |
protected Instances |
m_trainInstances
Training instances |
Constructor Summary | |
ExtractionEvaluation()
A default constructor |
Method Summary | |
protected java.util.HashMap |
createDocFillerMap(Instances data)
Given a set of data, create a HashMap which maps each Instance's uniqueID to a fillerPositionListMap. |
java.util.ArrayList |
evaluateModel(Extractor extractor,
Instances testData)
Evaluates an extractor on a given set of test instances |
java.lang.String |
globalInfo()
Returns a string describing this evaluator |
void |
trainExtractor(Extractor extractor,
Instances labeledData,
Instances unlabeledData)
Train an extractor on supplied data |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Instances m_trainInstances
protected Instances m_testInstances
Constructor Detail |
public ExtractionEvaluation()
Method Detail |
public java.lang.String globalInfo()
public void trainExtractor(Extractor extractor, Instances labeledData, Instances unlabeledData) throws java.lang.Exception
extractor
- the extractor to trainlabeledData
- data that is labeled for training the extractorunlabeledData
- unlabeled data for transductive extractors
java.lang.Exception
public java.util.ArrayList evaluateModel(Extractor extractor, Instances testData) throws java.lang.Exception
extractor
- the extractor to evaluatetestData
- set of test instances for evaluation
java.lang.Exception
- if model could not be evaluated successfullyprotected java.util.HashMap createDocFillerMap(Instances data)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |