fastnlp / fastNLP

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

Vocabulary must have a padding entry 是什么意思 #263

Closed TianlinZhang668 closed 4 years ago

TianlinZhang668 commented 4 years ago

File "/home/ztl/anaconda3/envs/nlp/lib/python3.6/site-packages/fastNLP/embeddings/embedding.py", line 129, in init assert vocab.padding is not None, "Vocabulary must have a padding entry." AssertionError: Vocabulary must have a padding entry.、

您好,这个是什么原因导致的错误