aylien_text_api 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/Gemfile.lock +1 -1
  4. data/lib/aylien_text_api/client.rb +15 -0
  5. data/lib/aylien_text_api/configuration.rb +2 -1
  6. data/lib/aylien_text_api/version.rb +1 -1
  7. data/spec/fixtures/aylien_text_api/client/classify_with_invalid_client.yml +4 -4
  8. data/spec/fixtures/aylien_text_api/client/classify_with_invalid_params.yml +6 -6
  9. data/spec/fixtures/aylien_text_api/client/classify_with_text.yml +6 -6
  10. data/spec/fixtures/aylien_text_api/client/classify_with_unauthenticated_client.yml +4 -4
  11. data/spec/fixtures/aylien_text_api/client/classify_with_valid_url.yml +6 -6
  12. data/spec/fixtures/aylien_text_api/client/classify_with_value_as_text.yml +6 -6
  13. data/spec/fixtures/aylien_text_api/client/classify_with_value_as_valid_url.yml +6 -6
  14. data/spec/fixtures/aylien_text_api/client/concepts_with_invalid_client.yml +4 -4
  15. data/spec/fixtures/aylien_text_api/client/concepts_with_invalid_params.yml +6 -6
  16. data/spec/fixtures/aylien_text_api/client/concepts_with_text.yml +6 -6
  17. data/spec/fixtures/aylien_text_api/client/concepts_with_unauthenticated_client.yml +4 -4
  18. data/spec/fixtures/aylien_text_api/client/concepts_with_valid_url.yml +6 -6
  19. data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_text.yml +6 -6
  20. data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_valid_url.yml +6 -6
  21. data/spec/fixtures/aylien_text_api/client/entities_with_invalid_client.yml +4 -4
  22. data/spec/fixtures/aylien_text_api/client/entities_with_invalid_params.yml +17 -8
  23. data/spec/fixtures/aylien_text_api/client/entities_with_text.yml +10 -10
  24. data/spec/fixtures/aylien_text_api/client/entities_with_unauthenticated_client.yml +4 -4
  25. data/spec/fixtures/aylien_text_api/client/entities_with_valid_url.yml +455 -456
  26. data/spec/fixtures/aylien_text_api/client/entities_with_value_as_text.yml +10 -10
  27. data/spec/fixtures/aylien_text_api/client/entities_with_value_as_valid_url.yml +455 -455
  28. data/spec/fixtures/aylien_text_api/client/extract_with_invalid_client.yml +4 -4
  29. data/spec/fixtures/aylien_text_api/client/extract_with_invalid_params.yml +6 -6
  30. data/spec/fixtures/aylien_text_api/client/extract_with_unauthenticated_client.yml +4 -4
  31. data/spec/fixtures/aylien_text_api/client/extract_with_valid_url.yml +6 -6
  32. data/spec/fixtures/aylien_text_api/client/extract_with_value_as_text.yml +6 -6
  33. data/spec/fixtures/aylien_text_api/client/extract_with_value_as_valid_url.yml +6 -6
  34. data/spec/fixtures/aylien_text_api/client/hashtags_with_invalid_client.yml +4 -4
  35. data/spec/fixtures/aylien_text_api/client/hashtags_with_invalid_params.yml +6 -6
  36. data/spec/fixtures/aylien_text_api/client/hashtags_with_text.yml +9 -8
  37. data/spec/fixtures/aylien_text_api/client/hashtags_with_unauthenticated_client.yml +4 -4
  38. data/spec/fixtures/aylien_text_api/client/hashtags_with_valid_url.yml +6 -6
  39. data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_text.yml +6 -6
  40. data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_valid_url.yml +6 -6
  41. data/spec/fixtures/aylien_text_api/client/image_tags_with_invalid_client.yml +38 -0
  42. data/spec/fixtures/aylien_text_api/client/image_tags_with_invalid_params.yml +62 -0
  43. data/spec/fixtures/aylien_text_api/client/image_tags_with_unauthenticated_client.yml +42 -0
  44. data/spec/fixtures/aylien_text_api/client/image_tags_with_valid_url.yml +48 -0
  45. data/spec/fixtures/aylien_text_api/client/image_tags_with_value_as_text.yml +62 -0
  46. data/spec/fixtures/aylien_text_api/client/image_tags_with_value_as_valid_url.yml +48 -0
  47. data/spec/fixtures/aylien_text_api/client/language_with_invalid_client.yml +4 -4
  48. data/spec/fixtures/aylien_text_api/client/language_with_invalid_params.yml +6 -6
  49. data/spec/fixtures/aylien_text_api/client/language_with_unauthenticated_client.yml +4 -4
  50. data/spec/fixtures/aylien_text_api/client/language_with_valid_text.yml +8 -8
  51. data/spec/fixtures/aylien_text_api/client/language_with_valid_url.yml +7 -7
  52. data/spec/fixtures/aylien_text_api/client/language_with_value_as_text.yml +7 -7
  53. data/spec/fixtures/aylien_text_api/client/language_with_value_as_valid_url.yml +7 -7
  54. data/spec/fixtures/aylien_text_api/client/microformats_with_invalid_client.yml +4 -4
  55. data/spec/fixtures/aylien_text_api/client/microformats_with_invalid_params.yml +6 -6
  56. data/spec/fixtures/aylien_text_api/client/microformats_with_unauthenticated_client.yml +4 -4
  57. data/spec/fixtures/aylien_text_api/client/microformats_with_valid_url.yml +7 -7
  58. data/spec/fixtures/aylien_text_api/client/microformats_with_value_as_valid_url.yml +7 -7
  59. data/spec/fixtures/aylien_text_api/client/related_with_invalid_client.yml +4 -4
  60. data/spec/fixtures/aylien_text_api/client/related_with_invalid_params.yml +6 -6
  61. data/spec/fixtures/aylien_text_api/client/related_with_phrase.yml +6 -6
  62. data/spec/fixtures/aylien_text_api/client/related_with_unauthenticated_client.yml +4 -4
  63. data/spec/fixtures/aylien_text_api/client/related_with_value_as_phrase.yml +6 -6
  64. data/spec/fixtures/aylien_text_api/client/related_with_value_as_valid_url.yml +6 -6
  65. data/spec/fixtures/aylien_text_api/client/sentiment_with_invalid_client.yml +4 -4
  66. data/spec/fixtures/aylien_text_api/client/sentiment_with_invalid_params.yml +6 -6
  67. data/spec/fixtures/aylien_text_api/client/sentiment_with_text.yml +6 -6
  68. data/spec/fixtures/aylien_text_api/client/sentiment_with_unauthenticated_client.yml +4 -4
  69. data/spec/fixtures/aylien_text_api/client/sentiment_with_valid_url.yml +6 -6
  70. data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_text.yml +6 -6
  71. data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_valid_url.yml +6 -6
  72. data/spec/fixtures/aylien_text_api/client/summarize_with_invalid_client.yml +4 -4
  73. data/spec/fixtures/aylien_text_api/client/summarize_with_invalid_params.yml +6 -6
  74. data/spec/fixtures/aylien_text_api/client/summarize_with_title_and_text.yml +6 -6
  75. data/spec/fixtures/aylien_text_api/client/summarize_with_unauthenticated_client.yml +4 -4
  76. data/spec/fixtures/aylien_text_api/client/summarize_with_valid_url.yml +6 -6
  77. data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_title.yml +6 -6
  78. data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_without_title.yml +6 -6
  79. data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_valid_url.yml +6 -6
  80. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_invalid_client.yml +4 -4
  81. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_invalid_params.yml +6 -6
  82. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_text.yml +7 -7
  83. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_unauthenticated_client.yml +4 -4
  84. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_valid_url.yml +10 -9
  85. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_value_as_text.yml +6 -6
  86. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_value_as_valid_url.yml +10 -9
  87. data/spec/lib/aylien_text_api/client_spec.rb +1 -0
  88. data/spec/lib/aylien_text_api/image_tags.rb +79 -0
  89. metadata +17 -3
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.aylien.com/api/v1/image-tags
6
+ body:
7
+ encoding: US-ASCII
8
+ string: url=http%3A%2F%2Faylien.com%2Fimages%2Fmichaelo.png
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Aylien Text API Ruby Gem 0.2.0
16
+ Content-Type:
17
+ - application/x-www-form-urlencoded
18
+ response:
19
+ status:
20
+ code: 403
21
+ message: Forbidden
22
+ headers:
23
+ Server:
24
+ - openresty/1.7.7.2
25
+ Date:
26
+ - Mon, 16 Mar 2015 14:33:12 GMT
27
+ Content-Type:
28
+ - text/plain; charset=us-ascii
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ body:
34
+ encoding: UTF-8
35
+ string: Authentication parameters missing
36
+ http_version:
37
+ recorded_at: Mon, 16 Mar 2015 14:33:12 GMT
38
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,62 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.aylien.com/api/v1/image-tags
6
+ body:
7
+ encoding: US-ASCII
8
+ string: text
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Aylien Text API Ruby Gem 0.2.0
16
+ Content-Type:
17
+ - application/x-www-form-urlencoded
18
+ App-Id:
19
+ - "<PASSWORD>"
20
+ App-Key:
21
+ - "<PASSWORD>"
22
+ response:
23
+ status:
24
+ code: 400
25
+ message: Bad Request
26
+ headers:
27
+ Server:
28
+ - openresty/1.7.7.2
29
+ Date:
30
+ - Mon, 16 Mar 2015 14:33:11 GMT
31
+ Content-Type:
32
+ - application/json;charset=UTF-8
33
+ Content-Length:
34
+ - '345'
35
+ Connection:
36
+ - keep-alive
37
+ X-Ratelimit-Limit:
38
+ - '207000'
39
+ X-Ratelimit-Remaining:
40
+ - '205585'
41
+ X-Ratelimit-Reset:
42
+ - '1426550400'
43
+ body:
44
+ encoding: UTF-8
45
+ string: |-
46
+ {
47
+ "error": "requirement failed: Form field 'url' Required",
48
+ "errors": [{
49
+ "reason": "required",
50
+ "message": "Form field 'url' Required",
51
+ "locationType": "parameter",
52
+ "location": "url"
53
+ }, {
54
+ "reason": "required",
55
+ "message": "Query parameter 'url' Required",
56
+ "locationType": "parameter",
57
+ "location": "url"
58
+ }]
59
+ }
60
+ http_version:
61
+ recorded_at: Mon, 16 Mar 2015 14:33:11 GMT
62
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.aylien.com/api/v1/image-tags
6
+ body:
7
+ encoding: US-ASCII
8
+ string: url=http%3A%2F%2Faylien.com%2Fimages%2Fmichaelo.png
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Aylien Text API Ruby Gem 0.2.0
16
+ Content-Type:
17
+ - application/x-www-form-urlencoded
18
+ App-Id:
19
+ - random_string
20
+ App-Key:
21
+ - random_string
22
+ response:
23
+ status:
24
+ code: 403
25
+ message: Forbidden
26
+ headers:
27
+ Server:
28
+ - openresty/1.7.7.2
29
+ Date:
30
+ - Mon, 16 Mar 2015 14:33:11 GMT
31
+ Content-Type:
32
+ - text/plain; charset=us-ascii
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ body:
38
+ encoding: UTF-8
39
+ string: Authentication failed
40
+ http_version:
41
+ recorded_at: Mon, 16 Mar 2015 14:33:11 GMT
42
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.aylien.com/api/v1/image-tags
6
+ body:
7
+ encoding: US-ASCII
8
+ string: url=http%3A%2F%2Faylien.com%2Fimages%2Fmichaelo.png
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Aylien Text API Ruby Gem 0.2.0
16
+ Content-Type:
17
+ - application/x-www-form-urlencoded
18
+ App-Id:
19
+ - "<PASSWORD>"
20
+ App-Key:
21
+ - "<PASSWORD>"
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Server:
28
+ - openresty/1.7.7.2
29
+ Date:
30
+ - Mon, 16 Mar 2015 14:33:11 GMT
31
+ Content-Type:
32
+ - application/json;charset=UTF-8
33
+ Content-Length:
34
+ - '3154'
35
+ Connection:
36
+ - keep-alive
37
+ X-Ratelimit-Limit:
38
+ - '207000'
39
+ X-Ratelimit-Remaining:
40
+ - '205596'
41
+ X-Ratelimit-Reset:
42
+ - '1426550400'
43
+ body:
44
+ encoding: UTF-8
45
+ string: '{"image":"http://aylien.com/images/michaelo.png","tags":[{"tag":"man","confidence":0.3828240407001911},{"tag":"male","confidence":0.34313045945162235},{"tag":"caucasian","confidence":0.2857856334762856},{"tag":"person","confidence":0.24621460504435},{"tag":"portrait","confidence":0.2409671660455617},{"tag":"people","confidence":0.24095074058961377},{"tag":"adult","confidence":0.23400797884900842},{"tag":"business","confidence":0.2113370112960779},{"tag":"face","confidence":0.20614719474012386},{"tag":"suit","confidence":0.20015157772804085},{"tag":"expression","confidence":0.1890961804063794},{"tag":"handsome","confidence":0.18364288542228124},{"tag":"businessman","confidence":0.18248856663307414},{"tag":"looking","confidence":0.1789521780936461},{"tag":"black","confidence":0.15240090119668576},{"tag":"sitting","confidence":0.15074092827821586},{"tag":"holding","confidence":0.14561924820222114},{"tag":"professional","confidence":0.14229122444812603},{"tag":"happy","confidence":0.13667237504697832},{"tag":"office","confidence":0.1336233977195797},{"tag":"smile","confidence":0.13292314359043356},{"tag":"corporate","confidence":0.1271356986026965},{"tag":"casual","confidence":0.12633317203035813},{"tag":"attractive","confidence":0.1258087772276324},{"tag":"work","confidence":0.12278615003240921},{"tag":"smiling","confidence":0.12226115114925779},{"tag":"one","confidence":0.11835568606522216},{"tag":"hair","confidence":0.11725824855078498},{"tag":"serious","confidence":0.1142303995120345},{"tag":"fashion","confidence":0.11302837841775058},{"tag":"mature","confidence":0.11142953706468728},{"tag":"working","confidence":0.10564698394058411},{"tag":"hand","confidence":0.10508710095508628},{"tag":"manager","confidence":0.10372543070923515},{"tag":"men","confidence":0.10349135863737166},{"tag":"model","confidence":0.1027018579474755},{"tag":"executive","confidence":0.1026028024919642},{"tag":"lifestyle","confidence":0.10169704329140629},{"tag":"make","confidence":0.10119220655297764},{"tag":"head","confidence":0.10027349874606023},{"tag":"dark","confidence":0.10009514504823279},{"tag":"success","confidence":0.09807697608191061},{"tag":"sexy","confidence":0.0978626810559277},{"tag":"american","confidence":0.09614158586376689},{"tag":"senior","confidence":0.09482034864538473},{"tag":"occupation","confidence":0.09350171728102956},{"tag":"tie","confidence":0.08762841867319845},{"tag":"successful","confidence":0.0844585710665222},{"tag":"businesswoman","confidence":0.08412731613019783},{"tag":"posing","confidence":0.08244083111047358},{"tag":"job","confidence":0.08220536161999352},{"tag":"indoors","confidence":0.08102732400906743},{"tag":"human","confidence":0.0774760469879749},{"tag":"close","confidence":0.07707740981937584},{"tag":"cheerful","confidence":0.07558562806720315},{"tag":"fun","confidence":0.07494794445518303},{"tag":"boy","confidence":0.07238959336645391},{"tag":"pretty","confidence":0.07230463533929983},{"tag":"eyes","confidence":0.07151279760048233},{"tag":"hands","confidence":0.07129851472391158},{"tag":"jacket","confidence":0.07105841937235287},{"tag":"youth","confidence":0.07081949507274561}]}'
46
+ http_version:
47
+ recorded_at: Mon, 16 Mar 2015 14:33:11 GMT
48
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,62 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.aylien.com/api/v1/image-tags
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Aylien Text API Ruby Gem 0.2.0
16
+ Content-Type:
17
+ - application/x-www-form-urlencoded
18
+ App-Id:
19
+ - "<PASSWORD>"
20
+ App-Key:
21
+ - "<PASSWORD>"
22
+ response:
23
+ status:
24
+ code: 400
25
+ message: Bad Request
26
+ headers:
27
+ Server:
28
+ - openresty/1.7.7.2
29
+ Date:
30
+ - Mon, 16 Mar 2015 14:33:12 GMT
31
+ Content-Type:
32
+ - application/json;charset=UTF-8
33
+ Content-Length:
34
+ - '345'
35
+ Connection:
36
+ - keep-alive
37
+ X-Ratelimit-Limit:
38
+ - '207000'
39
+ X-Ratelimit-Remaining:
40
+ - '205584'
41
+ X-Ratelimit-Reset:
42
+ - '1426550400'
43
+ body:
44
+ encoding: UTF-8
45
+ string: |-
46
+ {
47
+ "error": "requirement failed: Form field 'url' Required",
48
+ "errors": [{
49
+ "reason": "required",
50
+ "message": "Form field 'url' Required",
51
+ "locationType": "parameter",
52
+ "location": "url"
53
+ }, {
54
+ "reason": "required",
55
+ "message": "Query parameter 'url' Required",
56
+ "locationType": "parameter",
57
+ "location": "url"
58
+ }]
59
+ }
60
+ http_version:
61
+ recorded_at: Mon, 16 Mar 2015 14:33:12 GMT
62
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.aylien.com/api/v1/image-tags
6
+ body:
7
+ encoding: US-ASCII
8
+ string: url=http%3A%2F%2Faylien.com%2Fimages%2Fmichaelo.png
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Aylien Text API Ruby Gem 0.2.0
16
+ Content-Type:
17
+ - application/x-www-form-urlencoded
18
+ App-Id:
19
+ - "<PASSWORD>"
20
+ App-Key:
21
+ - "<PASSWORD>"
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Server:
28
+ - openresty/1.7.7.2
29
+ Date:
30
+ - Mon, 16 Mar 2015 14:33:14 GMT
31
+ Content-Type:
32
+ - application/json;charset=UTF-8
33
+ Content-Length:
34
+ - '3157'
35
+ Connection:
36
+ - keep-alive
37
+ X-Ratelimit-Limit:
38
+ - '207000'
39
+ X-Ratelimit-Remaining:
40
+ - '205574'
41
+ X-Ratelimit-Reset:
42
+ - '1426550400'
43
+ body:
44
+ encoding: UTF-8
45
+ string: '{"image":"http://aylien.com/images/michaelo.png","tags":[{"tag":"man","confidence":0.3828240410124513},{"tag":"male","confidence":0.34313045973878525},{"tag":"caucasian","confidence":0.285785633634663},{"tag":"person","confidence":0.2462146050245204},{"tag":"portrait","confidence":0.24096716620823957},{"tag":"people","confidence":0.24095074095814423},{"tag":"adult","confidence":0.23400797914615765},{"tag":"business","confidence":0.2113370115663617},{"tag":"face","confidence":0.20614719485480687},{"tag":"suit","confidence":0.20015157808011869},{"tag":"expression","confidence":0.1890961810979611},{"tag":"handsome","confidence":0.1836428859652077},{"tag":"businessman","confidence":0.18248856702840988},{"tag":"looking","confidence":0.17895217885888964},{"tag":"black","confidence":0.15240090097836684},{"tag":"sitting","confidence":0.1507409285350656},{"tag":"holding","confidence":0.1456192488789039},{"tag":"professional","confidence":0.14229122451220452},{"tag":"happy","confidence":0.13667237540706897},{"tag":"office","confidence":0.1336233978631446},{"tag":"smile","confidence":0.13292314374339223},{"tag":"corporate","confidence":0.12713569886706247},{"tag":"casual","confidence":0.12633317220619272},{"tag":"attractive","confidence":0.1258087772732743},{"tag":"work","confidence":0.12278614992850433},{"tag":"smiling","confidence":0.12226115121006557},{"tag":"one","confidence":0.11835568594657789},{"tag":"hair","confidence":0.11725824843551508},{"tag":"serious","confidence":0.1142303998193662},{"tag":"fashion","confidence":0.1130283784503821},{"tag":"mature","confidence":0.11142953701746189},{"tag":"working","confidence":0.10564698389322037},{"tag":"hand","confidence":0.10508710102416158},{"tag":"manager","confidence":0.10372543054941859},{"tag":"men","confidence":0.10349135859675394},{"tag":"model","confidence":0.10270185778931236},{"tag":"executive","confidence":0.10260280301823574},{"tag":"lifestyle","confidence":0.1016970435618995},{"tag":"make","confidence":0.10119220614714126},{"tag":"head","confidence":0.10027349902698422},{"tag":"dark","confidence":0.10009514522883245},{"tag":"success","confidence":0.09807697622427339},{"tag":"sexy","confidence":0.09786268110172859},{"tag":"american","confidence":0.09614158601812486},{"tag":"senior","confidence":0.09482034880059242},{"tag":"occupation","confidence":0.09350171731258416},{"tag":"tie","confidence":0.08762841897207142},{"tag":"successful","confidence":0.08445857118473424},{"tag":"businesswoman","confidence":0.08412731616075109},{"tag":"posing","confidence":0.08244083122508428},{"tag":"job","confidence":0.08220536164936985},{"tag":"indoors","confidence":0.08102732415619879},{"tag":"human","confidence":0.07747604679859563},{"tag":"close","confidence":0.07707740988645055},{"tag":"cheerful","confidence":0.07558562814237123},{"tag":"fun","confidence":0.07494794480640193},{"tag":"boy","confidence":0.07238959336242223},{"tag":"pretty","confidence":0.07230463530684096},{"tag":"eyes","confidence":0.0715127976534865},{"tag":"hands","confidence":0.07129851484134297},{"tag":"jacket","confidence":0.07105841931546193},{"tag":"youth","confidence":0.07081949532389974}]}'
46
+ http_version:
47
+ recorded_at: Mon, 16 Mar 2015 14:33:14 GMT
48
+ 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.1.0
15
+ - Aylien Text API Ruby Gem 0.2.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  response:
@@ -21,9 +21,9 @@ http_interactions:
21
21
  message: Forbidden
22
22
  headers:
23
23
  Server:
24
- - openresty/1.5.12.1
24
+ - openresty/1.7.7.2
25
25
  Date:
26
- - Tue, 10 Feb 2015 14:07:11 GMT
26
+ - Mon, 16 Mar 2015 14:33:43 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: Tue, 10 Feb 2015 14:06:56 GMT
37
+ recorded_at: Mon, 16 Mar 2015 14:33:43 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.1.0
15
+ - Aylien Text API Ruby Gem 0.2.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  App-Id:
@@ -25,9 +25,9 @@ http_interactions:
25
25
  message: Bad Request
26
26
  headers:
27
27
  Server:
28
- - openresty/1.5.12.1
28
+ - openresty/1.7.7.2
29
29
  Date:
30
- - Tue, 10 Feb 2015 14:07:07 GMT
30
+ - Mon, 16 Mar 2015 14:33:40 GMT
31
31
  Content-Type:
32
32
  - application/json;charset=UTF-8
33
33
  Content-Length:
@@ -37,12 +37,12 @@ http_interactions:
37
37
  X-Ratelimit-Limit:
38
38
  - '207000'
39
39
  X-Ratelimit-Remaining:
40
- - '205358'
40
+ - '205536'
41
41
  X-Ratelimit-Reset:
42
- - '1423612800'
42
+ - '1426550400'
43
43
  body:
44
44
  encoding: UTF-8
45
45
  string: '{"error" : "requirement failed: you must either provide url or text."}'
46
46
  http_version:
47
- recorded_at: Tue, 10 Feb 2015 14:06:52 GMT
47
+ recorded_at: Mon, 16 Mar 2015 14:33:40 GMT
48
48
  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.1.0
15
+ - Aylien Text API Ruby Gem 0.2.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  App-Id:
@@ -25,9 +25,9 @@ http_interactions:
25
25
  message: Forbidden
26
26
  headers:
27
27
  Server:
28
- - openresty/1.5.12.1
28
+ - openresty/1.7.7.2
29
29
  Date:
30
- - Tue, 10 Feb 2015 14:07:07 GMT
30
+ - Mon, 16 Mar 2015 14:33:40 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: Tue, 10 Feb 2015 14:06:52 GMT
41
+ recorded_at: Mon, 16 Mar 2015 14:33:40 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.1.0
15
+ - Aylien Text API Ruby Gem 0.2.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  App-Id:
@@ -25,29 +25,29 @@ http_interactions:
25
25
  message: OK
26
26
  headers:
27
27
  Server:
28
- - openresty/1.5.12.1
28
+ - openresty/1.7.7.2
29
29
  Date:
30
- - Tue, 10 Feb 2015 14:07:11 GMT
30
+ - Mon, 16 Mar 2015 14:33:43 GMT
31
31
  Content-Type:
32
32
  - application/json;charset=UTF-8
33
33
  Content-Length:
34
- - '96'
34
+ - '95'
35
35
  Connection:
36
36
  - keep-alive
37
37
  X-Ratelimit-Limit:
38
38
  - '207000'
39
39
  X-Ratelimit-Remaining:
40
- - '205354'
40
+ - '205534'
41
41
  X-Ratelimit-Reset:
42
- - '1423612800'
42
+ - '1426550400'
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.9999965950762861
49
+ "confidence": 0.999996327833589
50
50
  }
51
51
  http_version:
52
- recorded_at: Tue, 10 Feb 2015 14:06:57 GMT
52
+ recorded_at: Mon, 16 Mar 2015 14:33:43 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.1.0
15
+ - Aylien Text API Ruby Gem 0.2.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  App-Id:
@@ -25,9 +25,9 @@ http_interactions:
25
25
  message: OK
26
26
  headers:
27
27
  Server:
28
- - openresty/1.5.12.1
28
+ - openresty/1.7.7.2
29
29
  Date:
30
- - Tue, 10 Feb 2015 14:07:10 GMT
30
+ - Mon, 16 Mar 2015 14:33:44 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
- - '205355'
40
+ - '205532'
41
41
  X-Ratelimit-Reset:
42
- - '1423612800'
42
+ - '1426550400'
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
- ZmlkZW5jZSI6IDAuOTk5OTk4MDk4OTI0NTU1Mgp9
74
+ ZmlkZW5jZSI6IDAuOTk5OTk3Nzg4OTE3Njg0Mwp9
75
75
  http_version:
76
- recorded_at: Tue, 10 Feb 2015 14:06:55 GMT
76
+ recorded_at: Mon, 16 Mar 2015 14:33:44 GMT
77
77
  recorded_with: VCR 2.9.3