Spaces:
Runtime error
Runtime error
typos
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from qasrl_model_pipeline import QASRL_Pipeline
|
|
3 |
model = "kleinay/qanom-seq2seq-model-baseline"
|
4 |
pipeline = QASRL_Pipeline(model)
|
5 |
|
6 |
-
description = f"""This is a demo of the '{model}' model, which fine-tuned a Seq2Seq pretrained model on the QANom task"""
|
7 |
title="QANom Parser Demo"
|
8 |
examples = [["The doctor was interested in Luke 's <predicate> treatment .", True, "treat"],
|
9 |
["The Veterinary student was interested in Luke 's <predicate> treatment of sea animals .", True, "treat"]]
|
@@ -17,7 +17,7 @@ links = """<p style='text-align: center'>
|
|
17 |
def call(sentence, is_nominal, verb_form):
|
18 |
predicate_marker="<p>"
|
19 |
if predicate_marker not in sentence:
|
20 |
-
raise ValueError("You must highlight one word of the sentence as a predicate using
|
21 |
|
22 |
if not verb_form:
|
23 |
if is_nominal:
|
|
|
3 |
model = "kleinay/qanom-seq2seq-model-baseline"
|
4 |
pipeline = QASRL_Pipeline(model)
|
5 |
|
6 |
+
description = f"""This is a demo of the '{model}' model, which fine-tuned a Seq2Seq pretrained model on the QANom task."""
|
7 |
title="QANom Parser Demo"
|
8 |
examples = [["The doctor was interested in Luke 's <predicate> treatment .", True, "treat"],
|
9 |
["The Veterinary student was interested in Luke 's <predicate> treatment of sea animals .", True, "treat"]]
|
|
|
17 |
def call(sentence, is_nominal, verb_form):
|
18 |
predicate_marker="<p>"
|
19 |
if predicate_marker not in sentence:
|
20 |
+
raise ValueError("You must highlight one word of the sentence as a predicate using preceding '<p>'.")
|
21 |
|
22 |
if not verb_form:
|
23 |
if is_nominal:
|