Commit ·
29416f7
1
Parent(s): 0915098
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/alexandrainst/da-
|
| 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("alexandrainst/da-
|
| 29 |
-
tokenizer = BertTokenizer.from_pretrained("alexandrainst/da-
|
| 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-hatespeech-detection-base).
|
| 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-hatespeech-classification-base")
|
| 29 |
+
tokenizer = BertTokenizer.from_pretrained("alexandrainst/da-hatespeech-classification-base")
|
| 30 |
```
|
| 31 |
|
| 32 |
## Training data
|