text icon indicating copy to clipboard operation
text copied to clipboard

The Vocab function in torchtext still have some issues. It's only works with python 3.9.12 torchtext 0.12.0 pytorch 1.11.0 and not compatible with other versions

Open ayanban011 opened this issue 3 years ago • 4 comments

🐛 Bug

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Environment

Please copy and paste the output from our environment collection script (or fill out the checklist below manually).

You can get the script and run it with:

wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py
python -c "import torchtext; print(\"torchtext version is \", torchtext.__version__)"
  • PyTorch Version (e.g., 1.0):
  • OS (e.g., Linux):
  • How you installed PyTorch (conda, pip, source):
  • Build command you used (if compiling from source):
  • Python version:
  • CUDA/cuDNN version:
  • GPU models and configuration:
  • Any other relevant information:

Additional context Add any other context about the problem here.

ayanban011 avatar Jul 27 '22 19:07 ayanban011

Hey @ayanban011, can you provide some example failures modes when using the vocab or specifics for issues you're running into? The issue summary is not very descriptive and makes it hard to repro.

Nayef211 avatar Jul 28 '22 00:07 Nayef211

Hi, @Nayef211 Please go through the following notebook. I think it will help you to reproduce the environment. https://colab.research.google.com/drive/1skn5tBhQwVQbH2h64_xjkU9pPa2tUBzC?authuser=1#scrollTo=ZZ3dvBdcshJS

ayanban011 avatar Jul 28 '22 09:07 ayanban011

I cannot access the notebook.

Screen Shot 2022-07-28 at 11 21 55 AM

Hi, @Nayef211 Please go through the following notebook. I think it will help you to reproduce the environment. https://colab.research.google.com/drive/1skn5tBhQwVQbH2h64_xjkU9pPa2tUBzC?authuser=1#scrollTo=ZZ3dvBdcshJS

mthrok avatar Jul 28 '22 18:07 mthrok

Hi, @mthrok @Nayef211 Sorry to know about that, it's not accessible. Please try with this link. https://github.com/ayanban011/Getting-Started_with_Pytorch/blob/main/Represent_words_with_Embeddings.ipynb

ayanban011 avatar Jul 30 '22 17:07 ayanban011