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