cloudmersive-nlp-api-client 2.0.5 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. metadata +3 -130
  3. data/Gemfile +0 -7
  4. data/README.md +0 -148
  5. data/Rakefile +0 -8
  6. data/cloudmersive-nlp-api-client.gemspec +0 -45
  7. data/docs/AnalyticsApi.md +0 -63
  8. data/docs/CheckSentenceRequest.md +0 -8
  9. data/docs/CheckSentenceResponse.md +0 -9
  10. data/docs/CheckWordRequest.md +0 -8
  11. data/docs/CheckWordResponse.md +0 -9
  12. data/docs/CorrectWordInSentence.md +0 -10
  13. data/docs/Entity.md +0 -9
  14. data/docs/ExtractEntitiesApi.md +0 -63
  15. data/docs/ExtractEntitiesRequest.md +0 -8
  16. data/docs/ExtractEntitiesResponse.md +0 -9
  17. data/docs/GetWordsRequest.md +0 -8
  18. data/docs/GetWordsResponse.md +0 -8
  19. data/docs/LanguageDetectionApi.md +0 -63
  20. data/docs/LanguageDetectionRequest.md +0 -8
  21. data/docs/LanguageDetectionResponse.md +0 -10
  22. data/docs/LanguageTranslationApi.md +0 -228
  23. data/docs/LanguageTranslationRequest.md +0 -8
  24. data/docs/LanguageTranslationResponse.md +0 -10
  25. data/docs/ParseApi.md +0 -63
  26. data/docs/ParseRequest.md +0 -8
  27. data/docs/ParseResponse.md +0 -8
  28. data/docs/PosRequest.md +0 -8
  29. data/docs/PosResponse.md +0 -8
  30. data/docs/PosSentence.md +0 -8
  31. data/docs/PosTaggedWord.md +0 -9
  32. data/docs/PosTaggerApi.md +0 -338
  33. data/docs/RephraseApi.md +0 -63
  34. data/docs/RephraseRequest.md +0 -9
  35. data/docs/RephraseResponse.md +0 -10
  36. data/docs/RephrasedSentence.md +0 -10
  37. data/docs/RephrasedSentenceOption.md +0 -9
  38. data/docs/SegmentationApi.md +0 -118
  39. data/docs/SentenceSegmentationRequest.md +0 -8
  40. data/docs/SentenceSegmentationResponse.md +0 -10
  41. data/docs/SentimentAnalysisRequest.md +0 -8
  42. data/docs/SentimentAnalysisResponse.md +0 -11
  43. data/docs/SpellcheckApi.md +0 -118
  44. data/docs/WordPosition.md +0 -11
  45. data/git_push.sh +0 -55
  46. data/lib/cloudmersive-nlp-api-client.rb +0 -77
  47. data/lib/cloudmersive-nlp-api-client/api/analytics_api.rb +0 -78
  48. data/lib/cloudmersive-nlp-api-client/api/extract_entities_api.rb +0 -78
  49. data/lib/cloudmersive-nlp-api-client/api/language_detection_api.rb +0 -78
  50. data/lib/cloudmersive-nlp-api-client/api/language_translation_api.rb +0 -243
  51. data/lib/cloudmersive-nlp-api-client/api/parse_api.rb +0 -78
  52. data/lib/cloudmersive-nlp-api-client/api/pos_tagger_api.rb +0 -353
  53. data/lib/cloudmersive-nlp-api-client/api/rephrase_api.rb +0 -78
  54. data/lib/cloudmersive-nlp-api-client/api/segmentation_api.rb +0 -133
  55. data/lib/cloudmersive-nlp-api-client/api/spellcheck_api.rb +0 -133
  56. data/lib/cloudmersive-nlp-api-client/api_client.rb +0 -389
  57. data/lib/cloudmersive-nlp-api-client/api_error.rb +0 -38
  58. data/lib/cloudmersive-nlp-api-client/configuration.rb +0 -209
  59. data/lib/cloudmersive-nlp-api-client/models/check_sentence_request.rb +0 -189
  60. data/lib/cloudmersive-nlp-api-client/models/check_sentence_response.rb +0 -201
  61. data/lib/cloudmersive-nlp-api-client/models/check_word_request.rb +0 -188
  62. data/lib/cloudmersive-nlp-api-client/models/check_word_response.rb +0 -201
  63. data/lib/cloudmersive-nlp-api-client/models/correct_word_in_sentence.rb +0 -211
  64. data/lib/cloudmersive-nlp-api-client/models/entity.rb +0 -197
  65. data/lib/cloudmersive-nlp-api-client/models/extract_entities_request.rb +0 -189
  66. data/lib/cloudmersive-nlp-api-client/models/extract_entities_response.rb +0 -200
  67. data/lib/cloudmersive-nlp-api-client/models/get_words_request.rb +0 -188
  68. data/lib/cloudmersive-nlp-api-client/models/get_words_response.rb +0 -191
  69. data/lib/cloudmersive-nlp-api-client/models/language_detection_request.rb +0 -189
  70. data/lib/cloudmersive-nlp-api-client/models/language_detection_response.rb +0 -209
  71. data/lib/cloudmersive-nlp-api-client/models/language_translation_request.rb +0 -189
  72. data/lib/cloudmersive-nlp-api-client/models/language_translation_response.rb +0 -209
  73. data/lib/cloudmersive-nlp-api-client/models/parse_request.rb +0 -189
  74. data/lib/cloudmersive-nlp-api-client/models/parse_response.rb +0 -189
  75. data/lib/cloudmersive-nlp-api-client/models/pos_request.rb +0 -189
  76. data/lib/cloudmersive-nlp-api-client/models/pos_response.rb +0 -191
  77. data/lib/cloudmersive-nlp-api-client/models/pos_sentence.rb +0 -191
  78. data/lib/cloudmersive-nlp-api-client/models/pos_tagged_word.rb +0 -199
  79. data/lib/cloudmersive-nlp-api-client/models/rephrase_request.rb +0 -199
  80. data/lib/cloudmersive-nlp-api-client/models/rephrase_response.rb +0 -211
  81. data/lib/cloudmersive-nlp-api-client/models/rephrased_sentence.rb +0 -211
  82. data/lib/cloudmersive-nlp-api-client/models/rephrased_sentence_option.rb +0 -199
  83. data/lib/cloudmersive-nlp-api-client/models/sentence_segmentation_request.rb +0 -188
  84. data/lib/cloudmersive-nlp-api-client/models/sentence_segmentation_response.rb +0 -208
  85. data/lib/cloudmersive-nlp-api-client/models/sentiment_analysis_request.rb +0 -189
  86. data/lib/cloudmersive-nlp-api-client/models/sentiment_analysis_response.rb +0 -219
  87. data/lib/cloudmersive-nlp-api-client/models/word_position.rb +0 -219
  88. data/lib/cloudmersive-nlp-api-client/version.rb +0 -15
  89. data/spec/api/analytics_api_spec.rb +0 -47
  90. data/spec/api/extract_entities_api_spec.rb +0 -47
  91. data/spec/api/language_detection_api_spec.rb +0 -47
  92. data/spec/api/language_translation_api_spec.rb +0 -83
  93. data/spec/api/parse_api_spec.rb +0 -47
  94. data/spec/api/pos_tagger_api_spec.rb +0 -107
  95. data/spec/api/rephrase_api_spec.rb +0 -47
  96. data/spec/api/segmentation_api_spec.rb +0 -59
  97. data/spec/api/spellcheck_api_spec.rb +0 -59
  98. data/spec/api_client_spec.rb +0 -226
  99. data/spec/configuration_spec.rb +0 -42
  100. data/spec/models/check_sentence_request_spec.rb +0 -42
  101. data/spec/models/check_sentence_response_spec.rb +0 -48
  102. data/spec/models/check_word_request_spec.rb +0 -42
  103. data/spec/models/check_word_response_spec.rb +0 -48
  104. data/spec/models/correct_word_in_sentence_spec.rb +0 -54
  105. data/spec/models/entity_spec.rb +0 -48
  106. data/spec/models/extract_entities_request_spec.rb +0 -42
  107. data/spec/models/extract_entities_response_spec.rb +0 -48
  108. data/spec/models/get_words_request_spec.rb +0 -42
  109. data/spec/models/get_words_response_spec.rb +0 -42
  110. data/spec/models/language_detection_request_spec.rb +0 -42
  111. data/spec/models/language_detection_response_spec.rb +0 -54
  112. data/spec/models/language_translation_request_spec.rb +0 -42
  113. data/spec/models/language_translation_response_spec.rb +0 -54
  114. data/spec/models/parse_request_spec.rb +0 -42
  115. data/spec/models/parse_response_spec.rb +0 -42
  116. data/spec/models/pos_request_spec.rb +0 -42
  117. data/spec/models/pos_response_spec.rb +0 -42
  118. data/spec/models/pos_sentence_spec.rb +0 -42
  119. data/spec/models/pos_tagged_word_spec.rb +0 -48
  120. data/spec/models/rephrase_request_spec.rb +0 -48
  121. data/spec/models/rephrase_response_spec.rb +0 -54
  122. data/spec/models/rephrased_sentence_option_spec.rb +0 -48
  123. data/spec/models/rephrased_sentence_spec.rb +0 -54
  124. data/spec/models/sentence_segmentation_request_spec.rb +0 -42
  125. data/spec/models/sentence_segmentation_response_spec.rb +0 -54
  126. data/spec/models/sentiment_analysis_request_spec.rb +0 -42
  127. data/spec/models/sentiment_analysis_response_spec.rb +0 -60
  128. data/spec/models/word_position_spec.rb +0 -60
  129. data/spec/spec_helper.rb +0 -111
@@ -1,9 +0,0 @@
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
-
@@ -1,8 +0,0 @@
1
- # CloudmersiveNlpApiClient::CheckWordRequest
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **word** | **String** | | [optional]
7
-
8
-
@@ -1,9 +0,0 @@
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
-
@@ -1,10 +0,0 @@
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
-
@@ -1,9 +0,0 @@
1
- # CloudmersiveNlpApiClient::Entity
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **entity_type** | **String** | | [optional]
7
- **entity_text** | **String** | | [optional]
8
-
9
-
@@ -1,63 +0,0 @@
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, text/json, application/xml, text/xml
61
-
62
-
63
-
@@ -1,8 +0,0 @@
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
-
@@ -1,9 +0,0 @@
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
-
@@ -1,8 +0,0 @@
1
- # CloudmersiveNlpApiClient::GetWordsRequest
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **input_text** | **String** | | [optional]
7
-
8
-
@@ -1,8 +0,0 @@
1
- # CloudmersiveNlpApiClient::GetWordsResponse
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **words** | [**Array<WordPosition>**](WordPosition.md) | Array of words | [optional]
7
-
8
-
@@ -1,63 +0,0 @@
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, text/json, application/xml, text/xml
61
-
62
-
63
-
@@ -1,8 +0,0 @@
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
-
@@ -1,10 +0,0 @@
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
-
@@ -1,228 +0,0 @@
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_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
10
- [**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
11
-
12
-
13
- # **language_translation_translate_deu_to_eng**
14
- > LanguageTranslationResponse language_translation_translate_deu_to_eng(input)
15
-
16
- Translate German to English text with Deep Learning AI
17
-
18
- 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.
19
-
20
- ### Example
21
- ```ruby
22
- # load the gem
23
- require 'cloudmersive-nlp-api-client'
24
- # setup authorization
25
- CloudmersiveNlpApiClient.configure do |config|
26
- # Configure API key authorization: Apikey
27
- config.api_key['Apikey'] = 'YOUR API KEY'
28
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
29
- #config.api_key_prefix['Apikey'] = 'Bearer'
30
- end
31
-
32
- api_instance = CloudmersiveNlpApiClient::LanguageTranslationApi.new
33
-
34
- input = CloudmersiveNlpApiClient::LanguageTranslationRequest.new # LanguageTranslationRequest | Input translation request
35
-
36
-
37
- begin
38
- #Translate German to English text with Deep Learning AI
39
- result = api_instance.language_translation_translate_deu_to_eng(input)
40
- p result
41
- rescue CloudmersiveNlpApiClient::ApiError => e
42
- puts "Exception when calling LanguageTranslationApi->language_translation_translate_deu_to_eng: #{e}"
43
- end
44
- ```
45
-
46
- ### Parameters
47
-
48
- Name | Type | Description | Notes
49
- ------------- | ------------- | ------------- | -------------
50
- **input** | [**LanguageTranslationRequest**](LanguageTranslationRequest.md)| Input translation request |
51
-
52
- ### Return type
53
-
54
- [**LanguageTranslationResponse**](LanguageTranslationResponse.md)
55
-
56
- ### Authorization
57
-
58
- [Apikey](../README.md#Apikey)
59
-
60
- ### HTTP request headers
61
-
62
- - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
63
- - **Accept**: application/json, text/json, application/xml, text/xml
64
-
65
-
66
-
67
- # **language_translation_translate_eng_to_deu**
68
- > LanguageTranslationResponse language_translation_translate_eng_to_deu(input)
69
-
70
- Translate English to German text with Deep Learning AI
71
-
72
- 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.
73
-
74
- ### Example
75
- ```ruby
76
- # load the gem
77
- require 'cloudmersive-nlp-api-client'
78
- # setup authorization
79
- CloudmersiveNlpApiClient.configure do |config|
80
- # Configure API key authorization: Apikey
81
- config.api_key['Apikey'] = 'YOUR API KEY'
82
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
83
- #config.api_key_prefix['Apikey'] = 'Bearer'
84
- end
85
-
86
- api_instance = CloudmersiveNlpApiClient::LanguageTranslationApi.new
87
-
88
- input = CloudmersiveNlpApiClient::LanguageTranslationRequest.new # LanguageTranslationRequest | Input translation request
89
-
90
-
91
- begin
92
- #Translate English to German text with Deep Learning AI
93
- result = api_instance.language_translation_translate_eng_to_deu(input)
94
- p result
95
- rescue CloudmersiveNlpApiClient::ApiError => e
96
- puts "Exception when calling LanguageTranslationApi->language_translation_translate_eng_to_deu: #{e}"
97
- end
98
- ```
99
-
100
- ### Parameters
101
-
102
- Name | Type | Description | Notes
103
- ------------- | ------------- | ------------- | -------------
104
- **input** | [**LanguageTranslationRequest**](LanguageTranslationRequest.md)| Input translation request |
105
-
106
- ### Return type
107
-
108
- [**LanguageTranslationResponse**](LanguageTranslationResponse.md)
109
-
110
- ### Authorization
111
-
112
- [Apikey](../README.md#Apikey)
113
-
114
- ### HTTP request headers
115
-
116
- - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
117
- - **Accept**: application/json, text/json, application/xml, text/xml
118
-
119
-
120
-
121
- # **language_translation_translate_eng_to_rus**
122
- > LanguageTranslationResponse language_translation_translate_eng_to_rus(input)
123
-
124
- Translate English to Russian text with Deep Learning AI
125
-
126
- 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.
127
-
128
- ### Example
129
- ```ruby
130
- # load the gem
131
- require 'cloudmersive-nlp-api-client'
132
- # setup authorization
133
- CloudmersiveNlpApiClient.configure do |config|
134
- # Configure API key authorization: Apikey
135
- config.api_key['Apikey'] = 'YOUR API KEY'
136
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
137
- #config.api_key_prefix['Apikey'] = 'Bearer'
138
- end
139
-
140
- api_instance = CloudmersiveNlpApiClient::LanguageTranslationApi.new
141
-
142
- input = CloudmersiveNlpApiClient::LanguageTranslationRequest.new # LanguageTranslationRequest | Input translation request
143
-
144
-
145
- begin
146
- #Translate English to Russian text with Deep Learning AI
147
- result = api_instance.language_translation_translate_eng_to_rus(input)
148
- p result
149
- rescue CloudmersiveNlpApiClient::ApiError => e
150
- puts "Exception when calling LanguageTranslationApi->language_translation_translate_eng_to_rus: #{e}"
151
- end
152
- ```
153
-
154
- ### Parameters
155
-
156
- Name | Type | Description | Notes
157
- ------------- | ------------- | ------------- | -------------
158
- **input** | [**LanguageTranslationRequest**](LanguageTranslationRequest.md)| Input translation request |
159
-
160
- ### Return type
161
-
162
- [**LanguageTranslationResponse**](LanguageTranslationResponse.md)
163
-
164
- ### Authorization
165
-
166
- [Apikey](../README.md#Apikey)
167
-
168
- ### HTTP request headers
169
-
170
- - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
171
- - **Accept**: application/json, text/json, application/xml, text/xml
172
-
173
-
174
-
175
- # **language_translation_translate_rus_to_eng**
176
- > LanguageTranslationResponse language_translation_translate_rus_to_eng(input)
177
-
178
- Translate Russian to English text with Deep Learning AI
179
-
180
- 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.
181
-
182
- ### Example
183
- ```ruby
184
- # load the gem
185
- require 'cloudmersive-nlp-api-client'
186
- # setup authorization
187
- CloudmersiveNlpApiClient.configure do |config|
188
- # Configure API key authorization: Apikey
189
- config.api_key['Apikey'] = 'YOUR API KEY'
190
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
191
- #config.api_key_prefix['Apikey'] = 'Bearer'
192
- end
193
-
194
- api_instance = CloudmersiveNlpApiClient::LanguageTranslationApi.new
195
-
196
- input = CloudmersiveNlpApiClient::LanguageTranslationRequest.new # LanguageTranslationRequest | Input translation request
197
-
198
-
199
- begin
200
- #Translate Russian to English text with Deep Learning AI
201
- result = api_instance.language_translation_translate_rus_to_eng(input)
202
- p result
203
- rescue CloudmersiveNlpApiClient::ApiError => e
204
- puts "Exception when calling LanguageTranslationApi->language_translation_translate_rus_to_eng: #{e}"
205
- end
206
- ```
207
-
208
- ### Parameters
209
-
210
- Name | Type | Description | Notes
211
- ------------- | ------------- | ------------- | -------------
212
- **input** | [**LanguageTranslationRequest**](LanguageTranslationRequest.md)| Input translation request |
213
-
214
- ### Return type
215
-
216
- [**LanguageTranslationResponse**](LanguageTranslationResponse.md)
217
-
218
- ### Authorization
219
-
220
- [Apikey](../README.md#Apikey)
221
-
222
- ### HTTP request headers
223
-
224
- - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
225
- - **Accept**: application/json, text/json, application/xml, text/xml
226
-
227
-
228
-