Cyrile commited on
Commit
b357920
1 Parent(s): c3ba7d9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -6
README.md CHANGED
@@ -51,17 +51,20 @@ analyzer = pipeline(
51
  model="cmarkea/distilcamembert-base-sentiment",
52
  tokenizer="cmarkea/distilcamembert-base-sentiment"
53
  )
54
- result = analyzer("J'aime marché dans la nature même si ça me donne mal au pied.")
 
 
 
55
 
56
  result
57
  [{'label': '1 star',
58
- 'score': 0.07675889134407043},
59
  {'label': '2 stars',
60
- 'score': 0.19822990894317627},
61
  {'label': '3 stars',
62
- 'score': 0.38655608892440796},
63
  {'label': '4 stars',
64
- 'score': 0.24029818177223206},
65
  {'label': '5 stars',
66
- 'score': 0.09815695881843567}]
67
  ```
 
51
  model="cmarkea/distilcamembert-base-sentiment",
52
  tokenizer="cmarkea/distilcamembert-base-sentiment"
53
  )
54
+ result = analyzer(
55
+ "J'aime me promener en forêt même si ça me donne mal aux pieds.",
56
+ return_all_scores=True
57
+ )
58
 
59
  result
60
  [{'label': '1 star',
61
+ 'score': 0.047529436647892},
62
  {'label': '2 stars',
63
+ 'score': 0.14150355756282806},
64
  {'label': '3 stars',
65
+ 'score': 0.3586442470550537},
66
  {'label': '4 stars',
67
+ 'score': 0.3181498646736145},
68
  {'label': '5 stars',
69
+ 'score': 0.13417290151119232}]
70
  ```