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
from __future__ import division | |
import sys | |
from itertools import * | |
from pylab import * | |
from nltk.corpus import brown | |
from collections import Counter | |
# Pick a lowercasing function according to Python version | |
if sys.version_info.major < 3: | |
from string import lower |