ShannonAI / glyce

Code for NeurIPS 2019 - Glyce: Glyph-vectors for Chinese Character Representations
https://arxiv.org/abs/1901.10125
Apache License 2.0
421 stars 75 forks source link

What's the problem? #20

Open YuxuanJiang1 opened 5 years ago

YuxuanJiang1 commented 5 years ago

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 commented 4 years ago

The same question. Did you solve it?

Crescentz commented 4 years ago

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 commented 2 years ago

same problem