nltk.ELEProbDist.__init__

ELEProbDist.__init__(freqdist, bins=None)[source]

Use the expected likelihood estimate to create a probability distribution for the experiment used to generate freqdist.

Parameters:
  • freqdist (FreqDist) – The frequency distribution that the probability estimates should be based on.
  • bins (int) – The number of sample values that can be generated by the experiment that is described by the probability distribution. This value must be correctly set for the probabilities of the sample values to sum to one. If bins is not specified, it defaults to freqdist.B().