2

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:

enter image description here

then I tried simply import nltk but that too didn't work, and it showed the following error:

enter image description here

I also tried restarting VS Code, but it was all in vain. How can I resolve this issue?

James Z
  • 12,209
  • 10
  • 24
  • 44

0 Answers0