컴퓨터과학
[트러블슈팅] ModuleNotFoundError: No module named 'torchtext.data.metrics'
홈카페주인
2023. 6. 12. 16:34
내 경우에는 torchtext 의 버전이 0.4.0 이라서 발생했다. 너무 낮았다.
0.6.0 으로 올렸을 때 잘 작동했다.
참고자료
https://github.com/pytorch/text/issues/855
ModuleNotFoundError: No module named 'torchtext.data.metrics' · Issue #855 · pytorch/text
❓ Questions and Help I was testing bleu_score in Google Colab note book and these were the precise steps taken; !pip install torchtext Requirement already satisfied: torchtext in /usr/local/lib/pyt...
github.com
728x90