Statistical Language Modelling Using N-grams
English Word Prediction Model which predicts the next word in a semi-complete sentence
GitHub Repository
Keywords
Next Word Prediction
, N-gram Model
, Natural Language Toolkit
, Probabilistic Models
, Laplace Smoothing
, Python
, Gradio
, Python
, Text Processing
, Hugging Face
.
Next Word Prediction Using the NGram
![example image](/assets/img/next_word.gif)
This project leverages the power of N-gram models for predicting the next word in a given sentence fragment. The core of the project is built using Python and the Natural Language Toolkit (NLTK) for processing and analyzing text data. The model uses trigrams as the basis for predictions, incorporating Laplace Smoothing to deal with rare words. The application is made user-friendly and interactive through a Gradio web interface, facilitating easy testing and demonstration of the model’s capabilities.
Interactive Demo
Explore the model’s capabilities through an interactive web application hosted on Hugging Face. Simply input a partial sentence, and the model will predict the next word.