Skip to content

jmstevens/aesopbot

Repository files navigation

AesopBot

Discord chatbot which has the ability to freestyle (sort of like) Aesop Rock. Training is done with LSTM cells using Aesop's lyrics. Can be (and probably will be) used to make a generic freestyling chatbot eventually.

Dependencies

Python 3.6_1

Create Environment

Clone the repo and run

make create_environment

If you see an error you may need to modify your Bashrc file with the following

export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3
source /usr/local/bin/virtualenvwrapper.sh
venvwrap="virtualenvwrapper.sh"
/usr/bin/which -s $venvwrap
if [ $? -eq 0 ]; then
    venvwrap=`/usr/bin/which $venvwrap`
    source $venvwrap
fi

Activate Your Environment

workon aesopbot

Install Dependencies

make requirements

Download And Transform Data

To download only aesop lyrics

make transform_aesop

To download the top 10 MC's lyrics for a basic hip hop bot

make transform

To Train The Model

make train

To Launch Bot

make launch_bot

To make the bot freestyle do the following in discord

?freestyle {the word you want him to start with} {the number of "bars" you want to generate}

Note: 1 bar constitutes 10 words

Project Organization

├── LICENSE
├── Makefile           <- Makefile with commands like `make data` or `make train`
├── README.md          <- The top-level README for developers using this project.
├── data
│   ├── external       <- Data from third party sources.
│   ├── interim        <- Intermediate data that has been transformed.
│   ├── processed      <- The final, canonical data sets for modeling.
│   └── raw            <- The original, immutable data dump.
│
├── docs               <- A default Sphinx project; see sphinx-doc.org for details
│
├── models             <- Trained and serialized models, model predictions, or model summaries
│
├── notebooks          <- Jupyter notebooks. Naming convention is a number (for ordering),
│                         the creator's initials, and a short `-` delimited description, e.g.
│                         `1.0-jqp-initial-data-exploration`.
│
├── references         <- Data dictionaries, manuals, and all other explanatory materials.
│
├── reports            <- Generated analysis as HTML, PDF, LaTeX, etc.
│   └── figures        <- Generated graphics and figures to be used in reporting
│
├── requirements.txt   <- The requirements file for reproducing the analysis environment, e.g.
│                         generated with `pip freeze > requirements.txt`
│
├── setup.py           <- makes project pip installable (pip install -e .) so src can be imported
├── src                <- Source code for use in this project.
│   ├── __init__.py    <- Makes src a Python module
│   │
│   ├── data           <- Scripts to download or generate data
│   │   └── make_dataset.py
│   │
│   ├── features       <- Scripts to turn raw data into features for modeling
│   │   └── build_features.py
│   │
│   ├── models         <- Scripts to train models and then use trained models to make
│   │   │                 predictions
│   │   ├── predict_model.py
│   │   └── train_model.py
│   │
│   └── visualization  <- Scripts to create exploratory and results oriented visualizations
│       └── visualize.py
│
└── tox.ini            <- tox file with settings for running tox; see tox.testrun.org

#TODO


Project based on the cookiecutter data science project template. #cookiecutterdatascience

# aesopbot

About

Discord chatbot to generate hip hop lyrics using LSTM RNN neural networks with Tensorflow

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published