lium-lst / nmtpytorch

Sequence-to-Sequence Framework in PyTorch
Other
392 stars 51 forks source link

Error when trying example #29

Closed xiang-xiang-zhu closed 3 years ago

xiang-xiang-zhu commented 3 years ago

evaluator.py", line 14, in init self.refs = list(refs.parent.glob(refs.name)) AttributeError: 'str' object has no attribute 'parent'

when i trying use mmt-task-en-fr-nmt.conf,the error occurs

xiang-xiang-zhu commented 3 years ago

well,I'm using cu11+pytorch1.8,I don't know the reason for this

ozancaglayan commented 3 years ago

Hi,

did you change the paths to correct paths on your machine?

xiang-xiang-zhu commented 3 years ago

Hi,

did you change the paths to correct paths on your machine?

Yes, I build a save folder as the save path, then downloaded the multi-30k dataset and took the tok in the task1 folder as the path

xiang-xiang-zhu commented 3 years ago

Hi,

did you change the paths to correct paths on your machine?

I checked refs and printed it out. In the mainloop file, you can see that refs is task1/tok/val.lc.norm.tok.fr,and its type is str