aylien_text_api 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -1
  3. data/README.md +1 -1
  4. data/aylien_text_api.gemspec +2 -2
  5. data/lib/aylien_text_api/client.rb +41 -12
  6. data/lib/aylien_text_api/configuration.rb +2 -1
  7. data/lib/aylien_text_api/connection.rb +2 -2
  8. data/lib/aylien_text_api/version.rb +1 -1
  9. data/spec/fixtures/aylien_text_api/client/classify_with_invalid_client.yml +3 -3
  10. data/spec/fixtures/aylien_text_api/client/classify_with_invalid_params.yml +18 -9
  11. data/spec/fixtures/aylien_text_api/client/classify_with_text.yml +7 -7
  12. data/spec/fixtures/aylien_text_api/client/classify_with_unauthenticated_client.yml +5 -5
  13. data/spec/fixtures/aylien_text_api/client/classify_with_valid_url.yml +7 -7
  14. data/spec/fixtures/aylien_text_api/client/classify_with_value_as_text.yml +7 -7
  15. data/spec/fixtures/aylien_text_api/client/classify_with_value_as_valid_url.yml +7 -7
  16. data/spec/fixtures/aylien_text_api/client/combined_with_invalid_client.yml +38 -0
  17. data/spec/fixtures/aylien_text_api/client/combined_with_invalid_params.yml +57 -0
  18. data/spec/fixtures/aylien_text_api/client/combined_with_text.yml +70 -0
  19. data/spec/fixtures/aylien_text_api/client/combined_with_unauthenticated_client.yml +42 -0
  20. data/spec/fixtures/aylien_text_api/client/combined_with_valid_url.yml +315 -0
  21. data/spec/fixtures/aylien_text_api/client/combined_with_value_as_text.yml +70 -0
  22. data/spec/fixtures/aylien_text_api/client/combined_with_value_as_valid_url.yml +315 -0
  23. data/spec/fixtures/aylien_text_api/client/concepts_with_invalid_client.yml +3 -3
  24. data/spec/fixtures/aylien_text_api/client/concepts_with_invalid_params.yml +18 -9
  25. data/spec/fixtures/aylien_text_api/client/concepts_with_text.yml +42 -13
  26. data/spec/fixtures/aylien_text_api/client/concepts_with_unauthenticated_client.yml +5 -5
  27. data/spec/fixtures/aylien_text_api/client/concepts_with_valid_url.yml +89 -100
  28. data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_text.yml +42 -13
  29. data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_valid_url.yml +89 -100
  30. data/spec/fixtures/aylien_text_api/client/entities_with_invalid_client.yml +3 -3
  31. data/spec/fixtures/aylien_text_api/client/entities_with_invalid_params.yml +9 -9
  32. data/spec/fixtures/aylien_text_api/client/entities_with_text.yml +19 -12
  33. data/spec/fixtures/aylien_text_api/client/entities_with_unauthenticated_client.yml +5 -5
  34. data/spec/fixtures/aylien_text_api/client/entities_with_valid_url.yml +459 -456
  35. data/spec/fixtures/aylien_text_api/client/entities_with_value_as_text.yml +19 -12
  36. data/spec/fixtures/aylien_text_api/client/entities_with_value_as_valid_url.yml +459 -456
  37. data/spec/fixtures/aylien_text_api/client/extract_with_invalid_client.yml +3 -3
  38. data/spec/fixtures/aylien_text_api/client/extract_with_invalid_params.yml +19 -10
  39. data/spec/fixtures/aylien_text_api/client/extract_with_unauthenticated_client.yml +5 -5
  40. data/spec/fixtures/aylien_text_api/client/extract_with_valid_url.yml +7 -7
  41. data/spec/fixtures/aylien_text_api/client/extract_with_value_as_text.yml +18 -9
  42. data/spec/fixtures/aylien_text_api/client/extract_with_value_as_valid_url.yml +7 -7
  43. data/spec/fixtures/aylien_text_api/client/hashtags_with_invalid_client.yml +3 -3
  44. data/spec/fixtures/aylien_text_api/client/hashtags_with_invalid_params.yml +18 -9
  45. data/spec/fixtures/aylien_text_api/client/hashtags_with_text.yml +10 -11
  46. data/spec/fixtures/aylien_text_api/client/hashtags_with_unauthenticated_client.yml +5 -5
  47. data/spec/fixtures/aylien_text_api/client/hashtags_with_valid_url.yml +12 -12
  48. data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_text.yml +10 -11
  49. data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_valid_url.yml +12 -12
  50. data/spec/fixtures/aylien_text_api/client/image_tags_with_invalid_client.yml +3 -3
  51. data/spec/fixtures/aylien_text_api/client/image_tags_with_invalid_params.yml +7 -7
  52. data/spec/fixtures/aylien_text_api/client/image_tags_with_unauthenticated_client.yml +5 -5
  53. data/spec/fixtures/aylien_text_api/client/image_tags_with_valid_url.yml +10 -9
  54. data/spec/fixtures/aylien_text_api/client/image_tags_with_value_as_text.yml +7 -7
  55. data/spec/fixtures/aylien_text_api/client/image_tags_with_value_as_valid_url.yml +10 -9
  56. data/spec/fixtures/aylien_text_api/client/language_with_invalid_client.yml +3 -3
  57. data/spec/fixtures/aylien_text_api/client/language_with_invalid_params.yml +18 -9
  58. data/spec/fixtures/aylien_text_api/client/language_with_unauthenticated_client.yml +5 -5
  59. data/spec/fixtures/aylien_text_api/client/language_with_valid_text.yml +9 -9
  60. data/spec/fixtures/aylien_text_api/client/language_with_valid_url.yml +8 -8
  61. data/spec/fixtures/aylien_text_api/client/language_with_value_as_text.yml +8 -8
  62. data/spec/fixtures/aylien_text_api/client/language_with_value_as_valid_url.yml +8 -8
  63. data/spec/fixtures/aylien_text_api/client/microformats_with_invalid_client.yml +3 -3
  64. data/spec/fixtures/aylien_text_api/client/microformats_with_invalid_params.yml +7 -7
  65. data/spec/fixtures/aylien_text_api/client/microformats_with_unauthenticated_client.yml +5 -5
  66. data/spec/fixtures/aylien_text_api/client/microformats_with_valid_url.yml +8 -8
  67. data/spec/fixtures/aylien_text_api/client/microformats_with_value_as_valid_url.yml +8 -8
  68. data/spec/fixtures/aylien_text_api/client/related_with_invalid_client.yml +3 -3
  69. data/spec/fixtures/aylien_text_api/client/related_with_invalid_params.yml +24 -10
  70. data/spec/fixtures/aylien_text_api/client/related_with_phrase.yml +47 -47
  71. data/spec/fixtures/aylien_text_api/client/related_with_unauthenticated_client.yml +5 -5
  72. data/spec/fixtures/aylien_text_api/client/related_with_value_as_phrase.yml +47 -47
  73. data/spec/fixtures/aylien_text_api/client/related_with_value_as_valid_url.yml +23 -9
  74. data/spec/fixtures/aylien_text_api/client/sentiment_with_invalid_client.yml +3 -3
  75. data/spec/fixtures/aylien_text_api/client/sentiment_with_invalid_params.yml +18 -9
  76. data/spec/fixtures/aylien_text_api/client/sentiment_with_text.yml +8 -8
  77. data/spec/fixtures/aylien_text_api/client/sentiment_with_unauthenticated_client.yml +5 -5
  78. data/spec/fixtures/aylien_text_api/client/sentiment_with_valid_url.yml +8 -8
  79. data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_text.yml +8 -8
  80. data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_valid_url.yml +8 -8
  81. data/spec/fixtures/aylien_text_api/client/summarize_with_invalid_client.yml +3 -3
  82. data/spec/fixtures/aylien_text_api/client/summarize_with_invalid_params.yml +23 -10
  83. data/spec/fixtures/aylien_text_api/client/summarize_with_title_and_text.yml +7 -7
  84. data/spec/fixtures/aylien_text_api/client/summarize_with_unauthenticated_client.yml +5 -5
  85. data/spec/fixtures/aylien_text_api/client/summarize_with_valid_url.yml +7 -7
  86. data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_title.yml +7 -7
  87. data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_without_title.yml +18 -10
  88. data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_valid_url.yml +7 -7
  89. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_invalid_client.yml +3 -3
  90. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_invalid_params.yml +7 -7
  91. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_text.yml +7 -7
  92. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_unauthenticated_client.yml +5 -5
  93. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_valid_url.yml +7 -7
  94. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_value_as_text.yml +7 -7
  95. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_value_as_valid_url.yml +7 -7
  96. data/spec/lib/aylien_text_api/client_spec.rb +1 -0
  97. data/spec/lib/aylien_text_api/combined.rb +88 -0
  98. metadata +25 -9
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.2.0
4
+ version: 0.3.0
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: 2015-03-16 00:00:00.000000000 Z
12
+ date: 2015-08-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -67,9 +67,9 @@ dependencies:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
69
  version: '1.20'
70
- description: Aylien Text API is a package of nine different Natural Language Processing,
71
- Information Retrieval and Machine Learning APIs that can be quickly and easily adapted
72
- to your processes and applications.
70
+ description: AYLIEN Text Analysis API is a package of Natural Language Processing
71
+ and Machine Learning-powered tools for analyzing and extracting various kinds of
72
+ information from text and images.
73
73
  email:
74
74
  - hello@aylien.com
75
75
  - hamed.r.nik@gmail.com
@@ -98,6 +98,13 @@ files:
98
98
  - spec/fixtures/aylien_text_api/client/classify_with_valid_url.yml
99
99
  - spec/fixtures/aylien_text_api/client/classify_with_value_as_text.yml
100
100
  - spec/fixtures/aylien_text_api/client/classify_with_value_as_valid_url.yml
101
+ - spec/fixtures/aylien_text_api/client/combined_with_invalid_client.yml
102
+ - spec/fixtures/aylien_text_api/client/combined_with_invalid_params.yml
103
+ - spec/fixtures/aylien_text_api/client/combined_with_text.yml
104
+ - spec/fixtures/aylien_text_api/client/combined_with_unauthenticated_client.yml
105
+ - spec/fixtures/aylien_text_api/client/combined_with_valid_url.yml
106
+ - spec/fixtures/aylien_text_api/client/combined_with_value_as_text.yml
107
+ - spec/fixtures/aylien_text_api/client/combined_with_value_as_valid_url.yml
101
108
  - spec/fixtures/aylien_text_api/client/concepts_with_invalid_client.yml
102
109
  - spec/fixtures/aylien_text_api/client/concepts_with_invalid_params.yml
103
110
  - spec/fixtures/aylien_text_api/client/concepts_with_text.yml
@@ -173,6 +180,7 @@ files:
173
180
  - spec/fixtures/aylien_text_api/client/unsupervised_classify_with_value_as_valid_url.yml
174
181
  - spec/lib/aylien_text_api/classify.rb
175
182
  - spec/lib/aylien_text_api/client_spec.rb
183
+ - spec/lib/aylien_text_api/combined.rb
176
184
  - spec/lib/aylien_text_api/concepts.rb
177
185
  - spec/lib/aylien_text_api/entities.rb
178
186
  - spec/lib/aylien_text_api/extract.rb
@@ -205,12 +213,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
213
  version: '0'
206
214
  requirements: []
207
215
  rubyforge_project:
208
- rubygems_version: 2.4.6
216
+ rubygems_version: 2.4.8
209
217
  signing_key:
210
218
  specification_version: 4
211
- summary: Aylien Text API is a package of nine different Natural Language Processing,
212
- Information Retrieval and Machine Learning APIs that can be quickly and easily adapted
213
- to your processes and applications.
219
+ summary: AYLIEN Text Analysis API is a package of Natural Language Processing and
220
+ Machine Learning-powered tools for analyzing and extracting various kinds of information
221
+ from text and images.
214
222
  test_files:
215
223
  - spec/fixtures/aylien_text_api/client/classify_with_invalid_client.yml
216
224
  - spec/fixtures/aylien_text_api/client/classify_with_invalid_params.yml
@@ -219,6 +227,13 @@ test_files:
219
227
  - spec/fixtures/aylien_text_api/client/classify_with_valid_url.yml
220
228
  - spec/fixtures/aylien_text_api/client/classify_with_value_as_text.yml
221
229
  - spec/fixtures/aylien_text_api/client/classify_with_value_as_valid_url.yml
230
+ - spec/fixtures/aylien_text_api/client/combined_with_invalid_client.yml
231
+ - spec/fixtures/aylien_text_api/client/combined_with_invalid_params.yml
232
+ - spec/fixtures/aylien_text_api/client/combined_with_text.yml
233
+ - spec/fixtures/aylien_text_api/client/combined_with_unauthenticated_client.yml
234
+ - spec/fixtures/aylien_text_api/client/combined_with_valid_url.yml
235
+ - spec/fixtures/aylien_text_api/client/combined_with_value_as_text.yml
236
+ - spec/fixtures/aylien_text_api/client/combined_with_value_as_valid_url.yml
222
237
  - spec/fixtures/aylien_text_api/client/concepts_with_invalid_client.yml
223
238
  - spec/fixtures/aylien_text_api/client/concepts_with_invalid_params.yml
224
239
  - spec/fixtures/aylien_text_api/client/concepts_with_text.yml
@@ -294,6 +309,7 @@ test_files:
294
309
  - spec/fixtures/aylien_text_api/client/unsupervised_classify_with_value_as_valid_url.yml
295
310
  - spec/lib/aylien_text_api/classify.rb
296
311
  - spec/lib/aylien_text_api/client_spec.rb
312
+ - spec/lib/aylien_text_api/combined.rb
297
313
  - spec/lib/aylien_text_api/concepts.rb
298
314
  - spec/lib/aylien_text_api/entities.rb
299
315
  - spec/lib/aylien_text_api/extract.rb