MCPcopy
hub / github.com/owocki/pytrader / set_sentiment

Method set_sentiment

history/models.py:579–582  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

577 sentiment_subjectivity = models.FloatField(default=0.00)
578
579 def set_sentiment(self):
580 sentiment = textblob.TextBlob(self.text).sentiment
581 self.sentiment_polarity = sentiment.polarity
582 self.sentiment_subjectivity = sentiment.subjectivity

Callers 3

handleMethod · 0.80
handleMethod · 0.80
handleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected