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

在torchtext中找不到multi30k #1

Open
wanghaiyang1999 opened this issue Nov 4, 2023 · 1 comment
Open

在torchtext中找不到multi30k #1

wanghaiyang1999 opened this issue Nov 4, 2023 · 1 comment

Comments

@wanghaiyang1999
Copy link

Traceback (most recent call last):
File "/media/amax/836e911f-c5c3-4c4b-91f2-41bb8f3f5cb6/DATA/EventGroup3/why/pytorch-transformer-main/train.py", line 6, in
from dataset import en_preprocess,de_preprocess,train_dataset,en_vocab,de_vocab,PAD_IDX
File "/media/amax/836e911f-c5c3-4c4b-91f2-41bb8f3f5cb6/DATA/EventGroup3/why/pytorch-transformer-main/dataset.py", line 8, in
from torchtext.datasets import multi30k, Multi30k
ImportError: cannot import name 'multi30k' from 'torchtext.datasets' (/home/amax/anaconda3/envs/wang/lib/python3.9/site-packages/torchtext/datasets/init.py)

@owenliang
Copy link
Owner

这个好像和pytorch版本有关系,我印象也遇到过,你网上搜搜。

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