aylien_text_api 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +3 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +28 -0
- data/LICENSE +13 -0
- data/README.md +67 -0
- data/Rakefile +8 -0
- data/aylien_text_api.gemspec +24 -0
- data/config/app_config.yml.example +7 -0
- data/lib/aylien_text_api.rb +23 -0
- data/lib/aylien_text_api/client.rb +246 -0
- data/lib/aylien_text_api/configuration.rb +57 -0
- data/lib/aylien_text_api/connection.rb +71 -0
- data/lib/aylien_text_api/error.rb +110 -0
- data/lib/aylien_text_api/version.rb +17 -0
- data/spec/fixtures/aylien_text_api/client/classify_with_invalid_client.yml +36 -0
- data/spec/fixtures/aylien_text_api/client/classify_with_invalid_params.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/classify_with_text.yml +48 -0
- data/spec/fixtures/aylien_text_api/client/classify_with_unauthenticated_client.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/classify_with_valid_url.yml +98 -0
- data/spec/fixtures/aylien_text_api/client/classify_with_value_as_text.yml +48 -0
- data/spec/fixtures/aylien_text_api/client/classify_with_value_as_valid_url.yml +98 -0
- data/spec/fixtures/aylien_text_api/client/concepts_with_invalid_client.yml +36 -0
- data/spec/fixtures/aylien_text_api/client/concepts_with_invalid_params.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/concepts_with_text.yml +44 -0
- data/spec/fixtures/aylien_text_api/client/concepts_with_unauthenticated_client.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/concepts_with_valid_url.yml +63 -0
- data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_text.yml +44 -0
- data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_valid_url.yml +63 -0
- data/spec/fixtures/aylien_text_api/client/entities_with_invalid_client.yml +36 -0
- data/spec/fixtures/aylien_text_api/client/entities_with_invalid_params.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/entities_with_text.yml +43 -0
- data/spec/fixtures/aylien_text_api/client/entities_with_unauthenticated_client.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/entities_with_valid_url.yml +302 -0
- data/spec/fixtures/aylien_text_api/client/entities_with_value_as_text.yml +43 -0
- data/spec/fixtures/aylien_text_api/client/entities_with_value_as_valid_url.yml +302 -0
- data/spec/fixtures/aylien_text_api/client/extract_with_invalid_client.yml +36 -0
- data/spec/fixtures/aylien_text_api/client/extract_with_invalid_params.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/extract_with_unauthenticated_client.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/extract_with_valid_url.yml +185 -0
- data/spec/fixtures/aylien_text_api/client/extract_with_value_as_text.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/extract_with_value_as_valid_url.yml +185 -0
- data/spec/fixtures/aylien_text_api/client/hashtags_with_invalid_client.yml +36 -0
- data/spec/fixtures/aylien_text_api/client/hashtags_with_invalid_params.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/hashtags_with_text.yml +48 -0
- data/spec/fixtures/aylien_text_api/client/hashtags_with_unauthenticated_client.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/hashtags_with_valid_url.yml +58 -0
- data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_text.yml +48 -0
- data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_valid_url.yml +58 -0
- data/spec/fixtures/aylien_text_api/client/language_with_invalid_client.yml +36 -0
- data/spec/fixtures/aylien_text_api/client/language_with_invalid_params.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/language_with_unauthenticated_client.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/language_with_valid_text.yml +41 -0
- data/spec/fixtures/aylien_text_api/client/language_with_valid_url.yml +57 -0
- data/spec/fixtures/aylien_text_api/client/language_with_value_as_text.yml +41 -0
- data/spec/fixtures/aylien_text_api/client/language_with_value_as_valid_url.yml +57 -0
- data/spec/fixtures/aylien_text_api/client/related_with_invalid_client.yml +36 -0
- data/spec/fixtures/aylien_text_api/client/related_with_invalid_params.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/related_with_phrase.yml +60 -0
- data/spec/fixtures/aylien_text_api/client/related_with_unauthenticated_client.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/related_with_value_as_phrase.yml +60 -0
- data/spec/fixtures/aylien_text_api/client/related_with_value_as_valid_url.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/sentiment_with_invalid_client.yml +36 -0
- data/spec/fixtures/aylien_text_api/client/sentiment_with_invalid_params.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/sentiment_with_text.yml +53 -0
- data/spec/fixtures/aylien_text_api/client/sentiment_with_unauthenticated_client.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/sentiment_with_valid_url.yml +57 -0
- data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_text.yml +53 -0
- data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_valid_url.yml +57 -0
- data/spec/fixtures/aylien_text_api/client/summarize_with_invalid_client.yml +36 -0
- data/spec/fixtures/aylien_text_api/client/summarize_with_invalid_params.yml +41 -0
- data/spec/fixtures/aylien_text_api/client/summarize_with_title_and_text.yml +78 -0
- data/spec/fixtures/aylien_text_api/client/summarize_with_unauthenticated_client.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/summarize_with_valid_url.yml +65 -0
- data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_title.yml +78 -0
- data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_without_title.yml +41 -0
- data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_valid_url.yml +65 -0
- data/spec/lib/aylien_text_api/classify.rb +86 -0
- data/spec/lib/aylien_text_api/client_spec.rb +23 -0
- data/spec/lib/aylien_text_api/concepts.rb +81 -0
- data/spec/lib/aylien_text_api/entities.rb +81 -0
- data/spec/lib/aylien_text_api/extract.rb +81 -0
- data/spec/lib/aylien_text_api/hashtags.rb +87 -0
- data/spec/lib/aylien_text_api/language.rb +79 -0
- data/spec/lib/aylien_text_api/related.rb +80 -0
- data/spec/lib/aylien_text_api/sentiment.rb +91 -0
- data/spec/lib/aylien_text_api/summarize.rb +95 -0
- data/spec/spec_helper.rb +16 -0
- metadata +193 -0
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.aylien.com/api/v1/sentiment
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
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
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Aylien Text API Ruby Gem 0.0.1
|
14
|
+
Content-Type:
|
15
|
+
- application/x-www-form-urlencoded
|
16
|
+
App-Id:
|
17
|
+
- <PASSWORD>
|
18
|
+
App-Key:
|
19
|
+
- <PASSWORD>
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 400
|
23
|
+
message: Bad Request
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- openresty/1.5.12.1
|
27
|
+
Date:
|
28
|
+
- Tue, 02 Dec 2014 18:15:53 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json;charset=UTF-8
|
31
|
+
Content-Length:
|
32
|
+
- '70'
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
body:
|
36
|
+
encoding: US-ASCII
|
37
|
+
string: ! '{"error" : "requirement failed: you must either provide url or text."}'
|
38
|
+
http_version:
|
39
|
+
recorded_at: Tue, 02 Dec 2014 18:14:50 GMT
|
40
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,53 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.aylien.com/api/v1/sentiment
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
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
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Aylien Text API Ruby Gem 0.0.1
|
14
|
+
Content-Type:
|
15
|
+
- application/x-www-form-urlencoded
|
16
|
+
App-Id:
|
17
|
+
- <PASSWORD>
|
18
|
+
App-Key:
|
19
|
+
- <PASSWORD>
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- openresty/1.5.12.1
|
27
|
+
Date:
|
28
|
+
- Tue, 02 Dec 2014 18:15:57 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json;charset=UTF-8
|
31
|
+
Content-Length:
|
32
|
+
- '1013'
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
body:
|
36
|
+
encoding: US-ASCII
|
37
|
+
string: ! "{\n \"text\": \"I really enjoyed using the Canon Ixus in Madrid.\\n
|
38
|
+
\ The Panasonic Lumix is a poor camera, but the Canon Ixus is really sleek.\\n
|
39
|
+
\ The Canon Ixus is much better than the Panasonic Lumix.\\n All
|
40
|
+
I want to do with a camera is point it and then just press the button.\\n
|
41
|
+
\ The Canon Ixus is perfect for that. You will soon get great photos\\n
|
42
|
+
\ with very little effort. I had previously returned a Panasonic Lumix\\n
|
43
|
+
\ because the pictures were not of the quality I expected.\\n Spending
|
44
|
+
the money on the Canon was a smart move.\\n I would recommend the Ixus
|
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}"
|
51
|
+
http_version:
|
52
|
+
recorded_at: Tue, 02 Dec 2014 18:14:54 GMT
|
53
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.aylien.com/api/v1/sentiment
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
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
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Aylien Text API Ruby Gem 0.0.1
|
14
|
+
Content-Type:
|
15
|
+
- application/x-www-form-urlencoded
|
16
|
+
App-Id:
|
17
|
+
- random_string
|
18
|
+
App-Key:
|
19
|
+
- random_string
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 403
|
23
|
+
message: Forbidden
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- openresty/1.5.12.1
|
27
|
+
Date:
|
28
|
+
- Tue, 02 Dec 2014 18:15:56 GMT
|
29
|
+
Content-Type:
|
30
|
+
- text/plain; charset=us-ascii
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
body:
|
36
|
+
encoding: US-ASCII
|
37
|
+
string: Authentication failed
|
38
|
+
http_version:
|
39
|
+
recorded_at: Tue, 02 Dec 2014 18:14:53 GMT
|
40
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.aylien.com/api/v1/sentiment
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: url=http%3A%2F%2Fwww.bbc.com%2Fsport%2F0%2Ffootball%2F25912393
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Aylien Text API Ruby Gem 0.0.1
|
14
|
+
Content-Type:
|
15
|
+
- application/x-www-form-urlencoded
|
16
|
+
App-Id:
|
17
|
+
- <PASSWORD>
|
18
|
+
App-Key:
|
19
|
+
- <PASSWORD>
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- openresty/1.5.12.1
|
27
|
+
Date:
|
28
|
+
- Tue, 02 Dec 2014 18:15:55 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json;charset=UTF-8
|
31
|
+
Content-Length:
|
32
|
+
- '1346'
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
body:
|
36
|
+
encoding: US-ASCII
|
37
|
+
string: ! "{\n \"text\": \"Lionel Messi: Forward is not for sale, says Barcelona
|
38
|
+
president\\n\\nBarcelona forward Lionel Messi is not for sale and the club
|
39
|
+
plan to discuss a new contract with the Argentine, says president Josep Maria
|
40
|
+
Bartomeu.\\n\\nFour-time Ballon d'Or winner Messi, 26, is reported to be a\\n\\nIn
|
41
|
+
an interview with radio station RAC1, Bartomeu said: \\\"The club will sit
|
42
|
+
down and negotiate a new contract.\\n\\n\\\"We will do what we have to, to
|
43
|
+
ensure he's the best-paid player.\\\"\\n\\nMessi scored 60 goals in 50 appearances
|
44
|
+
last season but has struggled to match that goalscoring form in 2013-14.\\n\\nHe
|
45
|
+
has scored 18 goals so far but just eight of those have been in the league.\\n\\nHis
|
46
|
+
last league goal came in September, before he was out for five weeks with
|
47
|
+
a hamstring injury.\\n\\n\\\"He can do everything,\\\" said Barca coach Gerardo
|
48
|
+
Martino. \\\"If he succeeds in other facets of his game, it doesn't matter
|
49
|
+
if he scores.\\n\\n\\\"Nothing surprises me with him. He controls the game
|
50
|
+
well, passes the ball well, he is a good finisher, he can press and recover
|
51
|
+
the ball.\\n\\n\\\"He sees passes that most people can only see whilst watching
|
52
|
+
the game on TV or in the stands, not ones that you can normally see on the
|
53
|
+
field.\\\"\",\n \"subjectivity\": \"subjective\",\n \"subjectivity_confidence\":
|
54
|
+
1.0,\n \"polarity\": \"neutral\",\n \"polarity_confidence\": 0.99999999999999\n}"
|
55
|
+
http_version:
|
56
|
+
recorded_at: Tue, 02 Dec 2014 18:14:53 GMT
|
57
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,53 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.aylien.com/api/v1/sentiment
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
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
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Aylien Text API Ruby Gem 0.0.1
|
14
|
+
Content-Type:
|
15
|
+
- application/x-www-form-urlencoded
|
16
|
+
App-Id:
|
17
|
+
- <PASSWORD>
|
18
|
+
App-Key:
|
19
|
+
- <PASSWORD>
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- openresty/1.5.12.1
|
27
|
+
Date:
|
28
|
+
- Tue, 02 Dec 2014 18:16:00 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json;charset=UTF-8
|
31
|
+
Content-Length:
|
32
|
+
- '1013'
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
body:
|
36
|
+
encoding: US-ASCII
|
37
|
+
string: ! "{\n \"text\": \"I really enjoyed using the Canon Ixus in Madrid.\\n
|
38
|
+
\ The Panasonic Lumix is a poor camera, but the Canon Ixus is really sleek.\\n
|
39
|
+
\ The Canon Ixus is much better than the Panasonic Lumix.\\n All
|
40
|
+
I want to do with a camera is point it and then just press the button.\\n
|
41
|
+
\ The Canon Ixus is perfect for that. You will soon get great photos\\n
|
42
|
+
\ with very little effort. I had previously returned a Panasonic Lumix\\n
|
43
|
+
\ because the pictures were not of the quality I expected.\\n Spending
|
44
|
+
the money on the Canon was a smart move.\\n I would recommend the Ixus
|
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}"
|
51
|
+
http_version:
|
52
|
+
recorded_at: Tue, 02 Dec 2014 18:14:57 GMT
|
53
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.aylien.com/api/v1/sentiment
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: url=http%3A%2F%2Fwww.bbc.com%2Fsport%2F0%2Ffootball%2F25912393
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Aylien Text API Ruby Gem 0.0.1
|
14
|
+
Content-Type:
|
15
|
+
- application/x-www-form-urlencoded
|
16
|
+
App-Id:
|
17
|
+
- <PASSWORD>
|
18
|
+
App-Key:
|
19
|
+
- <PASSWORD>
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- openresty/1.5.12.1
|
27
|
+
Date:
|
28
|
+
- Tue, 02 Dec 2014 18:15:59 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json;charset=UTF-8
|
31
|
+
Content-Length:
|
32
|
+
- '1346'
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
body:
|
36
|
+
encoding: US-ASCII
|
37
|
+
string: ! "{\n \"text\": \"Lionel Messi: Forward is not for sale, says Barcelona
|
38
|
+
president\\n\\nBarcelona forward Lionel Messi is not for sale and the club
|
39
|
+
plan to discuss a new contract with the Argentine, says president Josep Maria
|
40
|
+
Bartomeu.\\n\\nFour-time Ballon d'Or winner Messi, 26, is reported to be a\\n\\nIn
|
41
|
+
an interview with radio station RAC1, Bartomeu said: \\\"The club will sit
|
42
|
+
down and negotiate a new contract.\\n\\n\\\"We will do what we have to, to
|
43
|
+
ensure he's the best-paid player.\\\"\\n\\nMessi scored 60 goals in 50 appearances
|
44
|
+
last season but has struggled to match that goalscoring form in 2013-14.\\n\\nHe
|
45
|
+
has scored 18 goals so far but just eight of those have been in the league.\\n\\nHis
|
46
|
+
last league goal came in September, before he was out for five weeks with
|
47
|
+
a hamstring injury.\\n\\n\\\"He can do everything,\\\" said Barca coach Gerardo
|
48
|
+
Martino. \\\"If he succeeds in other facets of his game, it doesn't matter
|
49
|
+
if he scores.\\n\\n\\\"Nothing surprises me with him. He controls the game
|
50
|
+
well, passes the ball well, he is a good finisher, he can press and recover
|
51
|
+
the ball.\\n\\n\\\"He sees passes that most people can only see whilst watching
|
52
|
+
the game on TV or in the stands, not ones that you can normally see on the
|
53
|
+
field.\\\"\",\n \"subjectivity\": \"subjective\",\n \"subjectivity_confidence\":
|
54
|
+
1.0,\n \"polarity\": \"neutral\",\n \"polarity_confidence\": 0.99999999999999\n}"
|
55
|
+
http_version:
|
56
|
+
recorded_at: Tue, 02 Dec 2014 18:14:56 GMT
|
57
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,36 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.aylien.com/api/v1/summarize
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: url=http%3A%2F%2Fwww.bbc.com%2Fsport%2F0%2Ffootball%2F25912393
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Aylien Text API Ruby Gem 0.0.1
|
14
|
+
Content-Type:
|
15
|
+
- application/x-www-form-urlencoded
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 403
|
19
|
+
message: Forbidden
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- openresty/1.5.12.1
|
23
|
+
Date:
|
24
|
+
- Tue, 02 Dec 2014 18:16:05 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/plain; charset=us-ascii
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
body:
|
32
|
+
encoding: US-ASCII
|
33
|
+
string: Authentication parameters missing
|
34
|
+
http_version:
|
35
|
+
recorded_at: Tue, 02 Dec 2014 18:15:02 GMT
|
36
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.aylien.com/api/v1/summarize
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: wrong_param=Batman+has+always+been+my+favourite+superhero+ever+since+the+first+time+I+heard+about+him+because+he+his+human+with+no+powers%2C+also+he+is+much+more+questionable+than+any+other+superhero.+The+story+of+the+film+is+about+Batman%2C+Lieutenant+James+Gordon%2C+and+new+district+attorney+Harvey+Dent+beginning+to+succeed+in+rounding+up+the+criminals+that+plague+Gotham+City.+They+are+unexpectedly+challenged+when+a+mysterious+criminal+mastermind+known+as+the+Joker+appears+in+Gotham.+Batman%27s+struggle+against+the+Joker+becomes+deeply+personal%2C+forcing+him+to+%22confront+everything+he+believes%22+and+to+improve+his+technology+%28which+introduces+the+recreation+of+the+Batcycle%2C+known+as+the+Batpod+and+the+Batsuit+was+redesigned%29+to+stop+the+madman%27s+campaign+of+destruction.+During+the+course+of+the+film%2C+a+love+triangle+develops+between+Bruce+Wayne%2C+Dent+and+Rachel+Dawes.++There+are+now+six+Batman+films+and+I+must+say+that+The+Dark+Knight+is+the+best+out+of+all+of+them.+The+title+is+good+because+that+is+what+Batman+actually+is.+It+has+been+3+years+for+the+adventure+to+continue+from+Batman+Begins+but+that+entire+wait+was+worth+it.+Gotham+city+is+very+Gothic+looking+and+is+very+haunting+and+visionary.+The+whole+movie+is+charged+with+pulse-pounding+suspense%2C+ingenious+special+effects+and+riveting+performances+from+a+first-rate+cast+especially+from+Heath+Ledger+who+gave+an+Oscar+nomination+performance+for+best+supporting-actor.+It+is+a+shame+that+he+can%27t+see+his+terrific+work+on-screen.+The+cinematography+is+excellent+which+is+made+so+dark+%26+sinister+that+really+did+suit+the+mood+for+the+film.+Usually+sequels+don%27t+turn+out+to+be+better+than+the+original+but+The+Dark+Knight+is+one+of+those+rare+sequels+that+surpasses+the+original+like+The+Godfather+2.+I+also+really+liked+the+poster+where+the+building+is+on+fire+in+a+Bat+symbol+%26+Batman+is+standing+in+front+of+it.+Christopher+Nolan+is+a+brilliant+director+and+his+film+Memento+is+one+of+my+most+favourite+films.+He+hasn%27t+made+10+movies+yet+and+3+of+them+are+already+on+the+IMDb+top+250.+Overall+The+Dark+Knight+is+the+kind+of+movie+that+will+make+the+audience+cheer+in+the+end+instead+of+throwing+fruit+%26+vegetables+on+the+screen.
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Aylien Text API Ruby Gem 0.0.1
|
14
|
+
Content-Type:
|
15
|
+
- application/x-www-form-urlencoded
|
16
|
+
App-Id:
|
17
|
+
- <PASSWORD>
|
18
|
+
App-Key:
|
19
|
+
- <PASSWORD>
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 400
|
23
|
+
message: Bad Request
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- openresty/1.5.12.1
|
27
|
+
Date:
|
28
|
+
- Tue, 02 Dec 2014 18:16:02 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json;charset=UTF-8
|
31
|
+
Content-Length:
|
32
|
+
- '90'
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
body:
|
36
|
+
encoding: US-ASCII
|
37
|
+
string: ! '{"error" : "requirement failed: you must either provide url or a
|
38
|
+
pair of text and title."}'
|
39
|
+
http_version:
|
40
|
+
recorded_at: Tue, 02 Dec 2014 18:14:59 GMT
|
41
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,78 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.aylien.com/api/v1/summarize
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: title=Batman+at+his+best+and+beyond&text=Batman+has+always+been+my+favourite+superhero+ever+since+the+first+time+I+heard+about+him+because+he+his+human+with+no+powers%2C+also+he+is+much+more+questionable+than+any+other+superhero.+The+story+of+the+film+is+about+Batman%2C+Lieutenant+James+Gordon%2C+and+new+district+attorney+Harvey+Dent+beginning+to+succeed+in+rounding+up+the+criminals+that+plague+Gotham+City.+They+are+unexpectedly+challenged+when+a+mysterious+criminal+mastermind+known+as+the+Joker+appears+in+Gotham.+Batman%27s+struggle+against+the+Joker+becomes+deeply+personal%2C+forcing+him+to+%22confront+everything+he+believes%22+and+to+improve+his+technology+%28which+introduces+the+recreation+of+the+Batcycle%2C+known+as+the+Batpod+and+the+Batsuit+was+redesigned%29+to+stop+the+madman%27s+campaign+of+destruction.+During+the+course+of+the+film%2C+a+love+triangle+develops+between+Bruce+Wayne%2C+Dent+and+Rachel+Dawes.++There+are+now+six+Batman+films+and+I+must+say+that+The+Dark+Knight+is+the+best+out+of+all+of+them.+The+title+is+good+because+that+is+what+Batman+actually+is.+It+has+been+3+years+for+the+adventure+to+continue+from+Batman+Begins+but+that+entire+wait+was+worth+it.+Gotham+city+is+very+Gothic+looking+and+is+very+haunting+and+visionary.+The+whole+movie+is+charged+with+pulse-pounding+suspense%2C+ingenious+special+effects+and+riveting+performances+from+a+first-rate+cast+especially+from+Heath+Ledger+who+gave+an+Oscar+nomination+performance+for+best+supporting-actor.+It+is+a+shame+that+he+can%27t+see+his+terrific+work+on-screen.+The+cinematography+is+excellent+which+is+made+so+dark+%26+sinister+that+really+did+suit+the+mood+for+the+film.+Usually+sequels+don%27t+turn+out+to+be+better+than+the+original+but+The+Dark+Knight+is+one+of+those+rare+sequels+that+surpasses+the+original+like+The+Godfather+2.+I+also+really+liked+the+poster+where+the+building+is+on+fire+in+a+Bat+symbol+%26+Batman+is+standing+in+front+of+it.+Christopher+Nolan+is+a+brilliant+director+and+his+film+Memento+is+one+of+my+most+favourite+films.+He+hasn%27t+made+10+movies+yet+and+3+of+them+are+already+on+the+IMDb+top+250.+Overall+The+Dark+Knight+is+the+kind+of+movie+that+will+make+the+audience+cheer+in+the+end+instead+of+throwing+fruit+%26+vegetables+on+the+screen.
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Aylien Text API Ruby Gem 0.0.1
|
14
|
+
Content-Type:
|
15
|
+
- application/x-www-form-urlencoded
|
16
|
+
App-Id:
|
17
|
+
- <PASSWORD>
|
18
|
+
App-Key:
|
19
|
+
- <PASSWORD>
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- openresty/1.5.12.1
|
27
|
+
Date:
|
28
|
+
- Tue, 02 Dec 2014 18:16:06 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json;charset=UTF-8
|
31
|
+
Content-Length:
|
32
|
+
- '2952'
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
body:
|
36
|
+
encoding: US-ASCII
|
37
|
+
string: ! "{\n \"text\": \"Batman has always been my favourite superhero ever
|
38
|
+
since the first time I heard about him because he his human with no powers,
|
39
|
+
also he is much more questionable than any other superhero. The story of the
|
40
|
+
film is about Batman, Lieutenant James Gordon, and new district attorney Harvey
|
41
|
+
Dent beginning to succeed in rounding up the criminals that plague Gotham
|
42
|
+
City. They are unexpectedly challenged when a mysterious criminal mastermind
|
43
|
+
known as the Joker appears in Gotham. Batman's struggle against the Joker
|
44
|
+
becomes deeply personal, forcing him to \\\"confront everything he believes\\\"
|
45
|
+
and to improve his technology (which introduces the recreation of the Batcycle,
|
46
|
+
known as the Batpod and the Batsuit was redesigned) to stop the madman's campaign
|
47
|
+
of destruction. During the course of the film, a love triangle develops between
|
48
|
+
Bruce Wayne, Dent and Rachel Dawes. There are now six Batman films and I
|
49
|
+
must say that The Dark Knight is the best out of all of them. The title is
|
50
|
+
good because that is what Batman actually is. It has been 3 years for the
|
51
|
+
adventure to continue from Batman Begins but that entire wait was worth it.
|
52
|
+
Gotham city is very Gothic looking and is very haunting and visionary. The
|
53
|
+
whole movie is charged with pulse-pounding suspense, ingenious special effects
|
54
|
+
and riveting performances from a first-rate cast especially from Heath Ledger
|
55
|
+
who gave an Oscar nomination performance for best supporting-actor. It is
|
56
|
+
a shame that he can't see his terrific work on-screen. The cinematography
|
57
|
+
is excellent which is made so dark & sinister that really did suit the mood
|
58
|
+
for the film. Usually sequels don't turn out to be better than the original
|
59
|
+
but The Dark Knight is one of those rare sequels that surpasses the original
|
60
|
+
like The Godfather 2. I also really liked the poster where the building is
|
61
|
+
on fire in a Bat symbol & Batman is standing in front of it. Christopher Nolan
|
62
|
+
is a brilliant director and his film Memento is one of my most favourite films.
|
63
|
+
He hasn't made 10 movies yet and 3 of them are already on the IMDb top 250.
|
64
|
+
Overall The Dark Knight is the kind of movie that will make the audience cheer
|
65
|
+
in the end instead of throwing fruit & vegetables on the screen.\",\n \"sentences\":
|
66
|
+
[\"Batman has always been my favourite superhero ever since the first time
|
67
|
+
I heard about him because he his human with no powers, also he is much more
|
68
|
+
questionable than any other superhero.\", \"The story of the film is about
|
69
|
+
Batman, Lieutenant James Gordon, and new district attorney Harvey Dent beginning
|
70
|
+
to succeed in rounding up the criminals that plague Gotham City.\", \"There
|
71
|
+
are now six Batman films and I must say that The Dark Knight is the best out
|
72
|
+
of all of them.\", \"The cinematography is excellent which is made so dark
|
73
|
+
& sinister that really did suit the mood for the film.\", \"Overall The Dark
|
74
|
+
Knight is the kind of movie that will make the audience cheer in the end instead
|
75
|
+
of throwing fruit & vegetables on the screen.\"]\n}"
|
76
|
+
http_version:
|
77
|
+
recorded_at: Tue, 02 Dec 2014 18:15:03 GMT
|
78
|
+
recorded_with: VCR 2.9.3
|