nltk.ImmutableProbabilisticMixIn.__init__¶
-
ImmutableProbabilisticMixIn.
__init__
(**kwargs)¶ Initialize this object’s probability. This initializer should be called by subclass constructors.
prob
should generally be the first argument for those constructors.Parameters: - prob (float) – The probability associated with the object.
- logprob (float) – The log of the probability associated with the object.