cloudmersive-nlp-api-client 1.2.9 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +38 -35
- data/cloudmersive-nlp-api-client.gemspec +3 -3
- data/docs/CheckSentenceRequest.md +8 -0
- data/docs/CheckSentenceResponse.md +9 -0
- data/docs/CheckWordRequest.md +8 -0
- data/docs/{CorrectJsonResponse.md → CheckWordResponse.md} +1 -1
- data/docs/{CorrectWordInSentenceJsonResponse.md → CorrectWordInSentence.md} +1 -1
- data/docs/Entity.md +9 -0
- data/docs/{ExtractEntitiesStringApi.md → ExtractEntitiesApi.md} +10 -10
- data/docs/ExtractEntitiesRequest.md +8 -0
- data/docs/ExtractEntitiesResponse.md +9 -0
- data/docs/GetWordsRequest.md +8 -0
- data/docs/{GetWordsJsonResponse.md → GetWordsResponse.md} +1 -1
- data/docs/LanguageDetectionApi.md +7 -7
- data/docs/LanguageDetectionRequest.md +8 -0
- data/docs/{ParseStringApi.md → ParseApi.md} +10 -10
- data/docs/ParseRequest.md +8 -0
- data/docs/ParseResponse.md +8 -0
- data/docs/{SpellCheckApi.md → PosTaggerApi.md} +73 -73
- data/docs/SegmentationApi.md +118 -0
- data/docs/SentenceSegmentationRequest.md +8 -0
- data/docs/SentenceSegmentationResponse.md +10 -0
- data/docs/SpellcheckApi.md +118 -0
- data/lib/cloudmersive-nlp-api-client.rb +23 -15
- data/lib/cloudmersive-nlp-api-client/api/{extract_entities_string_api.rb → extract_entities_api.rb} +14 -14
- data/lib/cloudmersive-nlp-api-client/api/language_detection_api.rb +15 -15
- data/lib/cloudmersive-nlp-api-client/api/{parse_string_api.rb → parse_api.rb} +14 -14
- data/lib/cloudmersive-nlp-api-client/api/pos_tagger_api.rb +353 -0
- data/lib/cloudmersive-nlp-api-client/api/segmentation_api.rb +133 -0
- data/lib/cloudmersive-nlp-api-client/api/spellcheck_api.rb +133 -0
- data/lib/cloudmersive-nlp-api-client/api_client.rb +3 -3
- data/lib/cloudmersive-nlp-api-client/api_error.rb +3 -3
- data/lib/cloudmersive-nlp-api-client/configuration.rb +3 -3
- data/lib/cloudmersive-nlp-api-client/models/check_sentence_request.rb +189 -0
- data/lib/cloudmersive-nlp-api-client/models/{check_sentence_json_response.rb → check_sentence_response.rb} +5 -5
- data/lib/cloudmersive-nlp-api-client/models/{check_json_response.rb → check_word_request.rb} +12 -13
- data/lib/cloudmersive-nlp-api-client/models/{correct_json_response.rb → check_word_response.rb} +4 -4
- data/lib/cloudmersive-nlp-api-client/models/{correct_word_in_sentence_json_response.rb → correct_word_in_sentence.rb} +4 -4
- data/lib/cloudmersive-nlp-api-client/models/entity.rb +197 -0
- data/lib/cloudmersive-nlp-api-client/models/extract_entities_request.rb +189 -0
- data/lib/cloudmersive-nlp-api-client/models/extract_entities_response.rb +200 -0
- data/lib/cloudmersive-nlp-api-client/models/get_words_request.rb +188 -0
- data/lib/cloudmersive-nlp-api-client/models/{get_words_json_response.rb → get_words_response.rb} +4 -4
- data/lib/cloudmersive-nlp-api-client/models/language_detection_request.rb +189 -0
- data/lib/cloudmersive-nlp-api-client/models/language_detection_response.rb +3 -3
- data/lib/cloudmersive-nlp-api-client/models/parse_request.rb +189 -0
- data/lib/cloudmersive-nlp-api-client/models/parse_response.rb +189 -0
- data/lib/cloudmersive-nlp-api-client/models/pos_request.rb +3 -3
- data/lib/cloudmersive-nlp-api-client/models/pos_response.rb +3 -3
- data/lib/cloudmersive-nlp-api-client/models/pos_sentence.rb +3 -3
- data/lib/cloudmersive-nlp-api-client/models/pos_tagged_word.rb +3 -3
- data/lib/cloudmersive-nlp-api-client/models/sentence_segmentation_request.rb +188 -0
- data/lib/cloudmersive-nlp-api-client/models/sentence_segmentation_response.rb +208 -0
- data/lib/cloudmersive-nlp-api-client/models/word_position.rb +3 -3
- data/lib/cloudmersive-nlp-api-client/version.rb +4 -4
- data/spec/api/{extract_entities_string_api_spec.rb → extract_entities_api_spec.rb} +12 -12
- data/spec/api/language_detection_api_spec.rb +6 -6
- data/spec/api/{parse_string_api_spec.rb → parse_api_spec.rb} +12 -12
- data/spec/api/pos_tagger_api_spec.rb +107 -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 +3 -3
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/check_sentence_request_spec.rb +42 -0
- data/spec/models/{check_sentence_json_response_spec.rb → check_sentence_response_spec.rb} +9 -9
- data/spec/models/{check_json_response_spec.rb → check_word_request_spec.rb} +10 -10
- data/spec/models/{correct_json_response_spec.rb → check_word_response_spec.rb} +9 -9
- data/spec/models/{correct_word_in_sentence_json_response_spec.rb → correct_word_in_sentence_spec.rb} +9 -9
- data/spec/models/entity_spec.rb +48 -0
- data/spec/models/extract_entities_request_spec.rb +42 -0
- data/spec/models/extract_entities_response_spec.rb +48 -0
- data/spec/models/get_words_request_spec.rb +42 -0
- data/spec/models/{get_words_json_response_spec.rb → get_words_response_spec.rb} +9 -9
- data/spec/models/language_detection_request_spec.rb +42 -0
- data/spec/models/language_detection_response_spec.rb +3 -3
- data/spec/models/parse_request_spec.rb +42 -0
- data/spec/models/parse_response_spec.rb +42 -0
- data/spec/models/pos_request_spec.rb +3 -3
- data/spec/models/pos_response_spec.rb +3 -3
- data/spec/models/pos_sentence_spec.rb +3 -3
- data/spec/models/pos_tagged_word_spec.rb +3 -3
- data/spec/models/sentence_segmentation_request_spec.rb +42 -0
- data/spec/models/sentence_segmentation_response_spec.rb +54 -0
- data/spec/models/word_position_spec.rb +3 -3
- data/spec/spec_helper.rb +3 -3
- metadata +75 -52
- data/docs/CheckJsonResponse.md +0 -8
- data/docs/CheckSentenceJsonResponse.md +0 -9
- data/docs/PosTaggerJsonApi.md +0 -63
- data/docs/PosTaggerStringApi.md +0 -63
- data/docs/SentencesApi.md +0 -63
- data/docs/WordsApi.md +0 -448
- data/lib/cloudmersive-nlp-api-client/api/pos_tagger_json_api.rb +0 -78
- data/lib/cloudmersive-nlp-api-client/api/pos_tagger_string_api.rb +0 -78
- data/lib/cloudmersive-nlp-api-client/api/sentences_api.rb +0 -78
- data/lib/cloudmersive-nlp-api-client/api/spell_check_api.rb +0 -353
- data/lib/cloudmersive-nlp-api-client/api/words_api.rb +0 -463
- data/spec/api/pos_tagger_json_api_spec.rb +0 -47
- data/spec/api/pos_tagger_string_api_spec.rb +0 -47
- data/spec/api/sentences_api_spec.rb +0 -47
- data/spec/api/spell_check_api_spec.rb +0 -107
- data/spec/api/words_api_spec.rb +0 -131
data/docs/CheckJsonResponse.md
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
# CloudmersiveNlpApiClient::CheckSentenceJsonResponse
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**incorrect_count** | **Integer** | Number of incorrect words | [optional]
|
7
|
-
**words** | [**Array<CorrectWordInSentenceJsonResponse>**](CorrectWordInSentenceJsonResponse.md) | Words in the sentence, both correct and incorrect | [optional]
|
8
|
-
|
9
|
-
|
data/docs/PosTaggerJsonApi.md
DELETED
@@ -1,63 +0,0 @@
|
|
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
|
-
|
data/docs/PosTaggerStringApi.md
DELETED
@@ -1,63 +0,0 @@
|
|
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
|
-
|
data/docs/SentencesApi.md
DELETED
@@ -1,63 +0,0 @@
|
|
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
|
-
|
data/docs/WordsApi.md
DELETED
@@ -1,448 +0,0 @@
|
|
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
|
-
|