JULIELab / trec-pm

Support code and resources for participation at the TREC Precision Medicine Track (TREC-PM)
http://trec-cds.appspot.com
MIT License
9 stars 2 forks source link

Make `Topic` do not depend on `Task` #57

Closed michelole closed 5 years ago

michelole commented 5 years ago

The only technical reason to have a Topic depend on Task was to be able to reuse Retrieval and ElasticSearchQuery objects. However, they should not be reused for different tasks because it's hard to keep state with a decorator chain.

This removes such dependence to make code simpler. It also removes an ElasticSearchQuery constructor that allowed such reuse (with an unused GoldStandard parameter).

This fixes #23.