Skip to content

Commit

Permalink
Patch
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingTil committed Nov 15, 2023
1 parent 4b83878 commit d365970
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions py_css/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,6 @@ def gen_context_docs(context: Context) -> Generator[Document, None, None]:
for doc in docs:
if doc.docno != EMPTY_PLACEHOLDER_DOC.docno:
yield doc
i: int = 1
while True:
yield Document(f"{i}", "")
i += 1

# if in df there are multiple rows that have the same qid and docno, keep the one with the highest score. For the ones removed, add a row each with the EMPTY_PLACEHOLDER_DOC
rank_size_per_qid: int = df.groupby("qid").size().max()
Expand Down

0 comments on commit d365970

Please sign in to comment.