Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Next Word Predictor using LSTM with Flask

This project is a Next Word Prediction application built using an LSTM (Long Short-Term Memory) neural network.
It predicts the next likely word based on the input sentence provided by the user.
The backend is powered by Flask, and the frontend is built with Tailwind CSS for a clean, responsive UI.

๐ŸŒŸ Features
โœ… Predicts the next word of a given sentence
โœ… Built with LSTM using TensorFlow/Keras
โœ… Top-5 accuracy metric included for better model evaluation
โœ… Temperature sampling for diverse predictions
โœ… Responsive web interface

๐Ÿ–ฅ๏ธ Environment Used
Tool/Library----------Version
Python 3.8+
TensorFlow 2.x
Flask 2.x
Numpy Latest
Tailwind CSS CDN Included

๐Ÿš€ How It Works

  1. Dataset of English sentences โ†’ tokenized and converted to sequences
  2. Model Training happens (if model isnโ€™t already saved)
  3. On web interface, input text โ†’ /predict endpoint โ†’ next word generated
  4. Displayed in the browser

๐Ÿ‘จโ€๐Ÿ’ป Author & Contact
Name: Afsar Tanvir
๐Ÿ“ซ Email: [email protected]
๐ŸŒ GitHub: https://github.com/AfsarTanvir
๐Ÿ’ผ LinkedIn: https://www.linkedin.com/in/afsar-tanvir-81ab17270/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages