Blanca commited on
Commit
bc1b026
1 Parent(s): ea44ccf
Files changed (1) hide show
  1. README.md +139 -0
README.md CHANGED
@@ -1,3 +1,142 @@
1
  ---
 
 
 
 
2
  license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+
3
+ language:
4
+ - es
5
+
6
  license: apache-2.0
7
+
8
+ tags:
9
+ - "spanish"
10
+ - "text-classification"
11
+ - "natural-language-understanding"
12
+ - "roberta-base"
13
+
14
+
15
+ metrics:
16
+ - f1
17
+
18
+ model-index:
19
+ - name: Controversy-Prediction
20
+ results:
21
+ - task:
22
+ name: text-classification
23
+ type: text-classification
24
+ dataset:
25
+ name: meneame_controversy
26
+ config: es-ES
27
+ split: test
28
+ metrics:
29
+ - name: F1
30
+ type: f1
31
+ value: 0.8472
32
+
33
+ widget:
34
+
35
+ - Esposas, hijos, nueras y familiares de altos cargos del PP y de la cúpula universitaria llenan la URJC -- Pedro González-Trevijano, rector de la universidad desde 2002 a 2013, ahora magistrado del Tribunal Constitucional, y su sucesor en el cargo, Fernando Suárez han tejido una red que ha dado cobijo laboral a más de un centenar de familiares de vicerrectores, gerentes o catedráticos en los cuatro campus con los que cuenta la universidad localizados en Alcorcón, Móstoles, Fuenlabrada y Vicálvaro.
36
  ---
37
+
38
+ # Spanish RoVERTa-base finetuned for Controversy Prediction
39
+
40
+ ## Table of Contents
41
+ <details>
42
+ <summary>Click to expand</summary>
43
+
44
+ - [Model description](#model-description)
45
+ - [Intended uses and limitations](#intended-use)
46
+ - [How to use](#how-to-use)
47
+ - [Limitations and bias](#limitations-and-bias)
48
+ - [Training](#training)
49
+ - [Training data](#training-data)
50
+ - [Training procedure](#training-procedure)
51
+ - [Evaluation](#evaluation)
52
+ - [Variable and metrics](#variable-and-metrics)
53
+ - [Evaluation results](#evaluation-results)
54
+ - [Additional information](#additional-information)
55
+ - [Author](#author)
56
+ - [Contact information](#contact-information)
57
+ - [Copyright](#copyright)
58
+ - [Licensing information](#licensing-information)
59
+ - [Funding](#funding)
60
+ - [Citing information](#citing-information)
61
+ - [Disclaimer](#disclaimer)
62
+ </details>
63
+
64
+ ## Model description
65
+
66
+ The **Controversy Prediction** model is a RoBERTa-base model trained of a dataset of news from the platform Menéame annotated with controversy tags in a community-based manner.
67
+
68
+
69
+ ## Intended uses and limitations
70
+
71
+ The **Controversy Prediction** model can be used for controversy prediction in news in Spanish.
72
+
73
+ ## How to use
74
+
75
+ Here is how to use this model:
76
+
77
+ ```python
78
+ from transformers import pipeline
79
+ from pprint import pprint
80
+
81
+ nlp = pipeline("text-classification", model="PlanTL-GOB-ES/Controversy-Prediction")
82
+ example = "Esposas, hijos, nueras y familiares de altos cargos del PP y de la cúpula universitaria llenan la URJC -- Pedro González-Trevijano, rector de la universidad desde 2002 a 2013, ahora magistrado del Tribunal Constitucional, y su sucesor en el cargo, Fernando Suárez han tejido una red que ha dado cobijo laboral a más de un centenar de familiares de vicerrectores, gerentes o catedráticos en los cuatro campus con los que cuenta la universidad localizados en Alcorcón, Móstoles, Fuenlabrada y Vicálvaro."
83
+
84
+ output = nlp(example)
85
+ pprint(output)
86
+ ```
87
+
88
+ ## Limitations and bias
89
+ At the time of submission, no measures have been taken to estimate the bias embedded in the model. However, we are well aware that our models may be biased since the corpora have been collected using crawling techniques on multiple web sources. We intend to conduct research in these areas in the future, and if completed, this model card will be updated.
90
+
91
+ ## Training
92
+
93
+ ### Training data
94
+ We use a dataset of news from the [Menéame](www.meneame.net) platform, tagged with controversy labels in a community-based manner. The training set contains 18,270 news, from which 4,950 are controversial. The development set contains 1,058 news, from which 317 are controversial.
95
+
96
+ ### Training procedure
97
+ The model was trained with a batch size of 4 and a learning rate of 1e-5 for 5 epochs. We then selected the best checkpoint using the downstream task metric in the corresponding development set and then evaluated it on the test set.
98
+
99
+ ## Evaluation
100
+
101
+ ### Variable and metrics
102
+
103
+ This model was finetuned maximizing the weighted F1 score.
104
+
105
+ ### Evaluation results
106
+ We evaluated the Controversy-Prediction model on the Menéame test set obtaining a weighted F1 score of 84.72. The test set contains 1,058 news, from which 317 are controversial.
107
+
108
+ ## Additional information
109
+
110
+ ### Author
111
+ Language Technologies Unit at the Barcelona Supercomputing Center (bsc-temu@bsc.es)
112
+
113
+ ### Contact information
114
+ For further information, send an email to <plantl-gob-es@bsc.es>
115
+
116
+ ### Copyright
117
+ Copyright by the Spanish State Secretariat for Digitalization and Artificial Intelligence (SEDIA) (2022)
118
+
119
+ ### Licensing information
120
+ [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0)
121
+
122
+ ### Funding
123
+ This work was funded by the Spanish State Secretariat for Digitalization and Artificial Intelligence (SEDIA) within the framework of the Plan-TL.
124
+
125
+ ### Disclaimer
126
+
127
+ <details>
128
+ <summary>Click to expand</summary>
129
+
130
+ The models published in this repository are intended for a generalist purpose and are available to third parties. These models may have bias and/or any other undesirable distortions.
131
+
132
+ When third parties, deploy or provide systems and/or services to other parties using any of these models (or using systems based on these models) or become users of the models, they should note that it is their responsibility to mitigate the risks arising from their use and, in any event, to comply with applicable regulations, including regulations regarding the use of Artificial Intelligence.
133
+
134
+ In no event shall the owner of the models (SEDIA – State Secretariat for Digitalization and Artificial Intelligence) nor the creator (BSC – Barcelona Supercomputing Center) be liable for any results arising from the use made by third parties of these models.
135
+
136
+
137
+ Los modelos publicados en este repositorio tienen una finalidad generalista y están a disposición de terceros. Estos modelos pueden tener sesgos y/u otro tipo de distorsiones indeseables.
138
+
139
+ Cuando terceros desplieguen o proporcionen sistemas y/o servicios a otras partes usando alguno de estos modelos (o utilizando sistemas basados en estos modelos) o se conviertan en usuarios de los modelos, deben tener en cuenta que es su responsabilidad mitigar los riesgos derivados de su uso y, en todo caso, cumplir con la normativa aplicable, incluyendo la normativa en materia de uso de inteligencia artificial.
140
+
141
+ En ningún caso el propietario de los modelos (SEDIA – Secretaría de Estado de Digitalización e Inteligencia Artificial) ni el creador (BSC – Barcelona Supercomputing Center) serán responsables de los resultados derivados del uso que hagan terceros de estos modelos.
142
+ </details>