Instructions to use ankekat1000/toxic-bert-german with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ankekat1000/toxic-bert-german with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ankekat1000/toxic-bert-german")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ankekat1000/toxic-bert-german") model = AutoModelForSequenceClassification.from_pretrained("ankekat1000/toxic-bert-german", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
4faf9fa
1
Parent(s): cf49bd7
Update README.md
Browse files
README.md
CHANGED
|
@@ -21,7 +21,7 @@ tokenizer = AutoTokenizer.from_pretrained(model_path)
|
|
| 21 |
model = AutoModelForSequenceClassification.from_pretrained(model_path)
|
| 22 |
|
| 23 |
pipeline = TextClassificationPipeline(model=model, tokenizer=tokenizer)
|
| 24 |
-
print(pipeline('
|
| 25 |
```
|
| 26 |
|
| 27 |
|
|
|
|
| 21 |
model = AutoModelForSequenceClassification.from_pretrained(model_path)
|
| 22 |
|
| 23 |
pipeline = TextClassificationPipeline(model=model, tokenizer=tokenizer)
|
| 24 |
+
print(pipeline('du bist blöd.'))
|
| 25 |
```
|
| 26 |
|
| 27 |
|