Error with Learn.predict("Some text")

The learner is missing the classes list. There seems to be a bug either in the export-function or in load_learner. Either way, as a workaround you can insert the classes list manually after load_learner.

learn.single_ds.y.classes = ['class_1', 'class_2', ...]

See also here: