Documentation ¶
Index ¶
Constants ¶
View Source
const ( POSITIVE = "positive" NEGATIVE = "negative" NEUTRAL = "neutral" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sentiment ¶
type Sentiment struct { SentimentServiceHost string LanguageDetector lingua.LanguageDetector Client *http.Client }
func NewSentiment ¶
func (*Sentiment) GetPostsSentiment ¶
func (s *Sentiment) GetPostsSentiment(ctx context.Context, posts []*SentimentPost) ([]*SentimentPost, error)
Click to show internal directories.
Click to hide internal directories.