错误一:
EOFError: unexpected end of input; is count incorrect or file otherwise damaged?
错误二:
ValueError: invalid vector on line 0 (is this really the text format?)
用gensim加载预训练好的词向量时,可以发现词向量文件顶层是words_num vector_length两个信息。
以上两个报错分别是:
错误一:前面的words_num和文件对不上,即文件总行数应该为words_num+1
错误二:后面的vector_length和文件中每一行数字的数量没有对应上