Skip to content

Commit

Permalink
fix build, use KeyedVectors class (#2774)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenkov authored Mar 24, 2020
1 parent d952a51 commit ec222e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gensim/test/test_keyedvectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def test_load_model_and_vocab_file_ignore(self):
@unittest.skipUnless(KERAS_INSTALLED, 'keras needs to be installed for this test')
class WordEmbeddingsKeyedVectorsTest(unittest.TestCase):
def setUp(self):
self.vectors = EuclideanKeyedVectors.load_word2vec_format(
self.vectors = KeyedVectors.load_word2vec_format(
datapath('euclidean_vectors.bin'), binary=True, datatype=np.float64)

def test_get_keras_embedding_word_index_none(self):
Expand Down

0 comments on commit ec222e8

Please sign in to comment.