NameError: name 'os' is not defined
Hello! I run your code , but found errors below:
Traceback (most recent call last):
File "F:/yyhaker/software/project/NamedEntityRecognition/src/ChineseNER/main.py", line 225, in
I have install the os module, and it can run correctly! What's wrong with it?
Oh, god! When I "import tensorflow as tf" before "import os", the code can run correctly! But when I "import tensorflow as tf" after "import os", it can't run correctly and give the above error, what's wrong with it?
这个问题你解决了吗?
@qinya 我在这两行之间加了几行空行就行了
# encoding=utf8
import os
把# encoding=uft8去掉也可以,我不懂
@yyHaker : thanks for your suggestions. same thing happened to me, and changing the import flow fixed it. not sure why!