Skip to content

Commit

Permalink
set .vectors even when ngrams off
Browse files Browse the repository at this point in the history
  • Loading branch information
gojomo committed Jul 22, 2020
1 parent 3f7047f commit ac9126d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gensim/models/fasttext.py
Original file line number Diff line number Diff line change
Expand Up @@ -1401,6 +1401,7 @@ def adjust_vectors(self):
"""
if self.bucket == 0:
self.vectors = self.vectors_vocab # no ngrams influence
return

self.vectors = self.vectors_vocab[:].copy()
Expand Down

0 comments on commit ac9126d

Please sign in to comment.