brmson / dataset-sts

Semantic Text Similarity Dataset Hub
711 stars 206 forks source link

Which keras version to use? #40

Open rulai-huajunzeng opened 8 years ago

rulai-huajunzeng commented 8 years ago

Thanks for the wonderful tool! But I got some errors when I tried one command in the readme: python tools/train.py cnn para data/para/msr/msr-para-train.tsv data/para/msr/msr-para-val.tsv

Using the latest version of keras (1.0.7), I found the following error: ImportError: cannot import name LambdaMerge I replaced all the LambdaMerge by Merge in blocks.py and re-run the command, another error appears: Exception: Layer e0[0] does not support masking, but was passed an input_mask: Elemwise{neq,no_inplace}.0

Then I uninstall it and install keras 0.3.2, but another error occur. AssertionError: Keyword argument not understood: dropout

Appreciate the help!

gozdesahin commented 8 years ago

I have the same problem.

When you add 'dropout' into the allowed arguments in core.py init function it starts training with no dropout.