|
|||||||||
| Home >> All >> marf >> Stats >> [ StatisticalEstimators overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
marf.Stats.StatisticalEstimators
Class StatisticalEstimator

java.lang.Objectmarf.Storage.StorageManager
marf.Stats.StatisticalEstimators.StatisticalEstimator
- All Implemented Interfaces:
- IStatisticalEstimator, marf.Storage.IStorageManager, java.io.Serializable
- Direct Known Subclasses:
- GLI, KatzBackoff, SLI, marf.Stats.StatisticalEstimators.Smoothing.Smoothing
- public abstract class StatisticalEstimator
- extends marf.Storage.StorageManager
- implements IStatisticalEstimator
- extends marf.Storage.StorageManager
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 $
- Since:
- 0.3.0
- Version:
- $Revision: 1.24 $
| Field Summary | |
protected marf.Stats.ProbabilityTable |
oProbabilityTable
|
protected marf.nlp.util.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. |
marf.Stats.ProbabilityTable |
getProbabilityTable()
Retrieves current ProbabilityTable. |
marf.nlp.util.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(marf.nlp.util.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 |
oProbabilityTable
protected marf.Stats.ProbabilityTable oProbabilityTable
oStreamTokenizer
protected marf.nlp.util.NLPStreamTokenizer oStreamTokenizer
| Constructor Detail |
StatisticalEstimator
public StatisticalEstimator()
| Method Detail |
p
public final double p()
- N-gram-based classification.
- Specified by:
pin interfaceIStatisticalEstimator
train
public boolean train()
- Every estimator needs to implement its specific training method.
- Specified by:
trainin interfaceIStatisticalEstimator
dumpCSV
public void dumpCSV()
throws marf.Storage.StorageException
- Not implemented.
- Specified by:
dumpCSVin interfacemarf.Storage.IStorageManager
dumpXML
public void dumpXML()
throws marf.Storage.StorageException
- Not implemented.
- Specified by:
dumpXMLin interfacemarf.Storage.IStorageManager
restoreCSV
public void restoreCSV()
throws marf.Storage.StorageException
- Not implemented.
- Specified by:
restoreCSVin interfacemarf.Storage.IStorageManager
restoreXML
public void restoreXML()
throws marf.Storage.StorageException
- Not implemented.
- Specified by:
restoreXMLin interfacemarf.Storage.IStorageManager
setStreamTokenizer
public final void setStreamTokenizer(marf.nlp.util.NLPStreamTokenizer poStreamTokenizer)
- Description copied from interface:
IStatisticalEstimator - Sets desired StreamTokenizer.
- Specified by:
setStreamTokenizerin interfaceIStatisticalEstimator
getStreamTokenizer
public marf.nlp.util.NLPStreamTokenizer getStreamTokenizer()
- Description copied from interface:
IStatisticalEstimator - Retrieves current StreamTokenizer.
- Specified by:
getStreamTokenizerin interfaceIStatisticalEstimator
getProbabilityTable
public marf.Stats.ProbabilityTable getProbabilityTable()
- Description copied from interface:
IStatisticalEstimator - Retrieves current ProbabilityTable.
- Specified by:
getProbabilityTablein interfaceIStatisticalEstimator
setLanguage
public final void setLanguage(java.lang.String pstrLang)
- Description copied from interface:
IStatisticalEstimator - Allows altering current language being processed.
- Specified by:
setLanguagein interfaceIStatisticalEstimator
getLanguage
public final java.lang.String getLanguage()
- Description copied from interface:
IStatisticalEstimator - Retrieves current language.
- Specified by:
getLanguagein interfaceIStatisticalEstimator
resetFilename
public final java.lang.String resetFilename()
getFilename
public final java.lang.String getFilename()
- Description copied from class:
marf.Storage.StorageManager - Retrieves inner filename reference.
getMARFSourceCodeRevision
public static java.lang.String getMARFSourceCodeRevision()
- Retrieves class' revision.
|
|||||||||
| Home >> All >> marf >> Stats >> [ StatisticalEstimators overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC