A simple Twitter bot which tries to mimic @realDonaldTrump.
To set up the environment, you need to have the following dependencies installed.
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
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
.
The training loss and validation loss using default parameters:
- Support passing parameters
- Compose a detailed document
- Hakula Chen<[email protected]> - Fudan University
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.