嗨,我很震惊,请帮我解决这个问题
我收到此错误
TypeError: language_model_learner() missing 1 required positional argument: 'arch'
我正在关注本教程:- https://www.analyticsvidhya.com/blog/2018/11/tutorial-text-classification-ulmfit-fastai-library/
嗨,我很震惊,请帮我解决这个问题
我收到此错误
TypeError: language_model_learner() missing 1 required positional argument: 'arch'
我正在关注本教程:- https://www.analyticsvidhya.com/blog/2018/11/tutorial-text-classification-ulmfit-fastai-library/
https://docs.fast.ai/text.learner.html#language_model_learner
您需要定义架构,如下所示:
language_model_learner(data, AWD_LSTM, drop_mult=0.5)