Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sj29-innovate committed Jan 8, 2018
1 parent 38e2a0f commit dc702de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gensim/summarization/bm25.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def initialize(self):
"""Calculates frequencies of terms in documents and in corpus. Also computes inverse document frequencies."""
for document in self.corpus:
frequencies = {}
doc_length.append(len(document))
(self.doc_length).append(len(document))
for word in document:
if word not in frequencies:
frequencies[word] = 0
Expand Down

0 comments on commit dc702de

Please sign in to comment.