nlpcloud 1.0.44 → 1.0.46

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 (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nlpcloud.rb +3 -7
  3. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20eafde6f6320baa0fcf7a2842a48e780f096a67f62d49ad31077532ddca2038
4
- data.tar.gz: c694cc364728d66643f9927ee40dbcb2188f033d4ea505346aa935f54e268587
3
+ metadata.gz: 18faf93dfead3ef8caf9eacb6f3087bd6340d86f74c1f1d57c57404659315839
4
+ data.tar.gz: 1ee84d6b4d3e77ab8fcb6f5c629214a34b709edaf0dc8acdf8ee8daec1d96f64
5
5
  SHA512:
6
- metadata.gz: 132f46dcd1f8d2f8dbffd06ebbd1c2267a3bf71844c41ddda9c1513e4ef2dd65372fec8e7404be2fb1d8288291dae392f16da62e4105ee9e3e91f935573290f8
7
- data.tar.gz: 50dab8be4e2b3d359b9f1b6585554bc55230c9d45dbaa1131bca528372eb90cdc854827a6fc638bc18bde65c705acfa9a20d9f6c0e5b2d2fa90bc660c28acfe6
6
+ metadata.gz: 1d5e50809a70b18e8c669ce2b8ae217faf42f6236c27eec42c0d3465fcc733610d38fab47dff80a564f0b46307007d1a424960b81b29ced741478a72051462af
7
+ data.tar.gz: b9428ee99c1f43bed6ea6345af5ad383f0a0e6aeb849160db0550615235caf7697fddd99f6a456c15a4fa944f00863ecb56535b900f4df2706aa079c91d26758
data/lib/nlpcloud.rb CHANGED
@@ -183,11 +183,6 @@ module NLPCloud
183
183
  JSON.parse(response.body)
184
184
  end
185
185
 
186
- def lib_versions
187
- response = RestClient.get("#{@root_url}/versions", @headers)
188
- JSON.parse(response.body)
189
- end
190
-
191
186
  def paraphrasing(text)
192
187
  payload = {
193
188
  'text' => text
@@ -230,9 +225,10 @@ module NLPCloud
230
225
  JSON.parse(response.body)
231
226
  end
232
227
 
233
- def sentiment(text)
228
+ def sentiment(text, target: nil)
234
229
  payload = {
235
- 'text' => text
230
+ 'text' => text,
231
+ 'target' => target
236
232
  }
237
233
  response = RestClient.post("#{@root_url}/sentiment", payload.to_json, @headers)
238
234
  JSON.parse(response.body)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nlpcloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.44
4
+ version: 1.0.46
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Salinas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-10 00:00:00.000000000 Z
11
+ date: 2024-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -31,8 +31,8 @@ description: 'NLP Cloud serves high performance pre-trained or custom models for
31
31
  question answering, automatic speech recognition, machine translation, language
32
32
  detection, semantic search, semantic similarity, speech synthesis, tokenization,
33
33
  POS tagging, embeddings, and dependency parsing. It is ready for production, served
34
- through a REST API. This is the Ruby client for the API. More details here: https://nlpcloud.io.
35
- Documentation: https://docs.nlpcloud.io.'
34
+ through a REST API. This is the Ruby client for the API. More details here: https://nlpcloud.com.
35
+ Documentation: https://docs.nlpcloud.com.'
36
36
  email: all@juliensalinas.com
37
37
  executables: []
38
38
  extensions: []
@@ -61,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  requirements: []
64
- rubygems_version: 3.1.6
64
+ rubygems_version: 3.0.3.1
65
65
  signing_key:
66
66
  specification_version: 4
67
67
  summary: Ruby client for the NLP Cloud API