Hello, everyone! Hope it is the right place to ask this question.

I’m trying to replicate the code from Lecture 11 Embeddings (Practical Machine Learning for Coders) and stuck at part where Jeremy talks about DotProdNB algorithm. Can anyone please provide me the list of modules (and fastai version) that I need to import in order to run the following:

sl = 2000

md = TextClassifierData.from_bow(trn_term_doc, trn_y, val_term_doc, val_y, sl)

learner = md.dotprod_nb_learner()

learner.fit(0.02, 1, wds=1e-6, cycle_len=1)