ankekat1000 commited on
Commit
6b968b4
·
1 Parent(s): 5d8e019

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +31 -0
README.md CHANGED
@@ -1,3 +1,34 @@
1
  ---
2
  license: cc-by-nc-sa-4.0
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: cc-by-nc-sa-4.0
3
+ language:
4
+ - de
5
  ---
6
+
7
+ ## Model description
8
+ This model is a fine-tuned version of the [BERT-base-german-cased model by deepset](https://huggingface.co/transformers/model_doc/distilbert.html) to classify German-language toxic comments.
9
+
10
+ ## How to use
11
+
12
+ You can use the model with the following code.
13
+
14
+ ```python
15
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer, TextClassificationPipeline
16
+
17
+ model_path = "ankekat1000/toxic-bert-german"
18
+ tokenizer = AutoTokenizer.from_pretrained(model_path)
19
+ model = AutoModelForSequenceClassification.from_pretrained(model_path)
20
+
21
+ pipeline = TextClassificationPipeline(model=model, tokenizer=tokenizer)
22
+ print(pipeline('This is a test text.'))
23
+ ```
24
+
25
+
26
+ ## Training data
27
+ comming soone
28
+
29
+ ## Training procedure
30
+
31
+ coming soon
32
+ ## Evaluation results
33
+
34
+ coming soon