paralleldots 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/paralleldots.rb +11 -11
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d927991acfef9f04a06505bf14ed567c94e94804
4
- data.tar.gz: 0902465ffaac4ce6aca33a758ece944079e73ef1
3
+ metadata.gz: 341ed69342047f61fd7f0b41e968490d07bb51fb
4
+ data.tar.gz: e83155d8742c95d4c67b778f62632436bda6b41c
5
5
  SHA512:
6
- metadata.gz: f51ca08b502b2a75e79a39f74b75b4268b04ce1abaea1fa4f9fcc29b43edd016af21395e41678fd5c92ebffb3c9d635434e12e2075113271266c2dd4fbeebeec
7
- data.tar.gz: b643f1e075042d48f652d0ed633f090e516b19f0cf538d1ef624870b8c6082da35d999e07e111968384630103662b2337015b4ef04f9753598cfa368c974ff28
6
+ metadata.gz: 88775cc70415c8811e21aee6b9a6402f2729a649e2a57b147bf7f6e526f8f978b2b279884b754c4c8d862c7a70667fa06ec68a75ca8267de944c1c70585eb0ce
7
+ data.tar.gz: 8a2c13475dba7a0da0c082e6c85cbe1bea61e2185fab958707498b9570029b83b6a4af9c10d03604622adcb574906c9ac1c42718ee86c061dc0a8ed52bb8fb01
data/lib/paralleldots.rb CHANGED
@@ -18,7 +18,7 @@ def check( api_key, text )
18
18
  end
19
19
 
20
20
  def sentiment( text )
21
- api_key = post_api_key
21
+ api_key = get_api_key
22
22
  valid = check( api_key, text )
23
23
  if valid != true then
24
24
  return valid
@@ -30,7 +30,7 @@ def sentiment( text )
30
30
  end
31
31
 
32
32
  def ner( text )
33
- api_key = post_api_key
33
+ api_key = get_api_key
34
34
  valid = check( api_key, text )
35
35
  if valid != true then
36
36
  return valid
@@ -42,7 +42,7 @@ def ner( text )
42
42
  end
43
43
 
44
44
  def keywords( text )
45
- api_key = post_api_key
45
+ api_key = get_api_key
46
46
  valid = check( api_key, text )
47
47
  if valid != true then
48
48
  return valid
@@ -54,7 +54,7 @@ def keywords( text )
54
54
  end
55
55
 
56
56
  def intent( text )
57
- api_key = post_api_key
57
+ api_key = get_api_key
58
58
  valid = check( api_key, text )
59
59
  if valid != true then
60
60
  return valid
@@ -66,7 +66,7 @@ def intent( text )
66
66
  end
67
67
 
68
68
  def emotion( text )
69
- api_key = post_api_key
69
+ api_key = get_api_key
70
70
  valid = check( api_key, text )
71
71
  if valid != true then
72
72
  return valid
@@ -78,7 +78,7 @@ def emotion( text )
78
78
  end
79
79
 
80
80
  def abuse( text )
81
- api_key = post_api_key
81
+ api_key = get_api_key
82
82
  valid = check( api_key, text )
83
83
  if valid != true then
84
84
  return valid
@@ -90,7 +90,7 @@ def abuse( text )
90
90
  end
91
91
 
92
92
  def taxonomy( text )
93
- api_key = post_api_key
93
+ api_key = get_api_key
94
94
  valid = check( api_key, text )
95
95
  if valid != true then
96
96
  return valid
@@ -102,7 +102,7 @@ def taxonomy( text )
102
102
  end
103
103
 
104
104
  def similarity( text_1, text_2 )
105
- api_key = post_api_key
105
+ api_key = get_api_key
106
106
  valid_1 = check( api_key, text_1 )
107
107
  valid_2 = check( api_key, text_2 )
108
108
  if valid_1 != true or valid_2 != true then
@@ -115,7 +115,7 @@ def similarity( text_1, text_2 )
115
115
  end
116
116
 
117
117
  def multilang_sentiment( text, lang )
118
- api_key = post_api_key
118
+ api_key = get_api_key
119
119
  valid_1 = check( api_key, text )
120
120
  valid_2 = check( api_key, lang )
121
121
  if valid_1 != true or valid_2 != true then
@@ -128,7 +128,7 @@ def multilang_sentiment( text, lang )
128
128
  end
129
129
 
130
130
  #def hit_count()
131
- # api_key = post_api_key
131
+ # api_key = get_api_key
132
132
  # if api_key == nil or api_key == "" then
133
133
  # return { "error": "API Key cannot be nil or an empty String." }
134
134
  # end
@@ -139,7 +139,7 @@ end
139
139
  #end
140
140
  #
141
141
  #def specific_hit_count( end_point )
142
- # api_key = post_api_key
142
+ # api_key = get_api_key
143
143
  # if api_key == nil or api_key == "" then
144
144
  # return { "error": "API Key cannot be nil or an empty String." }
145
145
  # end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paralleldots
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Meghdeep Ray