saattrupdan commited on
Commit
879e4af
1 Parent(s): 5f2c54a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
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': 'offensive', 'score': 0.9874388575553894}]
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.9874388575553894}, {'label': 'not offensive', 'score': 0.999760091304779}]
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