cloudmersive-nlp-api-client 1.2.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +131 -0
  4. data/Rakefile +8 -0
  5. data/cloudmersive-nlp-api-client.gemspec +45 -0
  6. data/docs/CheckJsonResponse.md +8 -0
  7. data/docs/CheckSentenceJsonResponse.md +9 -0
  8. data/docs/CorrectJsonResponse.md +9 -0
  9. data/docs/CorrectWordInSentenceJsonResponse.md +10 -0
  10. data/docs/ExtractEntitiesStringApi.md +63 -0
  11. data/docs/GetWordsJsonResponse.md +8 -0
  12. data/docs/LanguageDetectionApi.md +63 -0
  13. data/docs/LanguageDetectionResponse.md +10 -0
  14. data/docs/ParseStringApi.md +63 -0
  15. data/docs/PosRequest.md +8 -0
  16. data/docs/PosResponse.md +8 -0
  17. data/docs/PosSentence.md +8 -0
  18. data/docs/PosTaggedWord.md +9 -0
  19. data/docs/PosTaggerJsonApi.md +63 -0
  20. data/docs/PosTaggerStringApi.md +63 -0
  21. data/docs/SentencesApi.md +63 -0
  22. data/docs/SpellCheckApi.md +338 -0
  23. data/docs/WordPosition.md +11 -0
  24. data/docs/WordsApi.md +448 -0
  25. data/git_push.sh +55 -0
  26. data/lib/cloudmersive-nlp-api-client.rb +58 -0
  27. data/lib/cloudmersive-nlp-api-client/api/extract_entities_string_api.rb +78 -0
  28. data/lib/cloudmersive-nlp-api-client/api/language_detection_api.rb +78 -0
  29. data/lib/cloudmersive-nlp-api-client/api/parse_string_api.rb +78 -0
  30. data/lib/cloudmersive-nlp-api-client/api/pos_tagger_json_api.rb +78 -0
  31. data/lib/cloudmersive-nlp-api-client/api/pos_tagger_string_api.rb +78 -0
  32. data/lib/cloudmersive-nlp-api-client/api/sentences_api.rb +78 -0
  33. data/lib/cloudmersive-nlp-api-client/api/spell_check_api.rb +353 -0
  34. data/lib/cloudmersive-nlp-api-client/api/words_api.rb +463 -0
  35. data/lib/cloudmersive-nlp-api-client/api_client.rb +389 -0
  36. data/lib/cloudmersive-nlp-api-client/api_error.rb +38 -0
  37. data/lib/cloudmersive-nlp-api-client/configuration.rb +209 -0
  38. data/lib/cloudmersive-nlp-api-client/models/check_json_response.rb +189 -0
  39. data/lib/cloudmersive-nlp-api-client/models/check_sentence_json_response.rb +201 -0
  40. data/lib/cloudmersive-nlp-api-client/models/correct_json_response.rb +201 -0
  41. data/lib/cloudmersive-nlp-api-client/models/correct_word_in_sentence_json_response.rb +211 -0
  42. data/lib/cloudmersive-nlp-api-client/models/get_words_json_response.rb +191 -0
  43. data/lib/cloudmersive-nlp-api-client/models/language_detection_response.rb +209 -0
  44. data/lib/cloudmersive-nlp-api-client/models/pos_request.rb +189 -0
  45. data/lib/cloudmersive-nlp-api-client/models/pos_response.rb +191 -0
  46. data/lib/cloudmersive-nlp-api-client/models/pos_sentence.rb +191 -0
  47. data/lib/cloudmersive-nlp-api-client/models/pos_tagged_word.rb +199 -0
  48. data/lib/cloudmersive-nlp-api-client/models/word_position.rb +219 -0
  49. data/lib/cloudmersive-nlp-api-client/version.rb +15 -0
  50. data/spec/api/extract_entities_string_api_spec.rb +47 -0
  51. data/spec/api/language_detection_api_spec.rb +47 -0
  52. data/spec/api/parse_string_api_spec.rb +47 -0
  53. data/spec/api/pos_tagger_json_api_spec.rb +47 -0
  54. data/spec/api/pos_tagger_string_api_spec.rb +47 -0
  55. data/spec/api/sentences_api_spec.rb +47 -0
  56. data/spec/api/spell_check_api_spec.rb +107 -0
  57. data/spec/api/words_api_spec.rb +131 -0
  58. data/spec/api_client_spec.rb +226 -0
  59. data/spec/configuration_spec.rb +42 -0
  60. data/spec/models/check_json_response_spec.rb +42 -0
  61. data/spec/models/check_sentence_json_response_spec.rb +48 -0
  62. data/spec/models/correct_json_response_spec.rb +48 -0
  63. data/spec/models/correct_word_in_sentence_json_response_spec.rb +54 -0
  64. data/spec/models/get_words_json_response_spec.rb +42 -0
  65. data/spec/models/language_detection_response_spec.rb +54 -0
  66. data/spec/models/pos_request_spec.rb +42 -0
  67. data/spec/models/pos_response_spec.rb +42 -0
  68. data/spec/models/pos_sentence_spec.rb +42 -0
  69. data/spec/models/pos_tagged_word_spec.rb +48 -0
  70. data/spec/models/word_position_spec.rb +60 -0
  71. data/spec/spec_helper.rb +111 -0
  72. metadata +296 -0
@@ -0,0 +1,47 @@
1
+ =begin
2
+ #nlpapi
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.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: unset
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for CloudmersiveNlpApiClient::LanguageDetectionApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'LanguageDetectionApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = CloudmersiveNlpApiClient::LanguageDetectionApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of LanguageDetectionApi' do
30
+ it 'should create an instance of LanguageDetectionApi' do
31
+ expect(@instance).to be_instance_of(CloudmersiveNlpApiClient::LanguageDetectionApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for language_detection_post
36
+ # Detect language of text
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
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [LanguageDetectionResponse]
41
+ describe 'language_detection_post 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
+ end
@@ -0,0 +1,47 @@
1
+ =begin
2
+ #nlpapi
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.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: unset
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for CloudmersiveNlpApiClient::ParseStringApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'ParseStringApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = CloudmersiveNlpApiClient::ParseStringApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
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)
32
+ end
33
+ end
34
+
35
+ # unit tests for parse_string_post
36
+ # Parse string to syntax tree
37
+ # Parses the input string into a Penn Treebank syntax tree
38
+ # @param input Input string
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [String]
41
+ describe 'parse_string_post 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
+ end
@@ -0,0 +1,47 @@
1
+ =begin
2
+ #nlpapi
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.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: unset
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for CloudmersiveNlpApiClient::PosTaggerJsonApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'PosTaggerJsonApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = CloudmersiveNlpApiClient::PosTaggerJsonApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of PosTaggerJsonApi' do
30
+ it 'should create an instance of PosTaggerJsonApi' do
31
+ expect(@instance).to be_instance_of(CloudmersiveNlpApiClient::PosTaggerJsonApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for pos_tagger_json_post
36
+ # Part-of-speech tag a string
37
+ # Part-of-speech (POS) tag a string and return result as JSON
38
+ # @param request Input string
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [PosResponse]
41
+ describe 'pos_tagger_json_post 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
+ end
@@ -0,0 +1,47 @@
1
+ =begin
2
+ #nlpapi
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.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: unset
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for CloudmersiveNlpApiClient::PosTaggerStringApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'PosTaggerStringApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = CloudmersiveNlpApiClient::PosTaggerStringApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of PosTaggerStringApi' do
30
+ it 'should create an instance of PosTaggerStringApi' do
31
+ expect(@instance).to be_instance_of(CloudmersiveNlpApiClient::PosTaggerStringApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for pos_tagger_string_post
36
+ # Part-of-speech tag a string
37
+ # Perform a part-of-speech (POS) tagging on the input string.
38
+ # @param input Input string
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [String]
41
+ describe 'pos_tagger_string_post 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
+ end
@@ -0,0 +1,47 @@
1
+ =begin
2
+ #nlpapi
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.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: unset
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for CloudmersiveNlpApiClient::SentencesApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'SentencesApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = CloudmersiveNlpApiClient::SentencesApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of SentencesApi' do
30
+ it 'should create an instance of SentencesApi' do
31
+ expect(@instance).to be_instance_of(CloudmersiveNlpApiClient::SentencesApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for sentences_post
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 [String]
41
+ describe 'sentences_post 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
+ end
@@ -0,0 +1,107 @@
1
+ =begin
2
+ #nlpapi
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.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: unset
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 spell_check_check_json
36
+ # Spell check word
37
+ # Spell check a word as JSON
38
+ # @param value Input sentence
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [CheckJsonResponse]
41
+ describe 'spell_check_check_json 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 spell_check_check_sentence_json
48
+ # Check if sentence is spelled correctly
49
+ # Checks whether the sentence is spelled correctly and returns the result as JSON
50
+ # @param value Input sentence
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [CheckSentenceJsonResponse]
53
+ describe 'spell_check_check_sentence_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
+ # unit tests for spell_check_check_sentence_string
60
+ # Spell check a sentence
61
+ # Check if a sentence is spelled correctly
62
+ # @param value Input sentence word
63
+ # @param [Hash] opts the optional parameters
64
+ # @return [BOOLEAN]
65
+ describe 'spell_check_check_sentence_string 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 spell_check_correct
72
+ # Find spelling corrections
73
+ # Find the spelling corrections for a word
74
+ # @param value Input word
75
+ # @param [Hash] opts the optional parameters
76
+ # @return [String]
77
+ describe 'spell_check_correct 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 spell_check_correct_json
84
+ # Find spelling corrections
85
+ # Find spelling correction suggestions and return result as JSON
86
+ # @param value Input string
87
+ # @param [Hash] opts the optional parameters
88
+ # @return [CorrectJsonResponse]
89
+ describe 'spell_check_correct_json 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 spell_check_post
96
+ # Spell check a word
97
+ # Check if a word is spelled correctly
98
+ # @param value Input string word
99
+ # @param [Hash] opts the optional parameters
100
+ # @return [BOOLEAN]
101
+ describe 'spell_check_post 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,131 @@
1
+ =begin
2
+ #nlpapi
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.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: unset
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for CloudmersiveNlpApiClient::WordsApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'WordsApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = CloudmersiveNlpApiClient::WordsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of WordsApi' do
30
+ it 'should create an instance of WordsApi' do
31
+ expect(@instance).to be_instance_of(CloudmersiveNlpApiClient::WordsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for words_adjectives
36
+ # Get adjectives in string
37
+ # Retrieves all adjectives in input string
38
+ # @param input Input string
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [String]
41
+ describe 'words_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 words_adverbs
48
+ # Get adverbs in input string
49
+ # Returns all adverb words in the input string
50
+ # @param input Input string
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [String]
53
+ describe 'words_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 words_get_words_json
60
+ # Get words in input string (JSON)
61
+ # Get the component words in an input string, formatted as JSON
62
+ # @param input String to process
63
+ # @param [Hash] opts the optional parameters
64
+ # @return [GetWordsJsonResponse]
65
+ describe 'words_get_words_json 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 words_get_words_string
72
+ # Get words from string
73
+ # Segment an input string into its component words
74
+ # @param input Input string
75
+ # @param [Hash] opts the optional parameters
76
+ # @return [String]
77
+ describe 'words_get_words_string 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 words_nouns
84
+ # Get nouns in string
85
+ # Returns all of the nouns in the input string
86
+ # @param input Input string
87
+ # @param [Hash] opts the optional parameters
88
+ # @return [String]
89
+ describe 'words_nouns 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 words_post
96
+ # Get the verbs in a string
97
+ # Get all of the verbs in the input string.
98
+ # @param input Input string
99
+ # @param [Hash] opts the optional parameters
100
+ # @return [String]
101
+ describe 'words_post 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
+ # unit tests for words_pronouns
108
+ # Returns all pronounts in string
109
+ # Returns all pronouns in the input string
110
+ # @param input Input string
111
+ # @param [Hash] opts the optional parameters
112
+ # @return [String]
113
+ describe 'words_pronouns test' do
114
+ it "should work" do
115
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
116
+ end
117
+ end
118
+
119
+ # unit tests for words_proper_nouns
120
+ # Get proper nouns in a string
121
+ # Returns all of the proper nouns in a string. Proper nouns are named entities such as \"Hilton\".
122
+ # @param input Input string
123
+ # @param [Hash] opts the optional parameters
124
+ # @return [String]
125
+ describe 'words_proper_nouns test' do
126
+ it "should work" do
127
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
128
+ end
129
+ end
130
+
131
+ end