Skip to content

Instantly share code, notes, and snippets.

Sirus Laia sslaia

Block or report user

Report or block sslaia

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
sslaia /
Last active Nov 13, 2018 — forked from fdb/
Counting Words with Python 3
# The original code produces \ufeff in the result
# when I used it to count word frequency in Nias language texts.
# The improvement is found on
# The change is text = open('declaration.txt', mode='r', encoding='utf-8-sig').read()
import csv
import string
# Notes: For Nias texts be careful with "string.punctuation" below
You can’t perform that action at this time.