public class IDFeatureFlatFileExporterImpl extends AbstractExporter
Modifier and Type | Field and Description |
---|---|
protected boolean |
boolIsSymmetric |
(package private) java.util.HashMap<java.lang.Integer,java.lang.String> |
objID2String |
protected java.lang.String |
strWordNumberList |
BLOCK_SIZE, BLOCKS, boolExportFrequency, boolReplaceWordNumbers, boolSorting, charSortingDirection, CUTOFF_SIGNIFICANCE_IMPL, dblCutoffThreshold, dblThreshold, intAccuracy, intCounterSize, intDataSetsPerBucket, intFreqCutoffThreshold, intFreqMinimumThreshold, intKeyCoordinates, intSizeOfDataset, intSizeOfDiscHashValue, intSizeOfKey, intSortingOrder, intWSWNMapping, longCoocTypes, longSigCoocTokens, longSigCoocTypes, objCutoffSignificance, objDiscHash, objInt2Word, objSignificance, objWordFrequencies, PARSER_FILTER_IMPL, SIGNIFICANCE_IMPL, STORE_IMPL, strFlatFileSeperator, strOutputFile, strSortingDirection, strSortingOrder
BOOLEAN_DEFAULT, DOUBLE_DEFAULT, FORMAT_IMPL, INT_DEFAULT, LONG_DEFAULT, objConf, objConfCategory, objFormat, strBackupConfFile, STRING_DEFAULT
ARRAY_SIZE_32_BIT, ARRAY_SIZE_64_BIT
Constructor and Description |
---|
IDFeatureFlatFileExporterImpl()
Creates a new instance of FlatFileExporterImpl
|
Modifier and Type | Method and Description |
---|---|
boolean |
export()
Export extracted and calculated information to export file, which
name contain ConfigurationContainer.
|
boolean |
export(java.io.OutputStream strmOut)
Create temporarily file, export to this file extracted values, sort values from
this file and write sorted values to strOutputFile.
|
boolean |
export(java.lang.String strOutputFile)
Export extracted and calculated information to export file, which
name is given by output file name.
|
protected void |
exportFlatFile(java.io.OutputStream strmOut)
Calculate some values like dblSigMess, dblSigMessString... and write
this values in following format:
word \t TMPValue \t dblSigMess \n
intTMPValue \t dblSigMessString \n
dblSigMess \n
dblSigMessString \n
intWSWNMapping \t
|
protected java.lang.String |
getString2ID(java.lang.Integer objID) |
void |
init()
Initialization of configuration.
|
protected void |
loadIDMapping() |
calcDataSetsPerBucket, export, getInt, getWord, getWordFrequencies, loadDiscHash, loadSignificance, loadWordFrequencies, loadWordNumbers, loadWSWN, setCutoffSignificanceMeasure, setSignificanceMeasure
config, getConfiguration, getGlobalProperty, getProperty, getProperty, getStatisticsProperty, loadFormatImpl, selfconfig, setGlobalProperty, setProperty, setProperty, setStatisticsProperty, setStatisticsProperty
protected java.lang.String strWordNumberList
protected boolean boolIsSymmetric
java.util.HashMap<java.lang.Integer,java.lang.String> objID2String
public IDFeatureFlatFileExporterImpl()
public void init() throws ConfigurationException
AbstractExporter
init
in interface Configuration
init
in class AbstractExporter
ConfigurationException
Configuration.init()
protected void loadIDMapping() throws ConfigurationException
ConfigurationException
protected java.lang.String getString2ID(java.lang.Integer objID)
public boolean export() throws java.io.IOException, EmptyExportException, FormatException
Exporter
export
in interface Exporter
export
in class AbstractExporter
java.io.IOException
EmptyExportException
FormatException
public boolean export(java.lang.String strOutputFile) throws java.io.IOException, EmptyExportException, FormatException
Exporter
export
in interface Exporter
export
in class AbstractExporter
strOutputFile
- output file namejava.io.IOException
EmptyExportException
FormatException
public boolean export(java.io.OutputStream strmOut) throws java.io.IOException, EmptyExportException, FormatException
strmOut
- output streamjava.io.IOException
EmptyExportException
FormatException
protected void exportFlatFile(java.io.OutputStream strmOut) throws java.io.IOException, EmptyExportException, FormatException
strmOut
- OutputStreamjava.io.IOException
EmptyExportException
FormatException
2005-2013 Marco Büchler, Natural Language Processing Group, University of Leipzig, Germany. 2013-2016 Marco Büchler, Georg August University Göttingen, Göttingen, Germany