nltk/nltk — pull request #235 by dan-blanchard (2012-02-29 16:34:34+00:00)
Title: Modified constructor to add padding to end of sentence as well as beginning, and added support for taking lists of tokenized sentences for training.

- Added padding to end of sentence as well as beginning so that we take into account the probability of words ending a sentence.
- Modified constructor to take lists of string lists for training in addition to just a list of strings so that we can handle training text that is both sentence and word tokenized.
- When give a list of string lists for training, the model will no longer just generate sentences that start with the same word.