How to do categorical sequence classification?
Whenever I have a sequence of max length y of batch size x: (x, y) and categorical (z) classification (x, z) I get the error that batch size isn't the same x vs x*z, how do I fix this?
Solved  by adding `num_labels` to the constructor: `BertForSequenceClassification.from_pretrained("...", num_labels=z)`. Then the onehot-encoding wasn't necessary either. Another error would probably make it easier to spot this though.