parse

package
v0.0.0-...-dcc4738 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

func ParseString

func ParseString(title string) (entities map[string]string, err error)

ParseString parses the string that baleen sends back in the doc.Title returning a map of entities to entity types

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL