This file contains hidden or 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
from collections import Counter | |
import cPickle as pickle | |
import random | |
import itertools | |
import string | |
def words(entry): | |
return [word.lower().decode('ascii', 'ignore') for word in entry.split()] | |
def letters(entry): |