This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Adapted from https://github.com/jmhessel/FightingWords | |
import matplotlib | |
matplotlib.use('Agg') | |
from matplotlib import pyplot as plt | |
import numpy as np | |
import seaborn as sns | |
from sklearn.feature_extraction.text import CountVectorizer as CV | |
import string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import os | |
import sys | |
from PIL import Image, ImageTk | |
import tkinter as tk | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
import math | |
import os | |
import random | |
import urllib2 | |
# BeautifulSoup: http://www.crummy.com/software/BeautifulSoup/ | |
from bs4 import BeautifulSoup | |
# PIL: http://www.pythonware.com/products/pil/ |