Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Emoji *regexp.Regexp
Emoji simple regex to match only emoji
View Source
var Spaces *regexp.Regexp
Spaces simple regex to split emojis and words
Functions ¶
Types ¶
type Sentiment ¶
type Sentiment struct { Negative float64 `json:"neg" csv:"neg"` Neutral float64 `json:"neu" csv:"neu"` Positive float64 `json:"pos" csv:"pos"` Compound float64 `json:"compound" csv:"compound"` }
Sentiment of a phrase or sentence
func PolarityScore ¶
PolarityScore Return a float for sentiment strength based on the input text. Positive values are positive valence, negative value are negative valence.
func ScoreValence ¶
ScoreValence .
Click to show internal directories.
Click to hide internal directories.