A Flask web app that predicts the next word using a pre-trained trigram model trained on the Children Stories Text Corpus, with fast and consistent performance.
👉 https://ngram-app.onrender.com/
- Next word prediction using trigram (N=3)
- Pre-trained model for quick responses
- Eager loading for consistent performance
- Simple web interface
- Python
- Flask
- HTML/CSS
- Children Stories Text Corpus
https://www.kaggle.com/datasets/edenbd/children-stories-text-corpus
- The model is loaded at startup (no lazy loading) to ensure stable performance.
- Predictions are based on frequency patterns from the training dataset.
Feel free to explore and provide feedback!