local variable 'test' referenced before assignment and not used
Closed this issue · 0 comments
tuvuumass commented
Should we remove "test = [list(s) for s in test]" in demo.py
I got the error
Traceback (most recent call last):
File "textCNN_public-master/demo.py", line 315, in
main()
File "textCNN_public-master/demo.py", line 193, in main
test = [list(s) for s in test]
UnboundLocalError: local variable 'test' referenced before assignment
And the local variable 'test' is not used.