cloudmersive-nlp-api-client 1.2.9 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +38 -35
  3. data/cloudmersive-nlp-api-client.gemspec +3 -3
  4. data/docs/CheckSentenceRequest.md +8 -0
  5. data/docs/CheckSentenceResponse.md +9 -0
  6. data/docs/CheckWordRequest.md +8 -0
  7. data/docs/{CorrectJsonResponse.md → CheckWordResponse.md} +1 -1
  8. data/docs/{CorrectWordInSentenceJsonResponse.md → CorrectWordInSentence.md} +1 -1
  9. data/docs/Entity.md +9 -0
  10. data/docs/{ExtractEntitiesStringApi.md → ExtractEntitiesApi.md} +10 -10
  11. data/docs/ExtractEntitiesRequest.md +8 -0
  12. data/docs/ExtractEntitiesResponse.md +9 -0
  13. data/docs/GetWordsRequest.md +8 -0
  14. data/docs/{GetWordsJsonResponse.md → GetWordsResponse.md} +1 -1
  15. data/docs/LanguageDetectionApi.md +7 -7
  16. data/docs/LanguageDetectionRequest.md +8 -0
  17. data/docs/{ParseStringApi.md → ParseApi.md} +10 -10
  18. data/docs/ParseRequest.md +8 -0
  19. data/docs/ParseResponse.md +8 -0
  20. data/docs/{SpellCheckApi.md → PosTaggerApi.md} +73 -73
  21. data/docs/SegmentationApi.md +118 -0
  22. data/docs/SentenceSegmentationRequest.md +8 -0
  23. data/docs/SentenceSegmentationResponse.md +10 -0
  24. data/docs/SpellcheckApi.md +118 -0
  25. data/lib/cloudmersive-nlp-api-client.rb +23 -15
  26. data/lib/cloudmersive-nlp-api-client/api/{extract_entities_string_api.rb → extract_entities_api.rb} +14 -14
  27. data/lib/cloudmersive-nlp-api-client/api/language_detection_api.rb +15 -15
  28. data/lib/cloudmersive-nlp-api-client/api/{parse_string_api.rb → parse_api.rb} +14 -14
  29. data/lib/cloudmersive-nlp-api-client/api/pos_tagger_api.rb +353 -0
  30. data/lib/cloudmersive-nlp-api-client/api/segmentation_api.rb +133 -0
  31. data/lib/cloudmersive-nlp-api-client/api/spellcheck_api.rb +133 -0
  32. data/lib/cloudmersive-nlp-api-client/api_client.rb +3 -3
  33. data/lib/cloudmersive-nlp-api-client/api_error.rb +3 -3
  34. data/lib/cloudmersive-nlp-api-client/configuration.rb +3 -3
  35. data/lib/cloudmersive-nlp-api-client/models/check_sentence_request.rb +189 -0
  36. data/lib/cloudmersive-nlp-api-client/models/{check_sentence_json_response.rb → check_sentence_response.rb} +5 -5
  37. data/lib/cloudmersive-nlp-api-client/models/{check_json_response.rb → check_word_request.rb} +12 -13
  38. data/lib/cloudmersive-nlp-api-client/models/{correct_json_response.rb → check_word_response.rb} +4 -4
  39. data/lib/cloudmersive-nlp-api-client/models/{correct_word_in_sentence_json_response.rb → correct_word_in_sentence.rb} +4 -4
  40. data/lib/cloudmersive-nlp-api-client/models/entity.rb +197 -0
  41. data/lib/cloudmersive-nlp-api-client/models/extract_entities_request.rb +189 -0
  42. data/lib/cloudmersive-nlp-api-client/models/extract_entities_response.rb +200 -0
  43. data/lib/cloudmersive-nlp-api-client/models/get_words_request.rb +188 -0
  44. data/lib/cloudmersive-nlp-api-client/models/{get_words_json_response.rb → get_words_response.rb} +4 -4
  45. data/lib/cloudmersive-nlp-api-client/models/language_detection_request.rb +189 -0
  46. data/lib/cloudmersive-nlp-api-client/models/language_detection_response.rb +3 -3
  47. data/lib/cloudmersive-nlp-api-client/models/parse_request.rb +189 -0
  48. data/lib/cloudmersive-nlp-api-client/models/parse_response.rb +189 -0
  49. data/lib/cloudmersive-nlp-api-client/models/pos_request.rb +3 -3
  50. data/lib/cloudmersive-nlp-api-client/models/pos_response.rb +3 -3
  51. data/lib/cloudmersive-nlp-api-client/models/pos_sentence.rb +3 -3
  52. data/lib/cloudmersive-nlp-api-client/models/pos_tagged_word.rb +3 -3
  53. data/lib/cloudmersive-nlp-api-client/models/sentence_segmentation_request.rb +188 -0
  54. data/lib/cloudmersive-nlp-api-client/models/sentence_segmentation_response.rb +208 -0
  55. data/lib/cloudmersive-nlp-api-client/models/word_position.rb +3 -3
  56. data/lib/cloudmersive-nlp-api-client/version.rb +4 -4
  57. data/spec/api/{extract_entities_string_api_spec.rb → extract_entities_api_spec.rb} +12 -12
  58. data/spec/api/language_detection_api_spec.rb +6 -6
  59. data/spec/api/{parse_string_api_spec.rb → parse_api_spec.rb} +12 -12
  60. data/spec/api/pos_tagger_api_spec.rb +107 -0
  61. data/spec/api/segmentation_api_spec.rb +59 -0
  62. data/spec/api/spellcheck_api_spec.rb +59 -0
  63. data/spec/api_client_spec.rb +3 -3
  64. data/spec/configuration_spec.rb +3 -3
  65. data/spec/models/check_sentence_request_spec.rb +42 -0
  66. data/spec/models/{check_sentence_json_response_spec.rb → check_sentence_response_spec.rb} +9 -9
  67. data/spec/models/{check_json_response_spec.rb → check_word_request_spec.rb} +10 -10
  68. data/spec/models/{correct_json_response_spec.rb → check_word_response_spec.rb} +9 -9
  69. data/spec/models/{correct_word_in_sentence_json_response_spec.rb → correct_word_in_sentence_spec.rb} +9 -9
  70. data/spec/models/entity_spec.rb +48 -0
  71. data/spec/models/extract_entities_request_spec.rb +42 -0
  72. data/spec/models/extract_entities_response_spec.rb +48 -0
  73. data/spec/models/get_words_request_spec.rb +42 -0
  74. data/spec/models/{get_words_json_response_spec.rb → get_words_response_spec.rb} +9 -9
  75. data/spec/models/language_detection_request_spec.rb +42 -0
  76. data/spec/models/language_detection_response_spec.rb +3 -3
  77. data/spec/models/parse_request_spec.rb +42 -0
  78. data/spec/models/parse_response_spec.rb +42 -0
  79. data/spec/models/pos_request_spec.rb +3 -3
  80. data/spec/models/pos_response_spec.rb +3 -3
  81. data/spec/models/pos_sentence_spec.rb +3 -3
  82. data/spec/models/pos_tagged_word_spec.rb +3 -3
  83. data/spec/models/sentence_segmentation_request_spec.rb +42 -0
  84. data/spec/models/sentence_segmentation_response_spec.rb +54 -0
  85. data/spec/models/word_position_spec.rb +3 -3
  86. data/spec/spec_helper.rb +3 -3
  87. metadata +75 -52
  88. data/docs/CheckJsonResponse.md +0 -8
  89. data/docs/CheckSentenceJsonResponse.md +0 -9
  90. data/docs/PosTaggerJsonApi.md +0 -63
  91. data/docs/PosTaggerStringApi.md +0 -63
  92. data/docs/SentencesApi.md +0 -63
  93. data/docs/WordsApi.md +0 -448
  94. data/lib/cloudmersive-nlp-api-client/api/pos_tagger_json_api.rb +0 -78
  95. data/lib/cloudmersive-nlp-api-client/api/pos_tagger_string_api.rb +0 -78
  96. data/lib/cloudmersive-nlp-api-client/api/sentences_api.rb +0 -78
  97. data/lib/cloudmersive-nlp-api-client/api/spell_check_api.rb +0 -353
  98. data/lib/cloudmersive-nlp-api-client/api/words_api.rb +0 -463
  99. data/spec/api/pos_tagger_json_api_spec.rb +0 -47
  100. data/spec/api/pos_tagger_string_api_spec.rb +0 -47
  101. data/spec/api/sentences_api_spec.rb +0 -47
  102. data/spec/api/spell_check_api_spec.rb +0 -107
  103. data/spec/api/words_api_spec.rb +0 -131
@@ -1,12 +1,12 @@
1
1
  =begin
2
- #nlpapi
2
+ #nlpapiv2
3
3
 
4
- #The powerful Natural Language Processing APIs let you perform part of speech tagging, entity identification, sentence parsing, and much more to help you understand the meaning of unstructured text.
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
5
 
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -1,15 +1,15 @@
1
1
  =begin
2
- #nlpapi
2
+ #nlpapiv2
3
3
 
4
- #The powerful Natural Language Processing APIs let you perform part of speech tagging, entity identification, sentence parsing, and much more to help you understand the meaning of unstructured text.
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
5
 
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
13
13
  module CloudmersiveNlpApiClient
14
- VERSION = "1.2.9"
14
+ VERSION = "2.0.1"
15
15
  end
@@ -1,44 +1,44 @@
1
1
  =begin
2
- #nlpapi
2
+ #nlpapiv2
3
3
 
4
- #The powerful Natural Language Processing APIs let you perform part of speech tagging, entity identification, sentence parsing, and much more to help you understand the meaning of unstructured text.
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
5
 
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
 
16
- # Unit tests for CloudmersiveNlpApiClient::ExtractEntitiesStringApi
16
+ # Unit tests for CloudmersiveNlpApiClient::ExtractEntitiesApi
17
17
  # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
18
  # Please update as you see appropriate
19
- describe 'ExtractEntitiesStringApi' do
19
+ describe 'ExtractEntitiesApi' do
20
20
  before do
21
21
  # run before each test
22
- @instance = CloudmersiveNlpApiClient::ExtractEntitiesStringApi.new
22
+ @instance = CloudmersiveNlpApiClient::ExtractEntitiesApi.new
23
23
  end
24
24
 
25
25
  after do
26
26
  # run after each test
27
27
  end
28
28
 
29
- describe 'test an instance of ExtractEntitiesStringApi' do
30
- it 'should create an instance of ExtractEntitiesStringApi' do
31
- expect(@instance).to be_instance_of(CloudmersiveNlpApiClient::ExtractEntitiesStringApi)
29
+ describe 'test an instance of ExtractEntitiesApi' do
30
+ it 'should create an instance of ExtractEntitiesApi' do
31
+ expect(@instance).to be_instance_of(CloudmersiveNlpApiClient::ExtractEntitiesApi)
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for extract_entities_string_post
35
+ # unit tests for extract_entities_post
36
36
  # Extract entities from string
37
37
  # Extract the named entitites from an input string.
38
38
  # @param value Input string
39
39
  # @param [Hash] opts the optional parameters
40
- # @return [String]
41
- describe 'extract_entities_string_post test' do
40
+ # @return [ExtractEntitiesResponse]
41
+ describe 'extract_entities_post 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
@@ -1,12 +1,12 @@
1
1
  =begin
2
- #nlpapi
2
+ #nlpapiv2
3
3
 
4
- #The powerful Natural Language Processing APIs let you perform part of speech tagging, entity identification, sentence parsing, and much more to help you understand the meaning of unstructured text.
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
5
 
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -32,13 +32,13 @@ describe 'LanguageDetectionApi' do
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for language_detection_post
35
+ # unit tests for language_detection_get_language
36
36
  # Detect language of text
37
37
  # Automatically determine which language a text string is written in. Supports Danish (DAN), German (DEU), English (ENG), French (FRA), Italian (ITA), Japanese (JPN), Korean (KOR), Dutch (NLD), Norwegian (NOR), Portuguese (POR), Russian (RUS), Spanish (SPA), Swedish (SWE), Chinese (ZHO).
38
- # @param text_to_detect Text to detect language of
38
+ # @param input
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @return [LanguageDetectionResponse]
41
- describe 'language_detection_post test' do
41
+ describe 'language_detection_get_language 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
@@ -1,44 +1,44 @@
1
1
  =begin
2
- #nlpapi
2
+ #nlpapiv2
3
3
 
4
- #The powerful Natural Language Processing APIs let you perform part of speech tagging, entity identification, sentence parsing, and much more to help you understand the meaning of unstructured text.
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
5
 
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
 
16
- # Unit tests for CloudmersiveNlpApiClient::ParseStringApi
16
+ # Unit tests for CloudmersiveNlpApiClient::ParseApi
17
17
  # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
18
  # Please update as you see appropriate
19
- describe 'ParseStringApi' do
19
+ describe 'ParseApi' do
20
20
  before do
21
21
  # run before each test
22
- @instance = CloudmersiveNlpApiClient::ParseStringApi.new
22
+ @instance = CloudmersiveNlpApiClient::ParseApi.new
23
23
  end
24
24
 
25
25
  after do
26
26
  # run after each test
27
27
  end
28
28
 
29
- describe 'test an instance of ParseStringApi' do
30
- it 'should create an instance of ParseStringApi' do
31
- expect(@instance).to be_instance_of(CloudmersiveNlpApiClient::ParseStringApi)
29
+ describe 'test an instance of ParseApi' do
30
+ it 'should create an instance of ParseApi' do
31
+ expect(@instance).to be_instance_of(CloudmersiveNlpApiClient::ParseApi)
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for parse_string_post
35
+ # unit tests for parse_parse_string
36
36
  # Parse string to syntax tree
37
37
  # Parses the input string into a Penn Treebank syntax tree
38
38
  # @param input Input string
39
39
  # @param [Hash] opts the optional parameters
40
- # @return [String]
41
- describe 'parse_string_post test' do
40
+ # @return [ParseResponse]
41
+ describe 'parse_parse_string 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,107 @@
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
+
16
+ # Unit tests for CloudmersiveNlpApiClient::PosTaggerApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'PosTaggerApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = CloudmersiveNlpApiClient::PosTaggerApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of PosTaggerApi' do
30
+ it 'should create an instance of PosTaggerApi' do
31
+ expect(@instance).to be_instance_of(CloudmersiveNlpApiClient::PosTaggerApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for pos_tagger_tag_adjectives
36
+ # Part-of-speech tag a string, filter to adjectives
37
+ # Part-of-speech (POS) tag a string, find the adjectives, and return result as JSON
38
+ # @param request Input string
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [PosResponse]
41
+ describe 'pos_tagger_tag_adjectives 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
+
47
+ # unit tests for pos_tagger_tag_adverbs
48
+ # Part-of-speech tag a string, filter to adverbs
49
+ # Part-of-speech (POS) tag a string, find the adverbs, and return result as JSON
50
+ # @param request Input string
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [PosResponse]
53
+ describe 'pos_tagger_tag_adverbs test' 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
+ # unit tests for pos_tagger_tag_nouns
60
+ # Part-of-speech tag a string, filter to nouns
61
+ # Part-of-speech (POS) tag a string, find the nouns, and return result as JSON
62
+ # @param request Input string
63
+ # @param [Hash] opts the optional parameters
64
+ # @return [PosResponse]
65
+ describe 'pos_tagger_tag_nouns test' do
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 pos_tagger_tag_pronouns
72
+ # Part-of-speech tag a string, filter to pronouns
73
+ # Part-of-speech (POS) tag a string, find the pronouns, and return result as JSON
74
+ # @param request Input string
75
+ # @param [Hash] opts the optional parameters
76
+ # @return [PosResponse]
77
+ describe 'pos_tagger_tag_pronouns test' do
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 pos_tagger_tag_sentence
84
+ # Part-of-speech tag a string
85
+ # Part-of-speech (POS) tag a string and return result as JSON
86
+ # @param request Input string
87
+ # @param [Hash] opts the optional parameters
88
+ # @return [PosResponse]
89
+ describe 'pos_tagger_tag_sentence test' do
90
+ it "should work" do
91
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
+ end
93
+ end
94
+
95
+ # unit tests for pos_tagger_tag_verbs
96
+ # Part-of-speech tag a string, filter to verbs
97
+ # Part-of-speech (POS) tag a string, find the verbs, and return result as JSON
98
+ # @param request Input string
99
+ # @param [Hash] opts the optional parameters
100
+ # @return [PosResponse]
101
+ describe 'pos_tagger_tag_verbs test' do
102
+ it "should work" do
103
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
104
+ end
105
+ end
106
+
107
+ end
@@ -0,0 +1,59 @@
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
+
16
+ # Unit tests for CloudmersiveNlpApiClient::SegmentationApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'SegmentationApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = CloudmersiveNlpApiClient::SegmentationApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of SegmentationApi' do
30
+ it 'should create an instance of SegmentationApi' do
31
+ expect(@instance).to be_instance_of(CloudmersiveNlpApiClient::SegmentationApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for segmentation_get_sentences
36
+ # Extract sentences from string
37
+ # Segment an input string into separate sentences, output result as a string.
38
+ # @param input Input string
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [SentenceSegmentationResponse]
41
+ describe 'segmentation_get_sentences 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
+
47
+ # unit tests for segmentation_get_words
48
+ # Get words in input string
49
+ # Get the component words in an input string
50
+ # @param input String to process
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [GetWordsResponse]
53
+ describe 'segmentation_get_words test' 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
@@ -0,0 +1,59 @@
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
+
16
+ # Unit tests for CloudmersiveNlpApiClient::SpellcheckApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'SpellcheckApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = CloudmersiveNlpApiClient::SpellcheckApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of SpellcheckApi' do
30
+ it 'should create an instance of SpellcheckApi' do
31
+ expect(@instance).to be_instance_of(CloudmersiveNlpApiClient::SpellcheckApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for spellcheck_check_sentence
36
+ # Check if sentence is spelled correctly
37
+ # Checks whether the sentence is spelled correctly and returns the result as JSON
38
+ # @param value Input sentence
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [CheckSentenceResponse]
41
+ describe 'spellcheck_check_sentence 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
+
47
+ # unit tests for spellcheck_correct_json
48
+ # Find spelling corrections
49
+ # Find spelling correction suggestions and return result as JSON
50
+ # @param value Input string
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [CheckWordResponse]
53
+ describe 'spellcheck_correct_json test' 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
@@ -1,12 +1,12 @@
1
1
  =begin
2
- #nlpapi
2
+ #nlpapiv2
3
3
 
4
- #The powerful Natural Language Processing APIs let you perform part of speech tagging, entity identification, sentence parsing, and much more to help you understand the meaning of unstructured text.
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
5
 
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
- #nlpapi
2
+ #nlpapiv2
3
3
 
4
- #The powerful Natural Language Processing APIs let you perform part of speech tagging, entity identification, sentence parsing, and much more to help you understand the meaning of unstructured text.
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
5
 
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -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::CheckSentenceRequest
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'CheckSentenceRequest' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveNlpApiClient::CheckSentenceRequest.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of CheckSentenceRequest' do
31
+ it 'should create an instance of CheckSentenceRequest' do
32
+ expect(@instance).to be_instance_of(CloudmersiveNlpApiClient::CheckSentenceRequest)
33
+ end
34
+ end
35
+ describe 'test attribute "sentence"' 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
+