nlpcloud 1.0.45 → 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 -2
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 122370f7b283330f171b615d7ef59516d0e374e95e4ca343ad5b1b60471a0260
4
- data.tar.gz: 4caab29a683543ce72edb7dc0154f55c5370cb904937512aab580d1fa3cc2905
3
+ metadata.gz: 18faf93dfead3ef8caf9eacb6f3087bd6340d86f74c1f1d57c57404659315839
4
+ data.tar.gz: 1ee84d6b4d3e77ab8fcb6f5c629214a34b709edaf0dc8acdf8ee8daec1d96f64
5
5
  SHA512:
6
- metadata.gz: d321cf41dd4674a2fe58f4bdb34d4982e5a74c51f7c2a20ef46d683c517a8fcd5c47d6f008f8629db848b43dcfa590da712768021dfc045c365bb0b21176ea28
7
- data.tar.gz: 47de972d3958002a6c4ec8025c3c1a3496250dcbd78e475a1ad68c0848e287f4e148f138ce9783ce4346b00e90942e09cd8e247b7fd011fce35a0fb6107172b2
6
+ metadata.gz: 1d5e50809a70b18e8c669ce2b8ae217faf42f6236c27eec42c0d3465fcc733610d38fab47dff80a564f0b46307007d1a424960b81b29ced741478a72051462af
7
+ data.tar.gz: b9428ee99c1f43bed6ea6345af5ad383f0a0e6aeb849160db0550615235caf7697fddd99f6a456c15a4fa944f00863ecb56535b900f4df2706aa079c91d26758
data/lib/nlpcloud.rb CHANGED
@@ -225,9 +225,10 @@ module NLPCloud
225
225
  JSON.parse(response.body)
226
226
  end
227
227
 
228
- def sentiment(text)
228
+ def sentiment(text, target: nil)
229
229
  payload = {
230
- 'text' => text
230
+ 'text' => text,
231
+ 'target' => target
231
232
  }
232
233
  response = RestClient.post("#{@root_url}/sentiment", payload.to_json, @headers)
233
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.45
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: 2024-03-12 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: []