Now LM keeps track of document lengths so that pr_ngram() and pr_doc() can be over-written to make use of it if needed in the classifier;s calculations.