cloudmersive-nlp-api-client 2.0.6 → 3.0.2
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
- metadata +3 -136
- data/Gemfile +0 -7
- data/README.md +0 -151
- data/Rakefile +0 -8
- data/cloudmersive-nlp-api-client.gemspec +0 -45
- data/docs/AnalyticsApi.md +0 -118
- data/docs/CheckSentenceRequest.md +0 -8
- data/docs/CheckSentenceResponse.md +0 -9
- data/docs/CheckWordRequest.md +0 -8
- data/docs/CheckWordResponse.md +0 -9
- data/docs/CorrectWordInSentence.md +0 -10
- data/docs/Entity.md +0 -9
- data/docs/ExtractEntitiesApi.md +0 -63
- data/docs/ExtractEntitiesRequest.md +0 -8
- data/docs/ExtractEntitiesResponse.md +0 -9
- data/docs/GetWordsRequest.md +0 -8
- data/docs/GetWordsResponse.md +0 -8
- data/docs/LanguageDetectionApi.md +0 -63
- data/docs/LanguageDetectionRequest.md +0 -8
- data/docs/LanguageDetectionResponse.md +0 -10
- data/docs/LanguageTranslationApi.md +0 -228
- data/docs/LanguageTranslationRequest.md +0 -8
- data/docs/LanguageTranslationResponse.md +0 -10
- data/docs/ParseApi.md +0 -63
- data/docs/ParseRequest.md +0 -8
- data/docs/ParseResponse.md +0 -8
- data/docs/PosRequest.md +0 -8
- data/docs/PosResponse.md +0 -8
- data/docs/PosSentence.md +0 -8
- data/docs/PosTaggedWord.md +0 -9
- data/docs/PosTaggerApi.md +0 -338
- data/docs/ProfanityAnalysisRequest.md +0 -8
- data/docs/ProfanityAnalysisResponse.md +0 -10
- data/docs/RephraseApi.md +0 -63
- data/docs/RephraseRequest.md +0 -9
- data/docs/RephraseResponse.md +0 -10
- data/docs/RephrasedSentence.md +0 -10
- data/docs/RephrasedSentenceOption.md +0 -9
- data/docs/SegmentationApi.md +0 -118
- data/docs/SentenceSegmentationRequest.md +0 -8
- data/docs/SentenceSegmentationResponse.md +0 -10
- data/docs/SentimentAnalysisRequest.md +0 -8
- data/docs/SentimentAnalysisResponse.md +0 -11
- data/docs/SpellcheckApi.md +0 -118
- data/docs/WordPosition.md +0 -11
- data/git_push.sh +0 -55
- data/lib/cloudmersive-nlp-api-client.rb +0 -79
- data/lib/cloudmersive-nlp-api-client/api/analytics_api.rb +0 -133
- data/lib/cloudmersive-nlp-api-client/api/extract_entities_api.rb +0 -78
- data/lib/cloudmersive-nlp-api-client/api/language_detection_api.rb +0 -78
- data/lib/cloudmersive-nlp-api-client/api/language_translation_api.rb +0 -243
- data/lib/cloudmersive-nlp-api-client/api/parse_api.rb +0 -78
- data/lib/cloudmersive-nlp-api-client/api/pos_tagger_api.rb +0 -353
- data/lib/cloudmersive-nlp-api-client/api/rephrase_api.rb +0 -78
- data/lib/cloudmersive-nlp-api-client/api/segmentation_api.rb +0 -133
- data/lib/cloudmersive-nlp-api-client/api/spellcheck_api.rb +0 -133
- data/lib/cloudmersive-nlp-api-client/api_client.rb +0 -389
- data/lib/cloudmersive-nlp-api-client/api_error.rb +0 -38
- data/lib/cloudmersive-nlp-api-client/configuration.rb +0 -209
- data/lib/cloudmersive-nlp-api-client/models/check_sentence_request.rb +0 -189
- data/lib/cloudmersive-nlp-api-client/models/check_sentence_response.rb +0 -201
- data/lib/cloudmersive-nlp-api-client/models/check_word_request.rb +0 -188
- data/lib/cloudmersive-nlp-api-client/models/check_word_response.rb +0 -201
- data/lib/cloudmersive-nlp-api-client/models/correct_word_in_sentence.rb +0 -211
- data/lib/cloudmersive-nlp-api-client/models/entity.rb +0 -197
- data/lib/cloudmersive-nlp-api-client/models/extract_entities_request.rb +0 -189
- data/lib/cloudmersive-nlp-api-client/models/extract_entities_response.rb +0 -200
- data/lib/cloudmersive-nlp-api-client/models/get_words_request.rb +0 -188
- data/lib/cloudmersive-nlp-api-client/models/get_words_response.rb +0 -191
- data/lib/cloudmersive-nlp-api-client/models/language_detection_request.rb +0 -189
- data/lib/cloudmersive-nlp-api-client/models/language_detection_response.rb +0 -209
- data/lib/cloudmersive-nlp-api-client/models/language_translation_request.rb +0 -189
- data/lib/cloudmersive-nlp-api-client/models/language_translation_response.rb +0 -209
- data/lib/cloudmersive-nlp-api-client/models/parse_request.rb +0 -189
- data/lib/cloudmersive-nlp-api-client/models/parse_response.rb +0 -189
- data/lib/cloudmersive-nlp-api-client/models/pos_request.rb +0 -189
- data/lib/cloudmersive-nlp-api-client/models/pos_response.rb +0 -191
- data/lib/cloudmersive-nlp-api-client/models/pos_sentence.rb +0 -191
- data/lib/cloudmersive-nlp-api-client/models/pos_tagged_word.rb +0 -199
- data/lib/cloudmersive-nlp-api-client/models/profanity_analysis_request.rb +0 -189
- data/lib/cloudmersive-nlp-api-client/models/profanity_analysis_response.rb +0 -209
- data/lib/cloudmersive-nlp-api-client/models/rephrase_request.rb +0 -199
- data/lib/cloudmersive-nlp-api-client/models/rephrase_response.rb +0 -211
- data/lib/cloudmersive-nlp-api-client/models/rephrased_sentence.rb +0 -211
- data/lib/cloudmersive-nlp-api-client/models/rephrased_sentence_option.rb +0 -199
- data/lib/cloudmersive-nlp-api-client/models/sentence_segmentation_request.rb +0 -188
- data/lib/cloudmersive-nlp-api-client/models/sentence_segmentation_response.rb +0 -208
- data/lib/cloudmersive-nlp-api-client/models/sentiment_analysis_request.rb +0 -189
- data/lib/cloudmersive-nlp-api-client/models/sentiment_analysis_response.rb +0 -219
- data/lib/cloudmersive-nlp-api-client/models/word_position.rb +0 -219
- data/lib/cloudmersive-nlp-api-client/version.rb +0 -15
- data/spec/api/analytics_api_spec.rb +0 -59
- data/spec/api/extract_entities_api_spec.rb +0 -47
- data/spec/api/language_detection_api_spec.rb +0 -47
- data/spec/api/language_translation_api_spec.rb +0 -83
- data/spec/api/parse_api_spec.rb +0 -47
- data/spec/api/pos_tagger_api_spec.rb +0 -107
- data/spec/api/rephrase_api_spec.rb +0 -47
- data/spec/api/segmentation_api_spec.rb +0 -59
- data/spec/api/spellcheck_api_spec.rb +0 -59
- data/spec/api_client_spec.rb +0 -226
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/check_sentence_request_spec.rb +0 -42
- data/spec/models/check_sentence_response_spec.rb +0 -48
- data/spec/models/check_word_request_spec.rb +0 -42
- data/spec/models/check_word_response_spec.rb +0 -48
- data/spec/models/correct_word_in_sentence_spec.rb +0 -54
- data/spec/models/entity_spec.rb +0 -48
- data/spec/models/extract_entities_request_spec.rb +0 -42
- data/spec/models/extract_entities_response_spec.rb +0 -48
- data/spec/models/get_words_request_spec.rb +0 -42
- data/spec/models/get_words_response_spec.rb +0 -42
- data/spec/models/language_detection_request_spec.rb +0 -42
- data/spec/models/language_detection_response_spec.rb +0 -54
- data/spec/models/language_translation_request_spec.rb +0 -42
- data/spec/models/language_translation_response_spec.rb +0 -54
- data/spec/models/parse_request_spec.rb +0 -42
- data/spec/models/parse_response_spec.rb +0 -42
- data/spec/models/pos_request_spec.rb +0 -42
- data/spec/models/pos_response_spec.rb +0 -42
- data/spec/models/pos_sentence_spec.rb +0 -42
- data/spec/models/pos_tagged_word_spec.rb +0 -48
- data/spec/models/profanity_analysis_request_spec.rb +0 -42
- data/spec/models/profanity_analysis_response_spec.rb +0 -54
- data/spec/models/rephrase_request_spec.rb +0 -48
- data/spec/models/rephrase_response_spec.rb +0 -54
- data/spec/models/rephrased_sentence_option_spec.rb +0 -48
- data/spec/models/rephrased_sentence_spec.rb +0 -54
- data/spec/models/sentence_segmentation_request_spec.rb +0 -42
- data/spec/models/sentence_segmentation_response_spec.rb +0 -54
- data/spec/models/sentiment_analysis_request_spec.rb +0 -42
- data/spec/models/sentiment_analysis_response_spec.rb +0 -60
- data/spec/models/word_position_spec.rb +0 -60
- data/spec/spec_helper.rb +0 -111
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a79eeb50467efe00ff4ca18462522961a8696e69e04441ca7c92fb7115296a91
|
|
4
|
+
data.tar.gz: ed778dd325f4dd30dd5623d9fbc539434a40f57ada95db40aae887a2fcba5fe5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4fe1a99212d3a6e9f19642b9e3fcc8e9f37272f5e2216a2fff3abe715dc3f7bf5b2602ed5629a542ef0366e8fdf811be0f1cc5f66cd6a9348ae320097ee21c67
|
|
7
|
+
data.tar.gz: b0178710da823b2fb734b31c4ea83e4d7274a1d7c361f19a91ae7c92aa1aea5d459c8ff4fc30d9563178224acad75dd0a19f67dba420aa4b08e65d0d814cac1f
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cloudmersive-nlp-api-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 3.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cloudmersive
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-06-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -198,140 +198,7 @@ email:
|
|
|
198
198
|
executables: []
|
|
199
199
|
extensions: []
|
|
200
200
|
extra_rdoc_files: []
|
|
201
|
-
files:
|
|
202
|
-
- "./Gemfile"
|
|
203
|
-
- "./README.md"
|
|
204
|
-
- "./Rakefile"
|
|
205
|
-
- "./cloudmersive-nlp-api-client.gemspec"
|
|
206
|
-
- "./docs/AnalyticsApi.md"
|
|
207
|
-
- "./docs/CheckSentenceRequest.md"
|
|
208
|
-
- "./docs/CheckSentenceResponse.md"
|
|
209
|
-
- "./docs/CheckWordRequest.md"
|
|
210
|
-
- "./docs/CheckWordResponse.md"
|
|
211
|
-
- "./docs/CorrectWordInSentence.md"
|
|
212
|
-
- "./docs/Entity.md"
|
|
213
|
-
- "./docs/ExtractEntitiesApi.md"
|
|
214
|
-
- "./docs/ExtractEntitiesRequest.md"
|
|
215
|
-
- "./docs/ExtractEntitiesResponse.md"
|
|
216
|
-
- "./docs/GetWordsRequest.md"
|
|
217
|
-
- "./docs/GetWordsResponse.md"
|
|
218
|
-
- "./docs/LanguageDetectionApi.md"
|
|
219
|
-
- "./docs/LanguageDetectionRequest.md"
|
|
220
|
-
- "./docs/LanguageDetectionResponse.md"
|
|
221
|
-
- "./docs/LanguageTranslationApi.md"
|
|
222
|
-
- "./docs/LanguageTranslationRequest.md"
|
|
223
|
-
- "./docs/LanguageTranslationResponse.md"
|
|
224
|
-
- "./docs/ParseApi.md"
|
|
225
|
-
- "./docs/ParseRequest.md"
|
|
226
|
-
- "./docs/ParseResponse.md"
|
|
227
|
-
- "./docs/PosRequest.md"
|
|
228
|
-
- "./docs/PosResponse.md"
|
|
229
|
-
- "./docs/PosSentence.md"
|
|
230
|
-
- "./docs/PosTaggedWord.md"
|
|
231
|
-
- "./docs/PosTaggerApi.md"
|
|
232
|
-
- "./docs/ProfanityAnalysisRequest.md"
|
|
233
|
-
- "./docs/ProfanityAnalysisResponse.md"
|
|
234
|
-
- "./docs/RephraseApi.md"
|
|
235
|
-
- "./docs/RephraseRequest.md"
|
|
236
|
-
- "./docs/RephraseResponse.md"
|
|
237
|
-
- "./docs/RephrasedSentence.md"
|
|
238
|
-
- "./docs/RephrasedSentenceOption.md"
|
|
239
|
-
- "./docs/SegmentationApi.md"
|
|
240
|
-
- "./docs/SentenceSegmentationRequest.md"
|
|
241
|
-
- "./docs/SentenceSegmentationResponse.md"
|
|
242
|
-
- "./docs/SentimentAnalysisRequest.md"
|
|
243
|
-
- "./docs/SentimentAnalysisResponse.md"
|
|
244
|
-
- "./docs/SpellcheckApi.md"
|
|
245
|
-
- "./docs/WordPosition.md"
|
|
246
|
-
- "./git_push.sh"
|
|
247
|
-
- "./lib/cloudmersive-nlp-api-client.rb"
|
|
248
|
-
- "./lib/cloudmersive-nlp-api-client/api/analytics_api.rb"
|
|
249
|
-
- "./lib/cloudmersive-nlp-api-client/api/extract_entities_api.rb"
|
|
250
|
-
- "./lib/cloudmersive-nlp-api-client/api/language_detection_api.rb"
|
|
251
|
-
- "./lib/cloudmersive-nlp-api-client/api/language_translation_api.rb"
|
|
252
|
-
- "./lib/cloudmersive-nlp-api-client/api/parse_api.rb"
|
|
253
|
-
- "./lib/cloudmersive-nlp-api-client/api/pos_tagger_api.rb"
|
|
254
|
-
- "./lib/cloudmersive-nlp-api-client/api/rephrase_api.rb"
|
|
255
|
-
- "./lib/cloudmersive-nlp-api-client/api/segmentation_api.rb"
|
|
256
|
-
- "./lib/cloudmersive-nlp-api-client/api/spellcheck_api.rb"
|
|
257
|
-
- "./lib/cloudmersive-nlp-api-client/api_client.rb"
|
|
258
|
-
- "./lib/cloudmersive-nlp-api-client/api_error.rb"
|
|
259
|
-
- "./lib/cloudmersive-nlp-api-client/configuration.rb"
|
|
260
|
-
- "./lib/cloudmersive-nlp-api-client/models/check_sentence_request.rb"
|
|
261
|
-
- "./lib/cloudmersive-nlp-api-client/models/check_sentence_response.rb"
|
|
262
|
-
- "./lib/cloudmersive-nlp-api-client/models/check_word_request.rb"
|
|
263
|
-
- "./lib/cloudmersive-nlp-api-client/models/check_word_response.rb"
|
|
264
|
-
- "./lib/cloudmersive-nlp-api-client/models/correct_word_in_sentence.rb"
|
|
265
|
-
- "./lib/cloudmersive-nlp-api-client/models/entity.rb"
|
|
266
|
-
- "./lib/cloudmersive-nlp-api-client/models/extract_entities_request.rb"
|
|
267
|
-
- "./lib/cloudmersive-nlp-api-client/models/extract_entities_response.rb"
|
|
268
|
-
- "./lib/cloudmersive-nlp-api-client/models/get_words_request.rb"
|
|
269
|
-
- "./lib/cloudmersive-nlp-api-client/models/get_words_response.rb"
|
|
270
|
-
- "./lib/cloudmersive-nlp-api-client/models/language_detection_request.rb"
|
|
271
|
-
- "./lib/cloudmersive-nlp-api-client/models/language_detection_response.rb"
|
|
272
|
-
- "./lib/cloudmersive-nlp-api-client/models/language_translation_request.rb"
|
|
273
|
-
- "./lib/cloudmersive-nlp-api-client/models/language_translation_response.rb"
|
|
274
|
-
- "./lib/cloudmersive-nlp-api-client/models/parse_request.rb"
|
|
275
|
-
- "./lib/cloudmersive-nlp-api-client/models/parse_response.rb"
|
|
276
|
-
- "./lib/cloudmersive-nlp-api-client/models/pos_request.rb"
|
|
277
|
-
- "./lib/cloudmersive-nlp-api-client/models/pos_response.rb"
|
|
278
|
-
- "./lib/cloudmersive-nlp-api-client/models/pos_sentence.rb"
|
|
279
|
-
- "./lib/cloudmersive-nlp-api-client/models/pos_tagged_word.rb"
|
|
280
|
-
- "./lib/cloudmersive-nlp-api-client/models/profanity_analysis_request.rb"
|
|
281
|
-
- "./lib/cloudmersive-nlp-api-client/models/profanity_analysis_response.rb"
|
|
282
|
-
- "./lib/cloudmersive-nlp-api-client/models/rephrase_request.rb"
|
|
283
|
-
- "./lib/cloudmersive-nlp-api-client/models/rephrase_response.rb"
|
|
284
|
-
- "./lib/cloudmersive-nlp-api-client/models/rephrased_sentence.rb"
|
|
285
|
-
- "./lib/cloudmersive-nlp-api-client/models/rephrased_sentence_option.rb"
|
|
286
|
-
- "./lib/cloudmersive-nlp-api-client/models/sentence_segmentation_request.rb"
|
|
287
|
-
- "./lib/cloudmersive-nlp-api-client/models/sentence_segmentation_response.rb"
|
|
288
|
-
- "./lib/cloudmersive-nlp-api-client/models/sentiment_analysis_request.rb"
|
|
289
|
-
- "./lib/cloudmersive-nlp-api-client/models/sentiment_analysis_response.rb"
|
|
290
|
-
- "./lib/cloudmersive-nlp-api-client/models/word_position.rb"
|
|
291
|
-
- "./lib/cloudmersive-nlp-api-client/version.rb"
|
|
292
|
-
- "./spec/api/analytics_api_spec.rb"
|
|
293
|
-
- "./spec/api/extract_entities_api_spec.rb"
|
|
294
|
-
- "./spec/api/language_detection_api_spec.rb"
|
|
295
|
-
- "./spec/api/language_translation_api_spec.rb"
|
|
296
|
-
- "./spec/api/parse_api_spec.rb"
|
|
297
|
-
- "./spec/api/pos_tagger_api_spec.rb"
|
|
298
|
-
- "./spec/api/rephrase_api_spec.rb"
|
|
299
|
-
- "./spec/api/segmentation_api_spec.rb"
|
|
300
|
-
- "./spec/api/spellcheck_api_spec.rb"
|
|
301
|
-
- "./spec/api_client_spec.rb"
|
|
302
|
-
- "./spec/configuration_spec.rb"
|
|
303
|
-
- "./spec/models/check_sentence_request_spec.rb"
|
|
304
|
-
- "./spec/models/check_sentence_response_spec.rb"
|
|
305
|
-
- "./spec/models/check_word_request_spec.rb"
|
|
306
|
-
- "./spec/models/check_word_response_spec.rb"
|
|
307
|
-
- "./spec/models/correct_word_in_sentence_spec.rb"
|
|
308
|
-
- "./spec/models/entity_spec.rb"
|
|
309
|
-
- "./spec/models/extract_entities_request_spec.rb"
|
|
310
|
-
- "./spec/models/extract_entities_response_spec.rb"
|
|
311
|
-
- "./spec/models/get_words_request_spec.rb"
|
|
312
|
-
- "./spec/models/get_words_response_spec.rb"
|
|
313
|
-
- "./spec/models/language_detection_request_spec.rb"
|
|
314
|
-
- "./spec/models/language_detection_response_spec.rb"
|
|
315
|
-
- "./spec/models/language_translation_request_spec.rb"
|
|
316
|
-
- "./spec/models/language_translation_response_spec.rb"
|
|
317
|
-
- "./spec/models/parse_request_spec.rb"
|
|
318
|
-
- "./spec/models/parse_response_spec.rb"
|
|
319
|
-
- "./spec/models/pos_request_spec.rb"
|
|
320
|
-
- "./spec/models/pos_response_spec.rb"
|
|
321
|
-
- "./spec/models/pos_sentence_spec.rb"
|
|
322
|
-
- "./spec/models/pos_tagged_word_spec.rb"
|
|
323
|
-
- "./spec/models/profanity_analysis_request_spec.rb"
|
|
324
|
-
- "./spec/models/profanity_analysis_response_spec.rb"
|
|
325
|
-
- "./spec/models/rephrase_request_spec.rb"
|
|
326
|
-
- "./spec/models/rephrase_response_spec.rb"
|
|
327
|
-
- "./spec/models/rephrased_sentence_option_spec.rb"
|
|
328
|
-
- "./spec/models/rephrased_sentence_spec.rb"
|
|
329
|
-
- "./spec/models/sentence_segmentation_request_spec.rb"
|
|
330
|
-
- "./spec/models/sentence_segmentation_response_spec.rb"
|
|
331
|
-
- "./spec/models/sentiment_analysis_request_spec.rb"
|
|
332
|
-
- "./spec/models/sentiment_analysis_response_spec.rb"
|
|
333
|
-
- "./spec/models/word_position_spec.rb"
|
|
334
|
-
- "./spec/spec_helper.rb"
|
|
201
|
+
files: []
|
|
335
202
|
homepage: https://www.cloudmersive.com/nlp-api
|
|
336
203
|
licenses:
|
|
337
204
|
- Apache 2.0
|
data/Gemfile
DELETED
data/README.md
DELETED
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
# cloudmersive-nlp-api-client
|
|
2
|
-
|
|
3
|
-
CloudmersiveNlpApiClient - the Ruby gem for the nlpapiv2
|
|
4
|
-
|
|
5
|
-
The powerful Natural Language Processing APIs (v2) let you perform part of speech tagging, entity identification, sentence parsing, and much more to help you understand the meaning of unstructured text.
|
|
6
|
-
|
|
7
|
-
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
|
8
|
-
|
|
9
|
-
- API version: v1
|
|
10
|
-
- Package version: 2.0.6
|
|
11
|
-
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
|
12
|
-
|
|
13
|
-
## Installation
|
|
14
|
-
|
|
15
|
-
### Build a gem
|
|
16
|
-
|
|
17
|
-
To build the Ruby code into a gem:
|
|
18
|
-
|
|
19
|
-
```shell
|
|
20
|
-
gem build cloudmersive-nlp-api-client.gemspec
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Then either install the gem locally:
|
|
24
|
-
|
|
25
|
-
```shell
|
|
26
|
-
gem install ./cloudmersive-nlp-api-client-2.0.6.gem
|
|
27
|
-
```
|
|
28
|
-
(for development, run `gem install --dev ./cloudmersive-nlp-api-client-2.0.6.gem` to install the development dependencies)
|
|
29
|
-
|
|
30
|
-
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
31
|
-
|
|
32
|
-
Finally add this to the Gemfile:
|
|
33
|
-
|
|
34
|
-
gem 'cloudmersive-nlp-api-client', '~> 2.0.6'
|
|
35
|
-
|
|
36
|
-
### Install from Git
|
|
37
|
-
|
|
38
|
-
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
|
|
39
|
-
|
|
40
|
-
gem 'cloudmersive-nlp-api-client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
|
|
41
|
-
|
|
42
|
-
### Include the Ruby code directly
|
|
43
|
-
|
|
44
|
-
Include the Ruby code directly using `-I` as follows:
|
|
45
|
-
|
|
46
|
-
```shell
|
|
47
|
-
ruby -Ilib script.rb
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
## Getting Started
|
|
51
|
-
|
|
52
|
-
Please follow the [installation](#installation) procedure and then run the following code:
|
|
53
|
-
```ruby
|
|
54
|
-
# Load the gem
|
|
55
|
-
require 'cloudmersive-nlp-api-client'
|
|
56
|
-
|
|
57
|
-
# Setup authorization
|
|
58
|
-
CloudmersiveNlpApiClient.configure do |config|
|
|
59
|
-
# Configure API key authorization: Apikey
|
|
60
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
|
61
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
62
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
|
63
|
-
end
|
|
64
|
-
|
|
65
|
-
api_instance = CloudmersiveNlpApiClient::AnalyticsApi.new
|
|
66
|
-
|
|
67
|
-
input = CloudmersiveNlpApiClient::ProfanityAnalysisRequest.new # ProfanityAnalysisRequest | Input profanity analysis request
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
begin
|
|
71
|
-
#Perform Profanity and Obscene Language Analysis and Detection on Text
|
|
72
|
-
result = api_instance.analytics_profanity(input)
|
|
73
|
-
p result
|
|
74
|
-
rescue CloudmersiveNlpApiClient::ApiError => e
|
|
75
|
-
puts "Exception when calling AnalyticsApi->analytics_profanity: #{e}"
|
|
76
|
-
end
|
|
77
|
-
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
## Documentation for API Endpoints
|
|
81
|
-
|
|
82
|
-
All URIs are relative to *https://api.cloudmersive.com*
|
|
83
|
-
|
|
84
|
-
Class | Method | HTTP request | Description
|
|
85
|
-
------------ | ------------- | ------------- | -------------
|
|
86
|
-
*CloudmersiveNlpApiClient::AnalyticsApi* | [**analytics_profanity**](docs/AnalyticsApi.md#analytics_profanity) | **POST** /nlp-v2/analytics/profanity | Perform Profanity and Obscene Language Analysis and Detection on Text
|
|
87
|
-
*CloudmersiveNlpApiClient::AnalyticsApi* | [**analytics_sentiment**](docs/AnalyticsApi.md#analytics_sentiment) | **POST** /nlp-v2/analytics/sentiment | Perform Sentiment Analysis and Classification on Text
|
|
88
|
-
*CloudmersiveNlpApiClient::ExtractEntitiesApi* | [**extract_entities_post**](docs/ExtractEntitiesApi.md#extract_entities_post) | **POST** /nlp-v2/extract-entities | Extract entities from string
|
|
89
|
-
*CloudmersiveNlpApiClient::LanguageDetectionApi* | [**language_detection_get_language**](docs/LanguageDetectionApi.md#language_detection_get_language) | **POST** /nlp-v2/language/detect | Detect language of text
|
|
90
|
-
*CloudmersiveNlpApiClient::LanguageTranslationApi* | [**language_translation_translate_deu_to_eng**](docs/LanguageTranslationApi.md#language_translation_translate_deu_to_eng) | **POST** /nlp-v2/translate/language/deu/to/eng | Translate German to English text with Deep Learning AI
|
|
91
|
-
*CloudmersiveNlpApiClient::LanguageTranslationApi* | [**language_translation_translate_eng_to_deu**](docs/LanguageTranslationApi.md#language_translation_translate_eng_to_deu) | **POST** /nlp-v2/translate/language/eng/to/deu | Translate English to German text with Deep Learning AI
|
|
92
|
-
*CloudmersiveNlpApiClient::LanguageTranslationApi* | [**language_translation_translate_eng_to_rus**](docs/LanguageTranslationApi.md#language_translation_translate_eng_to_rus) | **POST** /nlp-v2/translate/language/eng/to/rus | Translate English to Russian text with Deep Learning AI
|
|
93
|
-
*CloudmersiveNlpApiClient::LanguageTranslationApi* | [**language_translation_translate_rus_to_eng**](docs/LanguageTranslationApi.md#language_translation_translate_rus_to_eng) | **POST** /nlp-v2/translate/language/rus/to/eng | Translate Russian to English text with Deep Learning AI
|
|
94
|
-
*CloudmersiveNlpApiClient::ParseApi* | [**parse_parse_string**](docs/ParseApi.md#parse_parse_string) | **POST** /nlp-v2/parse/tree | Parse string to syntax tree
|
|
95
|
-
*CloudmersiveNlpApiClient::PosTaggerApi* | [**pos_tagger_tag_adjectives**](docs/PosTaggerApi.md#pos_tagger_tag_adjectives) | **POST** /nlp-v2/pos/tag/adjectives | Part-of-speech tag a string, filter to adjectives
|
|
96
|
-
*CloudmersiveNlpApiClient::PosTaggerApi* | [**pos_tagger_tag_adverbs**](docs/PosTaggerApi.md#pos_tagger_tag_adverbs) | **POST** /nlp-v2/pos/tag/adverbs | Part-of-speech tag a string, filter to adverbs
|
|
97
|
-
*CloudmersiveNlpApiClient::PosTaggerApi* | [**pos_tagger_tag_nouns**](docs/PosTaggerApi.md#pos_tagger_tag_nouns) | **POST** /nlp-v2/pos/tag/nouns | Part-of-speech tag a string, filter to nouns
|
|
98
|
-
*CloudmersiveNlpApiClient::PosTaggerApi* | [**pos_tagger_tag_pronouns**](docs/PosTaggerApi.md#pos_tagger_tag_pronouns) | **POST** /nlp-v2/pos/tag/pronouns | Part-of-speech tag a string, filter to pronouns
|
|
99
|
-
*CloudmersiveNlpApiClient::PosTaggerApi* | [**pos_tagger_tag_sentence**](docs/PosTaggerApi.md#pos_tagger_tag_sentence) | **POST** /nlp-v2/pos/tag/sentence | Part-of-speech tag a string
|
|
100
|
-
*CloudmersiveNlpApiClient::PosTaggerApi* | [**pos_tagger_tag_verbs**](docs/PosTaggerApi.md#pos_tagger_tag_verbs) | **POST** /nlp-v2/pos/tag/verbs | Part-of-speech tag a string, filter to verbs
|
|
101
|
-
*CloudmersiveNlpApiClient::RephraseApi* | [**rephrase_translate_deu_to_eng**](docs/RephraseApi.md#rephrase_translate_deu_to_eng) | **POST** /nlp-v2/rephrase/rephrase/eng/by-sentence | Rephrase, paraphrase English text sentence-by-sentence using Deep Learning AI
|
|
102
|
-
*CloudmersiveNlpApiClient::SegmentationApi* | [**segmentation_get_sentences**](docs/SegmentationApi.md#segmentation_get_sentences) | **POST** /nlp-v2/segmentation/sentences | Extract sentences from string
|
|
103
|
-
*CloudmersiveNlpApiClient::SegmentationApi* | [**segmentation_get_words**](docs/SegmentationApi.md#segmentation_get_words) | **POST** /nlp-v2/segmentation/words | Get words in input string
|
|
104
|
-
*CloudmersiveNlpApiClient::SpellcheckApi* | [**spellcheck_check_sentence**](docs/SpellcheckApi.md#spellcheck_check_sentence) | **POST** /nlp-v2/spellcheck/check/sentence | Check if sentence is spelled correctly
|
|
105
|
-
*CloudmersiveNlpApiClient::SpellcheckApi* | [**spellcheck_correct_json**](docs/SpellcheckApi.md#spellcheck_correct_json) | **POST** /nlp-v2/spellcheck/check/word | Find spelling corrections
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
## Documentation for Models
|
|
109
|
-
|
|
110
|
-
- [CloudmersiveNlpApiClient::CheckSentenceRequest](docs/CheckSentenceRequest.md)
|
|
111
|
-
- [CloudmersiveNlpApiClient::CheckSentenceResponse](docs/CheckSentenceResponse.md)
|
|
112
|
-
- [CloudmersiveNlpApiClient::CheckWordRequest](docs/CheckWordRequest.md)
|
|
113
|
-
- [CloudmersiveNlpApiClient::CheckWordResponse](docs/CheckWordResponse.md)
|
|
114
|
-
- [CloudmersiveNlpApiClient::CorrectWordInSentence](docs/CorrectWordInSentence.md)
|
|
115
|
-
- [CloudmersiveNlpApiClient::Entity](docs/Entity.md)
|
|
116
|
-
- [CloudmersiveNlpApiClient::ExtractEntitiesRequest](docs/ExtractEntitiesRequest.md)
|
|
117
|
-
- [CloudmersiveNlpApiClient::ExtractEntitiesResponse](docs/ExtractEntitiesResponse.md)
|
|
118
|
-
- [CloudmersiveNlpApiClient::GetWordsRequest](docs/GetWordsRequest.md)
|
|
119
|
-
- [CloudmersiveNlpApiClient::GetWordsResponse](docs/GetWordsResponse.md)
|
|
120
|
-
- [CloudmersiveNlpApiClient::LanguageDetectionRequest](docs/LanguageDetectionRequest.md)
|
|
121
|
-
- [CloudmersiveNlpApiClient::LanguageDetectionResponse](docs/LanguageDetectionResponse.md)
|
|
122
|
-
- [CloudmersiveNlpApiClient::LanguageTranslationRequest](docs/LanguageTranslationRequest.md)
|
|
123
|
-
- [CloudmersiveNlpApiClient::LanguageTranslationResponse](docs/LanguageTranslationResponse.md)
|
|
124
|
-
- [CloudmersiveNlpApiClient::ParseRequest](docs/ParseRequest.md)
|
|
125
|
-
- [CloudmersiveNlpApiClient::ParseResponse](docs/ParseResponse.md)
|
|
126
|
-
- [CloudmersiveNlpApiClient::PosRequest](docs/PosRequest.md)
|
|
127
|
-
- [CloudmersiveNlpApiClient::PosResponse](docs/PosResponse.md)
|
|
128
|
-
- [CloudmersiveNlpApiClient::PosSentence](docs/PosSentence.md)
|
|
129
|
-
- [CloudmersiveNlpApiClient::PosTaggedWord](docs/PosTaggedWord.md)
|
|
130
|
-
- [CloudmersiveNlpApiClient::ProfanityAnalysisRequest](docs/ProfanityAnalysisRequest.md)
|
|
131
|
-
- [CloudmersiveNlpApiClient::ProfanityAnalysisResponse](docs/ProfanityAnalysisResponse.md)
|
|
132
|
-
- [CloudmersiveNlpApiClient::RephraseRequest](docs/RephraseRequest.md)
|
|
133
|
-
- [CloudmersiveNlpApiClient::RephraseResponse](docs/RephraseResponse.md)
|
|
134
|
-
- [CloudmersiveNlpApiClient::RephrasedSentence](docs/RephrasedSentence.md)
|
|
135
|
-
- [CloudmersiveNlpApiClient::RephrasedSentenceOption](docs/RephrasedSentenceOption.md)
|
|
136
|
-
- [CloudmersiveNlpApiClient::SentenceSegmentationRequest](docs/SentenceSegmentationRequest.md)
|
|
137
|
-
- [CloudmersiveNlpApiClient::SentenceSegmentationResponse](docs/SentenceSegmentationResponse.md)
|
|
138
|
-
- [CloudmersiveNlpApiClient::SentimentAnalysisRequest](docs/SentimentAnalysisRequest.md)
|
|
139
|
-
- [CloudmersiveNlpApiClient::SentimentAnalysisResponse](docs/SentimentAnalysisResponse.md)
|
|
140
|
-
- [CloudmersiveNlpApiClient::WordPosition](docs/WordPosition.md)
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
## Documentation for Authorization
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
### Apikey
|
|
147
|
-
|
|
148
|
-
- **Type**: API key
|
|
149
|
-
- **API key parameter name**: Apikey
|
|
150
|
-
- **Location**: HTTP header
|
|
151
|
-
|
data/Rakefile
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
|
2
|
-
#
|
|
3
|
-
=begin
|
|
4
|
-
#nlpapiv2
|
|
5
|
-
|
|
6
|
-
#The powerful Natural Language Processing APIs (v2) let you perform part of speech tagging, entity identification, sentence parsing, and much more to help you understand the meaning of unstructured text.
|
|
7
|
-
|
|
8
|
-
OpenAPI spec version: v1
|
|
9
|
-
|
|
10
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
-
Swagger Codegen version: 2.3.1
|
|
12
|
-
|
|
13
|
-
=end
|
|
14
|
-
|
|
15
|
-
$:.push File.expand_path("../lib", __FILE__)
|
|
16
|
-
require "cloudmersive-nlp-api-client/version"
|
|
17
|
-
|
|
18
|
-
Gem::Specification.new do |s|
|
|
19
|
-
s.name = "cloudmersive-nlp-api-client"
|
|
20
|
-
s.version = CloudmersiveNlpApiClient::VERSION
|
|
21
|
-
s.platform = Gem::Platform::RUBY
|
|
22
|
-
s.authors = ["Cloudmersive"]
|
|
23
|
-
s.email = [""]
|
|
24
|
-
s.homepage = "https://www.cloudmersive.com/nlp-api"
|
|
25
|
-
s.summary = "The most powerful and cost-effective NLP AI APIs, continuously updated."
|
|
26
|
-
s.description = "The powerful Natural Language Processing APIs let you perform part of speech tagging, entity identification, sentence parsing, and much more to help you understand the meaning of unstructured text."
|
|
27
|
-
s.license = "Apache 2.0"
|
|
28
|
-
s.required_ruby_version = ">= 1.9"
|
|
29
|
-
|
|
30
|
-
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
|
31
|
-
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
|
32
|
-
|
|
33
|
-
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
|
34
|
-
s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
|
|
35
|
-
s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
|
|
36
|
-
s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
|
|
37
|
-
s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
|
|
38
|
-
s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
|
|
39
|
-
s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
|
|
40
|
-
|
|
41
|
-
s.files = Dir['./**/*']
|
|
42
|
-
s.test_files = `find spec/*`.split("\n")
|
|
43
|
-
s.executables = []
|
|
44
|
-
s.require_paths = ["lib"]
|
|
45
|
-
end
|
data/docs/AnalyticsApi.md
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
# CloudmersiveNlpApiClient::AnalyticsApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.cloudmersive.com*
|
|
4
|
-
|
|
5
|
-
Method | HTTP request | Description
|
|
6
|
-
------------- | ------------- | -------------
|
|
7
|
-
[**analytics_profanity**](AnalyticsApi.md#analytics_profanity) | **POST** /nlp-v2/analytics/profanity | Perform Profanity and Obscene Language Analysis and Detection on Text
|
|
8
|
-
[**analytics_sentiment**](AnalyticsApi.md#analytics_sentiment) | **POST** /nlp-v2/analytics/sentiment | Perform Sentiment Analysis and Classification on Text
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
# **analytics_profanity**
|
|
12
|
-
> ProfanityAnalysisResponse analytics_profanity(input)
|
|
13
|
-
|
|
14
|
-
Perform Profanity and Obscene Language Analysis and Detection on Text
|
|
15
|
-
|
|
16
|
-
Analyze input text using advanced Profanity and Obscene Language Analysis to determine if the input contains profane language. Supports English language input. Consumes 1-2 API calls per sentence.
|
|
17
|
-
|
|
18
|
-
### Example
|
|
19
|
-
```ruby
|
|
20
|
-
# load the gem
|
|
21
|
-
require 'cloudmersive-nlp-api-client'
|
|
22
|
-
# setup authorization
|
|
23
|
-
CloudmersiveNlpApiClient.configure do |config|
|
|
24
|
-
# Configure API key authorization: Apikey
|
|
25
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
|
26
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
27
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
api_instance = CloudmersiveNlpApiClient::AnalyticsApi.new
|
|
31
|
-
|
|
32
|
-
input = CloudmersiveNlpApiClient::ProfanityAnalysisRequest.new # ProfanityAnalysisRequest | Input profanity analysis request
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
begin
|
|
36
|
-
#Perform Profanity and Obscene Language Analysis and Detection on Text
|
|
37
|
-
result = api_instance.analytics_profanity(input)
|
|
38
|
-
p result
|
|
39
|
-
rescue CloudmersiveNlpApiClient::ApiError => e
|
|
40
|
-
puts "Exception when calling AnalyticsApi->analytics_profanity: #{e}"
|
|
41
|
-
end
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
### Parameters
|
|
45
|
-
|
|
46
|
-
Name | Type | Description | Notes
|
|
47
|
-
------------- | ------------- | ------------- | -------------
|
|
48
|
-
**input** | [**ProfanityAnalysisRequest**](ProfanityAnalysisRequest.md)| Input profanity analysis request |
|
|
49
|
-
|
|
50
|
-
### Return type
|
|
51
|
-
|
|
52
|
-
[**ProfanityAnalysisResponse**](ProfanityAnalysisResponse.md)
|
|
53
|
-
|
|
54
|
-
### Authorization
|
|
55
|
-
|
|
56
|
-
[Apikey](../README.md#Apikey)
|
|
57
|
-
|
|
58
|
-
### HTTP request headers
|
|
59
|
-
|
|
60
|
-
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
|
61
|
-
- **Accept**: application/json, text/json, application/xml, text/xml
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
# **analytics_sentiment**
|
|
66
|
-
> SentimentAnalysisResponse analytics_sentiment(input)
|
|
67
|
-
|
|
68
|
-
Perform Sentiment Analysis and Classification on Text
|
|
69
|
-
|
|
70
|
-
Analyze input text using advanced Sentiment Analysis to determine if the input is positive, negative, or neutral. Supports English language input. Consumes 1-2 API calls per sentence.
|
|
71
|
-
|
|
72
|
-
### Example
|
|
73
|
-
```ruby
|
|
74
|
-
# load the gem
|
|
75
|
-
require 'cloudmersive-nlp-api-client'
|
|
76
|
-
# setup authorization
|
|
77
|
-
CloudmersiveNlpApiClient.configure do |config|
|
|
78
|
-
# Configure API key authorization: Apikey
|
|
79
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
|
80
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
81
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
|
82
|
-
end
|
|
83
|
-
|
|
84
|
-
api_instance = CloudmersiveNlpApiClient::AnalyticsApi.new
|
|
85
|
-
|
|
86
|
-
input = CloudmersiveNlpApiClient::SentimentAnalysisRequest.new # SentimentAnalysisRequest | Input sentiment analysis request
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
begin
|
|
90
|
-
#Perform Sentiment Analysis and Classification on Text
|
|
91
|
-
result = api_instance.analytics_sentiment(input)
|
|
92
|
-
p result
|
|
93
|
-
rescue CloudmersiveNlpApiClient::ApiError => e
|
|
94
|
-
puts "Exception when calling AnalyticsApi->analytics_sentiment: #{e}"
|
|
95
|
-
end
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
### Parameters
|
|
99
|
-
|
|
100
|
-
Name | Type | Description | Notes
|
|
101
|
-
------------- | ------------- | ------------- | -------------
|
|
102
|
-
**input** | [**SentimentAnalysisRequest**](SentimentAnalysisRequest.md)| Input sentiment analysis request |
|
|
103
|
-
|
|
104
|
-
### Return type
|
|
105
|
-
|
|
106
|
-
[**SentimentAnalysisResponse**](SentimentAnalysisResponse.md)
|
|
107
|
-
|
|
108
|
-
### Authorization
|
|
109
|
-
|
|
110
|
-
[Apikey](../README.md#Apikey)
|
|
111
|
-
|
|
112
|
-
### HTTP request headers
|
|
113
|
-
|
|
114
|
-
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
|
115
|
-
- **Accept**: application/json, text/json, application/xml, text/xml
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|