Skip to content

Commit

Permalink
Black
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Martin Jose committed Aug 22, 2021
1 parent f5e5fc4 commit afe19f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion capreolus/extractor/bertpassage.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def _prepare_bert_input(self, query_toks, psg_toks):
return inp, mask, seg

def id2vec_for_pairs(self, qid, posid, negid=None, label=None, reldocs=None):
return self.id2vec_for_triplets(qid, posid,negid=negid, label=label)
return self.id2vec_for_triplets(qid, posid, negid=negid, label=label)

def id2vec_for_triplets(self, qid, posid, negid=None, label=None):
"""
Expand Down
1 change: 1 addition & 0 deletions capreolus/tests/test_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# TODO: Allow the below collections too to be tested
collections = collections - {"gov2passages", "robust04passages"}


@pytest.mark.parametrize("collection_name", collections)
def test_collection_creatable(tmpdir_as_cache, collection_name):
collection = Collection.create(collection_name)
Expand Down

0 comments on commit afe19f1

Please sign in to comment.