A First Excercise in Natural Language Processing with Python: Counting Hapaxes
catswhisker.xyz
catswhisker.xyz
from collections import Counter
import re
[word for word, count in Counter(re.findall('\w*', text.lower())).items() if count == 1]edit* I accidentally linked to another good playlist, but here's the first vid of the NLTK list from the same user https://www.youtube.com/watch?v=FLZvOKSCkxY