ValueError: need more than 0 values to unpack - Glove
ValueError: need more than 0 values to unpack - Glove
我下载了手套模型
https://nlp.stanford.edu/projects/glove/
并且我使用自己的语料库训练 Glove 模型,除了添加自己的语料库外,我没有做任何更改。但它给出了以下错误。
01/30/19 - 11:15.01AM, iter: 015, cost: 0.062701
$ python eval/python/evaluate.py
Traceback (most recent call last):
File "eval/python/evaluate.py", line 110, in <module>
main()
File "eval/python/evaluate.py", line 33, in main
evaluate_vectors(W_norm, vocab, ivocab)
File "eval/python/evaluate.py", line 66, in evaluate_vectors
ind1, ind2, ind3, ind4 = indices.T
ValueError: need more than 0 values to unpack
虽然出现了这个错误,但是语料库生成正确。
我下载了手套模型 https://nlp.stanford.edu/projects/glove/
并且我使用自己的语料库训练 Glove 模型,除了添加自己的语料库外,我没有做任何更改。但它给出了以下错误。
01/30/19 - 11:15.01AM, iter: 015, cost: 0.062701
$ python eval/python/evaluate.py
Traceback (most recent call last):
File "eval/python/evaluate.py", line 110, in <module>
main()
File "eval/python/evaluate.py", line 33, in main
evaluate_vectors(W_norm, vocab, ivocab)
File "eval/python/evaluate.py", line 66, in evaluate_vectors
ind1, ind2, ind3, ind4 = indices.T
ValueError: need more than 0 values to unpack
虽然出现了这个错误,但是语料库生成正确。