Skip to content
프로젝트

minimaxir/tweet-generator has 220 GitHub stars and 36 forks. Star changes are not measured yet. Last checked 2026-11-15 18:16 UTC. Last push 2018-09-03.

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
업데이트 지연
in 7 days
업데이트 지연
in 15 days
업데이트 지연
in 1 month
업데이트 지연

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

소개

Train a neural network optimized for generating tweets based off of any number of Twitter users.

머신러닝

README.md

Original

Tweet Generator

dank

Train a neural network optimized for generating tweets based off of any number of Twitter users! Blend wildly different Twitter users together for hilarity!

Tweet Generator is based off of textgenrnn, and trains the network using context labels for better tweet synthesis.

Usage

Open config.yml and at the top, add the Twitter API keys from a Twitter App you own. Then configure the list of twitter_users you wish to train the network on. You can also configure the num_epochs and whether to use the pretrained model or train a new_model. Then simply run:

python3 tweet_generator.py

The script will automatically save the weights (+ config and vocab for if new_model) for the trained model, which can then be loaded into textgenrnn and used anywhere.

The included realDonaldTrump_dril_twitter_weights.hdf5 was trained on @realDonaldTrump and @dril's tweets for 200 epochs. You can load it and generate text from it simply with:

from textgenrnn import textgenrnn
textgen=textgenrnn('realDonaldTrump_dril_twitter_weights.hdf5')
textgen.generate_samples()

Requirements

  • textgenrnn
  • tensorflow (either CPU or GPU flavors)
  • tweepy

Maintainer

Max Woolf (@minimaxir)

Max's open-source projects are supported by his Patreon. If you found this project helpful, any monetary contributions to the Patreon are appreciated and will be put to good creative use.

License

MIT