Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Commit

Permalink
Changed something -- it can't be very important, because I already fo…
Browse files Browse the repository at this point in the history
…rgot.
  • Loading branch information
Tim Peters committed May 17, 2002
1 parent 8da6204 commit bce86b1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions BaseIndex.py
Expand Up @@ -130,12 +130,11 @@ def _remove_oov_wids(self, wids):
def _search_wids(self, wids):
raise NotImplementedError

# Subclass must override.
# It's not clear what it should do; so far, it only makes real sense
# for the cosine indexer.
def query_weight(self, terms):
# This method was inherited from the cosine measure, and doesn't
# make sense for Okapi measures in the way the cosine measure uses
# it. See the long comment at the end of the file for how full
# Okapi BM25 deals with weighting query terms.
return 10 # arbitrary
raise NotImplementedError

DICT_CUTOFF = 10

Expand Down

0 comments on commit bce86b1

Please sign in to comment.