text icon indicating copy to clipboard operation
text copied to clipboard

[text/torchtext/vocab/vectors.py] Link to pretrained Glove embedding not working (404)

Open Eleven1Liu opened this issue 2 years ago • 0 comments

🐛 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:

  1. 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)
  1. See error: HTTPError: HTTP Error 404: Not Found

Expected behavior Download pretrained glove embeddings.

Screenshots image

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

Eleven1Liu avatar Jul 03 '23 14:07 Eleven1Liu