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
@@ -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
|
-
|
data/docs/CheckWordRequest.md
DELETED
data/docs/CheckWordResponse.md
DELETED
@@ -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
|
-
|
data/docs/Entity.md
DELETED
data/docs/ExtractEntitiesApi.md
DELETED
@@ -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
|
61
|
-
|
62
|
-
|
63
|
-
|
@@ -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
|
-
|
data/docs/GetWordsRequest.md
DELETED
data/docs/GetWordsResponse.md
DELETED
@@ -1,10 +0,0 @@
|
|
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
|
-
|
@@ -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
|
61
|
-
|
62
|
-
|
63
|
-
|
@@ -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
|
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
|
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
|
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
|
226
|
-
|
227
|
-
|
228
|
-
|