Closed adam612 closed 6 years ago
Best guess: Do you have any empty documents? These should work, but the error looks like an array is empty.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Following the example of SpaCy's NLP package here:
https://github.com/explosion/spaCy/blob/master/examples/training/train_textcat.py
To use Keras for multiclass classification of texts, I received a strange error:
Debugging my error using SpaCy's example's data & labels, I figured that my categories (y_train) are encoded properly. Figured this by matching my 'y_train' multiclass-labels to the textual data in the example).Hence the problem must within the textual data ('X_train') - probably in the parsing process.
Any idea where the problem could be?
Here is a snippet of my code, X_train is a list of strings (just like the data in SpaCy's example):