susanli2016 / NLP-with-Python

Scikit-Learn, NLTK, Spacy, Gensim, Textblob and more
2.74k stars 2.02k forks source link

Getting an Error with shape #2

Open smituparmar opened 5 years ago

smituparmar commented 5 years ago

Hello Mam, I tried to replicate your work for my own project.(My native language is Gujarati so I want to make small machine translation application). Your article in towardsdatascience.com and this github file very helpful till now, but I am facing and issue at fitting model. Will you help me to solve the issue? Thank you. error is listed below screenshot 199 screenshot 200 screenshot 201

buzzsaw2222 commented 5 years ago

I'm getting that same error. It appears to be happening in the newer version of Keras Problem: https://github.com/keras-team/keras/issues/11749

Solution: https://github.com/keras-team/keras/issues/11804

It might not be the best solution, but it works. Hopefully it will be fixed in Keras with an update.