- Notifications
You must be signed in to change notification settings - Fork0
A simple Twitter bot which tries to mimic Donald Trump
License
hakula139/Trump-bot
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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.gitcd Trump-bot
Then set up a virtual environment and install the dependencies usingconda
.
conda env update --name trump_bot --file environment.ymlconda activate trump_botpython -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<i@hakula.xyz> - Fudan University
This project is licensed under the GNU General Public License v3.0 - see theLICENSE file for details.
About
A simple Twitter bot which tries to mimic Donald Trump