Skip to content

imane-ayouni/Text-Generation-One-Character-at-a-time-using-LSTM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Text-Generation-using-LSTM

Topic

In this notebook I will be experimenting with an LSTM to generate text. I will be using a model text (Sherlock Holmes story) that I will train my network on to finally generate new text one charachter at a time. To do so, I will process my text first by using character embedding, then I will create the network and train it, finally I will generate a new charachter based on the last charachter generated by the model. So let's get started !

Objective

Generate new text one charachter at a time using an LSTM

Libraries

  • Numpy
  • Torch

Data Source

https://www.kaggle.com/datasets/ronikdedhia/next-word-prediction?resource=download&fbclid=IwAR38QeUVqAsGXMRkPBvZ8Prf1pnYPBr4k8NovduD3DiFarNcFp6_2ihTBjM

About

LSTM to generate new test one character at a time

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published