Getting error while executing NLP on Kaggle

kaggle
nlp
python

#1

NLP Example

Please check the couple of errors at the bottom of this page and help me overcome them.

Thanks


#2

@saurabh0108 Try to specify the encoding explicitly while opening the article

like

open(’…/input/article.txt’,‘r’, encoding=“ISO-8859-1”)

Encodings
‘ISO-8859-1’
‘latin-1’
‘utf-8’

If above encoding didn’t work to identify the correct encoding refer the below discussion