Hello,
Thanks for the tutorial. I want to use Elmo embedding method replaced the embedding layer that you used in your image captioning proposed model, but it doesn't work. Elmo needs a string input so I changed the input type from float32 to string and then add an Elmo layer replaced embedding layer.
I would be grateful if you can help me with how to use Elmo in your model.
thank you in advance
Shima
I don't give support for user-modifications to these tutorials, because it would completely overload me with work. You could try asking on StackOverflow.
Hello, Thanks for the tutorial. I want to use Elmo embedding method replaced the embedding layer that you used in your image captioning proposed model, but it doesn't work. Elmo needs a string input so I changed the input type from float32 to string and then add an Elmo layer replaced embedding layer. I would be grateful if you can help me with how to use Elmo in your model. thank you in advance Shima
input: decoder_input =Input(shape=(None,), dtype="string", name='decoder_input')
layer in the model: net=ElmoEmbeddingLayer()(decoder_input)
Elmo Function:
class ElmoEmbeddingLayer(Layer):
Error ValueError: Input 0 is incompatible with layer decoder_gru1: expected ndim=3, found ndim=2