Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analysis ¶
type Analysis struct {
Sentiment Sentiment
Confidence float32
SentenceAnalyses []SentenceAnalysis
}
Analysis represents the sentiment analysis.
func GetSentiment ¶
GetSentiment calls a sentimentService and retrieves the corresponding analysis.
func (Analysis) NegativeSentences ¶
func (a Analysis) NegativeSentences() []SentenceAnalysis
NegativeSentences returns any negative sentences.
type SentenceAnalysis ¶
SentenceAnalysis represents individual sentence analysis.
Click to show internal directories.
Click to hide internal directories.