Skip to content

LanguageModelData not defined #224

@alibaltschun

Description

@alibaltschun

hello, i was following the tutorial. and in this code give me an error

trn_dl = LanguageModelLoader(pd.DataFrame(trn_lm,columns=['x']), bs, bptt)
val_dl = LanguageModelLoader(pd.DataFrame(trn_lm,columns=['x']), bs, bptt)
md = LanguageModelData(PATH_MODELS, 1, vs, trn_dl, val_dl, bs=bs, bptt=bptt)

NameError: name 'LanguageModelData' is not defined

i was check on this file and there are no class 'LanguageModelData' . and on this doc at 'Language Model Data' at the bottom say 'This is all done internally when we use TextLMDataBunch, by creating DataLoader using the following class:'

its that mean the class LanguageModelData was refactored to TextLMDataBunch ?

i will used fastai for production so i used the new version of fastai.
so how to fix that problem with the new version of fastai?

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions