Skip to content

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

@Mp5A5

Description

@Mp5A5

代码

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions