aylien_text_api 0.0.4 → 0.1.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 +1 -1
- data/LICENSE +1 -1
- data/lib/aylien_text_api.rb +1 -1
- data/lib/aylien_text_api/client.rb +57 -13
- data/lib/aylien_text_api/configuration.rb +14 -3
- data/lib/aylien_text_api/connection.rb +4 -2
- data/lib/aylien_text_api/error.rb +1 -1
- data/lib/aylien_text_api/version.rb +2 -2
- data/spec/fixtures/aylien_text_api/client/classify_with_invalid_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/classify_with_invalid_params.yml +16 -8
- data/spec/fixtures/aylien_text_api/client/classify_with_text.yml +25 -16
- data/spec/fixtures/aylien_text_api/client/classify_with_unauthenticated_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/classify_with_valid_url.yml +115 -67
- data/spec/fixtures/aylien_text_api/client/classify_with_value_as_text.yml +25 -16
- data/spec/fixtures/aylien_text_api/client/classify_with_value_as_valid_url.yml +115 -67
- data/spec/fixtures/aylien_text_api/client/concepts_with_invalid_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/concepts_with_invalid_params.yml +16 -8
- data/spec/fixtures/aylien_text_api/client/concepts_with_text.yml +16 -8
- data/spec/fixtures/aylien_text_api/client/concepts_with_unauthenticated_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/concepts_with_valid_url.yml +109 -32
- data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_text.yml +16 -8
- data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_valid_url.yml +109 -32
- data/spec/fixtures/aylien_text_api/client/entities_with_invalid_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/entities_with_invalid_params.yml +16 -8
- data/spec/fixtures/aylien_text_api/client/entities_with_text.yml +16 -8
- data/spec/fixtures/aylien_text_api/client/entities_with_unauthenticated_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/entities_with_valid_url.yml +466 -271
- data/spec/fixtures/aylien_text_api/client/entities_with_value_as_text.yml +16 -8
- data/spec/fixtures/aylien_text_api/client/entities_with_value_as_valid_url.yml +465 -271
- data/spec/fixtures/aylien_text_api/client/extract_with_invalid_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/extract_with_invalid_params.yml +16 -8
- data/spec/fixtures/aylien_text_api/client/extract_with_unauthenticated_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/extract_with_valid_url.yml +267 -154
- data/spec/fixtures/aylien_text_api/client/extract_with_value_as_text.yml +16 -8
- data/spec/fixtures/aylien_text_api/client/extract_with_value_as_valid_url.yml +267 -154
- data/spec/fixtures/aylien_text_api/client/hashtags_with_invalid_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/hashtags_with_invalid_params.yml +16 -8
- data/spec/fixtures/aylien_text_api/client/hashtags_with_text.yml +31 -17
- data/spec/fixtures/aylien_text_api/client/hashtags_with_unauthenticated_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/hashtags_with_valid_url.yml +51 -27
- data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_text.yml +32 -17
- data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_valid_url.yml +51 -27
- data/spec/fixtures/aylien_text_api/client/language_with_invalid_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/language_with_invalid_params.yml +16 -8
- data/spec/fixtures/aylien_text_api/client/language_with_unauthenticated_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/language_with_valid_text.yml +21 -9
- data/spec/fixtures/aylien_text_api/client/language_with_valid_url.yml +46 -26
- data/spec/fixtures/aylien_text_api/client/language_with_value_as_text.yml +21 -9
- data/spec/fixtures/aylien_text_api/client/language_with_value_as_valid_url.yml +46 -26
- data/spec/fixtures/aylien_text_api/client/microformats_with_invalid_client.yml +38 -0
- data/spec/fixtures/aylien_text_api/client/microformats_with_invalid_params.yml +62 -0
- data/spec/fixtures/aylien_text_api/client/microformats_with_unauthenticated_client.yml +42 -0
- data/spec/fixtures/aylien_text_api/client/microformats_with_valid_url.yml +84 -0
- data/spec/fixtures/aylien_text_api/client/microformats_with_value_as_valid_url.yml +84 -0
- data/spec/fixtures/aylien_text_api/client/related_with_invalid_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/related_with_invalid_params.yml +17 -9
- data/spec/fixtures/aylien_text_api/client/related_with_phrase.yml +80 -28
- data/spec/fixtures/aylien_text_api/client/related_with_unauthenticated_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/related_with_value_as_phrase.yml +80 -28
- data/spec/fixtures/aylien_text_api/client/related_with_value_as_valid_url.yml +16 -8
- data/spec/fixtures/aylien_text_api/client/sentiment_with_invalid_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/sentiment_with_invalid_params.yml +16 -8
- data/spec/fixtures/aylien_text_api/client/sentiment_with_text.yml +23 -21
- data/spec/fixtures/aylien_text_api/client/sentiment_with_unauthenticated_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/sentiment_with_valid_url.yml +49 -26
- data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_text.yml +23 -21
- data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_valid_url.yml +49 -26
- data/spec/fixtures/aylien_text_api/client/summarize_with_invalid_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/summarize_with_invalid_params.yml +17 -9
- data/spec/fixtures/aylien_text_api/client/summarize_with_title_and_text.yml +20 -46
- data/spec/fixtures/aylien_text_api/client/summarize_with_unauthenticated_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/summarize_with_valid_url.yml +61 -34
- data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_title.yml +20 -46
- data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_without_title.yml +17 -9
- data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_valid_url.yml +61 -34
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_invalid_client.yml +38 -0
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_invalid_params.yml +57 -0
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_text.yml +53 -0
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_unauthenticated_client.yml +42 -0
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_valid_url.yml +96 -0
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_value_as_text.yml +57 -0
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_value_as_valid_url.yml +96 -0
- data/spec/lib/aylien_text_api/client_spec.rb +13 -3
- data/spec/lib/aylien_text_api/microformats.rb +66 -0
- data/spec/lib/aylien_text_api/unsupervised_classify.rb +87 -0
- metadata +105 -5
@@ -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
|
15
|
+
- Aylien Text API Ruby Gem 0.1.0
|
14
16
|
Content-Type:
|
15
17
|
- application/x-www-form-urlencoded
|
16
18
|
App-Id:
|
@@ -25,7 +27,7 @@ http_interactions:
|
|
25
27
|
Server:
|
26
28
|
- openresty/1.5.12.1
|
27
29
|
Date:
|
28
|
-
- Tue,
|
30
|
+
- Tue, 10 Feb 2015 14:06:04 GMT
|
29
31
|
Content-Type:
|
30
32
|
- text/plain; charset=us-ascii
|
31
33
|
Transfer-Encoding:
|
@@ -33,8 +35,8 @@ http_interactions:
|
|
33
35
|
Connection:
|
34
36
|
- keep-alive
|
35
37
|
body:
|
36
|
-
encoding:
|
38
|
+
encoding: UTF-8
|
37
39
|
string: Authentication failed
|
38
40
|
http_version:
|
39
|
-
recorded_at: Tue,
|
41
|
+
recorded_at: Tue, 10 Feb 2015 14:05:49 GMT
|
40
42
|
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
|
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,
|
30
|
+
- Tue, 10 Feb 2015 14:06:06 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
|
+
- '205386'
|
41
|
+
X-Ratelimit-Reset:
|
42
|
+
- '1423612800'
|
35
43
|
body:
|
36
|
-
encoding:
|
37
|
-
string:
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
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,
|
111
|
+
recorded_at: Tue, 10 Feb 2015 14:05:51 GMT
|
60
112
|
recorded_with: VCR 2.9.3
|
@@ -7,16 +7,18 @@ http_interactions:
|
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: url=http%3A%2F%2Fwww.bbc.com%2Fsport%2F0%2Ffootball%2F25912393
|
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
|
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,
|
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
|
+
- '205388'
|
41
|
+
X-Ratelimit-Reset:
|
42
|
+
- '1423612800'
|
35
43
|
body:
|
36
|
-
encoding:
|
37
|
-
string:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"error" : "Request is missing required form field ''phrase''"}'
|
38
46
|
http_version:
|
39
|
-
recorded_at: Tue,
|
47
|
+
recorded_at: Tue, 10 Feb 2015 14:05:50 GMT
|
40
48
|
recorded_with: VCR 2.9.3
|
@@ -7,10 +7,12 @@ http_interactions:
|
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: text=I+really+enjoyed+using+the+Canon+Ixus+in+Madrid.%0A++++++The+Panasonic+Lumix+is+a+poor+camera%2C+but+the+Canon+Ixus+is+really+sleek.%0A++++++The+Canon+Ixus+is+much+better+than+the+Panasonic+Lumix.%0A++++++All+I+want+to+do+with+a+camera+is+point+it+and+then+just+press+the+button.%0A++++++The+Canon+Ixus+is+perfect+for+that.+You+will+soon+get+great+photos%0A++++++with+very+little+effort.+I+had+previously+returned+a+Panasonic+Lumix%0A++++++because+the+pictures+were+not+of+the+quality+I+expected.%0A++++++Spending+the+money+on+the+Canon+was+a+smart+move.%0A++++++I+would+recommend+the+Ixus+to+anyone+without+hesitation.%0A++++++Two+small+issues+to+be+pointed+out%3A+firstly%2C+the+battery%0A++++++life+is+not+fantastic.+Also%2C+the+zoom+is+not+very+powerful.%0A++++++If+your+subject+is+far+away%2C+you+should+not+expect+good+results.%0A++++++Review+made+by+John+Irving+from+Florida.
|
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
|
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,
|
26
|
+
- Tue, 10 Feb 2015 14:06:10 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:
|
34
|
+
encoding: UTF-8
|
33
35
|
string: Authentication parameters missing
|
34
36
|
http_version:
|
35
|
-
recorded_at: Tue,
|
37
|
+
recorded_at: Tue, 10 Feb 2015 14:05:55 GMT
|
36
38
|
recorded_with: VCR 2.9.3
|
@@ -7,16 +7,18 @@ http_interactions:
|
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: wrong_param=I+really+enjoyed+using+the+Canon+Ixus+in+Madrid.%0A++++++The+Panasonic+Lumix+is+a+poor+camera%2C+but+the+Canon+Ixus+is+really+sleek.%0A++++++The+Canon+Ixus+is+much+better+than+the+Panasonic+Lumix.%0A++++++All+I+want+to+do+with+a+camera+is+point+it+and+then+just+press+the+button.%0A++++++The+Canon+Ixus+is+perfect+for+that.+You+will+soon+get+great+photos%0A++++++with+very+little+effort.+I+had+previously+returned+a+Panasonic+Lumix%0A++++++because+the+pictures+were+not+of+the+quality+I+expected.%0A++++++Spending+the+money+on+the+Canon+was+a+smart+move.%0A++++++I+would+recommend+the+Ixus+to+anyone+without+hesitation.%0A++++++Two+small+issues+to+be+pointed+out%3A+firstly%2C+the+battery%0A++++++life+is+not+fantastic.+Also%2C+the+zoom+is+not+very+powerful.%0A++++++If+your+subject+is+far+away%2C+you+should+not+expect+good+results.%0A++++++Review+made+by+John+Irving+from+Florida.
|
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
|
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,
|
30
|
+
- Tue, 10 Feb 2015 14:06:08 GMT
|
29
31
|
Content-Type:
|
30
32
|
- application/json;charset=UTF-8
|
31
33
|
Content-Length:
|
32
34
|
- '70'
|
33
35
|
Connection:
|
34
36
|
- keep-alive
|
37
|
+
X-Ratelimit-Limit:
|
38
|
+
- '207000'
|
39
|
+
X-Ratelimit-Remaining:
|
40
|
+
- '205384'
|
41
|
+
X-Ratelimit-Reset:
|
42
|
+
- '1423612800'
|
35
43
|
body:
|
36
|
-
encoding:
|
37
|
-
string:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"error" : "requirement failed: you must either provide url or text."}'
|
38
46
|
http_version:
|
39
|
-
recorded_at: Tue,
|
47
|
+
recorded_at: Tue, 10 Feb 2015 14:05:53 GMT
|
40
48
|
recorded_with: VCR 2.9.3
|
@@ -7,16 +7,18 @@ http_interactions:
|
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: text=I+really+enjoyed+using+the+Canon+Ixus+in+Madrid.%0A++++++The+Panasonic+Lumix+is+a+poor+camera%2C+but+the+Canon+Ixus+is+really+sleek.%0A++++++The+Canon+Ixus+is+much+better+than+the+Panasonic+Lumix.%0A++++++All+I+want+to+do+with+a+camera+is+point+it+and+then+just+press+the+button.%0A++++++The+Canon+Ixus+is+perfect+for+that.+You+will+soon+get+great+photos%0A++++++with+very+little+effort.+I+had+previously+returned+a+Panasonic+Lumix%0A++++++because+the+pictures+were+not+of+the+quality+I+expected.%0A++++++Spending+the+money+on+the+Canon+was+a+smart+move.%0A++++++I+would+recommend+the+Ixus+to+anyone+without+hesitation.%0A++++++Two+small+issues+to+be+pointed+out%3A+firstly%2C+the+battery%0A++++++life+is+not+fantastic.+Also%2C+the+zoom+is+not+very+powerful.%0A++++++If+your+subject+is+far+away%2C+you+should+not+expect+good+results.%0A++++++Review+made+by+John+Irving+from+Florida.
|
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
|
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,29 +27,29 @@ http_interactions:
|
|
25
27
|
Server:
|
26
28
|
- openresty/1.5.12.1
|
27
29
|
Date:
|
28
|
-
- Tue,
|
30
|
+
- Tue, 10 Feb 2015 14:06:09 GMT
|
29
31
|
Content-Type:
|
30
32
|
- application/json;charset=UTF-8
|
31
33
|
Content-Length:
|
32
34
|
- '1013'
|
33
35
|
Connection:
|
34
36
|
- keep-alive
|
37
|
+
X-Ratelimit-Limit:
|
38
|
+
- '207000'
|
39
|
+
X-Ratelimit-Remaining:
|
40
|
+
- '205382'
|
41
|
+
X-Ratelimit-Reset:
|
42
|
+
- '1423612800'
|
35
43
|
body:
|
36
|
-
encoding:
|
37
|
-
string:
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
to anyone without hesitation.\\n Two small issues to be pointed out:
|
46
|
-
firstly, the battery\\n life is not fantastic. Also, the zoom is not
|
47
|
-
very powerful.\\n If your subject is far away, you should not expect
|
48
|
-
good results.\\n Review made by John Irving from Florida.\",\n \"subjectivity\":
|
49
|
-
\"subjective\",\n \"subjectivity_confidence\": 1.0,\n \"polarity\": \"positive\",\n
|
50
|
-
\ \"polarity_confidence\": 0.9751552795031055\n}"
|
44
|
+
encoding: UTF-8
|
45
|
+
string: |-
|
46
|
+
{
|
47
|
+
"polarity": "positive",
|
48
|
+
"subjectivity": "subjective",
|
49
|
+
"text": "I really enjoyed using the Canon Ixus in Madrid.\n The Panasonic Lumix is a poor camera, but the Canon Ixus is really sleek.\n The Canon Ixus is much better than the Panasonic Lumix.\n All I want to do with a camera is point it and then just press the button.\n The Canon Ixus is perfect for that. You will soon get great photos\n with very little effort. I had previously returned a Panasonic Lumix\n because the pictures were not of the quality I expected.\n Spending the money on the Canon was a smart move.\n I would recommend the Ixus to anyone without hesitation.\n Two small issues to be pointed out: firstly, the battery\n life is not fantastic. Also, the zoom is not very powerful.\n If your subject is far away, you should not expect good results.\n Review made by John Irving from Florida.",
|
50
|
+
"polarity_confidence": 0.9751552795031055,
|
51
|
+
"subjectivity_confidence": 1.0
|
52
|
+
}
|
51
53
|
http_version:
|
52
|
-
recorded_at: Tue,
|
54
|
+
recorded_at: Tue, 10 Feb 2015 14:05:54 GMT
|
53
55
|
recorded_with: VCR 2.9.3
|
@@ -7,10 +7,12 @@ http_interactions:
|
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: text=I+really+enjoyed+using+the+Canon+Ixus+in+Madrid.%0A++++++The+Panasonic+Lumix+is+a+poor+camera%2C+but+the+Canon+Ixus+is+really+sleek.%0A++++++The+Canon+Ixus+is+much+better+than+the+Panasonic+Lumix.%0A++++++All+I+want+to+do+with+a+camera+is+point+it+and+then+just+press+the+button.%0A++++++The+Canon+Ixus+is+perfect+for+that.+You+will+soon+get+great+photos%0A++++++with+very+little+effort.+I+had+previously+returned+a+Panasonic+Lumix%0A++++++because+the+pictures+were+not+of+the+quality+I+expected.%0A++++++Spending+the+money+on+the+Canon+was+a+smart+move.%0A++++++I+would+recommend+the+Ixus+to+anyone+without+hesitation.%0A++++++Two+small+issues+to+be+pointed+out%3A+firstly%2C+the+battery%0A++++++life+is+not+fantastic.+Also%2C+the+zoom+is+not+very+powerful.%0A++++++If+your+subject+is+far+away%2C+you+should+not+expect+good+results.%0A++++++Review+made+by+John+Irving+from+Florida.
|
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
|
15
|
+
- Aylien Text API Ruby Gem 0.1.0
|
14
16
|
Content-Type:
|
15
17
|
- application/x-www-form-urlencoded
|
16
18
|
App-Id:
|
@@ -25,7 +27,7 @@ http_interactions:
|
|
25
27
|
Server:
|
26
28
|
- openresty/1.5.12.1
|
27
29
|
Date:
|
28
|
-
- Tue,
|
30
|
+
- Tue, 10 Feb 2015 14:06:08 GMT
|
29
31
|
Content-Type:
|
30
32
|
- text/plain; charset=us-ascii
|
31
33
|
Transfer-Encoding:
|
@@ -33,8 +35,8 @@ http_interactions:
|
|
33
35
|
Connection:
|
34
36
|
- keep-alive
|
35
37
|
body:
|
36
|
-
encoding:
|
38
|
+
encoding: UTF-8
|
37
39
|
string: Authentication failed
|
38
40
|
http_version:
|
39
|
-
recorded_at: Tue,
|
41
|
+
recorded_at: Tue, 10 Feb 2015 14:05:53 GMT
|
40
42
|
recorded_with: VCR 2.9.3
|
@@ -7,16 +7,18 @@ http_interactions:
|
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: url=http%3A%2F%2Fwww.bbc.com%2Fsport%2F0%2Ffootball%2F25912393
|
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
|
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,33 +27,54 @@ http_interactions:
|
|
25
27
|
Server:
|
26
28
|
- openresty/1.5.12.1
|
27
29
|
Date:
|
28
|
-
- Tue,
|
30
|
+
- Tue, 10 Feb 2015 14:06:11 GMT
|
29
31
|
Content-Type:
|
30
32
|
- application/json;charset=UTF-8
|
31
33
|
Content-Length:
|
32
|
-
- '
|
34
|
+
- '1422'
|
33
35
|
Connection:
|
34
36
|
- keep-alive
|
37
|
+
X-Ratelimit-Limit:
|
38
|
+
- '207000'
|
39
|
+
X-Ratelimit-Remaining:
|
40
|
+
- '205381'
|
41
|
+
X-Ratelimit-Reset:
|
42
|
+
- '1423612800'
|
35
43
|
body:
|
36
|
-
encoding:
|
37
|
-
string: !
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
44
|
+
encoding: ASCII-8BIT
|
45
|
+
string: !binary |-
|
46
|
+
ewogICJwb2xhcml0eSI6ICJuZXV0cmFsIiwKICAic3ViamVjdGl2aXR5Ijog
|
47
|
+
InN1YmplY3RpdmUiLAogICJ0ZXh0IjogIkxpb25lbCBNZXNzaTogRm9yd2Fy
|
48
|
+
ZCBpcyBub3QgZm9yIHNhbGUsIHNheXMgQmFyY2Vsb25hIHByZXNpZGVudFxu
|
49
|
+
XG5CYXJjZWxvbmEgZm9yd2FyZCBMaW9uZWwgTWVzc2kgaXMgbm90IGZvciBz
|
50
|
+
YWxlIGFuZCB0aGUgY2x1YiBwbGFuIHRvIGRpc2N1c3MgYSBuZXcgY29udHJh
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