Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

marf.Stats.StatisticalEstimators
Class StatisticalEstimator  view StatisticalEstimator download StatisticalEstimator.java

java.lang.Object
  extended bymarf.Storage.StorageManager
      extended bymarf.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

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:
p in interface IStatisticalEstimator

train

public boolean train()
Every estimator needs to implement its specific training method.

Specified by:
train in interface IStatisticalEstimator

dumpCSV

public void dumpCSV()
             throws marf.Storage.StorageException
Not implemented.

Specified by:
dumpCSV in interface marf.Storage.IStorageManager

dumpXML

public void dumpXML()
             throws marf.Storage.StorageException
Not implemented.

Specified by:
dumpXML in interface marf.Storage.IStorageManager

restoreCSV

public void restoreCSV()
                throws marf.Storage.StorageException
Not implemented.

Specified by:
restoreCSV in interface marf.Storage.IStorageManager

restoreXML

public void restoreXML()
                throws marf.Storage.StorageException
Not implemented.

Specified by:
restoreXML in interface marf.Storage.IStorageManager

setStreamTokenizer

public final void setStreamTokenizer(marf.nlp.util.NLPStreamTokenizer poStreamTokenizer)
Description copied from interface: IStatisticalEstimator
Sets desired StreamTokenizer.

Specified by:
setStreamTokenizer in interface IStatisticalEstimator

getStreamTokenizer

public marf.nlp.util.NLPStreamTokenizer getStreamTokenizer()
Description copied from interface: IStatisticalEstimator
Retrieves current StreamTokenizer.

Specified by:
getStreamTokenizer in interface IStatisticalEstimator

getProbabilityTable

public marf.Stats.ProbabilityTable getProbabilityTable()
Description copied from interface: IStatisticalEstimator
Retrieves current ProbabilityTable.

Specified by:
getProbabilityTable in interface IStatisticalEstimator

setLanguage

public final void setLanguage(java.lang.String pstrLang)
Description copied from interface: IStatisticalEstimator
Allows altering current language being processed.

Specified by:
setLanguage in interface IStatisticalEstimator

getLanguage

public final java.lang.String getLanguage()
Description copied from interface: IStatisticalEstimator
Retrieves current language.

Specified by:
getLanguage in interface IStatisticalEstimator

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.