Python failed to `import nltk` in my script but works in the interpreter

后端 未结 1 332
北荒
北荒 2021-01-20 12:50

I figured out the reason, I named the original script file nltk.py, so python tried to import word_tokenize from the script file orz. Sorry for this silly mistake.


相关标签:
1条回答
  • 2021-01-20 13:30

    I figured out the reason, I named the original script file nltk.py, so python tried to import word_tokenize from the script file orz. Sorry for this silly mistake.

    0 讨论(0)
提交回复
热议问题