Documentation ¶
Index ¶
- func AnalyzeSentiment(text string, language langdetect.Language) (score float64, err error)
- func AnalyzeSentimentONLINE(text string, language langdetect.Language, proxyUrl *string) (score float64, err error)
- type Sentiment
- type SentimentReport
- type SentimentReportItem
- type SentimentSet
- type SentimentWithTime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnalyzeSentiment ¶
func AnalyzeSentiment(text string, language langdetect.Language) (score float64, err error)
func AnalyzeSentimentONLINE ¶
Types ¶
type SentimentReport ¶
type SentimentReport struct {
Items []SentimentReportItem
}
func (*SentimentReport) DrawImage ¶
func (sp *SentimentReport) DrawImage() ([]byte, error)
type SentimentReportItem ¶
type SentimentSet ¶
type SentimentSet struct { Items []SentimentWithTime // contains filtered or unexported fields }
func NewSet ¶
func NewSet(dataKeptInterval time.Duration) *SentimentSet
func (*SentimentSet) Append ¶
func (ss *SentimentSet) Append(tm time.Time, polarity, subjectivity float64)
func (*SentimentSet) IsEmpty ¶
func (ss *SentimentSet) IsEmpty() bool
func (*SentimentSet) ParseReport ¶
func (ss *SentimentSet) ParseReport(interval time.Duration) (*SentimentReport, error)
type SentimentWithTime ¶
Click to show internal directories.
Click to hide internal directories.