indico 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +28 -3
  2. data/lib/indico/version.rb +1 -1
  3. metadata +1 -1
data/README.md CHANGED
@@ -19,11 +19,36 @@ Or install it yourself as:
19
19
  ## Usage
20
20
 
21
21
  ```ruby
22
- Indico.political("Guns don't kill people. People kill people.")
22
+ > require 'indico'
23
23
 
24
- Indico.posneg("Guns don't kill people. People kill people.")
24
+ => true
25
25
 
26
- Indico.language('Quis custodiet ipsos custodes')
26
+ > Indico.political("Guns don't kill people. People kill people.")
27
+
28
+ => {"Libertarian"=>0.47740164630834825, "Liberal"=>0.16617097211030055, "Green"=>0.08454409540443657, "Conservative"=>0.2718832861769146}
29
+
30
+ > Indico.sentiment("This song is incredible")
31
+
32
+ => {"Sentiment"=>0.900475156188022}
33
+
34
+ > Indico.language('Quis custodiet ipsos custodes')
35
+
36
+ => {"Swedish"=>0.00033330636691921914, "Vietnamese"=>0.0002686116137658802, "Romanian"=>8.133913804076592e-06, "Dutch"=>0.09380619821813883, "Korean"=>0.00272046505489883, "Danish"=>0.0012556466207667206, "Indonesian"=>6.623391878530033e-07, "Latin"=>0.8230599921384231, "Hungarian"=>0.0012793617391960567, "Persian (Farsi)"=>0.0019848504383980473, "Lithuanian"=>0.007328693814717631, "French"=>0.00016792646226101638, "Norwegian"=>0.0009179030069742254, "Russian"=>0.0002643396088456642, "Thai"=>7.746466749651003e-05, "Finnish"=>0.0026367338676522643, "Hebrew"=>3.70933525938127e-05, "Bulgarian"=>3.746416283126873e-05, "Turkish"=>0.0004606965429738638, "Greek"=>0.027456554742563633, "Tagalog"=>0.0005143018200605518, "English"=>0.00013517846159760138, "Arabic"=>0.00013589586110619373, "Italian"=>2.650711180999111e-06, "Portuguese"=>0.013193681336032896, "Chinese"=>0.008818957727120736, "German"=>0.00011732494215411359, "Japanese"=>0.0005885208894664065, "Czech"=>9.916434007248934e-05, "Slovak"=>8.869445598583308e-05, "Spanish"=>0.011844579596827902, "Polish"=>9.900290296255447e-05, "Esperanto"=>0.0002599482830232367}
37
+
38
+ ```
39
+
40
+ ###Local
41
+
42
+ When using a local version of the api you must remember to require 'indico_local' instead of 'indico'. Along the same vein, the package is then referenced as "IndicoLocal" rather than "Indico".
43
+
44
+ ```ruby
45
+ > require 'indico_local'
46
+
47
+ => true
48
+
49
+ > IndicoLocal.sentiment("I love using this tool!")
50
+
51
+ => {"Sentiment"=>0.7483253499779664}
27
52
  ```
28
53
 
29
54
  ## Contributing
@@ -1,3 +1,3 @@
1
1
  module Indico
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: indico
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: