Last active
September 15, 2020 20:15
-
-
Save Michaelliv/aa02a9f7ffd0d9a9c88719ed9c5743ae to your computer and use it in GitHub Desktop.
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
| def count_terms_line_by_line(): | |
| total_count: Counter = Counter() | |
| for line in open(DATA_PATH, encoding="utf8"): | |
| line_count = line.lower().split(' ') | |
| total_count += Counter(line_count) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment