In the last lab you learned how to programmatically read/write messages to reddit. In this lab, we will focus on generating realistic content for the messages you will write.
Required readings:
Documenting the tactics of an anti-net neutrality bot campaign. This campaign used the same MadLibs algorithm you'll be implementing in lab.
Optional readings:
A more technical description of GPT-2 and a tutorial for creating GPT-2 reddit bots
More examples of automatic text generation:
Bots talking to each other: https://www.reddit.com/r/SubredditSimulator/
Bots writing memes: https://www.reddit.com/r/aigeneratedmemes/top/
In the first part of this lab, you'll experiment with the state-of-the-art text generation technique called GPT-3. Create a free account at https://play.aidungeon.io/, and play around with the game for 10-20 minutes. I personally find that the game generates realistic sentences and paragraphs, but it has trouble making longer cohesive narratives. But it's still pretty amazing/scary how good it is.
For our reddit bots, we will be using a much simpler MadLibs-style text generation algorithm. Follow the instructions in the madlibs.py
file to implement this algorithm.