richliao / textClassifier

Text classifier for Hierarchical Attention Networks for Document Classification
Apache License 2.0
1.07k stars 379 forks source link

ValueError: Error when checking target: expected dense_1 to have 2 dimensions, but got array with shape (40261, 2, 2) #39

Open houpingx opened 5 years ago

houpingx commented 5 years ago

Exactly follow the procedure and run the code. But, there is an issue when train the model

ValueError: Error when checking target: expected dense_1 to have 2 dimensions, but got array with shape (40261, 2, 2)

How to fix this one!

tomxmr commented 5 years ago

I'm stuck with the same issue. Any solutions?