Spaces:
Sleeping
Sleeping
Commit
Β·
ba9b1bc
1
Parent(s):
2917974
Update app.py
Browse files
app.py
CHANGED
@@ -20,34 +20,37 @@ def check_lang(lang_acronym):
|
|
20 |
else:
|
21 |
return "False"
|
22 |
|
23 |
-
title = "DReAM
|
24 |
|
25 |
description_main = """
|
26 |
-
|
27 |
-
|
28 |
|
29 |
-
- Sentiment Analysis (SA)
|
30 |
|
31 |
-
- Name Entity Recognition (NER)
|
32 |
|
33 |
-
|
34 |
-
|
|
|
|
|
|
|
35 |
"""
|
36 |
|
37 |
description_L = """
|
38 |
-
XLM-R tuned model,
|
39 |
"""
|
40 |
|
41 |
description_S = """
|
42 |
-
A BERT-base-cased model pre-trained and tuned on English data
|
43 |
"""
|
44 |
|
45 |
description_G = """
|
46 |
-
A
|
47 |
"""
|
48 |
|
49 |
description_GNER = """
|
50 |
-
A
|
51 |
"""
|
52 |
|
53 |
example_main = ["en", "it", "pl"]
|
|
|
20 |
else:
|
21 |
return "False"
|
22 |
|
23 |
+
title = "DReAM"
|
24 |
|
25 |
description_main = """
|
26 |
+
This space allows access to a set of LLMs tuned to perform different tasks over dream reports.
|
27 |
+
Two main tasks are available:
|
28 |
|
29 |
+
- Sentiment Analysis (SA), with two English-only models (one for classification, one for generation) and a large multilingual model for classification.
|
30 |
|
31 |
+
- Name Entity Recognition (NER), with an English-only model that generates the identified characters.
|
32 |
|
33 |
+
All models have been tuned on the Hall and Vand de Castle framework. More details are on the page for each model. For more on the training framework, see the [Bertolini et al., 2023](https://arxiv.org/pdf/2302.14828.pdf) preprint.
|
34 |
+
|
35 |
+
Use the current interface to check if a language is included in the multilingual SA model, using language acronyms (e.g. it for Italian). the tabs above will direct you to each model to query.
|
36 |
+
|
37 |
+
If you want to use the models outside the space, you can easily do so via [DReAMy](https://github.com/lorenzoscottb/DReAMy)
|
38 |
"""
|
39 |
|
40 |
description_L = """
|
41 |
+
This model is an XLM-R tuned model, pre-trained with 94 languages available, and tuned on emotion-annotated DreamBank English data. (see original model [card](https://huggingface.co/xlm-roberta-large) to see which are available)
|
42 |
"""
|
43 |
|
44 |
description_S = """
|
45 |
+
A BERT-base-cased model pre-trained on Eglish-only text and tuned on annotated DreamBank English data..
|
46 |
"""
|
47 |
|
48 |
description_G = """
|
49 |
+
A T5 model tuned to performer text generation, and predict emotion as well as the character experiencing those emotions.
|
50 |
"""
|
51 |
|
52 |
description_GNER = """
|
53 |
+
A T5 model tuned to performer text generation, and predict which characters are present in the report. Note that, in the Hall and Van de Castle, the character lists never includes the dreamer. Hence, if you (willingly or not) enter a report that does not contain another character reference, the model will/should (correctly) produce an empty string. Moreover, it is likely that the produced list of CHAR could be longer than the one produced by the SA model, as not all CHAR might be associated with emotions.
|
54 |
"""
|
55 |
|
56 |
example_main = ["en", "it", "pl"]
|