I'm really new to python and I'm experiencing some issues related to loading my corpus with NLTK. My version is 3.6.3 and I installed NLTK using pip install,I have tested NLTK with short sentences and it has worked so far, but I cannot use my own .txt corpora that is stored in my pc. I have tried something like this:
import codecs
import nltk
text = codecs.open('myfilename.txt','r','utf-8')
But then I get all kinds of error. I think it has something to do with my file location but I can't find an nltk_data anywhere. Any help will be greatly appreciated. Thanks.