Information-Extraction-Chinese
Information-Extraction-Chinese copied to clipboard
NameError: name 'os' is not defined
I try to run this code,but the main.py always to show this wrong .Although I have trying my best to solve this problem. it's still there. could you give me some advice? Other's code is OK!
I guess you are running on Windows?
The experiment I did was on linux. Perhaps you should check if Windows has other replacement for "os" package in Python?
On windows, I modified the first line and changed it to # encoding=utf-8
and fixed the error.
感谢@geekboood,你的方法解决了这个问题