You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.
I have been trying to recreate your model code. But it has been keep throwing me below error. I have installed all six mentioned dependencies. Don't know how to fix this issue. Here's the link of my google colab notebook .
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
in
----> 1 from bidaf.models import BidirectionalAttentionFlow
2 from bidaf.scripts import load_data_generators
3
4 bidaf_model = BidirectionalAttentionFlow(400)
5 bidaf_model.load_bidaf("/path/to/model.h5") # when you want to resume training
~\AppData\Roaming\Python\Python38\site-packages\bidaf\models_init_.py in
----> 1 from .bidaf import BidirectionalAttentionFlow
~\AppData\Roaming\Python\Python38\site-packages\bidaf\models\bidaf.py in
1 from keras.layers import Input, TimeDistributed, LSTM, Bidirectional
2 from keras.models import Model, load_model
----> 3 from keras.optimizers import Adadelta
4 from keras.callbacks import CSVLogger, ModelCheckpoint
5 from ..layers import Highway, Similarity, C2QAttention, Q2CAttention, MergedContext, SpanBegin, SpanEnd, CombineOutputs
ImportError: cannot import name 'Adadelta' from 'keras.optimizers' (C:...........\AppData\Roaming\Python\Python38\site-packages\keras\optimizers.py)
Any idea and suggestion would be highly appreciated. Thanks
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi @ParikhKadam @dharaneepatel15
I have been trying to recreate your model code. But it has been keep throwing me below error. I have installed all six mentioned dependencies. Don't know how to fix this issue. Here's the link of my google colab notebook .
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
in
----> 1 from bidaf.models import BidirectionalAttentionFlow
2 from bidaf.scripts import load_data_generators
3
4 bidaf_model = BidirectionalAttentionFlow(400)
5 bidaf_model.load_bidaf("/path/to/model.h5") # when you want to resume training
~\AppData\Roaming\Python\Python38\site-packages\bidaf\models_init_.py in
----> 1 from .bidaf import BidirectionalAttentionFlow
~\AppData\Roaming\Python\Python38\site-packages\bidaf\models\bidaf.py in
1 from keras.layers import Input, TimeDistributed, LSTM, Bidirectional
2 from keras.models import Model, load_model
----> 3 from keras.optimizers import Adadelta
4 from keras.callbacks import CSVLogger, ModelCheckpoint
5 from ..layers import Highway, Similarity, C2QAttention, Q2CAttention, MergedContext, SpanBegin, SpanEnd, CombineOutputs
ImportError: cannot import name 'Adadelta' from 'keras.optimizers' (C:...........\AppData\Roaming\Python\Python38\site-packages\keras\optimizers.py)
Any idea and suggestion would be highly appreciated. Thanks
The text was updated successfully, but these errors were encountered: