Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ivanbongiorni/tensorflow2-rnn_text_generator-dante_divinecomedy

Text generator RNN trained on Dante Alighieri's Divina Commedia, Italian poem from 1300s.
https://github.com/ivanbongiorni/tensorflow2-rnn_text_generator-dante_divinecomedy

autograph generative-models lstm machine-learning neural-network nlp python rnn tensorflow tensorflow2 text-generation

Last synced: 14 days ago
JSON representation

Text generator RNN trained on Dante Alighieri's Divina Commedia, Italian poem from 1300s.

Awesome Lists containing this project

README

        

# TensorFlow 2 Text generator on Dante Alighieri's Divine Comedy

This Notebook contains a text generator RNN that was trained on the **Divina Commedia** (the *Divine Comedy*) by **Dante Alighieri**. This is a poem written at the beginning of the XII century. It's hard to explain what it represents for Italian culture: it's without any doubt the main pillar of our national literature, one of the building blocks of modern Italian language, and arguably the gratest poem ever. All modern representations of Hell, Purgatory and Heaven derive from this opera.

Its structure is extremely interesting: each verse is composed of 11 syllables, and its rhymes follow an **A-B-A-B** structure. Lots of patterns to be learned!

-----

# TensorFlow 2.0 training with Autograph

This Neural Network is trained using **Autograph**, one of the best features in **TensorFlow 2.0** for custom training.

-----

## Repository structure

- **scraper_Divine_Comedy.py**: script to download the Divine Comedy from Wikisource in a format I like
- **DivinaCommedia.txt**: raw text
- **RNN_text_generator_00.ipynb**: Notebook containing RNN training and examples of text generation