Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elmo+BiLSTM ERROR #19

Open
XinhuiLiu opened this issue Nov 20, 2019 · 1 comment
Open

Elmo+BiLSTM ERROR #19

XinhuiLiu opened this issue Nov 20, 2019 · 1 comment

Comments

@XinhuiLiu
Copy link

XinhuiLiu commented Nov 20, 2019

input_text = Input(shape=(1,), dtype="string")
embedding = ElmoEmbeddingLayer()(input_text)
lstm_output =  Bidirectional(LSTM(120))(embedding)

error:
File "E:/workspaces/python/elmo/code/elmo-own.py", line 98, in build_model
lstm_output = Bidirectional(LSTM(units=120))(embedding)
File "e:\ProgramData\Anaconda3\lib\site-packages\keras\engine\topology.py", line 528, in call
self.build(input_shapes[0])
File "e:\ProgramData\Anaconda3\lib\site-packages\keras\layers\wrappers.py", line 232, in build
self.forward_layer.build(input_shape)
File "e:\ProgramData\Anaconda3\lib\site-packages\keras\layers\recurrent.py", line 959, in build
self.input_dim = input_shape[2]
IndexError: tuple index out of range

@VpkPrasanna
Copy link

yes ,i too got the same error now and i have no idea about it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants