saattrupdan
commited on
Commit
•
0915098
1
Parent(s):
4ca9aae
Update README.md
Browse files
README.md
CHANGED
@@ -13,7 +13,7 @@ The BERT HateSpeech model classifies offensive Danish text into 4 categories:
|
|
13 |
* `Personangreb` (personal attack)
|
14 |
* `Sprogbrug` (offensive language)
|
15 |
* `Spam & indhold` (spam)
|
16 |
-
This model is intended to be used after the [BERT HateSpeech detection model](https://huggingface.co/
|
17 |
|
18 |
It is based on the pretrained [Danish BERT](https://github.com/certainlyio/nordic_bert) model by BotXO which has been fine-tuned on social media data.
|
19 |
|
@@ -25,8 +25,8 @@ Here is how to use the model:
|
|
25 |
```python
|
26 |
from transformers import BertTokenizer, BertForSequenceClassification
|
27 |
|
28 |
-
model = BertForSequenceClassification.from_pretrained("
|
29 |
-
tokenizer = BertTokenizer.from_pretrained("
|
30 |
```
|
31 |
|
32 |
## Training data
|
|
|
13 |
* `Personangreb` (personal attack)
|
14 |
* `Sprogbrug` (offensive language)
|
15 |
* `Spam & indhold` (spam)
|
16 |
+
This model is intended to be used after the [BERT HateSpeech detection model](https://huggingface.co/alexandrainst/da-bert-hatespeech-detection).
|
17 |
|
18 |
It is based on the pretrained [Danish BERT](https://github.com/certainlyio/nordic_bert) model by BotXO which has been fine-tuned on social media data.
|
19 |
|
|
|
25 |
```python
|
26 |
from transformers import BertTokenizer, BertForSequenceClassification
|
27 |
|
28 |
+
model = BertForSequenceClassification.from_pretrained("alexandrainst/da-bert-hatespeech-classification")
|
29 |
+
tokenizer = BertTokenizer.from_pretrained("alexandrainst/da-bert-hatespeech-classification")
|
30 |
```
|
31 |
|
32 |
## Training data
|