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.
- checksums.yaml +4 -4
- data/lib/nlpcloud.rb +3 -7
- metadata +5 -5
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
@@ -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.
|
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:
|
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: []
|
@@ -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
|
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
|