Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tally ¶
type Tally struct {
// contains filtered or unexported fields
}
Tally keeps a summary of textbox.Analysis objects.
func (*Tally) AllEntities ¶
AllEntities gets all entities mapped by their type.
func (*Tally) AllKeywords ¶
AllKeywords gets an unordered list of keywords.
May be sorted with:
sort.SliceStable(keywords, func(i, j int) bool { return keywords[j].Count < keywords[i].Count })
func (*Tally) SentimentAverage ¶
SentimentAverage is the average sentiment of all sentences seen so far.
func (*Tally) TopEntities ¶
TopEntities gets the top ten entities sorted by most frequent, mapped on their type.
func (*Tally) TopKeywords ¶
TopKeywords gets the top ten keywords sorted by most frequent.
Click to show internal directories.
Click to hide internal directories.