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.
- checksums.yaml +4 -4
- metadata +3 -130
- data/Gemfile +0 -7
- data/README.md +0 -148
- data/Rakefile +0 -8
- data/cloudmersive-nlp-api-client.gemspec +0 -45
- data/docs/AnalyticsApi.md +0 -63
- data/docs/CheckSentenceRequest.md +0 -8
- data/docs/CheckSentenceResponse.md +0 -9
- data/docs/CheckWordRequest.md +0 -8
- data/docs/CheckWordResponse.md +0 -9
- data/docs/CorrectWordInSentence.md +0 -10
- data/docs/Entity.md +0 -9
- data/docs/ExtractEntitiesApi.md +0 -63
- data/docs/ExtractEntitiesRequest.md +0 -8
- data/docs/ExtractEntitiesResponse.md +0 -9
- data/docs/GetWordsRequest.md +0 -8
- data/docs/GetWordsResponse.md +0 -8
- data/docs/LanguageDetectionApi.md +0 -63
- data/docs/LanguageDetectionRequest.md +0 -8
- data/docs/LanguageDetectionResponse.md +0 -10
- data/docs/LanguageTranslationApi.md +0 -228
- data/docs/LanguageTranslationRequest.md +0 -8
- data/docs/LanguageTranslationResponse.md +0 -10
- data/docs/ParseApi.md +0 -63
- data/docs/ParseRequest.md +0 -8
- data/docs/ParseResponse.md +0 -8
- data/docs/PosRequest.md +0 -8
- data/docs/PosResponse.md +0 -8
- data/docs/PosSentence.md +0 -8
- data/docs/PosTaggedWord.md +0 -9
- data/docs/PosTaggerApi.md +0 -338
- data/docs/RephraseApi.md +0 -63
- data/docs/RephraseRequest.md +0 -9
- data/docs/RephraseResponse.md +0 -10
- data/docs/RephrasedSentence.md +0 -10
- data/docs/RephrasedSentenceOption.md +0 -9
- data/docs/SegmentationApi.md +0 -118
- data/docs/SentenceSegmentationRequest.md +0 -8
- data/docs/SentenceSegmentationResponse.md +0 -10
- data/docs/SentimentAnalysisRequest.md +0 -8
- data/docs/SentimentAnalysisResponse.md +0 -11
- data/docs/SpellcheckApi.md +0 -118
- data/docs/WordPosition.md +0 -11
- data/git_push.sh +0 -55
- data/lib/cloudmersive-nlp-api-client.rb +0 -77
- data/lib/cloudmersive-nlp-api-client/api/analytics_api.rb +0 -78
- data/lib/cloudmersive-nlp-api-client/api/extract_entities_api.rb +0 -78
- data/lib/cloudmersive-nlp-api-client/api/language_detection_api.rb +0 -78
- data/lib/cloudmersive-nlp-api-client/api/language_translation_api.rb +0 -243
- data/lib/cloudmersive-nlp-api-client/api/parse_api.rb +0 -78
- data/lib/cloudmersive-nlp-api-client/api/pos_tagger_api.rb +0 -353
- data/lib/cloudmersive-nlp-api-client/api/rephrase_api.rb +0 -78
- data/lib/cloudmersive-nlp-api-client/api/segmentation_api.rb +0 -133
- data/lib/cloudmersive-nlp-api-client/api/spellcheck_api.rb +0 -133
- data/lib/cloudmersive-nlp-api-client/api_client.rb +0 -389
- data/lib/cloudmersive-nlp-api-client/api_error.rb +0 -38
- data/lib/cloudmersive-nlp-api-client/configuration.rb +0 -209
- data/lib/cloudmersive-nlp-api-client/models/check_sentence_request.rb +0 -189
- data/lib/cloudmersive-nlp-api-client/models/check_sentence_response.rb +0 -201
- data/lib/cloudmersive-nlp-api-client/models/check_word_request.rb +0 -188
- data/lib/cloudmersive-nlp-api-client/models/check_word_response.rb +0 -201
- data/lib/cloudmersive-nlp-api-client/models/correct_word_in_sentence.rb +0 -211
- data/lib/cloudmersive-nlp-api-client/models/entity.rb +0 -197
- data/lib/cloudmersive-nlp-api-client/models/extract_entities_request.rb +0 -189
- data/lib/cloudmersive-nlp-api-client/models/extract_entities_response.rb +0 -200
- data/lib/cloudmersive-nlp-api-client/models/get_words_request.rb +0 -188
- data/lib/cloudmersive-nlp-api-client/models/get_words_response.rb +0 -191
- data/lib/cloudmersive-nlp-api-client/models/language_detection_request.rb +0 -189
- data/lib/cloudmersive-nlp-api-client/models/language_detection_response.rb +0 -209
- data/lib/cloudmersive-nlp-api-client/models/language_translation_request.rb +0 -189
- data/lib/cloudmersive-nlp-api-client/models/language_translation_response.rb +0 -209
- data/lib/cloudmersive-nlp-api-client/models/parse_request.rb +0 -189
- data/lib/cloudmersive-nlp-api-client/models/parse_response.rb +0 -189
- data/lib/cloudmersive-nlp-api-client/models/pos_request.rb +0 -189
- data/lib/cloudmersive-nlp-api-client/models/pos_response.rb +0 -191
- data/lib/cloudmersive-nlp-api-client/models/pos_sentence.rb +0 -191
- data/lib/cloudmersive-nlp-api-client/models/pos_tagged_word.rb +0 -199
- data/lib/cloudmersive-nlp-api-client/models/rephrase_request.rb +0 -199
- data/lib/cloudmersive-nlp-api-client/models/rephrase_response.rb +0 -211
- data/lib/cloudmersive-nlp-api-client/models/rephrased_sentence.rb +0 -211
- data/lib/cloudmersive-nlp-api-client/models/rephrased_sentence_option.rb +0 -199
- data/lib/cloudmersive-nlp-api-client/models/sentence_segmentation_request.rb +0 -188
- data/lib/cloudmersive-nlp-api-client/models/sentence_segmentation_response.rb +0 -208
- data/lib/cloudmersive-nlp-api-client/models/sentiment_analysis_request.rb +0 -189
- data/lib/cloudmersive-nlp-api-client/models/sentiment_analysis_response.rb +0 -219
- data/lib/cloudmersive-nlp-api-client/models/word_position.rb +0 -219
- data/lib/cloudmersive-nlp-api-client/version.rb +0 -15
- data/spec/api/analytics_api_spec.rb +0 -47
- data/spec/api/extract_entities_api_spec.rb +0 -47
- data/spec/api/language_detection_api_spec.rb +0 -47
- data/spec/api/language_translation_api_spec.rb +0 -83
- data/spec/api/parse_api_spec.rb +0 -47
- data/spec/api/pos_tagger_api_spec.rb +0 -107
- data/spec/api/rephrase_api_spec.rb +0 -47
- data/spec/api/segmentation_api_spec.rb +0 -59
- data/spec/api/spellcheck_api_spec.rb +0 -59
- data/spec/api_client_spec.rb +0 -226
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/check_sentence_request_spec.rb +0 -42
- data/spec/models/check_sentence_response_spec.rb +0 -48
- data/spec/models/check_word_request_spec.rb +0 -42
- data/spec/models/check_word_response_spec.rb +0 -48
- data/spec/models/correct_word_in_sentence_spec.rb +0 -54
- data/spec/models/entity_spec.rb +0 -48
- data/spec/models/extract_entities_request_spec.rb +0 -42
- data/spec/models/extract_entities_response_spec.rb +0 -48
- data/spec/models/get_words_request_spec.rb +0 -42
- data/spec/models/get_words_response_spec.rb +0 -42
- data/spec/models/language_detection_request_spec.rb +0 -42
- data/spec/models/language_detection_response_spec.rb +0 -54
- data/spec/models/language_translation_request_spec.rb +0 -42
- data/spec/models/language_translation_response_spec.rb +0 -54
- data/spec/models/parse_request_spec.rb +0 -42
- data/spec/models/parse_response_spec.rb +0 -42
- data/spec/models/pos_request_spec.rb +0 -42
- data/spec/models/pos_response_spec.rb +0 -42
- data/spec/models/pos_sentence_spec.rb +0 -42
- data/spec/models/pos_tagged_word_spec.rb +0 -48
- data/spec/models/rephrase_request_spec.rb +0 -48
- data/spec/models/rephrase_response_spec.rb +0 -54
- data/spec/models/rephrased_sentence_option_spec.rb +0 -48
- data/spec/models/rephrased_sentence_spec.rb +0 -54
- data/spec/models/sentence_segmentation_request_spec.rb +0 -42
- data/spec/models/sentence_segmentation_response_spec.rb +0 -54
- data/spec/models/sentiment_analysis_request_spec.rb +0 -42
- data/spec/models/sentiment_analysis_response_spec.rb +0 -60
- data/spec/models/word_position_spec.rb +0 -60
- data/spec/spec_helper.rb +0 -111
data/docs/RephraseApi.md
DELETED
@@ -1,63 +0,0 @@
|
|
1
|
-
# CloudmersiveNlpApiClient::RephraseApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://api.cloudmersive.com*
|
4
|
-
|
5
|
-
Method | HTTP request | Description
|
6
|
-
------------- | ------------- | -------------
|
7
|
-
[**rephrase_translate_deu_to_eng**](RephraseApi.md#rephrase_translate_deu_to_eng) | **POST** /nlp-v2/rephrase/rephrase/eng/by-sentence | Rephrase, paraphrase English text sentence-by-sentence using Deep Learning AI
|
8
|
-
|
9
|
-
|
10
|
-
# **rephrase_translate_deu_to_eng**
|
11
|
-
> RephraseResponse rephrase_translate_deu_to_eng(input)
|
12
|
-
|
13
|
-
Rephrase, paraphrase English text sentence-by-sentence using Deep Learning AI
|
14
|
-
|
15
|
-
Automatically rephrases or paraphrases input text in English sentence by sentence using advanced Deep Learning and Neural NLP. Creates multiple reprhasing candidates per input sentence, from 1 to 10 possible rephrasings of the original sentence. Seeks to preserve original semantic meaning in rephrased output candidates. Consumes 1-2 API calls per output rephrasing option generated, per sentence.
|
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::RephraseApi.new
|
30
|
-
|
31
|
-
input = CloudmersiveNlpApiClient::RephraseRequest.new # RephraseRequest | Input rephrase request
|
32
|
-
|
33
|
-
|
34
|
-
begin
|
35
|
-
#Rephrase, paraphrase English text sentence-by-sentence using Deep Learning AI
|
36
|
-
result = api_instance.rephrase_translate_deu_to_eng(input)
|
37
|
-
p result
|
38
|
-
rescue CloudmersiveNlpApiClient::ApiError => e
|
39
|
-
puts "Exception when calling RephraseApi->rephrase_translate_deu_to_eng: #{e}"
|
40
|
-
end
|
41
|
-
```
|
42
|
-
|
43
|
-
### Parameters
|
44
|
-
|
45
|
-
Name | Type | Description | Notes
|
46
|
-
------------- | ------------- | ------------- | -------------
|
47
|
-
**input** | [**RephraseRequest**](RephraseRequest.md)| Input rephrase request |
|
48
|
-
|
49
|
-
### Return type
|
50
|
-
|
51
|
-
[**RephraseResponse**](RephraseResponse.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
|
-
|
data/docs/RephraseRequest.md
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
# CloudmersiveNlpApiClient::RephraseRequest
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**text_to_translate** | **String** | Text to rephrase | [optional]
|
7
|
-
**target_rephrasing_count** | **Integer** | The number of rephrasing output options you would like per sentence; possible values are 1 to 10. Default is 2. | [optional]
|
8
|
-
|
9
|
-
|
data/docs/RephraseResponse.md
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
# CloudmersiveNlpApiClient::RephraseResponse
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**successful** | **BOOLEAN** | True if the language detection operation was successful, false otherwise | [optional]
|
7
|
-
**rephrased_results** | [**Array<RephrasedSentence>**](RephrasedSentence.md) | Results of the rephrasing, paraphrasing operation, in the order of the input sentences | [optional]
|
8
|
-
**sentence_count** | **Integer** | Number of sentences in input text | [optional]
|
9
|
-
|
10
|
-
|
data/docs/RephrasedSentence.md
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
# CloudmersiveNlpApiClient::RephrasedSentence
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**sentence_index** | **Integer** | Index of the sentence, 1-based, ordered | [optional]
|
7
|
-
**original_sentence_text** | **String** | Original input sentence text | [optional]
|
8
|
-
**rephrasings** | [**Array<RephrasedSentenceOption>**](RephrasedSentenceOption.md) | Rephrasing text options, candidates of the original input sentence, in order - with best candidate first | [optional]
|
9
|
-
|
10
|
-
|
@@ -1,9 +0,0 @@
|
|
1
|
-
# CloudmersiveNlpApiClient::RephrasedSentenceOption
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**rephrased_option_index** | **Integer** | Ordered index of the rephrasing option, 1-based, with 1 being the best option | [optional]
|
7
|
-
**rephrased_sentence_text** | **String** | One sentence of output rephrased text of original input sentence | [optional]
|
8
|
-
|
9
|
-
|
data/docs/SegmentationApi.md
DELETED
@@ -1,118 +0,0 @@
|
|
1
|
-
# CloudmersiveNlpApiClient::SegmentationApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://api.cloudmersive.com*
|
4
|
-
|
5
|
-
Method | HTTP request | Description
|
6
|
-
------------- | ------------- | -------------
|
7
|
-
[**segmentation_get_sentences**](SegmentationApi.md#segmentation_get_sentences) | **POST** /nlp-v2/segmentation/sentences | Extract sentences from string
|
8
|
-
[**segmentation_get_words**](SegmentationApi.md#segmentation_get_words) | **POST** /nlp-v2/segmentation/words | Get words in input string
|
9
|
-
|
10
|
-
|
11
|
-
# **segmentation_get_sentences**
|
12
|
-
> SentenceSegmentationResponse segmentation_get_sentences(input)
|
13
|
-
|
14
|
-
Extract sentences from string
|
15
|
-
|
16
|
-
Segment an input string into separate sentences, output result as a string.
|
17
|
-
|
18
|
-
### Example
|
19
|
-
```ruby
|
20
|
-
# load the gem
|
21
|
-
require 'cloudmersive-nlp-api-client'
|
22
|
-
# setup authorization
|
23
|
-
CloudmersiveNlpApiClient.configure do |config|
|
24
|
-
# Configure API key authorization: Apikey
|
25
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
26
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
27
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
28
|
-
end
|
29
|
-
|
30
|
-
api_instance = CloudmersiveNlpApiClient::SegmentationApi.new
|
31
|
-
|
32
|
-
input = CloudmersiveNlpApiClient::SentenceSegmentationRequest.new # SentenceSegmentationRequest | Input string
|
33
|
-
|
34
|
-
|
35
|
-
begin
|
36
|
-
#Extract sentences from string
|
37
|
-
result = api_instance.segmentation_get_sentences(input)
|
38
|
-
p result
|
39
|
-
rescue CloudmersiveNlpApiClient::ApiError => e
|
40
|
-
puts "Exception when calling SegmentationApi->segmentation_get_sentences: #{e}"
|
41
|
-
end
|
42
|
-
```
|
43
|
-
|
44
|
-
### Parameters
|
45
|
-
|
46
|
-
Name | Type | Description | Notes
|
47
|
-
------------- | ------------- | ------------- | -------------
|
48
|
-
**input** | [**SentenceSegmentationRequest**](SentenceSegmentationRequest.md)| Input string |
|
49
|
-
|
50
|
-
### Return type
|
51
|
-
|
52
|
-
[**SentenceSegmentationResponse**](SentenceSegmentationResponse.md)
|
53
|
-
|
54
|
-
### Authorization
|
55
|
-
|
56
|
-
[Apikey](../README.md#Apikey)
|
57
|
-
|
58
|
-
### HTTP request headers
|
59
|
-
|
60
|
-
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
61
|
-
- **Accept**: application/json, text/json, application/xml, text/xml
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
# **segmentation_get_words**
|
66
|
-
> GetWordsResponse segmentation_get_words(input)
|
67
|
-
|
68
|
-
Get words in input string
|
69
|
-
|
70
|
-
Get the component words in an input string
|
71
|
-
|
72
|
-
### Example
|
73
|
-
```ruby
|
74
|
-
# load the gem
|
75
|
-
require 'cloudmersive-nlp-api-client'
|
76
|
-
# setup authorization
|
77
|
-
CloudmersiveNlpApiClient.configure do |config|
|
78
|
-
# Configure API key authorization: Apikey
|
79
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
80
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
81
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
82
|
-
end
|
83
|
-
|
84
|
-
api_instance = CloudmersiveNlpApiClient::SegmentationApi.new
|
85
|
-
|
86
|
-
input = CloudmersiveNlpApiClient::GetWordsRequest.new # GetWordsRequest | String to process
|
87
|
-
|
88
|
-
|
89
|
-
begin
|
90
|
-
#Get words in input string
|
91
|
-
result = api_instance.segmentation_get_words(input)
|
92
|
-
p result
|
93
|
-
rescue CloudmersiveNlpApiClient::ApiError => e
|
94
|
-
puts "Exception when calling SegmentationApi->segmentation_get_words: #{e}"
|
95
|
-
end
|
96
|
-
```
|
97
|
-
|
98
|
-
### Parameters
|
99
|
-
|
100
|
-
Name | Type | Description | Notes
|
101
|
-
------------- | ------------- | ------------- | -------------
|
102
|
-
**input** | [**GetWordsRequest**](GetWordsRequest.md)| String to process |
|
103
|
-
|
104
|
-
### Return type
|
105
|
-
|
106
|
-
[**GetWordsResponse**](GetWordsResponse.md)
|
107
|
-
|
108
|
-
### Authorization
|
109
|
-
|
110
|
-
[Apikey](../README.md#Apikey)
|
111
|
-
|
112
|
-
### HTTP request headers
|
113
|
-
|
114
|
-
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
115
|
-
- **Accept**: application/json, text/json, application/xml, text/xml
|
116
|
-
|
117
|
-
|
118
|
-
|
@@ -1,10 +0,0 @@
|
|
1
|
-
# CloudmersiveNlpApiClient::SentenceSegmentationResponse
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**successful** | **BOOLEAN** | | [optional]
|
7
|
-
**sentences** | **Array<String>** | | [optional]
|
8
|
-
**sentence_count** | **Integer** | | [optional]
|
9
|
-
|
10
|
-
|
@@ -1,11 +0,0 @@
|
|
1
|
-
# CloudmersiveNlpApiClient::SentimentAnalysisResponse
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**successful** | **BOOLEAN** | True if the language detection operation was successful, false otherwise | [optional]
|
7
|
-
**sentiment_classification_result** | **String** | Classification of input text into a sentiment classification; possible values are \"Positive\", \"Negative\" or \"Neutral\" | [optional]
|
8
|
-
**sentiment_score_result** | **Float** | Sentiment classification score between -1.0 and +1.0 where scores less than 0 are negative sentiment, scores greater than 0 are positive sentiment and scores close to 0 are neutral. The greater the value deviates from 0.0 the stronger the sentiment, with +1.0 and -1.0 being maximum positive and negative sentiment, respectively. | [optional]
|
9
|
-
**sentence_count** | **Integer** | Number of sentences in input text | [optional]
|
10
|
-
|
11
|
-
|
data/docs/SpellcheckApi.md
DELETED
@@ -1,118 +0,0 @@
|
|
1
|
-
# CloudmersiveNlpApiClient::SpellcheckApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://api.cloudmersive.com*
|
4
|
-
|
5
|
-
Method | HTTP request | Description
|
6
|
-
------------- | ------------- | -------------
|
7
|
-
[**spellcheck_check_sentence**](SpellcheckApi.md#spellcheck_check_sentence) | **POST** /nlp-v2/spellcheck/check/sentence | Check if sentence is spelled correctly
|
8
|
-
[**spellcheck_correct_json**](SpellcheckApi.md#spellcheck_correct_json) | **POST** /nlp-v2/spellcheck/check/word | Find spelling corrections
|
9
|
-
|
10
|
-
|
11
|
-
# **spellcheck_check_sentence**
|
12
|
-
> CheckSentenceResponse spellcheck_check_sentence(value)
|
13
|
-
|
14
|
-
Check if sentence is spelled correctly
|
15
|
-
|
16
|
-
Checks whether the sentence is spelled correctly and returns the result as JSON
|
17
|
-
|
18
|
-
### Example
|
19
|
-
```ruby
|
20
|
-
# load the gem
|
21
|
-
require 'cloudmersive-nlp-api-client'
|
22
|
-
# setup authorization
|
23
|
-
CloudmersiveNlpApiClient.configure do |config|
|
24
|
-
# Configure API key authorization: Apikey
|
25
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
26
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
27
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
28
|
-
end
|
29
|
-
|
30
|
-
api_instance = CloudmersiveNlpApiClient::SpellcheckApi.new
|
31
|
-
|
32
|
-
value = CloudmersiveNlpApiClient::CheckSentenceRequest.new # CheckSentenceRequest | Input sentence
|
33
|
-
|
34
|
-
|
35
|
-
begin
|
36
|
-
#Check if sentence is spelled correctly
|
37
|
-
result = api_instance.spellcheck_check_sentence(value)
|
38
|
-
p result
|
39
|
-
rescue CloudmersiveNlpApiClient::ApiError => e
|
40
|
-
puts "Exception when calling SpellcheckApi->spellcheck_check_sentence: #{e}"
|
41
|
-
end
|
42
|
-
```
|
43
|
-
|
44
|
-
### Parameters
|
45
|
-
|
46
|
-
Name | Type | Description | Notes
|
47
|
-
------------- | ------------- | ------------- | -------------
|
48
|
-
**value** | [**CheckSentenceRequest**](CheckSentenceRequest.md)| Input sentence |
|
49
|
-
|
50
|
-
### Return type
|
51
|
-
|
52
|
-
[**CheckSentenceResponse**](CheckSentenceResponse.md)
|
53
|
-
|
54
|
-
### Authorization
|
55
|
-
|
56
|
-
[Apikey](../README.md#Apikey)
|
57
|
-
|
58
|
-
### HTTP request headers
|
59
|
-
|
60
|
-
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
61
|
-
- **Accept**: application/json, text/json, application/xml, text/xml
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
# **spellcheck_correct_json**
|
66
|
-
> CheckWordResponse spellcheck_correct_json(value)
|
67
|
-
|
68
|
-
Find spelling corrections
|
69
|
-
|
70
|
-
Find spelling correction suggestions and return result as JSON
|
71
|
-
|
72
|
-
### Example
|
73
|
-
```ruby
|
74
|
-
# load the gem
|
75
|
-
require 'cloudmersive-nlp-api-client'
|
76
|
-
# setup authorization
|
77
|
-
CloudmersiveNlpApiClient.configure do |config|
|
78
|
-
# Configure API key authorization: Apikey
|
79
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
80
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
81
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
82
|
-
end
|
83
|
-
|
84
|
-
api_instance = CloudmersiveNlpApiClient::SpellcheckApi.new
|
85
|
-
|
86
|
-
value = CloudmersiveNlpApiClient::CheckWordRequest.new # CheckWordRequest | Input string
|
87
|
-
|
88
|
-
|
89
|
-
begin
|
90
|
-
#Find spelling corrections
|
91
|
-
result = api_instance.spellcheck_correct_json(value)
|
92
|
-
p result
|
93
|
-
rescue CloudmersiveNlpApiClient::ApiError => e
|
94
|
-
puts "Exception when calling SpellcheckApi->spellcheck_correct_json: #{e}"
|
95
|
-
end
|
96
|
-
```
|
97
|
-
|
98
|
-
### Parameters
|
99
|
-
|
100
|
-
Name | Type | Description | Notes
|
101
|
-
------------- | ------------- | ------------- | -------------
|
102
|
-
**value** | [**CheckWordRequest**](CheckWordRequest.md)| Input string |
|
103
|
-
|
104
|
-
### Return type
|
105
|
-
|
106
|
-
[**CheckWordResponse**](CheckWordResponse.md)
|
107
|
-
|
108
|
-
### Authorization
|
109
|
-
|
110
|
-
[Apikey](../README.md#Apikey)
|
111
|
-
|
112
|
-
### HTTP request headers
|
113
|
-
|
114
|
-
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
115
|
-
- **Accept**: application/json, text/json, application/xml, text/xml
|
116
|
-
|
117
|
-
|
118
|
-
|
data/docs/WordPosition.md
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
# CloudmersiveNlpApiClient::WordPosition
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**word** | **String** | Word as a string | [optional]
|
7
|
-
**word_index** | **Integer** | Zero-based index of the word; first word has index 0, second word has index 1 and so on | [optional]
|
8
|
-
**start_position** | **Integer** | Zero-based character offset at which the word begins in the input string | [optional]
|
9
|
-
**end_position** | **Integer** | Zero-based character offset at which the word ends in the input string | [optional]
|
10
|
-
|
11
|
-
|
data/git_push.sh
DELETED
@@ -1,55 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
#
|
3
|
-
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
4
|
-
#
|
5
|
-
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
6
|
-
#
|
7
|
-
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
8
|
-
|
9
|
-
git_user_id=$1
|
10
|
-
git_repo_id=$2
|
11
|
-
release_note=$3
|
12
|
-
|
13
|
-
if [ "$git_user_id" = "" ]; then
|
14
|
-
git_user_id="GIT_USER_ID"
|
15
|
-
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
16
|
-
fi
|
17
|
-
|
18
|
-
if [ "$git_repo_id" = "" ]; then
|
19
|
-
git_repo_id="GIT_REPO_ID"
|
20
|
-
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
21
|
-
fi
|
22
|
-
|
23
|
-
if [ "$release_note" = "" ]; then
|
24
|
-
release_note="Minor update"
|
25
|
-
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
26
|
-
fi
|
27
|
-
|
28
|
-
# Initialize the local directory as a Git repository
|
29
|
-
git init
|
30
|
-
|
31
|
-
# Adds the files in the local repository and stages them for commit.
|
32
|
-
git add .
|
33
|
-
|
34
|
-
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
35
|
-
git commit -m "$release_note"
|
36
|
-
|
37
|
-
# Sets the new remote
|
38
|
-
git_remote=`git remote`
|
39
|
-
if [ "$git_remote" = "" ]; then # git remote not defined
|
40
|
-
|
41
|
-
if [ "$GIT_TOKEN" = "" ]; then
|
42
|
-
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
43
|
-
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
44
|
-
else
|
45
|
-
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
46
|
-
fi
|
47
|
-
|
48
|
-
fi
|
49
|
-
|
50
|
-
git pull origin master
|
51
|
-
|
52
|
-
# Pushes (Forces) the changes in the local repository up to the remote repository
|
53
|
-
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
54
|
-
git push origin master 2>&1 | grep -v 'To https'
|
55
|
-
|