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 f9803cb commit 0630101
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 @@ -122,7 +122,7 @@ def get_score(self, document, index, average_idf):
continue
idf = self.idf[word] if self.idf[word] >= 0 else EPSILON * average_idf
score += (idf * self.f[index][word] * (PARAM_K1 + 1)
/ (self.f[index][word] + PARAM_K1 * (1 - PARAM_B + PARAM_B * len(corpus[index]) / self.avgdl)))
/ (self.f[index][word] + PARAM_K1 * (1 - PARAM_B + PARAM_B * len(self.corpus[index]) / self.avgdl)))
return score

def get_scores(self, document, average_idf):
Expand Down

0 comments on commit 0630101

Please sign in to comment.