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.
Files changed (72) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +131 -0
  4. data/Rakefile +8 -0
  5. data/cloudmersive-nlp-api-client.gemspec +45 -0
  6. data/docs/CheckJsonResponse.md +8 -0
  7. data/docs/CheckSentenceJsonResponse.md +9 -0
  8. data/docs/CorrectJsonResponse.md +9 -0
  9. data/docs/CorrectWordInSentenceJsonResponse.md +10 -0
  10. data/docs/ExtractEntitiesStringApi.md +63 -0
  11. data/docs/GetWordsJsonResponse.md +8 -0
  12. data/docs/LanguageDetectionApi.md +63 -0
  13. data/docs/LanguageDetectionResponse.md +10 -0
  14. data/docs/ParseStringApi.md +63 -0
  15. data/docs/PosRequest.md +8 -0
  16. data/docs/PosResponse.md +8 -0
  17. data/docs/PosSentence.md +8 -0
  18. data/docs/PosTaggedWord.md +9 -0
  19. data/docs/PosTaggerJsonApi.md +63 -0
  20. data/docs/PosTaggerStringApi.md +63 -0
  21. data/docs/SentencesApi.md +63 -0
  22. data/docs/SpellCheckApi.md +338 -0
  23. data/docs/WordPosition.md +11 -0
  24. data/docs/WordsApi.md +448 -0
  25. data/git_push.sh +55 -0
  26. data/lib/cloudmersive-nlp-api-client.rb +58 -0
  27. data/lib/cloudmersive-nlp-api-client/api/extract_entities_string_api.rb +78 -0
  28. data/lib/cloudmersive-nlp-api-client/api/language_detection_api.rb +78 -0
  29. data/lib/cloudmersive-nlp-api-client/api/parse_string_api.rb +78 -0
  30. data/lib/cloudmersive-nlp-api-client/api/pos_tagger_json_api.rb +78 -0
  31. data/lib/cloudmersive-nlp-api-client/api/pos_tagger_string_api.rb +78 -0
  32. data/lib/cloudmersive-nlp-api-client/api/sentences_api.rb +78 -0
  33. data/lib/cloudmersive-nlp-api-client/api/spell_check_api.rb +353 -0
  34. data/lib/cloudmersive-nlp-api-client/api/words_api.rb +463 -0
  35. data/lib/cloudmersive-nlp-api-client/api_client.rb +389 -0
  36. data/lib/cloudmersive-nlp-api-client/api_error.rb +38 -0
  37. data/lib/cloudmersive-nlp-api-client/configuration.rb +209 -0
  38. data/lib/cloudmersive-nlp-api-client/models/check_json_response.rb +189 -0
  39. data/lib/cloudmersive-nlp-api-client/models/check_sentence_json_response.rb +201 -0
  40. data/lib/cloudmersive-nlp-api-client/models/correct_json_response.rb +201 -0
  41. data/lib/cloudmersive-nlp-api-client/models/correct_word_in_sentence_json_response.rb +211 -0
  42. data/lib/cloudmersive-nlp-api-client/models/get_words_json_response.rb +191 -0
  43. data/lib/cloudmersive-nlp-api-client/models/language_detection_response.rb +209 -0
  44. data/lib/cloudmersive-nlp-api-client/models/pos_request.rb +189 -0
  45. data/lib/cloudmersive-nlp-api-client/models/pos_response.rb +191 -0
  46. data/lib/cloudmersive-nlp-api-client/models/pos_sentence.rb +191 -0
  47. data/lib/cloudmersive-nlp-api-client/models/pos_tagged_word.rb +199 -0
  48. data/lib/cloudmersive-nlp-api-client/models/word_position.rb +219 -0
  49. data/lib/cloudmersive-nlp-api-client/version.rb +15 -0
  50. data/spec/api/extract_entities_string_api_spec.rb +47 -0
  51. data/spec/api/language_detection_api_spec.rb +47 -0
  52. data/spec/api/parse_string_api_spec.rb +47 -0
  53. data/spec/api/pos_tagger_json_api_spec.rb +47 -0
  54. data/spec/api/pos_tagger_string_api_spec.rb +47 -0
  55. data/spec/api/sentences_api_spec.rb +47 -0
  56. data/spec/api/spell_check_api_spec.rb +107 -0
  57. data/spec/api/words_api_spec.rb +131 -0
  58. data/spec/api_client_spec.rb +226 -0
  59. data/spec/configuration_spec.rb +42 -0
  60. data/spec/models/check_json_response_spec.rb +42 -0
  61. data/spec/models/check_sentence_json_response_spec.rb +48 -0
  62. data/spec/models/correct_json_response_spec.rb +48 -0
  63. data/spec/models/correct_word_in_sentence_json_response_spec.rb +54 -0
  64. data/spec/models/get_words_json_response_spec.rb +42 -0
  65. data/spec/models/language_detection_response_spec.rb +54 -0
  66. data/spec/models/pos_request_spec.rb +42 -0
  67. data/spec/models/pos_response_spec.rb +42 -0
  68. data/spec/models/pos_sentence_spec.rb +42 -0
  69. data/spec/models/pos_tagged_word_spec.rb +48 -0
  70. data/spec/models/word_position_spec.rb +60 -0
  71. data/spec/spec_helper.rb +111 -0
  72. metadata +296 -0
@@ -0,0 +1,11 @@
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
+
@@ -0,0 +1,448 @@
1
+ # CloudmersiveNlpApiClient::WordsApi
2
+
3
+ All URIs are relative to *https://api.cloudmersive.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**words_adjectives**](WordsApi.md#words_adjectives) | **POST** /nlp/get/words/adjectives/string | Get adjectives in string
8
+ [**words_adverbs**](WordsApi.md#words_adverbs) | **POST** /nlp/get/words/adverbs/string | Get adverbs in input string
9
+ [**words_get_words_json**](WordsApi.md#words_get_words_json) | **POST** /nlp/get/words/json | Get words in input string (JSON)
10
+ [**words_get_words_string**](WordsApi.md#words_get_words_string) | **POST** /nlp/get/words/string | Get words from string
11
+ [**words_nouns**](WordsApi.md#words_nouns) | **POST** /nlp/get/words/nouns/string | Get nouns in string
12
+ [**words_post**](WordsApi.md#words_post) | **POST** /nlp/get/words/verbs/string | Get the verbs in a string
13
+ [**words_pronouns**](WordsApi.md#words_pronouns) | **POST** /nlp/get/words/pronouns/string | Returns all pronounts in string
14
+ [**words_proper_nouns**](WordsApi.md#words_proper_nouns) | **POST** /nlp/get/words/properNouns/string | Get proper nouns in a string
15
+
16
+
17
+ # **words_adjectives**
18
+ > String words_adjectives(input)
19
+
20
+ Get adjectives in string
21
+
22
+ Retrieves all adjectives in input string
23
+
24
+ ### Example
25
+ ```ruby
26
+ # load the gem
27
+ require 'cloudmersive-nlp-api-client'
28
+ # setup authorization
29
+ CloudmersiveNlpApiClient.configure do |config|
30
+ # Configure API key authorization: Apikey
31
+ config.api_key['Apikey'] = 'YOUR API KEY'
32
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
33
+ #config.api_key_prefix['Apikey'] = 'Bearer'
34
+ end
35
+
36
+ api_instance = CloudmersiveNlpApiClient::WordsApi.new
37
+
38
+ input = "input_example" # String | Input string
39
+
40
+
41
+ begin
42
+ #Get adjectives in string
43
+ result = api_instance.words_adjectives(input)
44
+ p result
45
+ rescue CloudmersiveNlpApiClient::ApiError => e
46
+ puts "Exception when calling WordsApi->words_adjectives: #{e}"
47
+ end
48
+ ```
49
+
50
+ ### Parameters
51
+
52
+ Name | Type | Description | Notes
53
+ ------------- | ------------- | ------------- | -------------
54
+ **input** | **String**| Input string |
55
+
56
+ ### Return type
57
+
58
+ **String**
59
+
60
+ ### Authorization
61
+
62
+ [Apikey](../README.md#Apikey)
63
+
64
+ ### HTTP request headers
65
+
66
+ - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
67
+ - **Accept**: application/json, text/json, application/xml, text/xml
68
+
69
+
70
+
71
+ # **words_adverbs**
72
+ > String words_adverbs(input)
73
+
74
+ Get adverbs in input string
75
+
76
+ Returns all adverb words in the input string
77
+
78
+ ### Example
79
+ ```ruby
80
+ # load the gem
81
+ require 'cloudmersive-nlp-api-client'
82
+ # setup authorization
83
+ CloudmersiveNlpApiClient.configure do |config|
84
+ # Configure API key authorization: Apikey
85
+ config.api_key['Apikey'] = 'YOUR API KEY'
86
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
87
+ #config.api_key_prefix['Apikey'] = 'Bearer'
88
+ end
89
+
90
+ api_instance = CloudmersiveNlpApiClient::WordsApi.new
91
+
92
+ input = "input_example" # String | Input string
93
+
94
+
95
+ begin
96
+ #Get adverbs in input string
97
+ result = api_instance.words_adverbs(input)
98
+ p result
99
+ rescue CloudmersiveNlpApiClient::ApiError => e
100
+ puts "Exception when calling WordsApi->words_adverbs: #{e}"
101
+ end
102
+ ```
103
+
104
+ ### Parameters
105
+
106
+ Name | Type | Description | Notes
107
+ ------------- | ------------- | ------------- | -------------
108
+ **input** | **String**| Input string |
109
+
110
+ ### Return type
111
+
112
+ **String**
113
+
114
+ ### Authorization
115
+
116
+ [Apikey](../README.md#Apikey)
117
+
118
+ ### HTTP request headers
119
+
120
+ - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
121
+ - **Accept**: application/json, text/json, application/xml, text/xml
122
+
123
+
124
+
125
+ # **words_get_words_json**
126
+ > GetWordsJsonResponse words_get_words_json(input)
127
+
128
+ Get words in input string (JSON)
129
+
130
+ Get the component words in an input string, formatted as JSON
131
+
132
+ ### Example
133
+ ```ruby
134
+ # load the gem
135
+ require 'cloudmersive-nlp-api-client'
136
+ # setup authorization
137
+ CloudmersiveNlpApiClient.configure do |config|
138
+ # Configure API key authorization: Apikey
139
+ config.api_key['Apikey'] = 'YOUR API KEY'
140
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
141
+ #config.api_key_prefix['Apikey'] = 'Bearer'
142
+ end
143
+
144
+ api_instance = CloudmersiveNlpApiClient::WordsApi.new
145
+
146
+ input = "input_example" # String | String to process
147
+
148
+
149
+ begin
150
+ #Get words in input string (JSON)
151
+ result = api_instance.words_get_words_json(input)
152
+ p result
153
+ rescue CloudmersiveNlpApiClient::ApiError => e
154
+ puts "Exception when calling WordsApi->words_get_words_json: #{e}"
155
+ end
156
+ ```
157
+
158
+ ### Parameters
159
+
160
+ Name | Type | Description | Notes
161
+ ------------- | ------------- | ------------- | -------------
162
+ **input** | **String**| String to process |
163
+
164
+ ### Return type
165
+
166
+ [**GetWordsJsonResponse**](GetWordsJsonResponse.md)
167
+
168
+ ### Authorization
169
+
170
+ [Apikey](../README.md#Apikey)
171
+
172
+ ### HTTP request headers
173
+
174
+ - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
175
+ - **Accept**: application/json, text/json, application/xml, text/xml
176
+
177
+
178
+
179
+ # **words_get_words_string**
180
+ > String words_get_words_string(input)
181
+
182
+ Get words from string
183
+
184
+ Segment an input string into its component words
185
+
186
+ ### Example
187
+ ```ruby
188
+ # load the gem
189
+ require 'cloudmersive-nlp-api-client'
190
+ # setup authorization
191
+ CloudmersiveNlpApiClient.configure do |config|
192
+ # Configure API key authorization: Apikey
193
+ config.api_key['Apikey'] = 'YOUR API KEY'
194
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
195
+ #config.api_key_prefix['Apikey'] = 'Bearer'
196
+ end
197
+
198
+ api_instance = CloudmersiveNlpApiClient::WordsApi.new
199
+
200
+ input = "input_example" # String | Input string
201
+
202
+
203
+ begin
204
+ #Get words from string
205
+ result = api_instance.words_get_words_string(input)
206
+ p result
207
+ rescue CloudmersiveNlpApiClient::ApiError => e
208
+ puts "Exception when calling WordsApi->words_get_words_string: #{e}"
209
+ end
210
+ ```
211
+
212
+ ### Parameters
213
+
214
+ Name | Type | Description | Notes
215
+ ------------- | ------------- | ------------- | -------------
216
+ **input** | **String**| Input string |
217
+
218
+ ### Return type
219
+
220
+ **String**
221
+
222
+ ### Authorization
223
+
224
+ [Apikey](../README.md#Apikey)
225
+
226
+ ### HTTP request headers
227
+
228
+ - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
229
+ - **Accept**: application/json, text/json, application/xml, text/xml
230
+
231
+
232
+
233
+ # **words_nouns**
234
+ > String words_nouns(input)
235
+
236
+ Get nouns in string
237
+
238
+ Returns all of the nouns in the input string
239
+
240
+ ### Example
241
+ ```ruby
242
+ # load the gem
243
+ require 'cloudmersive-nlp-api-client'
244
+ # setup authorization
245
+ CloudmersiveNlpApiClient.configure do |config|
246
+ # Configure API key authorization: Apikey
247
+ config.api_key['Apikey'] = 'YOUR API KEY'
248
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
249
+ #config.api_key_prefix['Apikey'] = 'Bearer'
250
+ end
251
+
252
+ api_instance = CloudmersiveNlpApiClient::WordsApi.new
253
+
254
+ input = "input_example" # String | Input string
255
+
256
+
257
+ begin
258
+ #Get nouns in string
259
+ result = api_instance.words_nouns(input)
260
+ p result
261
+ rescue CloudmersiveNlpApiClient::ApiError => e
262
+ puts "Exception when calling WordsApi->words_nouns: #{e}"
263
+ end
264
+ ```
265
+
266
+ ### Parameters
267
+
268
+ Name | Type | Description | Notes
269
+ ------------- | ------------- | ------------- | -------------
270
+ **input** | **String**| Input string |
271
+
272
+ ### Return type
273
+
274
+ **String**
275
+
276
+ ### Authorization
277
+
278
+ [Apikey](../README.md#Apikey)
279
+
280
+ ### HTTP request headers
281
+
282
+ - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
283
+ - **Accept**: application/json, text/json, application/xml, text/xml
284
+
285
+
286
+
287
+ # **words_post**
288
+ > String words_post(input)
289
+
290
+ Get the verbs in a string
291
+
292
+ Get all of the verbs in the input string.
293
+
294
+ ### Example
295
+ ```ruby
296
+ # load the gem
297
+ require 'cloudmersive-nlp-api-client'
298
+ # setup authorization
299
+ CloudmersiveNlpApiClient.configure do |config|
300
+ # Configure API key authorization: Apikey
301
+ config.api_key['Apikey'] = 'YOUR API KEY'
302
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
303
+ #config.api_key_prefix['Apikey'] = 'Bearer'
304
+ end
305
+
306
+ api_instance = CloudmersiveNlpApiClient::WordsApi.new
307
+
308
+ input = "input_example" # String | Input string
309
+
310
+
311
+ begin
312
+ #Get the verbs in a string
313
+ result = api_instance.words_post(input)
314
+ p result
315
+ rescue CloudmersiveNlpApiClient::ApiError => e
316
+ puts "Exception when calling WordsApi->words_post: #{e}"
317
+ end
318
+ ```
319
+
320
+ ### Parameters
321
+
322
+ Name | Type | Description | Notes
323
+ ------------- | ------------- | ------------- | -------------
324
+ **input** | **String**| Input string |
325
+
326
+ ### Return type
327
+
328
+ **String**
329
+
330
+ ### Authorization
331
+
332
+ [Apikey](../README.md#Apikey)
333
+
334
+ ### HTTP request headers
335
+
336
+ - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
337
+ - **Accept**: application/json, text/json, application/xml, text/xml
338
+
339
+
340
+
341
+ # **words_pronouns**
342
+ > String words_pronouns(input)
343
+
344
+ Returns all pronounts in string
345
+
346
+ Returns all pronouns in the input string
347
+
348
+ ### Example
349
+ ```ruby
350
+ # load the gem
351
+ require 'cloudmersive-nlp-api-client'
352
+ # setup authorization
353
+ CloudmersiveNlpApiClient.configure do |config|
354
+ # Configure API key authorization: Apikey
355
+ config.api_key['Apikey'] = 'YOUR API KEY'
356
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
357
+ #config.api_key_prefix['Apikey'] = 'Bearer'
358
+ end
359
+
360
+ api_instance = CloudmersiveNlpApiClient::WordsApi.new
361
+
362
+ input = "input_example" # String | Input string
363
+
364
+
365
+ begin
366
+ #Returns all pronounts in string
367
+ result = api_instance.words_pronouns(input)
368
+ p result
369
+ rescue CloudmersiveNlpApiClient::ApiError => e
370
+ puts "Exception when calling WordsApi->words_pronouns: #{e}"
371
+ end
372
+ ```
373
+
374
+ ### Parameters
375
+
376
+ Name | Type | Description | Notes
377
+ ------------- | ------------- | ------------- | -------------
378
+ **input** | **String**| Input string |
379
+
380
+ ### Return type
381
+
382
+ **String**
383
+
384
+ ### Authorization
385
+
386
+ [Apikey](../README.md#Apikey)
387
+
388
+ ### HTTP request headers
389
+
390
+ - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
391
+ - **Accept**: application/json, text/json, application/xml, text/xml
392
+
393
+
394
+
395
+ # **words_proper_nouns**
396
+ > String words_proper_nouns(input)
397
+
398
+ Get proper nouns in a string
399
+
400
+ Returns all of the proper nouns in a string. Proper nouns are named entities such as \"Hilton\".
401
+
402
+ ### Example
403
+ ```ruby
404
+ # load the gem
405
+ require 'cloudmersive-nlp-api-client'
406
+ # setup authorization
407
+ CloudmersiveNlpApiClient.configure do |config|
408
+ # Configure API key authorization: Apikey
409
+ config.api_key['Apikey'] = 'YOUR API KEY'
410
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
411
+ #config.api_key_prefix['Apikey'] = 'Bearer'
412
+ end
413
+
414
+ api_instance = CloudmersiveNlpApiClient::WordsApi.new
415
+
416
+ input = "input_example" # String | Input string
417
+
418
+
419
+ begin
420
+ #Get proper nouns in a string
421
+ result = api_instance.words_proper_nouns(input)
422
+ p result
423
+ rescue CloudmersiveNlpApiClient::ApiError => e
424
+ puts "Exception when calling WordsApi->words_proper_nouns: #{e}"
425
+ end
426
+ ```
427
+
428
+ ### Parameters
429
+
430
+ Name | Type | Description | Notes
431
+ ------------- | ------------- | ------------- | -------------
432
+ **input** | **String**| Input string |
433
+
434
+ ### Return type
435
+
436
+ **String**
437
+
438
+ ### Authorization
439
+
440
+ [Apikey](../README.md#Apikey)
441
+
442
+ ### HTTP request headers
443
+
444
+ - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
445
+ - **Accept**: application/json, text/json, application/xml, text/xml
446
+
447
+
448
+