emnlp2017-relation-extraction
emnlp2017-relation-extraction copied to clipboard
TypeError: Input 'y' of 'Equal' Op has type float32 that does not match type int8 of argument 'x'.
Dear,
I just tried to run:
python model_train.py model_ContextWeighted train ../data/wikipedia-wikidata/enwiki-20160501/semantic-graphs-filtered-training.02_06.json ../data/wikipedia-wikidata/enwiki-20160501/semantic-graphs-filtered-validation.02_06.json
However, I found this errors:
File "model_train.py", line 111, in
File "/root/anaconda3/envs/tensorflow2/lib/python3.8/site-packages/keras/engine/training.py", line 1051, in train_function *
return step_function(self, iterator)
File "/home/yani/disertasi/emnlp2017-relation-extraction/relation_extraction/core/keras_models.py", line 119, in masked_categorical_crossentropy *
mask = K.equal(y_true[..., 0], K.variable(1))
File "/root/anaconda3/envs/tensorflow2/lib/python3.8/site-packages/keras/backend.py", line 2925, in equal
return tf.equal(x, y)
TypeError: Input 'y' of 'Equal' Op has type float32 that does not match type int8 of argument 'x'.
Anyone could help?
regards,
Mohammad