Update README.md
Browse files
README.md
CHANGED
@@ -90,7 +90,7 @@ from transformers import pipeline
|
|
90 |
# Create the pipeline
|
91 |
sentiment_classifier = pipeline('text-classification', model='AdamCodd/distilbert-base-uncased-finetuned-sentiment-amazon')
|
92 |
|
93 |
-
# Now you can use the pipeline to
|
94 |
result = sentiment_classifier("This product doesn't fit me at all.")
|
95 |
print(result)
|
96 |
#[{'label': 'negative', 'score': 0.9994848966598511}]
|
|
|
90 |
# Create the pipeline
|
91 |
sentiment_classifier = pipeline('text-classification', model='AdamCodd/distilbert-base-uncased-finetuned-sentiment-amazon')
|
92 |
|
93 |
+
# Now you can use the pipeline to get the sentiment
|
94 |
result = sentiment_classifier("This product doesn't fit me at all.")
|
95 |
print(result)
|
96 |
#[{'label': 'negative', 'score': 0.9994848966598511}]
|