Package nltk :: Module probability :: Class ImmutableProbabilisticMixIn
[hide private]
[frames] | no frames]

Class ImmutableProbabilisticMixIn

source code

        object --+    
                 |    
ProbabilisticMixIn --+
                     |
                    ImmutableProbabilisticMixIn
Known Subclasses:

Instance Methods [hide private]
 
set_prob(self, prob)
Set the probability associated with this object to prob.
source code
 
set_logprob(self, prob)
Set the log probability associated with this object to logprob.
source code

Inherited from ProbabilisticMixIn: __init__, logprob, prob

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

set_prob(self, prob)

source code 

Set the probability associated with this object to prob.

Parameters:
  • prob - The new probability
Overrides: ProbabilisticMixIn.set_prob
(inherited documentation)

set_logprob(self, prob)

source code 

Set the log probability associated with this object to logprob. I.e., set the probability associated with this object to 2**(logprob).

Parameters:
  • logprob - The new log probability
Overrides: ProbabilisticMixIn.set_logprob
(inherited documentation)