Spaces:
Runtime error
Runtime error
lorenzoscottb
commited on
Commit
•
4e90045
1
Parent(s):
7603b72
Update app.py
Browse files
app.py
CHANGED
@@ -37,8 +37,8 @@ Please note that the scope of the model is not to run lexical entailment or hype
|
|
37 |
|
38 |
Please note that, as in the examples above, the adjective should be the same for both phrases, and that the Hypernym(Noun) shoul be a true hypernym of the selected noun
|
39 |
|
40 |
-
The current model achieves an accuracy of 90% on out-of-distribution evaluation
|
41 |
-
|
42 |
|
43 |
examples = [["A red car is a vehicle"], ["A fake smile is a smile"], ["A small cat is a small animal"]]
|
44 |
examples_w = [["red,car,vehicle"], ["fake,smile"], ["small,cat,animal"]]
|
@@ -47,7 +47,7 @@ examples_w = [["red,car,vehicle"], ["fake,smile"], ["small,cat,animal"]]
|
|
47 |
interface_words = gr.Interface(
|
48 |
fn=test_input,
|
49 |
inputs=gr.Textbox(label="Input:word_1,word2,...,word_n"),
|
50 |
-
outputs=gr.outputs.Label(label="
|
51 |
examples=examples_w,
|
52 |
)
|
53 |
# interface_words.launch()
|
|
|
37 |
|
38 |
Please note that, as in the examples above, the adjective should be the same for both phrases, and that the Hypernym(Noun) shoul be a true hypernym of the selected noun
|
39 |
|
40 |
+
The current model achieves an accuracy of 90% on out-of-distribution evaluation.
|
41 |
+
Use the next page to check if your test-items (i.e. adjective, noun and hypernyms) were part of the training data!"""
|
42 |
|
43 |
examples = [["A red car is a vehicle"], ["A fake smile is a smile"], ["A small cat is a small animal"]]
|
44 |
examples_w = [["red,car,vehicle"], ["fake,smile"], ["small,cat,animal"]]
|
|
|
47 |
interface_words = gr.Interface(
|
48 |
fn=test_input,
|
49 |
inputs=gr.Textbox(label="Input:word_1,word2,...,word_n"),
|
50 |
+
outputs=gr.outputs.Label(label="In training-distribution?"),
|
51 |
examples=examples_w,
|
52 |
)
|
53 |
# interface_words.launch()
|