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

What's the problem? #20

Open
YuxuanJiang1 opened this issue Oct 23, 2019 · 3 comments
Open

What's the problem? #20

YuxuanJiang1 opened this issue Oct 23, 2019 · 3 comments

Comments

@YuxuanJiang1
Copy link

Has successfully installed requirements, but get errors when going word-embedding as follow;

glyce_embedding = CharGlyceEmbedding(glyce_config)
File "/home/jyx/projects/glyce/glyce/layers/char_glyph_embedding.py", line 65, in init
self.char_embedding = nn.Embedding(len(self.config.idx2char), self.config.char_embsize) # (4452, 13, 13)
TypeError: object of type 'NoneType' has no len()
so what'd the prob..

@gaosensen
Copy link

The same question. Did you solve it?

@Crescentz
Copy link

Has successfully installed requirements, but get errors when going word-embedding as follow;

glyce_embedding = CharGlyceEmbedding(glyce_config)
File "/home/jyx/projects/glyce/glyce/layers/char_glyph_embedding.py", line 65, in init
self.char_embedding = nn.Embedding(len(self.config.idx2char), self.config.char_embsize) # (4452, 13, 13)
TypeError: object of type 'NoneType' has no len()
so what'd the prob..

did You sovle it?

@reatiny
Copy link

reatiny commented Mar 16, 2022

same problem

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

4 participants