| | |
- 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.
- execute(self, batch)
- Get rankings for each query. Any prior ranking is ignored.
batch: A dict of {qid: {'qstring': qstring } ... }
Return a dict of {qid: {'qstring': qstring,
'ranking': [(score, externalId)] ...}
... }
- get_rankings_bow(self, batch)
- Add rankings for each query to the batch object. Each ranking is
a list of (score, externalId) tuples.
batch: A dict of {query_id: {'qstring': query_string}}.
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
| |