Calculate the probabilities given ngram frequencies
A module for reading files and tokenizing strings