Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.
/ Trump-bot Public archive

A simple Twitter bot which tries to mimic Donald Trump

License

Notifications You must be signed in to change notification settings

hakula139/Trump-bot

Repository files navigation

Trump-bot

A simple Twitter bot which tries to mimic @realDonaldTrump.

中文文档

Table of Contents

Getting Started

0. Prerequisites

To set up the environment, you need to have the following dependencies installed.

1. Installation

First, obtain the Trump-bot package.

git clone https://github.com/hakula139/Trump-bot.git
cd Trump-bot

Then set up a virtual environment and install the dependencies using conda.

conda env update --name trump_bot --file environment.yml
conda activate trump_bot
python -m spacy download en_core_web_sm

2. Usage

Train the model and evaluate the output with the following command.

python ./trump_bot/main.py

Currently passing parameters is not supported. You can manually modify the parameters in ./trump_bot/main.py.

Generated texts are located in ./output/output.txt, the figure of network learning rate is saved to ./assets/loss.png.

Learning curve

The training loss and validation loss using default parameters:

Learning curve

TODO

  • Support passing parameters
  • Compose a detailed document

Contributors

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.