[Zope-CVS] CVS: Products/ZCTextIndex - OkapiIndex.py:1.1.2.4

Tim Peters tim.one@comcast.net
Mon, 13 May 2002 23:03:09 -0400


Update of /cvs-repository/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv14099

Modified Files:
      Tag: TextIndexDS9-branch
	OkapiIndex.py 
Log Message:
doc_term_weight():  Removed, as it's a YAGNI for Okapi.


=== Products/ZCTextIndex/OkapiIndex.py 1.1.2.3 => 1.1.2.4 ===
         return scaled_int(math.log(1 + len(self._docweight) / float(len(map))))
 
-def doc_term_weight(count):
-    """Return the doc-term weight for a term that appears count times."""
-    # implements w(d, t) = 1 + log f(d, t)
-    return 1.0 + math.log(count)
-
 def inverse_doc_frequency(term_count, num_items):
     """Return the inverse doc frequency for a term,