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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8733d957764127503df73ebaca98db7e08cedb04239f21c08aec7d24e5475a2f
|
4
|
+
data.tar.gz: 98238e045ce079d7e5a3e8ee9ad730a5d9a6b8f94a3c542e72bed91208c78cd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 608519777e670d79b69e13dc396ce396764beaf8fcd7fdc64b5263f9a4380259946961ba655d0b8962fcc63562b5385367103c0d2dc265a50f33ea353c60c90c
|
7
|
+
data.tar.gz: a34ab7c4d104335bed6dcfa4345a8b595f83fd0ef8cb03899c3b3a899d35751de0ce1fd162e5565481b0e2ea947cde90cb3529a61baf79dc49e9decbfc40fcf1
|
data/README.md
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# cloudmersive-nlp-api-client
|
2
2
|
|
3
|
-
CloudmersiveNlpApiClient - the Ruby gem for the
|
3
|
+
CloudmersiveNlpApiClient - the Ruby gem for the nlpapiv2
|
4
4
|
|
5
|
-
The powerful Natural Language Processing APIs let you perform part of speech tagging, entity identification, sentence parsing, and much more to help you understand the meaning of unstructured text.
|
5
|
+
The powerful Natural Language Processing APIs (v2) let you perform part of speech tagging, entity identification, sentence parsing, and much more to help you understand the meaning of unstructured text.
|
6
6
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: v1
|
10
|
-
- Package version:
|
10
|
+
- Package version: 2.0.1
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,15 +23,15 @@ gem build cloudmersive-nlp-api-client.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./cloudmersive-nlp-api-client-
|
26
|
+
gem install ./cloudmersive-nlp-api-client-2.0.1.gem
|
27
27
|
```
|
28
|
-
(for development, run `gem install --dev ./cloudmersive-nlp-api-client-
|
28
|
+
(for development, run `gem install --dev ./cloudmersive-nlp-api-client-2.0.1.gem` to install the development dependencies)
|
29
29
|
|
30
30
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
31
|
|
32
32
|
Finally add this to the Gemfile:
|
33
33
|
|
34
|
-
gem 'cloudmersive-nlp-api-client', '~>
|
34
|
+
gem 'cloudmersive-nlp-api-client', '~> 2.0.1'
|
35
35
|
|
36
36
|
### Install from Git
|
37
37
|
|
@@ -62,17 +62,17 @@ CloudmersiveNlpApiClient.configure do |config|
|
|
62
62
|
#config.api_key_prefix['Apikey'] = 'Bearer'
|
63
63
|
end
|
64
64
|
|
65
|
-
api_instance = CloudmersiveNlpApiClient::
|
65
|
+
api_instance = CloudmersiveNlpApiClient::ExtractEntitiesApi.new
|
66
66
|
|
67
|
-
value =
|
67
|
+
value = CloudmersiveNlpApiClient::ExtractEntitiesRequest.new # ExtractEntitiesRequest | Input string
|
68
68
|
|
69
69
|
|
70
70
|
begin
|
71
71
|
#Extract entities from string
|
72
|
-
result = api_instance.
|
72
|
+
result = api_instance.extract_entities_post(value)
|
73
73
|
p result
|
74
74
|
rescue CloudmersiveNlpApiClient::ApiError => e
|
75
|
-
puts "Exception when calling
|
75
|
+
puts "Exception when calling ExtractEntitiesApi->extract_entities_post: #{e}"
|
76
76
|
end
|
77
77
|
|
78
78
|
```
|
@@ -83,40 +83,43 @@ All URIs are relative to *https://api.cloudmersive.com*
|
|
83
83
|
|
84
84
|
Class | Method | HTTP request | Description
|
85
85
|
------------ | ------------- | ------------- | -------------
|
86
|
-
*CloudmersiveNlpApiClient::
|
87
|
-
*CloudmersiveNlpApiClient::LanguageDetectionApi* | [**
|
88
|
-
*CloudmersiveNlpApiClient::
|
89
|
-
*CloudmersiveNlpApiClient::
|
90
|
-
*CloudmersiveNlpApiClient::
|
91
|
-
*CloudmersiveNlpApiClient::
|
92
|
-
*CloudmersiveNlpApiClient::
|
93
|
-
*CloudmersiveNlpApiClient::
|
94
|
-
*CloudmersiveNlpApiClient::
|
95
|
-
*CloudmersiveNlpApiClient::
|
96
|
-
*CloudmersiveNlpApiClient::
|
97
|
-
*CloudmersiveNlpApiClient::
|
98
|
-
*CloudmersiveNlpApiClient::
|
99
|
-
*CloudmersiveNlpApiClient::WordsApi* | [**words_adverbs**](docs/WordsApi.md#words_adverbs) | **POST** /nlp/get/words/adverbs/string | Get adverbs in input string
|
100
|
-
*CloudmersiveNlpApiClient::WordsApi* | [**words_get_words_json**](docs/WordsApi.md#words_get_words_json) | **POST** /nlp/get/words/json | Get words in input string (JSON)
|
101
|
-
*CloudmersiveNlpApiClient::WordsApi* | [**words_get_words_string**](docs/WordsApi.md#words_get_words_string) | **POST** /nlp/get/words/string | Get words from string
|
102
|
-
*CloudmersiveNlpApiClient::WordsApi* | [**words_nouns**](docs/WordsApi.md#words_nouns) | **POST** /nlp/get/words/nouns/string | Get nouns in string
|
103
|
-
*CloudmersiveNlpApiClient::WordsApi* | [**words_post**](docs/WordsApi.md#words_post) | **POST** /nlp/get/words/verbs/string | Get the verbs in a string
|
104
|
-
*CloudmersiveNlpApiClient::WordsApi* | [**words_pronouns**](docs/WordsApi.md#words_pronouns) | **POST** /nlp/get/words/pronouns/string | Returns all pronounts in string
|
105
|
-
*CloudmersiveNlpApiClient::WordsApi* | [**words_proper_nouns**](docs/WordsApi.md#words_proper_nouns) | **POST** /nlp/get/words/properNouns/string | Get proper nouns in a string
|
86
|
+
*CloudmersiveNlpApiClient::ExtractEntitiesApi* | [**extract_entities_post**](docs/ExtractEntitiesApi.md#extract_entities_post) | **POST** /nlp-v2/extract-entities | Extract entities from string
|
87
|
+
*CloudmersiveNlpApiClient::LanguageDetectionApi* | [**language_detection_get_language**](docs/LanguageDetectionApi.md#language_detection_get_language) | **POST** /nlp-v2/language/detect | Detect language of text
|
88
|
+
*CloudmersiveNlpApiClient::ParseApi* | [**parse_parse_string**](docs/ParseApi.md#parse_parse_string) | **POST** /nlp/parse/tree | Parse string to syntax tree
|
89
|
+
*CloudmersiveNlpApiClient::PosTaggerApi* | [**pos_tagger_tag_adjectives**](docs/PosTaggerApi.md#pos_tagger_tag_adjectives) | **POST** /nlp-v2/pos/tag/adjectives | Part-of-speech tag a string, filter to adjectives
|
90
|
+
*CloudmersiveNlpApiClient::PosTaggerApi* | [**pos_tagger_tag_adverbs**](docs/PosTaggerApi.md#pos_tagger_tag_adverbs) | **POST** /nlp-v2/pos/tag/adverbs | Part-of-speech tag a string, filter to adverbs
|
91
|
+
*CloudmersiveNlpApiClient::PosTaggerApi* | [**pos_tagger_tag_nouns**](docs/PosTaggerApi.md#pos_tagger_tag_nouns) | **POST** /nlp-v2/pos/tag/nouns | Part-of-speech tag a string, filter to nouns
|
92
|
+
*CloudmersiveNlpApiClient::PosTaggerApi* | [**pos_tagger_tag_pronouns**](docs/PosTaggerApi.md#pos_tagger_tag_pronouns) | **POST** /nlp-v2/pos/tag/pronouns | Part-of-speech tag a string, filter to pronouns
|
93
|
+
*CloudmersiveNlpApiClient::PosTaggerApi* | [**pos_tagger_tag_sentence**](docs/PosTaggerApi.md#pos_tagger_tag_sentence) | **POST** /nlp-v2/pos/tag/sentence | Part-of-speech tag a string
|
94
|
+
*CloudmersiveNlpApiClient::PosTaggerApi* | [**pos_tagger_tag_verbs**](docs/PosTaggerApi.md#pos_tagger_tag_verbs) | **POST** /nlp-v2/pos/tag/verbs | Part-of-speech tag a string, filter to verbs
|
95
|
+
*CloudmersiveNlpApiClient::SegmentationApi* | [**segmentation_get_sentences**](docs/SegmentationApi.md#segmentation_get_sentences) | **POST** /nlp-v2/segmentation/sentences | Extract sentences from string
|
96
|
+
*CloudmersiveNlpApiClient::SegmentationApi* | [**segmentation_get_words**](docs/SegmentationApi.md#segmentation_get_words) | **POST** /nlp-v2/segmentation/words | Get words in input string
|
97
|
+
*CloudmersiveNlpApiClient::SpellcheckApi* | [**spellcheck_check_sentence**](docs/SpellcheckApi.md#spellcheck_check_sentence) | **POST** /nlp-v2/spellcheck/check/sentence | Check if sentence is spelled correctly
|
98
|
+
*CloudmersiveNlpApiClient::SpellcheckApi* | [**spellcheck_correct_json**](docs/SpellcheckApi.md#spellcheck_correct_json) | **POST** /nlp-v2/spellcheck/check/word | Find spelling corrections
|
106
99
|
|
107
100
|
|
108
101
|
## Documentation for Models
|
109
102
|
|
110
|
-
- [CloudmersiveNlpApiClient::
|
111
|
-
- [CloudmersiveNlpApiClient::
|
112
|
-
- [CloudmersiveNlpApiClient::
|
113
|
-
- [CloudmersiveNlpApiClient::
|
114
|
-
- [CloudmersiveNlpApiClient::
|
103
|
+
- [CloudmersiveNlpApiClient::CheckSentenceRequest](docs/CheckSentenceRequest.md)
|
104
|
+
- [CloudmersiveNlpApiClient::CheckSentenceResponse](docs/CheckSentenceResponse.md)
|
105
|
+
- [CloudmersiveNlpApiClient::CheckWordRequest](docs/CheckWordRequest.md)
|
106
|
+
- [CloudmersiveNlpApiClient::CheckWordResponse](docs/CheckWordResponse.md)
|
107
|
+
- [CloudmersiveNlpApiClient::CorrectWordInSentence](docs/CorrectWordInSentence.md)
|
108
|
+
- [CloudmersiveNlpApiClient::Entity](docs/Entity.md)
|
109
|
+
- [CloudmersiveNlpApiClient::ExtractEntitiesRequest](docs/ExtractEntitiesRequest.md)
|
110
|
+
- [CloudmersiveNlpApiClient::ExtractEntitiesResponse](docs/ExtractEntitiesResponse.md)
|
111
|
+
- [CloudmersiveNlpApiClient::GetWordsRequest](docs/GetWordsRequest.md)
|
112
|
+
- [CloudmersiveNlpApiClient::GetWordsResponse](docs/GetWordsResponse.md)
|
113
|
+
- [CloudmersiveNlpApiClient::LanguageDetectionRequest](docs/LanguageDetectionRequest.md)
|
115
114
|
- [CloudmersiveNlpApiClient::LanguageDetectionResponse](docs/LanguageDetectionResponse.md)
|
115
|
+
- [CloudmersiveNlpApiClient::ParseRequest](docs/ParseRequest.md)
|
116
|
+
- [CloudmersiveNlpApiClient::ParseResponse](docs/ParseResponse.md)
|
116
117
|
- [CloudmersiveNlpApiClient::PosRequest](docs/PosRequest.md)
|
117
118
|
- [CloudmersiveNlpApiClient::PosResponse](docs/PosResponse.md)
|
118
119
|
- [CloudmersiveNlpApiClient::PosSentence](docs/PosSentence.md)
|
119
120
|
- [CloudmersiveNlpApiClient::PosTaggedWord](docs/PosTaggedWord.md)
|
121
|
+
- [CloudmersiveNlpApiClient::SentenceSegmentationRequest](docs/SentenceSegmentationRequest.md)
|
122
|
+
- [CloudmersiveNlpApiClient::SentenceSegmentationResponse](docs/SentenceSegmentationResponse.md)
|
120
123
|
- [CloudmersiveNlpApiClient::WordPosition](docs/WordPosition.md)
|
121
124
|
|
122
125
|
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
#
|
3
3
|
=begin
|
4
|
-
#
|
4
|
+
#nlpapiv2
|
5
5
|
|
6
|
-
#The powerful Natural Language Processing APIs let you perform part of speech tagging, entity identification, sentence parsing, and much more to help you understand the meaning of unstructured text.
|
6
|
+
#The powerful Natural Language Processing APIs (v2) let you perform part of speech tagging, entity identification, sentence parsing, and much more to help you understand the meaning of unstructured text.
|
7
7
|
|
8
8
|
OpenAPI spec version: v1
|
9
9
|
|
10
10
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
-
Swagger Codegen version:
|
11
|
+
Swagger Codegen version: 2.3.1
|
12
12
|
|
13
13
|
=end
|
14
14
|
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# CloudmersiveNlpApiClient::CheckSentenceResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**incorrect_count** | **Integer** | Number of incorrect words | [optional]
|
7
|
+
**words** | [**Array<CorrectWordInSentence>**](CorrectWordInSentence.md) | Words in the sentence, both correct and incorrect | [optional]
|
8
|
+
|
9
|
+
|
data/docs/Entity.md
ADDED
@@ -1,14 +1,14 @@
|
|
1
|
-
# CloudmersiveNlpApiClient::
|
1
|
+
# CloudmersiveNlpApiClient::ExtractEntitiesApi
|
2
2
|
|
3
3
|
All URIs are relative to *https://api.cloudmersive.com*
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**
|
7
|
+
[**extract_entities_post**](ExtractEntitiesApi.md#extract_entities_post) | **POST** /nlp-v2/extract-entities | Extract entities from string
|
8
8
|
|
9
9
|
|
10
|
-
# **
|
11
|
-
>
|
10
|
+
# **extract_entities_post**
|
11
|
+
> ExtractEntitiesResponse extract_entities_post(value)
|
12
12
|
|
13
13
|
Extract entities from string
|
14
14
|
|
@@ -26,17 +26,17 @@ CloudmersiveNlpApiClient.configure do |config|
|
|
26
26
|
#config.api_key_prefix['Apikey'] = 'Bearer'
|
27
27
|
end
|
28
28
|
|
29
|
-
api_instance = CloudmersiveNlpApiClient::
|
29
|
+
api_instance = CloudmersiveNlpApiClient::ExtractEntitiesApi.new
|
30
30
|
|
31
|
-
value =
|
31
|
+
value = CloudmersiveNlpApiClient::ExtractEntitiesRequest.new # ExtractEntitiesRequest | Input string
|
32
32
|
|
33
33
|
|
34
34
|
begin
|
35
35
|
#Extract entities from string
|
36
|
-
result = api_instance.
|
36
|
+
result = api_instance.extract_entities_post(value)
|
37
37
|
p result
|
38
38
|
rescue CloudmersiveNlpApiClient::ApiError => e
|
39
|
-
puts "Exception when calling
|
39
|
+
puts "Exception when calling ExtractEntitiesApi->extract_entities_post: #{e}"
|
40
40
|
end
|
41
41
|
```
|
42
42
|
|
@@ -44,11 +44,11 @@ end
|
|
44
44
|
|
45
45
|
Name | Type | Description | Notes
|
46
46
|
------------- | ------------- | ------------- | -------------
|
47
|
-
**value** | **
|
47
|
+
**value** | [**ExtractEntitiesRequest**](ExtractEntitiesRequest.md)| Input string |
|
48
48
|
|
49
49
|
### Return type
|
50
50
|
|
51
|
-
**
|
51
|
+
[**ExtractEntitiesResponse**](ExtractEntitiesResponse.md)
|
52
52
|
|
53
53
|
### Authorization
|
54
54
|
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# CloudmersiveNlpApiClient::ExtractEntitiesResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**successful** | **BOOLEAN** | True if the operation was successful, false otherwise | [optional]
|
7
|
+
**entities** | [**Array<Entity>**](Entity.md) | | [optional]
|
8
|
+
|
9
|
+
|
@@ -4,11 +4,11 @@ All URIs are relative to *https://api.cloudmersive.com*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**
|
7
|
+
[**language_detection_get_language**](LanguageDetectionApi.md#language_detection_get_language) | **POST** /nlp-v2/language/detect | Detect language of text
|
8
8
|
|
9
9
|
|
10
|
-
# **
|
11
|
-
> LanguageDetectionResponse
|
10
|
+
# **language_detection_get_language**
|
11
|
+
> LanguageDetectionResponse language_detection_get_language(input)
|
12
12
|
|
13
13
|
Detect language of text
|
14
14
|
|
@@ -28,15 +28,15 @@ end
|
|
28
28
|
|
29
29
|
api_instance = CloudmersiveNlpApiClient::LanguageDetectionApi.new
|
30
30
|
|
31
|
-
|
31
|
+
input = CloudmersiveNlpApiClient::LanguageDetectionRequest.new # LanguageDetectionRequest |
|
32
32
|
|
33
33
|
|
34
34
|
begin
|
35
35
|
#Detect language of text
|
36
|
-
result = api_instance.
|
36
|
+
result = api_instance.language_detection_get_language(input)
|
37
37
|
p result
|
38
38
|
rescue CloudmersiveNlpApiClient::ApiError => e
|
39
|
-
puts "Exception when calling LanguageDetectionApi->
|
39
|
+
puts "Exception when calling LanguageDetectionApi->language_detection_get_language: #{e}"
|
40
40
|
end
|
41
41
|
```
|
42
42
|
|
@@ -44,7 +44,7 @@ end
|
|
44
44
|
|
45
45
|
Name | Type | Description | Notes
|
46
46
|
------------- | ------------- | ------------- | -------------
|
47
|
-
**
|
47
|
+
**input** | [**LanguageDetectionRequest**](LanguageDetectionRequest.md)| |
|
48
48
|
|
49
49
|
### Return type
|
50
50
|
|
@@ -1,14 +1,14 @@
|
|
1
|
-
# CloudmersiveNlpApiClient::
|
1
|
+
# CloudmersiveNlpApiClient::ParseApi
|
2
2
|
|
3
3
|
All URIs are relative to *https://api.cloudmersive.com*
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**
|
7
|
+
[**parse_parse_string**](ParseApi.md#parse_parse_string) | **POST** /nlp/parse/tree | Parse string to syntax tree
|
8
8
|
|
9
9
|
|
10
|
-
# **
|
11
|
-
>
|
10
|
+
# **parse_parse_string**
|
11
|
+
> ParseResponse parse_parse_string(input)
|
12
12
|
|
13
13
|
Parse string to syntax tree
|
14
14
|
|
@@ -26,17 +26,17 @@ CloudmersiveNlpApiClient.configure do |config|
|
|
26
26
|
#config.api_key_prefix['Apikey'] = 'Bearer'
|
27
27
|
end
|
28
28
|
|
29
|
-
api_instance = CloudmersiveNlpApiClient::
|
29
|
+
api_instance = CloudmersiveNlpApiClient::ParseApi.new
|
30
30
|
|
31
|
-
input =
|
31
|
+
input = CloudmersiveNlpApiClient::ParseRequest.new # ParseRequest | Input string
|
32
32
|
|
33
33
|
|
34
34
|
begin
|
35
35
|
#Parse string to syntax tree
|
36
|
-
result = api_instance.
|
36
|
+
result = api_instance.parse_parse_string(input)
|
37
37
|
p result
|
38
38
|
rescue CloudmersiveNlpApiClient::ApiError => e
|
39
|
-
puts "Exception when calling
|
39
|
+
puts "Exception when calling ParseApi->parse_parse_string: #{e}"
|
40
40
|
end
|
41
41
|
```
|
42
42
|
|
@@ -44,11 +44,11 @@ end
|
|
44
44
|
|
45
45
|
Name | Type | Description | Notes
|
46
46
|
------------- | ------------- | ------------- | -------------
|
47
|
-
**input** | **
|
47
|
+
**input** | [**ParseRequest**](ParseRequest.md)| Input string |
|
48
48
|
|
49
49
|
### Return type
|
50
50
|
|
51
|
-
**
|
51
|
+
[**ParseResponse**](ParseResponse.md)
|
52
52
|
|
53
53
|
### Authorization
|
54
54
|
|
@@ -1,23 +1,23 @@
|
|
1
|
-
# CloudmersiveNlpApiClient::
|
1
|
+
# CloudmersiveNlpApiClient::PosTaggerApi
|
2
2
|
|
3
3
|
All URIs are relative to *https://api.cloudmersive.com*
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**
|
8
|
-
[**
|
9
|
-
[**
|
10
|
-
[**
|
11
|
-
[**
|
12
|
-
[**
|
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
13
|
|
14
14
|
|
15
|
-
# **
|
16
|
-
>
|
15
|
+
# **pos_tagger_tag_adjectives**
|
16
|
+
> PosResponse pos_tagger_tag_adjectives(request)
|
17
17
|
|
18
|
-
|
18
|
+
Part-of-speech tag a string, filter to adjectives
|
19
19
|
|
20
|
-
|
20
|
+
Part-of-speech (POS) tag a string, find the adjectives, and return result as JSON
|
21
21
|
|
22
22
|
### Example
|
23
23
|
```ruby
|
@@ -31,17 +31,17 @@ CloudmersiveNlpApiClient.configure do |config|
|
|
31
31
|
#config.api_key_prefix['Apikey'] = 'Bearer'
|
32
32
|
end
|
33
33
|
|
34
|
-
api_instance = CloudmersiveNlpApiClient::
|
34
|
+
api_instance = CloudmersiveNlpApiClient::PosTaggerApi.new
|
35
35
|
|
36
|
-
|
36
|
+
request = CloudmersiveNlpApiClient::PosRequest.new # PosRequest | Input string
|
37
37
|
|
38
38
|
|
39
39
|
begin
|
40
|
-
#
|
41
|
-
result = api_instance.
|
40
|
+
#Part-of-speech tag a string, filter to adjectives
|
41
|
+
result = api_instance.pos_tagger_tag_adjectives(request)
|
42
42
|
p result
|
43
43
|
rescue CloudmersiveNlpApiClient::ApiError => e
|
44
|
-
puts "Exception when calling
|
44
|
+
puts "Exception when calling PosTaggerApi->pos_tagger_tag_adjectives: #{e}"
|
45
45
|
end
|
46
46
|
```
|
47
47
|
|
@@ -49,11 +49,11 @@ end
|
|
49
49
|
|
50
50
|
Name | Type | Description | Notes
|
51
51
|
------------- | ------------- | ------------- | -------------
|
52
|
-
**
|
52
|
+
**request** | [**PosRequest**](PosRequest.md)| Input string |
|
53
53
|
|
54
54
|
### Return type
|
55
55
|
|
56
|
-
[**
|
56
|
+
[**PosResponse**](PosResponse.md)
|
57
57
|
|
58
58
|
### Authorization
|
59
59
|
|
@@ -66,12 +66,12 @@ Name | Type | Description | Notes
|
|
66
66
|
|
67
67
|
|
68
68
|
|
69
|
-
# **
|
70
|
-
>
|
69
|
+
# **pos_tagger_tag_adverbs**
|
70
|
+
> PosResponse pos_tagger_tag_adverbs(request)
|
71
71
|
|
72
|
-
|
72
|
+
Part-of-speech tag a string, filter to adverbs
|
73
73
|
|
74
|
-
|
74
|
+
Part-of-speech (POS) tag a string, find the adverbs, and return result as JSON
|
75
75
|
|
76
76
|
### Example
|
77
77
|
```ruby
|
@@ -85,17 +85,17 @@ CloudmersiveNlpApiClient.configure do |config|
|
|
85
85
|
#config.api_key_prefix['Apikey'] = 'Bearer'
|
86
86
|
end
|
87
87
|
|
88
|
-
api_instance = CloudmersiveNlpApiClient::
|
88
|
+
api_instance = CloudmersiveNlpApiClient::PosTaggerApi.new
|
89
89
|
|
90
|
-
|
90
|
+
request = CloudmersiveNlpApiClient::PosRequest.new # PosRequest | Input string
|
91
91
|
|
92
92
|
|
93
93
|
begin
|
94
|
-
#
|
95
|
-
result = api_instance.
|
94
|
+
#Part-of-speech tag a string, filter to adverbs
|
95
|
+
result = api_instance.pos_tagger_tag_adverbs(request)
|
96
96
|
p result
|
97
97
|
rescue CloudmersiveNlpApiClient::ApiError => e
|
98
|
-
puts "Exception when calling
|
98
|
+
puts "Exception when calling PosTaggerApi->pos_tagger_tag_adverbs: #{e}"
|
99
99
|
end
|
100
100
|
```
|
101
101
|
|
@@ -103,11 +103,11 @@ end
|
|
103
103
|
|
104
104
|
Name | Type | Description | Notes
|
105
105
|
------------- | ------------- | ------------- | -------------
|
106
|
-
**
|
106
|
+
**request** | [**PosRequest**](PosRequest.md)| Input string |
|
107
107
|
|
108
108
|
### Return type
|
109
109
|
|
110
|
-
[**
|
110
|
+
[**PosResponse**](PosResponse.md)
|
111
111
|
|
112
112
|
### Authorization
|
113
113
|
|
@@ -120,12 +120,12 @@ Name | Type | Description | Notes
|
|
120
120
|
|
121
121
|
|
122
122
|
|
123
|
-
# **
|
124
|
-
>
|
123
|
+
# **pos_tagger_tag_nouns**
|
124
|
+
> PosResponse pos_tagger_tag_nouns(request)
|
125
125
|
|
126
|
-
|
126
|
+
Part-of-speech tag a string, filter to nouns
|
127
127
|
|
128
|
-
|
128
|
+
Part-of-speech (POS) tag a string, find the nouns, and return result as JSON
|
129
129
|
|
130
130
|
### Example
|
131
131
|
```ruby
|
@@ -139,17 +139,17 @@ CloudmersiveNlpApiClient.configure do |config|
|
|
139
139
|
#config.api_key_prefix['Apikey'] = 'Bearer'
|
140
140
|
end
|
141
141
|
|
142
|
-
api_instance = CloudmersiveNlpApiClient::
|
142
|
+
api_instance = CloudmersiveNlpApiClient::PosTaggerApi.new
|
143
143
|
|
144
|
-
|
144
|
+
request = CloudmersiveNlpApiClient::PosRequest.new # PosRequest | Input string
|
145
145
|
|
146
146
|
|
147
147
|
begin
|
148
|
-
#
|
149
|
-
result = api_instance.
|
148
|
+
#Part-of-speech tag a string, filter to nouns
|
149
|
+
result = api_instance.pos_tagger_tag_nouns(request)
|
150
150
|
p result
|
151
151
|
rescue CloudmersiveNlpApiClient::ApiError => e
|
152
|
-
puts "Exception when calling
|
152
|
+
puts "Exception when calling PosTaggerApi->pos_tagger_tag_nouns: #{e}"
|
153
153
|
end
|
154
154
|
```
|
155
155
|
|
@@ -157,11 +157,11 @@ end
|
|
157
157
|
|
158
158
|
Name | Type | Description | Notes
|
159
159
|
------------- | ------------- | ------------- | -------------
|
160
|
-
**
|
160
|
+
**request** | [**PosRequest**](PosRequest.md)| Input string |
|
161
161
|
|
162
162
|
### Return type
|
163
163
|
|
164
|
-
**
|
164
|
+
[**PosResponse**](PosResponse.md)
|
165
165
|
|
166
166
|
### Authorization
|
167
167
|
|
@@ -174,12 +174,12 @@ Name | Type | Description | Notes
|
|
174
174
|
|
175
175
|
|
176
176
|
|
177
|
-
# **
|
178
|
-
>
|
177
|
+
# **pos_tagger_tag_pronouns**
|
178
|
+
> PosResponse pos_tagger_tag_pronouns(request)
|
179
179
|
|
180
|
-
|
180
|
+
Part-of-speech tag a string, filter to pronouns
|
181
181
|
|
182
|
-
|
182
|
+
Part-of-speech (POS) tag a string, find the pronouns, and return result as JSON
|
183
183
|
|
184
184
|
### Example
|
185
185
|
```ruby
|
@@ -193,17 +193,17 @@ CloudmersiveNlpApiClient.configure do |config|
|
|
193
193
|
#config.api_key_prefix['Apikey'] = 'Bearer'
|
194
194
|
end
|
195
195
|
|
196
|
-
api_instance = CloudmersiveNlpApiClient::
|
196
|
+
api_instance = CloudmersiveNlpApiClient::PosTaggerApi.new
|
197
197
|
|
198
|
-
|
198
|
+
request = CloudmersiveNlpApiClient::PosRequest.new # PosRequest | Input string
|
199
199
|
|
200
200
|
|
201
201
|
begin
|
202
|
-
#
|
203
|
-
result = api_instance.
|
202
|
+
#Part-of-speech tag a string, filter to pronouns
|
203
|
+
result = api_instance.pos_tagger_tag_pronouns(request)
|
204
204
|
p result
|
205
205
|
rescue CloudmersiveNlpApiClient::ApiError => e
|
206
|
-
puts "Exception when calling
|
206
|
+
puts "Exception when calling PosTaggerApi->pos_tagger_tag_pronouns: #{e}"
|
207
207
|
end
|
208
208
|
```
|
209
209
|
|
@@ -211,11 +211,11 @@ end
|
|
211
211
|
|
212
212
|
Name | Type | Description | Notes
|
213
213
|
------------- | ------------- | ------------- | -------------
|
214
|
-
**
|
214
|
+
**request** | [**PosRequest**](PosRequest.md)| Input string |
|
215
215
|
|
216
216
|
### Return type
|
217
217
|
|
218
|
-
**
|
218
|
+
[**PosResponse**](PosResponse.md)
|
219
219
|
|
220
220
|
### Authorization
|
221
221
|
|
@@ -228,12 +228,12 @@ Name | Type | Description | Notes
|
|
228
228
|
|
229
229
|
|
230
230
|
|
231
|
-
# **
|
232
|
-
>
|
231
|
+
# **pos_tagger_tag_sentence**
|
232
|
+
> PosResponse pos_tagger_tag_sentence(request)
|
233
233
|
|
234
|
-
|
234
|
+
Part-of-speech tag a string
|
235
235
|
|
236
|
-
|
236
|
+
Part-of-speech (POS) tag a string and return result as JSON
|
237
237
|
|
238
238
|
### Example
|
239
239
|
```ruby
|
@@ -247,17 +247,17 @@ CloudmersiveNlpApiClient.configure do |config|
|
|
247
247
|
#config.api_key_prefix['Apikey'] = 'Bearer'
|
248
248
|
end
|
249
249
|
|
250
|
-
api_instance = CloudmersiveNlpApiClient::
|
250
|
+
api_instance = CloudmersiveNlpApiClient::PosTaggerApi.new
|
251
251
|
|
252
|
-
|
252
|
+
request = CloudmersiveNlpApiClient::PosRequest.new # PosRequest | Input string
|
253
253
|
|
254
254
|
|
255
255
|
begin
|
256
|
-
#
|
257
|
-
result = api_instance.
|
256
|
+
#Part-of-speech tag a string
|
257
|
+
result = api_instance.pos_tagger_tag_sentence(request)
|
258
258
|
p result
|
259
259
|
rescue CloudmersiveNlpApiClient::ApiError => e
|
260
|
-
puts "Exception when calling
|
260
|
+
puts "Exception when calling PosTaggerApi->pos_tagger_tag_sentence: #{e}"
|
261
261
|
end
|
262
262
|
```
|
263
263
|
|
@@ -265,11 +265,11 @@ end
|
|
265
265
|
|
266
266
|
Name | Type | Description | Notes
|
267
267
|
------------- | ------------- | ------------- | -------------
|
268
|
-
**
|
268
|
+
**request** | [**PosRequest**](PosRequest.md)| Input string |
|
269
269
|
|
270
270
|
### Return type
|
271
271
|
|
272
|
-
[**
|
272
|
+
[**PosResponse**](PosResponse.md)
|
273
273
|
|
274
274
|
### Authorization
|
275
275
|
|
@@ -282,12 +282,12 @@ Name | Type | Description | Notes
|
|
282
282
|
|
283
283
|
|
284
284
|
|
285
|
-
# **
|
286
|
-
>
|
285
|
+
# **pos_tagger_tag_verbs**
|
286
|
+
> PosResponse pos_tagger_tag_verbs(request)
|
287
287
|
|
288
|
-
|
288
|
+
Part-of-speech tag a string, filter to verbs
|
289
289
|
|
290
|
-
|
290
|
+
Part-of-speech (POS) tag a string, find the verbs, and return result as JSON
|
291
291
|
|
292
292
|
### Example
|
293
293
|
```ruby
|
@@ -301,17 +301,17 @@ CloudmersiveNlpApiClient.configure do |config|
|
|
301
301
|
#config.api_key_prefix['Apikey'] = 'Bearer'
|
302
302
|
end
|
303
303
|
|
304
|
-
api_instance = CloudmersiveNlpApiClient::
|
304
|
+
api_instance = CloudmersiveNlpApiClient::PosTaggerApi.new
|
305
305
|
|
306
|
-
|
306
|
+
request = CloudmersiveNlpApiClient::PosRequest.new # PosRequest | Input string
|
307
307
|
|
308
308
|
|
309
309
|
begin
|
310
|
-
#
|
311
|
-
result = api_instance.
|
310
|
+
#Part-of-speech tag a string, filter to verbs
|
311
|
+
result = api_instance.pos_tagger_tag_verbs(request)
|
312
312
|
p result
|
313
313
|
rescue CloudmersiveNlpApiClient::ApiError => e
|
314
|
-
puts "Exception when calling
|
314
|
+
puts "Exception when calling PosTaggerApi->pos_tagger_tag_verbs: #{e}"
|
315
315
|
end
|
316
316
|
```
|
317
317
|
|
@@ -319,11 +319,11 @@ end
|
|
319
319
|
|
320
320
|
Name | Type | Description | Notes
|
321
321
|
------------- | ------------- | ------------- | -------------
|
322
|
-
**
|
322
|
+
**request** | [**PosRequest**](PosRequest.md)| Input string |
|
323
323
|
|
324
324
|
### Return type
|
325
325
|
|
326
|
-
**
|
326
|
+
[**PosResponse**](PosResponse.md)
|
327
327
|
|
328
328
|
### Authorization
|
329
329
|
|