nlpcloud 1.0.29 → 1.0.30
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 +8 -0
- 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: 58dda16a8adaa1ee59d4a3e06897088beee82bf1fab3c4fd6336266b6d73c539
|
4
|
+
data.tar.gz: f56237f2938eeab50e748c7c0fd145830931ca3d5cbc32a1c600340b481fc6ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f337e4b84adf16c9ba35e9ddcc849f48de050130333d80953c878206b7e11e8e86ed802f26874037fe688bcb60c20ccf782e39e0484826f974486f65aad6be26
|
7
|
+
data.tar.gz: e23479ebcdc51cb7c5552a99c18c0bdc9bbfdd248a300a0e244df484e29c91d1b5a75bfac01861f12835ac18da363625694eb9db8b11b1a5d3abb80ea5ab5a3d
|
data/lib/nlpcloud.rb
CHANGED
@@ -198,6 +198,14 @@ module NLPCloud
|
|
198
198
|
JSON.parse(response.body)
|
199
199
|
end
|
200
200
|
|
201
|
+
def semantic_search(sentences)
|
202
|
+
payload = {
|
203
|
+
'text' => text
|
204
|
+
}
|
205
|
+
response = RestClient.post("#{@root_url}/semantic_search", payload.to_json, @headers)
|
206
|
+
JSON.parse(response.body)
|
207
|
+
end
|
208
|
+
|
201
209
|
def semantic_similarity(sentences)
|
202
210
|
payload = {
|
203
211
|
'sentences' => sentences
|
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.30
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julien Salinas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -29,9 +29,9 @@ description: 'NLP Cloud serves high performance pre-trained or custom models for
|
|
29
29
|
correction, keywords and keyphrases extraction, chatbot, product description and
|
30
30
|
ad generation, intent classification, text generation, image generation, code generation,
|
31
31
|
blog post generation, question answering, automatic speech recognition, machine
|
32
|
-
translation, language detection, semantic similarity, tokenization,
|
33
|
-
embeddings, and dependency parsing. It is ready for production, served
|
34
|
-
REST API. This is the Ruby client for the API. More details here: https://nlpcloud.io.
|
32
|
+
translation, language detection, semantic search, semantic similarity, tokenization,
|
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
35
|
Documentation: https://docs.nlpcloud.io.'
|
36
36
|
email: all@juliensalinas.com
|
37
37
|
executables: []
|