Skip to content

Commit

Permalink
fix: 불필요한 assert 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
kooqooo committed Feb 18, 2024
1 parent 4d56b07 commit 638dd6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/retrieval_dpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def retrieve(
Ground Truth가 없는 Query (test) -> Retrieval한 Passage만 반환합니다.
"""

assert self.p_embedding is not None, "get_sparse_embedding() 메소드를 먼저 수행해줘야합니다."
# assert self.p_embedding is not None, "get_sparse_embedding() 메소드를 먼저 수행해줘야합니다."

if isinstance(query_or_dataset, str):
doc_scores, doc_indices = self.get_relevant_doc(query_or_dataset, k=topk)
Expand Down

0 comments on commit 638dd6d

Please sign in to comment.