TypeError on trying ULMFiT and fastai tutorial

Hi, I am trying out the example code shared in this tutorial:

At the model fine tuning stage, when I run “learn = language_model_learner(data_lm, pretrained_model=URLs.WT103, drop_mult=0.7)”,

I get a TypeError:

language_model_learner() missing 1 required positional argument: ‘arch’

Would anyone know what this means? I looked online and couldn’t find a definitive answer (that I understood =) )

Thanks,
Apu

Use
learn = language_model_learner(data_lm, arch=AWD_LSTM, drop_mult=0.7) instead of
learn = language_model_learner(data_lm, pretrained_model=URLs.WT103, drop_mult=0.7)”,

The fastai library has had updates. Refer https://docs.fast.ai/text.learner.html#language_model_learner
for more details

© Copyright 2013-2019 Analytics Vidhya