I’ve been trying to follow Fast.AI lessons using Google Colab notebooks. Recently, when I call data.save() after the following text block,
data = (TextList.from_csv(path, ‘train.csv’, cols=‘description’)
.split_from_df(col=‘is_valid’)
.label_from_df(cols=‘label’)
.databunch())
type(data) returns fastai.text.data.TextClasDataBunch.
However, when I do this, data_lm = TextLMDataBunch.load(path, 'tmp', bs=bs)
, I get FileNotFoundError: [Errno 2] No such file or directory: ‘data/tmp/itos.pkl’ . And, looking into the path directory, I only see a data_save.pkl being formed and not the tmp folder. Anyone faced a similar problem before or does anyone have any idea what is causing this funky behaviour?