Skip to content

utf-8 decoding of Google word2vec embeddings incorrect #39

@gargrohin

Description

@gargrohin

In preprocess.py, function load_bin_vec : the line ch = f.read(1) is incorrect, atleast for Python3.
Need to add .decode("utf-8") for correctly decoding characters from GoogleNews-vectors-negative300.bin

Also, need to convert the code to Python3 for 2020 use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions