Skip to content

Commit

Permalink
removes direct vocab access in FastText
Browse files Browse the repository at this point in the history
  • Loading branch information
jayantj committed Jan 6, 2017
1 parent ef0e1e2 commit ab07ef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gensim/models/wrappers/fasttext.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def init_ngrams(self):
"""
self.wv.ngrams = {}
all_ngrams = []
for w, v in self.vocab.items():
for w, v in self.wv.vocab.items():
all_ngrams += self.compute_ngrams(w, self.wv.min_n, self.wv.max_n)
all_ngrams = set(all_ngrams)
self.num_ngram_vectors = len(all_ngrams)
Expand Down

0 comments on commit ab07ef9

Please sign in to comment.