kpriyanshu256 commited on
Commit
04b73df
1 Parent(s): 36ac3bd

Debug statements

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -151,7 +151,10 @@ def disambiguate(text, acronym):
151
  start_idx = np.argmax(start_prob[0,:])
152
  end_idx = np.argmax(end_prob[0,:])
153
 
154
- _, exp = evaluate_jaccard(text, expansion[0], acronym[0], offsets[0], start_idx, end_idx)
 
 
 
155
  return exp
156
 
157
  text = gr.inputs.Textbox(lines=5, label="Context",\
 
151
  start_idx = np.argmax(start_prob[0,:])
152
  end_idx = np.argmax(end_prob[0,:])
153
 
154
+ print(start_idx, end_idx)
155
+ print(offsets)
156
+
157
+ _, exp = evaluate_jaccard(text, expansion, acronym, offsets, start_idx, end_idx)
158
  return exp
159
 
160
  text = gr.inputs.Textbox(lines=5, label="Context",\