nltk.SimpleGoodTuringProbDist.find_best_fit

SimpleGoodTuringProbDist.find_best_fit(r, nr)[source]

Use simple linear regression to tune parameters self._slope and self._intercept in the log-log space based on count and Nr(count) (Work in log space to avoid floating point underflow.)