Skip to content

An AI that generates tweets inspired by famous "influencers" using NLP

Notifications You must be signed in to change notification settings

gdemos01/TwitterInfluencerAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Influencer AI - Kylie Trump

An AI that generates tweets inspired by famous "influencers" using NLP (ft Donald Trump & Kylie Jenner)

YouTube Video with Process and Results: https://youtu.be/YIvfM_DP918

Kylie Trump

Hey guys. I'm Kylie. In my spare time I like creating cosmetics and running for the White House presidency.

Also, I'm definitely not an AI that uses Deep RNNs

How to use

Stream Tweets

Stream tweets with a specific set of hashtags or keywords. In order for this to work you have to replace the dummy Twitter credentials with your own. You can change the keywords/hashtags through the code

python Controller.py --stream_twitter

Train Model

The command bellow trains the model for 100 epochs. Each epoch creates a new checkpoint if the model is improved. You can change the input file through the code.

python Controller.py --train_model 100

Generate Tweet

The command bellow generates text with a lenght of 250 characters. It uses "Hello world" as a seed to begin predicting the new text. The weights of the model are loaded from "checkpoint_8"

python Controller.py --generate_text 250 --seed="Hello world" --checkpoint="checkpoint_8"

Resources

About

An AI that generates tweets inspired by famous "influencers" using NLP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages