| Trees | Indices | Help |
|
|---|
|
|
object --+
|
nltk.probability.ProbDistI --+
|
nltk.probability.WittenBellProbDist --+
|
WittenBellProbDistFix
There's a nasty bug in WittenBellProbDist, but the fix is very simple. Use this instead of WittenBellProbDist.
|
|||
|
|||
|
Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Creates a distribution of Witten-Bell probability estimates. This distribution allocates uniform probability mass to as yet unseen events by using the number of events that have only been seen once. The probability mass reserved for unseen events is equal to:
where T is the number of observed event types and N is the total number of observed events. This equates to the maximum likelihood estimate of a new type event occuring. The remaining probability mass is discounted such that all probability estimates sum to one, yielding:
The parameters T and N are
taken from the
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Nov 26 16:04:58 2012 | http://epydoc.sourceforge.net |