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.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +16 -8
  4. data/cloudmersive-nlp-api-client.gemspec +3 -3
  5. data/docs/AnalyticsApi.md +113 -3
  6. data/docs/ExtractEntitiesApi.md +1 -1
  7. data/docs/HateSpeechAnalysisRequest.md +8 -0
  8. data/docs/HateSpeechAnalysisResponse.md +10 -0
  9. data/docs/LanguageDetectionApi.md +1 -1
  10. data/docs/LanguageTranslationApi.md +114 -4
  11. data/docs/ParseApi.md +1 -1
  12. data/docs/PosTaggerApi.md +6 -6
  13. data/docs/RephraseApi.md +1 -1
  14. data/docs/SegmentationApi.md +2 -2
  15. data/docs/SimilarityAnalysisRequest.md +9 -0
  16. data/docs/SimilarityAnalysisResponse.md +10 -0
  17. data/docs/SpellcheckApi.md +2 -2
  18. data/lib/cloudmersive-nlp-api-client.rb +5 -1
  19. data/lib/cloudmersive-nlp-api-client/api/analytics_api.rb +120 -15
  20. data/lib/cloudmersive-nlp-api-client/api/extract_entities_api.rb +6 -7
  21. data/lib/cloudmersive-nlp-api-client/api/language_detection_api.rb +6 -7
  22. data/lib/cloudmersive-nlp-api-client/api/language_translation_api.rb +124 -20
  23. data/lib/cloudmersive-nlp-api-client/api/parse_api.rb +6 -7
  24. data/lib/cloudmersive-nlp-api-client/api/pos_tagger_api.rb +26 -32
  25. data/lib/cloudmersive-nlp-api-client/api/rephrase_api.rb +6 -7
  26. data/lib/cloudmersive-nlp-api-client/api/segmentation_api.rb +10 -12
  27. data/lib/cloudmersive-nlp-api-client/api/spellcheck_api.rb +10 -12
  28. data/lib/cloudmersive-nlp-api-client/api_client.rb +11 -9
  29. data/lib/cloudmersive-nlp-api-client/api_error.rb +1 -1
  30. data/lib/cloudmersive-nlp-api-client/configuration.rb +2 -2
  31. data/lib/cloudmersive-nlp-api-client/models/check_sentence_request.rb +7 -10
  32. data/lib/cloudmersive-nlp-api-client/models/check_sentence_response.rb +7 -10
  33. data/lib/cloudmersive-nlp-api-client/models/check_word_request.rb +7 -11
  34. data/lib/cloudmersive-nlp-api-client/models/check_word_response.rb +7 -10
  35. data/lib/cloudmersive-nlp-api-client/models/correct_word_in_sentence.rb +7 -10
  36. data/lib/cloudmersive-nlp-api-client/models/entity.rb +7 -11
  37. data/lib/cloudmersive-nlp-api-client/models/extract_entities_request.rb +7 -10
  38. data/lib/cloudmersive-nlp-api-client/models/extract_entities_response.rb +7 -10
  39. data/lib/cloudmersive-nlp-api-client/models/get_words_request.rb +7 -11
  40. data/lib/cloudmersive-nlp-api-client/models/get_words_response.rb +7 -10
  41. data/lib/cloudmersive-nlp-api-client/models/hate_speech_analysis_request.rb +186 -0
  42. data/lib/cloudmersive-nlp-api-client/models/hate_speech_analysis_response.rb +206 -0
  43. data/lib/cloudmersive-nlp-api-client/models/language_detection_request.rb +7 -10
  44. data/lib/cloudmersive-nlp-api-client/models/language_detection_response.rb +7 -10
  45. data/lib/cloudmersive-nlp-api-client/models/language_translation_request.rb +7 -10
  46. data/lib/cloudmersive-nlp-api-client/models/language_translation_response.rb +7 -10
  47. data/lib/cloudmersive-nlp-api-client/models/parse_request.rb +7 -10
  48. data/lib/cloudmersive-nlp-api-client/models/parse_response.rb +7 -10
  49. data/lib/cloudmersive-nlp-api-client/models/pos_request.rb +7 -10
  50. data/lib/cloudmersive-nlp-api-client/models/pos_response.rb +7 -10
  51. data/lib/cloudmersive-nlp-api-client/models/pos_sentence.rb +7 -10
  52. data/lib/cloudmersive-nlp-api-client/models/pos_tagged_word.rb +7 -10
  53. data/lib/cloudmersive-nlp-api-client/models/profanity_analysis_request.rb +7 -10
  54. data/lib/cloudmersive-nlp-api-client/models/profanity_analysis_response.rb +7 -10
  55. data/lib/cloudmersive-nlp-api-client/models/rephrase_request.rb +7 -10
  56. data/lib/cloudmersive-nlp-api-client/models/rephrase_response.rb +7 -10
  57. data/lib/cloudmersive-nlp-api-client/models/rephrased_sentence.rb +7 -10
  58. data/lib/cloudmersive-nlp-api-client/models/rephrased_sentence_option.rb +7 -10
  59. data/lib/cloudmersive-nlp-api-client/models/sentence_segmentation_request.rb +7 -11
  60. data/lib/cloudmersive-nlp-api-client/models/sentence_segmentation_response.rb +7 -11
  61. data/lib/cloudmersive-nlp-api-client/models/sentiment_analysis_request.rb +7 -10
  62. data/lib/cloudmersive-nlp-api-client/models/sentiment_analysis_response.rb +7 -10
  63. data/lib/cloudmersive-nlp-api-client/models/similarity_analysis_request.rb +196 -0
  64. data/lib/cloudmersive-nlp-api-client/models/similarity_analysis_response.rb +206 -0
  65. data/lib/cloudmersive-nlp-api-client/models/subjectivity_analysis_request.rb +7 -10
  66. data/lib/cloudmersive-nlp-api-client/models/subjectivity_analysis_response.rb +7 -10
  67. data/lib/cloudmersive-nlp-api-client/models/word_position.rb +7 -11
  68. data/lib/cloudmersive-nlp-api-client/version.rb +2 -2
  69. data/spec/api/analytics_api_spec.rb +28 -4
  70. data/spec/api/extract_entities_api_spec.rb +2 -2
  71. data/spec/api/language_detection_api_spec.rb +2 -2
  72. data/spec/api/language_translation_api_spec.rb +29 -5
  73. data/spec/api/parse_api_spec.rb +2 -2
  74. data/spec/api/pos_tagger_api_spec.rb +7 -7
  75. data/spec/api/rephrase_api_spec.rb +2 -2
  76. data/spec/api/segmentation_api_spec.rb +3 -3
  77. data/spec/api/spellcheck_api_spec.rb +3 -3
  78. data/spec/api_client_spec.rb +52 -35
  79. data/spec/configuration_spec.rb +9 -9
  80. data/spec/models/check_sentence_request_spec.rb +2 -3
  81. data/spec/models/check_sentence_response_spec.rb +3 -4
  82. data/spec/models/check_word_request_spec.rb +2 -3
  83. data/spec/models/check_word_response_spec.rb +3 -4
  84. data/spec/models/correct_word_in_sentence_spec.rb +4 -5
  85. data/spec/models/entity_spec.rb +3 -4
  86. data/spec/models/extract_entities_request_spec.rb +2 -3
  87. data/spec/models/extract_entities_response_spec.rb +3 -4
  88. data/spec/models/get_words_request_spec.rb +2 -3
  89. data/spec/models/get_words_response_spec.rb +2 -3
  90. data/spec/models/hate_speech_analysis_request_spec.rb +41 -0
  91. data/spec/models/hate_speech_analysis_response_spec.rb +53 -0
  92. data/spec/models/language_detection_request_spec.rb +2 -3
  93. data/spec/models/language_detection_response_spec.rb +4 -5
  94. data/spec/models/language_translation_request_spec.rb +2 -3
  95. data/spec/models/language_translation_response_spec.rb +4 -5
  96. data/spec/models/parse_request_spec.rb +2 -3
  97. data/spec/models/parse_response_spec.rb +2 -3
  98. data/spec/models/pos_request_spec.rb +2 -3
  99. data/spec/models/pos_response_spec.rb +2 -3
  100. data/spec/models/pos_sentence_spec.rb +2 -3
  101. data/spec/models/pos_tagged_word_spec.rb +3 -4
  102. data/spec/models/profanity_analysis_request_spec.rb +2 -3
  103. data/spec/models/profanity_analysis_response_spec.rb +4 -5
  104. data/spec/models/rephrase_request_spec.rb +3 -4
  105. data/spec/models/rephrase_response_spec.rb +4 -5
  106. data/spec/models/rephrased_sentence_option_spec.rb +3 -4
  107. data/spec/models/rephrased_sentence_spec.rb +4 -5
  108. data/spec/models/sentence_segmentation_request_spec.rb +2 -3
  109. data/spec/models/sentence_segmentation_response_spec.rb +4 -5
  110. data/spec/models/sentiment_analysis_request_spec.rb +2 -3
  111. data/spec/models/sentiment_analysis_response_spec.rb +5 -6
  112. data/spec/models/similarity_analysis_request_spec.rb +47 -0
  113. data/spec/models/similarity_analysis_response_spec.rb +53 -0
  114. data/spec/models/subjectivity_analysis_request_spec.rb +2 -3
  115. data/spec/models/subjectivity_analysis_response_spec.rb +4 -5
  116. data/spec/models/word_position_spec.rb +5 -6
  117. data/spec/spec_helper.rb +1 -1
  118. 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.3.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -18,7 +18,6 @@ module CloudmersiveNlpApiClient
18
18
  # Text to detect the language of
19
19
  attr_accessor :text_to_detect
20
20
 
21
-
22
21
  # Attribute mapping from ruby-style variable name to JSON key.
23
22
  def self.attribute_map
24
23
  {
@@ -39,25 +38,24 @@ module CloudmersiveNlpApiClient
39
38
  return unless attributes.is_a?(Hash)
40
39
 
41
40
  # convert string to symbol for hash key
42
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
41
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
43
42
 
44
43
  if attributes.has_key?(:'textToDetect')
45
44
  self.text_to_detect = attributes[:'textToDetect']
46
45
  end
47
-
48
46
  end
49
47
 
50
48
  # Show invalid properties with the reasons. Usually used together with valid?
51
49
  # @return Array for valid properties with the reasons
52
50
  def list_invalid_properties
53
51
  invalid_properties = Array.new
54
- return invalid_properties
52
+ invalid_properties
55
53
  end
56
54
 
57
55
  # Check to see if the all the properties in the model are valid
58
56
  # @return true if the model is valid
59
57
  def valid?
60
- return true
58
+ true
61
59
  end
62
60
 
63
61
  # Checks equality by comparing each attribute.
@@ -87,10 +85,10 @@ module CloudmersiveNlpApiClient
87
85
  return nil unless attributes.is_a?(Hash)
88
86
  self.class.swagger_types.each_pair do |key, type|
89
87
  if type =~ /\AArray<(.*)>/i
90
- # check to ensure the input is an array given that the the attribute
88
+ # check to ensure the input is an array given that the attribute
91
89
  # is documented as an array but the input is not
92
90
  if attributes[self.class.attribute_map[key]].is_a?(Array)
93
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
91
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
94
92
  end
95
93
  elsif !attributes[self.class.attribute_map[key]].nil?
96
94
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -172,7 +170,7 @@ module CloudmersiveNlpApiClient
172
170
  # @return [Hash] Returns the value in the form of hash
173
171
  def _to_hash(value)
174
172
  if value.is_a?(Array)
175
- value.compact.map{ |v| _to_hash(v) }
173
+ value.compact.map { |v| _to_hash(v) }
176
174
  elsif value.is_a?(Hash)
177
175
  {}.tap do |hash|
178
176
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -185,5 +183,4 @@ module CloudmersiveNlpApiClient
185
183
  end
186
184
 
187
185
  end
188
-
189
186
  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.3.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -24,7 +24,6 @@ module CloudmersiveNlpApiClient
24
24
  # The full name (in English) of the detected language
25
25
  attr_accessor :detected_language_full_name
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?(:'DetectedLanguage_FullName')
63
62
  self.detected_language_full_name = attributes[:'DetectedLanguage_FullName']
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
- return invalid_properties
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
- return true
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 the attribute
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,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.3.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -18,7 +18,6 @@ module CloudmersiveNlpApiClient
18
18
  # Text to translate
19
19
  attr_accessor :text_to_translate
20
20
 
21
-
22
21
  # Attribute mapping from ruby-style variable name to JSON key.
23
22
  def self.attribute_map
24
23
  {
@@ -39,25 +38,24 @@ module CloudmersiveNlpApiClient
39
38
  return unless attributes.is_a?(Hash)
40
39
 
41
40
  # convert string to symbol for hash key
42
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
41
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
43
42
 
44
43
  if attributes.has_key?(:'TextToTranslate')
45
44
  self.text_to_translate = attributes[:'TextToTranslate']
46
45
  end
47
-
48
46
  end
49
47
 
50
48
  # Show invalid properties with the reasons. Usually used together with valid?
51
49
  # @return Array for valid properties with the reasons
52
50
  def list_invalid_properties
53
51
  invalid_properties = Array.new
54
- return invalid_properties
52
+ invalid_properties
55
53
  end
56
54
 
57
55
  # Check to see if the all the properties in the model are valid
58
56
  # @return true if the model is valid
59
57
  def valid?
60
- return true
58
+ true
61
59
  end
62
60
 
63
61
  # Checks equality by comparing each attribute.
@@ -87,10 +85,10 @@ module CloudmersiveNlpApiClient
87
85
  return nil unless attributes.is_a?(Hash)
88
86
  self.class.swagger_types.each_pair do |key, type|
89
87
  if type =~ /\AArray<(.*)>/i
90
- # check to ensure the input is an array given that the the attribute
88
+ # check to ensure the input is an array given that the attribute
91
89
  # is documented as an array but the input is not
92
90
  if attributes[self.class.attribute_map[key]].is_a?(Array)
93
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
91
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
94
92
  end
95
93
  elsif !attributes[self.class.attribute_map[key]].nil?
96
94
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -172,7 +170,7 @@ module CloudmersiveNlpApiClient
172
170
  # @return [Hash] Returns the value in the form of hash
173
171
  def _to_hash(value)
174
172
  if value.is_a?(Array)
175
- value.compact.map{ |v| _to_hash(v) }
173
+ value.compact.map { |v| _to_hash(v) }
176
174
  elsif value.is_a?(Hash)
177
175
  {}.tap do |hash|
178
176
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -185,5 +183,4 @@ module CloudmersiveNlpApiClient
185
183
  end
186
184
 
187
185
  end
188
-
189
186
  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.3.1
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
- return invalid_properties
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
- return true
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 the attribute
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,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.3.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -18,7 +18,6 @@ module CloudmersiveNlpApiClient
18
18
  # Input string to linguistically parse
19
19
  attr_accessor :input_string
20
20
 
21
-
22
21
  # Attribute mapping from ruby-style variable name to JSON key.
23
22
  def self.attribute_map
24
23
  {
@@ -39,25 +38,24 @@ module CloudmersiveNlpApiClient
39
38
  return unless attributes.is_a?(Hash)
40
39
 
41
40
  # convert string to symbol for hash key
42
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
41
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
43
42
 
44
43
  if attributes.has_key?(:'InputString')
45
44
  self.input_string = attributes[:'InputString']
46
45
  end
47
-
48
46
  end
49
47
 
50
48
  # Show invalid properties with the reasons. Usually used together with valid?
51
49
  # @return Array for valid properties with the reasons
52
50
  def list_invalid_properties
53
51
  invalid_properties = Array.new
54
- return invalid_properties
52
+ invalid_properties
55
53
  end
56
54
 
57
55
  # Check to see if the all the properties in the model are valid
58
56
  # @return true if the model is valid
59
57
  def valid?
60
- return true
58
+ true
61
59
  end
62
60
 
63
61
  # Checks equality by comparing each attribute.
@@ -87,10 +85,10 @@ module CloudmersiveNlpApiClient
87
85
  return nil unless attributes.is_a?(Hash)
88
86
  self.class.swagger_types.each_pair do |key, type|
89
87
  if type =~ /\AArray<(.*)>/i
90
- # check to ensure the input is an array given that the the attribute
88
+ # check to ensure the input is an array given that the attribute
91
89
  # is documented as an array but the input is not
92
90
  if attributes[self.class.attribute_map[key]].is_a?(Array)
93
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
91
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
94
92
  end
95
93
  elsif !attributes[self.class.attribute_map[key]].nil?
96
94
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -172,7 +170,7 @@ module CloudmersiveNlpApiClient
172
170
  # @return [Hash] Returns the value in the form of hash
173
171
  def _to_hash(value)
174
172
  if value.is_a?(Array)
175
- value.compact.map{ |v| _to_hash(v) }
173
+ value.compact.map { |v| _to_hash(v) }
176
174
  elsif value.is_a?(Hash)
177
175
  {}.tap do |hash|
178
176
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -185,5 +183,4 @@ module CloudmersiveNlpApiClient
185
183
  end
186
184
 
187
185
  end
188
-
189
186
  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.3.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -18,7 +18,6 @@ module CloudmersiveNlpApiClient
18
18
  # Parse tree in Penn Treebank syntax tree format
19
19
  attr_accessor :parse_tree
20
20
 
21
-
22
21
  # Attribute mapping from ruby-style variable name to JSON key.
23
22
  def self.attribute_map
24
23
  {
@@ -39,25 +38,24 @@ module CloudmersiveNlpApiClient
39
38
  return unless attributes.is_a?(Hash)
40
39
 
41
40
  # convert string to symbol for hash key
42
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
41
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
43
42
 
44
43
  if attributes.has_key?(:'ParseTree')
45
44
  self.parse_tree = attributes[:'ParseTree']
46
45
  end
47
-
48
46
  end
49
47
 
50
48
  # Show invalid properties with the reasons. Usually used together with valid?
51
49
  # @return Array for valid properties with the reasons
52
50
  def list_invalid_properties
53
51
  invalid_properties = Array.new
54
- return invalid_properties
52
+ invalid_properties
55
53
  end
56
54
 
57
55
  # Check to see if the all the properties in the model are valid
58
56
  # @return true if the model is valid
59
57
  def valid?
60
- return true
58
+ true
61
59
  end
62
60
 
63
61
  # Checks equality by comparing each attribute.
@@ -87,10 +85,10 @@ module CloudmersiveNlpApiClient
87
85
  return nil unless attributes.is_a?(Hash)
88
86
  self.class.swagger_types.each_pair do |key, type|
89
87
  if type =~ /\AArray<(.*)>/i
90
- # check to ensure the input is an array given that the the attribute
88
+ # check to ensure the input is an array given that the attribute
91
89
  # is documented as an array but the input is not
92
90
  if attributes[self.class.attribute_map[key]].is_a?(Array)
93
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
91
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
94
92
  end
95
93
  elsif !attributes[self.class.attribute_map[key]].nil?
96
94
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -172,7 +170,7 @@ module CloudmersiveNlpApiClient
172
170
  # @return [Hash] Returns the value in the form of hash
173
171
  def _to_hash(value)
174
172
  if value.is_a?(Array)
175
- value.compact.map{ |v| _to_hash(v) }
173
+ value.compact.map { |v| _to_hash(v) }
176
174
  elsif value.is_a?(Hash)
177
175
  {}.tap do |hash|
178
176
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -185,5 +183,4 @@ module CloudmersiveNlpApiClient
185
183
  end
186
184
 
187
185
  end
188
-
189
186
  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.3.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -18,7 +18,6 @@ module CloudmersiveNlpApiClient
18
18
  # Input text string
19
19
  attr_accessor :input_text
20
20
 
21
-
22
21
  # Attribute mapping from ruby-style variable name to JSON key.
23
22
  def self.attribute_map
24
23
  {
@@ -39,25 +38,24 @@ module CloudmersiveNlpApiClient
39
38
  return unless attributes.is_a?(Hash)
40
39
 
41
40
  # convert string to symbol for hash key
42
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
41
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
43
42
 
44
43
  if attributes.has_key?(:'InputText')
45
44
  self.input_text = attributes[:'InputText']
46
45
  end
47
-
48
46
  end
49
47
 
50
48
  # Show invalid properties with the reasons. Usually used together with valid?
51
49
  # @return Array for valid properties with the reasons
52
50
  def list_invalid_properties
53
51
  invalid_properties = Array.new
54
- return invalid_properties
52
+ invalid_properties
55
53
  end
56
54
 
57
55
  # Check to see if the all the properties in the model are valid
58
56
  # @return true if the model is valid
59
57
  def valid?
60
- return true
58
+ true
61
59
  end
62
60
 
63
61
  # Checks equality by comparing each attribute.
@@ -87,10 +85,10 @@ module CloudmersiveNlpApiClient
87
85
  return nil unless attributes.is_a?(Hash)
88
86
  self.class.swagger_types.each_pair do |key, type|
89
87
  if type =~ /\AArray<(.*)>/i
90
- # check to ensure the input is an array given that the the attribute
88
+ # check to ensure the input is an array given that the attribute
91
89
  # is documented as an array but the input is not
92
90
  if attributes[self.class.attribute_map[key]].is_a?(Array)
93
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
91
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
94
92
  end
95
93
  elsif !attributes[self.class.attribute_map[key]].nil?
96
94
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -172,7 +170,7 @@ module CloudmersiveNlpApiClient
172
170
  # @return [Hash] Returns the value in the form of hash
173
171
  def _to_hash(value)
174
172
  if value.is_a?(Array)
175
- value.compact.map{ |v| _to_hash(v) }
173
+ value.compact.map { |v| _to_hash(v) }
176
174
  elsif value.is_a?(Hash)
177
175
  {}.tap do |hash|
178
176
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -185,5 +183,4 @@ module CloudmersiveNlpApiClient
185
183
  end
186
184
 
187
185
  end
188
-
189
186
  end