I’m trying to redo a variant of the sentiment analysis task that we implemented as part of lesson 4 using text.py and I’m running into an issue.
If I try using nlp.py I’m running into an issue when I call learner.lr_find() or learner.fit() where the model expects a target size that doesn’t take batch size into account.
ValueError: Expected target size (40, 200), got torch.Size([40, 12, 200])
I tried switching over to the text.py variant, but the structure of the data loader has changed significantly and I don’t have any frame of reference as to what the parameters are that I need to fill in.
----> 1 md = LanguageModelData(PATH, TEXT, **FILES, bs=bs, bptt=bptt, min_freq=30)
TypeError: init() missing 3 required positional arguments: ‘nt’, ‘trn_dl’, and ‘val_dl’
Are there notebooks available that make use of text.py and load the data from text files? Flagging @jeremy as i’m not sure who else to reach out to.
I’ve updated both my version of the library and pytorch. I’ve event tried redownloading from scratch, so I’m guessing other students are running into this as well.