saattrupdan commited on
Commit
951b61b
1 Parent(s): 82fe319

Update README.md

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