marf.Stats.StatisticalEstimators.Smoothing
Class WittenBell
java.lang.Object
marf.Storage.StorageManager
marf.Stats.StatisticalEstimators.StatisticalEstimator
marf.Stats.StatisticalEstimators.Smoothing.Smoothing
marf.Stats.StatisticalEstimators.Smoothing.WittenBell
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, IStatisticalEstimator, ISmoothing, IStorageManager
public class WittenBell
- extends Smoothing
Represents Witten-Bell Smoothing Algorithm.
$Id: WittenBell.java,v 1.21 2007/12/18 21:57:15 mokhov Exp $
- Since:
- 0.3.0.2
- Version:
- $Revision: 1.21 $
- Author:
- Serguei Mokhov
- See Also:
- Serialized Form
Field Summary |
private static long |
serialVersionUID
For serialization versioning. |
Constructor Summary |
WittenBell()
Default constructor with a call to the parent. |
Method Summary |
static java.lang.String |
getMARFSourceCodeRevision()
Returns source code revision information. |
double |
p(Ngram poNgram)
Not implemented. |
boolean |
smooth()
Implements the Witten-Bell smoothing algorithm for
uni-, bi, and tri-gram models. |
Methods inherited from class marf.Stats.StatisticalEstimators.Smoothing.Smoothing |
train |
Methods inherited from class marf.Stats.StatisticalEstimators.StatisticalEstimator |
backSynchronizeObject, dumpCSV, dumpXML, getFilename, getLanguage, getProbabilityTable, getStreamTokenizer, p, resetFilename, restoreCSV, restoreXML, setLanguage, setStreamTokenizer |
Methods inherited from class marf.Storage.StorageManager |
clone, dump, dumpBinary, dumpGzipBinary, dumpHTML, dumpSQL, enableDumpOnNotFound, equals, getDefaultExtension, getDefaultExtension, getDumpMode, getObjectToSerialize, hashCode, restore, restoreBinary, restoreGzipBinary, restoreHTML, restoreSQL, setDumpMode, setFilename, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
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
WittenBell
public WittenBell()
- Default constructor with a call to the parent.
smooth
public boolean smooth()
- Implements the Witten-Bell smoothing algorithm for
uni-, bi, and tri-gram models.
- Returns:
true
if any smoothing took place
and underlying data was altered- See Also:
ISmoothing.smooth()
p
public double p(Ngram poNgram)
- Not implemented.
- Parameters:
poNgram
-
- Returns:
- 0.0
getMARFSourceCodeRevision
public static java.lang.String getMARFSourceCodeRevision()
- Returns source code revision information.
- Returns:
- revision string