Spaces:
Runtime error
Runtime error
kpriyanshu256
commited on
Commit
•
04b73df
1
Parent(s):
36ac3bd
Debug statements
Browse files
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 |
-
|
|
|
|
|
|
|
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",\
|