ml6team / distilbert-base-german-cased-toxic-comments

huggingface.co
Total runs: 310
24-hour runs: 0
7-day runs: 12
30-day runs: -268
Model's Last Updated: June 16 2022
text-classification

Introduction of distilbert-base-german-cased-toxic-comments

Model Details of distilbert-base-german-cased-toxic-comments

German Toxic Comment Classification

Model Description

This model was created with the purpose to detect toxic or potentially harmful comments.

For this model, we fine-tuned a German DistilBERT model distilbert-base-german-cased on a combination of five German datasets containing toxicity, profanity, offensive, or hate speech.

Intended Uses & Limitations

This model can be used to detect toxicity in German comments. However, the definition of toxicity is vague and the model might not be able to detect all instances of toxicity.

It will not be able to detect toxicity in languages other than German.

How to Use
from transformers import pipeline

model_hub_url = 'https://huggingface.co/ml6team/distilbert-base-german-cased-toxic-comments'
model_name = 'ml6team/distilbert-base-german-cased-toxic-comments'

toxicity_pipeline = pipeline('text-classification', model=model_name, tokenizer=model_name)

comment = "Ein harmloses Beispiel"
result = toxicity_pipeline(comment)[0]
print(f"Comment: {comment}\nLabel: {result['label']}, score: {result['score']}")
Limitations and Bias

The model was trained on a combinations of datasets that contain examples gathered from different social networks and internet communities. This only represents a narrow subset of possible instances of toxicity and instances in other domains might not be detected reliably.

Training Data

The training dataset combines the following five datasets:

  • GermEval18 [ dataset ]
    • Labels: abuse, profanity, toxicity
  • GermEval21 [ dataset ]
    • Labels: toxicity
  • IWG Hatespeech dataset [ paper , dataset ]
    • Labels: hate speech
  • Detecting Offensive Statements Towards Foreigners in Social Media (2017) by Breitschneider and Peters [ dataset ]
    • Labels: hate
  • HASOC: 2019 Hate Speech and Offensive Content [ dataset ]
    • Labels: offensive, profanity, hate

The datasets contains different labels ranging from profanity, over hate speech to toxicity. In the combined dataset these labels were subsumed as toxic and non-toxic and contains 23,515 examples in total.

Note that the datasets vary substantially in the number of examples.

Training Procedure

The training and test set were created using either the predefined train/test splits where available and otherwise 80% of the examples for training and 20% for testing. This resulted in in 17,072 training examples and 6,443 test examples.

The model was trained for 2 epochs with the following arguments:

training_args = TrainingArguments(
    per_device_train_batch_size=batch_size,
    per_device_eval_batch_size=batch_size,
    num_train_epochs=2,
    evaluation_strategy="steps",
    logging_strategy="steps",
    logging_steps=100,
    save_total_limit=5,
    learning_rate=2e-5,
    weight_decay=0.01,
    metric_for_best_model='accuracy',
    load_best_model_at_end=True
)
Evaluation Results

Model evaluation was done on 1/10th of the dataset, which served as the test dataset.

Accuracy F1 Score Recall Precision
78.50 50.34 39.22 70.27

Runs of ml6team distilbert-base-german-cased-toxic-comments on huggingface.co

310
Total runs
0
24-hour runs
-2
3-day runs
12
7-day runs
-268
30-day runs

More Information About distilbert-base-german-cased-toxic-comments huggingface.co Model

distilbert-base-german-cased-toxic-comments huggingface.co

distilbert-base-german-cased-toxic-comments huggingface.co is an AI model on huggingface.co that provides distilbert-base-german-cased-toxic-comments's model effect (), which can be used instantly with this ml6team distilbert-base-german-cased-toxic-comments model. huggingface.co supports a free trial of the distilbert-base-german-cased-toxic-comments model, and also provides paid use of the distilbert-base-german-cased-toxic-comments. Support call distilbert-base-german-cased-toxic-comments model through api, including Node.js, Python, http.

distilbert-base-german-cased-toxic-comments huggingface.co Url

https://huggingface.co/ml6team/distilbert-base-german-cased-toxic-comments

ml6team distilbert-base-german-cased-toxic-comments online free

distilbert-base-german-cased-toxic-comments huggingface.co is an online trial and call api platform, which integrates distilbert-base-german-cased-toxic-comments's modeling effects, including api services, and provides a free online trial of distilbert-base-german-cased-toxic-comments, you can try distilbert-base-german-cased-toxic-comments online for free by clicking the link below.

ml6team distilbert-base-german-cased-toxic-comments online free url in huggingface.co:

https://huggingface.co/ml6team/distilbert-base-german-cased-toxic-comments

distilbert-base-german-cased-toxic-comments install

distilbert-base-german-cased-toxic-comments is an open source model from GitHub that offers a free installation service, and any user can find distilbert-base-german-cased-toxic-comments on GitHub to install. At the same time, huggingface.co provides the effect of distilbert-base-german-cased-toxic-comments install, users can directly use distilbert-base-german-cased-toxic-comments installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

distilbert-base-german-cased-toxic-comments install url in huggingface.co:

https://huggingface.co/ml6team/distilbert-base-german-cased-toxic-comments

Url of distilbert-base-german-cased-toxic-comments

distilbert-base-german-cased-toxic-comments huggingface.co Url

Provider of distilbert-base-german-cased-toxic-comments huggingface.co

ml6team
ORGANIZATIONS

Other API from ml6team

huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 06 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 23 2023