Skip to content

fix word2vec typo and string encode as bytes.#306

Open
Oceania2018 wants to merge 1 commit intoaymericdamien:masterfrom
Oceania2018:master
Open

fix word2vec typo and string encode as bytes.#306
Oceania2018 wants to merge 1 commit intoaymericdamien:masterfrom
Oceania2018:master

Conversation

@Oceania2018
Copy link

Tested running very well.

image


# Testing data
x_test = np.array([word2id[w] for w in eval_words])
x_test = np.array([word2id.get(w.encode(), 0) for w in eval_words])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can just be word2id[w.encode()]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants