NNDial is an open source toolkit for building end-to-end trainable task-oriented dialogue models. It is released by Tsung-Hsien (Shawn) Wen from Cambridge Dialogue Systems Group under Apache License 2.0.
Other
348
stars
105
forks
source link
Training the belief tracker:**NameError: name 'self' is not defined** #9
I am training the belief tracker. I am getting the error in the very last stage of training:
.
.
.
Finishing 202 dialog in epoch 1
Finishing 203 dialog in epoch 1
Epoch 1, Alpha 0.002000, TRAIN entropy:95.17, Time:14.06 mins,
VALID entropy:74.52
saving net to file ...
Traceback (most recent call last):
File "nndial.py", line 22, in
model.trainNet()
File "C:\Users\MY DELL\Desktop\Course\6th sem\UGP\data\NNDIAL-master\nn\NNDialogue.py", line 590, in trainNet
self.saveNet()
File "C:\Users\MY DELL\Desktop\Course\6th sem\UGP\data\NNDIAL-master\nn\NNDialogue.py", line 999, in saveNet
'file' :dict( [(name,eval(name)) for name in self.file_vars]),
File "C:\Users\MY DELL\Desktop\Course\6th sem\UGP\data\NNDIAL-master\nn\NNDialogue.py", line 999, in
'file' :dict( [(name,eval(name)) for name in self.file_vars]),
File "", line 1, in NameError: name 'self' is not defined
I am not able to understand why this error is coming
Could anyone please help with this. I would be really grateful. Thanks
I am training the belief tracker. I am getting the error in the very last stage of training:
. . . Finishing 202 dialog in epoch 1 Finishing 203 dialog in epoch 1 Epoch 1, Alpha 0.002000, TRAIN entropy:95.17, Time:14.06 mins, VALID entropy:74.52 saving net to file ... Traceback (most recent call last): File "nndial.py", line 22, in
model.trainNet()
File "C:\Users\MY DELL\Desktop\Course\6th sem\UGP\data\NNDIAL-master\nn\NNDialogue.py", line 590, in trainNet
self.saveNet()
File "C:\Users\MY DELL\Desktop\Course\6th sem\UGP\data\NNDIAL-master\nn\NNDialogue.py", line 999, in saveNet
'file' :dict( [(name,eval(name)) for name in self.file_vars]),
File "C:\Users\MY DELL\Desktop\Course\6th sem\UGP\data\NNDIAL-master\nn\NNDialogue.py", line 999, in
'file' :dict( [(name,eval(name)) for name in self.file_vars]),
File "", line 1, in
NameError: name 'self' is not defined
I am not able to understand why this error is coming
Could anyone please help with this. I would be really grateful. Thanks