Also if I try .label_for_lm with the cleaned-up data:
data_lm = (TextList.from_csv(path, 'fake_or_real_news_clean_4000-2.csv', col='text')
.random_split_by_pct(0.2)
#We randomly split and keep 10% for validation
.label_for_lm()
#We want to do a language model so we label accordingly
.databunch())
data_lm.save('tmp_lm')
Then I once again get the error at the previous line (.random_split_by_pct):
During handling of the above exception, another exception occurred:
<ipython-input-34-6e7bbfaafc36> in <module>
1 data_lm = (TextList.from_csv(path, 'fake_or_real_news_clean_4000-2.csv', col='text')
----> 2 .random_split_by_pct(0.2)
3 #We randomly split and keep 10% for validation
4 .label_for_lm()
5 #We want to do a language model so we label accordingly