aylien_text_api 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -6
- data/lib/aylien_text_api/client.rb +160 -12
- data/lib/aylien_text_api/configuration.rb +1 -0
- data/lib/aylien_text_api/error.rb +5 -2
- data/lib/aylien_text_api/version.rb +1 -1
- data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_invalid_client.yml +38 -0
- data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_invalid_params.yml +57 -0
- data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_invalid_taxonomy.yml +48 -0
- data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_text.yml +75 -0
- data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_unauthenticated_client.yml +42 -0
- data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_valid_url.yml +155 -0
- data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_value_as_text.yml +75 -0
- data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_value_as_valid_url.yml +155 -0
- data/spec/fixtures/aylien_text_api/client/classify_with_invalid_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/classify_with_invalid_params.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/classify_with_text.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/classify_with_unauthenticated_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/classify_with_valid_url.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/classify_with_value_as_text.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/classify_with_value_as_valid_url.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/combined_with_invalid_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/combined_with_invalid_params.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/combined_with_text.yml +11 -11
- data/spec/fixtures/aylien_text_api/client/combined_with_unauthenticated_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/combined_with_valid_url.yml +9 -9
- data/spec/fixtures/aylien_text_api/client/combined_with_value_as_text.yml +11 -11
- data/spec/fixtures/aylien_text_api/client/combined_with_value_as_valid_url.yml +9 -9
- data/spec/fixtures/aylien_text_api/client/concepts_with_invalid_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/concepts_with_invalid_params.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/concepts_with_text.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/concepts_with_unauthenticated_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/concepts_with_valid_url.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_text.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_valid_url.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/entities_with_invalid_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/entities_with_invalid_params.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/entities_with_text.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/entities_with_unauthenticated_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/entities_with_valid_url.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/entities_with_value_as_text.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/entities_with_value_as_valid_url.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/extract_with_invalid_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/extract_with_invalid_params.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/extract_with_unauthenticated_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/extract_with_valid_url.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/extract_with_value_as_text.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/extract_with_value_as_valid_url.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/hashtags_with_invalid_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/hashtags_with_invalid_params.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/hashtags_with_text.yml +8 -8
- data/spec/fixtures/aylien_text_api/client/hashtags_with_unauthenticated_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/hashtags_with_valid_url.yml +9 -9
- data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_text.yml +8 -8
- data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_valid_url.yml +9 -9
- data/spec/fixtures/aylien_text_api/client/image_tags_with_invalid_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/image_tags_with_invalid_params.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/image_tags_with_unauthenticated_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/image_tags_with_valid_url.yml +8 -8
- data/spec/fixtures/aylien_text_api/client/image_tags_with_value_as_text.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/image_tags_with_value_as_valid_url.yml +8 -8
- data/spec/fixtures/aylien_text_api/client/language_with_invalid_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/language_with_invalid_params.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/language_with_unauthenticated_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/language_with_valid_text.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/language_with_valid_url.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/language_with_value_as_text.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/language_with_value_as_valid_url.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/microformats_with_invalid_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/microformats_with_invalid_params.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/microformats_with_unauthenticated_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/microformats_with_valid_url.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/microformats_with_value_as_valid_url.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/related_with_invalid_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/related_with_invalid_params.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/related_with_phrase.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/related_with_unauthenticated_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/related_with_value_as_phrase.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/related_with_value_as_valid_url.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/sentiment_with_invalid_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/sentiment_with_invalid_params.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/sentiment_with_text.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/sentiment_with_unauthenticated_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/sentiment_with_valid_url.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_text.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_valid_url.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/summarize_with_invalid_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/summarize_with_invalid_params.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/summarize_with_title_and_text.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/summarize_with_unauthenticated_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/summarize_with_valid_url.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_title.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_without_title.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_valid_url.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_invalid_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_invalid_params.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_text.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_unauthenticated_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_valid_url.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_value_as_text.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_value_as_valid_url.yml +5 -5
- data/spec/lib/aylien_text_api/classify_by_taxonomy.rb +124 -0
- data/spec/lib/aylien_text_api/client_spec.rb +1 -0
- metadata +21 -2
@@ -12,7 +12,7 @@ http_interactions:
|
|
12
12
|
Accept:
|
13
13
|
- "*/*"
|
14
14
|
User-Agent:
|
15
|
-
- Aylien Text API Ruby Gem 0.
|
15
|
+
- Aylien Text API Ruby Gem 0.4.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
18
|
response:
|
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
Server:
|
24
24
|
- openresty/1.7.7.2
|
25
25
|
Date:
|
26
|
-
- Thu,
|
26
|
+
- Thu, 17 Sep 2015 11:17:35 GMT
|
27
27
|
Content-Type:
|
28
28
|
- text/plain; charset=us-ascii
|
29
29
|
Transfer-Encoding:
|
@@ -34,5 +34,5 @@ http_interactions:
|
|
34
34
|
encoding: UTF-8
|
35
35
|
string: Authentication parameters missing
|
36
36
|
http_version:
|
37
|
-
recorded_at: Thu,
|
37
|
+
recorded_at: Thu, 17 Sep 2015 11:17:35 GMT
|
38
38
|
recorded_with: VCR 2.9.3
|
@@ -5,14 +5,14 @@ http_interactions:
|
|
5
5
|
uri: https://api.aylien.com/api/v1/image-tags
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
|
-
string:
|
8
|
+
string: wrong_param
|
9
9
|
headers:
|
10
10
|
Accept-Encoding:
|
11
11
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
12
|
Accept:
|
13
13
|
- "*/*"
|
14
14
|
User-Agent:
|
15
|
-
- Aylien Text API Ruby Gem 0.
|
15
|
+
- Aylien Text API Ruby Gem 0.4.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
18
|
X-Aylien-Textapi-Application-Id:
|
@@ -27,7 +27,7 @@ http_interactions:
|
|
27
27
|
Server:
|
28
28
|
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
- Thu,
|
30
|
+
- Thu, 17 Sep 2015 11:17:34 GMT
|
31
31
|
Content-Type:
|
32
32
|
- application/json;charset=UTF-8
|
33
33
|
Content-Length:
|
@@ -37,9 +37,9 @@ http_interactions:
|
|
37
37
|
X-Ratelimit-Limit:
|
38
38
|
- '207000'
|
39
39
|
X-Ratelimit-Remaining:
|
40
|
-
- '
|
40
|
+
- '206401'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1442534400'
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: |-
|
@@ -58,5 +58,5 @@ http_interactions:
|
|
58
58
|
}]
|
59
59
|
}
|
60
60
|
http_version:
|
61
|
-
recorded_at: Thu,
|
61
|
+
recorded_at: Thu, 17 Sep 2015 11:17:34 GMT
|
62
62
|
recorded_with: VCR 2.9.3
|
@@ -12,7 +12,7 @@ http_interactions:
|
|
12
12
|
Accept:
|
13
13
|
- "*/*"
|
14
14
|
User-Agent:
|
15
|
-
- Aylien Text API Ruby Gem 0.
|
15
|
+
- Aylien Text API Ruby Gem 0.4.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
18
|
X-Aylien-Textapi-Application-Id:
|
@@ -27,7 +27,7 @@ http_interactions:
|
|
27
27
|
Server:
|
28
28
|
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
- Thu,
|
30
|
+
- Thu, 17 Sep 2015 11:17:33 GMT
|
31
31
|
Content-Type:
|
32
32
|
- text/plain; charset=us-ascii
|
33
33
|
Transfer-Encoding:
|
@@ -38,5 +38,5 @@ http_interactions:
|
|
38
38
|
encoding: UTF-8
|
39
39
|
string: Authentication failed
|
40
40
|
http_version:
|
41
|
-
recorded_at: Thu,
|
41
|
+
recorded_at: Thu, 17 Sep 2015 11:17:33 GMT
|
42
42
|
recorded_with: VCR 2.9.3
|
@@ -12,7 +12,7 @@ http_interactions:
|
|
12
12
|
Accept:
|
13
13
|
- "*/*"
|
14
14
|
User-Agent:
|
15
|
-
- Aylien Text API Ruby Gem 0.
|
15
|
+
- Aylien Text API Ruby Gem 0.4.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
18
|
X-Aylien-Textapi-Application-Id:
|
@@ -27,23 +27,23 @@ http_interactions:
|
|
27
27
|
Server:
|
28
28
|
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
- Thu,
|
30
|
+
- Thu, 17 Sep 2015 11:17:36 GMT
|
31
31
|
Content-Type:
|
32
32
|
- application/json;charset=UTF-8
|
33
33
|
Content-Length:
|
34
|
-
- '
|
34
|
+
- '3203'
|
35
35
|
Connection:
|
36
36
|
- keep-alive
|
37
37
|
X-Ratelimit-Limit:
|
38
38
|
- '207000'
|
39
39
|
X-Ratelimit-Remaining:
|
40
|
-
- '
|
40
|
+
- '206381'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1442534400'
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
|
-
string: '{"image":"http://aylien.com/images/michaelo.png","tags":[{"tag":"man","confidence":0.
|
46
|
-
person","confidence":0.
|
45
|
+
string: '{"image":"http://aylien.com/images/michaelo.png","tags":[{"tag":"man","confidence":0.41905796717273147},{"tag":"male","confidence":0.3872518051123938},{"tag":"person","confidence":0.2950782768596339},{"tag":"caucasian","confidence":0.28819937985516475},{"tag":"adult","confidence":0.28600742188124156},{"tag":"people","confidence":0.2813499223665775},{"tag":"portrait","confidence":0.25560805695443833},{"tag":"happy","confidence":0.1980226907997089},{"tag":"expression","confidence":0.1827944846728462},{"tag":"face","confidence":0.17406795347794163},{"tag":"smiling","confidence":0.17137503117919162},{"tag":"professional","confidence":0.16758255989081267},{"tag":"men","confidence":0.16086813188123958},{"tag":"handsome","confidence":0.16018362532714675},{"tag":"businessman","confidence":0.1590347561004702},{"tag":"looking","confidence":0.1579617251647249},{"tag":"business","confidence":0.15571183898746155},{"tag":"smile","confidence":0.1543835533891404},{"tag":"mature","confidence":0.14688734396431405},{"tag":"attractive","confidence":0.13361367057490278},{"tag":"lifestyle","confidence":0.12992043516867832},{"tag":"hand","confidence":0.12735821335325825},{"tag":"holding","confidence":0.12355007093635162},{"tag":"standing","confidence":0.12295081312815898},{"tag":"boy","confidence":0.12164446423644688},{"tag":"executive","confidence":0.11187875772242223},{"tag":"black","confidence":0.11010645166024621},{"tag":"suit","confidence":0.10927890972766097},{"tag":"tie","confidence":0.10618284554209255},{"tag":"one
|
46
|
+
person","confidence":0.10453506699019176},{"tag":"senior","confidence":0.10431091354519552},{"tag":"guy","confidence":0.10391495660929648},{"tag":"casual","confidence":0.10351146291297642},{"tag":"close","confidence":0.10345066095055158},{"tag":"work","confidence":0.10211116716758102},{"tag":"head","confidence":0.10156530634454863},{"tag":"serious","confidence":0.09743612615091055},{"tag":"model","confidence":0.09610429158690215},{"tag":"sitting","confidence":0.09588822570158578},{"tag":"hair","confidence":0.09586617334612789},{"tag":"occupation","confidence":0.09450395115918563},{"tag":"glasses","confidence":0.09449592335934585},{"tag":"hat","confidence":0.09400743022892617},{"tag":"alone","confidence":0.09328376861517067},{"tag":"job","confidence":0.09142264116160562},{"tag":"one","confidence":0.09118751511322466},{"tag":"office","confidence":0.08990688599851138},{"tag":"gesture","confidence":0.08865037591017538},{"tag":"corporate","confidence":0.08828812045243875},{"tag":"happiness","confidence":0.086706385790226},{"tag":"phone","confidence":0.08506223328604395},{"tag":"elderly","confidence":0.07976172879873265},{"tag":"youth","confidence":0.07942132044395794},{"tag":"studio","confidence":0.07849703362080859},{"tag":"lady","confidence":0.07676805508000566},{"tag":"old","confidence":0.07663315147036248},{"tag":"worker","confidence":0.0749843381076382},{"tag":"indoors","confidence":0.07366468190271828},{"tag":"home","confidence":0.07342255852782742},{"tag":"pretty","confidence":0.07277674847533183},{"tag":"eyes","confidence":0.07229058863380847},{"tag":"uniform","confidence":0.07073310632229714},{"tag":"thinking","confidence":0.07067450193735186}]}'
|
47
47
|
http_version:
|
48
|
-
recorded_at: Thu,
|
48
|
+
recorded_at: Thu, 17 Sep 2015 11:17:37 GMT
|
49
49
|
recorded_with: VCR 2.9.3
|
@@ -12,7 +12,7 @@ http_interactions:
|
|
12
12
|
Accept:
|
13
13
|
- "*/*"
|
14
14
|
User-Agent:
|
15
|
-
- Aylien Text API Ruby Gem 0.
|
15
|
+
- Aylien Text API Ruby Gem 0.4.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
18
|
X-Aylien-Textapi-Application-Id:
|
@@ -27,7 +27,7 @@ http_interactions:
|
|
27
27
|
Server:
|
28
28
|
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
- Thu,
|
30
|
+
- Thu, 17 Sep 2015 11:17:34 GMT
|
31
31
|
Content-Type:
|
32
32
|
- application/json;charset=UTF-8
|
33
33
|
Content-Length:
|
@@ -37,9 +37,9 @@ http_interactions:
|
|
37
37
|
X-Ratelimit-Limit:
|
38
38
|
- '207000'
|
39
39
|
X-Ratelimit-Remaining:
|
40
|
-
- '
|
40
|
+
- '206402'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1442534400'
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: |-
|
@@ -58,5 +58,5 @@ http_interactions:
|
|
58
58
|
}]
|
59
59
|
}
|
60
60
|
http_version:
|
61
|
-
recorded_at: Thu,
|
61
|
+
recorded_at: Thu, 17 Sep 2015 11:17:34 GMT
|
62
62
|
recorded_with: VCR 2.9.3
|
@@ -12,7 +12,7 @@ http_interactions:
|
|
12
12
|
Accept:
|
13
13
|
- "*/*"
|
14
14
|
User-Agent:
|
15
|
-
- Aylien Text API Ruby Gem 0.
|
15
|
+
- Aylien Text API Ruby Gem 0.4.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
18
|
X-Aylien-Textapi-Application-Id:
|
@@ -27,23 +27,23 @@ http_interactions:
|
|
27
27
|
Server:
|
28
28
|
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
- Thu,
|
30
|
+
- Thu, 17 Sep 2015 11:17:36 GMT
|
31
31
|
Content-Type:
|
32
32
|
- application/json;charset=UTF-8
|
33
33
|
Content-Length:
|
34
|
-
- '
|
34
|
+
- '3199'
|
35
35
|
Connection:
|
36
36
|
- keep-alive
|
37
37
|
X-Ratelimit-Limit:
|
38
38
|
- '207000'
|
39
39
|
X-Ratelimit-Remaining:
|
40
|
-
- '
|
40
|
+
- '206391'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1442534400'
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
|
-
string: '{"image":"http://aylien.com/images/michaelo.png","tags":[{"tag":"man","confidence":0.
|
46
|
-
person","confidence":0.
|
45
|
+
string: '{"image":"http://aylien.com/images/michaelo.png","tags":[{"tag":"man","confidence":0.4190579673446029},{"tag":"male","confidence":0.3872518052431366},{"tag":"person","confidence":0.29507827701419215},{"tag":"caucasian","confidence":0.288199379874911},{"tag":"adult","confidence":0.28600742198271645},{"tag":"people","confidence":0.28134992261545727},{"tag":"portrait","confidence":0.2556080570696376},{"tag":"happy","confidence":0.19802269069260992},{"tag":"expression","confidence":0.18279448481381746},{"tag":"face","confidence":0.1740679536939326},{"tag":"smiling","confidence":0.17137503119583486},{"tag":"professional","confidence":0.16758255999549868},{"tag":"men","confidence":0.16086813198506156},{"tag":"handsome","confidence":0.16018362552914542},{"tag":"businessman","confidence":0.15903475631680628},{"tag":"looking","confidence":0.1579617252628343},{"tag":"business","confidence":0.15571183899953384},{"tag":"smile","confidence":0.15438355357535655},{"tag":"mature","confidence":0.14688734434261697},{"tag":"attractive","confidence":0.13361367033581031},{"tag":"lifestyle","confidence":0.12992043529193897},{"tag":"hand","confidence":0.12735821349235582},{"tag":"holding","confidence":0.12355007069195917},{"tag":"standing","confidence":0.1229508128660921},{"tag":"boy","confidence":0.1216444644623622},{"tag":"executive","confidence":0.11187875768189989},{"tag":"black","confidence":0.11010645150817014},{"tag":"suit","confidence":0.10927890953905768},{"tag":"tie","confidence":0.10618284580665172},{"tag":"one
|
46
|
+
person","confidence":0.10453506696177182},{"tag":"senior","confidence":0.10431091360009193},{"tag":"guy","confidence":0.10391495645122249},{"tag":"casual","confidence":0.10351146303199923},{"tag":"close","confidence":0.1034506610016323},{"tag":"work","confidence":0.10211116730813546},{"tag":"head","confidence":0.10156530632522504},{"tag":"serious","confidence":0.09743612627363675},{"tag":"model","confidence":0.09610429140401384},{"tag":"sitting","confidence":0.0958882256164056},{"tag":"hair","confidence":0.095866173461237},{"tag":"occupation","confidence":0.09450395126949085},{"tag":"glasses","confidence":0.09449592346948997},{"tag":"hat","confidence":0.0940074299726412},{"tag":"alone","confidence":0.09328376841537846},{"tag":"job","confidence":0.09142264128541794},{"tag":"one","confidence":0.09118751516829648},{"tag":"office","confidence":0.08990688613102867},{"tag":"gesture","confidence":0.08865037591471614},{"tag":"corporate","confidence":0.08828812050569727},{"tag":"happiness","confidence":0.08670638586498682},{"tag":"phone","confidence":0.0850622332038946},{"tag":"elderly","confidence":0.07976172895098958},{"tag":"youth","confidence":0.07942132056430336},{"tag":"studio","confidence":0.07849703358706714},{"tag":"lady","confidence":0.07676805511562101},{"tag":"old","confidence":0.07663315151133311},{"tag":"worker","confidence":0.07498433813332145},{"tag":"indoors","confidence":0.07366468198102401},{"tag":"home","confidence":0.07342255856738392},{"tag":"pretty","confidence":0.07277674844122117},{"tag":"eyes","confidence":0.07229058881166095},{"tag":"uniform","confidence":0.07073310643910141},{"tag":"thinking","confidence":0.07067450215771667}]}'
|
47
47
|
http_version:
|
48
|
-
recorded_at: Thu,
|
48
|
+
recorded_at: Thu, 17 Sep 2015 11:17:36 GMT
|
49
49
|
recorded_with: VCR 2.9.3
|
@@ -12,7 +12,7 @@ http_interactions:
|
|
12
12
|
Accept:
|
13
13
|
- "*/*"
|
14
14
|
User-Agent:
|
15
|
-
- Aylien Text API Ruby Gem 0.
|
15
|
+
- Aylien Text API Ruby Gem 0.4.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
18
|
response:
|
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
Server:
|
24
24
|
- openresty/1.7.7.2
|
25
25
|
Date:
|
26
|
-
- Thu,
|
26
|
+
- Thu, 17 Sep 2015 11:18:40 GMT
|
27
27
|
Content-Type:
|
28
28
|
- text/plain; charset=us-ascii
|
29
29
|
Transfer-Encoding:
|
@@ -34,5 +34,5 @@ http_interactions:
|
|
34
34
|
encoding: UTF-8
|
35
35
|
string: Authentication parameters missing
|
36
36
|
http_version:
|
37
|
-
recorded_at: Thu,
|
37
|
+
recorded_at: Thu, 17 Sep 2015 11:18:40 GMT
|
38
38
|
recorded_with: VCR 2.9.3
|
@@ -12,7 +12,7 @@ http_interactions:
|
|
12
12
|
Accept:
|
13
13
|
- "*/*"
|
14
14
|
User-Agent:
|
15
|
-
- Aylien Text API Ruby Gem 0.
|
15
|
+
- Aylien Text API Ruby Gem 0.4.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
18
|
X-Aylien-Textapi-Application-Id:
|
@@ -27,7 +27,7 @@ http_interactions:
|
|
27
27
|
Server:
|
28
28
|
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
- Thu,
|
30
|
+
- Thu, 17 Sep 2015 11:18:40 GMT
|
31
31
|
Content-Type:
|
32
32
|
- application/json;charset=UTF-8
|
33
33
|
Content-Length:
|
@@ -37,9 +37,9 @@ http_interactions:
|
|
37
37
|
X-Ratelimit-Limit:
|
38
38
|
- '207000'
|
39
39
|
X-Ratelimit-Remaining:
|
40
|
-
- '
|
40
|
+
- '206288'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1442534400'
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: |-
|
@@ -53,5 +53,5 @@ http_interactions:
|
|
53
53
|
}]
|
54
54
|
}
|
55
55
|
http_version:
|
56
|
-
recorded_at: Thu,
|
56
|
+
recorded_at: Thu, 17 Sep 2015 11:18:40 GMT
|
57
57
|
recorded_with: VCR 2.9.3
|
@@ -12,7 +12,7 @@ http_interactions:
|
|
12
12
|
Accept:
|
13
13
|
- "*/*"
|
14
14
|
User-Agent:
|
15
|
-
- Aylien Text API Ruby Gem 0.
|
15
|
+
- Aylien Text API Ruby Gem 0.4.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
18
|
X-Aylien-Textapi-Application-Id:
|
@@ -27,7 +27,7 @@ http_interactions:
|
|
27
27
|
Server:
|
28
28
|
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
- Thu,
|
30
|
+
- Thu, 17 Sep 2015 11:18:41 GMT
|
31
31
|
Content-Type:
|
32
32
|
- text/plain; charset=us-ascii
|
33
33
|
Transfer-Encoding:
|
@@ -38,5 +38,5 @@ http_interactions:
|
|
38
38
|
encoding: UTF-8
|
39
39
|
string: Authentication failed
|
40
40
|
http_version:
|
41
|
-
recorded_at: Thu,
|
41
|
+
recorded_at: Thu, 17 Sep 2015 11:18:41 GMT
|
42
42
|
recorded_with: VCR 2.9.3
|
@@ -12,7 +12,7 @@ http_interactions:
|
|
12
12
|
Accept:
|
13
13
|
- "*/*"
|
14
14
|
User-Agent:
|
15
|
-
- Aylien Text API Ruby Gem 0.
|
15
|
+
- Aylien Text API Ruby Gem 0.4.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
18
|
X-Aylien-Textapi-Application-Id:
|
@@ -27,7 +27,7 @@ http_interactions:
|
|
27
27
|
Server:
|
28
28
|
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
- Thu,
|
30
|
+
- Thu, 17 Sep 2015 11:18:41 GMT
|
31
31
|
Content-Type:
|
32
32
|
- application/json;charset=UTF-8
|
33
33
|
Content-Length:
|
@@ -37,17 +37,17 @@ http_interactions:
|
|
37
37
|
X-Ratelimit-Limit:
|
38
38
|
- '207000'
|
39
39
|
X-Ratelimit-Remaining:
|
40
|
-
- '
|
40
|
+
- '206286'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1442534400'
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: |-
|
46
46
|
{
|
47
47
|
"text": "Hello there! How's it going?",
|
48
48
|
"lang": "en",
|
49
|
-
"confidence": 0.
|
49
|
+
"confidence": 0.9999985594207742
|
50
50
|
}
|
51
51
|
http_version:
|
52
|
-
recorded_at: Thu,
|
52
|
+
recorded_at: Thu, 17 Sep 2015 11:18:41 GMT
|
53
53
|
recorded_with: VCR 2.9.3
|
@@ -12,7 +12,7 @@ http_interactions:
|
|
12
12
|
Accept:
|
13
13
|
- "*/*"
|
14
14
|
User-Agent:
|
15
|
-
- Aylien Text API Ruby Gem 0.
|
15
|
+
- Aylien Text API Ruby Gem 0.4.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
18
|
X-Aylien-Textapi-Application-Id:
|
@@ -27,7 +27,7 @@ http_interactions:
|
|
27
27
|
Server:
|
28
28
|
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
- Thu,
|
30
|
+
- Thu, 17 Sep 2015 11:18:43 GMT
|
31
31
|
Content-Type:
|
32
32
|
- application/json;charset=UTF-8
|
33
33
|
Content-Length:
|
@@ -37,9 +37,9 @@ http_interactions:
|
|
37
37
|
X-Ratelimit-Limit:
|
38
38
|
- '207000'
|
39
39
|
X-Ratelimit-Remaining:
|
40
|
-
- '
|
40
|
+
- '206284'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1442534400'
|
43
43
|
body:
|
44
44
|
encoding: ASCII-8BIT
|
45
45
|
string: !binary |-
|
@@ -71,7 +71,7 @@ http_interactions:
|
|
71
71
|
IGdhbWUgb24gVFYgb3IgaW4gdGhlIHN0YW5kcywgbm90IG9uZXMgdGhhdCB5
|
72
72
|
b3UgY2FuIG5vcm1hbGx5IHNlZSBvbiB0aGUgZmllbGQuXCJcbkFsc28gcmVs
|
73
73
|
YXRlZCB0byB0aGlzIHN0b3J5XG4iLAogICJsYW5nIjogImVuIiwKICAiY29u
|
74
|
-
|
74
|
+
ZmlkZW5jZSI6IDAuOTk5OTk5MjEyNzg5Njk1NAp9
|
75
75
|
http_version:
|
76
|
-
recorded_at: Thu,
|
76
|
+
recorded_at: Thu, 17 Sep 2015 11:18:43 GMT
|
77
77
|
recorded_with: VCR 2.9.3
|
@@ -12,7 +12,7 @@ http_interactions:
|
|
12
12
|
Accept:
|
13
13
|
- "*/*"
|
14
14
|
User-Agent:
|
15
|
-
- Aylien Text API Ruby Gem 0.
|
15
|
+
- Aylien Text API Ruby Gem 0.4.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
18
|
X-Aylien-Textapi-Application-Id:
|
@@ -27,7 +27,7 @@ http_interactions:
|
|
27
27
|
Server:
|
28
28
|
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
- Thu,
|
30
|
+
- Thu, 17 Sep 2015 11:18:40 GMT
|
31
31
|
Content-Type:
|
32
32
|
- application/json;charset=UTF-8
|
33
33
|
Content-Length:
|
@@ -37,17 +37,17 @@ http_interactions:
|
|
37
37
|
X-Ratelimit-Limit:
|
38
38
|
- '207000'
|
39
39
|
X-Ratelimit-Remaining:
|
40
|
-
- '
|
40
|
+
- '206287'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1442534400'
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: |-
|
46
46
|
{
|
47
47
|
"text": "Hello there! How's it going?",
|
48
48
|
"lang": "en",
|
49
|
-
"confidence": 0.
|
49
|
+
"confidence": 0.9999955836874906
|
50
50
|
}
|
51
51
|
http_version:
|
52
|
-
recorded_at: Thu,
|
52
|
+
recorded_at: Thu, 17 Sep 2015 11:18:40 GMT
|
53
53
|
recorded_with: VCR 2.9.3
|
@@ -12,7 +12,7 @@ http_interactions:
|
|
12
12
|
Accept:
|
13
13
|
- "*/*"
|
14
14
|
User-Agent:
|
15
|
-
- Aylien Text API Ruby Gem 0.
|
15
|
+
- Aylien Text API Ruby Gem 0.4.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
18
|
X-Aylien-Textapi-Application-Id:
|
@@ -27,7 +27,7 @@ http_interactions:
|
|
27
27
|
Server:
|
28
28
|
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
- Thu,
|
30
|
+
- Thu, 17 Sep 2015 11:18:42 GMT
|
31
31
|
Content-Type:
|
32
32
|
- application/json;charset=UTF-8
|
33
33
|
Content-Length:
|
@@ -37,9 +37,9 @@ http_interactions:
|
|
37
37
|
X-Ratelimit-Limit:
|
38
38
|
- '207000'
|
39
39
|
X-Ratelimit-Remaining:
|
40
|
-
- '
|
40
|
+
- '206285'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1442534400'
|
43
43
|
body:
|
44
44
|
encoding: ASCII-8BIT
|
45
45
|
string: !binary |-
|
@@ -71,7 +71,7 @@ http_interactions:
|
|
71
71
|
IGdhbWUgb24gVFYgb3IgaW4gdGhlIHN0YW5kcywgbm90IG9uZXMgdGhhdCB5
|
72
72
|
b3UgY2FuIG5vcm1hbGx5IHNlZSBvbiB0aGUgZmllbGQuXCJcbkFsc28gcmVs
|
73
73
|
YXRlZCB0byB0aGlzIHN0b3J5XG4iLAogICJsYW5nIjogImVuIiwKICAiY29u
|
74
|
-
|
74
|
+
ZmlkZW5jZSI6IDAuOTk5OTk4MjI0NDUzMjE0MQp9
|
75
75
|
http_version:
|
76
|
-
recorded_at: Thu,
|
76
|
+
recorded_at: Thu, 17 Sep 2015 11:18:42 GMT
|
77
77
|
recorded_with: VCR 2.9.3
|