Text Generation with LSTM and Spell with Nabil Hassein

Nabil Hassein demonstrates how to train an “LSTM” neural network to generate text in the style of a particular author using Spell and ml5.js.

This stream is sponsored by Spell.
Sign up here:

“As creators of machine learning projects for art or otherwise, we have to take responsibility for what our programs produce and the impact that output has on people who interact with our creations. Given how common bias and oppression is in the world generally, many if not most datasets (including song lyrics) reflect that reality, and without countermeasures we as programmers are very likely to reproduce those harms. It is also worth explicitly noting that authorship and context matter, and identical words (or images, etc.) can assume completely different significance depending on who says them and when. I encourage everyone to take seriously the ethical aspects of the ml5.js documentation along with the technical material, and to consider your responsibility as a technologist to acknowledge and address the harm that the field of computing has too often caused for marginalized groups”

Nabil Hassein is a freelance technologist and educator based in Brooklyn, NY. He has previously worked as an infrastructure engineer at Khan Academy and a couple of startups, taught math and programming in both public schools and private settings, and occasionally writes and speaks. His website is

🎥 Workflow: Python and Virtualenv:
🎥 Introduction to Spell:

🔗 ml5.js:
🔗 Generative-DOOM:
🔗 The Unreasonable Effectiveness of Recurrent Neural Networks:
🔗 Understanding LSTM Networks:
🔗 Project Gutenberg:
🔗 Training a LSTM network:
🔗 ml5.js examples:
🔗 p5.js:






7 responses to “Text Generation with LSTM and Spell with Nabil Hassein”

  1. Swaggi Mctitis Avatar

    I looove vids of machine and deep learning , I hope your upload more vids like this or a serie about TensoflowJS (more examples)

  2. Yochem 2311 Avatar

    let him do a vid about his workflow . That emacs set up looks soo good

  3. victor bueno Avatar

    Thanks for another vídeo

  4. Add Server Avatar

    I don’t even have notifications on atm
    and I’m early

  5. killox Avatar

    EDIT 2nd ;(

Leave a Reply

Your email address will not be published. Required fields are marked *