nlpcloud 1.0.28 → 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 +16 -0
  3. metadata +9 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc6c5dd531ab750ea62880bcf3f9fed8c5f24797b6b503d73a3e17c882d18f50
4
- data.tar.gz: 362149d337aea3731804e5f94ba657de04dc87756939e1fb32dc33cca1ba2e0f
3
+ metadata.gz: 58dda16a8adaa1ee59d4a3e06897088beee82bf1fab3c4fd6336266b6d73c539
4
+ data.tar.gz: f56237f2938eeab50e748c7c0fd145830931ca3d5cbc32a1c600340b481fc6ae
5
5
  SHA512:
6
- metadata.gz: f11d0b919eaefb3124624a32f64cb9dae805d18ede463562cc48a16e9489f9d8651adbb2a62cdea2297b274bb8f71265929848156f731a05d2575173660cd6ed
7
- data.tar.gz: 4a0b68a5b9a6216c8c1d19476d72a37f21ac90385395e09305023405e0c399156a7ada9bd29399efda886e81a683ed0f17bd04ec34c6de83206e2e6128ab85b7
6
+ metadata.gz: f337e4b84adf16c9ba35e9ddcc849f48de050130333d80953c878206b7e11e8e86ed802f26874037fe688bcb60c20ccf782e39e0484826f974486f65aad6be26
7
+ data.tar.gz: e23479ebcdc51cb7c5552a99c18c0bdc9bbfdd248a300a0e244df484e29c91d1b5a75bfac01861f12835ac18da363625694eb9db8b11b1a5d3abb80ea5ab5a3d
data/lib/nlpcloud.rb CHANGED
@@ -47,6 +47,14 @@ module NLPCloud
47
47
  JSON.parse(response.body)
48
48
  end
49
49
 
50
+ def asr(url)
51
+ payload = {
52
+ 'url' => url
53
+ }
54
+ response = RestClient.post("#{@root_url}/asr", payload.to_json, @headers)
55
+ JSON.parse(response.body)
56
+ end
57
+
50
58
  def chatbot(text, context: nil, history: nil)
51
59
  payload = {
52
60
  'text' => text,
@@ -190,6 +198,14 @@ module NLPCloud
190
198
  JSON.parse(response.body)
191
199
  end
192
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
+
193
209
  def semantic_similarity(sentences)
194
210
  payload = {
195
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.28
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
@@ -28,10 +28,11 @@ description: 'NLP Cloud serves high performance pre-trained or custom models for
28
28
  sentiment-analysis, classification, summarization, paraphrasing, grammar and spelling
29
29
  correction, keywords and keyphrases extraction, chatbot, product description and
30
30
  ad generation, intent classification, text generation, image generation, code generation,
31
- blog post generation, question answering, machine translation, language detection,
32
- semantic similarity, tokenization, POS tagging, embeddings, and dependency parsing.
33
- It is ready for production, served through a REST API. This is the Ruby client for
34
- the API. More details here: https://nlpcloud.io. Documentation: https://docs.nlpcloud.io.'
31
+ blog post generation, question answering, automatic speech recognition, machine
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
+ Documentation: https://docs.nlpcloud.io.'
35
36
  email: all@juliensalinas.com
36
37
  executables: []
37
38
  extensions: []
@@ -42,8 +43,8 @@ homepage: https://github.com/nlpcloud/nlpcloud-ruby
42
43
  licenses:
43
44
  - MIT
44
45
  metadata:
45
- documentation_uri: https://docs.nlpcloud.io
46
- homepage_uri: https://nlpcloud.io
46
+ documentation_uri: https://docs.nlpcloud.com
47
+ homepage_uri: https://nlpcloud.com
47
48
  source_code_uri: https://github.com/nlpcloud/nlpcloud-ruby
48
49
  post_install_message:
49
50
  rdoc_options: []