zenkay / ai-applied-ruby

Ruby Gem for AI Applied service

Home Page:http://rubygems.org/gems/applied

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ruby Gem Icon AI Applied Ruby Gem

Code Climate Travis CI Gem Version Coverage Status

Installation

Add this line to your application's Gemfile:

gem 'applied'

And then execute:

$ bundle install

Setup

Setup configuration parameters

Applied.configure do |c|
  c.api_key = "your-api-key-for-applied-account"
  c.endpoint = "http://api.ai-applied.nl/"
end

Usage

Sentiment API

element = Applied::Sentiment.new

options = {return_original: false, classifier: "default"}

data = [
  {text: "Sono molto contento di quello che è successo", language_iso: "ita", id: 42},
  {text: "Sono molto arrabbiato per quello che è successo", language_iso: "ita", id: 69},
  {text: "Sono molto indifferente a quello che è successo", language_iso: "ita", id: 99}
]

response = element.analyze(data, options)

Text Analysis API

Coming Soon

Text Extract API

Coming Soon

Data Miner API

Coming Soon

Text Label API

Coming Soon

Demographics API

Coming Soon

Language Detection API

Coming Soon

About

Ruby Gem for AI Applied service

http://rubygems.org/gems/applied

License:MIT License


Languages

Language:Ruby 100.0%