Documentation ¶
Index ¶
- func ParseHTML(content []byte, model sentiment.Models) (entities map[string]string, avgSentiment float32, err error)
- func ParseResponse(document *events.Document, model sentiment.Models) (entities map[string]string, avgSentiment float32, err error)
- func ParseString(title string) (entities map[string]string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseHTML ¶
func ParseHTML(content []byte, model sentiment.Models) (entities map[string]string, avgSentiment float32, err error)
ParseHTML parses the html that baleen sends back in the doc.Content returning a map of entities to entity types
func ParseResponse ¶
func ParseResponse(document *events.Document, model sentiment.Models) (entities map[string]string, avgSentiment float32, err error)
ParseResponse takes in an Ensign Baleen Document and calls ParseHTML and ParseString to return a map of entities to entity types TODO: update so that we don't overwrite entity keys if they occur multiple times
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.