Spaces:
Sleeping
Sleeping
lorenzoscottb
commited on
Commit
β’
70370ca
1
Parent(s):
551273a
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ Two main tasks are available:
|
|
18 |
|
19 |
- Sentiment Analysis (SA), with two English-only models (one for classification, one for generation) and a large multilingual model for classification.
|
20 |
|
21 |
-
- Relation Extraction (RE), with an English-only model that identifies relevant characters and existing relations between them following the Activity feature of the
|
22 |
|
23 |
- Name Entity Recognition (NER), with an English-only model that generates the identified characters.
|
24 |
|
@@ -34,7 +34,7 @@ This model is an XLM-R tuned model, pre-trained with 94 languages available, and
|
|
34 |
"""
|
35 |
|
36 |
description_S = """
|
37 |
-
A BERT-base-cased model pre-trained on
|
38 |
"""
|
39 |
|
40 |
description_G = """
|
@@ -63,7 +63,9 @@ examples_g = [
|
|
63 |
]
|
64 |
|
65 |
examples_re = [
|
66 |
-
|
|
|
|
|
67 |
]
|
68 |
|
69 |
interface_words = gr.Interface(
|
@@ -101,7 +103,7 @@ interface_model_RE = gr.Interface.load(
|
|
101 |
description=description_R,
|
102 |
examples=examples_re,
|
103 |
title="RE Generation",
|
104 |
-
|
105 |
)
|
106 |
|
107 |
interface_model_NER = gr.Interface.load(
|
|
|
18 |
|
19 |
- Sentiment Analysis (SA), with two English-only models (one for classification, one for generation) and a large multilingual model for classification.
|
20 |
|
21 |
+
- Relation Extraction (RE), with an English-only model that identifies relevant characters and existing relations between them following the Activity feature of the Hall and Van de Castle framework.
|
22 |
|
23 |
- Name Entity Recognition (NER), with an English-only model that generates the identified characters.
|
24 |
|
|
|
34 |
"""
|
35 |
|
36 |
description_S = """
|
37 |
+
A BERT-base-cased model pre-trained on English-only text and tuned on annotated DreamBank English data.
|
38 |
"""
|
39 |
|
40 |
description_G = """
|
|
|
63 |
]
|
64 |
|
65 |
examples_re = [
|
66 |
+
["I was skating on the outdoor ice pond that used to be across the street from my house. I was not alone, but I did not recognize any of the other people who were skating around. I went through my whole repertoire of jumps, spires, and steps-some of which I can do and some of which I'm not yet sure of. They were all executed flawlessly-some I repeated, some I did only once. I seemed to know that if I went into competition, I would be sure of coming in third because there were only three contestants. Up to that time I hadn't considered it because I hadn't thought I was good enough, but now since everything was going so well, I decided to enter."],
|
67 |
+
["I was talking on the telephone to the father of an old friend of mine (boy, 21 years old). We were discussing the party the Saturday night before to which I had invited his son as a guest. I asked him if his son had a good time at the party. He told me not to tell his son that he had told me, but that he had had a good time, except he was a little surprised that I had acted the way I did."],
|
68 |
+
["I was walking alone with my dog in a forest."]
|
69 |
]
|
70 |
|
71 |
interface_words = gr.Interface(
|
|
|
103 |
description=description_R,
|
104 |
examples=examples_re,
|
105 |
title="RE Generation",
|
106 |
+
max_length=128,
|
107 |
)
|
108 |
|
109 |
interface_model_NER = gr.Interface.load(
|