aylien_text_api 0.0.4 → 0.1.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 (87) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/LICENSE +1 -1
  4. data/lib/aylien_text_api.rb +1 -1
  5. data/lib/aylien_text_api/client.rb +57 -13
  6. data/lib/aylien_text_api/configuration.rb +14 -3
  7. data/lib/aylien_text_api/connection.rb +4 -2
  8. data/lib/aylien_text_api/error.rb +1 -1
  9. data/lib/aylien_text_api/version.rb +2 -2
  10. data/spec/fixtures/aylien_text_api/client/classify_with_invalid_client.yml +7 -5
  11. data/spec/fixtures/aylien_text_api/client/classify_with_invalid_params.yml +16 -8
  12. data/spec/fixtures/aylien_text_api/client/classify_with_text.yml +25 -16
  13. data/spec/fixtures/aylien_text_api/client/classify_with_unauthenticated_client.yml +7 -5
  14. data/spec/fixtures/aylien_text_api/client/classify_with_valid_url.yml +115 -67
  15. data/spec/fixtures/aylien_text_api/client/classify_with_value_as_text.yml +25 -16
  16. data/spec/fixtures/aylien_text_api/client/classify_with_value_as_valid_url.yml +115 -67
  17. data/spec/fixtures/aylien_text_api/client/concepts_with_invalid_client.yml +7 -5
  18. data/spec/fixtures/aylien_text_api/client/concepts_with_invalid_params.yml +16 -8
  19. data/spec/fixtures/aylien_text_api/client/concepts_with_text.yml +16 -8
  20. data/spec/fixtures/aylien_text_api/client/concepts_with_unauthenticated_client.yml +7 -5
  21. data/spec/fixtures/aylien_text_api/client/concepts_with_valid_url.yml +109 -32
  22. data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_text.yml +16 -8
  23. data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_valid_url.yml +109 -32
  24. data/spec/fixtures/aylien_text_api/client/entities_with_invalid_client.yml +7 -5
  25. data/spec/fixtures/aylien_text_api/client/entities_with_invalid_params.yml +16 -8
  26. data/spec/fixtures/aylien_text_api/client/entities_with_text.yml +16 -8
  27. data/spec/fixtures/aylien_text_api/client/entities_with_unauthenticated_client.yml +7 -5
  28. data/spec/fixtures/aylien_text_api/client/entities_with_valid_url.yml +466 -271
  29. data/spec/fixtures/aylien_text_api/client/entities_with_value_as_text.yml +16 -8
  30. data/spec/fixtures/aylien_text_api/client/entities_with_value_as_valid_url.yml +465 -271
  31. data/spec/fixtures/aylien_text_api/client/extract_with_invalid_client.yml +7 -5
  32. data/spec/fixtures/aylien_text_api/client/extract_with_invalid_params.yml +16 -8
  33. data/spec/fixtures/aylien_text_api/client/extract_with_unauthenticated_client.yml +7 -5
  34. data/spec/fixtures/aylien_text_api/client/extract_with_valid_url.yml +267 -154
  35. data/spec/fixtures/aylien_text_api/client/extract_with_value_as_text.yml +16 -8
  36. data/spec/fixtures/aylien_text_api/client/extract_with_value_as_valid_url.yml +267 -154
  37. data/spec/fixtures/aylien_text_api/client/hashtags_with_invalid_client.yml +7 -5
  38. data/spec/fixtures/aylien_text_api/client/hashtags_with_invalid_params.yml +16 -8
  39. data/spec/fixtures/aylien_text_api/client/hashtags_with_text.yml +31 -17
  40. data/spec/fixtures/aylien_text_api/client/hashtags_with_unauthenticated_client.yml +7 -5
  41. data/spec/fixtures/aylien_text_api/client/hashtags_with_valid_url.yml +51 -27
  42. data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_text.yml +32 -17
  43. data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_valid_url.yml +51 -27
  44. data/spec/fixtures/aylien_text_api/client/language_with_invalid_client.yml +7 -5
  45. data/spec/fixtures/aylien_text_api/client/language_with_invalid_params.yml +16 -8
  46. data/spec/fixtures/aylien_text_api/client/language_with_unauthenticated_client.yml +7 -5
  47. data/spec/fixtures/aylien_text_api/client/language_with_valid_text.yml +21 -9
  48. data/spec/fixtures/aylien_text_api/client/language_with_valid_url.yml +46 -26
  49. data/spec/fixtures/aylien_text_api/client/language_with_value_as_text.yml +21 -9
  50. data/spec/fixtures/aylien_text_api/client/language_with_value_as_valid_url.yml +46 -26
  51. data/spec/fixtures/aylien_text_api/client/microformats_with_invalid_client.yml +38 -0
  52. data/spec/fixtures/aylien_text_api/client/microformats_with_invalid_params.yml +62 -0
  53. data/spec/fixtures/aylien_text_api/client/microformats_with_unauthenticated_client.yml +42 -0
  54. data/spec/fixtures/aylien_text_api/client/microformats_with_valid_url.yml +84 -0
  55. data/spec/fixtures/aylien_text_api/client/microformats_with_value_as_valid_url.yml +84 -0
  56. data/spec/fixtures/aylien_text_api/client/related_with_invalid_client.yml +7 -5
  57. data/spec/fixtures/aylien_text_api/client/related_with_invalid_params.yml +17 -9
  58. data/spec/fixtures/aylien_text_api/client/related_with_phrase.yml +80 -28
  59. data/spec/fixtures/aylien_text_api/client/related_with_unauthenticated_client.yml +7 -5
  60. data/spec/fixtures/aylien_text_api/client/related_with_value_as_phrase.yml +80 -28
  61. data/spec/fixtures/aylien_text_api/client/related_with_value_as_valid_url.yml +16 -8
  62. data/spec/fixtures/aylien_text_api/client/sentiment_with_invalid_client.yml +7 -5
  63. data/spec/fixtures/aylien_text_api/client/sentiment_with_invalid_params.yml +16 -8
  64. data/spec/fixtures/aylien_text_api/client/sentiment_with_text.yml +23 -21
  65. data/spec/fixtures/aylien_text_api/client/sentiment_with_unauthenticated_client.yml +7 -5
  66. data/spec/fixtures/aylien_text_api/client/sentiment_with_valid_url.yml +49 -26
  67. data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_text.yml +23 -21
  68. data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_valid_url.yml +49 -26
  69. data/spec/fixtures/aylien_text_api/client/summarize_with_invalid_client.yml +7 -5
  70. data/spec/fixtures/aylien_text_api/client/summarize_with_invalid_params.yml +17 -9
  71. data/spec/fixtures/aylien_text_api/client/summarize_with_title_and_text.yml +20 -46
  72. data/spec/fixtures/aylien_text_api/client/summarize_with_unauthenticated_client.yml +7 -5
  73. data/spec/fixtures/aylien_text_api/client/summarize_with_valid_url.yml +61 -34
  74. data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_title.yml +20 -46
  75. data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_without_title.yml +17 -9
  76. data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_valid_url.yml +61 -34
  77. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_invalid_client.yml +38 -0
  78. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_invalid_params.yml +57 -0
  79. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_text.yml +53 -0
  80. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_unauthenticated_client.yml +42 -0
  81. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_valid_url.yml +96 -0
  82. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_value_as_text.yml +57 -0
  83. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_value_as_valid_url.yml +96 -0
  84. data/spec/lib/aylien_text_api/client_spec.rb +13 -3
  85. data/spec/lib/aylien_text_api/microformats.rb +66 -0
  86. data/spec/lib/aylien_text_api/unsupervised_classify.rb +87 -0
  87. metadata +105 -5
@@ -0,0 +1,62 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.aylien.com/api/v1/microformats
6
+ body:
7
+ encoding: US-ASCII
8
+ string: wrong_param=http%3A%2F%2Fcodepen.io%2Fanon%2Fpen%2FZYaKbz.html
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.1.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.5.12.1
29
+ Date:
30
+ - Tue, 10 Feb 2015 14:06:23 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
+ - '205369'
41
+ X-Ratelimit-Reset:
42
+ - '1423612800'
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: Tue, 10 Feb 2015 14:06:08 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/microformats
6
+ body:
7
+ encoding: US-ASCII
8
+ string: url=http%3A%2F%2Fcodepen.io%2Fanon%2Fpen%2FZYaKbz.html
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.1.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.5.12.1
29
+ Date:
30
+ - Tue, 10 Feb 2015 14:06:22 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: Tue, 10 Feb 2015 14:06:07 GMT
42
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,84 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.aylien.com/api/v1/microformats
6
+ body:
7
+ encoding: US-ASCII
8
+ string: url=http%3A%2F%2Fcodepen.io%2Fanon%2Fpen%2FZYaKbz.html
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.1.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.5.12.1
29
+ Date:
30
+ - Tue, 10 Feb 2015 14:06:24 GMT
31
+ Content-Type:
32
+ - application/json;charset=UTF-8
33
+ Content-Length:
34
+ - '1105'
35
+ Connection:
36
+ - keep-alive
37
+ X-Ratelimit-Limit:
38
+ - '207000'
39
+ X-Ratelimit-Remaining:
40
+ - '205367'
41
+ X-Ratelimit-Reset:
42
+ - '1423612800'
43
+ body:
44
+ encoding: UTF-8
45
+ string: |-
46
+ {
47
+ "hCards": [{
48
+ "birthday": "1951-05-26",
49
+ "organization": "Sally Ride Science",
50
+ "telephoneNumber": "+1.818.555.1212",
51
+ "location": {
52
+ "id": "9f15e27ff48eb28c57f49fb177a1ed0af78f93ab",
53
+ "latitude": "37.386013",
54
+ "longitude": "-122.082932"
55
+ },
56
+ "photo": "http://example.com/sk.jpg",
57
+ "email": "sally@example.com",
58
+ "url": "http://flickr.com/people/tantek/",
59
+ "fullName": "Sally Ride",
60
+ "structuredName": {
61
+ "familyName": "van der Harten",
62
+ "givenName": "Sally",
63
+ "honorificSuffix": "Ph.D.",
64
+ "id": "2eb24a276756ef8f5dff89f20db4716d5c177410",
65
+ "additionalName": "K.",
66
+ "honorificPrefix": "Dr."
67
+ },
68
+ "logo": "http://www.abc.com/pub/logos/abccorp.jpg",
69
+ "id": "7d021199b0d826eef60cd31279037270e38715cd",
70
+ "note": "1st American woman in space.",
71
+ "address": {
72
+ "streetAddress": "123 Main st.",
73
+ "countryName": "U.S.A",
74
+ "postalCode": "91316",
75
+ "id": "00cc73c1f9773a66613b04f11ce57317eecf636b",
76
+ "region": "California",
77
+ "locality": "Los Angeles"
78
+ },
79
+ "category": "physicist"
80
+ }]
81
+ }
82
+ http_version:
83
+ recorded_at: Tue, 10 Feb 2015 14:06:10 GMT
84
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,84 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.aylien.com/api/v1/microformats
6
+ body:
7
+ encoding: US-ASCII
8
+ string: url=http%3A%2F%2Fcodepen.io%2Fanon%2Fpen%2FZYaKbz.html
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.1.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.5.12.1
29
+ Date:
30
+ - Tue, 10 Feb 2015 14:06:24 GMT
31
+ Content-Type:
32
+ - application/json;charset=UTF-8
33
+ Content-Length:
34
+ - '1105'
35
+ Connection:
36
+ - keep-alive
37
+ X-Ratelimit-Limit:
38
+ - '207000'
39
+ X-Ratelimit-Remaining:
40
+ - '205368'
41
+ X-Ratelimit-Reset:
42
+ - '1423612800'
43
+ body:
44
+ encoding: UTF-8
45
+ string: |-
46
+ {
47
+ "hCards": [{
48
+ "birthday": "1951-05-26",
49
+ "organization": "Sally Ride Science",
50
+ "telephoneNumber": "+1.818.555.1212",
51
+ "location": {
52
+ "id": "9f15e27ff48eb28c57f49fb177a1ed0af78f93ab",
53
+ "latitude": "37.386013",
54
+ "longitude": "-122.082932"
55
+ },
56
+ "photo": "http://example.com/sk.jpg",
57
+ "email": "sally@example.com",
58
+ "url": "http://flickr.com/people/tantek/",
59
+ "fullName": "Sally Ride",
60
+ "structuredName": {
61
+ "familyName": "van der Harten",
62
+ "givenName": "Sally",
63
+ "honorificSuffix": "Ph.D.",
64
+ "id": "90ac0aceb093d7c37d51e95fe5837bd04a6ababc",
65
+ "additionalName": "K.",
66
+ "honorificPrefix": "Dr."
67
+ },
68
+ "logo": "http://www.abc.com/pub/logos/abccorp.jpg",
69
+ "id": "7d021199b0d826eef60cd31279037270e38715cd",
70
+ "note": "1st American woman in space.",
71
+ "address": {
72
+ "streetAddress": "123 Main st.",
73
+ "countryName": "U.S.A",
74
+ "postalCode": "91316",
75
+ "id": "00cc73c1f9773a66613b04f11ce57317eecf636b",
76
+ "region": "California",
77
+ "locality": "Los Angeles"
78
+ },
79
+ "category": "physicist"
80
+ }]
81
+ }
82
+ http_version:
83
+ recorded_at: Tue, 10 Feb 2015 14:06:09 GMT
84
+ recorded_with: VCR 2.9.3
@@ -7,10 +7,12 @@ http_interactions:
7
7
  encoding: US-ASCII
8
8
  string: phrase=android
9
9
  headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
10
12
  Accept:
11
- - ! '*/*'
13
+ - "*/*"
12
14
  User-Agent:
13
- - Aylien Text API Ruby Gem 0.0.1
15
+ - Aylien Text API Ruby Gem 0.1.0
14
16
  Content-Type:
15
17
  - application/x-www-form-urlencoded
16
18
  response:
@@ -21,7 +23,7 @@ http_interactions:
21
23
  Server:
22
24
  - openresty/1.5.12.1
23
25
  Date:
24
- - Tue, 02 Dec 2014 18:16:24 GMT
26
+ - Tue, 10 Feb 2015 14:06:05 GMT
25
27
  Content-Type:
26
28
  - text/plain; charset=us-ascii
27
29
  Transfer-Encoding:
@@ -29,8 +31,8 @@ http_interactions:
29
31
  Connection:
30
32
  - keep-alive
31
33
  body:
32
- encoding: US-ASCII
34
+ encoding: UTF-8
33
35
  string: Authentication parameters missing
34
36
  http_version:
35
- recorded_at: Tue, 02 Dec 2014 18:15:21 GMT
37
+ recorded_at: Tue, 10 Feb 2015 14:05:51 GMT
36
38
  recorded_with: VCR 2.9.3
@@ -5,18 +5,20 @@ http_interactions:
5
5
  uri: https://api.aylien.com/api/v1/related
6
6
  body:
7
7
  encoding: US-ASCII
8
- string: wrong_param
8
+ string: wrong_param=android
9
9
  headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
10
12
  Accept:
11
- - ! '*/*'
13
+ - "*/*"
12
14
  User-Agent:
13
- - Aylien Text API Ruby Gem 0.0.1
15
+ - Aylien Text API Ruby Gem 0.1.0
14
16
  Content-Type:
15
17
  - application/x-www-form-urlencoded
16
18
  App-Id:
17
- - <PASSWORD>
19
+ - "<PASSWORD>"
18
20
  App-Key:
19
- - <PASSWORD>
21
+ - "<PASSWORD>"
20
22
  response:
21
23
  status:
22
24
  code: 400
@@ -25,16 +27,22 @@ http_interactions:
25
27
  Server:
26
28
  - openresty/1.5.12.1
27
29
  Date:
28
- - Tue, 02 Dec 2014 18:16:26 GMT
30
+ - Tue, 10 Feb 2015 14:06:05 GMT
29
31
  Content-Type:
30
32
  - application/json;charset=UTF-8
31
33
  Content-Length:
32
34
  - '61'
33
35
  Connection:
34
36
  - keep-alive
37
+ X-Ratelimit-Limit:
38
+ - '207000'
39
+ X-Ratelimit-Remaining:
40
+ - '205387'
41
+ X-Ratelimit-Reset:
42
+ - '1423612800'
35
43
  body:
36
- encoding: US-ASCII
37
- string: ! '{"error" : "Request is missing required form field ''phrase''"}'
44
+ encoding: UTF-8
45
+ string: '{"error" : "Request is missing required form field ''phrase''"}'
38
46
  http_version:
39
- recorded_at: Tue, 02 Dec 2014 18:15:23 GMT
47
+ recorded_at: Tue, 10 Feb 2015 14:05:50 GMT
40
48
  recorded_with: VCR 2.9.3
@@ -7,16 +7,18 @@ http_interactions:
7
7
  encoding: US-ASCII
8
8
  string: phrase=android
9
9
  headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
10
12
  Accept:
11
- - ! '*/*'
13
+ - "*/*"
12
14
  User-Agent:
13
- - Aylien Text API Ruby Gem 0.0.1
15
+ - Aylien Text API Ruby Gem 0.1.0
14
16
  Content-Type:
15
17
  - application/x-www-form-urlencoded
16
18
  App-Id:
17
- - <PASSWORD>
19
+ - "<PASSWORD>"
18
20
  App-Key:
19
- - <PASSWORD>
21
+ - "<PASSWORD>"
20
22
  response:
21
23
  status:
22
24
  code: 200
@@ -25,36 +27,86 @@ http_interactions:
25
27
  Server:
26
28
  - openresty/1.5.12.1
27
29
  Date:
28
- - Tue, 02 Dec 2014 18:16:24 GMT
30
+ - Tue, 10 Feb 2015 14:06:04 GMT
29
31
  Content-Type:
30
32
  - application/json;charset=UTF-8
31
33
  Content-Length:
32
34
  - '1403'
33
35
  Connection:
34
36
  - keep-alive
37
+ X-Ratelimit-Limit:
38
+ - '207000'
39
+ X-Ratelimit-Remaining:
40
+ - '205389'
41
+ X-Ratelimit-Reset:
42
+ - '1423612800'
35
43
  body:
36
- encoding: US-ASCII
37
- string: ! "{\n \"phrase\": \"android\",\n \"related\": [{\n \"phrase\":
38
- \"ios\",\n \"distance\": 0.8744090795516968\n }, {\n \"phrase\": \"iphone\",\n
39
- \ \"distance\": 0.8465747237205505\n }, {\n \"phrase\": \"iphone ipad\",\n
40
- \ \"distance\": 0.8268404006958008\n }, {\n \"phrase\": \"blackberry
41
- playbook\",\n \"distance\": 0.8240213394165039\n }, {\n \"phrase\":
42
- \"symbian\",\n \"distance\": 0.8222286701202393\n }, {\n \"phrase\":
43
- \"smartphones\",\n \"distance\": 0.8179833889007568\n }, {\n \"phrase\":
44
- \"smartphone\",\n \"distance\": 0.8097701072692871\n }, {\n \"phrase\":
45
- \"froyo\",\n \"distance\": 0.7987280488014221\n }, {\n \"phrase\":
46
- \"webos\",\n \"distance\": 0.7951686382293701\n }, {\n \"phrase\":
47
- \"ipad\",\n \"distance\": 0.7910612225532532\n }, {\n \"phrase\": \"app\",\n
48
- \ \"distance\": 0.7821643352508545\n }, {\n \"phrase\": \"blackberry\",\n
49
- \ \"distance\": 0.7789986729621887\n }, {\n \"phrase\": \"jelly bean\",\n
50
- \ \"distance\": 0.7675120830535889\n }, {\n \"phrase\": \"ipod touch\",\n
51
- \ \"distance\": 0.762033998966217\n }, {\n \"phrase\": \"symbian s60\",\n
52
- \ \"distance\": 0.7563616633415222\n }, {\n \"phrase\": \"kitkat\",\n
53
- \ \"distance\": 0.7541030645370483\n }, {\n \"phrase\": \"iphones\",\n
54
- \ \"distance\": 0.7453151345252991\n }, {\n \"phrase\": \"cyanogenmod\",\n
55
- \ \"distance\": 0.7441946864128113\n }, {\n \"phrase\": \"jailbroken\",\n
56
- \ \"distance\": 0.7417730093002319\n }, {\n \"phrase\": \"tizen\",\n
57
- \ \"distance\": 0.7413533329963684\n }]\n}"
44
+ encoding: UTF-8
45
+ string: |-
46
+ {
47
+ "phrase": "android",
48
+ "related": [{
49
+ "phrase": "ios",
50
+ "distance": 0.8744090795516968
51
+ }, {
52
+ "phrase": "iphone",
53
+ "distance": 0.8465747237205505
54
+ }, {
55
+ "phrase": "iphone ipad",
56
+ "distance": 0.8268404006958008
57
+ }, {
58
+ "phrase": "blackberry playbook",
59
+ "distance": 0.8240213394165039
60
+ }, {
61
+ "phrase": "symbian",
62
+ "distance": 0.8222286701202393
63
+ }, {
64
+ "phrase": "smartphones",
65
+ "distance": 0.8179833889007568
66
+ }, {
67
+ "phrase": "smartphone",
68
+ "distance": 0.8097701072692871
69
+ }, {
70
+ "phrase": "froyo",
71
+ "distance": 0.7987280488014221
72
+ }, {
73
+ "phrase": "webos",
74
+ "distance": 0.7951686382293701
75
+ }, {
76
+ "phrase": "ipad",
77
+ "distance": 0.7910612225532532
78
+ }, {
79
+ "phrase": "app",
80
+ "distance": 0.7821643352508545
81
+ }, {
82
+ "phrase": "blackberry",
83
+ "distance": 0.7789986729621887
84
+ }, {
85
+ "phrase": "jelly bean",
86
+ "distance": 0.7675120830535889
87
+ }, {
88
+ "phrase": "ipod touch",
89
+ "distance": 0.762033998966217
90
+ }, {
91
+ "phrase": "symbian s60",
92
+ "distance": 0.7563616633415222
93
+ }, {
94
+ "phrase": "kitkat",
95
+ "distance": 0.7541030645370483
96
+ }, {
97
+ "phrase": "iphones",
98
+ "distance": 0.7453151345252991
99
+ }, {
100
+ "phrase": "cyanogenmod",
101
+ "distance": 0.7441946864128113
102
+ }, {
103
+ "phrase": "jailbroken",
104
+ "distance": 0.7417730093002319
105
+ }, {
106
+ "phrase": "tizen",
107
+ "distance": 0.7413533329963684
108
+ }]
109
+ }
58
110
  http_version:
59
- recorded_at: Tue, 02 Dec 2014 18:15:22 GMT
111
+ recorded_at: Tue, 10 Feb 2015 14:05:49 GMT
60
112
  recorded_with: VCR 2.9.3