Skip to content

Commit 1ca6ea1

Browse files
authored
Merge pull request #115 from NowayIndustries/fix-word2vec-in-memory
Fixes 'NameError: reduce is not defined in Python' when attempting to use the in-memory train_word2vec in Python3.
2 parents fb7f238 + 5ec693e commit 1ca6ea1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

magpie/base/word2vec.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import os
33
import six
44
import numpy as np
5+
from functools import reduce
56

67
from gensim.models import Word2Vec
78
from sklearn.preprocessing import StandardScaler

0 commit comments

Comments
 (0)