0

嗨,我很震惊,请帮我解决这个问题

我收到此错误

TypeError: language_model_learner() missing 1 required positional argument: 'arch'

我正在关注本教程:- https://www.analyticsvidhya.com/blog/2018/11/tutorial-text-classification-ulmfit-fastai-library/

4

1 回答 1

5

https://docs.fast.ai/text.learner.html#language_model_learner

您需要定义架构,如下所示:

language_model_learner(data, AWD_LSTM, drop_mult=0.5)
于 2019-03-25T04:36:41.987 回答