Update README.md
Browse files
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(
|
|
|
|
|
|
|
55 |
|
56 |
result
|
57 |
[{'label': '1 star',
|
58 |
-
'score': 0.
|
59 |
{'label': '2 stars',
|
60 |
-
'score': 0.
|
61 |
{'label': '3 stars',
|
62 |
-
'score': 0.
|
63 |
{'label': '4 stars',
|
64 |
-
'score': 0.
|
65 |
{'label': '5 stars',
|
66 |
-
'score': 0.
|
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 |
```
|