| |
- builtins.object
-
- TeIn
class TeIn(builtins.object) |
|
TeIn(path, max_results)
Write search results in trec_eval format. |
|
Methods defined here:
- __init__(self, path, max_results)
- Prepare to write search results for multiple queries to a file in
trec_eval format.
path: Where to write the file.
max_results: Maximum number of results to write for each query.
- appendQuery(self, qid, results, runId)
- Append search results for a query to a trec_eval input file.
qid: Query identifier.
results: A list of (score, externalId) tuples.
runId: Run identifier string.
throws IOException: Error accessing the Lucene index.
- close(self)
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
| |