[Zope-CVS] CVS: Products/ZCTextIndex - CosineIndex.py:1.20

Jeremy Hylton jeremy@zope.com
Fri, 17 May 2002 11:26:17 -0400


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

Modified Files:
	CosineIndex.py 
Log Message:
Shorten comment so it fits on line.


=== Products/ZCTextIndex/CosineIndex.py 1.19 => 1.20 ===
             assert self._wordinfo.has_key(wid)  # caller responsible for OOV
             d2w = self._wordinfo[wid] # maps docid to w(docid, wid)
-            idf = inverse_doc_frequency(len(d2w), N)  # this is an unscaled float
+            idf = inverse_doc_frequency(len(d2w), N)  # an unscaled float
             #print "idf = %.3f" % idf
             if isinstance(d2w, DictType):
                 d2w = IIBucket(d2w)