orionweller commited on
Commit
06fdcd6
1 Parent(s): 17eb403

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -88,7 +88,7 @@ with st.sidebar:
88
 
89
  data = []
90
  for key, value in qrels.items():
91
- data.append({"relevant_docs": len(value)})
92
  relevant_df = pd.DataFrame(data)
93
 
94
  z = st.header("Analysis Options")
@@ -140,6 +140,7 @@ if corpus is not None and queries is not None and qrels is not None:
140
  # now show the number with relevant docs less than `n_relevant_docs`
141
  st.header("Relevant Docs Less Than {}:".format(n_relevant_docs))
142
  st.subheader(f'{relevant_df[relevant_df["relevant_docs"] < n_relevant_docs].shape[0]} Queries')
 
143
 
144
 
145
  with col2:
 
88
 
89
  data = []
90
  for key, value in qrels.items():
91
+ data.append({"relevant_docs": len(value), "qid": key})
92
  relevant_df = pd.DataFrame(data)
93
 
94
  z = st.header("Analysis Options")
 
140
  # now show the number with relevant docs less than `n_relevant_docs`
141
  st.header("Relevant Docs Less Than {}:".format(n_relevant_docs))
142
  st.subheader(f'{relevant_df[relevant_df["relevant_docs"] < n_relevant_docs].shape[0]} Queries')
143
+ st.text(relevant_df[relevant_df["relevant_docs"] < n_relevant_docs].qid.tolist())
144
 
145
 
146
  with col2: