Spaces:
Runtime error
Runtime error
Commit
·
bd294cd
1
Parent(s):
4aac2a1
Update app.py
Browse files
app.py
CHANGED
@@ -22,12 +22,10 @@ def test_input(words):
|
|
22 |
return word_dict
|
23 |
|
24 |
|
25 |
-
title = "
|
26 |
|
27 |
description = """
|
28 |
-
Did you know that logically speaking **A small cat is not a small animal**, and that **A fake smile is not a smile**? Learn more by testing our BERT model tuned to perform phrase-level adjective-noun entailment
|
29 |
-
|
30 |
-
Please note that the scope of the model is not to run lexical entailment or hypernym detection (e.g., *"A dog is an animal*"), but to perform a very specific subset of phrase-level entailment, based on adjective-nouns phrases. The type of question you can ask the model are limited, and should have one of three forms:
|
31 |
|
32 |
- An *Adjective-Noun* is a *Noun* (e.g. A red car is a car)
|
33 |
|
@@ -35,7 +33,7 @@ Please note that the scope of the model is not to run lexical entailment or hype
|
|
35 |
|
36 |
- An *Adjective-Noun* is a *Adjective-Hypernym(Noun)* (e.g. A red car is a red vehicle)
|
37 |
|
38 |
-
|
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!"""
|
|
|
22 |
return word_dict
|
23 |
|
24 |
|
25 |
+
title = "Phrase-Entailment Detection with BERT"
|
26 |
|
27 |
description = """
|
28 |
+
Did you know that logically speaking **A small cat is not a small animal**, and that **A fake smile is not a smile**? Learn more by testing our BERT model tuned to perform phrase-level adjective-noun entailment. The proposed model was tuned with a section of the PLANE (**P**hrase-**L**evel **A**djective-**N**oun **E**ntailment) dataset, introduced in COLING 2022 [Bertolini et al.,](https://aclanthology.org/2022.coling-1.359/). Please note that the scope of the model is not to run lexical-entailment or hypernym detection (e.g., *"A dog is an animal*"), but to perform a very specific subset of phrase-level compositional entailment over adjective-noun phrases. The type of question you can ask the model are limited, and should have one of three forms:
|
|
|
|
|
29 |
|
30 |
- An *Adjective-Noun* is a *Noun* (e.g. A red car is a car)
|
31 |
|
|
|
33 |
|
34 |
- An *Adjective-Noun* is a *Adjective-Hypernym(Noun)* (e.g. A red car is a red vehicle)
|
35 |
|
36 |
+
As in the examples above, the **adjective should be the same for both phrases**, and the **Hypernym(Noun) should be a true hypernym of the selected noun**.
|
37 |
|
38 |
The current model achieves an accuracy of 90% on out-of-distribution evaluation.
|
39 |
Use the next page to check if your test-items (i.e. adjective, noun and hypernyms) were part of the training data!"""
|