8 lines
203 B
Python
8 lines
203 B
Python
|
import nltk
|
||
|
|
||
|
|
||
|
def test_iterating_returns_an_iterator_ordered_by_frequency():
|
||
|
samples = ["one", "two", "two"]
|
||
|
distribution = nltk.FreqDist(samples)
|
||
|
assert list(distribution) == ["two", "one"]
|