Spaces:
Runtime error
Runtime error
fix examples
Browse files
app.py
CHANGED
@@ -13,8 +13,8 @@ links = """<p style='text-align: center'>
|
|
13 |
<a href='https://huggingface.co/kleinay/nominalization-candidate-classifier' target='_blank'>Model Repo at Huggingface Hub</a> |
|
14 |
<a href='https://www.aclweb.org/anthology/2020.coling-main.274/' target='_blank'>QANom Paper</a> |
|
15 |
</p>"""
|
16 |
-
examples = [["The doctor was interested in Luke 's treatment .", True,
|
17 |
-
["the construction of the officer 's building finished right after the beginning of the destruction of the previous construction .", True,
|
18 |
|
19 |
def call(sentence: str, return_all_candidates: bool, threshold: float):
|
20 |
ret = detector([sentence], return_all_candidates, True, threshold)[0]
|
|
|
13 |
<a href='https://huggingface.co/kleinay/nominalization-candidate-classifier' target='_blank'>Model Repo at Huggingface Hub</a> |
|
14 |
<a href='https://www.aclweb.org/anthology/2020.coling-main.274/' target='_blank'>QANom Paper</a> |
|
15 |
</p>"""
|
16 |
+
examples = [["The doctor was interested in Luke 's treatment .", True, 0.6],
|
17 |
+
["the construction of the officer 's building finished right after the beginning of the destruction of the previous construction .", True, 0.7]]
|
18 |
|
19 |
def call(sentence: str, return_all_candidates: bool, threshold: float):
|
20 |
ret = detector([sentence], return_all_candidates, True, threshold)[0]
|