Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi! When I use examples.py for lannguage translation, an error occured in def len_filter if I use all train_datasets. But when I use part of train_datasets, it works well. Could you please tell me why? #162

Open
Decalogue opened this issue Sep 5, 2018 · 2 comments

Comments

@Decalogue
Copy link

Hi!
When I use examples.py for lannguage translation, an error occured in 'def len_filter' if I use all trainning datasets. But when I use part of trainning datasets, it works well. Could you please tell me why?
The AttributeError is like this:
File "train_seq2seq.py", line 81, in len_filter
return len(example.src) <= max_len and len(example.tgt) <= max_len
AttributeError: 'Example' object has no attribute 'tgt'
Thank you!

@pskrunner14
Copy link

@Decalogue You could pull develop and try implementing your script again. Seq2seqDataset has been introduced after #163. However things might be a little unstable as develop is pushed to weekly so I'd recommend you either create a fork or wait until the next alpha release v0.1.7.

@Decalogue
Copy link
Author

@pskrunner14 Thank you so much!

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

No branches or pull requests

2 participants