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
|
|
@@ -34,15 +34,14 @@ describe 'RephraseRequest' do
|
|
34
34
|
end
|
35
35
|
describe 'test attribute "text_to_translate"' do
|
36
36
|
it 'should work' do
|
37
|
-
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
41
|
describe 'test attribute "target_rephrasing_count"' do
|
42
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
|
46
46
|
|
47
47
|
end
|
48
|
-
|
@@ -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
|
|
@@ -34,21 +34,20 @@ describe 'RephraseResponse' do
|
|
34
34
|
end
|
35
35
|
describe 'test attribute "successful"' do
|
36
36
|
it 'should work' do
|
37
|
-
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
41
|
describe 'test attribute "rephrased_results"' do
|
42
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
|
46
46
|
|
47
47
|
describe 'test attribute "sentence_count"' do
|
48
48
|
it 'should work' do
|
49
|
-
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
53
|
end
|
54
|
-
|
@@ -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
|
|
@@ -34,15 +34,14 @@ describe 'RephrasedSentenceOption' do
|
|
34
34
|
end
|
35
35
|
describe 'test attribute "rephrased_option_index"' do
|
36
36
|
it 'should work' do
|
37
|
-
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
41
|
describe 'test attribute "rephrased_sentence_text"' do
|
42
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
|
46
46
|
|
47
47
|
end
|
48
|
-
|
@@ -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
|
|
@@ -34,21 +34,20 @@ describe 'RephrasedSentence' do
|
|
34
34
|
end
|
35
35
|
describe 'test attribute "sentence_index"' do
|
36
36
|
it 'should work' do
|
37
|
-
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
41
|
describe 'test attribute "original_sentence_text"' do
|
42
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
|
46
46
|
|
47
47
|
describe 'test attribute "rephrasings"' do
|
48
48
|
it 'should work' do
|
49
|
-
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
53
|
end
|
54
|
-
|
@@ -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
|
|
@@ -34,9 +34,8 @@ describe 'SentenceSegmentationRequest' do
|
|
34
34
|
end
|
35
35
|
describe 'test attribute "input_string"' do
|
36
36
|
it 'should work' do
|
37
|
-
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
41
|
end
|
42
|
-
|
@@ -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
|
|
@@ -34,21 +34,20 @@ describe 'SentenceSegmentationResponse' do
|
|
34
34
|
end
|
35
35
|
describe 'test attribute "successful"' do
|
36
36
|
it 'should work' do
|
37
|
-
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
41
|
describe 'test attribute "sentences"' do
|
42
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
|
46
46
|
|
47
47
|
describe 'test attribute "sentence_count"' do
|
48
48
|
it 'should work' do
|
49
|
-
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
53
|
end
|
54
|
-
|
@@ -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
|
|
@@ -34,9 +34,8 @@ describe 'SentimentAnalysisRequest' do
|
|
34
34
|
end
|
35
35
|
describe 'test attribute "text_to_analyze"' do
|
36
36
|
it 'should work' do
|
37
|
-
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
41
|
end
|
42
|
-
|
@@ -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
|
|
@@ -34,27 +34,26 @@ describe 'SentimentAnalysisResponse' do
|
|
34
34
|
end
|
35
35
|
describe 'test attribute "successful"' do
|
36
36
|
it 'should work' do
|
37
|
-
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
41
|
describe 'test attribute "sentiment_classification_result"' do
|
42
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
|
46
46
|
|
47
47
|
describe 'test attribute "sentiment_score_result"' do
|
48
48
|
it 'should work' do
|
49
|
-
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
53
|
describe 'test attribute "sentence_count"' do
|
54
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
|
58
58
|
|
59
59
|
end
|
60
|
-
|
@@ -0,0 +1,47 @@
|
|
1
|
+
=begin
|
2
|
+
#nlpapiv2
|
3
|
+
|
4
|
+
#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.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for CloudmersiveNlpApiClient::SimilarityAnalysisRequest
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'SimilarityAnalysisRequest' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = CloudmersiveNlpApiClient::SimilarityAnalysisRequest.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of SimilarityAnalysisRequest' do
|
31
|
+
it 'should create an instance of SimilarityAnalysisRequest' do
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveNlpApiClient::SimilarityAnalysisRequest)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "text_to_analyze1"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "text_to_analyze2"' 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
|
+
|
47
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
=begin
|
2
|
+
#nlpapiv2
|
3
|
+
|
4
|
+
#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.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for CloudmersiveNlpApiClient::SimilarityAnalysisResponse
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'SimilarityAnalysisResponse' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = CloudmersiveNlpApiClient::SimilarityAnalysisResponse.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of SimilarityAnalysisResponse' do
|
31
|
+
it 'should create an instance of SimilarityAnalysisResponse' do
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveNlpApiClient::SimilarityAnalysisResponse)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "successful"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "similarity_score_result"' 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
|
+
|
47
|
+
describe 'test attribute "sentence_count"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
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
|
|
@@ -34,9 +34,8 @@ describe 'SubjectivityAnalysisRequest' do
|
|
34
34
|
end
|
35
35
|
describe 'test attribute "text_to_analyze"' do
|
36
36
|
it 'should work' do
|
37
|
-
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
41
|
end
|
42
|
-
|
@@ -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
|
|
@@ -34,21 +34,20 @@ describe 'SubjectivityAnalysisResponse' do
|
|
34
34
|
end
|
35
35
|
describe 'test attribute "successful"' do
|
36
36
|
it 'should work' do
|
37
|
-
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
41
|
describe 'test attribute "subjectivity_score_result"' do
|
42
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
|
46
46
|
|
47
47
|
describe 'test attribute "sentence_count"' do
|
48
48
|
it 'should work' do
|
49
|
-
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
53
|
end
|
54
|
-
|
@@ -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
|
|
@@ -34,27 +34,26 @@ describe 'WordPosition' do
|
|
34
34
|
end
|
35
35
|
describe 'test attribute "word"' do
|
36
36
|
it 'should work' do
|
37
|
-
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
41
|
describe 'test attribute "word_index"' do
|
42
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
|
46
46
|
|
47
47
|
describe 'test attribute "start_position"' do
|
48
48
|
it 'should work' do
|
49
|
-
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
53
|
describe 'test attribute "end_position"' do
|
54
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
|
58
58
|
|
59
59
|
end
|
60
|
-
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudmersive-nlp-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cloudmersive
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -215,6 +215,8 @@ files:
|
|
215
215
|
- "./docs/ExtractEntitiesResponse.md"
|
216
216
|
- "./docs/GetWordsRequest.md"
|
217
217
|
- "./docs/GetWordsResponse.md"
|
218
|
+
- "./docs/HateSpeechAnalysisRequest.md"
|
219
|
+
- "./docs/HateSpeechAnalysisResponse.md"
|
218
220
|
- "./docs/LanguageDetectionApi.md"
|
219
221
|
- "./docs/LanguageDetectionRequest.md"
|
220
222
|
- "./docs/LanguageDetectionResponse.md"
|
@@ -241,6 +243,8 @@ files:
|
|
241
243
|
- "./docs/SentenceSegmentationResponse.md"
|
242
244
|
- "./docs/SentimentAnalysisRequest.md"
|
243
245
|
- "./docs/SentimentAnalysisResponse.md"
|
246
|
+
- "./docs/SimilarityAnalysisRequest.md"
|
247
|
+
- "./docs/SimilarityAnalysisResponse.md"
|
244
248
|
- "./docs/SpellcheckApi.md"
|
245
249
|
- "./docs/SubjectivityAnalysisRequest.md"
|
246
250
|
- "./docs/SubjectivityAnalysisResponse.md"
|
@@ -269,6 +273,8 @@ files:
|
|
269
273
|
- "./lib/cloudmersive-nlp-api-client/models/extract_entities_response.rb"
|
270
274
|
- "./lib/cloudmersive-nlp-api-client/models/get_words_request.rb"
|
271
275
|
- "./lib/cloudmersive-nlp-api-client/models/get_words_response.rb"
|
276
|
+
- "./lib/cloudmersive-nlp-api-client/models/hate_speech_analysis_request.rb"
|
277
|
+
- "./lib/cloudmersive-nlp-api-client/models/hate_speech_analysis_response.rb"
|
272
278
|
- "./lib/cloudmersive-nlp-api-client/models/language_detection_request.rb"
|
273
279
|
- "./lib/cloudmersive-nlp-api-client/models/language_detection_response.rb"
|
274
280
|
- "./lib/cloudmersive-nlp-api-client/models/language_translation_request.rb"
|
@@ -289,6 +295,8 @@ files:
|
|
289
295
|
- "./lib/cloudmersive-nlp-api-client/models/sentence_segmentation_response.rb"
|
290
296
|
- "./lib/cloudmersive-nlp-api-client/models/sentiment_analysis_request.rb"
|
291
297
|
- "./lib/cloudmersive-nlp-api-client/models/sentiment_analysis_response.rb"
|
298
|
+
- "./lib/cloudmersive-nlp-api-client/models/similarity_analysis_request.rb"
|
299
|
+
- "./lib/cloudmersive-nlp-api-client/models/similarity_analysis_response.rb"
|
292
300
|
- "./lib/cloudmersive-nlp-api-client/models/subjectivity_analysis_request.rb"
|
293
301
|
- "./lib/cloudmersive-nlp-api-client/models/subjectivity_analysis_response.rb"
|
294
302
|
- "./lib/cloudmersive-nlp-api-client/models/word_position.rb"
|
@@ -314,6 +322,8 @@ files:
|
|
314
322
|
- "./spec/models/extract_entities_response_spec.rb"
|
315
323
|
- "./spec/models/get_words_request_spec.rb"
|
316
324
|
- "./spec/models/get_words_response_spec.rb"
|
325
|
+
- "./spec/models/hate_speech_analysis_request_spec.rb"
|
326
|
+
- "./spec/models/hate_speech_analysis_response_spec.rb"
|
317
327
|
- "./spec/models/language_detection_request_spec.rb"
|
318
328
|
- "./spec/models/language_detection_response_spec.rb"
|
319
329
|
- "./spec/models/language_translation_request_spec.rb"
|
@@ -334,6 +344,8 @@ files:
|
|
334
344
|
- "./spec/models/sentence_segmentation_response_spec.rb"
|
335
345
|
- "./spec/models/sentiment_analysis_request_spec.rb"
|
336
346
|
- "./spec/models/sentiment_analysis_response_spec.rb"
|
347
|
+
- "./spec/models/similarity_analysis_request_spec.rb"
|
348
|
+
- "./spec/models/similarity_analysis_response_spec.rb"
|
337
349
|
- "./spec/models/subjectivity_analysis_request_spec.rb"
|
338
350
|
- "./spec/models/subjectivity_analysis_response_spec.rb"
|
339
351
|
- "./spec/models/word_position_spec.rb"
|