Commit
·
ea15bf8
1
Parent(s):
be19dd6
Update README.md
Browse files
README.md
CHANGED
|
@@ -6,7 +6,7 @@ language:
|
|
| 6 |
- pt
|
| 7 |
|
| 8 |
pipeline_tag: text-classification
|
| 9 |
-
base_model: neuralmind/bert-
|
| 10 |
widget:
|
| 11 |
- text: 'Bom dia, flor do dia!!'
|
| 12 |
|
|
@@ -16,24 +16,40 @@ model-index:
|
|
| 16 |
- task:
|
| 17 |
type: text-classfication
|
| 18 |
dataset:
|
| 19 |
-
name:
|
| 20 |
type: Silly-Machine/TuPyE-Dataset
|
| 21 |
metrics:
|
| 22 |
-
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
---
|
| 29 |
|
| 30 |
## Introduction
|
| 31 |
|
| 32 |
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
| 34 |
For more details or specific inquiries, please refer to the [BERTimbau repository](https://github.com/neuralmind-ai/portuguese-bert/).
|
| 35 |
|
| 36 |
-
The efficacy of Language Models can exhibit notable variations when confronted with a shift in domain between training and test data.
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
## Available models
|
| 39 |
|
|
@@ -44,7 +60,7 @@ The efficacy of Language Models can exhibit notable variations when confronted w
|
|
| 44 |
| `Silly-Machine/TuPy-Bert-Base-Multilabel` | BERT-Base | 12 | 109M |
|
| 45 |
| `Silly-Machine/TuPy-Bert-Large-Multilabel` | BERT-Large | 24 | 334M |
|
| 46 |
|
| 47 |
-
## Example usage
|
| 48 |
|
| 49 |
```python
|
| 50 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer, AutoConfig
|
|
@@ -76,5 +92,4 @@ def classify_hate_speech(model_name, text):
|
|
| 76 |
model_name = "Silly-Machine/TuPy-Bert-Large-Multilabel"
|
| 77 |
text = "Bom dia, flor do dia!!"
|
| 78 |
classify_hate_speech(model_name, text)
|
| 79 |
-
|
| 80 |
```
|
|
|
|
| 6 |
- pt
|
| 7 |
|
| 8 |
pipeline_tag: text-classification
|
| 9 |
+
base_model: neuralmind/bert-large-portuguese-cased
|
| 10 |
widget:
|
| 11 |
- text: 'Bom dia, flor do dia!!'
|
| 12 |
|
|
|
|
| 16 |
- task:
|
| 17 |
type: text-classfication
|
| 18 |
dataset:
|
| 19 |
+
name: TuPyE-Dataset
|
| 20 |
type: Silly-Machine/TuPyE-Dataset
|
| 21 |
metrics:
|
| 22 |
+
- type: accuracy
|
| 23 |
+
value: 0.907
|
| 24 |
+
name: Accuracy
|
| 25 |
+
verified: true
|
| 26 |
+
- type: f1
|
| 27 |
+
value: 0.903
|
| 28 |
+
name: F1-score
|
| 29 |
+
verified: true
|
| 30 |
+
- type: precision
|
| 31 |
+
value: 0.901
|
| 32 |
+
name: Precision
|
| 33 |
+
verified: true
|
| 34 |
+
- type: recall
|
| 35 |
+
value: 0.907
|
| 36 |
+
name: Recall
|
| 37 |
+
verified: true
|
| 38 |
---
|
| 39 |
|
| 40 |
## Introduction
|
| 41 |
|
| 42 |
|
| 43 |
+
Tupy-BERT-Large-Multilabel is a fine-tuned BERT model designed specifically for multilabel classification of hate speech in Portuguese.
|
| 44 |
+
Derived from the [BERTimbau large](https://huggingface.co/neuralmind/bert-large-portuguese-cased),
|
| 45 |
+
TuPy-Large is a refined solution for addressing categorical hate speech concerns (ageism, aporophobia, body shame, capacitism, LGBTphobia, political,
|
| 46 |
+
racism, religious intolerance, misogyny, and xenophobia).
|
| 47 |
For more details or specific inquiries, please refer to the [BERTimbau repository](https://github.com/neuralmind-ai/portuguese-bert/).
|
| 48 |
|
| 49 |
+
The efficacy of Language Models can exhibit notable variations when confronted with a shift in domain between training and test data.
|
| 50 |
+
In the creation of a specialized Portuguese Language Model tailored for hate speech classification,
|
| 51 |
+
the original BERTimbau model underwent fine-tuning processe carried out on
|
| 52 |
+
the [TuPy Hate Speech DataSet](https://huggingface.co/datasets/Silly-Machine/TuPyE-Dataset), sourced from diverse social networks.
|
| 53 |
|
| 54 |
## Available models
|
| 55 |
|
|
|
|
| 60 |
| `Silly-Machine/TuPy-Bert-Base-Multilabel` | BERT-Base | 12 | 109M |
|
| 61 |
| `Silly-Machine/TuPy-Bert-Large-Multilabel` | BERT-Large | 24 | 334M |
|
| 62 |
|
| 63 |
+
## Example usage
|
| 64 |
|
| 65 |
```python
|
| 66 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer, AutoConfig
|
|
|
|
| 92 |
model_name = "Silly-Machine/TuPy-Bert-Large-Multilabel"
|
| 93 |
text = "Bom dia, flor do dia!!"
|
| 94 |
classify_hate_speech(model_name, text)
|
|
|
|
| 95 |
```
|