MasteringPyTorchV2 icon indicating copy to clipboard operation
MasteringPyTorchV2 copied to clipboard

chapter 5 transformer.ipynb not able to reproduce

Open ayusdixit opened this issue 1 year ago • 2 comments

Was reproducing the code on Colab but got the following error : ->tr_iter = PennTreebank(split='train') tkzer = get_tokenizer('basic_english')

image

done pip install portalocker

then got the following error:

image

Is there dependency issue here?

ayusdixit avatar Aug 12 '24 01:08 ayusdixit

I get same issue. I think torchtext is pretty much abandoned at this point and it's going to be hard to get this to work. What I don't understand is how this can break even when loading the old versions of everything.

jonbirge avatar Sep 15 '24 06:09 jonbirge

I ran into the same problem. Can anyone suggest other source of text we could use to make this work???

JuanVargas avatar Mar 20 '25 22:03 JuanVargas