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

Quick Search    Search Deep

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

java.lang.Object
  extended bymarf.Storage.StorageManager
      extended bymarf.Stats.StatisticalEstimators.StatisticalEstimator
          extended bymarf.Stats.StatisticalEstimators.KatzBackoff
All Implemented Interfaces:
IStatisticalEstimator, marf.Storage.IStorageManager, java.io.Serializable

public class KatzBackoff
extends StatisticalEstimator

Katz Backoff Statistical Estimator. TODO: complete/document. $Id: KatzBackoff.java,v 1.16 2005/08/14 01:15:56 mokhov Exp $

Since:
0.3.0
Version:
$Revision: 1.16 $

Field Summary
private static long serialVersionUID
          For serialization versioning.
 
Fields inherited from class marf.Stats.StatisticalEstimators.StatisticalEstimator
oProbabilityTable, 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
KatzBackoff()
           
 
Method Summary
static java.lang.String getMARFSourceCodeRevision()
          Returns source code revision information.
 double P(marf.Stats.Ngram poNgram)
           
 boolean train()
          Every estimator needs to implement its specific training method.
 
Methods inherited from class marf.Stats.StatisticalEstimators.StatisticalEstimator
dumpCSV, dumpXML, getFilename, getLanguage, getProbabilityTable, getStreamTokenizer, p, resetFilename, restoreCSV, restoreXML, setLanguage, setStreamTokenizer
 
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

serialVersionUID

private static final long serialVersionUID
For serialization versioning. When adding new members or make other structural changes regenerate this number with the serialver tool that comes with JDK.

Since:
0.3.0.4
See Also:
Constant Field Values
Constructor Detail

KatzBackoff

public KatzBackoff()
Method Detail

P

public double P(marf.Stats.Ngram poNgram)

train

public boolean train()
Description copied from class: StatisticalEstimator
Every estimator needs to implement its specific training method.

Specified by:
train in interface IStatisticalEstimator
Overrides:
train in class StatisticalEstimator

getMARFSourceCodeRevision

public static java.lang.String getMARFSourceCodeRevision()
Returns source code revision information.