capreolus-ir / capreolus

A toolkit for end-to-end neural ad hoc retrieval
https://capreolus.ai
Apache License 2.0
95 stars 32 forks source link

Searcher/query #59

Closed crystina-z closed 4 years ago

crystina-z commented 4 years ago
  1. move query and query_from_file to Searcher base class
  2. rename query_from_file in each subclass into internal class _query_from_file, which requires another extra parameter config, which should be provided either by query_from_file (use self.config) or query (where default config can be modified by users)