cloudmersive-nlp-api-client 3.0.2 → 3.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (153) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +7 -0
  3. data/README.md +162 -0
  4. data/Rakefile +8 -0
  5. data/cloudmersive-nlp-api-client.gemspec +45 -0
  6. data/docs/AnalyticsApi.md +283 -0
  7. data/docs/CheckSentenceRequest.md +8 -0
  8. data/docs/CheckSentenceResponse.md +9 -0
  9. data/docs/CheckWordRequest.md +8 -0
  10. data/docs/CheckWordResponse.md +9 -0
  11. data/docs/CorrectWordInSentence.md +10 -0
  12. data/docs/Entity.md +9 -0
  13. data/docs/ExtractEntitiesApi.md +63 -0
  14. data/docs/ExtractEntitiesRequest.md +8 -0
  15. data/docs/ExtractEntitiesResponse.md +9 -0
  16. data/docs/GetWordsRequest.md +8 -0
  17. data/docs/GetWordsResponse.md +8 -0
  18. data/docs/HateSpeechAnalysisRequest.md +8 -0
  19. data/docs/HateSpeechAnalysisResponse.md +10 -0
  20. data/docs/LanguageDetectionApi.md +63 -0
  21. data/docs/LanguageDetectionRequest.md +8 -0
  22. data/docs/LanguageDetectionResponse.md +10 -0
  23. data/docs/LanguageTranslationApi.md +338 -0
  24. data/docs/LanguageTranslationRequest.md +8 -0
  25. data/docs/LanguageTranslationResponse.md +10 -0
  26. data/docs/ParseApi.md +63 -0
  27. data/docs/ParseRequest.md +8 -0
  28. data/docs/ParseResponse.md +8 -0
  29. data/docs/PosRequest.md +8 -0
  30. data/docs/PosResponse.md +8 -0
  31. data/docs/PosSentence.md +8 -0
  32. data/docs/PosTaggedWord.md +9 -0
  33. data/docs/PosTaggerApi.md +338 -0
  34. data/docs/ProfanityAnalysisRequest.md +8 -0
  35. data/docs/ProfanityAnalysisResponse.md +10 -0
  36. data/docs/RephraseApi.md +63 -0
  37. data/docs/RephraseRequest.md +9 -0
  38. data/docs/RephraseResponse.md +10 -0
  39. data/docs/RephrasedSentence.md +10 -0
  40. data/docs/RephrasedSentenceOption.md +9 -0
  41. data/docs/SegmentationApi.md +118 -0
  42. data/docs/SentenceSegmentationRequest.md +8 -0
  43. data/docs/SentenceSegmentationResponse.md +10 -0
  44. data/docs/SentimentAnalysisRequest.md +8 -0
  45. data/docs/SentimentAnalysisResponse.md +11 -0
  46. data/docs/SimilarityAnalysisRequest.md +9 -0
  47. data/docs/SimilarityAnalysisResponse.md +10 -0
  48. data/docs/SpellcheckApi.md +118 -0
  49. data/docs/SubjectivityAnalysisRequest.md +8 -0
  50. data/docs/SubjectivityAnalysisResponse.md +10 -0
  51. data/docs/WordPosition.md +11 -0
  52. data/git_push.sh +55 -0
  53. data/lib/cloudmersive-nlp-api-client.rb +85 -0
  54. data/lib/cloudmersive-nlp-api-client/api/analytics_api.rb +293 -0
  55. data/lib/cloudmersive-nlp-api-client/api/extract_entities_api.rb +77 -0
  56. data/lib/cloudmersive-nlp-api-client/api/language_detection_api.rb +77 -0
  57. data/lib/cloudmersive-nlp-api-client/api/language_translation_api.rb +347 -0
  58. data/lib/cloudmersive-nlp-api-client/api/parse_api.rb +77 -0
  59. data/lib/cloudmersive-nlp-api-client/api/pos_tagger_api.rb +347 -0
  60. data/lib/cloudmersive-nlp-api-client/api/rephrase_api.rb +77 -0
  61. data/lib/cloudmersive-nlp-api-client/api/segmentation_api.rb +131 -0
  62. data/lib/cloudmersive-nlp-api-client/api/spellcheck_api.rb +131 -0
  63. data/lib/cloudmersive-nlp-api-client/api_client.rb +391 -0
  64. data/lib/cloudmersive-nlp-api-client/api_error.rb +38 -0
  65. data/lib/cloudmersive-nlp-api-client/configuration.rb +209 -0
  66. data/lib/cloudmersive-nlp-api-client/models/check_sentence_request.rb +186 -0
  67. data/lib/cloudmersive-nlp-api-client/models/check_sentence_response.rb +198 -0
  68. data/lib/cloudmersive-nlp-api-client/models/check_word_request.rb +184 -0
  69. data/lib/cloudmersive-nlp-api-client/models/check_word_response.rb +198 -0
  70. data/lib/cloudmersive-nlp-api-client/models/correct_word_in_sentence.rb +208 -0
  71. data/lib/cloudmersive-nlp-api-client/models/entity.rb +193 -0
  72. data/lib/cloudmersive-nlp-api-client/models/extract_entities_request.rb +186 -0
  73. data/lib/cloudmersive-nlp-api-client/models/extract_entities_response.rb +197 -0
  74. data/lib/cloudmersive-nlp-api-client/models/get_words_request.rb +184 -0
  75. data/lib/cloudmersive-nlp-api-client/models/get_words_response.rb +188 -0
  76. data/lib/cloudmersive-nlp-api-client/models/hate_speech_analysis_request.rb +186 -0
  77. data/lib/cloudmersive-nlp-api-client/models/hate_speech_analysis_response.rb +206 -0
  78. data/lib/cloudmersive-nlp-api-client/models/language_detection_request.rb +186 -0
  79. data/lib/cloudmersive-nlp-api-client/models/language_detection_response.rb +206 -0
  80. data/lib/cloudmersive-nlp-api-client/models/language_translation_request.rb +186 -0
  81. data/lib/cloudmersive-nlp-api-client/models/language_translation_response.rb +206 -0
  82. data/lib/cloudmersive-nlp-api-client/models/parse_request.rb +186 -0
  83. data/lib/cloudmersive-nlp-api-client/models/parse_response.rb +186 -0
  84. data/lib/cloudmersive-nlp-api-client/models/pos_request.rb +186 -0
  85. data/lib/cloudmersive-nlp-api-client/models/pos_response.rb +188 -0
  86. data/lib/cloudmersive-nlp-api-client/models/pos_sentence.rb +188 -0
  87. data/lib/cloudmersive-nlp-api-client/models/pos_tagged_word.rb +196 -0
  88. data/lib/cloudmersive-nlp-api-client/models/profanity_analysis_request.rb +186 -0
  89. data/lib/cloudmersive-nlp-api-client/models/profanity_analysis_response.rb +206 -0
  90. data/lib/cloudmersive-nlp-api-client/models/rephrase_request.rb +196 -0
  91. data/lib/cloudmersive-nlp-api-client/models/rephrase_response.rb +208 -0
  92. data/lib/cloudmersive-nlp-api-client/models/rephrased_sentence.rb +208 -0
  93. data/lib/cloudmersive-nlp-api-client/models/rephrased_sentence_option.rb +196 -0
  94. data/lib/cloudmersive-nlp-api-client/models/sentence_segmentation_request.rb +184 -0
  95. data/lib/cloudmersive-nlp-api-client/models/sentence_segmentation_response.rb +204 -0
  96. data/lib/cloudmersive-nlp-api-client/models/sentiment_analysis_request.rb +186 -0
  97. data/lib/cloudmersive-nlp-api-client/models/sentiment_analysis_response.rb +216 -0
  98. data/lib/cloudmersive-nlp-api-client/models/similarity_analysis_request.rb +196 -0
  99. data/lib/cloudmersive-nlp-api-client/models/similarity_analysis_response.rb +206 -0
  100. data/lib/cloudmersive-nlp-api-client/models/subjectivity_analysis_request.rb +186 -0
  101. data/lib/cloudmersive-nlp-api-client/models/subjectivity_analysis_response.rb +206 -0
  102. data/lib/cloudmersive-nlp-api-client/models/word_position.rb +215 -0
  103. data/lib/cloudmersive-nlp-api-client/version.rb +15 -0
  104. data/spec/api/analytics_api_spec.rb +95 -0
  105. data/spec/api/extract_entities_api_spec.rb +47 -0
  106. data/spec/api/language_detection_api_spec.rb +47 -0
  107. data/spec/api/language_translation_api_spec.rb +107 -0
  108. data/spec/api/parse_api_spec.rb +47 -0
  109. data/spec/api/pos_tagger_api_spec.rb +107 -0
  110. data/spec/api/rephrase_api_spec.rb +47 -0
  111. data/spec/api/segmentation_api_spec.rb +59 -0
  112. data/spec/api/spellcheck_api_spec.rb +59 -0
  113. data/spec/api_client_spec.rb +243 -0
  114. data/spec/configuration_spec.rb +42 -0
  115. data/spec/models/check_sentence_request_spec.rb +41 -0
  116. data/spec/models/check_sentence_response_spec.rb +47 -0
  117. data/spec/models/check_word_request_spec.rb +41 -0
  118. data/spec/models/check_word_response_spec.rb +47 -0
  119. data/spec/models/correct_word_in_sentence_spec.rb +53 -0
  120. data/spec/models/entity_spec.rb +47 -0
  121. data/spec/models/extract_entities_request_spec.rb +41 -0
  122. data/spec/models/extract_entities_response_spec.rb +47 -0
  123. data/spec/models/get_words_request_spec.rb +41 -0
  124. data/spec/models/get_words_response_spec.rb +41 -0
  125. data/spec/models/hate_speech_analysis_request_spec.rb +41 -0
  126. data/spec/models/hate_speech_analysis_response_spec.rb +53 -0
  127. data/spec/models/language_detection_request_spec.rb +41 -0
  128. data/spec/models/language_detection_response_spec.rb +53 -0
  129. data/spec/models/language_translation_request_spec.rb +41 -0
  130. data/spec/models/language_translation_response_spec.rb +53 -0
  131. data/spec/models/parse_request_spec.rb +41 -0
  132. data/spec/models/parse_response_spec.rb +41 -0
  133. data/spec/models/pos_request_spec.rb +41 -0
  134. data/spec/models/pos_response_spec.rb +41 -0
  135. data/spec/models/pos_sentence_spec.rb +41 -0
  136. data/spec/models/pos_tagged_word_spec.rb +47 -0
  137. data/spec/models/profanity_analysis_request_spec.rb +41 -0
  138. data/spec/models/profanity_analysis_response_spec.rb +53 -0
  139. data/spec/models/rephrase_request_spec.rb +47 -0
  140. data/spec/models/rephrase_response_spec.rb +53 -0
  141. data/spec/models/rephrased_sentence_option_spec.rb +47 -0
  142. data/spec/models/rephrased_sentence_spec.rb +53 -0
  143. data/spec/models/sentence_segmentation_request_spec.rb +41 -0
  144. data/spec/models/sentence_segmentation_response_spec.rb +53 -0
  145. data/spec/models/sentiment_analysis_request_spec.rb +41 -0
  146. data/spec/models/sentiment_analysis_response_spec.rb +59 -0
  147. data/spec/models/similarity_analysis_request_spec.rb +47 -0
  148. data/spec/models/similarity_analysis_response_spec.rb +53 -0
  149. data/spec/models/subjectivity_analysis_request_spec.rb +41 -0
  150. data/spec/models/subjectivity_analysis_response_spec.rb +53 -0
  151. data/spec/models/word_position_spec.rb +59 -0
  152. data/spec/spec_helper.rb +111 -0
  153. metadata +154 -3
@@ -0,0 +1,8 @@
1
+ # CloudmersiveNlpApiClient::CheckSentenceRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **sentence** | **String** | Input sentence for spell check | [optional]
7
+
8
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveNlpApiClient::CheckSentenceResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **incorrect_count** | **Integer** | Number of incorrect words | [optional]
7
+ **words** | [**Array<CorrectWordInSentence>**](CorrectWordInSentence.md) | Words in the sentence, both correct and incorrect | [optional]
8
+
9
+
@@ -0,0 +1,8 @@
1
+ # CloudmersiveNlpApiClient::CheckWordRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **word** | **String** | | [optional]
7
+
8
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveNlpApiClient::CheckWordResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **correct** | **BOOLEAN** | True if the word is spelled correctly, false otherwise | [optional]
7
+ **suggestions** | **Array<String>** | Suggested spelling corrections | [optional]
8
+
9
+
@@ -0,0 +1,10 @@
1
+ # CloudmersiveNlpApiClient::CorrectWordInSentence
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **word** | [**WordPosition**](WordPosition.md) | Position of the word | [optional]
7
+ **correct** | **BOOLEAN** | True if the word is spelled correctly, false otherwise | [optional]
8
+ **suggestions** | **Array<String>** | Suggested spelling improvements | [optional]
9
+
10
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveNlpApiClient::Entity
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **entity_type** | **String** | | [optional]
7
+ **entity_text** | **String** | | [optional]
8
+
9
+
@@ -0,0 +1,63 @@
1
+ # CloudmersiveNlpApiClient::ExtractEntitiesApi
2
+
3
+ All URIs are relative to *https://api.cloudmersive.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**extract_entities_post**](ExtractEntitiesApi.md#extract_entities_post) | **POST** /nlp-v2/extract-entities | Extract entities from string
8
+
9
+
10
+ # **extract_entities_post**
11
+ > ExtractEntitiesResponse extract_entities_post(value)
12
+
13
+ Extract entities from string
14
+
15
+ Extract the named entitites from an input string.
16
+
17
+ ### Example
18
+ ```ruby
19
+ # load the gem
20
+ require 'cloudmersive-nlp-api-client'
21
+ # setup authorization
22
+ CloudmersiveNlpApiClient.configure do |config|
23
+ # Configure API key authorization: Apikey
24
+ config.api_key['Apikey'] = 'YOUR API KEY'
25
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
26
+ #config.api_key_prefix['Apikey'] = 'Bearer'
27
+ end
28
+
29
+ api_instance = CloudmersiveNlpApiClient::ExtractEntitiesApi.new
30
+
31
+ value = CloudmersiveNlpApiClient::ExtractEntitiesRequest.new # ExtractEntitiesRequest | Input string
32
+
33
+
34
+ begin
35
+ #Extract entities from string
36
+ result = api_instance.extract_entities_post(value)
37
+ p result
38
+ rescue CloudmersiveNlpApiClient::ApiError => e
39
+ puts "Exception when calling ExtractEntitiesApi->extract_entities_post: #{e}"
40
+ end
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+ Name | Type | Description | Notes
46
+ ------------- | ------------- | ------------- | -------------
47
+ **value** | [**ExtractEntitiesRequest**](ExtractEntitiesRequest.md)| Input string |
48
+
49
+ ### Return type
50
+
51
+ [**ExtractEntitiesResponse**](ExtractEntitiesResponse.md)
52
+
53
+ ### Authorization
54
+
55
+ [Apikey](../README.md#Apikey)
56
+
57
+ ### HTTP request headers
58
+
59
+ - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
60
+ - **Accept**: application/json
61
+
62
+
63
+
@@ -0,0 +1,8 @@
1
+ # CloudmersiveNlpApiClient::ExtractEntitiesRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **input_string** | **String** | Input string to extract entities from | [optional]
7
+
8
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveNlpApiClient::ExtractEntitiesResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if the operation was successful, false otherwise | [optional]
7
+ **entities** | [**Array<Entity>**](Entity.md) | | [optional]
8
+
9
+
@@ -0,0 +1,8 @@
1
+ # CloudmersiveNlpApiClient::GetWordsRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **input_text** | **String** | | [optional]
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # CloudmersiveNlpApiClient::GetWordsResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **words** | [**Array<WordPosition>**](WordPosition.md) | Array of words | [optional]
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # CloudmersiveNlpApiClient::HateSpeechAnalysisRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **text_to_analyze** | **String** | Text to analyze | [optional]
7
+
8
+
@@ -0,0 +1,10 @@
1
+ # CloudmersiveNlpApiClient::HateSpeechAnalysisResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if the profanity detection operation was successful, false otherwise | [optional]
7
+ **hate_speech_score_result** | **Float** | Hate speech classification score between 0.0 and 1.0 where scores closer to zero have a low probability of being hate speech language, while scores close to 1.0 have a high probability of being hate speech language. Values above 0.8 have a very high probability of being hate speech. | [optional]
8
+ **sentence_count** | **Integer** | Number of sentences in input text | [optional]
9
+
10
+
@@ -0,0 +1,63 @@
1
+ # CloudmersiveNlpApiClient::LanguageDetectionApi
2
+
3
+ All URIs are relative to *https://api.cloudmersive.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**language_detection_get_language**](LanguageDetectionApi.md#language_detection_get_language) | **POST** /nlp-v2/language/detect | Detect language of text
8
+
9
+
10
+ # **language_detection_get_language**
11
+ > LanguageDetectionResponse language_detection_get_language(input)
12
+
13
+ Detect language of text
14
+
15
+ Automatically determine which language a text string is written in. Supports Danish (DAN), German (DEU), English (ENG), French (FRA), Italian (ITA), Japanese (JPN), Korean (KOR), Dutch (NLD), Norwegian (NOR), Portuguese (POR), Russian (RUS), Spanish (SPA), Swedish (SWE), Chinese (ZHO).
16
+
17
+ ### Example
18
+ ```ruby
19
+ # load the gem
20
+ require 'cloudmersive-nlp-api-client'
21
+ # setup authorization
22
+ CloudmersiveNlpApiClient.configure do |config|
23
+ # Configure API key authorization: Apikey
24
+ config.api_key['Apikey'] = 'YOUR API KEY'
25
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
26
+ #config.api_key_prefix['Apikey'] = 'Bearer'
27
+ end
28
+
29
+ api_instance = CloudmersiveNlpApiClient::LanguageDetectionApi.new
30
+
31
+ input = CloudmersiveNlpApiClient::LanguageDetectionRequest.new # LanguageDetectionRequest |
32
+
33
+
34
+ begin
35
+ #Detect language of text
36
+ result = api_instance.language_detection_get_language(input)
37
+ p result
38
+ rescue CloudmersiveNlpApiClient::ApiError => e
39
+ puts "Exception when calling LanguageDetectionApi->language_detection_get_language: #{e}"
40
+ end
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+ Name | Type | Description | Notes
46
+ ------------- | ------------- | ------------- | -------------
47
+ **input** | [**LanguageDetectionRequest**](LanguageDetectionRequest.md)| |
48
+
49
+ ### Return type
50
+
51
+ [**LanguageDetectionResponse**](LanguageDetectionResponse.md)
52
+
53
+ ### Authorization
54
+
55
+ [Apikey](../README.md#Apikey)
56
+
57
+ ### HTTP request headers
58
+
59
+ - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
60
+ - **Accept**: application/json
61
+
62
+
63
+
@@ -0,0 +1,8 @@
1
+ # CloudmersiveNlpApiClient::LanguageDetectionRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **text_to_detect** | **String** | Text to detect the language of | [optional]
7
+
8
+
@@ -0,0 +1,10 @@
1
+ # CloudmersiveNlpApiClient::LanguageDetectionResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if the language detection operation was successful, false otherwise | [optional]
7
+ **detected_language_three_letter_code** | **String** | ISO 639 three letter language code | [optional]
8
+ **detected_language_full_name** | **String** | The full name (in English) of the detected language | [optional]
9
+
10
+
@@ -0,0 +1,338 @@
1
+ # CloudmersiveNlpApiClient::LanguageTranslationApi
2
+
3
+ All URIs are relative to *https://api.cloudmersive.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**language_translation_translate_deu_to_eng**](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
8
+ [**language_translation_translate_eng_to_deu**](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
9
+ [**language_translation_translate_eng_to_fra**](LanguageTranslationApi.md#language_translation_translate_eng_to_fra) | **POST** /nlp-v2/translate/language/eng/to/fra | Translate English to French text with Deep Learning AI
10
+ [**language_translation_translate_eng_to_rus**](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
11
+ [**language_translation_translate_fra_to_eng**](LanguageTranslationApi.md#language_translation_translate_fra_to_eng) | **POST** /nlp-v2/translate/language/fra/to/eng | Translate French to English text with Deep Learning AI
12
+ [**language_translation_translate_rus_to_eng**](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
13
+
14
+
15
+ # **language_translation_translate_deu_to_eng**
16
+ > LanguageTranslationResponse language_translation_translate_deu_to_eng(input)
17
+
18
+ Translate German to English text with Deep Learning AI
19
+
20
+ Automatically translates input text in German to output text in English using advanced Deep Learning and Neural NLP. Consumes 1-2 API calls per input sentence.
21
+
22
+ ### Example
23
+ ```ruby
24
+ # load the gem
25
+ require 'cloudmersive-nlp-api-client'
26
+ # setup authorization
27
+ CloudmersiveNlpApiClient.configure do |config|
28
+ # Configure API key authorization: Apikey
29
+ config.api_key['Apikey'] = 'YOUR API KEY'
30
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
31
+ #config.api_key_prefix['Apikey'] = 'Bearer'
32
+ end
33
+
34
+ api_instance = CloudmersiveNlpApiClient::LanguageTranslationApi.new
35
+
36
+ input = CloudmersiveNlpApiClient::LanguageTranslationRequest.new # LanguageTranslationRequest | Input translation request
37
+
38
+
39
+ begin
40
+ #Translate German to English text with Deep Learning AI
41
+ result = api_instance.language_translation_translate_deu_to_eng(input)
42
+ p result
43
+ rescue CloudmersiveNlpApiClient::ApiError => e
44
+ puts "Exception when calling LanguageTranslationApi->language_translation_translate_deu_to_eng: #{e}"
45
+ end
46
+ ```
47
+
48
+ ### Parameters
49
+
50
+ Name | Type | Description | Notes
51
+ ------------- | ------------- | ------------- | -------------
52
+ **input** | [**LanguageTranslationRequest**](LanguageTranslationRequest.md)| Input translation request |
53
+
54
+ ### Return type
55
+
56
+ [**LanguageTranslationResponse**](LanguageTranslationResponse.md)
57
+
58
+ ### Authorization
59
+
60
+ [Apikey](../README.md#Apikey)
61
+
62
+ ### HTTP request headers
63
+
64
+ - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
65
+ - **Accept**: application/json
66
+
67
+
68
+
69
+ # **language_translation_translate_eng_to_deu**
70
+ > LanguageTranslationResponse language_translation_translate_eng_to_deu(input)
71
+
72
+ Translate English to German text with Deep Learning AI
73
+
74
+ Automatically translates input text in English to output text in German using advanced Deep Learning and Neural NLP. Consumes 1-2 API calls per input sentence.
75
+
76
+ ### Example
77
+ ```ruby
78
+ # load the gem
79
+ require 'cloudmersive-nlp-api-client'
80
+ # setup authorization
81
+ CloudmersiveNlpApiClient.configure do |config|
82
+ # Configure API key authorization: Apikey
83
+ config.api_key['Apikey'] = 'YOUR API KEY'
84
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
85
+ #config.api_key_prefix['Apikey'] = 'Bearer'
86
+ end
87
+
88
+ api_instance = CloudmersiveNlpApiClient::LanguageTranslationApi.new
89
+
90
+ input = CloudmersiveNlpApiClient::LanguageTranslationRequest.new # LanguageTranslationRequest | Input translation request
91
+
92
+
93
+ begin
94
+ #Translate English to German text with Deep Learning AI
95
+ result = api_instance.language_translation_translate_eng_to_deu(input)
96
+ p result
97
+ rescue CloudmersiveNlpApiClient::ApiError => e
98
+ puts "Exception when calling LanguageTranslationApi->language_translation_translate_eng_to_deu: #{e}"
99
+ end
100
+ ```
101
+
102
+ ### Parameters
103
+
104
+ Name | Type | Description | Notes
105
+ ------------- | ------------- | ------------- | -------------
106
+ **input** | [**LanguageTranslationRequest**](LanguageTranslationRequest.md)| Input translation request |
107
+
108
+ ### Return type
109
+
110
+ [**LanguageTranslationResponse**](LanguageTranslationResponse.md)
111
+
112
+ ### Authorization
113
+
114
+ [Apikey](../README.md#Apikey)
115
+
116
+ ### HTTP request headers
117
+
118
+ - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
119
+ - **Accept**: application/json
120
+
121
+
122
+
123
+ # **language_translation_translate_eng_to_fra**
124
+ > LanguageTranslationResponse language_translation_translate_eng_to_fra(input)
125
+
126
+ Translate English to French text with Deep Learning AI
127
+
128
+ Automatically translates input text in English to output text in French using advanced Deep Learning and Neural NLP. Consumes 1-2 API calls per input sentence.
129
+
130
+ ### Example
131
+ ```ruby
132
+ # load the gem
133
+ require 'cloudmersive-nlp-api-client'
134
+ # setup authorization
135
+ CloudmersiveNlpApiClient.configure do |config|
136
+ # Configure API key authorization: Apikey
137
+ config.api_key['Apikey'] = 'YOUR API KEY'
138
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
139
+ #config.api_key_prefix['Apikey'] = 'Bearer'
140
+ end
141
+
142
+ api_instance = CloudmersiveNlpApiClient::LanguageTranslationApi.new
143
+
144
+ input = CloudmersiveNlpApiClient::LanguageTranslationRequest.new # LanguageTranslationRequest | Input translation request
145
+
146
+
147
+ begin
148
+ #Translate English to French text with Deep Learning AI
149
+ result = api_instance.language_translation_translate_eng_to_fra(input)
150
+ p result
151
+ rescue CloudmersiveNlpApiClient::ApiError => e
152
+ puts "Exception when calling LanguageTranslationApi->language_translation_translate_eng_to_fra: #{e}"
153
+ end
154
+ ```
155
+
156
+ ### Parameters
157
+
158
+ Name | Type | Description | Notes
159
+ ------------- | ------------- | ------------- | -------------
160
+ **input** | [**LanguageTranslationRequest**](LanguageTranslationRequest.md)| Input translation request |
161
+
162
+ ### Return type
163
+
164
+ [**LanguageTranslationResponse**](LanguageTranslationResponse.md)
165
+
166
+ ### Authorization
167
+
168
+ [Apikey](../README.md#Apikey)
169
+
170
+ ### HTTP request headers
171
+
172
+ - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
173
+ - **Accept**: application/json
174
+
175
+
176
+
177
+ # **language_translation_translate_eng_to_rus**
178
+ > LanguageTranslationResponse language_translation_translate_eng_to_rus(input)
179
+
180
+ Translate English to Russian text with Deep Learning AI
181
+
182
+ Automatically translates input text in English to output text in Russian using advanced Deep Learning and Neural NLP. Consumes 1-2 API calls per input sentence.
183
+
184
+ ### Example
185
+ ```ruby
186
+ # load the gem
187
+ require 'cloudmersive-nlp-api-client'
188
+ # setup authorization
189
+ CloudmersiveNlpApiClient.configure do |config|
190
+ # Configure API key authorization: Apikey
191
+ config.api_key['Apikey'] = 'YOUR API KEY'
192
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
193
+ #config.api_key_prefix['Apikey'] = 'Bearer'
194
+ end
195
+
196
+ api_instance = CloudmersiveNlpApiClient::LanguageTranslationApi.new
197
+
198
+ input = CloudmersiveNlpApiClient::LanguageTranslationRequest.new # LanguageTranslationRequest | Input translation request
199
+
200
+
201
+ begin
202
+ #Translate English to Russian text with Deep Learning AI
203
+ result = api_instance.language_translation_translate_eng_to_rus(input)
204
+ p result
205
+ rescue CloudmersiveNlpApiClient::ApiError => e
206
+ puts "Exception when calling LanguageTranslationApi->language_translation_translate_eng_to_rus: #{e}"
207
+ end
208
+ ```
209
+
210
+ ### Parameters
211
+
212
+ Name | Type | Description | Notes
213
+ ------------- | ------------- | ------------- | -------------
214
+ **input** | [**LanguageTranslationRequest**](LanguageTranslationRequest.md)| Input translation request |
215
+
216
+ ### Return type
217
+
218
+ [**LanguageTranslationResponse**](LanguageTranslationResponse.md)
219
+
220
+ ### Authorization
221
+
222
+ [Apikey](../README.md#Apikey)
223
+
224
+ ### HTTP request headers
225
+
226
+ - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
227
+ - **Accept**: application/json
228
+
229
+
230
+
231
+ # **language_translation_translate_fra_to_eng**
232
+ > LanguageTranslationResponse language_translation_translate_fra_to_eng(input)
233
+
234
+ Translate French to English text with Deep Learning AI
235
+
236
+ Automatically translates input text in French to output text in English using advanced Deep Learning and Neural NLP. Consumes 1-2 API calls per input sentence.
237
+
238
+ ### Example
239
+ ```ruby
240
+ # load the gem
241
+ require 'cloudmersive-nlp-api-client'
242
+ # setup authorization
243
+ CloudmersiveNlpApiClient.configure do |config|
244
+ # Configure API key authorization: Apikey
245
+ config.api_key['Apikey'] = 'YOUR API KEY'
246
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
247
+ #config.api_key_prefix['Apikey'] = 'Bearer'
248
+ end
249
+
250
+ api_instance = CloudmersiveNlpApiClient::LanguageTranslationApi.new
251
+
252
+ input = CloudmersiveNlpApiClient::LanguageTranslationRequest.new # LanguageTranslationRequest | Input translation request
253
+
254
+
255
+ begin
256
+ #Translate French to English text with Deep Learning AI
257
+ result = api_instance.language_translation_translate_fra_to_eng(input)
258
+ p result
259
+ rescue CloudmersiveNlpApiClient::ApiError => e
260
+ puts "Exception when calling LanguageTranslationApi->language_translation_translate_fra_to_eng: #{e}"
261
+ end
262
+ ```
263
+
264
+ ### Parameters
265
+
266
+ Name | Type | Description | Notes
267
+ ------------- | ------------- | ------------- | -------------
268
+ **input** | [**LanguageTranslationRequest**](LanguageTranslationRequest.md)| Input translation request |
269
+
270
+ ### Return type
271
+
272
+ [**LanguageTranslationResponse**](LanguageTranslationResponse.md)
273
+
274
+ ### Authorization
275
+
276
+ [Apikey](../README.md#Apikey)
277
+
278
+ ### HTTP request headers
279
+
280
+ - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
281
+ - **Accept**: application/json
282
+
283
+
284
+
285
+ # **language_translation_translate_rus_to_eng**
286
+ > LanguageTranslationResponse language_translation_translate_rus_to_eng(input)
287
+
288
+ Translate Russian to English text with Deep Learning AI
289
+
290
+ Automatically translates input text in Russian to output text in English using advanced Deep Learning and Neural NLP. Consumes 1-2 API calls per input sentence.
291
+
292
+ ### Example
293
+ ```ruby
294
+ # load the gem
295
+ require 'cloudmersive-nlp-api-client'
296
+ # setup authorization
297
+ CloudmersiveNlpApiClient.configure do |config|
298
+ # Configure API key authorization: Apikey
299
+ config.api_key['Apikey'] = 'YOUR API KEY'
300
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
301
+ #config.api_key_prefix['Apikey'] = 'Bearer'
302
+ end
303
+
304
+ api_instance = CloudmersiveNlpApiClient::LanguageTranslationApi.new
305
+
306
+ input = CloudmersiveNlpApiClient::LanguageTranslationRequest.new # LanguageTranslationRequest | Input translation request
307
+
308
+
309
+ begin
310
+ #Translate Russian to English text with Deep Learning AI
311
+ result = api_instance.language_translation_translate_rus_to_eng(input)
312
+ p result
313
+ rescue CloudmersiveNlpApiClient::ApiError => e
314
+ puts "Exception when calling LanguageTranslationApi->language_translation_translate_rus_to_eng: #{e}"
315
+ end
316
+ ```
317
+
318
+ ### Parameters
319
+
320
+ Name | Type | Description | Notes
321
+ ------------- | ------------- | ------------- | -------------
322
+ **input** | [**LanguageTranslationRequest**](LanguageTranslationRequest.md)| Input translation request |
323
+
324
+ ### Return type
325
+
326
+ [**LanguageTranslationResponse**](LanguageTranslationResponse.md)
327
+
328
+ ### Authorization
329
+
330
+ [Apikey](../README.md#Apikey)
331
+
332
+ ### HTTP request headers
333
+
334
+ - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
335
+ - **Accept**: application/json
336
+
337
+
338
+