aylien_text_api 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -8
- data/lib/aylien_text_api/client.rb +1 -1
- data/lib/aylien_text_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 296a6d404684da939113ec15439bd3b66a7d0fb4
|
4
|
+
data.tar.gz: fb73352cccbd666e18a0d88c4245ef7762f197ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7ff425527ad61360dc237548340d1e55596ccb34aa57ff409db38b04dbc0fdb62bc14735a0e9d7fe306d4aff6e6f83ebdcfd3998eda93d923ab77a4396d4b3e
|
7
|
+
data.tar.gz: e0490b0f0732b66dc7f0f34a6659db26b9117b8ddecc08a725499487d9ae149e590d4f219c821a4b98deb5e2b7715b6292e6121c7423d7cd3ecab46c5e17f2f8
|
data/README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
About
|
2
2
|
=====
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/aylien_text_api.svg)](http://badge.fury.io/rb/aylien_text_api)
|
3
4
|
|
4
5
|
This is the Ruby client library for AYLIEN's APIs. If you haven't already done so, you will need to [sign up](https://developer.aylien.com/signup).
|
5
6
|
|
@@ -40,12 +41,13 @@ After configuring a client, you can do the following things:
|
|
40
41
|
|
41
42
|
````ruby
|
42
43
|
client.extract url: "http://techcrunch.com/2014/02/27/aylien-launches-text-analysis-api-to-help-developers-extract-meaning-from-documents/"
|
44
|
+
|
43
45
|
# => {
|
44
|
-
:title=>"Aylien Launches Text-Analysis API To Help Developers...",
|
45
|
-
:article=>"Working with text is often a messy business for...",
|
46
|
-
:image=>"", :author=>"Frederic Lardinois", :videos=>[],
|
47
|
-
:feeds=>["http://techcrunch.com/2014/02/27/aylien-...
|
48
|
-
}
|
46
|
+
# :title=>"Aylien Launches Text-Analysis API To Help Developers...",
|
47
|
+
# :article=>"Working with text is often a messy business for...",
|
48
|
+
# :image=>"", :author=>"Frederic Lardinois", :videos=>[],
|
49
|
+
# :feeds=>["http://techcrunch.com/2014/02/27/aylien-...
|
50
|
+
# }
|
49
51
|
````
|
50
52
|
|
51
53
|
If any errors happen during the call, nil will be returned. If destructive methods are used, an exception corresponding to the error will be returned.
|
@@ -53,9 +55,9 @@ If any errors happen during the call, nil will be returned. If destructive metho
|
|
53
55
|
````ruby
|
54
56
|
client.classify! url: "http://www.bbc.com/sport/0/football/25912393"
|
55
57
|
# => {:text=>"Lionel Messi: Forward is not for sale, says...,
|
56
|
-
:language=>"en",
|
57
|
-
:categories=>[{:label=>"sport - soccer", :code=>"15054000", :confidence=>1.0}]
|
58
|
-
}
|
58
|
+
# :language=>"en",
|
59
|
+
# :categories=>[{:label=>"sport - soccer", :code=>"15054000", :confidence=>1.0}]
|
60
|
+
# }
|
59
61
|
````
|
60
62
|
|
61
63
|
Third Party Libraries and Dependencies
|
@@ -17,7 +17,7 @@ module AylienTextApi
|
|
17
17
|
class Client
|
18
18
|
attr_accessor *Configuration::VALID_CONFIG_KEYS
|
19
19
|
|
20
|
-
# Creates
|
20
|
+
# Creates a Client object.
|
21
21
|
# @param [Hash] options Configuration params
|
22
22
|
# @option options [String] :app_id The APP_ID
|
23
23
|
# @option options [String] :app_key The APP_KEY
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aylien_text_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aylien Inc.
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-12-
|
12
|
+
date: 2014-12-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|