From 7d0febedb2736bd105d6a1b35a16487b461ed0fb Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 29 Oct 2024 07:17:18 -0400 Subject: [PATCH] Add sentiment analysis example for analyzing sentiment of text --- examples/sentiment_analysis.py | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/sentiment_analysis.py b/examples/sentiment_analysis.py index 94ae229..9cda733 100644 --- a/examples/sentiment_analysis.py +++ b/examples/sentiment_analysis.py @@ -17,3 +17,4 @@ print( response_model=SentimentAnalysis, ) ) +# Output: SentimentAnalysis(sentiment='negative', confidence=0.95)