alchemy-api-rb 0.6.0 → 0.7.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +11 -10
- data/lib/alchemy-api/combined_call.rb +15 -0
- data/lib/alchemy-api/version.rb +1 -1
- data/lib/alchemy_api.rb +1 -0
- data/spec/combined_call_spec.rb +42 -0
- data/spec/vcr_cassettes/combined_call_basic_html_json_search.yml +64 -0
- data/spec/vcr_cassettes/combined_call_basic_text_json_search.yml +65 -0
- data/spec/vcr_cassettes/combined_call_basic_url_json_search.yml +140 -0
- metadata +12 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27897aabc68b346ff1072a7a171157808352563e
|
4
|
+
data.tar.gz: f531406493702ae8ceb335411e948dee76b166ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1e2ded8fe1487ea7a39a820bd47ce08243e8e7bf2dd6cd03a84d2a3e1183dbe61798961075894fa9447398ee687aac1a083339407e8294e02f6b1e6b749a260
|
7
|
+
data.tar.gz: efe914ea6bd0e7e85db69ec74b5eecf166c79107df2d5670578c56d6eea182899341d329d158496b30719d2ae5f17dccb48c7deba5f62cb193f1347ee3c3bc4b
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,12 @@
|
|
2
2
|
|
3
3
|
* Your contribution here.
|
4
4
|
|
5
|
+
# 0.7.0 (04/22/2016)
|
6
|
+
|
7
|
+
### Changes
|
8
|
+
|
9
|
+
* [#23](https://github.com/technekes/alchemy-api-rb/pull/23): Add support for combined call endpoint - [@jsullivan](https://github.com/jsullivan).
|
10
|
+
|
5
11
|
# 0.6.0 (02/22/2016)
|
6
12
|
|
7
13
|
#### Changes
|
data/README.md
CHANGED
@@ -8,20 +8,21 @@
|
|
8
8
|
|
9
9
|
This is a Ruby Client Library that provides access to the [Alchemy text mining API](http://www.alchemyapi.com/). The current version targets the following API's:
|
10
10
|
|
11
|
-
*
|
12
|
-
*
|
13
|
-
*
|
11
|
+
* Author Extraction
|
12
|
+
* Combined Call
|
13
|
+
* Concept Tagging
|
14
14
|
* Entity Extraction
|
15
|
+
* Face Detection/Recognition
|
16
|
+
* Image Tagging
|
17
|
+
* Keyword Extraction
|
18
|
+
* Language Detection
|
19
|
+
* Relation Extraction
|
15
20
|
* Sentiment Analysis
|
16
21
|
* Targeted Sentiment Analysis
|
17
|
-
* Relation Extraction
|
18
|
-
* Concept Tagging
|
19
|
-
* Text Categorization
|
20
|
-
* Language Detection
|
21
|
-
* Author Extraction
|
22
22
|
* Taxonomy
|
23
|
-
*
|
24
|
-
*
|
23
|
+
* Text Categorization
|
24
|
+
* Text Extraction
|
25
|
+
* Title Extraction
|
25
26
|
|
26
27
|
Not yet implemented API's:
|
27
28
|
|
data/lib/alchemy-api/version.rb
CHANGED
data/lib/alchemy_api.rb
CHANGED
@@ -15,6 +15,7 @@ require 'alchemy-api/language_detection'
|
|
15
15
|
require 'alchemy-api/author_extraction'
|
16
16
|
require 'alchemy-api/taxonomy'
|
17
17
|
require 'alchemy-api/image_tagging'
|
18
|
+
require 'alchemy-api/combined_call'
|
18
19
|
|
19
20
|
module AlchemyAPI
|
20
21
|
BASE_URL = 'https://access.alchemyapi.com/calls/'
|
@@ -0,0 +1,42 @@
|
|
1
|
+
require File.expand_path(File.join(File.dirname(__FILE__), 'spec_helper'))
|
2
|
+
|
3
|
+
describe AlchemyAPI, 'combined_call' do
|
4
|
+
before do
|
5
|
+
AlchemyAPI::Config.apikey = API_KEY
|
6
|
+
end
|
7
|
+
|
8
|
+
subject { AlchemyAPI::CombinedCall.new }
|
9
|
+
|
10
|
+
describe '#search' do
|
11
|
+
{
|
12
|
+
text: 'lorem ipsum',
|
13
|
+
html: '<html><body>foo bar</body></html>',
|
14
|
+
url: 'http://www.google.com'
|
15
|
+
}.each do |type, value|
|
16
|
+
[:json].each do |mode|
|
17
|
+
before do
|
18
|
+
AlchemyAPI::Config.output_mode = mode
|
19
|
+
end
|
20
|
+
|
21
|
+
describe "#{type} search with #{mode} results" do
|
22
|
+
it 'returns a hash of results' do
|
23
|
+
VCR.use_cassette("combined_call_basic_#{type}_#{mode}_search") do
|
24
|
+
result = subject.search(type => value)
|
25
|
+
|
26
|
+
result.must_be_instance_of Hash
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
it 'includes the keyword text and relavence' do
|
31
|
+
VCR.use_cassette("combined_call_basic_#{type}_#{mode}_search") do
|
32
|
+
result = subject.search(type => value)
|
33
|
+
|
34
|
+
result['totalTransactions'].wont_be_nil
|
35
|
+
result['keywords'].wont_be_nil
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://access.alchemyapi.com/calls/html/HTMLGetCombinedData
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: apikey=ALCHEMY_KEY&html=%3Chtml%3E%3Cbody%3Efoo+bar%3C%2Fbody%3E%3C%2Fhtml%3E&outputMode=json
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.2
|
12
|
+
Content-Type:
|
13
|
+
- application/x-www-form-urlencoded
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: ''
|
18
|
+
headers:
|
19
|
+
Server:
|
20
|
+
- nginx
|
21
|
+
Date:
|
22
|
+
- Thu, 21 Apr 2016 23:40:11 GMT
|
23
|
+
Content-Type:
|
24
|
+
- application/json
|
25
|
+
Content-Length:
|
26
|
+
- '914'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Cache-Control:
|
30
|
+
- no-cache
|
31
|
+
X-Alchemyapi-Currentversion:
|
32
|
+
- '12.33'
|
33
|
+
X-Alchemyapi-Html-Content-Size:
|
34
|
+
- '33'
|
35
|
+
X-Alchemyapi-Key:
|
36
|
+
- ALCHEMY_KEY
|
37
|
+
X-Alchemyapi-Params:
|
38
|
+
- sentiment=0&knowledgeGraph=0&combinedCalls=concept,taxonomy,entity,keyword&detectedLanguage=english&submitLanguage=detect
|
39
|
+
X-Alchemyapi-Status:
|
40
|
+
- OK
|
41
|
+
X-Alchemyapi-Text-Content-Size:
|
42
|
+
- '9'
|
43
|
+
X-Alchemyapi-Total-Transactions:
|
44
|
+
- '4'
|
45
|
+
Access-Control-Allow-Origin:
|
46
|
+
- "*"
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: "{\r\n \"status\": \"OK\",\r\n \"usage\": \"By accessing AlchemyAPI
|
50
|
+
or using information generated by AlchemyAPI, you are agreeing to be bound
|
51
|
+
by the AlchemyAPI Terms of Use: http://www.alchemyapi.com/company/terms.html\",\r\n
|
52
|
+
\ \"url\": \"\",\r\n \"totalTransactions\": \"4\",\r\n \"language\":
|
53
|
+
\"english\",\r\n \"keywords\": [\r\n {\r\n \"text\":
|
54
|
+
\"foo bar\",\r\n \"relevance\": \"0.918651\"\r\n }\r\n ],\r\n
|
55
|
+
\ \"concepts\": [\r\n\r\n ],\r\n \"entities\": [\r\n\r\n ],\n \"taxonomy\":
|
56
|
+
[\n {\n \"confident\": \"no\",\n \"label\": \"/pets/dogs\",\n
|
57
|
+
\ \"score\": \"0.392061\"\n },\n {\n \"confident\":
|
58
|
+
\"no\",\n \"label\": \"/art and entertainment/music/musical instruments/drums\",\n
|
59
|
+
\ \"score\": \"0.341637\"\n },\n {\n \"confident\":
|
60
|
+
\"no\",\n \"label\": \"/hobbies and interests/guitar\",\n \"score\":
|
61
|
+
\"0.249451\"\n }\n ]\r\n}\r\n"
|
62
|
+
http_version:
|
63
|
+
recorded_at: Thu, 21 Apr 2016 23:40:12 GMT
|
64
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,65 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://access.alchemyapi.com/calls/text/TextGetCombinedData
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: apikey=ALCHEMY_KEY&outputMode=json&text=lorem+ipsum
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.2
|
12
|
+
Content-Type:
|
13
|
+
- application/x-www-form-urlencoded
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: ''
|
18
|
+
headers:
|
19
|
+
Server:
|
20
|
+
- nginx
|
21
|
+
Date:
|
22
|
+
- Thu, 21 Apr 2016 23:40:11 GMT
|
23
|
+
Content-Type:
|
24
|
+
- application/json
|
25
|
+
Content-Length:
|
26
|
+
- '1142'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Cache-Control:
|
30
|
+
- no-cache
|
31
|
+
X-Alchemyapi-Currentversion:
|
32
|
+
- '12.33'
|
33
|
+
X-Alchemyapi-Key:
|
34
|
+
- ALCHEMY_KEY
|
35
|
+
X-Alchemyapi-Params:
|
36
|
+
- sentiment=0&knowledgeGraph=0&combinedCalls=concept,taxonomy,entity,keyword&detectedLanguage=english&submitLanguage=detect
|
37
|
+
X-Alchemyapi-Status:
|
38
|
+
- OK
|
39
|
+
X-Alchemyapi-Text-Content-Size:
|
40
|
+
- '11'
|
41
|
+
X-Alchemyapi-Total-Transactions:
|
42
|
+
- '4'
|
43
|
+
Access-Control-Allow-Origin:
|
44
|
+
- "*"
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: "{\r\n \"status\": \"OK\",\r\n \"usage\": \"By accessing AlchemyAPI
|
48
|
+
or using information generated by AlchemyAPI, you are agreeing to be bound
|
49
|
+
by the AlchemyAPI Terms of Use: http://www.alchemyapi.com/company/terms.html\",\r\n
|
50
|
+
\ \"totalTransactions\": \"4\",\r\n \"language\": \"english\",\r\n \"keywords\":
|
51
|
+
[\r\n {\r\n \"text\": \"lorem ipsum\",\r\n \"relevance\":
|
52
|
+
\"0.930128\"\r\n }\r\n ],\r\n \"concepts\": [\r\n {\r\n
|
53
|
+
\ \"text\": \"Lorem ipsum\",\r\n \"relevance\": \"0.92115\",\r\n
|
54
|
+
\ \"dbpedia\": \"http://dbpedia.org/resource/Lorem_ipsum\",\r\n
|
55
|
+
\ \"freebase\": \"http://rdf.freebase.com/ns/m.01b0qc\"\r\n }\r\n
|
56
|
+
\ ],\r\n \"entities\": [\r\n\r\n ],\n \"taxonomy\": [\n {\n
|
57
|
+
\ \"label\": \"/technology and computing/software/desktop publishing\",\n
|
58
|
+
\ \"score\": \"0.999247\"\n },\n {\n \"confident\":
|
59
|
+
\"no\",\n \"label\": \"/art and entertainment/visual art and design/design\",\n
|
60
|
+
\ \"score\": \"0.0237429\"\n },\n {\n \"confident\":
|
61
|
+
\"no\",\n \"label\": \"/technology and computing/software\",\n
|
62
|
+
\ \"score\": \"0.00896705\"\n }\n ]\r\n}\r\n"
|
63
|
+
http_version:
|
64
|
+
recorded_at: Thu, 21 Apr 2016 23:40:11 GMT
|
65
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,140 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://access.alchemyapi.com/calls/url/URLGetCombinedData
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: apikey=ALCHEMY_KEY&outputMode=json&url=http%3A%2F%2Fwww.google.com
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.2
|
12
|
+
Content-Type:
|
13
|
+
- application/x-www-form-urlencoded
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: ''
|
18
|
+
headers:
|
19
|
+
Server:
|
20
|
+
- nginx
|
21
|
+
Date:
|
22
|
+
- Thu, 21 Apr 2016 23:40:12 GMT
|
23
|
+
Content-Type:
|
24
|
+
- application/json
|
25
|
+
Content-Length:
|
26
|
+
- '6426'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Cache-Control:
|
30
|
+
- no-cache
|
31
|
+
X-Alchemyapi-Currentversion:
|
32
|
+
- '12.33'
|
33
|
+
X-Alchemyapi-Key:
|
34
|
+
- ALCHEMY_KEY
|
35
|
+
X-Alchemyapi-Params:
|
36
|
+
- sentiment=0&knowledgeGraph=0&combinedCalls=concept,taxonomy,entity,keyword&detectedLanguage=english&submitLanguage=detect
|
37
|
+
X-Alchemyapi-Raw-Content-Size:
|
38
|
+
- '46290'
|
39
|
+
X-Alchemyapi-Requested-Url:
|
40
|
+
- http://www.google.com
|
41
|
+
X-Alchemyapi-Retrieved-Url:
|
42
|
+
- http://www.google.com/
|
43
|
+
X-Alchemyapi-Status:
|
44
|
+
- OK
|
45
|
+
X-Alchemyapi-Text-Content-Size:
|
46
|
+
- '436'
|
47
|
+
X-Alchemyapi-Total-Transactions:
|
48
|
+
- '4'
|
49
|
+
Access-Control-Allow-Origin:
|
50
|
+
- "*"
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: "{\r\n \"status\": \"OK\",\r\n \"usage\": \"By accessing AlchemyAPI
|
54
|
+
or using information generated by AlchemyAPI, you are agreeing to be bound
|
55
|
+
by the AlchemyAPI Terms of Use: http://www.alchemyapi.com/company/terms.html\",\r\n
|
56
|
+
\ \"url\": \"http://www.google.com/\",\r\n \"totalTransactions\": \"4\",\r\n
|
57
|
+
\ \"language\": \"english\",\r\n \"keywords\": [\r\n {\r\n \"text\":
|
58
|
+
\"Advanced search Language\",\r\n \"relevance\": \"0.998205\"\r\n
|
59
|
+
\ },\r\n {\r\n \"text\": \"Advertising\\u00A0Programs
|
60
|
+
Business\",\r\n \"relevance\": \"0.994025\"\r\n },\r\n {\r\n
|
61
|
+
\ \"text\": \"Google Google+\",\r\n \"relevance\": \"0.936368\"\r\n
|
62
|
+
\ },\r\n {\r\n \"text\": \"YouTube News\",\r\n \"relevance\":
|
63
|
+
\"0.827103\"\r\n },\r\n {\r\n \"text\": \"+Google
|
64
|
+
About Google\",\r\n \"relevance\": \"0.801334\"\r\n },\r\n
|
65
|
+
\ {\r\n \"text\": \"Search settings\",\r\n \"relevance\":
|
66
|
+
\"0.722936\"\r\n },\r\n {\r\n \"text\": \"Finance
|
67
|
+
Photos\",\r\n \"relevance\": \"0.696956\"\r\n },\r\n {\r\n
|
68
|
+
\ \"text\": \"Account Options\",\r\n \"relevance\": \"0.684559\"\r\n
|
69
|
+
\ },\r\n {\r\n \"text\": \"Web History\",\r\n \"relevance\":
|
70
|
+
\"0.682571\"\r\n },\r\n {\r\n \"text\": \"Wallet\",\r\n
|
71
|
+
\ \"relevance\": \"0.49099\"\r\n },\r\n {\r\n \"text\":
|
72
|
+
\"Gmail\",\r\n \"relevance\": \"0.482966\"\r\n },\r\n {\r\n
|
73
|
+
\ \"text\": \"Docs\",\r\n \"relevance\": \"0.465137\"\r\n
|
74
|
+
\ },\r\n {\r\n \"text\": \"Translate\",\r\n \"relevance\":
|
75
|
+
\"0.455968\"\r\n },\r\n {\r\n \"text\": \"Blogger\",\r\n
|
76
|
+
\ \"relevance\": \"0.441582\"\r\n },\r\n {\r\n \"text\":
|
77
|
+
\"Privacy\",\r\n \"relevance\": \"0.404251\"\r\n },\r\n
|
78
|
+
\ {\r\n \"text\": \"Images\",\r\n \"relevance\":
|
79
|
+
\"0.368026\"\r\n },\r\n {\r\n \"text\": \"Maps\",\r\n
|
80
|
+
\ \"relevance\": \"0.364239\"\r\n },\r\n {\r\n \"text\":
|
81
|
+
\"Play\",\r\n \"relevance\": \"0.363855\"\r\n },\r\n {\r\n
|
82
|
+
\ \"text\": \"Drive\",\r\n \"relevance\": \"0.362442\"\r\n
|
83
|
+
\ },\r\n {\r\n \"text\": \"Calendar\",\r\n \"relevance\":
|
84
|
+
\"0.362063\"\r\n },\r\n {\r\n \"text\": \"Books\",\r\n
|
85
|
+
\ \"relevance\": \"0.360932\"\r\n },\r\n {\r\n \"text\":
|
86
|
+
\"Shopping\",\r\n \"relevance\": \"0.360183\"\r\n },\r\n
|
87
|
+
\ {\r\n \"text\": \"Videos\",\r\n \"relevance\":
|
88
|
+
\"0.35894\"\r\n },\r\n {\r\n \"text\": \"Terms\",\r\n
|
89
|
+
\ \"relevance\": \"0.354867\"\r\n }\r\n ],\r\n \"concepts\":
|
90
|
+
[\r\n {\r\n \"text\": \"Google\",\r\n \"relevance\":
|
91
|
+
\"0.921849\",\r\n \"website\": \"http://www.google.com/\",\r\n
|
92
|
+
\ \"dbpedia\": \"http://dbpedia.org/resource/Google\",\r\n \"freebase\":
|
93
|
+
\"http://rdf.freebase.com/ns/m.045c7b\",\r\n \"yago\": \"http://yago-knowledge.org/resource/Google\",\r\n
|
94
|
+
\ \"crunchbase\": \"http://www.crunchbase.com/company/google\"\r\n
|
95
|
+
\ },\r\n {\r\n \"text\": \"World Wide Web\",\r\n \"relevance\":
|
96
|
+
\"0.709543\",\r\n \"dbpedia\": \"http://dbpedia.org/resource/World_Wide_Web\",\r\n
|
97
|
+
\ \"freebase\": \"http://rdf.freebase.com/ns/m.0828v\",\r\n \"yago\":
|
98
|
+
\"http://yago-knowledge.org/resource/World_Wide_Web\"\r\n },\r\n {\r\n
|
99
|
+
\ \"text\": \"Google services\",\r\n \"relevance\": \"0.669692\",\r\n
|
100
|
+
\ \"dbpedia\": \"http://dbpedia.org/resource/Google_services\"\r\n
|
101
|
+
\ },\r\n {\r\n \"text\": \"Web 2.0\",\r\n \"relevance\":
|
102
|
+
\"0.61879\",\r\n \"dbpedia\": \"http://dbpedia.org/resource/Web_2.0\",\r\n
|
103
|
+
\ \"freebase\": \"http://rdf.freebase.com/ns/m.05b058\",\r\n \"yago\":
|
104
|
+
\"http://yago-knowledge.org/resource/Web_2.0\"\r\n },\r\n {\r\n
|
105
|
+
\ \"text\": \"IPhone\",\r\n \"relevance\": \"0.602144\",\r\n
|
106
|
+
\ \"dbpedia\": \"http://dbpedia.org/resource/IPhone\",\r\n \"freebase\":
|
107
|
+
\"http://rdf.freebase.com/ns/m.027lnzs\",\r\n \"yago\": \"http://yago-knowledge.org/resource/IPhone\"\r\n
|
108
|
+
\ }\r\n ],\r\n \"entities\": [\r\n {\r\n \"type\":
|
109
|
+
\"Company\",\r\n \"relevance\": \"0.936146\",\r\n \"count\":
|
110
|
+
\"2\",\r\n \"text\": \"Google\",\r\n \"disambiguated\":
|
111
|
+
{\r\n \"subType\": [\r\n \"AcademicInstitution\",\r\n
|
112
|
+
\ \"AwardPresentingOrganization\",\r\n \"OperatingSystemDeveloper\",\r\n
|
113
|
+
\ \"ProgrammingLanguageDeveloper\",\r\n \"SoftwareDeveloper\",\r\n
|
114
|
+
\ \"VentureFundedCompany\"\r\n ],\r\n \"name\":
|
115
|
+
\"Google\",\r\n \"website\": \"http://www.google.com/\",\r\n
|
116
|
+
\ \"dbpedia\": \"http://dbpedia.org/resource/Google\",\r\n \"freebase\":
|
117
|
+
\"http://rdf.freebase.com/ns/m.045c7b\",\r\n \"yago\": \"http://yago-knowledge.org/resource/Google\",\r\n
|
118
|
+
\ \"crunchbase\": \"http://www.crunchbase.com/company/google\"\r\n
|
119
|
+
\ }\r\n },\r\n {\r\n \"type\": \"FieldTerminology\",\r\n
|
120
|
+
\ \"relevance\": \"0.75397\",\r\n \"count\": \"1\",\r\n
|
121
|
+
\ \"text\": \"Advanced search\"\r\n },\r\n {\r\n \"type\":
|
122
|
+
\"Company\",\r\n \"relevance\": \"0.529672\",\r\n \"count\":
|
123
|
+
\"1\",\r\n \"text\": \"YouTube\",\r\n \"disambiguated\":
|
124
|
+
{\r\n \"subType\": [\r\n \"Website\",\r\n
|
125
|
+
\ \"BroadcastDistributor\",\r\n \"FilmDistributor\",\r\n
|
126
|
+
\ \"VentureFundedCompany\",\r\n \"AwardWinner\"\r\n
|
127
|
+
\ ],\r\n \"name\": \"YouTube\",\r\n \"website\":
|
128
|
+
\"http://www.youtube.com/\",\r\n \"dbpedia\": \"http://dbpedia.org/resource/YouTube\",\r\n
|
129
|
+
\ \"freebase\": \"http://rdf.freebase.com/ns/m.09jcvs\",\r\n
|
130
|
+
\ \"yago\": \"http://yago-knowledge.org/resource/YouTube\",\r\n
|
131
|
+
\ \"crunchbase\": \"http://www.crunchbase.com/company/youtube\"\r\n
|
132
|
+
\ }\r\n }\r\n ],\n \"taxonomy\": [\n {\n \"label\":
|
133
|
+
\"/technology and computing/internet technology/email\",\n \"score\":
|
134
|
+
\"0.641823\"\n },\n {\n \"label\": \"/art and entertainment/books
|
135
|
+
and literature\",\n \"score\": \"0.500349\"\n },\n {\n
|
136
|
+
\ \"label\": \"/technology and computing/internet technology/social
|
137
|
+
network\",\n \"score\": \"0.500224\"\n }\n ]\r\n}\r\n"
|
138
|
+
http_version:
|
139
|
+
recorded_at: Thu, 21 Apr 2016 23:40:12 GMT
|
140
|
+
recorded_with: VCR 2.9.3
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alchemy-api-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Allen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -171,6 +171,7 @@ files:
|
|
171
171
|
- alchemy-api-rb.gemspec
|
172
172
|
- lib/alchemy-api/author_extraction.rb
|
173
173
|
- lib/alchemy-api/base.rb
|
174
|
+
- lib/alchemy-api/combined_call.rb
|
174
175
|
- lib/alchemy-api/concept_tagging.rb
|
175
176
|
- lib/alchemy-api/config.rb
|
176
177
|
- lib/alchemy-api/entity_extraction.rb
|
@@ -190,6 +191,7 @@ files:
|
|
190
191
|
- spec/alchemy_api_spec.rb
|
191
192
|
- spec/author_extraction_spec.rb
|
192
193
|
- spec/base_spec.rb
|
194
|
+
- spec/combined_call_spec.rb
|
193
195
|
- spec/concept_tagging_spec.rb
|
194
196
|
- spec/entity_extraction_spec.rb
|
195
197
|
- spec/face_detection_spec.rb
|
@@ -206,6 +208,9 @@ files:
|
|
206
208
|
- spec/vcr_cassettes/author_basic_url_json_search.yml
|
207
209
|
- spec/vcr_cassettes/category_basic_text_json_search.yml
|
208
210
|
- spec/vcr_cassettes/category_basic_url_json_search.yml
|
211
|
+
- spec/vcr_cassettes/combined_call_basic_html_json_search.yml
|
212
|
+
- spec/vcr_cassettes/combined_call_basic_text_json_search.yml
|
213
|
+
- spec/vcr_cassettes/combined_call_basic_url_json_search.yml
|
209
214
|
- spec/vcr_cassettes/concept_basic_html_json_search.yml
|
210
215
|
- spec/vcr_cassettes/concept_basic_text_json_search.yml
|
211
216
|
- spec/vcr_cassettes/concept_basic_url_json_search.yml
|
@@ -251,7 +256,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
251
256
|
version: '0'
|
252
257
|
requirements: []
|
253
258
|
rubyforge_project:
|
254
|
-
rubygems_version: 2.
|
259
|
+
rubygems_version: 2.6.3
|
255
260
|
signing_key:
|
256
261
|
specification_version: 4
|
257
262
|
summary: This is a ruby client library that provides access to the Alechemy text mining
|
@@ -261,6 +266,7 @@ test_files:
|
|
261
266
|
- spec/alchemy_api_spec.rb
|
262
267
|
- spec/author_extraction_spec.rb
|
263
268
|
- spec/base_spec.rb
|
269
|
+
- spec/combined_call_spec.rb
|
264
270
|
- spec/concept_tagging_spec.rb
|
265
271
|
- spec/entity_extraction_spec.rb
|
266
272
|
- spec/face_detection_spec.rb
|
@@ -277,6 +283,9 @@ test_files:
|
|
277
283
|
- spec/vcr_cassettes/author_basic_url_json_search.yml
|
278
284
|
- spec/vcr_cassettes/category_basic_text_json_search.yml
|
279
285
|
- spec/vcr_cassettes/category_basic_url_json_search.yml
|
286
|
+
- spec/vcr_cassettes/combined_call_basic_html_json_search.yml
|
287
|
+
- spec/vcr_cassettes/combined_call_basic_text_json_search.yml
|
288
|
+
- spec/vcr_cassettes/combined_call_basic_url_json_search.yml
|
280
289
|
- spec/vcr_cassettes/concept_basic_html_json_search.yml
|
281
290
|
- spec/vcr_cassettes/concept_basic_text_json_search.yml
|
282
291
|
- spec/vcr_cassettes/concept_basic_url_json_search.yml
|