gonzalez-agirre
commited on
Commit
•
2902be9
1
Parent(s):
369efc7
Update README.md
Browse files
README.md
CHANGED
@@ -7,15 +7,21 @@ language:
|
|
7 |
license: apache-2.0
|
8 |
|
9 |
tags:
|
|
|
10 |
- "national library of spain"
|
|
|
11 |
- "spanish"
|
|
|
12 |
- "bne"
|
|
|
13 |
- "roberta-large-bne"
|
14 |
|
15 |
datasets:
|
|
|
16 |
- "bne"
|
17 |
|
18 |
metrics:
|
|
|
19 |
- "ppl"
|
20 |
|
21 |
widget:
|
@@ -25,7 +31,7 @@ widget:
|
|
25 |
- text: "Hay base legal dentro del marco <mask> actual."
|
26 |
|
27 |
---
|
28 |
-
# RoBERTa large trained with data from National Library of Spain (BNE)
|
29 |
|
30 |
## Table of Contents
|
31 |
<details>
|
@@ -58,13 +64,15 @@ widget:
|
|
58 |
- **Data:** BNE
|
59 |
|
60 |
## Model description
|
61 |
-
|
62 |
|
63 |
## Intended uses and limitations
|
|
|
|
|
64 |
You can use the raw model for fill mask or fine-tune it to a downstream task.
|
65 |
|
66 |
## How to use
|
67 |
-
|
68 |
|
69 |
```python
|
70 |
>>> from transformers import pipeline
|
@@ -115,7 +123,7 @@ At the time of submission, no measures have been taken to estimate the bias and
|
|
115 |
|
116 |
The [National Library of Spain (Biblioteca Nacional de España)](http://www.bne.es/en/Inicio/index.html) crawls all .es domains once a year. The training corpus consists of 59TB of WARC files from these crawls, carried out from 2009 to 2019.
|
117 |
|
118 |
-
To obtain a high-quality training corpus, the corpus has been preprocessed with a pipeline of operations, including among
|
119 |
|
120 |
Some of the statistics of the corpus:
|
121 |
|
@@ -124,20 +132,14 @@ Some of the statistics of the corpus:
|
|
124 |
| BNE | 201,080,084 | 135,733,450,668 | 570GB |
|
125 |
|
126 |
### Training procedure
|
127 |
-
The
|
128 |
-
|
129 |
-
- RoBERTa-l: 24-layer, 1024-hidden, 16-heads, 355M parameters.
|
130 |
-
|
131 |
-
The pretraining objective used for this architecture is masked language modeling without next sentence prediction.
|
132 |
-
|
133 |
-
The training corpus has been tokenized using a byte version of Byte-Pair Encoding (BPE) used in the original [RoBERTA](https://arxiv.org/abs/1907.11692) model with a vocabulary size of 50,262 tokens.
|
134 |
|
135 |
-
The
|
136 |
|
137 |
## Evaluation
|
138 |
|
139 |
When fine-tuned on downstream tasks, this model achieves the following results:
|
140 |
-
| Dataset | Metric | [**RoBERTa-
|
141 |
|--------------|----------|------------|
|
142 |
| MLDoc | F1 | 0.9702 |
|
143 |
| CoNLL-NERC | F1 | 0.8823 |
|
@@ -160,13 +162,13 @@ Text Mining Unit (TeMU) at the Barcelona Supercomputing Center (bsc-temu@bsc.es)
|
|
160 |
For further information, send an email to <plantl-gob-es@bsc.es>
|
161 |
|
162 |
### Copyright
|
163 |
-
Copyright by the Spanish State Secretariat for Digitalization and Artificial Intelligence (SEDIA) (2022)
|
164 |
|
165 |
### Licensing information
|
166 |
This work is licensed under a [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0)
|
167 |
|
168 |
### Funding
|
169 |
-
This work was funded by the Spanish State Secretariat for Digitalization and Artificial Intelligence (SEDIA) within the framework of the Plan-TL.
|
170 |
|
171 |
### Citation information
|
172 |
|
|
|
7 |
license: apache-2.0
|
8 |
|
9 |
tags:
|
10 |
+
|
11 |
- "national library of spain"
|
12 |
+
|
13 |
- "spanish"
|
14 |
+
|
15 |
- "bne"
|
16 |
+
|
17 |
- "roberta-large-bne"
|
18 |
|
19 |
datasets:
|
20 |
+
|
21 |
- "bne"
|
22 |
|
23 |
metrics:
|
24 |
+
|
25 |
- "ppl"
|
26 |
|
27 |
widget:
|
|
|
31 |
- text: "Hay base legal dentro del marco <mask> actual."
|
32 |
|
33 |
---
|
34 |
+
# RoBERTa large trained with data from the National Library of Spain (BNE)
|
35 |
|
36 |
## Table of Contents
|
37 |
<details>
|
|
|
64 |
- **Data:** BNE
|
65 |
|
66 |
## Model description
|
67 |
+
The **roberta-large-bne** is a transformer-based masked language model for the Spanish language. It is based on the [RoBERTa](https://arxiv.org/abs/1907.11692) large model and has been pre-trained using the largest Spanish corpus known to date, with a total of 570GB of clean and deduplicated text processed for this work, compiled from the web crawlings performed by the [National Library of Spain (Biblioteca Nacional de España)](http://www.bne.es/en/Inicio/index.html) from 2009 to 2019.
|
68 |
|
69 |
## Intended uses and limitations
|
70 |
+
The **roberta-large-bne** model is ready-to-use only for masked language modeling to perform the Fill Mask task (try the inference API or read the next section).
|
71 |
+
However, it is intended to be fine-tuned on non-generative downstream tasks such as Question Answering, Text Classification, or Named Entity Recognition.
|
72 |
You can use the raw model for fill mask or fine-tune it to a downstream task.
|
73 |
|
74 |
## How to use
|
75 |
+
Here is how to use this model:
|
76 |
|
77 |
```python
|
78 |
>>> from transformers import pipeline
|
|
|
123 |
|
124 |
The [National Library of Spain (Biblioteca Nacional de España)](http://www.bne.es/en/Inicio/index.html) crawls all .es domains once a year. The training corpus consists of 59TB of WARC files from these crawls, carried out from 2009 to 2019.
|
125 |
|
126 |
+
To obtain a high-quality training corpus, the corpus has been preprocessed with a pipeline of operations, including among others, sentence splitting, language detection, filtering of bad-formed sentences, and deduplication of repetitive contents. During the process, document boundaries are kept. This resulted in 2TB of Spanish clean corpus. Further global deduplication among the corpus is applied, resulting in 570GB of text.
|
127 |
|
128 |
Some of the statistics of the corpus:
|
129 |
|
|
|
132 |
| BNE | 201,080,084 | 135,733,450,668 | 570GB |
|
133 |
|
134 |
### Training procedure
|
135 |
+
The training corpus has been tokenized using a byte version of Byte-Pair Encoding (BPE) used in the original [RoBERTA](https://arxiv.org/abs/1907.11692) model with a vocabulary size of 50,262 tokens.
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
|
137 |
+
The **roberta-large-bne** pre-training consists of a masked language model training, that follows the approach employed for the RoBERTa large. The training lasted a total of 96 hours with 32 computing nodes each one with 4 NVIDIA V100 GPUs of 16GB VRAM.
|
138 |
|
139 |
## Evaluation
|
140 |
|
141 |
When fine-tuned on downstream tasks, this model achieves the following results:
|
142 |
+
| Dataset | Metric | [**RoBERTa-large**](https://huggingface.co/PlanTL-GOB-ES/roberta-large-bne) |
|
143 |
|--------------|----------|------------|
|
144 |
| MLDoc | F1 | 0.9702 |
|
145 |
| CoNLL-NERC | F1 | 0.8823 |
|
|
|
162 |
For further information, send an email to <plantl-gob-es@bsc.es>
|
163 |
|
164 |
### Copyright
|
165 |
+
Copyright by the [Spanish State Secretariat for Digitalization and Artificial Intelligence (SEDIA)](https://portal.mineco.gob.es/en-us/digitalizacionIA/Pages/sedia.aspx) (2022)
|
166 |
|
167 |
### Licensing information
|
168 |
This work is licensed under a [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0)
|
169 |
|
170 |
### Funding
|
171 |
+
This work was funded by the [Spanish State Secretariat for Digitalization and Artificial Intelligence (SEDIA)](https://portal.mineco.gob.es/en-us/digitalizacionIA/Pages/sedia.aspx) within the framework of the Plan-TL.
|
172 |
|
173 |
### Citation information
|
174 |
|