Skip to content

yuziahaque/text-generation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Shakespeare Text Generation with Character-Based RNN

This project generates text resembling Shakespearean plays using a character-based Recurrent Neural Network (RNN) trained on the entire text of Shakespeare's works.

Project Description

The model learns the statistical relationships between characters in the text and uses this knowledge to predict the next character in a sequence. By repeatedly calling the model, longer sequences of text can be generated. While some of the generated sentences are grammatically correct, most do not make perfect sense, as the model has not learned the true meaning of words.

Key Features

Character-based RNN architecture Trained on the complete text of Shakespeare's plays Generates text with coherent structure and Shakespearean elements Code provided for training and generating text

Dependencies

TensorFlow NumPy

Running the project

  1. Clone the repository.
  2. Install the required dependencies: pip install tensorflow numpy
  3. Download the Shakespeare dataset: https://storage.googleapis.com/download.tensorflow.org/data/shakespeare.txt
  4. Run the Python script textgen1.ipynb

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published