[Zope-CVS] CVS: Products/ZCTextIndex - Index.py:1.1.2.34

Guido van Rossum guido@python.org
Mon, 6 May 2002 22:17:24 -0400


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

Modified Files:
      Tag: TextIndexDS9-branch
	Index.py 
Log Message:
Correct the comment for _get_frequencies().


=== Products/ZCTextIndex/Index.py 1.1.2.33 => 1.1.2.34 ===
     def _get_frequencies(self, wids):
         """Return individual doc-term weights and docweight."""
-        # computes w(d, t) for each term, and W(d)
-        # return triple
-        #    [wid0, wid1, ...].
-        #    an encoded form of [w(d, wid0), w(d, wid1), ...],
+        # Computes w(d, t) for each term, and W(d).
+        # Return triple:
+        #    [wid0, wid1, ...],
+        #    [w(d, wid0)/W(d), w(d, wid1)/W(d), ...],
         #    W(d)
+        # The second list and W(d) are scaled_ints.
         d = {}
         for wid in wids:
             d[wid] = d.get(wid, 0) + 1