nlpcloud 1.0.29 → 1.0.30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nlpcloud.rb +8 -0
  3. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 432bd97204da0f723d7009e82e55a44e717306156cb156719241100fb843b817
4
- data.tar.gz: 0bae8c5adde10be01c8be9e1f6031447157bf4c9a362e8d956de8bc3e40bd112
3
+ metadata.gz: 58dda16a8adaa1ee59d4a3e06897088beee82bf1fab3c4fd6336266b6d73c539
4
+ data.tar.gz: f56237f2938eeab50e748c7c0fd145830931ca3d5cbc32a1c600340b481fc6ae
5
5
  SHA512:
6
- metadata.gz: 64a6ebff657317cb888bc0d3780ca4dcd6085c326d40178fd85fdd38f237f2d48f614a05c2bb87408014d16896df21b356daf27e62f6ab69427163b10737b4c2
7
- data.tar.gz: a8da8d25e2dce74a4c80fb4a6f71764a6168ffb94b0d1910efaf1a3521dc41ad3cc10238188e2a56c90f1460173d41f879437c50206a26cfbc8ee294ad82624f
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.29
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-09-15 00:00:00.000000000 Z
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, POS tagging,
33
- embeddings, and dependency parsing. It is ready for production, served through a
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: []