cloudmersive-nlp-api-client 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/README.md +131 -0
- data/Rakefile +8 -0
- data/cloudmersive-nlp-api-client.gemspec +45 -0
- data/docs/CheckJsonResponse.md +8 -0
- data/docs/CheckSentenceJsonResponse.md +9 -0
- data/docs/CorrectJsonResponse.md +9 -0
- data/docs/CorrectWordInSentenceJsonResponse.md +10 -0
- data/docs/ExtractEntitiesStringApi.md +63 -0
- data/docs/GetWordsJsonResponse.md +8 -0
- data/docs/LanguageDetectionApi.md +63 -0
- data/docs/LanguageDetectionResponse.md +10 -0
- data/docs/ParseStringApi.md +63 -0
- data/docs/PosRequest.md +8 -0
- data/docs/PosResponse.md +8 -0
- data/docs/PosSentence.md +8 -0
- data/docs/PosTaggedWord.md +9 -0
- data/docs/PosTaggerJsonApi.md +63 -0
- data/docs/PosTaggerStringApi.md +63 -0
- data/docs/SentencesApi.md +63 -0
- data/docs/SpellCheckApi.md +338 -0
- data/docs/WordPosition.md +11 -0
- data/docs/WordsApi.md +448 -0
- data/git_push.sh +55 -0
- data/lib/cloudmersive-nlp-api-client.rb +58 -0
- data/lib/cloudmersive-nlp-api-client/api/extract_entities_string_api.rb +78 -0
- data/lib/cloudmersive-nlp-api-client/api/language_detection_api.rb +78 -0
- data/lib/cloudmersive-nlp-api-client/api/parse_string_api.rb +78 -0
- data/lib/cloudmersive-nlp-api-client/api/pos_tagger_json_api.rb +78 -0
- data/lib/cloudmersive-nlp-api-client/api/pos_tagger_string_api.rb +78 -0
- data/lib/cloudmersive-nlp-api-client/api/sentences_api.rb +78 -0
- data/lib/cloudmersive-nlp-api-client/api/spell_check_api.rb +353 -0
- data/lib/cloudmersive-nlp-api-client/api/words_api.rb +463 -0
- data/lib/cloudmersive-nlp-api-client/api_client.rb +389 -0
- data/lib/cloudmersive-nlp-api-client/api_error.rb +38 -0
- data/lib/cloudmersive-nlp-api-client/configuration.rb +209 -0
- data/lib/cloudmersive-nlp-api-client/models/check_json_response.rb +189 -0
- data/lib/cloudmersive-nlp-api-client/models/check_sentence_json_response.rb +201 -0
- data/lib/cloudmersive-nlp-api-client/models/correct_json_response.rb +201 -0
- data/lib/cloudmersive-nlp-api-client/models/correct_word_in_sentence_json_response.rb +211 -0
- data/lib/cloudmersive-nlp-api-client/models/get_words_json_response.rb +191 -0
- data/lib/cloudmersive-nlp-api-client/models/language_detection_response.rb +209 -0
- data/lib/cloudmersive-nlp-api-client/models/pos_request.rb +189 -0
- data/lib/cloudmersive-nlp-api-client/models/pos_response.rb +191 -0
- data/lib/cloudmersive-nlp-api-client/models/pos_sentence.rb +191 -0
- data/lib/cloudmersive-nlp-api-client/models/pos_tagged_word.rb +199 -0
- data/lib/cloudmersive-nlp-api-client/models/word_position.rb +219 -0
- data/lib/cloudmersive-nlp-api-client/version.rb +15 -0
- data/spec/api/extract_entities_string_api_spec.rb +47 -0
- data/spec/api/language_detection_api_spec.rb +47 -0
- data/spec/api/parse_string_api_spec.rb +47 -0
- data/spec/api/pos_tagger_json_api_spec.rb +47 -0
- data/spec/api/pos_tagger_string_api_spec.rb +47 -0
- data/spec/api/sentences_api_spec.rb +47 -0
- data/spec/api/spell_check_api_spec.rb +107 -0
- data/spec/api/words_api_spec.rb +131 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/check_json_response_spec.rb +42 -0
- data/spec/models/check_sentence_json_response_spec.rb +48 -0
- data/spec/models/correct_json_response_spec.rb +48 -0
- data/spec/models/correct_word_in_sentence_json_response_spec.rb +54 -0
- data/spec/models/get_words_json_response_spec.rb +42 -0
- data/spec/models/language_detection_response_spec.rb +54 -0
- data/spec/models/pos_request_spec.rb +42 -0
- data/spec/models/pos_response_spec.rb +42 -0
- data/spec/models/pos_sentence_spec.rb +42 -0
- data/spec/models/pos_tagged_word_spec.rb +48 -0
- data/spec/models/word_position_spec.rb +60 -0
- data/spec/spec_helper.rb +111 -0
- metadata +296 -0
data/docs/PosRequest.md
ADDED
data/docs/PosResponse.md
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
# CloudmersiveNlpApiClient::PosResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**tagged_sentences** | [**Array<PosSentence>**](PosSentence.md) | Sentences in the string | [optional]
|
7
|
+
|
8
|
+
|
data/docs/PosSentence.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# CloudmersiveNlpApiClient::PosTaggedWord
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**word** | **Object** | Word that was tagged | [optional]
|
7
|
+
**tag** | **Object** | Penn Treebank tag applied to the word | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# CloudmersiveNlpApiClient::PosTaggerJsonApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.cloudmersive.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**pos_tagger_json_post**](PosTaggerJsonApi.md#pos_tagger_json_post) | **POST** /nlp/PosTaggerJson | Part-of-speech tag a string
|
8
|
+
|
9
|
+
|
10
|
+
# **pos_tagger_json_post**
|
11
|
+
> PosResponse pos_tagger_json_post(request)
|
12
|
+
|
13
|
+
Part-of-speech tag a string
|
14
|
+
|
15
|
+
Part-of-speech (POS) tag a string and return result as JSON
|
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::PosTaggerJsonApi.new
|
30
|
+
|
31
|
+
request = CloudmersiveNlpApiClient::PosRequest.new # PosRequest | Input string
|
32
|
+
|
33
|
+
|
34
|
+
begin
|
35
|
+
#Part-of-speech tag a string
|
36
|
+
result = api_instance.pos_tagger_json_post(request)
|
37
|
+
p result
|
38
|
+
rescue CloudmersiveNlpApiClient::ApiError => e
|
39
|
+
puts "Exception when calling PosTaggerJsonApi->pos_tagger_json_post: #{e}"
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
43
|
+
### Parameters
|
44
|
+
|
45
|
+
Name | Type | Description | Notes
|
46
|
+
------------- | ------------- | ------------- | -------------
|
47
|
+
**request** | [**PosRequest**](PosRequest.md)| Input string |
|
48
|
+
|
49
|
+
### Return type
|
50
|
+
|
51
|
+
[**PosResponse**](PosResponse.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
|
+
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# CloudmersiveNlpApiClient::PosTaggerStringApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.cloudmersive.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**pos_tagger_string_post**](PosTaggerStringApi.md#pos_tagger_string_post) | **POST** /nlp/PosTaggerString | Part-of-speech tag a string
|
8
|
+
|
9
|
+
|
10
|
+
# **pos_tagger_string_post**
|
11
|
+
> String pos_tagger_string_post(input)
|
12
|
+
|
13
|
+
Part-of-speech tag a string
|
14
|
+
|
15
|
+
Perform a part-of-speech (POS) tagging on the 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::PosTaggerStringApi.new
|
30
|
+
|
31
|
+
input = "input_example" # String | Input string
|
32
|
+
|
33
|
+
|
34
|
+
begin
|
35
|
+
#Part-of-speech tag a string
|
36
|
+
result = api_instance.pos_tagger_string_post(input)
|
37
|
+
p result
|
38
|
+
rescue CloudmersiveNlpApiClient::ApiError => e
|
39
|
+
puts "Exception when calling PosTaggerStringApi->pos_tagger_string_post: #{e}"
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
43
|
+
### Parameters
|
44
|
+
|
45
|
+
Name | Type | Description | Notes
|
46
|
+
------------- | ------------- | ------------- | -------------
|
47
|
+
**input** | **String**| Input string |
|
48
|
+
|
49
|
+
### Return type
|
50
|
+
|
51
|
+
**String**
|
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
|
+
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# CloudmersiveNlpApiClient::SentencesApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.cloudmersive.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**sentences_post**](SentencesApi.md#sentences_post) | **POST** /nlp/get/sentences/string | Extract sentences from string
|
8
|
+
|
9
|
+
|
10
|
+
# **sentences_post**
|
11
|
+
> String sentences_post(input)
|
12
|
+
|
13
|
+
Extract sentences from string
|
14
|
+
|
15
|
+
Segment an input string into separate sentences, output result as a 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::SentencesApi.new
|
30
|
+
|
31
|
+
input = "input_example" # String | Input string
|
32
|
+
|
33
|
+
|
34
|
+
begin
|
35
|
+
#Extract sentences from string
|
36
|
+
result = api_instance.sentences_post(input)
|
37
|
+
p result
|
38
|
+
rescue CloudmersiveNlpApiClient::ApiError => e
|
39
|
+
puts "Exception when calling SentencesApi->sentences_post: #{e}"
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
43
|
+
### Parameters
|
44
|
+
|
45
|
+
Name | Type | Description | Notes
|
46
|
+
------------- | ------------- | ------------- | -------------
|
47
|
+
**input** | **String**| Input string |
|
48
|
+
|
49
|
+
### Return type
|
50
|
+
|
51
|
+
**String**
|
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
|
+
|
@@ -0,0 +1,338 @@
|
|
1
|
+
# CloudmersiveNlpApiClient::SpellCheckApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.cloudmersive.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**spell_check_check_json**](SpellCheckApi.md#spell_check_check_json) | **POST** /nlp/spellcheck/check/word/json | Spell check word
|
8
|
+
[**spell_check_check_sentence_json**](SpellCheckApi.md#spell_check_check_sentence_json) | **POST** /nlp/spellcheck/check/sentence/json | Check if sentence is spelled correctly
|
9
|
+
[**spell_check_check_sentence_string**](SpellCheckApi.md#spell_check_check_sentence_string) | **POST** /nlp/spellcheck/check/sentence/string | Spell check a sentence
|
10
|
+
[**spell_check_correct**](SpellCheckApi.md#spell_check_correct) | **POST** /nlp/spellcheck/correct/word/string | Find spelling corrections
|
11
|
+
[**spell_check_correct_json**](SpellCheckApi.md#spell_check_correct_json) | **POST** /nlp/spellcheck/correct/word/json | Find spelling corrections
|
12
|
+
[**spell_check_post**](SpellCheckApi.md#spell_check_post) | **POST** /nlp/spellcheck/check/word/string | Spell check a word
|
13
|
+
|
14
|
+
|
15
|
+
# **spell_check_check_json**
|
16
|
+
> CheckJsonResponse spell_check_check_json(value)
|
17
|
+
|
18
|
+
Spell check word
|
19
|
+
|
20
|
+
Spell check a word as JSON
|
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::SpellCheckApi.new
|
35
|
+
|
36
|
+
value = "value_example" # String | Input sentence
|
37
|
+
|
38
|
+
|
39
|
+
begin
|
40
|
+
#Spell check word
|
41
|
+
result = api_instance.spell_check_check_json(value)
|
42
|
+
p result
|
43
|
+
rescue CloudmersiveNlpApiClient::ApiError => e
|
44
|
+
puts "Exception when calling SpellCheckApi->spell_check_check_json: #{e}"
|
45
|
+
end
|
46
|
+
```
|
47
|
+
|
48
|
+
### Parameters
|
49
|
+
|
50
|
+
Name | Type | Description | Notes
|
51
|
+
------------- | ------------- | ------------- | -------------
|
52
|
+
**value** | **String**| Input sentence |
|
53
|
+
|
54
|
+
### Return type
|
55
|
+
|
56
|
+
[**CheckJsonResponse**](CheckJsonResponse.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, text/json, application/xml, text/xml
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
# **spell_check_check_sentence_json**
|
70
|
+
> CheckSentenceJsonResponse spell_check_check_sentence_json(value)
|
71
|
+
|
72
|
+
Check if sentence is spelled correctly
|
73
|
+
|
74
|
+
Checks whether the sentence is spelled correctly and returns the result as JSON
|
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::SpellCheckApi.new
|
89
|
+
|
90
|
+
value = "value_example" # String | Input sentence
|
91
|
+
|
92
|
+
|
93
|
+
begin
|
94
|
+
#Check if sentence is spelled correctly
|
95
|
+
result = api_instance.spell_check_check_sentence_json(value)
|
96
|
+
p result
|
97
|
+
rescue CloudmersiveNlpApiClient::ApiError => e
|
98
|
+
puts "Exception when calling SpellCheckApi->spell_check_check_sentence_json: #{e}"
|
99
|
+
end
|
100
|
+
```
|
101
|
+
|
102
|
+
### Parameters
|
103
|
+
|
104
|
+
Name | Type | Description | Notes
|
105
|
+
------------- | ------------- | ------------- | -------------
|
106
|
+
**value** | **String**| Input sentence |
|
107
|
+
|
108
|
+
### Return type
|
109
|
+
|
110
|
+
[**CheckSentenceJsonResponse**](CheckSentenceJsonResponse.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, text/json, application/xml, text/xml
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
# **spell_check_check_sentence_string**
|
124
|
+
> BOOLEAN spell_check_check_sentence_string(value)
|
125
|
+
|
126
|
+
Spell check a sentence
|
127
|
+
|
128
|
+
Check if a sentence is spelled correctly
|
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::SpellCheckApi.new
|
143
|
+
|
144
|
+
value = "value_example" # String | Input sentence word
|
145
|
+
|
146
|
+
|
147
|
+
begin
|
148
|
+
#Spell check a sentence
|
149
|
+
result = api_instance.spell_check_check_sentence_string(value)
|
150
|
+
p result
|
151
|
+
rescue CloudmersiveNlpApiClient::ApiError => e
|
152
|
+
puts "Exception when calling SpellCheckApi->spell_check_check_sentence_string: #{e}"
|
153
|
+
end
|
154
|
+
```
|
155
|
+
|
156
|
+
### Parameters
|
157
|
+
|
158
|
+
Name | Type | Description | Notes
|
159
|
+
------------- | ------------- | ------------- | -------------
|
160
|
+
**value** | **String**| Input sentence word |
|
161
|
+
|
162
|
+
### Return type
|
163
|
+
|
164
|
+
**BOOLEAN**
|
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, text/json, application/xml, text/xml
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
# **spell_check_correct**
|
178
|
+
> String spell_check_correct(value)
|
179
|
+
|
180
|
+
Find spelling corrections
|
181
|
+
|
182
|
+
Find the spelling corrections for a word
|
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::SpellCheckApi.new
|
197
|
+
|
198
|
+
value = "value_example" # String | Input word
|
199
|
+
|
200
|
+
|
201
|
+
begin
|
202
|
+
#Find spelling corrections
|
203
|
+
result = api_instance.spell_check_correct(value)
|
204
|
+
p result
|
205
|
+
rescue CloudmersiveNlpApiClient::ApiError => e
|
206
|
+
puts "Exception when calling SpellCheckApi->spell_check_correct: #{e}"
|
207
|
+
end
|
208
|
+
```
|
209
|
+
|
210
|
+
### Parameters
|
211
|
+
|
212
|
+
Name | Type | Description | Notes
|
213
|
+
------------- | ------------- | ------------- | -------------
|
214
|
+
**value** | **String**| Input word |
|
215
|
+
|
216
|
+
### Return type
|
217
|
+
|
218
|
+
**String**
|
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, text/json, application/xml, text/xml
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
# **spell_check_correct_json**
|
232
|
+
> CorrectJsonResponse spell_check_correct_json(value)
|
233
|
+
|
234
|
+
Find spelling corrections
|
235
|
+
|
236
|
+
Find spelling correction suggestions and return result as JSON
|
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::SpellCheckApi.new
|
251
|
+
|
252
|
+
value = "value_example" # String | Input string
|
253
|
+
|
254
|
+
|
255
|
+
begin
|
256
|
+
#Find spelling corrections
|
257
|
+
result = api_instance.spell_check_correct_json(value)
|
258
|
+
p result
|
259
|
+
rescue CloudmersiveNlpApiClient::ApiError => e
|
260
|
+
puts "Exception when calling SpellCheckApi->spell_check_correct_json: #{e}"
|
261
|
+
end
|
262
|
+
```
|
263
|
+
|
264
|
+
### Parameters
|
265
|
+
|
266
|
+
Name | Type | Description | Notes
|
267
|
+
------------- | ------------- | ------------- | -------------
|
268
|
+
**value** | **String**| Input string |
|
269
|
+
|
270
|
+
### Return type
|
271
|
+
|
272
|
+
[**CorrectJsonResponse**](CorrectJsonResponse.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, text/json, application/xml, text/xml
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
# **spell_check_post**
|
286
|
+
> BOOLEAN spell_check_post(value)
|
287
|
+
|
288
|
+
Spell check a word
|
289
|
+
|
290
|
+
Check if a word is spelled correctly
|
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::SpellCheckApi.new
|
305
|
+
|
306
|
+
value = "value_example" # String | Input string word
|
307
|
+
|
308
|
+
|
309
|
+
begin
|
310
|
+
#Spell check a word
|
311
|
+
result = api_instance.spell_check_post(value)
|
312
|
+
p result
|
313
|
+
rescue CloudmersiveNlpApiClient::ApiError => e
|
314
|
+
puts "Exception when calling SpellCheckApi->spell_check_post: #{e}"
|
315
|
+
end
|
316
|
+
```
|
317
|
+
|
318
|
+
### Parameters
|
319
|
+
|
320
|
+
Name | Type | Description | Notes
|
321
|
+
------------- | ------------- | ------------- | -------------
|
322
|
+
**value** | **String**| Input string word |
|
323
|
+
|
324
|
+
### Return type
|
325
|
+
|
326
|
+
**BOOLEAN**
|
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, text/json, application/xml, text/xml
|
336
|
+
|
337
|
+
|
338
|
+
|