cloudmersive-nlp-api-client 2.0.4 → 2.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +25 -10
  3. data/docs/AnalyticsApi.md +283 -0
  4. data/docs/ExtractEntitiesApi.md +1 -1
  5. data/docs/HateSpeechAnalysisRequest.md +8 -0
  6. data/docs/HateSpeechAnalysisResponse.md +10 -0
  7. data/docs/LanguageDetectionApi.md +1 -1
  8. data/docs/LanguageTranslationApi.md +4 -4
  9. data/docs/ParseApi.md +1 -1
  10. data/docs/PosTaggerApi.md +6 -6
  11. data/docs/ProfanityAnalysisRequest.md +8 -0
  12. data/docs/ProfanityAnalysisResponse.md +10 -0
  13. data/docs/RephraseApi.md +6 -6
  14. data/docs/SegmentationApi.md +2 -2
  15. data/docs/SentimentAnalysisRequest.md +8 -0
  16. data/docs/SentimentAnalysisResponse.md +11 -0
  17. data/docs/SimilarityAnalysisRequest.md +9 -0
  18. data/docs/SimilarityAnalysisResponse.md +10 -0
  19. data/docs/SpellcheckApi.md +2 -2
  20. data/docs/SubjectivityAnalysisRequest.md +8 -0
  21. data/docs/SubjectivityAnalysisResponse.md +10 -0
  22. data/lib/cloudmersive-nlp-api-client.rb +11 -0
  23. data/lib/cloudmersive-nlp-api-client/api/analytics_api.rb +298 -0
  24. data/lib/cloudmersive-nlp-api-client/api/extract_entities_api.rb +1 -1
  25. data/lib/cloudmersive-nlp-api-client/api/language_detection_api.rb +1 -1
  26. data/lib/cloudmersive-nlp-api-client/api/language_translation_api.rb +4 -4
  27. data/lib/cloudmersive-nlp-api-client/api/parse_api.rb +1 -1
  28. data/lib/cloudmersive-nlp-api-client/api/pos_tagger_api.rb +6 -6
  29. data/lib/cloudmersive-nlp-api-client/api/rephrase_api.rb +7 -7
  30. data/lib/cloudmersive-nlp-api-client/api/segmentation_api.rb +2 -2
  31. data/lib/cloudmersive-nlp-api-client/api/spellcheck_api.rb +2 -2
  32. data/lib/cloudmersive-nlp-api-client/models/hate_speech_analysis_request.rb +189 -0
  33. data/lib/cloudmersive-nlp-api-client/models/hate_speech_analysis_response.rb +209 -0
  34. data/lib/cloudmersive-nlp-api-client/models/profanity_analysis_request.rb +189 -0
  35. data/lib/cloudmersive-nlp-api-client/models/profanity_analysis_response.rb +209 -0
  36. data/lib/cloudmersive-nlp-api-client/models/sentiment_analysis_request.rb +189 -0
  37. data/lib/cloudmersive-nlp-api-client/models/sentiment_analysis_response.rb +219 -0
  38. data/lib/cloudmersive-nlp-api-client/models/similarity_analysis_request.rb +199 -0
  39. data/lib/cloudmersive-nlp-api-client/models/similarity_analysis_response.rb +209 -0
  40. data/lib/cloudmersive-nlp-api-client/models/subjectivity_analysis_request.rb +189 -0
  41. data/lib/cloudmersive-nlp-api-client/models/subjectivity_analysis_response.rb +209 -0
  42. data/lib/cloudmersive-nlp-api-client/version.rb +1 -1
  43. data/spec/api/analytics_api_spec.rb +95 -0
  44. data/spec/api/rephrase_api_spec.rb +2 -2
  45. data/spec/models/hate_speech_analysis_request_spec.rb +42 -0
  46. data/spec/models/hate_speech_analysis_response_spec.rb +54 -0
  47. data/spec/models/profanity_analysis_request_spec.rb +42 -0
  48. data/spec/models/profanity_analysis_response_spec.rb +54 -0
  49. data/spec/models/sentiment_analysis_request_spec.rb +42 -0
  50. data/spec/models/sentiment_analysis_response_spec.rb +60 -0
  51. data/spec/models/similarity_analysis_request_spec.rb +48 -0
  52. data/spec/models/similarity_analysis_response_spec.rb +54 -0
  53. data/spec/models/subjectivity_analysis_request_spec.rb +42 -0
  54. data/spec/models/subjectivity_analysis_response_spec.rb +54 -0
  55. metadata +35 -2
@@ -32,13 +32,13 @@ describe 'RephraseApi' do
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for rephrase_translate_deu_to_eng
35
+ # unit tests for rephrase_english_rephrase_sentence_by_sentence
36
36
  # Rephrase, paraphrase English text sentence-by-sentence using Deep Learning AI
37
37
  # Automatically rephrases or paraphrases input text in English sentence by sentence using advanced Deep Learning and Neural NLP. Creates multiple reprhasing candidates per input sentence, from 1 to 10 possible rephrasings of the original sentence. Seeks to preserve original semantic meaning in rephrased output candidates. Consumes 1-2 API calls per output rephrasing option generated, per sentence.
38
38
  # @param input Input rephrase request
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @return [RephraseResponse]
41
- describe 'rephrase_translate_deu_to_eng test' do
41
+ describe 'rephrase_english_rephrase_sentence_by_sentence test' 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
@@ -0,0 +1,42 @@
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.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveNlpApiClient::HateSpeechAnalysisRequest
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'HateSpeechAnalysisRequest' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveNlpApiClient::HateSpeechAnalysisRequest.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of HateSpeechAnalysisRequest' do
31
+ it 'should create an instance of HateSpeechAnalysisRequest' do
32
+ expect(@instance).to be_instance_of(CloudmersiveNlpApiClient::HateSpeechAnalysisRequest)
33
+ end
34
+ end
35
+ describe 'test attribute "text_to_analyze"' 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
+ end
42
+
@@ -0,0 +1,54 @@
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.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveNlpApiClient::HateSpeechAnalysisResponse
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'HateSpeechAnalysisResponse' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveNlpApiClient::HateSpeechAnalysisResponse.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of HateSpeechAnalysisResponse' do
31
+ it 'should create an instance of HateSpeechAnalysisResponse' do
32
+ expect(@instance).to be_instance_of(CloudmersiveNlpApiClient::HateSpeechAnalysisResponse)
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 "hate_speech_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
54
+
@@ -0,0 +1,42 @@
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.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveNlpApiClient::ProfanityAnalysisRequest
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'ProfanityAnalysisRequest' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveNlpApiClient::ProfanityAnalysisRequest.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of ProfanityAnalysisRequest' do
31
+ it 'should create an instance of ProfanityAnalysisRequest' do
32
+ expect(@instance).to be_instance_of(CloudmersiveNlpApiClient::ProfanityAnalysisRequest)
33
+ end
34
+ end
35
+ describe 'test attribute "text_to_analyze"' 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
+ end
42
+
@@ -0,0 +1,54 @@
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.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveNlpApiClient::ProfanityAnalysisResponse
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'ProfanityAnalysisResponse' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveNlpApiClient::ProfanityAnalysisResponse.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of ProfanityAnalysisResponse' do
31
+ it 'should create an instance of ProfanityAnalysisResponse' do
32
+ expect(@instance).to be_instance_of(CloudmersiveNlpApiClient::ProfanityAnalysisResponse)
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 "profanity_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
54
+
@@ -0,0 +1,42 @@
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.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveNlpApiClient::SentimentAnalysisRequest
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'SentimentAnalysisRequest' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveNlpApiClient::SentimentAnalysisRequest.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of SentimentAnalysisRequest' do
31
+ it 'should create an instance of SentimentAnalysisRequest' do
32
+ expect(@instance).to be_instance_of(CloudmersiveNlpApiClient::SentimentAnalysisRequest)
33
+ end
34
+ end
35
+ describe 'test attribute "text_to_analyze"' 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
+ end
42
+
@@ -0,0 +1,60 @@
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.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveNlpApiClient::SentimentAnalysisResponse
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'SentimentAnalysisResponse' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveNlpApiClient::SentimentAnalysisResponse.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of SentimentAnalysisResponse' do
31
+ it 'should create an instance of SentimentAnalysisResponse' do
32
+ expect(@instance).to be_instance_of(CloudmersiveNlpApiClient::SentimentAnalysisResponse)
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 "sentiment_classification_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 "sentiment_score_result"' 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
+ describe 'test attribute "sentence_count"' do
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
+ end
60
+
@@ -0,0 +1,48 @@
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.3.1
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
48
+
@@ -0,0 +1,54 @@
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.3.1
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
54
+
@@ -0,0 +1,42 @@
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.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveNlpApiClient::SubjectivityAnalysisRequest
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'SubjectivityAnalysisRequest' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveNlpApiClient::SubjectivityAnalysisRequest.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of SubjectivityAnalysisRequest' do
31
+ it 'should create an instance of SubjectivityAnalysisRequest' do
32
+ expect(@instance).to be_instance_of(CloudmersiveNlpApiClient::SubjectivityAnalysisRequest)
33
+ end
34
+ end
35
+ describe 'test attribute "text_to_analyze"' 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
+ end
42
+