start = time.clock()
tagged.sort(lambda x, y: cmp(x[1], y[1]))
print('Sorting time:', str(time.clock() - start), 'secs')
print() 
print('Total time:', str(time.clock() - startstart), 'secs')
NLTK Performance