cloudmersive-nlp-api-client 3.0.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +7 -0
- data/README.md +162 -0
- data/Rakefile +8 -0
- data/cloudmersive-nlp-api-client.gemspec +45 -0
- data/docs/AnalyticsApi.md +283 -0
- data/docs/CheckSentenceRequest.md +8 -0
- data/docs/CheckSentenceResponse.md +9 -0
- data/docs/CheckWordRequest.md +8 -0
- data/docs/CheckWordResponse.md +9 -0
- data/docs/CorrectWordInSentence.md +10 -0
- data/docs/Entity.md +9 -0
- data/docs/ExtractEntitiesApi.md +63 -0
- data/docs/ExtractEntitiesRequest.md +8 -0
- data/docs/ExtractEntitiesResponse.md +9 -0
- data/docs/GetWordsRequest.md +8 -0
- data/docs/GetWordsResponse.md +8 -0
- data/docs/HateSpeechAnalysisRequest.md +8 -0
- data/docs/HateSpeechAnalysisResponse.md +10 -0
- data/docs/LanguageDetectionApi.md +63 -0
- data/docs/LanguageDetectionRequest.md +8 -0
- data/docs/LanguageDetectionResponse.md +10 -0
- data/docs/LanguageTranslationApi.md +338 -0
- data/docs/LanguageTranslationRequest.md +8 -0
- data/docs/LanguageTranslationResponse.md +10 -0
- data/docs/ParseApi.md +63 -0
- data/docs/ParseRequest.md +8 -0
- data/docs/ParseResponse.md +8 -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/PosTaggerApi.md +338 -0
- data/docs/ProfanityAnalysisRequest.md +8 -0
- data/docs/ProfanityAnalysisResponse.md +10 -0
- data/docs/RephraseApi.md +63 -0
- data/docs/RephraseRequest.md +9 -0
- data/docs/RephraseResponse.md +10 -0
- data/docs/RephrasedSentence.md +10 -0
- data/docs/RephrasedSentenceOption.md +9 -0
- data/docs/SegmentationApi.md +118 -0
- data/docs/SentenceSegmentationRequest.md +8 -0
- data/docs/SentenceSegmentationResponse.md +10 -0
- data/docs/SentimentAnalysisRequest.md +8 -0
- data/docs/SentimentAnalysisResponse.md +11 -0
- data/docs/SimilarityAnalysisRequest.md +9 -0
- data/docs/SimilarityAnalysisResponse.md +10 -0
- data/docs/SpellcheckApi.md +118 -0
- data/docs/SubjectivityAnalysisRequest.md +8 -0
- data/docs/SubjectivityAnalysisResponse.md +10 -0
- data/docs/WordPosition.md +11 -0
- data/git_push.sh +55 -0
- data/lib/cloudmersive-nlp-api-client.rb +85 -0
- data/lib/cloudmersive-nlp-api-client/api/analytics_api.rb +293 -0
- data/lib/cloudmersive-nlp-api-client/api/extract_entities_api.rb +77 -0
- data/lib/cloudmersive-nlp-api-client/api/language_detection_api.rb +77 -0
- data/lib/cloudmersive-nlp-api-client/api/language_translation_api.rb +347 -0
- data/lib/cloudmersive-nlp-api-client/api/parse_api.rb +77 -0
- data/lib/cloudmersive-nlp-api-client/api/pos_tagger_api.rb +347 -0
- data/lib/cloudmersive-nlp-api-client/api/rephrase_api.rb +77 -0
- data/lib/cloudmersive-nlp-api-client/api/segmentation_api.rb +131 -0
- data/lib/cloudmersive-nlp-api-client/api/spellcheck_api.rb +131 -0
- data/lib/cloudmersive-nlp-api-client/api_client.rb +391 -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_sentence_request.rb +186 -0
- data/lib/cloudmersive-nlp-api-client/models/check_sentence_response.rb +198 -0
- data/lib/cloudmersive-nlp-api-client/models/check_word_request.rb +184 -0
- data/lib/cloudmersive-nlp-api-client/models/check_word_response.rb +198 -0
- data/lib/cloudmersive-nlp-api-client/models/correct_word_in_sentence.rb +208 -0
- data/lib/cloudmersive-nlp-api-client/models/entity.rb +193 -0
- data/lib/cloudmersive-nlp-api-client/models/extract_entities_request.rb +186 -0
- data/lib/cloudmersive-nlp-api-client/models/extract_entities_response.rb +197 -0
- data/lib/cloudmersive-nlp-api-client/models/get_words_request.rb +184 -0
- data/lib/cloudmersive-nlp-api-client/models/get_words_response.rb +188 -0
- data/lib/cloudmersive-nlp-api-client/models/hate_speech_analysis_request.rb +186 -0
- data/lib/cloudmersive-nlp-api-client/models/hate_speech_analysis_response.rb +206 -0
- data/lib/cloudmersive-nlp-api-client/models/language_detection_request.rb +186 -0
- data/lib/cloudmersive-nlp-api-client/models/language_detection_response.rb +206 -0
- data/lib/cloudmersive-nlp-api-client/models/language_translation_request.rb +186 -0
- data/lib/cloudmersive-nlp-api-client/models/language_translation_response.rb +206 -0
- data/lib/cloudmersive-nlp-api-client/models/parse_request.rb +186 -0
- data/lib/cloudmersive-nlp-api-client/models/parse_response.rb +186 -0
- data/lib/cloudmersive-nlp-api-client/models/pos_request.rb +186 -0
- data/lib/cloudmersive-nlp-api-client/models/pos_response.rb +188 -0
- data/lib/cloudmersive-nlp-api-client/models/pos_sentence.rb +188 -0
- data/lib/cloudmersive-nlp-api-client/models/pos_tagged_word.rb +196 -0
- data/lib/cloudmersive-nlp-api-client/models/profanity_analysis_request.rb +186 -0
- data/lib/cloudmersive-nlp-api-client/models/profanity_analysis_response.rb +206 -0
- data/lib/cloudmersive-nlp-api-client/models/rephrase_request.rb +196 -0
- data/lib/cloudmersive-nlp-api-client/models/rephrase_response.rb +208 -0
- data/lib/cloudmersive-nlp-api-client/models/rephrased_sentence.rb +208 -0
- data/lib/cloudmersive-nlp-api-client/models/rephrased_sentence_option.rb +196 -0
- data/lib/cloudmersive-nlp-api-client/models/sentence_segmentation_request.rb +184 -0
- data/lib/cloudmersive-nlp-api-client/models/sentence_segmentation_response.rb +204 -0
- data/lib/cloudmersive-nlp-api-client/models/sentiment_analysis_request.rb +186 -0
- data/lib/cloudmersive-nlp-api-client/models/sentiment_analysis_response.rb +216 -0
- data/lib/cloudmersive-nlp-api-client/models/similarity_analysis_request.rb +196 -0
- data/lib/cloudmersive-nlp-api-client/models/similarity_analysis_response.rb +206 -0
- data/lib/cloudmersive-nlp-api-client/models/subjectivity_analysis_request.rb +186 -0
- data/lib/cloudmersive-nlp-api-client/models/subjectivity_analysis_response.rb +206 -0
- data/lib/cloudmersive-nlp-api-client/models/word_position.rb +215 -0
- data/lib/cloudmersive-nlp-api-client/version.rb +15 -0
- data/spec/api/analytics_api_spec.rb +95 -0
- data/spec/api/extract_entities_api_spec.rb +47 -0
- data/spec/api/language_detection_api_spec.rb +47 -0
- data/spec/api/language_translation_api_spec.rb +107 -0
- data/spec/api/parse_api_spec.rb +47 -0
- data/spec/api/pos_tagger_api_spec.rb +107 -0
- data/spec/api/rephrase_api_spec.rb +47 -0
- data/spec/api/segmentation_api_spec.rb +59 -0
- data/spec/api/spellcheck_api_spec.rb +59 -0
- data/spec/api_client_spec.rb +243 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/check_sentence_request_spec.rb +41 -0
- data/spec/models/check_sentence_response_spec.rb +47 -0
- data/spec/models/check_word_request_spec.rb +41 -0
- data/spec/models/check_word_response_spec.rb +47 -0
- data/spec/models/correct_word_in_sentence_spec.rb +53 -0
- data/spec/models/entity_spec.rb +47 -0
- data/spec/models/extract_entities_request_spec.rb +41 -0
- data/spec/models/extract_entities_response_spec.rb +47 -0
- data/spec/models/get_words_request_spec.rb +41 -0
- data/spec/models/get_words_response_spec.rb +41 -0
- data/spec/models/hate_speech_analysis_request_spec.rb +41 -0
- data/spec/models/hate_speech_analysis_response_spec.rb +53 -0
- data/spec/models/language_detection_request_spec.rb +41 -0
- data/spec/models/language_detection_response_spec.rb +53 -0
- data/spec/models/language_translation_request_spec.rb +41 -0
- data/spec/models/language_translation_response_spec.rb +53 -0
- data/spec/models/parse_request_spec.rb +41 -0
- data/spec/models/parse_response_spec.rb +41 -0
- data/spec/models/pos_request_spec.rb +41 -0
- data/spec/models/pos_response_spec.rb +41 -0
- data/spec/models/pos_sentence_spec.rb +41 -0
- data/spec/models/pos_tagged_word_spec.rb +47 -0
- data/spec/models/profanity_analysis_request_spec.rb +41 -0
- data/spec/models/profanity_analysis_response_spec.rb +53 -0
- data/spec/models/rephrase_request_spec.rb +47 -0
- data/spec/models/rephrase_response_spec.rb +53 -0
- data/spec/models/rephrased_sentence_option_spec.rb +47 -0
- data/spec/models/rephrased_sentence_spec.rb +53 -0
- data/spec/models/sentence_segmentation_request_spec.rb +41 -0
- data/spec/models/sentence_segmentation_response_spec.rb +53 -0
- data/spec/models/sentiment_analysis_request_spec.rb +41 -0
- data/spec/models/sentiment_analysis_response_spec.rb +59 -0
- data/spec/models/similarity_analysis_request_spec.rb +47 -0
- data/spec/models/similarity_analysis_response_spec.rb +53 -0
- data/spec/models/subjectivity_analysis_request_spec.rb +41 -0
- data/spec/models/subjectivity_analysis_response_spec.rb +53 -0
- data/spec/models/word_position_spec.rb +59 -0
- data/spec/spec_helper.rb +111 -0
- metadata +154 -3
@@ -0,0 +1,10 @@
|
|
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
|
+
|
data/docs/ParseApi.md
ADDED
@@ -0,0 +1,63 @@
|
|
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
|
61
|
+
|
62
|
+
|
63
|
+
|
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,338 @@
|
|
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
|
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
|
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
|
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
|
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
|
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
|
336
|
+
|
337
|
+
|
338
|
+
|