cloudmersive-nlp-api-client 2.0.9 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- metadata +3 -154
- data/Gemfile +0 -7
- data/README.md +0 -160
- data/Rakefile +0 -8
- data/cloudmersive-nlp-api-client.gemspec +0 -45
- data/docs/AnalyticsApi.md +0 -283
- 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/HateSpeechAnalysisRequest.md +0 -8
- data/docs/HateSpeechAnalysisResponse.md +0 -10
- 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/SimilarityAnalysisRequest.md +0 -9
- data/docs/SimilarityAnalysisResponse.md +0 -10
- data/docs/SpellcheckApi.md +0 -118
- data/docs/SubjectivityAnalysisRequest.md +0 -8
- data/docs/SubjectivityAnalysisResponse.md +0 -10
- data/docs/WordPosition.md +0 -11
- data/git_push.sh +0 -55
- data/lib/cloudmersive-nlp-api-client.rb +0 -85
- data/lib/cloudmersive-nlp-api-client/api/analytics_api.rb +0 -298
- 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/hate_speech_analysis_request.rb +0 -189
- data/lib/cloudmersive-nlp-api-client/models/hate_speech_analysis_response.rb +0 -209
- 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/similarity_analysis_request.rb +0 -199
- data/lib/cloudmersive-nlp-api-client/models/similarity_analysis_response.rb +0 -209
- data/lib/cloudmersive-nlp-api-client/models/subjectivity_analysis_request.rb +0 -189
- data/lib/cloudmersive-nlp-api-client/models/subjectivity_analysis_response.rb +0 -209
- 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 -95
- 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/hate_speech_analysis_request_spec.rb +0 -42
- data/spec/models/hate_speech_analysis_response_spec.rb +0 -54
- 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/similarity_analysis_request_spec.rb +0 -48
- data/spec/models/similarity_analysis_response_spec.rb +0 -54
- data/spec/models/subjectivity_analysis_request_spec.rb +0 -42
- data/spec/models/subjectivity_analysis_response_spec.rb +0 -54
- 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: ef229927453a34d73f3dbffdb4ba28dc1331df7d82b14e6421da349e38ed2ab9
|
4
|
+
data.tar.gz: 187affbabf0caf63646a0e266c4708c7199e7127a50aaf0fef437e9ab227f322
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 263af86c6c5a769f7e8a9695ba4ce32a2321cbd8e8e5cf7e65469b4d96c238998d4a3572c10abdf2e3205639edd3b05007b79ed79304eb443516c1376021f366
|
7
|
+
data.tar.gz: a6236677102d5f75753bf4f7095e4b467fa036a4aac0d20901cce6baff389fa0b31fabf55fb9f1ddcebc352a2d31f206b9fdf8f0cfb485969bb5427d43372868
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cloudmersive
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -198,158 +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/HateSpeechAnalysisRequest.md"
|
219
|
-
- "./docs/HateSpeechAnalysisResponse.md"
|
220
|
-
- "./docs/LanguageDetectionApi.md"
|
221
|
-
- "./docs/LanguageDetectionRequest.md"
|
222
|
-
- "./docs/LanguageDetectionResponse.md"
|
223
|
-
- "./docs/LanguageTranslationApi.md"
|
224
|
-
- "./docs/LanguageTranslationRequest.md"
|
225
|
-
- "./docs/LanguageTranslationResponse.md"
|
226
|
-
- "./docs/ParseApi.md"
|
227
|
-
- "./docs/ParseRequest.md"
|
228
|
-
- "./docs/ParseResponse.md"
|
229
|
-
- "./docs/PosRequest.md"
|
230
|
-
- "./docs/PosResponse.md"
|
231
|
-
- "./docs/PosSentence.md"
|
232
|
-
- "./docs/PosTaggedWord.md"
|
233
|
-
- "./docs/PosTaggerApi.md"
|
234
|
-
- "./docs/ProfanityAnalysisRequest.md"
|
235
|
-
- "./docs/ProfanityAnalysisResponse.md"
|
236
|
-
- "./docs/RephraseApi.md"
|
237
|
-
- "./docs/RephraseRequest.md"
|
238
|
-
- "./docs/RephraseResponse.md"
|
239
|
-
- "./docs/RephrasedSentence.md"
|
240
|
-
- "./docs/RephrasedSentenceOption.md"
|
241
|
-
- "./docs/SegmentationApi.md"
|
242
|
-
- "./docs/SentenceSegmentationRequest.md"
|
243
|
-
- "./docs/SentenceSegmentationResponse.md"
|
244
|
-
- "./docs/SentimentAnalysisRequest.md"
|
245
|
-
- "./docs/SentimentAnalysisResponse.md"
|
246
|
-
- "./docs/SimilarityAnalysisRequest.md"
|
247
|
-
- "./docs/SimilarityAnalysisResponse.md"
|
248
|
-
- "./docs/SpellcheckApi.md"
|
249
|
-
- "./docs/SubjectivityAnalysisRequest.md"
|
250
|
-
- "./docs/SubjectivityAnalysisResponse.md"
|
251
|
-
- "./docs/WordPosition.md"
|
252
|
-
- "./git_push.sh"
|
253
|
-
- "./lib/cloudmersive-nlp-api-client.rb"
|
254
|
-
- "./lib/cloudmersive-nlp-api-client/api/analytics_api.rb"
|
255
|
-
- "./lib/cloudmersive-nlp-api-client/api/extract_entities_api.rb"
|
256
|
-
- "./lib/cloudmersive-nlp-api-client/api/language_detection_api.rb"
|
257
|
-
- "./lib/cloudmersive-nlp-api-client/api/language_translation_api.rb"
|
258
|
-
- "./lib/cloudmersive-nlp-api-client/api/parse_api.rb"
|
259
|
-
- "./lib/cloudmersive-nlp-api-client/api/pos_tagger_api.rb"
|
260
|
-
- "./lib/cloudmersive-nlp-api-client/api/rephrase_api.rb"
|
261
|
-
- "./lib/cloudmersive-nlp-api-client/api/segmentation_api.rb"
|
262
|
-
- "./lib/cloudmersive-nlp-api-client/api/spellcheck_api.rb"
|
263
|
-
- "./lib/cloudmersive-nlp-api-client/api_client.rb"
|
264
|
-
- "./lib/cloudmersive-nlp-api-client/api_error.rb"
|
265
|
-
- "./lib/cloudmersive-nlp-api-client/configuration.rb"
|
266
|
-
- "./lib/cloudmersive-nlp-api-client/models/check_sentence_request.rb"
|
267
|
-
- "./lib/cloudmersive-nlp-api-client/models/check_sentence_response.rb"
|
268
|
-
- "./lib/cloudmersive-nlp-api-client/models/check_word_request.rb"
|
269
|
-
- "./lib/cloudmersive-nlp-api-client/models/check_word_response.rb"
|
270
|
-
- "./lib/cloudmersive-nlp-api-client/models/correct_word_in_sentence.rb"
|
271
|
-
- "./lib/cloudmersive-nlp-api-client/models/entity.rb"
|
272
|
-
- "./lib/cloudmersive-nlp-api-client/models/extract_entities_request.rb"
|
273
|
-
- "./lib/cloudmersive-nlp-api-client/models/extract_entities_response.rb"
|
274
|
-
- "./lib/cloudmersive-nlp-api-client/models/get_words_request.rb"
|
275
|
-
- "./lib/cloudmersive-nlp-api-client/models/get_words_response.rb"
|
276
|
-
- "./lib/cloudmersive-nlp-api-client/models/hate_speech_analysis_request.rb"
|
277
|
-
- "./lib/cloudmersive-nlp-api-client/models/hate_speech_analysis_response.rb"
|
278
|
-
- "./lib/cloudmersive-nlp-api-client/models/language_detection_request.rb"
|
279
|
-
- "./lib/cloudmersive-nlp-api-client/models/language_detection_response.rb"
|
280
|
-
- "./lib/cloudmersive-nlp-api-client/models/language_translation_request.rb"
|
281
|
-
- "./lib/cloudmersive-nlp-api-client/models/language_translation_response.rb"
|
282
|
-
- "./lib/cloudmersive-nlp-api-client/models/parse_request.rb"
|
283
|
-
- "./lib/cloudmersive-nlp-api-client/models/parse_response.rb"
|
284
|
-
- "./lib/cloudmersive-nlp-api-client/models/pos_request.rb"
|
285
|
-
- "./lib/cloudmersive-nlp-api-client/models/pos_response.rb"
|
286
|
-
- "./lib/cloudmersive-nlp-api-client/models/pos_sentence.rb"
|
287
|
-
- "./lib/cloudmersive-nlp-api-client/models/pos_tagged_word.rb"
|
288
|
-
- "./lib/cloudmersive-nlp-api-client/models/profanity_analysis_request.rb"
|
289
|
-
- "./lib/cloudmersive-nlp-api-client/models/profanity_analysis_response.rb"
|
290
|
-
- "./lib/cloudmersive-nlp-api-client/models/rephrase_request.rb"
|
291
|
-
- "./lib/cloudmersive-nlp-api-client/models/rephrase_response.rb"
|
292
|
-
- "./lib/cloudmersive-nlp-api-client/models/rephrased_sentence.rb"
|
293
|
-
- "./lib/cloudmersive-nlp-api-client/models/rephrased_sentence_option.rb"
|
294
|
-
- "./lib/cloudmersive-nlp-api-client/models/sentence_segmentation_request.rb"
|
295
|
-
- "./lib/cloudmersive-nlp-api-client/models/sentence_segmentation_response.rb"
|
296
|
-
- "./lib/cloudmersive-nlp-api-client/models/sentiment_analysis_request.rb"
|
297
|
-
- "./lib/cloudmersive-nlp-api-client/models/sentiment_analysis_response.rb"
|
298
|
-
- "./lib/cloudmersive-nlp-api-client/models/similarity_analysis_request.rb"
|
299
|
-
- "./lib/cloudmersive-nlp-api-client/models/similarity_analysis_response.rb"
|
300
|
-
- "./lib/cloudmersive-nlp-api-client/models/subjectivity_analysis_request.rb"
|
301
|
-
- "./lib/cloudmersive-nlp-api-client/models/subjectivity_analysis_response.rb"
|
302
|
-
- "./lib/cloudmersive-nlp-api-client/models/word_position.rb"
|
303
|
-
- "./lib/cloudmersive-nlp-api-client/version.rb"
|
304
|
-
- "./spec/api/analytics_api_spec.rb"
|
305
|
-
- "./spec/api/extract_entities_api_spec.rb"
|
306
|
-
- "./spec/api/language_detection_api_spec.rb"
|
307
|
-
- "./spec/api/language_translation_api_spec.rb"
|
308
|
-
- "./spec/api/parse_api_spec.rb"
|
309
|
-
- "./spec/api/pos_tagger_api_spec.rb"
|
310
|
-
- "./spec/api/rephrase_api_spec.rb"
|
311
|
-
- "./spec/api/segmentation_api_spec.rb"
|
312
|
-
- "./spec/api/spellcheck_api_spec.rb"
|
313
|
-
- "./spec/api_client_spec.rb"
|
314
|
-
- "./spec/configuration_spec.rb"
|
315
|
-
- "./spec/models/check_sentence_request_spec.rb"
|
316
|
-
- "./spec/models/check_sentence_response_spec.rb"
|
317
|
-
- "./spec/models/check_word_request_spec.rb"
|
318
|
-
- "./spec/models/check_word_response_spec.rb"
|
319
|
-
- "./spec/models/correct_word_in_sentence_spec.rb"
|
320
|
-
- "./spec/models/entity_spec.rb"
|
321
|
-
- "./spec/models/extract_entities_request_spec.rb"
|
322
|
-
- "./spec/models/extract_entities_response_spec.rb"
|
323
|
-
- "./spec/models/get_words_request_spec.rb"
|
324
|
-
- "./spec/models/get_words_response_spec.rb"
|
325
|
-
- "./spec/models/hate_speech_analysis_request_spec.rb"
|
326
|
-
- "./spec/models/hate_speech_analysis_response_spec.rb"
|
327
|
-
- "./spec/models/language_detection_request_spec.rb"
|
328
|
-
- "./spec/models/language_detection_response_spec.rb"
|
329
|
-
- "./spec/models/language_translation_request_spec.rb"
|
330
|
-
- "./spec/models/language_translation_response_spec.rb"
|
331
|
-
- "./spec/models/parse_request_spec.rb"
|
332
|
-
- "./spec/models/parse_response_spec.rb"
|
333
|
-
- "./spec/models/pos_request_spec.rb"
|
334
|
-
- "./spec/models/pos_response_spec.rb"
|
335
|
-
- "./spec/models/pos_sentence_spec.rb"
|
336
|
-
- "./spec/models/pos_tagged_word_spec.rb"
|
337
|
-
- "./spec/models/profanity_analysis_request_spec.rb"
|
338
|
-
- "./spec/models/profanity_analysis_response_spec.rb"
|
339
|
-
- "./spec/models/rephrase_request_spec.rb"
|
340
|
-
- "./spec/models/rephrase_response_spec.rb"
|
341
|
-
- "./spec/models/rephrased_sentence_option_spec.rb"
|
342
|
-
- "./spec/models/rephrased_sentence_spec.rb"
|
343
|
-
- "./spec/models/sentence_segmentation_request_spec.rb"
|
344
|
-
- "./spec/models/sentence_segmentation_response_spec.rb"
|
345
|
-
- "./spec/models/sentiment_analysis_request_spec.rb"
|
346
|
-
- "./spec/models/sentiment_analysis_response_spec.rb"
|
347
|
-
- "./spec/models/similarity_analysis_request_spec.rb"
|
348
|
-
- "./spec/models/similarity_analysis_response_spec.rb"
|
349
|
-
- "./spec/models/subjectivity_analysis_request_spec.rb"
|
350
|
-
- "./spec/models/subjectivity_analysis_response_spec.rb"
|
351
|
-
- "./spec/models/word_position_spec.rb"
|
352
|
-
- "./spec/spec_helper.rb"
|
201
|
+
files: []
|
353
202
|
homepage: https://www.cloudmersive.com/nlp-api
|
354
203
|
licenses:
|
355
204
|
- Apache 2.0
|
data/Gemfile
DELETED
data/README.md
DELETED
@@ -1,160 +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.9
|
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.9.gem
|
27
|
-
```
|
28
|
-
(for development, run `gem install --dev ./cloudmersive-nlp-api-client-2.0.9.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.9'
|
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::HateSpeechAnalysisRequest.new # HateSpeechAnalysisRequest | Input hate speech analysis request
|
68
|
-
|
69
|
-
|
70
|
-
begin
|
71
|
-
#Perform Hate Speech Analysis and Detection on Text
|
72
|
-
result = api_instance.analytics_hate_speech(input)
|
73
|
-
p result
|
74
|
-
rescue CloudmersiveNlpApiClient::ApiError => e
|
75
|
-
puts "Exception when calling AnalyticsApi->analytics_hate_speech: #{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_hate_speech**](docs/AnalyticsApi.md#analytics_hate_speech) | **POST** /nlp-v2/analytics/hate-speech | Perform Hate Speech Analysis and Detection on Text
|
87
|
-
*CloudmersiveNlpApiClient::AnalyticsApi* | [**analytics_profanity**](docs/AnalyticsApi.md#analytics_profanity) | **POST** /nlp-v2/analytics/profanity | Perform Profanity and Obscene Language Analysis and Detection on Text
|
88
|
-
*CloudmersiveNlpApiClient::AnalyticsApi* | [**analytics_sentiment**](docs/AnalyticsApi.md#analytics_sentiment) | **POST** /nlp-v2/analytics/sentiment | Perform Sentiment Analysis and Classification on Text
|
89
|
-
*CloudmersiveNlpApiClient::AnalyticsApi* | [**analytics_similarity**](docs/AnalyticsApi.md#analytics_similarity) | **POST** /nlp-v2/analytics/similarity | Perform Semantic Similarity Comparison of Two Strings
|
90
|
-
*CloudmersiveNlpApiClient::AnalyticsApi* | [**analytics_subjectivity**](docs/AnalyticsApi.md#analytics_subjectivity) | **POST** /nlp-v2/analytics/subjectivity | Perform Subjectivity and Objectivity Analysis on Text
|
91
|
-
*CloudmersiveNlpApiClient::ExtractEntitiesApi* | [**extract_entities_post**](docs/ExtractEntitiesApi.md#extract_entities_post) | **POST** /nlp-v2/extract-entities | Extract entities from string
|
92
|
-
*CloudmersiveNlpApiClient::LanguageDetectionApi* | [**language_detection_get_language**](docs/LanguageDetectionApi.md#language_detection_get_language) | **POST** /nlp-v2/language/detect | Detect language of text
|
93
|
-
*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
|
94
|
-
*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
|
95
|
-
*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
|
96
|
-
*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
|
97
|
-
*CloudmersiveNlpApiClient::ParseApi* | [**parse_parse_string**](docs/ParseApi.md#parse_parse_string) | **POST** /nlp-v2/parse/tree | Parse string to syntax tree
|
98
|
-
*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
|
99
|
-
*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
|
100
|
-
*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
|
101
|
-
*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
|
102
|
-
*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
|
103
|
-
*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
|
104
|
-
*CloudmersiveNlpApiClient::RephraseApi* | [**rephrase_english_rephrase_sentence_by_sentence**](docs/RephraseApi.md#rephrase_english_rephrase_sentence_by_sentence) | **POST** /nlp-v2/rephrase/rephrase/eng/by-sentence | Rephrase, paraphrase English text sentence-by-sentence using Deep Learning AI
|
105
|
-
*CloudmersiveNlpApiClient::SegmentationApi* | [**segmentation_get_sentences**](docs/SegmentationApi.md#segmentation_get_sentences) | **POST** /nlp-v2/segmentation/sentences | Extract sentences from string
|
106
|
-
*CloudmersiveNlpApiClient::SegmentationApi* | [**segmentation_get_words**](docs/SegmentationApi.md#segmentation_get_words) | **POST** /nlp-v2/segmentation/words | Get words in input string
|
107
|
-
*CloudmersiveNlpApiClient::SpellcheckApi* | [**spellcheck_check_sentence**](docs/SpellcheckApi.md#spellcheck_check_sentence) | **POST** /nlp-v2/spellcheck/check/sentence | Check if sentence is spelled correctly
|
108
|
-
*CloudmersiveNlpApiClient::SpellcheckApi* | [**spellcheck_correct_json**](docs/SpellcheckApi.md#spellcheck_correct_json) | **POST** /nlp-v2/spellcheck/check/word | Find spelling corrections
|
109
|
-
|
110
|
-
|
111
|
-
## Documentation for Models
|
112
|
-
|
113
|
-
- [CloudmersiveNlpApiClient::CheckSentenceRequest](docs/CheckSentenceRequest.md)
|
114
|
-
- [CloudmersiveNlpApiClient::CheckSentenceResponse](docs/CheckSentenceResponse.md)
|
115
|
-
- [CloudmersiveNlpApiClient::CheckWordRequest](docs/CheckWordRequest.md)
|
116
|
-
- [CloudmersiveNlpApiClient::CheckWordResponse](docs/CheckWordResponse.md)
|
117
|
-
- [CloudmersiveNlpApiClient::CorrectWordInSentence](docs/CorrectWordInSentence.md)
|
118
|
-
- [CloudmersiveNlpApiClient::Entity](docs/Entity.md)
|
119
|
-
- [CloudmersiveNlpApiClient::ExtractEntitiesRequest](docs/ExtractEntitiesRequest.md)
|
120
|
-
- [CloudmersiveNlpApiClient::ExtractEntitiesResponse](docs/ExtractEntitiesResponse.md)
|
121
|
-
- [CloudmersiveNlpApiClient::GetWordsRequest](docs/GetWordsRequest.md)
|
122
|
-
- [CloudmersiveNlpApiClient::GetWordsResponse](docs/GetWordsResponse.md)
|
123
|
-
- [CloudmersiveNlpApiClient::HateSpeechAnalysisRequest](docs/HateSpeechAnalysisRequest.md)
|
124
|
-
- [CloudmersiveNlpApiClient::HateSpeechAnalysisResponse](docs/HateSpeechAnalysisResponse.md)
|
125
|
-
- [CloudmersiveNlpApiClient::LanguageDetectionRequest](docs/LanguageDetectionRequest.md)
|
126
|
-
- [CloudmersiveNlpApiClient::LanguageDetectionResponse](docs/LanguageDetectionResponse.md)
|
127
|
-
- [CloudmersiveNlpApiClient::LanguageTranslationRequest](docs/LanguageTranslationRequest.md)
|
128
|
-
- [CloudmersiveNlpApiClient::LanguageTranslationResponse](docs/LanguageTranslationResponse.md)
|
129
|
-
- [CloudmersiveNlpApiClient::ParseRequest](docs/ParseRequest.md)
|
130
|
-
- [CloudmersiveNlpApiClient::ParseResponse](docs/ParseResponse.md)
|
131
|
-
- [CloudmersiveNlpApiClient::PosRequest](docs/PosRequest.md)
|
132
|
-
- [CloudmersiveNlpApiClient::PosResponse](docs/PosResponse.md)
|
133
|
-
- [CloudmersiveNlpApiClient::PosSentence](docs/PosSentence.md)
|
134
|
-
- [CloudmersiveNlpApiClient::PosTaggedWord](docs/PosTaggedWord.md)
|
135
|
-
- [CloudmersiveNlpApiClient::ProfanityAnalysisRequest](docs/ProfanityAnalysisRequest.md)
|
136
|
-
- [CloudmersiveNlpApiClient::ProfanityAnalysisResponse](docs/ProfanityAnalysisResponse.md)
|
137
|
-
- [CloudmersiveNlpApiClient::RephraseRequest](docs/RephraseRequest.md)
|
138
|
-
- [CloudmersiveNlpApiClient::RephraseResponse](docs/RephraseResponse.md)
|
139
|
-
- [CloudmersiveNlpApiClient::RephrasedSentence](docs/RephrasedSentence.md)
|
140
|
-
- [CloudmersiveNlpApiClient::RephrasedSentenceOption](docs/RephrasedSentenceOption.md)
|
141
|
-
- [CloudmersiveNlpApiClient::SentenceSegmentationRequest](docs/SentenceSegmentationRequest.md)
|
142
|
-
- [CloudmersiveNlpApiClient::SentenceSegmentationResponse](docs/SentenceSegmentationResponse.md)
|
143
|
-
- [CloudmersiveNlpApiClient::SentimentAnalysisRequest](docs/SentimentAnalysisRequest.md)
|
144
|
-
- [CloudmersiveNlpApiClient::SentimentAnalysisResponse](docs/SentimentAnalysisResponse.md)
|
145
|
-
- [CloudmersiveNlpApiClient::SimilarityAnalysisRequest](docs/SimilarityAnalysisRequest.md)
|
146
|
-
- [CloudmersiveNlpApiClient::SimilarityAnalysisResponse](docs/SimilarityAnalysisResponse.md)
|
147
|
-
- [CloudmersiveNlpApiClient::SubjectivityAnalysisRequest](docs/SubjectivityAnalysisRequest.md)
|
148
|
-
- [CloudmersiveNlpApiClient::SubjectivityAnalysisResponse](docs/SubjectivityAnalysisResponse.md)
|
149
|
-
- [CloudmersiveNlpApiClient::WordPosition](docs/WordPosition.md)
|
150
|
-
|
151
|
-
|
152
|
-
## Documentation for Authorization
|
153
|
-
|
154
|
-
|
155
|
-
### Apikey
|
156
|
-
|
157
|
-
- **Type**: API key
|
158
|
-
- **API key parameter name**: Apikey
|
159
|
-
- **Location**: HTTP header
|
160
|
-
|
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,283 +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_hate_speech**](AnalyticsApi.md#analytics_hate_speech) | **POST** /nlp-v2/analytics/hate-speech | Perform Hate Speech Analysis and Detection on Text
|
8
|
-
[**analytics_profanity**](AnalyticsApi.md#analytics_profanity) | **POST** /nlp-v2/analytics/profanity | Perform Profanity and Obscene Language Analysis and Detection on Text
|
9
|
-
[**analytics_sentiment**](AnalyticsApi.md#analytics_sentiment) | **POST** /nlp-v2/analytics/sentiment | Perform Sentiment Analysis and Classification on Text
|
10
|
-
[**analytics_similarity**](AnalyticsApi.md#analytics_similarity) | **POST** /nlp-v2/analytics/similarity | Perform Semantic Similarity Comparison of Two Strings
|
11
|
-
[**analytics_subjectivity**](AnalyticsApi.md#analytics_subjectivity) | **POST** /nlp-v2/analytics/subjectivity | Perform Subjectivity and Objectivity Analysis on Text
|
12
|
-
|
13
|
-
|
14
|
-
# **analytics_hate_speech**
|
15
|
-
> HateSpeechAnalysisResponse analytics_hate_speech(input)
|
16
|
-
|
17
|
-
Perform Hate Speech Analysis and Detection on Text
|
18
|
-
|
19
|
-
Analyze input text using advanced Hate Speech Analysis to determine if the input contains hate speech language. Supports English language input. Consumes 1-2 API calls per sentence.
|
20
|
-
|
21
|
-
### Example
|
22
|
-
```ruby
|
23
|
-
# load the gem
|
24
|
-
require 'cloudmersive-nlp-api-client'
|
25
|
-
# setup authorization
|
26
|
-
CloudmersiveNlpApiClient.configure do |config|
|
27
|
-
# Configure API key authorization: Apikey
|
28
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
29
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
30
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
31
|
-
end
|
32
|
-
|
33
|
-
api_instance = CloudmersiveNlpApiClient::AnalyticsApi.new
|
34
|
-
|
35
|
-
input = CloudmersiveNlpApiClient::HateSpeechAnalysisRequest.new # HateSpeechAnalysisRequest | Input hate speech analysis request
|
36
|
-
|
37
|
-
|
38
|
-
begin
|
39
|
-
#Perform Hate Speech Analysis and Detection on Text
|
40
|
-
result = api_instance.analytics_hate_speech(input)
|
41
|
-
p result
|
42
|
-
rescue CloudmersiveNlpApiClient::ApiError => e
|
43
|
-
puts "Exception when calling AnalyticsApi->analytics_hate_speech: #{e}"
|
44
|
-
end
|
45
|
-
```
|
46
|
-
|
47
|
-
### Parameters
|
48
|
-
|
49
|
-
Name | Type | Description | Notes
|
50
|
-
------------- | ------------- | ------------- | -------------
|
51
|
-
**input** | [**HateSpeechAnalysisRequest**](HateSpeechAnalysisRequest.md)| Input hate speech analysis request |
|
52
|
-
|
53
|
-
### Return type
|
54
|
-
|
55
|
-
[**HateSpeechAnalysisResponse**](HateSpeechAnalysisResponse.md)
|
56
|
-
|
57
|
-
### Authorization
|
58
|
-
|
59
|
-
[Apikey](../README.md#Apikey)
|
60
|
-
|
61
|
-
### HTTP request headers
|
62
|
-
|
63
|
-
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
64
|
-
- **Accept**: application/json
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
# **analytics_profanity**
|
69
|
-
> ProfanityAnalysisResponse analytics_profanity(input)
|
70
|
-
|
71
|
-
Perform Profanity and Obscene Language Analysis and Detection on Text
|
72
|
-
|
73
|
-
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.
|
74
|
-
|
75
|
-
### Example
|
76
|
-
```ruby
|
77
|
-
# load the gem
|
78
|
-
require 'cloudmersive-nlp-api-client'
|
79
|
-
# setup authorization
|
80
|
-
CloudmersiveNlpApiClient.configure do |config|
|
81
|
-
# Configure API key authorization: Apikey
|
82
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
83
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
84
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
85
|
-
end
|
86
|
-
|
87
|
-
api_instance = CloudmersiveNlpApiClient::AnalyticsApi.new
|
88
|
-
|
89
|
-
input = CloudmersiveNlpApiClient::ProfanityAnalysisRequest.new # ProfanityAnalysisRequest | Input profanity analysis request
|
90
|
-
|
91
|
-
|
92
|
-
begin
|
93
|
-
#Perform Profanity and Obscene Language Analysis and Detection on Text
|
94
|
-
result = api_instance.analytics_profanity(input)
|
95
|
-
p result
|
96
|
-
rescue CloudmersiveNlpApiClient::ApiError => e
|
97
|
-
puts "Exception when calling AnalyticsApi->analytics_profanity: #{e}"
|
98
|
-
end
|
99
|
-
```
|
100
|
-
|
101
|
-
### Parameters
|
102
|
-
|
103
|
-
Name | Type | Description | Notes
|
104
|
-
------------- | ------------- | ------------- | -------------
|
105
|
-
**input** | [**ProfanityAnalysisRequest**](ProfanityAnalysisRequest.md)| Input profanity analysis request |
|
106
|
-
|
107
|
-
### Return type
|
108
|
-
|
109
|
-
[**ProfanityAnalysisResponse**](ProfanityAnalysisResponse.md)
|
110
|
-
|
111
|
-
### Authorization
|
112
|
-
|
113
|
-
[Apikey](../README.md#Apikey)
|
114
|
-
|
115
|
-
### HTTP request headers
|
116
|
-
|
117
|
-
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
118
|
-
- **Accept**: application/json
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
# **analytics_sentiment**
|
123
|
-
> SentimentAnalysisResponse analytics_sentiment(input)
|
124
|
-
|
125
|
-
Perform Sentiment Analysis and Classification on Text
|
126
|
-
|
127
|
-
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.
|
128
|
-
|
129
|
-
### Example
|
130
|
-
```ruby
|
131
|
-
# load the gem
|
132
|
-
require 'cloudmersive-nlp-api-client'
|
133
|
-
# setup authorization
|
134
|
-
CloudmersiveNlpApiClient.configure do |config|
|
135
|
-
# Configure API key authorization: Apikey
|
136
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
137
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
138
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
139
|
-
end
|
140
|
-
|
141
|
-
api_instance = CloudmersiveNlpApiClient::AnalyticsApi.new
|
142
|
-
|
143
|
-
input = CloudmersiveNlpApiClient::SentimentAnalysisRequest.new # SentimentAnalysisRequest | Input sentiment analysis request
|
144
|
-
|
145
|
-
|
146
|
-
begin
|
147
|
-
#Perform Sentiment Analysis and Classification on Text
|
148
|
-
result = api_instance.analytics_sentiment(input)
|
149
|
-
p result
|
150
|
-
rescue CloudmersiveNlpApiClient::ApiError => e
|
151
|
-
puts "Exception when calling AnalyticsApi->analytics_sentiment: #{e}"
|
152
|
-
end
|
153
|
-
```
|
154
|
-
|
155
|
-
### Parameters
|
156
|
-
|
157
|
-
Name | Type | Description | Notes
|
158
|
-
------------- | ------------- | ------------- | -------------
|
159
|
-
**input** | [**SentimentAnalysisRequest**](SentimentAnalysisRequest.md)| Input sentiment analysis request |
|
160
|
-
|
161
|
-
### Return type
|
162
|
-
|
163
|
-
[**SentimentAnalysisResponse**](SentimentAnalysisResponse.md)
|
164
|
-
|
165
|
-
### Authorization
|
166
|
-
|
167
|
-
[Apikey](../README.md#Apikey)
|
168
|
-
|
169
|
-
### HTTP request headers
|
170
|
-
|
171
|
-
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
172
|
-
- **Accept**: application/json
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
# **analytics_similarity**
|
177
|
-
> SimilarityAnalysisResponse analytics_similarity(input)
|
178
|
-
|
179
|
-
Perform Semantic Similarity Comparison of Two Strings
|
180
|
-
|
181
|
-
Analyze two input text strings, typically sentences, and determine the semantic similarity of each. Semantic similarity refers to the degree to which two sentences mean the same thing semantically. Uses advanced Deep Learning to perform the semantic similarity comparison. Consumes 1-2 API calls per sentence.
|
182
|
-
|
183
|
-
### Example
|
184
|
-
```ruby
|
185
|
-
# load the gem
|
186
|
-
require 'cloudmersive-nlp-api-client'
|
187
|
-
# setup authorization
|
188
|
-
CloudmersiveNlpApiClient.configure do |config|
|
189
|
-
# Configure API key authorization: Apikey
|
190
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
191
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
192
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
193
|
-
end
|
194
|
-
|
195
|
-
api_instance = CloudmersiveNlpApiClient::AnalyticsApi.new
|
196
|
-
|
197
|
-
input = CloudmersiveNlpApiClient::SimilarityAnalysisRequest.new # SimilarityAnalysisRequest | Input similarity analysis request
|
198
|
-
|
199
|
-
|
200
|
-
begin
|
201
|
-
#Perform Semantic Similarity Comparison of Two Strings
|
202
|
-
result = api_instance.analytics_similarity(input)
|
203
|
-
p result
|
204
|
-
rescue CloudmersiveNlpApiClient::ApiError => e
|
205
|
-
puts "Exception when calling AnalyticsApi->analytics_similarity: #{e}"
|
206
|
-
end
|
207
|
-
```
|
208
|
-
|
209
|
-
### Parameters
|
210
|
-
|
211
|
-
Name | Type | Description | Notes
|
212
|
-
------------- | ------------- | ------------- | -------------
|
213
|
-
**input** | [**SimilarityAnalysisRequest**](SimilarityAnalysisRequest.md)| Input similarity analysis request |
|
214
|
-
|
215
|
-
### Return type
|
216
|
-
|
217
|
-
[**SimilarityAnalysisResponse**](SimilarityAnalysisResponse.md)
|
218
|
-
|
219
|
-
### Authorization
|
220
|
-
|
221
|
-
[Apikey](../README.md#Apikey)
|
222
|
-
|
223
|
-
### HTTP request headers
|
224
|
-
|
225
|
-
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
226
|
-
- **Accept**: application/json
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
# **analytics_subjectivity**
|
231
|
-
> SubjectivityAnalysisResponse analytics_subjectivity(input)
|
232
|
-
|
233
|
-
Perform Subjectivity and Objectivity Analysis on Text
|
234
|
-
|
235
|
-
Analyze input text using advanced Subjectivity and Objectivity Language Analysis to determine if the input text is objective or subjective, and how much. Supports English language input. Consumes 1-2 API calls per sentence.
|
236
|
-
|
237
|
-
### Example
|
238
|
-
```ruby
|
239
|
-
# load the gem
|
240
|
-
require 'cloudmersive-nlp-api-client'
|
241
|
-
# setup authorization
|
242
|
-
CloudmersiveNlpApiClient.configure do |config|
|
243
|
-
# Configure API key authorization: Apikey
|
244
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
245
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
246
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
247
|
-
end
|
248
|
-
|
249
|
-
api_instance = CloudmersiveNlpApiClient::AnalyticsApi.new
|
250
|
-
|
251
|
-
input = CloudmersiveNlpApiClient::SubjectivityAnalysisRequest.new # SubjectivityAnalysisRequest | Input subjectivity analysis request
|
252
|
-
|
253
|
-
|
254
|
-
begin
|
255
|
-
#Perform Subjectivity and Objectivity Analysis on Text
|
256
|
-
result = api_instance.analytics_subjectivity(input)
|
257
|
-
p result
|
258
|
-
rescue CloudmersiveNlpApiClient::ApiError => e
|
259
|
-
puts "Exception when calling AnalyticsApi->analytics_subjectivity: #{e}"
|
260
|
-
end
|
261
|
-
```
|
262
|
-
|
263
|
-
### Parameters
|
264
|
-
|
265
|
-
Name | Type | Description | Notes
|
266
|
-
------------- | ------------- | ------------- | -------------
|
267
|
-
**input** | [**SubjectivityAnalysisRequest**](SubjectivityAnalysisRequest.md)| Input subjectivity analysis request |
|
268
|
-
|
269
|
-
### Return type
|
270
|
-
|
271
|
-
[**SubjectivityAnalysisResponse**](SubjectivityAnalysisResponse.md)
|
272
|
-
|
273
|
-
### Authorization
|
274
|
-
|
275
|
-
[Apikey](../README.md#Apikey)
|
276
|
-
|
277
|
-
### HTTP request headers
|
278
|
-
|
279
|
-
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
280
|
-
- **Accept**: application/json
|
281
|
-
|
282
|
-
|
283
|
-
|