Commit
·
951b61b
1
Parent(s):
82fe319
Update README.md
Browse files
README.md
CHANGED
@@ -30,14 +30,14 @@ You can use the model simply by running the following:
|
|
30 |
>>> from transformers import pipeline
|
31 |
>>> offensive_text_pipeline = pipeline(model="electra-small-offensive-text-detection-da")
|
32 |
>>> offensive_text_pipeline("Din store idiot")
|
33 |
-
[{'label': '
|
34 |
```
|
35 |
|
36 |
Processing multiple documents at the same time can be done as follows:
|
37 |
|
38 |
```python
|
39 |
>>> offensive_text_pipeline(["Din store idiot", "ej hvor godt :)"])
|
40 |
-
[{'label': '
|
41 |
```
|
42 |
|
43 |
## Training procedure
|
|
|
30 |
>>> from transformers import pipeline
|
31 |
>>> offensive_text_pipeline = pipeline(model="electra-small-offensive-text-detection-da")
|
32 |
>>> offensive_text_pipeline("Din store idiot")
|
33 |
+
[{'label': 'Offensive', 'score': 0.9997463822364807}]
|
34 |
```
|
35 |
|
36 |
Processing multiple documents at the same time can be done as follows:
|
37 |
|
38 |
```python
|
39 |
>>> offensive_text_pipeline(["Din store idiot", "ej hvor godt :)"])
|
40 |
+
[{'label': 'Offensive', 'score': 0.9997463822364807}, {'label': 'Not offensive', 'score': 0.9996451139450073}]
|
41 |
```
|
42 |
|
43 |
## Training procedure
|