Spaces:
Sleeping
Sleeping
Commit
•
4ebd12d
1
Parent(s):
bfcacbc
add options to turn features off
Browse files
app.py
CHANGED
@@ -200,7 +200,7 @@ with st.sidebar:
|
|
200 |
if use_only_relevance_2:
|
201 |
# remove all qrels that are not relevance 2
|
202 |
for qid, doc_rels in qrels.items():
|
203 |
-
qrels[qid] = {docid: rel for docid, rel in doc_rels.items() if rel ==
|
204 |
# remove all queries that have no qrels
|
205 |
queries = {qid: text for qid, text in queries.items() if qid in qrels}
|
206 |
|
|
|
200 |
if use_only_relevance_2:
|
201 |
# remove all qrels that are not relevance 2
|
202 |
for qid, doc_rels in qrels.items():
|
203 |
+
qrels[qid] = {docid: rel for docid, rel in doc_rels.items() if rel == 2}
|
204 |
# remove all queries that have no qrels
|
205 |
queries = {qid: text for qid, text in queries.items() if qid in qrels}
|
206 |
|