Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Mp5A5 opened this issue Nov 27, 2023 · 1 comment
Open

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

Mp5A5 opened this issue Nov 27, 2023 · 1 comment

Comments

@Mp5A5
Copy link

Mp5A5 commented Nov 27, 2023

代码

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'

@HunterHeidy
Copy link

HunterHeidy commented Nov 27, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants