Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalyzeRequest ¶
type AnalyzeResponse ¶
type AnalyzeResponse struct { // The score of the text {positive is 1, negative is 0} Score float64 `json:"score"` }
type SentimentService ¶
type SentimentService struct {
// contains filtered or unexported fields
}
func NewSentimentService ¶
func NewSentimentService(token string) *SentimentService
func (*SentimentService) Analyze ¶
func (t *SentimentService) Analyze(request *AnalyzeRequest) (*AnalyzeResponse, error)
Analyze and score a piece of text
Click to show internal directories.
Click to hide internal directories.