text
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
🐛 Bug
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- 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.
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.
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
I cannot access the notebook.
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
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