← All projects

N-gram Text Generator

A text generator using an n-gram probabilities method.

Stack
Python, NLP
N-gram Text Generator

This project was built as a part of CS3600: Intro to Artificial Intelligence at Georgia Tech. The goal was to create a text generator that uses an n-gram probabilities method to generate new text based on a given input text. The program reads in a text file, processes the text to create n-grams, and then uses the n-grams to generate new text that mimics the style and structure of the input text.

In the pynb file, I implemented a unigram, bigram, and trigram model and trained them locally. This was a good learning experience to understand the basics of natural language processing and probabilistic models.