Thanks! I think the main issue was that newer versions of torchtext apparently changed the class labels in that dataset. It should also be fixed in the original repo here now: https://
github.com/rasbt/machine-
learning-book/blob/main/ch15/ch15_part2.ipynb
… Sorry for the hassle!
Fix for torchtext dataset class labels in machine learning book
By
–
Leave a Reply