pcuenq HF staff commited on
Commit
54ec6d8
1 Parent(s): 0f52320

Model card.

Browse files
Files changed (1) hide show
  1. README.md +57 -0
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: es
3
+ license: cc-by-4.0
4
+ tags:
5
+ - spanish
6
+ - roberta
7
+ - bertin
8
+ pipeline_tag: text-classification
9
+ widget:
10
+ - text: La cueva de Zaratustra en el Pretil de los Consejos. Rimeros de libros hacen escombro y cubren las paredes. Empapelan los cuatro vidrios de una puerta cuatro cromos espeluznantes de un novelón por entregas. En la cueva hacen tertulia el gato, el can, el loro y el librero. Zaratustra, abichado y giboso -la cara de tocino rancio y la bufanda de verde serpiente- promueve con su caracterización de fantoche, una aguda y dolorosa disonancia muy emotiva y muy moderna. Encogido en el roto pelote de su silla enana, con los pies entrapados y cepones en la tarima del brasero, guarda la tienda. Un ratón saca el hocico intrigante por un agujero.
11
+ ---
12
+
13
+ # Readability ES Sentences for two classes
14
+
15
+ Model based on the Roberta architecture finetuned on [BERTIN](https://huggingface.co/bertin-project/bertin-roberta-base-spanish) for readability assessment of Spanish texts.
16
+
17
+ ## Description and performance
18
+
19
+ This version of the model was trained on a mix of datasets, using paragraph-level granularity when possible. The model performs binary classification among the following classes:
20
+ - Simple.
21
+ - Complex.
22
+
23
+ It achieves a F1 macro average score of 0.8891, measured on the validation set.
24
+
25
+ ## Model variants
26
+
27
+ - [`readability-es-sentences`](https://huggingface.co/hackathon-pln-es/readability-es-sentences). Two classes, sentence-based dataset.
28
+ - `readability-es-paragraphs` (this model). Two classes, paragraph-based dataset.
29
+ - [`readability-es-3class-sentences`](https://huggingface.co/hackathon-pln-es/readability-es-3class-sentences). Three classes, sentence-based dataset.
30
+ - [`readability-es-3class-paragraphs`](https://huggingface.co/hackathon-pln-es/readability-es-3class-paragraphs). Three classes, paragraph-based dataset.
31
+
32
+ ## Datasets
33
+
34
+ - [`readability-es-sentences`](https://huggingface.co/datasets/hackathon-pln-es/readability-es-sentences), composed of:
35
+ * coh-metrix-esp corpus.
36
+ * Various text resources scraped from websites.
37
+ - Other non-public datasets: newsela-es, simplext.
38
+
39
+ ## Training details
40
+
41
+ Please, refer to [this training run](https://wandb.ai/readability-es/readability-es/runs/3rgvwps0/overview?workspace=user-pcuenq) for full details on hyperparameters and training regime.
42
+
43
+ ## Biases and Limitations
44
+
45
+ - Due to the scarcity of data and the lack of a reliable gold test set, performance metrics are reported on the validation set.
46
+ - One of the datasets involved is the Spanish version of newsela, which is frequently used as a reference. However, it was created by translating previous datasets, and therefore it may contain somewhat unnatural phrases.
47
+ - Some of the datasets used cannot be publicly disseminated, making it more difficult to assess the existence of biases or mistakes.
48
+ - Language might be biased towards the Spanish dialect spoken in Spain. Other regional variants might be sub-represented.
49
+ - No effort has been performed to alleviate the shortcomings and biases described in the [original implementation of BERTIN](https://huggingface.co/bertin-project/bertin-roberta-base-spanish#bias-examples-spanish).
50
+
51
+ ## Authors
52
+
53
+ - [Laura Vásquez-Rodríguez](https://lmvasque.github.io/)
54
+ - [Pedro Cuenca](https://twitter.com/pcuenq)
55
+ - [Sergio Morales](https://www.fireblend.com/)
56
+ - [Fernando Alva-Manchego](https://feralvam.github.io/)
57
+