Created
April 23, 2019 15:40
-
-
Save robflaherty/b9d59195f4d0cab29b4e9ef38f067150 to your computer and use it in GitHub Desktop.
Simple word frequency counter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
words = re.findall(r'\w+', open('term-list.csv').read().lower()) | |
counts = Counter(words).most_common(500) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment