muxitox commited on
Commit
733d31a
2 Parent(s): 05d4aed 25ca543

Merge branch 'main' of https://huggingface.co/projecte-aina/roberta-base-ca-v2-massive into main

Browse files
Files changed (1) hide show
  1. README.md +142 -0
README.md CHANGED
@@ -1,3 +1,145 @@
1
  ---
 
 
 
 
2
  license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+
3
+ language:
4
+ - ca
5
+
6
  license: apache-2.0
7
+
8
+ tags:
9
+ - "catalan"
10
+ - "text-classification"
11
+ - "multi-class-classification"
12
+ - "natural-language-understanding"
13
+ - "intent-classificaiton"
14
+
15
+
16
+ datasets:
17
+ - "AmazonScience/massive"
18
+
19
+ metrics:
20
+ - f1
21
+
22
+ model-index:
23
+ - name: roberta-base-ca-v2-massive
24
+ results:
25
+ - task:
26
+ name: text-classification
27
+ type: text-classification
28
+ dataset:
29
+ name: MASSIVE
30
+ type: AmazonScience/massive
31
+ config: ca-ES
32
+ split: test
33
+ metrics:
34
+ - name: F1
35
+ type: f1
36
+ value: 0.8732
37
+
38
+ widget:
39
+
40
+ - text: "m'agraden les cançons del serrat"
41
+ - text: "quina hora és"
42
+ - text: "què hi ha de nou a les notícies"
43
+ - text: "quins errors sols fer"
44
+
45
  ---
46
+
47
+ # Catalan BERTa (roberta-base-ca-v2) finetuned for Intent Classification
48
+
49
+ ## Table of Contents
50
+ <details>
51
+ <summary>Click to expand</summary>
52
+
53
+ - [Model description](#model-description)
54
+ - [Intended uses and limitations](#intended-use)
55
+ - [How to use](#how-to-use)
56
+ - [Limitations and bias](#limitations-and-bias)
57
+ - [Training](#training)
58
+ - [Training data](#training-data)
59
+ - [Training procedure](#training-procedure)
60
+ - [Evaluation](#evaluation)
61
+ - [Variable and metrics](#variable-and-metrics)
62
+ - [Evaluation results](#evaluation-results)
63
+ - [Additional information](#additional-information)
64
+ - [Author](#author)
65
+ - [Contact information](#contact-information)
66
+ - [Copyright](#copyright)
67
+ - [Licensing information](#licensing-information)
68
+ - [Funding](#funding)
69
+ - [Citing information](#citing-information)
70
+ - [Disclaimer](#disclaimer)
71
+ </details>
72
+
73
+ ## Model description
74
+
75
+ The **roberta-base-ca-v2-massive** is a Intent Classification model for the Catalan language fine-tuned from the roberta-base-ca-v2 model, a [RoBERTa](https://arxiv.org/abs/1907.11692) base model pre-trained on a medium-size corpus collected from publicly available corpora and crawlers.
76
+
77
+ ## Intended uses and limitations
78
+
79
+ The **roberta-base-ca-v2-massive** model can be used for intent prediction in plain text sentences. It can be used in combination with an Automatic Speech Recognition model in order to implement a Voice Assistant. The model is limited by its training dataset and may not generalize well for all use cases.
80
+
81
+ ## How to use
82
+
83
+ Here is how to use this model:
84
+
85
+ ```python
86
+ from transformers import pipeline
87
+ from pprint import pprint
88
+
89
+ nlp = pipeline("text-classification", model="projecte-aina/roberta-base-ca-v2-massive")
90
+ example = "m'agraden les cançons del serrat"
91
+
92
+ intent = nlp(example)
93
+ pprint(intent)
94
+ ```
95
+
96
+ ## Limitations and bias
97
+ 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.
98
+
99
+ ## Training
100
+
101
+ ### Training data
102
+ We used the Catalan split of the [MASSIVE](https://huggingface.co/datasets/AmazonScience/massive) dataset for training and evaluation.
103
+
104
+ ### Training procedure
105
+ The model was trained with a batch size of 16 and a learning rate of 5e-5 for 20 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.
106
+
107
+ ## Evaluation
108
+
109
+ ### Variable and metrics
110
+
111
+ This model was finetuned maximizing the weighted F1 score.
112
+
113
+ ### Evaluation results
114
+ We evaluated the _roberta-base-ca-v2-massive_ on the MASSIVE test set obtaining a weighted F1 score of 87.32.
115
+
116
+ ## Additional information
117
+
118
+ ### Author
119
+ Text Mining Unit (TeMU) at the Barcelona Supercomputing Center (bsc-temu@bsc.es)
120
+
121
+ ### Contact information
122
+ For further information, send an email to aina@bsc.es
123
+
124
+ ### Copyright
125
+ Copyright (c) 2022 Text Mining Unit at Barcelona Supercomputing Center
126
+
127
+ ### Licensing information
128
+ [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0)
129
+
130
+ ### Funding
131
+ This work was funded by the [Departament de la Vicepresidència i de Polítiques Digitals i Territori de la Generalitat de Catalunya](https://politiquesdigitals.gencat.cat/ca/inici/index.html#googtrans(ca|en) within the framework of [Projecte AINA](https://politiquesdigitals.gencat.cat/ca/economia/catalonia-ai/aina).
132
+
133
+ ### Citation Information
134
+ NA
135
+
136
+ ### Disclaimer
137
+
138
+ <details>
139
+ <summary>Click to expand</summary>
140
+
141
+ 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.
142
+
143
+ 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.
144
+
145
+ In no event shall the owner and creator of the models (BSC – Barcelona Supercomputing Center) be liable for any results arising from the use made by third parties of these models.