capreolus.benchmark.gov2
¶
Module Contents¶
Classes¶
Base class for Benchmark modules. The purpose of a Benchmark is to provide the data needed to run an experiment, such as queries, folds, and relevance judgments. |
|
Base class for Benchmark modules. The purpose of a Benchmark is to provide the data needed to run an experiment, such as queries, folds, and relevance judgments. |
Attributes¶
- class capreolus.benchmark.gov2.Gov2(config=None, provide=None, share_dependency_objects=False, build=True)[source]¶
Bases:
capreolus.benchmark.IRDBenchmark
Base class for Benchmark modules. The purpose of a Benchmark is to provide the data needed to run an experiment, such as queries, folds, and relevance judgments.
- Modules should provide:
a
topics
dict mapping query ids (qids) to queriesa
qrels
dict mapping qids to docids and relevance labelsa
folds
dict mapping a fold name to training, dev (validation), and testing qidsif these can be loaded from files in standard formats, they can be specified by setting the
topic_file
,qrel_file
, andfold_file
, respectively, rather than by setting the above attributes directly
- class capreolus.benchmark.gov2.Gov2Desc(config=None, provide=None, share_dependency_objects=False, build=True)[source]¶
Bases:
Gov2
Base class for Benchmark modules. The purpose of a Benchmark is to provide the data needed to run an experiment, such as queries, folds, and relevance judgments.
- Modules should provide:
a
topics
dict mapping query ids (qids) to queriesa
qrels
dict mapping qids to docids and relevance labelsa
folds
dict mapping a fold name to training, dev (validation), and testing qidsif these can be loaded from files in standard formats, they can be specified by setting the
topic_file
,qrel_file
, andfold_file
, respectively, rather than by setting the above attributes directly