sentiment

package
v0.0.0-...-ec05587 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Provides an http.HandlerFunc which returns a seniment analysis based on tweets

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	// TwitterSentiment function can be used with the `net/http` package as a http.HandlerFunc.
	// It collects the most recent tweets from twitter, with tweets matching the provides query.
	// It fetches at most the last 100 Tweets but must fetch a minimum of 10.
	//
	// Default Values (can be overriden py providing URL-Params):
	// 		"twitter_query": "ether OR eth OR ethereum OR cryptocurrency"
	//		"tweet_count": 10 <= tweet_count <= 100
	TwitterSentiment(http.ResponseWriter, *http.Request)
}

func NewSentimentService

func NewSentimentService(model *tf.SavedModel, tweet *twitter.Tweet) Service

Creates a new sentiment service with a given tensorflow model and a twitter api client

Jump to

Keyboard shortcuts

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