Spaces:
Sleeping
Sleeping
Commit
Β·
9110242
1
Parent(s):
568df4a
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ Three main tasks are available:
|
|
| 18 |
|
| 19 |
- Name Entity Recognition (NER), with an English-only model that generates the identified characters.
|
| 20 |
|
| 21 |
-
- Sentiment Analysis (SA), with
|
| 22 |
|
| 23 |
- 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.
|
| 24 |
|
|
@@ -103,8 +103,8 @@ interface_model_RE = gr.Interface.load(
|
|
| 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(
|
| 110 |
name="huggingface/DReAMy-lib/t5-base-DreamBank-Generation-NER-Char",
|
|
|
|
| 18 |
|
| 19 |
- Name Entity Recognition (NER), with an English-only model that generates the identified characters.
|
| 20 |
|
| 21 |
+
- Sentiment Analysis (SA), with two English-only models (one for multi-label classification, and one for generation) and a large multilingual model for multi-label classification.
|
| 22 |
|
| 23 |
- 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.
|
| 24 |
|
|
|
|
| 103 |
description=description_R,
|
| 104 |
examples=examples_re,
|
| 105 |
title="RE Generation",
|
|
|
|
| 106 |
)
|
| 107 |
+
interface_model_RE.model.max_length = 128
|
| 108 |
|
| 109 |
interface_model_NER = gr.Interface.load(
|
| 110 |
name="huggingface/DReAMy-lib/t5-base-DreamBank-Generation-NER-Char",
|