Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FullScore ¶
type FullScore struct { // Score is the difference between positive and negative sentiment // scores. Score float64 // Comparative is the difference between positive and negative sentiment // comparative scores. Comparative float64 // Positive score object Positive Score // Negative score object Negative Score }
type Score ¶
type Score struct { // Score is the sum of the sentiment points of the analyzed text. // Negativity will render negative points only, and vice-versa. Score float64 // Comparative establishes a ratio of sentiment per word Comparative float64 // List of words for a given sentiment. Words []string }
func Negativity ¶
Negativity calculates the negative sentiment of a sentence
func Positivity ¶
Positiviy calculates the positive sentiment of a sentence
Click to show internal directories.
Click to hide internal directories.