fastnlp / fastNLP

fastNLP: A Modularized and Extensible NLP Framework. Currently still in incubation.
https://gitee.com/fastnlp/fastNLP
Apache License 2.0
3.05k stars 451 forks source link

[bugfix] fix wrong num_embeddings when randomly initialize a StaticEmbedding with lower=True #361

Closed LouChao98 closed 3 years ago

LouChao98 commented 3 years ago

Description:use len(lowered_vocab) instead of len(vocab) when randomly initialize a StaticEmbedding

Mention: @yhcc