Skip to content

Commit 6ff9b89

Browse files
committed
Updated ColBERT examples [skip ci]
1 parent 208b11a commit 6ff9b89

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

examples/colbert/approximate.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@
3535
$$ LANGUAGE SQL
3636
""")
3737

38-
# ignore warnings from colbert
39-
warnings.filterwarnings('ignore')
38+
warnings.filterwarnings('ignore') # ignore warnings from colbert
4039

4140
config = ColBERTConfig(doc_maxlen=220, query_maxlen=32)
4241
checkpoint = Checkpoint('colbert-ir/colbertv2.0', colbert_config=config, verbose=0)

examples/colbert/exact.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
$$ LANGUAGE SQL
3030
""")
3131

32-
# ignore warnings from colbert
33-
warnings.filterwarnings('ignore')
32+
warnings.filterwarnings('ignore') # ignore warnings from colbert
3433

3534
config = ColBERTConfig(doc_maxlen=220, query_maxlen=32)
3635
checkpoint = Checkpoint('colbert-ir/colbertv2.0', colbert_config=config, verbose=0)

0 commit comments

Comments
 (0)