text
text copied to clipboard
[text/torchtext/vocab/vectors.py] Link to pretrained Glove embedding not working (404)
🐛 Bug
Describe the bug
Get 404 when downloading glove.6B.*d.
The links to the pretrained word vectors in Glove (mirror) were not found, which makes links in class Glove (https://github.com/pytorch/text/blob/main/torchtext/vocab/vectors.py#L213-L217) failed.
To Reproduce Steps to reproduce the behavior:
- Run the example code here.
import torchtext as text
examples = ['chip', 'baby', 'Beautiful']
vec = text.vocab.GloVe(name='6B', dim=50)
ret = vec.get_vecs_by_tokens(examples, lower_case_backup=True)
- See error:
HTTPError: HTTP Error 404: Not Found
Expected behavior Download pretrained glove embeddings.
Screenshots
Environment
- PyTorch Version (e.g., 1.0): 1.13.1+cu116
- OS (e.g., Linux): Ubuntu 20.04.6 LTS (x86_64)
- How you installed PyTorch (
conda,pip, source): pip - Python version: 3.8.10
- CUDA/cuDNN version: 11.6