cloudmersive-nlp-api-client 2.0.7 → 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 +1 -1
- data/README.md +16 -8
- data/cloudmersive-nlp-api-client.gemspec +3 -3
- data/docs/AnalyticsApi.md +113 -3
- data/docs/ExtractEntitiesApi.md +1 -1
- data/docs/HateSpeechAnalysisRequest.md +8 -0
- data/docs/HateSpeechAnalysisResponse.md +10 -0
- data/docs/LanguageDetectionApi.md +1 -1
- data/docs/LanguageTranslationApi.md +114 -4
- data/docs/ParseApi.md +1 -1
- data/docs/PosTaggerApi.md +6 -6
- data/docs/RephraseApi.md +1 -1
- data/docs/SegmentationApi.md +2 -2
- data/docs/SimilarityAnalysisRequest.md +9 -0
- data/docs/SimilarityAnalysisResponse.md +10 -0
- data/docs/SpellcheckApi.md +2 -2
- data/lib/cloudmersive-nlp-api-client.rb +5 -1
- data/lib/cloudmersive-nlp-api-client/api/analytics_api.rb +120 -15
- data/lib/cloudmersive-nlp-api-client/api/extract_entities_api.rb +6 -7
- data/lib/cloudmersive-nlp-api-client/api/language_detection_api.rb +6 -7
- data/lib/cloudmersive-nlp-api-client/api/language_translation_api.rb +124 -20
- data/lib/cloudmersive-nlp-api-client/api/parse_api.rb +6 -7
- data/lib/cloudmersive-nlp-api-client/api/pos_tagger_api.rb +26 -32
- data/lib/cloudmersive-nlp-api-client/api/rephrase_api.rb +6 -7
- data/lib/cloudmersive-nlp-api-client/api/segmentation_api.rb +10 -12
- data/lib/cloudmersive-nlp-api-client/api/spellcheck_api.rb +10 -12
- data/lib/cloudmersive-nlp-api-client/api_client.rb +11 -9
- data/lib/cloudmersive-nlp-api-client/api_error.rb +1 -1
- data/lib/cloudmersive-nlp-api-client/configuration.rb +2 -2
- data/lib/cloudmersive-nlp-api-client/models/check_sentence_request.rb +7 -10
- data/lib/cloudmersive-nlp-api-client/models/check_sentence_response.rb +7 -10
- data/lib/cloudmersive-nlp-api-client/models/check_word_request.rb +7 -11
- data/lib/cloudmersive-nlp-api-client/models/check_word_response.rb +7 -10
- data/lib/cloudmersive-nlp-api-client/models/correct_word_in_sentence.rb +7 -10
- data/lib/cloudmersive-nlp-api-client/models/entity.rb +7 -11
- data/lib/cloudmersive-nlp-api-client/models/extract_entities_request.rb +7 -10
- data/lib/cloudmersive-nlp-api-client/models/extract_entities_response.rb +7 -10
- data/lib/cloudmersive-nlp-api-client/models/get_words_request.rb +7 -11
- data/lib/cloudmersive-nlp-api-client/models/get_words_response.rb +7 -10
- 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 +7 -10
- data/lib/cloudmersive-nlp-api-client/models/language_detection_response.rb +7 -10
- data/lib/cloudmersive-nlp-api-client/models/language_translation_request.rb +7 -10
- data/lib/cloudmersive-nlp-api-client/models/language_translation_response.rb +7 -10
- data/lib/cloudmersive-nlp-api-client/models/parse_request.rb +7 -10
- data/lib/cloudmersive-nlp-api-client/models/parse_response.rb +7 -10
- data/lib/cloudmersive-nlp-api-client/models/pos_request.rb +7 -10
- data/lib/cloudmersive-nlp-api-client/models/pos_response.rb +7 -10
- data/lib/cloudmersive-nlp-api-client/models/pos_sentence.rb +7 -10
- data/lib/cloudmersive-nlp-api-client/models/pos_tagged_word.rb +7 -10
- data/lib/cloudmersive-nlp-api-client/models/profanity_analysis_request.rb +7 -10
- data/lib/cloudmersive-nlp-api-client/models/profanity_analysis_response.rb +7 -10
- data/lib/cloudmersive-nlp-api-client/models/rephrase_request.rb +7 -10
- data/lib/cloudmersive-nlp-api-client/models/rephrase_response.rb +7 -10
- data/lib/cloudmersive-nlp-api-client/models/rephrased_sentence.rb +7 -10
- data/lib/cloudmersive-nlp-api-client/models/rephrased_sentence_option.rb +7 -10
- data/lib/cloudmersive-nlp-api-client/models/sentence_segmentation_request.rb +7 -11
- data/lib/cloudmersive-nlp-api-client/models/sentence_segmentation_response.rb +7 -11
- data/lib/cloudmersive-nlp-api-client/models/sentiment_analysis_request.rb +7 -10
- data/lib/cloudmersive-nlp-api-client/models/sentiment_analysis_response.rb +7 -10
- 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 +7 -10
- data/lib/cloudmersive-nlp-api-client/models/subjectivity_analysis_response.rb +7 -10
- data/lib/cloudmersive-nlp-api-client/models/word_position.rb +7 -11
- data/lib/cloudmersive-nlp-api-client/version.rb +2 -2
- data/spec/api/analytics_api_spec.rb +28 -4
- data/spec/api/extract_entities_api_spec.rb +2 -2
- data/spec/api/language_detection_api_spec.rb +2 -2
- data/spec/api/language_translation_api_spec.rb +29 -5
- data/spec/api/parse_api_spec.rb +2 -2
- data/spec/api/pos_tagger_api_spec.rb +7 -7
- data/spec/api/rephrase_api_spec.rb +2 -2
- data/spec/api/segmentation_api_spec.rb +3 -3
- data/spec/api/spellcheck_api_spec.rb +3 -3
- data/spec/api_client_spec.rb +52 -35
- data/spec/configuration_spec.rb +9 -9
- data/spec/models/check_sentence_request_spec.rb +2 -3
- data/spec/models/check_sentence_response_spec.rb +3 -4
- data/spec/models/check_word_request_spec.rb +2 -3
- data/spec/models/check_word_response_spec.rb +3 -4
- data/spec/models/correct_word_in_sentence_spec.rb +4 -5
- data/spec/models/entity_spec.rb +3 -4
- data/spec/models/extract_entities_request_spec.rb +2 -3
- data/spec/models/extract_entities_response_spec.rb +3 -4
- data/spec/models/get_words_request_spec.rb +2 -3
- data/spec/models/get_words_response_spec.rb +2 -3
- 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 +2 -3
- data/spec/models/language_detection_response_spec.rb +4 -5
- data/spec/models/language_translation_request_spec.rb +2 -3
- data/spec/models/language_translation_response_spec.rb +4 -5
- data/spec/models/parse_request_spec.rb +2 -3
- data/spec/models/parse_response_spec.rb +2 -3
- data/spec/models/pos_request_spec.rb +2 -3
- data/spec/models/pos_response_spec.rb +2 -3
- data/spec/models/pos_sentence_spec.rb +2 -3
- data/spec/models/pos_tagged_word_spec.rb +3 -4
- data/spec/models/profanity_analysis_request_spec.rb +2 -3
- data/spec/models/profanity_analysis_response_spec.rb +4 -5
- data/spec/models/rephrase_request_spec.rb +3 -4
- data/spec/models/rephrase_response_spec.rb +4 -5
- data/spec/models/rephrased_sentence_option_spec.rb +3 -4
- data/spec/models/rephrased_sentence_spec.rb +4 -5
- data/spec/models/sentence_segmentation_request_spec.rb +2 -3
- data/spec/models/sentence_segmentation_response_spec.rb +4 -5
- data/spec/models/sentiment_analysis_request_spec.rb +2 -3
- data/spec/models/sentiment_analysis_response_spec.rb +5 -6
- 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 +2 -3
- data/spec/models/subjectivity_analysis_response_spec.rb +4 -5
- data/spec/models/word_position_spec.rb +5 -6
- data/spec/spec_helper.rb +1 -1
- metadata +14 -2
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -24,7 +24,6 @@ module CloudmersiveNlpApiClient
|
|
24
24
|
# Number of sentences in input text
|
25
25
|
attr_accessor :sentence_count
|
26
26
|
|
27
|
-
|
28
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
28
|
def self.attribute_map
|
30
29
|
{
|
@@ -49,7 +48,7 @@ module CloudmersiveNlpApiClient
|
|
49
48
|
return unless attributes.is_a?(Hash)
|
50
49
|
|
51
50
|
# convert string to symbol for hash key
|
52
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
51
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
53
52
|
|
54
53
|
if attributes.has_key?(:'Successful')
|
55
54
|
self.successful = attributes[:'Successful']
|
@@ -62,20 +61,19 @@ module CloudmersiveNlpApiClient
|
|
62
61
|
if attributes.has_key?(:'SentenceCount')
|
63
62
|
self.sentence_count = attributes[:'SentenceCount']
|
64
63
|
end
|
65
|
-
|
66
64
|
end
|
67
65
|
|
68
66
|
# Show invalid properties with the reasons. Usually used together with valid?
|
69
67
|
# @return Array for valid properties with the reasons
|
70
68
|
def list_invalid_properties
|
71
69
|
invalid_properties = Array.new
|
72
|
-
|
70
|
+
invalid_properties
|
73
71
|
end
|
74
72
|
|
75
73
|
# Check to see if the all the properties in the model are valid
|
76
74
|
# @return true if the model is valid
|
77
75
|
def valid?
|
78
|
-
|
76
|
+
true
|
79
77
|
end
|
80
78
|
|
81
79
|
# Checks equality by comparing each attribute.
|
@@ -107,10 +105,10 @@ module CloudmersiveNlpApiClient
|
|
107
105
|
return nil unless attributes.is_a?(Hash)
|
108
106
|
self.class.swagger_types.each_pair do |key, type|
|
109
107
|
if type =~ /\AArray<(.*)>/i
|
110
|
-
# check to ensure the input is an array given that the
|
108
|
+
# check to ensure the input is an array given that the attribute
|
111
109
|
# is documented as an array but the input is not
|
112
110
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
113
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
111
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
114
112
|
end
|
115
113
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
116
114
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -192,7 +190,7 @@ module CloudmersiveNlpApiClient
|
|
192
190
|
# @return [Hash] Returns the value in the form of hash
|
193
191
|
def _to_hash(value)
|
194
192
|
if value.is_a?(Array)
|
195
|
-
value.compact.map{ |v| _to_hash(v) }
|
193
|
+
value.compact.map { |v| _to_hash(v) }
|
196
194
|
elsif value.is_a?(Hash)
|
197
195
|
{}.tap do |hash|
|
198
196
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -205,5 +203,4 @@ module CloudmersiveNlpApiClient
|
|
205
203
|
end
|
206
204
|
|
207
205
|
end
|
208
|
-
|
209
206
|
end
|
@@ -6,14 +6,13 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module CloudmersiveNlpApiClient
|
16
|
-
|
17
16
|
class WordPosition
|
18
17
|
# Word as a string
|
19
18
|
attr_accessor :word
|
@@ -27,7 +26,6 @@ module CloudmersiveNlpApiClient
|
|
27
26
|
# Zero-based character offset at which the word ends in the input string
|
28
27
|
attr_accessor :end_position
|
29
28
|
|
30
|
-
|
31
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
32
30
|
def self.attribute_map
|
33
31
|
{
|
@@ -54,7 +52,7 @@ module CloudmersiveNlpApiClient
|
|
54
52
|
return unless attributes.is_a?(Hash)
|
55
53
|
|
56
54
|
# convert string to symbol for hash key
|
57
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
58
56
|
|
59
57
|
if attributes.has_key?(:'Word')
|
60
58
|
self.word = attributes[:'Word']
|
@@ -71,20 +69,19 @@ module CloudmersiveNlpApiClient
|
|
71
69
|
if attributes.has_key?(:'EndPosition')
|
72
70
|
self.end_position = attributes[:'EndPosition']
|
73
71
|
end
|
74
|
-
|
75
72
|
end
|
76
73
|
|
77
74
|
# Show invalid properties with the reasons. Usually used together with valid?
|
78
75
|
# @return Array for valid properties with the reasons
|
79
76
|
def list_invalid_properties
|
80
77
|
invalid_properties = Array.new
|
81
|
-
|
78
|
+
invalid_properties
|
82
79
|
end
|
83
80
|
|
84
81
|
# Check to see if the all the properties in the model are valid
|
85
82
|
# @return true if the model is valid
|
86
83
|
def valid?
|
87
|
-
|
84
|
+
true
|
88
85
|
end
|
89
86
|
|
90
87
|
# Checks equality by comparing each attribute.
|
@@ -117,10 +114,10 @@ module CloudmersiveNlpApiClient
|
|
117
114
|
return nil unless attributes.is_a?(Hash)
|
118
115
|
self.class.swagger_types.each_pair do |key, type|
|
119
116
|
if type =~ /\AArray<(.*)>/i
|
120
|
-
# check to ensure the input is an array given that the
|
117
|
+
# check to ensure the input is an array given that the attribute
|
121
118
|
# is documented as an array but the input is not
|
122
119
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
123
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
120
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
124
121
|
end
|
125
122
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
126
123
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -202,7 +199,7 @@ module CloudmersiveNlpApiClient
|
|
202
199
|
# @return [Hash] Returns the value in the form of hash
|
203
200
|
def _to_hash(value)
|
204
201
|
if value.is_a?(Array)
|
205
|
-
value.compact.map{ |v| _to_hash(v) }
|
202
|
+
value.compact.map { |v| _to_hash(v) }
|
206
203
|
elsif value.is_a?(Hash)
|
207
204
|
{}.tap do |hash|
|
208
205
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -215,5 +212,4 @@ module CloudmersiveNlpApiClient
|
|
215
212
|
end
|
216
213
|
|
217
214
|
end
|
218
|
-
|
219
215
|
end
|
@@ -6,10 +6,10 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module CloudmersiveNlpApiClient
|
14
|
-
VERSION =
|
14
|
+
VERSION = '3.0.3'
|
15
15
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -32,6 +32,18 @@ describe 'AnalyticsApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
# unit tests for analytics_hate_speech
|
36
|
+
# Perform Hate Speech Analysis and Detection on Text
|
37
|
+
# Analyze input text using advanced Hate Speech Analysis to determine if the input contains hate speech language. Supports English language input. Consumes 1-2 API calls per sentence.
|
38
|
+
# @param input Input hate speech analysis request
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [HateSpeechAnalysisResponse]
|
41
|
+
describe 'analytics_hate_speech test' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
35
47
|
# unit tests for analytics_profanity
|
36
48
|
# Perform Profanity and Obscene Language Analysis and Detection on Text
|
37
49
|
# Analyze input text using advanced Profanity and Obscene Language Analysis to determine if the input contains profane language. Supports English language input. Consumes 1-2 API calls per sentence.
|
@@ -39,7 +51,7 @@ describe 'AnalyticsApi' do
|
|
39
51
|
# @param [Hash] opts the optional parameters
|
40
52
|
# @return [ProfanityAnalysisResponse]
|
41
53
|
describe 'analytics_profanity test' do
|
42
|
-
it
|
54
|
+
it 'should work' do
|
43
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
56
|
end
|
45
57
|
end
|
@@ -51,7 +63,19 @@ describe 'AnalyticsApi' do
|
|
51
63
|
# @param [Hash] opts the optional parameters
|
52
64
|
# @return [SentimentAnalysisResponse]
|
53
65
|
describe 'analytics_sentiment test' do
|
54
|
-
it
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# unit tests for analytics_similarity
|
72
|
+
# Perform Semantic Similarity Comparison of Two Strings
|
73
|
+
# Analyze two input text strings, typically sentences, and determine the semantic similarity of each. Semantic similarity refers to the degree to which two sentences mean the same thing semantically. Uses advanced Deep Learning to perform the semantic similarity comparison. Consumes 1-2 API calls per sentence.
|
74
|
+
# @param input Input similarity analysis request
|
75
|
+
# @param [Hash] opts the optional parameters
|
76
|
+
# @return [SimilarityAnalysisResponse]
|
77
|
+
describe 'analytics_similarity test' do
|
78
|
+
it 'should work' do
|
55
79
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
80
|
end
|
57
81
|
end
|
@@ -63,7 +87,7 @@ describe 'AnalyticsApi' do
|
|
63
87
|
# @param [Hash] opts the optional parameters
|
64
88
|
# @return [SubjectivityAnalysisResponse]
|
65
89
|
describe 'analytics_subjectivity test' do
|
66
|
-
it
|
90
|
+
it 'should work' do
|
67
91
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
92
|
end
|
69
93
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -39,7 +39,7 @@ describe 'ExtractEntitiesApi' do
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @return [ExtractEntitiesResponse]
|
41
41
|
describe 'extract_entities_post test' do
|
42
|
-
it
|
42
|
+
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -39,7 +39,7 @@ describe 'LanguageDetectionApi' do
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @return [LanguageDetectionResponse]
|
41
41
|
describe 'language_detection_get_language test' do
|
42
|
-
it
|
42
|
+
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -39,7 +39,7 @@ describe 'LanguageTranslationApi' do
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @return [LanguageTranslationResponse]
|
41
41
|
describe 'language_translation_translate_deu_to_eng test' do
|
42
|
-
it
|
42
|
+
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
@@ -51,7 +51,19 @@ describe 'LanguageTranslationApi' do
|
|
51
51
|
# @param [Hash] opts the optional parameters
|
52
52
|
# @return [LanguageTranslationResponse]
|
53
53
|
describe 'language_translation_translate_eng_to_deu test' do
|
54
|
-
it
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# unit tests for language_translation_translate_eng_to_fra
|
60
|
+
# Translate English to French text with Deep Learning AI
|
61
|
+
# Automatically translates input text in English to output text in French using advanced Deep Learning and Neural NLP. Consumes 1-2 API calls per input sentence.
|
62
|
+
# @param input Input translation request
|
63
|
+
# @param [Hash] opts the optional parameters
|
64
|
+
# @return [LanguageTranslationResponse]
|
65
|
+
describe 'language_translation_translate_eng_to_fra test' do
|
66
|
+
it 'should work' do
|
55
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
68
|
end
|
57
69
|
end
|
@@ -63,7 +75,19 @@ describe 'LanguageTranslationApi' do
|
|
63
75
|
# @param [Hash] opts the optional parameters
|
64
76
|
# @return [LanguageTranslationResponse]
|
65
77
|
describe 'language_translation_translate_eng_to_rus test' do
|
66
|
-
it
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
# unit tests for language_translation_translate_fra_to_eng
|
84
|
+
# Translate French to English text with Deep Learning AI
|
85
|
+
# Automatically translates input text in French to output text in English using advanced Deep Learning and Neural NLP. Consumes 1-2 API calls per input sentence.
|
86
|
+
# @param input Input translation request
|
87
|
+
# @param [Hash] opts the optional parameters
|
88
|
+
# @return [LanguageTranslationResponse]
|
89
|
+
describe 'language_translation_translate_fra_to_eng test' do
|
90
|
+
it 'should work' do
|
67
91
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
92
|
end
|
69
93
|
end
|
@@ -75,7 +99,7 @@ describe 'LanguageTranslationApi' do
|
|
75
99
|
# @param [Hash] opts the optional parameters
|
76
100
|
# @return [LanguageTranslationResponse]
|
77
101
|
describe 'language_translation_translate_rus_to_eng test' do
|
78
|
-
it
|
102
|
+
it 'should work' do
|
79
103
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
104
|
end
|
81
105
|
end
|
data/spec/api/parse_api_spec.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -39,7 +39,7 @@ describe 'ParseApi' do
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @return [ParseResponse]
|
41
41
|
describe 'parse_parse_string test' do
|
42
|
-
it
|
42
|
+
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -39,7 +39,7 @@ describe 'PosTaggerApi' do
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @return [PosResponse]
|
41
41
|
describe 'pos_tagger_tag_adjectives test' do
|
42
|
-
it
|
42
|
+
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
@@ -51,7 +51,7 @@ describe 'PosTaggerApi' do
|
|
51
51
|
# @param [Hash] opts the optional parameters
|
52
52
|
# @return [PosResponse]
|
53
53
|
describe 'pos_tagger_tag_adverbs test' do
|
54
|
-
it
|
54
|
+
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
57
57
|
end
|
@@ -63,7 +63,7 @@ describe 'PosTaggerApi' do
|
|
63
63
|
# @param [Hash] opts the optional parameters
|
64
64
|
# @return [PosResponse]
|
65
65
|
describe 'pos_tagger_tag_nouns test' do
|
66
|
-
it
|
66
|
+
it 'should work' do
|
67
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
68
|
end
|
69
69
|
end
|
@@ -75,7 +75,7 @@ describe 'PosTaggerApi' do
|
|
75
75
|
# @param [Hash] opts the optional parameters
|
76
76
|
# @return [PosResponse]
|
77
77
|
describe 'pos_tagger_tag_pronouns test' do
|
78
|
-
it
|
78
|
+
it 'should work' do
|
79
79
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
80
|
end
|
81
81
|
end
|
@@ -87,7 +87,7 @@ describe 'PosTaggerApi' do
|
|
87
87
|
# @param [Hash] opts the optional parameters
|
88
88
|
# @return [PosResponse]
|
89
89
|
describe 'pos_tagger_tag_sentence test' do
|
90
|
-
it
|
90
|
+
it 'should work' do
|
91
91
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
92
|
end
|
93
93
|
end
|
@@ -99,7 +99,7 @@ describe 'PosTaggerApi' do
|
|
99
99
|
# @param [Hash] opts the optional parameters
|
100
100
|
# @return [PosResponse]
|
101
101
|
describe 'pos_tagger_tag_verbs test' do
|
102
|
-
it
|
102
|
+
it 'should work' do
|
103
103
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
104
|
end
|
105
105
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -39,7 +39,7 @@ describe 'RephraseApi' do
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @return [RephraseResponse]
|
41
41
|
describe 'rephrase_english_rephrase_sentence_by_sentence test' do
|
42
|
-
it
|
42
|
+
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -39,7 +39,7 @@ describe 'SegmentationApi' do
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @return [SentenceSegmentationResponse]
|
41
41
|
describe 'segmentation_get_sentences test' do
|
42
|
-
it
|
42
|
+
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
@@ -51,7 +51,7 @@ describe 'SegmentationApi' do
|
|
51
51
|
# @param [Hash] opts the optional parameters
|
52
52
|
# @return [GetWordsResponse]
|
53
53
|
describe 'segmentation_get_words test' do
|
54
|
-
it
|
54
|
+
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
57
57
|
end
|