Codes done using python and nltk package