Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Error when trying example #29

Closed
xiang-xiang-zhu opened this issue Jun 29, 2021 · 4 comments
Closed

Error when trying example #29

xiang-xiang-zhu opened this issue Jun 29, 2021 · 4 comments

Comments

@xiang-xiang-zhu
Copy link

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
Copy link
Author

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

@ozancaglayan
Copy link
Collaborator

Hi,

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

@xiang-xiang-zhu
Copy link
Author

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
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants