public class GramMatrixExporterImpl extends WekaBagOfWordsExporterImpl implements GramMatrixExporter
Modifier and Type | Class and Description |
---|---|
static class |
GramMatrixExporterImpl.GramMatrixArffDecorator
Deprecated.
add gramIndex attribute to arff file
|
static class |
GramMatrixExporterImpl.GramMatrixType
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
private WekaBagOfWordsExporter |
bagOfWordsExporter
Deprecated.
|
private JdbcTemplate |
jdbcTemplate
Deprecated.
|
private KernelEvaluationDao |
kernelEvaluationDao
Deprecated.
|
simpleJdbcTemplate, transactionManager, txNew
Constructor and Description |
---|
GramMatrixExporterImpl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.Long,java.lang.Integer> |
exportGramMatrix(java.io.BufferedWriter writer,
KernelEvaluation kernelEvaluation,
GramMatrixExporterImpl.GramMatrixType matrixType,
java.util.Map<java.lang.Long,java.lang.String> instanceIDClassLabel,
java.util.Map<java.lang.Long,java.lang.Integer> instanceToIndexMap)
Deprecated.
|
void |
exportGramMatrix(java.lang.String propertyFile)
Deprecated.
|
private void |
exportWekaGramMatrix(double[][] gramMatrix,
java.io.BufferedWriter writer)
Deprecated.
|
BagOfWordsExporter |
getBagOfWordsExporter()
Deprecated.
|
javax.sql.DataSource |
getDataSource()
Deprecated.
|
KernelEvaluationDao |
getKernelEvaluationDao()
Deprecated.
|
private void |
initializeInstanceIndices(java.lang.String instanceClassQuery,
java.util.Map<java.lang.Long,java.lang.String> instanceIDClassLabel,
java.util.Map<java.lang.Long,java.lang.Integer> instanceToIndexMap)
Deprecated.
|
void |
setBagOfWordsExporter(WekaBagOfWordsExporter bagOfWordsExporter)
Deprecated.
|
void |
setDataSource(javax.sql.DataSource ds)
Deprecated.
|
void |
setKernelEvaluationDao(KernelEvaluationDao kernelEvaluationDao)
Deprecated.
|
exportBagOfWords, exportBagOfWords, exportBagOfWords, exportBagOfWords, getInstances, initializeInstances
addNominalWordToInstance, addNumericWordToInstance, getDataSource, getNominalInstanceWords, getNumericInstanceWords, getTransactionManager, loadData, loadProperties, setTransactionManager
private JdbcTemplate jdbcTemplate
private KernelEvaluationDao kernelEvaluationDao
private WekaBagOfWordsExporter bagOfWordsExporter
public KernelEvaluationDao getKernelEvaluationDao()
public BagOfWordsExporter getBagOfWordsExporter()
public void setBagOfWordsExporter(WekaBagOfWordsExporter bagOfWordsExporter)
public void setKernelEvaluationDao(KernelEvaluationDao kernelEvaluationDao)
public void setDataSource(javax.sql.DataSource ds)
setDataSource
in class AbstractBagOfWordsExporter
public javax.sql.DataSource getDataSource()
public void exportGramMatrix(java.lang.String propertyFile) throws java.io.IOException
exportGramMatrix
in interface GramMatrixExporter
java.io.IOException
protected java.util.Map<java.lang.Long,java.lang.Integer> exportGramMatrix(java.io.BufferedWriter writer, KernelEvaluation kernelEvaluation, GramMatrixExporterImpl.GramMatrixType matrixType, java.util.Map<java.lang.Long,java.lang.String> instanceIDClassLabel, java.util.Map<java.lang.Long,java.lang.Integer> instanceToIndexMap) throws java.io.IOException
java.io.IOException
private void initializeInstanceIndices(java.lang.String instanceClassQuery, java.util.Map<java.lang.Long,java.lang.String> instanceIDClassLabel, java.util.Map<java.lang.Long,java.lang.Integer> instanceToIndexMap)
private void exportWekaGramMatrix(double[][] gramMatrix, java.io.BufferedWriter writer) throws java.io.IOException
java.io.IOException