Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/ivanbongiorni/tensorflow2-rnn_text_generator-dante_divinecomedy
- Owner: IvanBongiorni
- License: mit
- Created: 2020-01-13T10:43:03.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-18T13:32:10.000Z (over 4 years ago)
- Last Synced: 2024-10-10T17:23:19.699Z (27 days ago)
- Topics: autograph, generative-models, lstm, machine-learning, neural-network, nlp, python, rnn, tensorflow, tensorflow2, text-generation
- Language: Jupyter Notebook
- Size: 18.7 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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