I have just started learning NLP and for that purpose I installed nltk package using pip install nltk
in the cmd terminal of VS Code. After I installed it, I tried importing it in the command line itself and I was successful but in the main window where we write the code, I tried from nltk.tokenize import sent_tokenize
but it showed the following error:
then I tried simply import nltk
but that too didn't work, and it showed the following error:
I also tried restarting VS Code, but it was all in vain. How can I resolve this issue?