|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object marf.Storage.StorageManager marf.Stats.StatisticalEstimators.StatisticalEstimator
public abstract class StatisticalEstimator
Implements generic Statistical Estimator routines. Must be subclasses by concrete implemenations of statistical estimators.
$Id: StatisticalEstimator.java,v 1.24 2005/06/16 19:58:47 mokhov Exp $
Field Summary | |
---|---|
protected ProbabilityTable |
oProbabilityTable
|
protected NLPStreamTokenizer |
oStreamTokenizer
|
Fields inherited from class marf.Storage.StorageManager |
---|
bDumpOnNotFound, iCurrentDumpMode, oObjectToSerialize, strFilename |
Fields inherited from interface marf.Stats.StatisticalEstimators.IStatisticalEstimator |
---|
MARF_INTERFACE_CODE_REVISION |
Fields inherited from interface marf.Storage.IStorageManager |
---|
DUMP_BINARY, DUMP_CSV_TEXT, DUMP_GZIP_BINARY, DUMP_HTML, DUMP_SQL, DUMP_XML, MARF_INTERFACE_CODE_REVISION, STORAGE_FILE_EXTENSIONS |
Constructor Summary | |
---|---|
StatisticalEstimator()
|
Method Summary | |
---|---|
void |
dumpCSV()
Not implemented. |
void |
dumpXML()
Not implemented. |
java.lang.String |
getFilename()
Retrieves inner filename reference. |
java.lang.String |
getLanguage()
Retrieves current language. |
static java.lang.String |
getMARFSourceCodeRevision()
Retrieves class' revision. |
ProbabilityTable |
getProbabilityTable()
Retrieves current ProbabilityTable. |
NLPStreamTokenizer |
getStreamTokenizer()
Retrieves current StreamTokenizer. |
double |
p()
N-gram-based classification. |
java.lang.String |
resetFilename()
|
void |
restoreCSV()
Not implemented. |
void |
restoreXML()
Not implemented. |
void |
setLanguage(java.lang.String pstrLang)
Allows altering current language being processed. |
void |
setStreamTokenizer(NLPStreamTokenizer poStreamTokenizer)
Sets desired StreamTokenizer. |
boolean |
train()
Every estimator needs to implement its specific training method. |
Methods inherited from class marf.Storage.StorageManager |
---|
backSynchronizeObject, dump, dumpBinary, dumpGzipBinary, dumpHTML, dumpSQL, enableDumpOnNotFound, getDefaultExtension, getDefaultExtension, getDumpMode, restore, restoreBinary, restoreGzipBinary, restoreHTML, restoreSQL, setDumpMode, setFilename |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ProbabilityTable oProbabilityTable
protected NLPStreamTokenizer oStreamTokenizer
Constructor Detail |
---|
public StatisticalEstimator()
Method Detail |
---|
public final double p()
p
in interface IStatisticalEstimator
public boolean train()
train
in interface IStatisticalEstimator
true
if training was successfulpublic void dumpCSV() throws StorageException
dumpCSV
in interface IStorageManager
dumpCSV
in class StorageManager
StorageException
- never thrownStorageManager.dump()
public void dumpXML() throws StorageException
dumpXML
in interface IStorageManager
dumpXML
in class StorageManager
StorageException
- never thrownStorageManager.dump()
public void restoreCSV() throws StorageException
restoreCSV
in interface IStorageManager
restoreCSV
in class StorageManager
StorageException
- never thrownStorageManager.restore()
public void restoreXML() throws StorageException
restoreXML
in interface IStorageManager
restoreXML
in class StorageManager
StorageException
- never thrownStorageManager.restore()
public final void setStreamTokenizer(NLPStreamTokenizer poStreamTokenizer)
IStatisticalEstimator
setStreamTokenizer
in interface IStatisticalEstimator
poStreamTokenizer
- StreamTokenizer or a derivative to use for tokensNLPStreamTokenizer
public NLPStreamTokenizer getStreamTokenizer()
IStatisticalEstimator
getStreamTokenizer
in interface IStatisticalEstimator
public ProbabilityTable getProbabilityTable()
IStatisticalEstimator
getProbabilityTable
in interface IStatisticalEstimator
ProbabilityTable
public final void setLanguage(java.lang.String pstrLang)
IStatisticalEstimator
setLanguage
in interface IStatisticalEstimator
pstrLang
- desired languagepublic final java.lang.String getLanguage()
IStatisticalEstimator
getLanguage
in interface IStatisticalEstimator
public final java.lang.String resetFilename()
public final java.lang.String getFilename()
StorageManager
getFilename
in class StorageManager
public static java.lang.String getMARFSourceCodeRevision()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |