public class DocumentResultInstanceImporter extends Object implements WekaResultInstanceImporter
Constructor and Description |
---|
DocumentResultInstanceImporter() |
Modifier and Type | Method and Description |
---|---|
org.hibernate.SessionFactory |
getSessionFactory() |
void |
importInstanceResult(Integer instanceNumber,
List<String> instanceKey,
String task,
int classAuto,
int classGold,
List<Double> predictions) |
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory) |
public org.hibernate.SessionFactory getSessionFactory()
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
public void importInstanceResult(Integer instanceNumber, List<String> instanceKey, String task, int classAuto, int classGold, List<Double> predictions)
importInstanceResult
in interface WekaResultInstanceImporter
instanceNumber
- optional instance number when multiple instance classified,
used for outputting errors/warningsinstanceKey
- list of attributes to resolve instance - foreign key to
document/sentence/whatevertask
- classification taskclassAuto
- classifer's predicted classclassGold
- gold standard class indexCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.