Hey there !
I’m creating a model for text classification and my data is in a pandas dataframe. It seems that TextDataBunch.from_df
requires explicitly setting the validation set, so I splitted my Dataframe into two.
Each dataframe has the labels in col 1.
So here’s my line:
data_clas = TextDataBunch.from.df(path, train_df = train_df, valid_df = valid_df, vocab = data_lm.vocab, text_cols = 0, label_cols = 1).databunch(bs = 32)
However, when running this, I get an error saying that my data isn’t labeled.
Could I get some help, please ? What am I doing wrong ?
Thanks a lot (: