N-Gram Text Generator

Trained on War and Peace by Leo Tolstoy

About

This demo uses statistical language modeling to generate text. An n-gram model learns word sequences from a corpus and uses add-k smoothing to handle unseen combinations.

Model Configuration

n = 3 (trigram)
k = 0

Generate Text

100 words

Generated Text

Generated text will appear here...