cloudmersive-nlp-api-client 2.0.6 → 3.0.2

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 (135) hide show
  1. checksums.yaml +4 -4
  2. metadata +3 -136
  3. data/Gemfile +0 -7
  4. data/README.md +0 -151
  5. data/Rakefile +0 -8
  6. data/cloudmersive-nlp-api-client.gemspec +0 -45
  7. data/docs/AnalyticsApi.md +0 -118
  8. data/docs/CheckSentenceRequest.md +0 -8
  9. data/docs/CheckSentenceResponse.md +0 -9
  10. data/docs/CheckWordRequest.md +0 -8
  11. data/docs/CheckWordResponse.md +0 -9
  12. data/docs/CorrectWordInSentence.md +0 -10
  13. data/docs/Entity.md +0 -9
  14. data/docs/ExtractEntitiesApi.md +0 -63
  15. data/docs/ExtractEntitiesRequest.md +0 -8
  16. data/docs/ExtractEntitiesResponse.md +0 -9
  17. data/docs/GetWordsRequest.md +0 -8
  18. data/docs/GetWordsResponse.md +0 -8
  19. data/docs/LanguageDetectionApi.md +0 -63
  20. data/docs/LanguageDetectionRequest.md +0 -8
  21. data/docs/LanguageDetectionResponse.md +0 -10
  22. data/docs/LanguageTranslationApi.md +0 -228
  23. data/docs/LanguageTranslationRequest.md +0 -8
  24. data/docs/LanguageTranslationResponse.md +0 -10
  25. data/docs/ParseApi.md +0 -63
  26. data/docs/ParseRequest.md +0 -8
  27. data/docs/ParseResponse.md +0 -8
  28. data/docs/PosRequest.md +0 -8
  29. data/docs/PosResponse.md +0 -8
  30. data/docs/PosSentence.md +0 -8
  31. data/docs/PosTaggedWord.md +0 -9
  32. data/docs/PosTaggerApi.md +0 -338
  33. data/docs/ProfanityAnalysisRequest.md +0 -8
  34. data/docs/ProfanityAnalysisResponse.md +0 -10
  35. data/docs/RephraseApi.md +0 -63
  36. data/docs/RephraseRequest.md +0 -9
  37. data/docs/RephraseResponse.md +0 -10
  38. data/docs/RephrasedSentence.md +0 -10
  39. data/docs/RephrasedSentenceOption.md +0 -9
  40. data/docs/SegmentationApi.md +0 -118
  41. data/docs/SentenceSegmentationRequest.md +0 -8
  42. data/docs/SentenceSegmentationResponse.md +0 -10
  43. data/docs/SentimentAnalysisRequest.md +0 -8
  44. data/docs/SentimentAnalysisResponse.md +0 -11
  45. data/docs/SpellcheckApi.md +0 -118
  46. data/docs/WordPosition.md +0 -11
  47. data/git_push.sh +0 -55
  48. data/lib/cloudmersive-nlp-api-client.rb +0 -79
  49. data/lib/cloudmersive-nlp-api-client/api/analytics_api.rb +0 -133
  50. data/lib/cloudmersive-nlp-api-client/api/extract_entities_api.rb +0 -78
  51. data/lib/cloudmersive-nlp-api-client/api/language_detection_api.rb +0 -78
  52. data/lib/cloudmersive-nlp-api-client/api/language_translation_api.rb +0 -243
  53. data/lib/cloudmersive-nlp-api-client/api/parse_api.rb +0 -78
  54. data/lib/cloudmersive-nlp-api-client/api/pos_tagger_api.rb +0 -353
  55. data/lib/cloudmersive-nlp-api-client/api/rephrase_api.rb +0 -78
  56. data/lib/cloudmersive-nlp-api-client/api/segmentation_api.rb +0 -133
  57. data/lib/cloudmersive-nlp-api-client/api/spellcheck_api.rb +0 -133
  58. data/lib/cloudmersive-nlp-api-client/api_client.rb +0 -389
  59. data/lib/cloudmersive-nlp-api-client/api_error.rb +0 -38
  60. data/lib/cloudmersive-nlp-api-client/configuration.rb +0 -209
  61. data/lib/cloudmersive-nlp-api-client/models/check_sentence_request.rb +0 -189
  62. data/lib/cloudmersive-nlp-api-client/models/check_sentence_response.rb +0 -201
  63. data/lib/cloudmersive-nlp-api-client/models/check_word_request.rb +0 -188
  64. data/lib/cloudmersive-nlp-api-client/models/check_word_response.rb +0 -201
  65. data/lib/cloudmersive-nlp-api-client/models/correct_word_in_sentence.rb +0 -211
  66. data/lib/cloudmersive-nlp-api-client/models/entity.rb +0 -197
  67. data/lib/cloudmersive-nlp-api-client/models/extract_entities_request.rb +0 -189
  68. data/lib/cloudmersive-nlp-api-client/models/extract_entities_response.rb +0 -200
  69. data/lib/cloudmersive-nlp-api-client/models/get_words_request.rb +0 -188
  70. data/lib/cloudmersive-nlp-api-client/models/get_words_response.rb +0 -191
  71. data/lib/cloudmersive-nlp-api-client/models/language_detection_request.rb +0 -189
  72. data/lib/cloudmersive-nlp-api-client/models/language_detection_response.rb +0 -209
  73. data/lib/cloudmersive-nlp-api-client/models/language_translation_request.rb +0 -189
  74. data/lib/cloudmersive-nlp-api-client/models/language_translation_response.rb +0 -209
  75. data/lib/cloudmersive-nlp-api-client/models/parse_request.rb +0 -189
  76. data/lib/cloudmersive-nlp-api-client/models/parse_response.rb +0 -189
  77. data/lib/cloudmersive-nlp-api-client/models/pos_request.rb +0 -189
  78. data/lib/cloudmersive-nlp-api-client/models/pos_response.rb +0 -191
  79. data/lib/cloudmersive-nlp-api-client/models/pos_sentence.rb +0 -191
  80. data/lib/cloudmersive-nlp-api-client/models/pos_tagged_word.rb +0 -199
  81. data/lib/cloudmersive-nlp-api-client/models/profanity_analysis_request.rb +0 -189
  82. data/lib/cloudmersive-nlp-api-client/models/profanity_analysis_response.rb +0 -209
  83. data/lib/cloudmersive-nlp-api-client/models/rephrase_request.rb +0 -199
  84. data/lib/cloudmersive-nlp-api-client/models/rephrase_response.rb +0 -211
  85. data/lib/cloudmersive-nlp-api-client/models/rephrased_sentence.rb +0 -211
  86. data/lib/cloudmersive-nlp-api-client/models/rephrased_sentence_option.rb +0 -199
  87. data/lib/cloudmersive-nlp-api-client/models/sentence_segmentation_request.rb +0 -188
  88. data/lib/cloudmersive-nlp-api-client/models/sentence_segmentation_response.rb +0 -208
  89. data/lib/cloudmersive-nlp-api-client/models/sentiment_analysis_request.rb +0 -189
  90. data/lib/cloudmersive-nlp-api-client/models/sentiment_analysis_response.rb +0 -219
  91. data/lib/cloudmersive-nlp-api-client/models/word_position.rb +0 -219
  92. data/lib/cloudmersive-nlp-api-client/version.rb +0 -15
  93. data/spec/api/analytics_api_spec.rb +0 -59
  94. data/spec/api/extract_entities_api_spec.rb +0 -47
  95. data/spec/api/language_detection_api_spec.rb +0 -47
  96. data/spec/api/language_translation_api_spec.rb +0 -83
  97. data/spec/api/parse_api_spec.rb +0 -47
  98. data/spec/api/pos_tagger_api_spec.rb +0 -107
  99. data/spec/api/rephrase_api_spec.rb +0 -47
  100. data/spec/api/segmentation_api_spec.rb +0 -59
  101. data/spec/api/spellcheck_api_spec.rb +0 -59
  102. data/spec/api_client_spec.rb +0 -226
  103. data/spec/configuration_spec.rb +0 -42
  104. data/spec/models/check_sentence_request_spec.rb +0 -42
  105. data/spec/models/check_sentence_response_spec.rb +0 -48
  106. data/spec/models/check_word_request_spec.rb +0 -42
  107. data/spec/models/check_word_response_spec.rb +0 -48
  108. data/spec/models/correct_word_in_sentence_spec.rb +0 -54
  109. data/spec/models/entity_spec.rb +0 -48
  110. data/spec/models/extract_entities_request_spec.rb +0 -42
  111. data/spec/models/extract_entities_response_spec.rb +0 -48
  112. data/spec/models/get_words_request_spec.rb +0 -42
  113. data/spec/models/get_words_response_spec.rb +0 -42
  114. data/spec/models/language_detection_request_spec.rb +0 -42
  115. data/spec/models/language_detection_response_spec.rb +0 -54
  116. data/spec/models/language_translation_request_spec.rb +0 -42
  117. data/spec/models/language_translation_response_spec.rb +0 -54
  118. data/spec/models/parse_request_spec.rb +0 -42
  119. data/spec/models/parse_response_spec.rb +0 -42
  120. data/spec/models/pos_request_spec.rb +0 -42
  121. data/spec/models/pos_response_spec.rb +0 -42
  122. data/spec/models/pos_sentence_spec.rb +0 -42
  123. data/spec/models/pos_tagged_word_spec.rb +0 -48
  124. data/spec/models/profanity_analysis_request_spec.rb +0 -42
  125. data/spec/models/profanity_analysis_response_spec.rb +0 -54
  126. data/spec/models/rephrase_request_spec.rb +0 -48
  127. data/spec/models/rephrase_response_spec.rb +0 -54
  128. data/spec/models/rephrased_sentence_option_spec.rb +0 -48
  129. data/spec/models/rephrased_sentence_spec.rb +0 -54
  130. data/spec/models/sentence_segmentation_request_spec.rb +0 -42
  131. data/spec/models/sentence_segmentation_response_spec.rb +0 -54
  132. data/spec/models/sentiment_analysis_request_spec.rb +0 -42
  133. data/spec/models/sentiment_analysis_response_spec.rb +0 -60
  134. data/spec/models/word_position_spec.rb +0 -60
  135. data/spec/spec_helper.rb +0 -111
@@ -1,8 +0,0 @@
1
- # CloudmersiveNlpApiClient::LanguageTranslationRequest
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **text_to_translate** | **String** | Text to translate | [optional]
7
-
8
-
@@ -1,10 +0,0 @@
1
- # CloudmersiveNlpApiClient::LanguageTranslationResponse
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **successful** | **BOOLEAN** | True if the language detection operation was successful, false otherwise | [optional]
7
- **translated_text_result** | **String** | Translated text in target language | [optional]
8
- **sentence_count** | **Integer** | Number of sentences in input text | [optional]
9
-
10
-
@@ -1,63 +0,0 @@
1
- # CloudmersiveNlpApiClient::ParseApi
2
-
3
- All URIs are relative to *https://api.cloudmersive.com*
4
-
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**parse_parse_string**](ParseApi.md#parse_parse_string) | **POST** /nlp-v2/parse/tree | Parse string to syntax tree
8
-
9
-
10
- # **parse_parse_string**
11
- > ParseResponse parse_parse_string(input)
12
-
13
- Parse string to syntax tree
14
-
15
- Parses the input string into a Penn Treebank syntax tree
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::ParseApi.new
30
-
31
- input = CloudmersiveNlpApiClient::ParseRequest.new # ParseRequest | Input string
32
-
33
-
34
- begin
35
- #Parse string to syntax tree
36
- result = api_instance.parse_parse_string(input)
37
- p result
38
- rescue CloudmersiveNlpApiClient::ApiError => e
39
- puts "Exception when calling ParseApi->parse_parse_string: #{e}"
40
- end
41
- ```
42
-
43
- ### Parameters
44
-
45
- Name | Type | Description | Notes
46
- ------------- | ------------- | ------------- | -------------
47
- **input** | [**ParseRequest**](ParseRequest.md)| Input string |
48
-
49
- ### Return type
50
-
51
- [**ParseResponse**](ParseResponse.md)
52
-
53
- ### Authorization
54
-
55
- [Apikey](../README.md#Apikey)
56
-
57
- ### HTTP request headers
58
-
59
- - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
60
- - **Accept**: application/json, text/json, application/xml, text/xml
61
-
62
-
63
-
@@ -1,8 +0,0 @@
1
- # CloudmersiveNlpApiClient::ParseRequest
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **input_string** | **String** | Input string to linguistically parse | [optional]
7
-
8
-
@@ -1,8 +0,0 @@
1
- # CloudmersiveNlpApiClient::ParseResponse
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **parse_tree** | **String** | Parse tree in Penn Treebank syntax tree format | [optional]
7
-
8
-
@@ -1,8 +0,0 @@
1
- # CloudmersiveNlpApiClient::PosRequest
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **input_text** | **String** | Input text string | [optional]
7
-
8
-
@@ -1,8 +0,0 @@
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
-
@@ -1,8 +0,0 @@
1
- # CloudmersiveNlpApiClient::PosSentence
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **words** | [**Array<PosTaggedWord>**](PosTaggedWord.md) | Words in the sentence | [optional]
7
-
8
-
@@ -1,9 +0,0 @@
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
-
@@ -1,338 +0,0 @@
1
- # CloudmersiveNlpApiClient::PosTaggerApi
2
-
3
- All URIs are relative to *https://api.cloudmersive.com*
4
-
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**pos_tagger_tag_adjectives**](PosTaggerApi.md#pos_tagger_tag_adjectives) | **POST** /nlp-v2/pos/tag/adjectives | Part-of-speech tag a string, filter to adjectives
8
- [**pos_tagger_tag_adverbs**](PosTaggerApi.md#pos_tagger_tag_adverbs) | **POST** /nlp-v2/pos/tag/adverbs | Part-of-speech tag a string, filter to adverbs
9
- [**pos_tagger_tag_nouns**](PosTaggerApi.md#pos_tagger_tag_nouns) | **POST** /nlp-v2/pos/tag/nouns | Part-of-speech tag a string, filter to nouns
10
- [**pos_tagger_tag_pronouns**](PosTaggerApi.md#pos_tagger_tag_pronouns) | **POST** /nlp-v2/pos/tag/pronouns | Part-of-speech tag a string, filter to pronouns
11
- [**pos_tagger_tag_sentence**](PosTaggerApi.md#pos_tagger_tag_sentence) | **POST** /nlp-v2/pos/tag/sentence | Part-of-speech tag a string
12
- [**pos_tagger_tag_verbs**](PosTaggerApi.md#pos_tagger_tag_verbs) | **POST** /nlp-v2/pos/tag/verbs | Part-of-speech tag a string, filter to verbs
13
-
14
-
15
- # **pos_tagger_tag_adjectives**
16
- > PosResponse pos_tagger_tag_adjectives(request)
17
-
18
- Part-of-speech tag a string, filter to adjectives
19
-
20
- Part-of-speech (POS) tag a string, find the adjectives, and return result 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::PosTaggerApi.new
35
-
36
- request = CloudmersiveNlpApiClient::PosRequest.new # PosRequest | Input string
37
-
38
-
39
- begin
40
- #Part-of-speech tag a string, filter to adjectives
41
- result = api_instance.pos_tagger_tag_adjectives(request)
42
- p result
43
- rescue CloudmersiveNlpApiClient::ApiError => e
44
- puts "Exception when calling PosTaggerApi->pos_tagger_tag_adjectives: #{e}"
45
- end
46
- ```
47
-
48
- ### Parameters
49
-
50
- Name | Type | Description | Notes
51
- ------------- | ------------- | ------------- | -------------
52
- **request** | [**PosRequest**](PosRequest.md)| Input string |
53
-
54
- ### Return type
55
-
56
- [**PosResponse**](PosResponse.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
- # **pos_tagger_tag_adverbs**
70
- > PosResponse pos_tagger_tag_adverbs(request)
71
-
72
- Part-of-speech tag a string, filter to adverbs
73
-
74
- Part-of-speech (POS) tag a string, find the adverbs, and return 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::PosTaggerApi.new
89
-
90
- request = CloudmersiveNlpApiClient::PosRequest.new # PosRequest | Input string
91
-
92
-
93
- begin
94
- #Part-of-speech tag a string, filter to adverbs
95
- result = api_instance.pos_tagger_tag_adverbs(request)
96
- p result
97
- rescue CloudmersiveNlpApiClient::ApiError => e
98
- puts "Exception when calling PosTaggerApi->pos_tagger_tag_adverbs: #{e}"
99
- end
100
- ```
101
-
102
- ### Parameters
103
-
104
- Name | Type | Description | Notes
105
- ------------- | ------------- | ------------- | -------------
106
- **request** | [**PosRequest**](PosRequest.md)| Input string |
107
-
108
- ### Return type
109
-
110
- [**PosResponse**](PosResponse.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
- # **pos_tagger_tag_nouns**
124
- > PosResponse pos_tagger_tag_nouns(request)
125
-
126
- Part-of-speech tag a string, filter to nouns
127
-
128
- Part-of-speech (POS) tag a string, find the nouns, and return result as JSON
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::PosTaggerApi.new
143
-
144
- request = CloudmersiveNlpApiClient::PosRequest.new # PosRequest | Input string
145
-
146
-
147
- begin
148
- #Part-of-speech tag a string, filter to nouns
149
- result = api_instance.pos_tagger_tag_nouns(request)
150
- p result
151
- rescue CloudmersiveNlpApiClient::ApiError => e
152
- puts "Exception when calling PosTaggerApi->pos_tagger_tag_nouns: #{e}"
153
- end
154
- ```
155
-
156
- ### Parameters
157
-
158
- Name | Type | Description | Notes
159
- ------------- | ------------- | ------------- | -------------
160
- **request** | [**PosRequest**](PosRequest.md)| Input string |
161
-
162
- ### Return type
163
-
164
- [**PosResponse**](PosResponse.md)
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
- # **pos_tagger_tag_pronouns**
178
- > PosResponse pos_tagger_tag_pronouns(request)
179
-
180
- Part-of-speech tag a string, filter to pronouns
181
-
182
- Part-of-speech (POS) tag a string, find the pronouns, and return result as JSON
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::PosTaggerApi.new
197
-
198
- request = CloudmersiveNlpApiClient::PosRequest.new # PosRequest | Input string
199
-
200
-
201
- begin
202
- #Part-of-speech tag a string, filter to pronouns
203
- result = api_instance.pos_tagger_tag_pronouns(request)
204
- p result
205
- rescue CloudmersiveNlpApiClient::ApiError => e
206
- puts "Exception when calling PosTaggerApi->pos_tagger_tag_pronouns: #{e}"
207
- end
208
- ```
209
-
210
- ### Parameters
211
-
212
- Name | Type | Description | Notes
213
- ------------- | ------------- | ------------- | -------------
214
- **request** | [**PosRequest**](PosRequest.md)| Input string |
215
-
216
- ### Return type
217
-
218
- [**PosResponse**](PosResponse.md)
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
- # **pos_tagger_tag_sentence**
232
- > PosResponse pos_tagger_tag_sentence(request)
233
-
234
- Part-of-speech tag a string
235
-
236
- Part-of-speech (POS) tag a string 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::PosTaggerApi.new
251
-
252
- request = CloudmersiveNlpApiClient::PosRequest.new # PosRequest | Input string
253
-
254
-
255
- begin
256
- #Part-of-speech tag a string
257
- result = api_instance.pos_tagger_tag_sentence(request)
258
- p result
259
- rescue CloudmersiveNlpApiClient::ApiError => e
260
- puts "Exception when calling PosTaggerApi->pos_tagger_tag_sentence: #{e}"
261
- end
262
- ```
263
-
264
- ### Parameters
265
-
266
- Name | Type | Description | Notes
267
- ------------- | ------------- | ------------- | -------------
268
- **request** | [**PosRequest**](PosRequest.md)| Input string |
269
-
270
- ### Return type
271
-
272
- [**PosResponse**](PosResponse.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
- # **pos_tagger_tag_verbs**
286
- > PosResponse pos_tagger_tag_verbs(request)
287
-
288
- Part-of-speech tag a string, filter to verbs
289
-
290
- Part-of-speech (POS) tag a string, find the verbs, and return result as JSON
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::PosTaggerApi.new
305
-
306
- request = CloudmersiveNlpApiClient::PosRequest.new # PosRequest | Input string
307
-
308
-
309
- begin
310
- #Part-of-speech tag a string, filter to verbs
311
- result = api_instance.pos_tagger_tag_verbs(request)
312
- p result
313
- rescue CloudmersiveNlpApiClient::ApiError => e
314
- puts "Exception when calling PosTaggerApi->pos_tagger_tag_verbs: #{e}"
315
- end
316
- ```
317
-
318
- ### Parameters
319
-
320
- Name | Type | Description | Notes
321
- ------------- | ------------- | ------------- | -------------
322
- **request** | [**PosRequest**](PosRequest.md)| Input string |
323
-
324
- ### Return type
325
-
326
- [**PosResponse**](PosResponse.md)
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
-