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

Failed module import #16

Open
tgalery opened this issue Apr 24, 2018 · 1 comment
Open

Failed module import #16

tgalery opened this issue Apr 24, 2018 · 1 comment

Comments

@tgalery
Copy link

tgalery commented Apr 24, 2018

Maybe related to the whole bunch of python 3 issues around the repo, but a simple

from keras_text.models import TokenModelFactory

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-8-96307cb1e937> in <module>()
      1 # Will automagically handle padding for models that require padding (Ex: Yoon Kim CNN)
----> 2 from keras_text.models import TokenModelFactory
      3 from keras_text.models import YoonKimCNN, AttentionRNN, StackedRNN
      4 factory = TokenModelFactory(1, tokenizer.token_index, max_tokens=100, embedding_type='glove.6B.100d')
      5 word_encoder_model = YoonKimCNN()

~/miniconda/envs/deeplearn/lib/python3.6/site-packages/keras_text/models/__init__.py in <module>()
----> 1 from token_model import TokenModelFactory
      2 from sentence_model import SentenceModelFactory
      3 from sequence_encoders import *
@zuenko
Copy link

zuenko commented Apr 27, 2018

from .token_model import TokenModelFactory
from .sentence_model import SentenceModelFactory
from .sequence_encoders import *

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