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.
- checksums.yaml +4 -4
- data/lib/nlpcloud.rb +3 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18faf93dfead3ef8caf9eacb6f3087bd6340d86f74c1f1d57c57404659315839
|
4
|
+
data.tar.gz: 1ee84d6b4d3e77ab8fcb6f5c629214a34b709edaf0dc8acdf8ee8daec1d96f64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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-
|
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.
|
35
|
-
Documentation: https://docs.nlpcloud.
|
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: []
|