You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
The text was updated successfully, but these errors were encountered:
代码
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'
The text was updated successfully, but these errors were encountered: