I’m having trouble getting my data prepared for an NLP model. I get an error stating ‘TextDataBunch’ is not defined when I run the following code. I have the same issue trying to use TextLMDataBunch.
from fastai import *
from fastai.text import *
data_lm = TextDataBunch.from_csv(PATH, ‘text_only.csv’)
I’ve been using this article as a guide and I’m not sure why I’m getting this error: https://docs.fast.ai/text.html#Getting-your-data-ready-for-modeling
Any help would be appreciated. I just completed class 4 of part 1 of the MOOC version of the class that’s currently available.