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

Can't get attribute '_default_unk_index' #2

Closed
pawankmrs opened this issue Aug 29, 2019 · 1 comment
Closed

Can't get attribute '_default_unk_index' #2

pawankmrs opened this issue Aug 29, 2019 · 1 comment

Comments

@pawankmrs
Copy link

'bash run.sh' failed with following error:
Traceback (most recent call last):
File "main.py", line 203, in
DOC.vocab = torch.load(args.vocab)
File "anaconda3/envs/NSEG/lib/python3.6/site-packages/torch/serialization.py", line 387, in load
return _load(f, map_location, pickle_module, **pickle_load_args)
File "anaconda3/envs/NSEG/lib/python3.6/site-packages/torch/serialization.py", line 574, in _load
result = unpickler.load()
AttributeError: Can't get attribute '_default_unk_index' on <module 'torchtext.vocab' from '/anaconda3/envs/NSEG/lib/python3.6/site-packages/torchtext/vocab.py'>

@pawankmrs
Copy link
Author

torchtext 0.4.0 seems to be the problem. torchtext 0.3.1 instead of solves it.

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

1 participant