Embedding / Chinese-Word-Vectors

100+ Chinese Word Vectors 上百种预训练中文词向量

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ValueError: could not convert string to float: '9:0.0221277913146'

Mp5A5 opened this issue · comments

commented

代码

model = KeyedVectors.load_word2vec_format('/xx/ppmi.baidubaike.word',
binary=False,
unicode_errors='ignore')

报错内容

File "xx/miniconda/envs/py39-tf29/lib/python3.9/site-packages/gensim/models/keyedvectors.py", line 1980, in _word2vec_line_to_vector
word, weights = parts[0], [datatype(x) for x in parts[1:]]
File "xx/miniconda/envs/py39-tf29/lib/python3.9/site-packages/gensim/models/keyedvectors.py", line 1980, in
word, weights = parts[0], [datatype(x) for x in parts[1:]]
ValueError: could not convert string to float: '9:0.0221277913146'

commented