code to calculate entropy for a given text. I have used Punjabi Language corpus (uploaded alongside).