You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I'm trying to run NERCRF.py, and when it hits the instruction self.__source_file = open(file_path, 'r') in the method __init__ (line 104), it runs without problems, but the variable self.__source_file is shown as "not defined", throwing an error in the instruction self.__source_file.close() in method close(self) (line 112). It should work, but somehow this source file variable is not being defined to be used after that. Also, the path is correct, I've already checked that.
Any idea how to fix it?
The text was updated successfully, but these errors were encountered:
So, in conll03_data,py, method read_data (line 150), the code will first instantiate CoNLL03Reader, where will define the variable self.__source_file as the file its opening, but whenever after that I try to use this variable, I get the error shown above (AttributeError: 'CoNLL03Reader' object has no attribute '__source_file').
Don't know if it is an issue in my python environment, because I could any other script or any other instructions in your project without any problems. My Python version is 3.6.5 by the way.
Hello. I'm trying to run
NERCRF.py
, and when it hits the instructionself.__source_file = open(file_path, 'r')
in the method__init__
(line 104), it runs without problems, but the variableself.__source_file
is shown as "not defined", throwing an error in the instructionself.__source_file.close()
in methodclose(self)
(line 112). It should work, but somehow this source file variable is not being defined to be used after that. Also, the path is correct, I've already checked that.Any idea how to fix it?
The text was updated successfully, but these errors were encountered: