ScoreList
index
/bos/usr0/callan/Classes/11-642/2023-F/ScoreList.py

Create, access, and manipulate document score lists.

 
Classes
       
builtins.object
ScoreList

 
class ScoreList(builtins.object)
    Create, access, and manipulate document score lists.
 
  Methods defined here:
__init__(self)
Initialize self.  See help(type(self)) for accurate signature.
__len__(self)
add(self, docid, score)
Append a document score to a score list.
docid: An internal document id.
score: The document's score.
cmp_to_key(mycmp)
Convert a cmp= function into a key= function
getDocid(self, n)
Get the internal docid of the n'th entry.
getDocidScore(self, n)
Get the score of the n'th entry.

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
ScoreListEntry = <class 'ScoreList.ScoreList.ScoreListEntry'>
A utility class to create a <internalDocid, score> object.