Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next Word Prediction using LSTM #121

Merged
merged 3 commits into from
Jan 11, 2025

Conversation

snehapm04
Copy link
Contributor

Closes: #97

  • Title : Next Word Prediction using LSTM
  • Your Name: Sneha P M
  • Identify yourself: SWOC Contributor

Describe the add-ons or changes you've made 📃

I have added the following enhancements to the project

  1. Imported and structured the necessary libraries for text preprocessing, sequence creation, and model development using TensorFlow and Keras.
  2. Loaded and preprocessed the dataset by cleaning text, tokenizing sentences, and generating input-output word sequences.
  3. Visualized word distributions and sequence lengths to understand the dataset's structure and potential challenges.
  4. Designed and trained an LSTM-based neural network for next-word prediction, using embedding layers and sequential modeling techniques.
  5. Evaluated model performance using metrics like categorical cross-entropy loss and accuracy, and visualized training and validation loss trends.

Checklist: ☑️

  • My code follows the Contributing Guidelines & Code of Conduct of this project.
  • This PR does not contain plagiarized content.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly wherever it was hard to understand.
  • My changes generate no new warnings.

Screenshots 📷

image
image
model perf
Screenshot 2025-01-07 121548

Working Video 🎥

Next Word Prediction Recording

Happy Coding 🎉

Copy link
Contributor

github-actions bot commented Jan 7, 2025

Thank you for submitting your pull request! We'll review it as soon as possible. For further communication, join our discord server https://discord.gg/tSqtvHUJzE.

Copy link
Owner

@Avdhesh-Varshney Avdhesh-Varshney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really Appreaciable Work!

@11PRIMUS
Copy link
Collaborator

11PRIMUS commented Jan 7, 2025

@snehapm04 use Bidirectional LSTM so model can get contextual of past and future and improve the accuracy

@11PRIMUS 11PRIMUS added the enhancement 🧑‍💻 New feature or request label Jan 7, 2025
@11PRIMUS 11PRIMUS added the bug 🐛 Something isn't working label Jan 9, 2025
@11PRIMUS 11PRIMUS removed the bug 🐛 Something isn't working label Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

📃: Next Word Prediction using LSTM
3 participants