Skip to content

raidancampbell/sequelspeare

Repository files navigation

sequelspeare

The third installment in my lineage of pseudo-intelligent IRC bots is sequelspeare: a neural network chatbot using Tensorflow as the framework. The previous bots, Swiggityspeare and Stupidspeare, had unruly development environments and no intelligence, respectively.

Environment

Sequelspeare is written entirely in Python, and requires minimal dependencies to make for easier use:

  • Python3, the code was written in 3.5
  • irc package, installed via pip
  • Tensorflow, the code was written to support version 1.6
    • This should install several other dependencies such as numpy and six

Usage

The code is provided with an existing Shakespeare dataset, and an optional pre-trained network. To start using the code immediately, initialize and update the git submodule:

 git submodule init
 git submodule update

This will pull ~100MB(!) from the pretrained network repository, and place the files in sequelspeare/savedata/sequelspeare-pretrained-net.
To install the files, simply copy them with:

 cp sequelspeare/savedata/sequelspeare-pretrained-net/* sequelspeare/savedata/

Alternatively, you can immediately train your own network with the shakespeare dataset with python3 train.py. This does not require the git submodule.

Once you have an existing network, edit the sequelspeare.json file to specify the IRC parameters: nick, server, port, etc... Once complete, start the bot with python3 sequelspeare.py

Other Interfaces

A VT220 serial terminal interface was created. Assuming the terminal is connected via serial cable, the following command should work:

 python3 serial_interface.py

About

The third installment of pseudo-intelligent IRC bots

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages