I'm trying to get the frequency distribution for a list if it's over a certain number.
Example:
import nltk
test_list=['aa', 'aa', 'bb', 'cc', 'dd', 'dd']
test_fd = nltk.FreqDist(test_list)
Returns:
FreqDist({'aa': 2, 'dd': 2, 'bb': 1, 'cc': 1})
Without a loop, I am looking for all the items greater than 1.
Using Python 3.8 and NLTK 3.5