Skip to content

Commit

Permalink
clarified comment
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmacavaney authored Aug 23, 2024
1 parent cf7bbe5 commit 3300fef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyterrier/terrier/retriever.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,9 +751,10 @@ def transform(self, queries):
qid = str(row.qid)
query_toks_present : bool = 'query_toks' in row._fields
if query_toks_present:
# Even though it might look like we should parse the query toks here, we don't want the resulting query to be caught by the conditions
# that come before the "if query_toks_present" check. So we set it to an empty string and handle the parsing below.
query = ''
srq = self.manager.newSearchRequest(qid)
# we'll parse query_toks below
else:
query = row.query
if len(query) == 0:
Expand Down

0 comments on commit 3300fef

Please sign in to comment.