angel-poc commited on
Commit
39fd427
1 Parent(s): 6dbc0aa

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +140 -0
README.md CHANGED
@@ -1,3 +1,143 @@
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
+ - "paraphrase"
11
+ - "text-classification"
12
+ - "multi-class-classification"
13
+ - "natural-language-understanding"
14
+ - "intent-classificaiton"
15
+
16
+
17
+ datasets:
18
+ - "AmazonScience/massive"
19
+
20
+ metrics:
21
+ - f1
22
+
23
+ model-index:
24
+ - name: roberta-base-ca-v2-massive
25
+ results:
26
+ - task:
27
+ type: text-classification
28
+ dataset:
29
+ type: AmazonScience/massive
30
+ name: massive
31
+ metrics:
32
+ - name: F1
33
+ type: f1
34
+ value: 0.8732
35
+
36
+ widget:
37
+
38
+ - text: "m'agraden les cançons del serrat"
39
+ - text: "quina hora és"
40
+ - text: "què hi ha de nou a les notícies"
41
+ - text: "quins errors sols fer"
42
+
43
  ---
44
+
45
+ # Catalan BERTa (roberta-large-ca-v2) finetuned for Intent Classification
46
+
47
+ ## Table of Contents
48
+ <details>
49
+ <summary>Click to expand</summary>
50
+
51
+ - [Model description](#model-description)
52
+ - [Intended uses and limitations](#intended-use)
53
+ - [How to use](#how-to-use)
54
+ - [Limitations and bias](#limitations-and-bias)
55
+ - [Training](#training)
56
+ - [Training data](#training-data)
57
+ - [Training procedure](#training-procedure)
58
+ - [Evaluation](#evaluation)
59
+ - [Variable and metrics](#variable-and-metrics)
60
+ - [Evaluation results](#evaluation-results)
61
+ - [Additional information](#additional-information)
62
+ - [Author](#author)
63
+ - [Contact information](#contact-information)
64
+ - [Copyright](#copyright)
65
+ - [Licensing information](#licensing-information)
66
+ - [Funding](#funding)
67
+ - [Citing information](#citing-information)
68
+ - [Disclaimer](#disclaimer)
69
+ </details>
70
+
71
+ ## Model description
72
+
73
+ The **roberta-base-ca-v2-massive** is a Intent Classificaiton model for the Catalan language fine-tuned from the roberta-large-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.
74
+
75
+ ## Intended uses and limitations
76
+
77
+ The **roberta-base-ca-v2-massive** model can be used for intent prediction in plain text sentences. It can be used in combination with a 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.
78
+
79
+ ## How to use
80
+
81
+ Here is how to use this model:
82
+
83
+ ```python
84
+ from transformers import pipeline
85
+ from pprint import pprint
86
+
87
+ nlp = pipeline("text-classification", model="https://huggingface.co/projecte-aina/roberta-base-ca-v2-massive")
88
+ example = "m'agraden les cançons del serrat"
89
+
90
+ paraphrase = nlp(example)
91
+ pprint(paraphrase)
92
+ ```
93
+
94
+ ## Limitations and bias
95
+ 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.
96
+
97
+ ## Training
98
+
99
+ ### Training data
100
+ We used the Catalan split of the [MASSIVE](https://huggingface.co/datasets/AmazonScience/massive) dataset for training and evaluation.
101
+
102
+ ### Training procedure
103
+ 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.
104
+
105
+ ## Evaluation
106
+
107
+ ### Variable and metrics
108
+
109
+ This model was finetuned maximizing the weighted F1 score.
110
+
111
+ ### Evaluation results
112
+ We evaluated the _roberta-base-ca-v2-massive_ on the MASSIVE test set obtaining a weighted F1 score of 87.32.
113
+
114
+ ## Additional information
115
+
116
+ ### Author
117
+ Text Mining Unit (TeMU) at the Barcelona Supercomputing Center (bsc-temu@bsc.es)
118
+
119
+ ### Contact information
120
+ For further information, send an email to aina@bsc.es
121
+
122
+ ### Copyright
123
+ Copyright (c) 2022 Text Mining Unit at Barcelona Supercomputing Center
124
+
125
+ ### Licensing information
126
+ [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0)
127
+
128
+ ### Funding
129
+ 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).
130
+
131
+ ### Citation Information
132
+ NA
133
+
134
+ ### Disclaimer
135
+
136
+ <details>
137
+ <summary>Click to expand</summary>
138
+
139
+ 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.
140
+
141
+ 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.
142
+
143
+ 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.