nltk.lm.util module

Language Model Utilities

nltk.lm.util.log_base2(score)[source]

Convenience function for computing logarithms with base 2.