Text Classification
Transformers
Safetensors
French
English
Spanish
eurobert
java
python
javascript
C/C++
custom_code
Instructions to use Cyrile/EuroBERT-210m-Quality-CL with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Cyrile/EuroBERT-210m-Quality-CL with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Cyrile/EuroBERT-210m-Quality-CL", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Cyrile/EuroBERT-210m-Quality-CL", trust_remote_code=True) model = AutoModelForSequenceClassification.from_pretrained("Cyrile/EuroBERT-210m-Quality-CL", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -41,34 +41,34 @@ We compare two distinct approaches:
|
|
| 41 |
|
| 42 |
| Catégorie | Global (NL + CL) | NL | CL |
|
| 43 |
|:------------:|:----------------:|:-------------:|:-------------:|
|
| 44 |
-
| **Harmfull** | 0.
|
| 45 |
-
| **Low** | 0.
|
| 46 |
-
| **Medium** | 0.
|
| 47 |
-
| **High** | 0.
|
| 48 |
-
| **Accuracy** | **0.
|
| 49 |
|
| 50 |
|
| 51 |
- **f1-score: Separate Models**
|
| 52 |
|
| 53 |
| Catégorie | Global (NL + CL) | NL | CL |
|
| 54 |
|:------------:|:----------------:|:-------------:|:-------------:|
|
| 55 |
-
| **Harmfull** | 0.83 | 0.
|
| 56 |
-
| **Low** | 0.
|
| 57 |
-
| **Medium** | 0.63 | 0.
|
| 58 |
-
| **High** | 0.
|
| 59 |
-
| **Accuracy** | **0.
|
| 60 |
|
| 61 |
|
| 62 |
## Key Performance Metrics:
|
| 63 |
- **Unified Model (NL + CL)**:
|
| 64 |
-
- Overall accuracy: ~
|
| 65 |
-
- High reliability on harmful data (f1-score: 0.
|
| 66 |
|
| 67 |
- **Separate Models**:
|
| 68 |
-
- **Natural Language (NL)**: ~
|
| 69 |
-
- Excellent performance on harmful data (f1-score: 0.
|
| 70 |
-
- **Code Language (CL)**: ~63% accuracy
|
| 71 |
-
- Good detection of harmful data (f1-score: 0.
|
| 72 |
|
| 73 |
## Training Dataset:
|
| 74 |
- Public dataset available: [TempestTeam/dataset-quality](https://huggingface.co/datasets/TempestTeam/dataset-quality)
|
|
|
|
| 41 |
|
| 42 |
| Catégorie | Global (NL + CL) | NL | CL |
|
| 43 |
|:------------:|:----------------:|:-------------:|:-------------:|
|
| 44 |
+
| **Harmfull** | 0.86 | 0.93 | 0.79 |
|
| 45 |
+
| **Low** | 0.62 | 0.81 | 0.40 |
|
| 46 |
+
| **Medium** | 0.63 | 0.78 | 0.50 |
|
| 47 |
+
| **High** | 0.77 | 0.81 | 0.74 |
|
| 48 |
+
| **Accuracy** | **0.73** | **0.83** | **0.62** |
|
| 49 |
|
| 50 |
|
| 51 |
- **f1-score: Separate Models**
|
| 52 |
|
| 53 |
| Catégorie | Global (NL + CL) | NL | CL |
|
| 54 |
|:------------:|:----------------:|:-------------:|:-------------:|
|
| 55 |
+
| **Harmfull** | 0.83 | 0.93 | 0.72 |
|
| 56 |
+
| **Low** | 0.64 | 0.76 | 0.53 |
|
| 57 |
+
| **Medium** | 0.63 | 0.76 | 0.52 |
|
| 58 |
+
| **High** | 0.79 | 0.81 | 0.76 |
|
| 59 |
+
| **Accuracy** | **0.73** | **0.82** | **0.63** |
|
| 60 |
|
| 61 |
|
| 62 |
## Key Performance Metrics:
|
| 63 |
- **Unified Model (NL + CL)**:
|
| 64 |
+
- Overall accuracy: ~73%
|
| 65 |
+
- High reliability on harmful data (f1-score: 0.86)
|
| 66 |
|
| 67 |
- **Separate Models**:
|
| 68 |
+
- **Natural Language (NL)**: ~82% accuracy
|
| 69 |
+
- Excellent performance on harmful data (f1-score: 0.93)
|
| 70 |
+
- **Code Language (CL)**: ~63% accuracy
|
| 71 |
+
- Good detection of harmful data (f1-score: 0.72)
|
| 72 |
|
| 73 |
## Training Dataset:
|
| 74 |
- Public dataset available: [TempestTeam/dataset-quality](https://huggingface.co/datasets/TempestTeam/dataset-quality)
|