mirror of
https://github.com/kennethreitz/simplemind.git
synced 2026-06-05 22:50:18 +00:00
Update sentiment_analysis.py
This commit is contained in:
@@ -3,6 +3,7 @@ from typing import Literal
|
||||
from _context import sm
|
||||
from pydantic import BaseModel
|
||||
|
||||
# Note: you should probably be using textblob for this.
|
||||
|
||||
class SentimentAnalysis(BaseModel):
|
||||
sentiment: Literal["positive", "negative", "neutral"]
|
||||
|
||||
Reference in New Issue
Block a user