NNDIAL icon indicating copy to clipboard operation
NNDIAL copied to clipboard

deadcode in the DataReader.py file

Open yahuvi opened this issue 6 years ago • 0 comments

I found two bugs:

1.in line 377,"if v=='dontcare' and s=='this':",where s=='this' ,in CamRest676.json it's not found that the slot equal 'this' issue code location:https://github.com/shawnwun/NNDIAL/blob/740f6d34594bcdd889080ce60c95384bda7594a2/loader/DataReader.py#L377

2.in line 380,"if sda['act']=='request':",where sda['act'] ,variable sda has no attribute 'act' ,because in CamRest676.json,items of DA is string type and similar to the following: "sys": { "sent": "There are several restaurants in the south part of town that serve expensive food. Do you have a cuisine preference?", "DA": [ "food" ] } issue code location:https://github.com/shawnwun/NNDIAL/blob/740f6d34594bcdd889080ce60c95384bda7594a2/loader/DataReader.py#L380

yahuvi avatar Oct 17 '17 04:10 yahuvi