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
Click to show internal directories.
Click to hide internal directories.