Make it compatible with fastai 51

This commit is contained in:
Piotr Czapla
2019-05-12 22:19:02 +02:00
parent 50b73510de
commit 724233585e
+1 -1
View File
@@ -305,7 +305,7 @@ class LMHyperParams:
if (bunch_path / 'itos.pkl').exists():
data = bunch_class.load(self.cache_dir, name, bs=bs)
elif bunch_path.exists():
data = load_data(self.cache_dir, fname=name, bs=bs)
data = load_data(self.cache_dir, name, bs=bs)
else:
print(f"Running tokenization {name}...")
data = bunch_class.from_df(path=self.cache_dir,