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

Module Not Found Error for Machine Translation #6

Open
asvskartheek opened this issue Sep 5, 2020 · 1 comment
Open

Module Not Found Error for Machine Translation #6

asvskartheek opened this issue Sep 5, 2020 · 1 comment

Comments

@asvskartheek
Copy link

asvskartheek commented Sep 5, 2020

ModuleNotFoundError: No module named 'allennlp.data.dataset_readers.seq2seq'
I'm trying to run the code examples/mt/mt.py with allennlp==1.0.0 and got this error, no code changes direct clone of the repo and tried to run it.

@mathcass
Copy link
Contributor

mathcass commented Sep 7, 2020

I noticed this as well with some of the other examples. With the bump to 1.0.0, AllenNLP moved around a lot of packages and code that really drives these examples.

I have a draft fix that seems to work (but I haven't finished it end-to-end).

https://github.com/mhagiwara/realworldnlp/compare/master...mathcass:mt/fix?expand=1

When I get a spare moment, I can try it on a GPU to ensure it completes. The fixed version re-writes the initialization and training process in the same form as the latest version of the AllenNLP guide specifies.

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

No branches or pull requests

2 participants