Python: NLTK ValueError: A Lidstone probability distribution must have at least one bin?
问题 For a task I am to use ConditionalProbDist using LidstoneProbDist as the estimator, adding +0.01 to the sample count for each bin. I thought the following line of code would achieve this, but it produces a value error fd = nltk.ConditionalProbDist(fd,nltk.probability.LidstoneProbDist,0.01) I'm not sure how to format the arguments within ConditionalProbDist and haven't had much luck in finding out how to do so via python's help feature or google, so if anyone could set me right, it would be