class documentation
class ImmutableProbabilisticMixIn(ProbabilisticMixIn): (source)
Known subclasses: nltk.grammar.ProbabilisticProduction
Constructor: ImmutableProbabilisticMixIn(**kwargs)
Undocumented
| Method | set |
Set the log probability associated with this object to logprob. I.e., set the probability associated with this object to 2**(logprob). |
| Method | set |
Set the probability associated with this object to prob. |
Inherited from ProbabilisticMixIn:
| Method | __init__ |
Initialize this object's probability. This initializer should be called by subclass constructors. prob should generally be the first argument for those constructors. |
| Method | logprob |
Return log(p), where p is the probability associated with this object. |
| Method | prob |
Return the probability associated with this object. |
| Instance Variable | __logprob |
Undocumented |
| Instance Variable | __prob |
Undocumented |