nltk.FreqDist

引数に取ったリストや文字列の頻度分布を計算してくれるFreqDist, 比較をすると、要素(ここでは文字列を引数に与えたので各アルファベット)全てについて比較演算子を満たすときにTrueとなるようです。ほう。

>>> nltk.FreqDist('apple') < nltk.FreqDist('appleapple')
True
>>> nltk.FreqDist('apple') < nltk.FreqDist('apple')
False
>>> nltk.FreqDist('apple') < nltk.FreqDist('appl')
False
>>> nltk.FreqDist('apple') == nltk.FreqDist('apple')
True
>>> nltk.FreqDist('apple') == nltk.FreqDist('elppa')
True
>>> nltk.FreqDist('apple') == nltk.FreqDist('eppaaa')
False
>>> nltk.FreqDist('apple') < nltk.FreqDist('eppaaa')

ちなみに頻度分布の中身を出力したときはこのようになってます。
>>> print(nltk.FreqDist('apple'))

>>> print(nltk.FreqDist('appleapple'))