Maybe I am bit late to the party and this is solved somewhere, but, LanguageModelData is not a available in v1. I am wondering what is the equivalent to this in v1:
What are train_lm and val_lm? In my case, when I had two pandas dataframes, I concatenated them into one dataframe, adding a fake column is_valid, and used datablock API to create a databunch.