Update README.md
Browse files
README.md
CHANGED
@@ -10,21 +10,51 @@ tags:
|
|
10 |
- pythorch
|
11 |
- finetuning
|
12 |
---
|
13 |
-
XLM-RoBERTa (base-sized model)
|
14 |
-
XLM-RoBERTa model pre-trained on 2.5TB of filtered CommonCrawl data containing 100 languages. It was introduced in the paper Unsupervised Cross-lingual Representation Learning at Scale by Conneau et al. and first released in this repository.
|
15 |
|
16 |
-
|
|
|
17 |
|
18 |
-
Model description
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
More precisely, it was pretrained with the Masked language modeling (MLM) objective. Taking a sentence, the model randomly masks 15% of the words in the input then run the entire masked sentence through the model and has to predict the masked words. This is different from traditional recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the sentence.
|
24 |
|
25 |
This way, the model learns an inner representation of 100 languages that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard classifier using the features produced by the XLM-RoBERTa model as inputs.
|
26 |
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation, you should look at models like GPT2.
|
|
|
10 |
- pythorch
|
11 |
- finetuning
|
12 |
---
|
13 |
+
# XLM-RoBERTa (base-sized model) Fine-tuned for ticket classification
|
|
|
14 |
|
15 |
+
This model has already been fine-tuned for the classification of IT tickets in English and Italian, you can use XLM-RoBERTa basic (no fine-tuned) at the following link:
|
16 |
+
https://huggingface.co/FacebookAI/xlm-roberta-base
|
17 |
|
18 |
+
## Fine-Tuned Model description
|
19 |
+
|
20 |
+
The fine tuned was done to recognize 18 classes related to the following macros:
|
21 |
+
* Database 3 class
|
22 |
+
* Hardware 6 class
|
23 |
+
* Inquiry/help 2 class
|
24 |
+
* Network 5 class
|
25 |
+
* software 2 class
|
26 |
+
|
27 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/6491c6dc3e081ef54fb4ded4/_Goanoewc1oe9JIrrs0eE.png)
|
28 |
+
|
29 |
+
The data was generated using GPT 3.5-turbo and does not contain any sensitive data.
|
30 |
+
A total of 100 examples were generated for each class, all different from each other and not translated, 50 in Italian and 50 in English.
|
31 |
+
|
32 |
+
The dataset contains a total of 1800 ticket texts, divided into the following numbers:
|
33 |
+
- Training 1440 (80%)
|
34 |
+
- Validation 180 (10%)
|
35 |
+
- Test 180 (10%)
|
36 |
+
|
37 |
+
Fine-tuning is performed according to the following parameters:
|
38 |
+
* Batch size = 16
|
39 |
+
* Epochs = 6
|
40 |
+
* Learning rate = 2e-5
|
41 |
+
* Weight decay = 0.01
|
42 |
|
43 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/6491c6dc3e081ef54fb4ded4/Laqhs1R2c45PwYZFh-4TF.png)
|
44 |
+
|
45 |
+
## Model description
|
46 |
+
|
47 |
+
XLM-RoBERTa model pre-trained on 2.5TB of filtered CommonCrawl data containing 100 languages.
|
48 |
+
It was introduced in the paper Unsupervised Cross-lingual Representation Learning at Scale by Conneau et al. and first released in this repository.
|
49 |
+
|
50 |
+
XLM-RoBERTa is a multilingual version of RoBERTa. It is pre-trained on 2.5TB of filtered CommonCrawl data containing 100 languages.
|
51 |
+
RoBERTa is a transformers model pretrained on a large corpus in a self-supervised fashion.
|
52 |
+
This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts.
|
53 |
|
54 |
More precisely, it was pretrained with the Masked language modeling (MLM) objective. Taking a sentence, the model randomly masks 15% of the words in the input then run the entire masked sentence through the model and has to predict the masked words. This is different from traditional recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the sentence.
|
55 |
|
56 |
This way, the model learns an inner representation of 100 languages that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard classifier using the features produced by the XLM-RoBERTa model as inputs.
|
57 |
|
58 |
+
### Notes:
|
59 |
+
- This model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering, not for text generation.
|
60 |
+
- This model is fine-tuned for classification of ticket
|
|