Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Sep 15, 2021. It is now read-only.
/Trump-botPublic archive

A simple Twitter bot which tries to mimic Donald Trump

License

NotificationsYou must be signed in to change notification settings

hakula139/Trump-bot

Repository files navigation

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.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

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 theLICENSE file for details.

About

A simple Twitter bot which tries to mimic Donald Trump

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp