LMDataLoader in fastai

183 views Asked by At

I'm trying to use LMDataloader in my nlp project but it always gives the following error

NameError: name 'LMDataLoader' is not defined

and is not importing either. Is it a version difference in Fastai and has it ben depreciated and if so what can I use instead.

1

There are 1 answers

0
G__ On

This works for me (fastai v2.4 installed):

from fastai.text.all import LMDataLoader