GitHunt
PH

phildionne/sentiment-service

Sentiment Service

Exposes a sentiment analysis service.

Getting started

$ ruby app.rb

Usage

uri = URI.parse("http://sentiment.cloud66.local:5000")
http = Net::HTTP.new(uri.host, uri.port)
header = {'Content-Type': 'text/json'}
request = Net::HTTP::Post.new(uri.request_uri, header)
request.body = "Hello world!".to_json
response = http.request(request)

response.body
# => "0.6222233866815465"

Health

This service exposes a health endpoint at GET /health. It will return a 200 when it's ready and healthy.

Languages

Ruby100.0%

Contributors

Created February 16, 2017
Updated October 21, 2025