Error when using textcat.teach with small number of samples

Could that be linked to this actually:

?