Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
fix for missing dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-karpukhin authored Mar 8, 2022
1 parent 02e6454 commit a31212d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions dense_retriever.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
from dpr.utils.data_utils import RepTokenSelector
from dpr.data.qa_validation import calculate_matches, calculate_chunked_matches, calculate_matches_from_meta
from dpr.data.retriever_data import KiltCsvCtxSrc, TableChunk
from dpr.data.speech_data import SpeechQASample
from dpr.indexer.faiss_indexers import (
DenseIndexer,
)
Expand Down Expand Up @@ -519,8 +518,6 @@ def main(cfg: DictConfig):
for i in range(total_queries):
qa_sample = qa_src[i]
question, answers = qa_sample.query, qa_sample.answers
if isinstance(qa_sample, SpeechQASample):
questions_text.append(qa_sample.query_text)
questions.append(question)
question_answers.append(answers)

Expand Down

0 comments on commit a31212d

Please sign in to comment.