| |
- builtins.object
-
- Ranker
class Ranker(builtins.object) |
|
Ranker(parameters)
Get an initial ranking for a set of queries. The ranking may
come from an .inRank file or from a bag-of-words ranker (ranked
and unranked boolean, Indri, BM25). |
|
Methods defined here:
- __init__(self, parameters)
- Initialize self. See help(type(self)) for accurate signature.
- get_rankings(self, queries)
- Get a list of rankings for a set of queries. Each ranking is
a list of (score, externalId) tuples.
queries: A dict of {query_id:query_string}.
- get_rankings_bow(self, queries)
- Get a list of rankings for a set of queries. Each ranking is
a list of (score, externalId) tuples.
queries: A dict of {query_id:query_string}.
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:
- heap_item = <class 'Ranker.Ranker.heap_item'>
- A utility class to provide control over heap __lt__.
| |