Some scripts for learn making datasets, training aitextgen and using a trained model.
Aitextgen is a library for generating text using ia with GPT-2.
- python3
- virtualenv(optional)
For install libraries run pip install -r requirements.txt
For use songs2txt.py
run python songs2txt.py artist
.
This script creates a artist
folder with songs(using letras.com) in txt files.
For use pdf2txt.py
run python pdf2txt.py some-book.pdf some-book.txt
.
This script creates a some-book.txt
file based on pdf text.
For use merge-texts.py
run python merge-texts.py "./artist" artist.txt
For use colab or jupyter, download aitextgen-colab.ipynb
:)
For generator-training
run python generator-training.py
For generate text use generator-with-trained-model
script. Run python generator-with-trained-model.py 'some frase'
.
✨ ✨ ✨