Random sentence generation with n-grams

Brendan O'Connor and Michael Bieniosek
December 2002, Ling 138, Intro to Computational Linguistics (Martin Kay)

Writeup
Code

These were all generated by training on the Brown corpus of documents.

Examples

Small corpus

Bigrams

Trigrams
4-grams
5-grams

Large corpus

Bigrams
Trigrams
4-grams
5-grams

Even more examples!

These were generated via trigrams on the entire Brown corpus.