EIStakovskii
commited on
Commit
•
6c8e91a
1
Parent(s):
ab9d2b6
Update README.md
Browse files
README.md
CHANGED
@@ -28,6 +28,17 @@ This model was trained for toxicity labeling.
|
|
28 |
|
29 |
The model was fine-tuned based off [the dbmdz/bert-base-german-cased model](https://huggingface.co/dbmdz/bert-base-german-cased).
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
## Metrics (at validation):
|
32 |
|
33 |
epoch|step|eval_accuracy|eval_f1|eval_loss
|
|
|
28 |
|
29 |
The model was fine-tuned based off [the dbmdz/bert-base-german-cased model](https://huggingface.co/dbmdz/bert-base-german-cased).
|
30 |
|
31 |
+
To use the model:
|
32 |
+
|
33 |
+
```python
|
34 |
+
from transformers import pipeline
|
35 |
+
|
36 |
+
classifier = pipeline("text-classification", model = 'EIStakovskii/german_toxicity_classifier_plus_v2')
|
37 |
+
|
38 |
+
print(classifier("Verpiss dich von hier"))
|
39 |
+
|
40 |
+
```
|
41 |
+
|
42 |
## Metrics (at validation):
|
43 |
|
44 |
epoch|step|eval_accuracy|eval_f1|eval_loss
|