kleinay commited on
Commit
4e56234
1 Parent(s): 2093931

fix examples

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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, True, 0.6],
17
- ["the construction of the officer 's building finished right after the beginning of the destruction of the previous construction .", True, 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]
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]