nlpcloud 1.0.28 → 1.0.29

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nlpcloud.rb +8 -0
  3. metadata +8 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc6c5dd531ab750ea62880bcf3f9fed8c5f24797b6b503d73a3e17c882d18f50
4
- data.tar.gz: 362149d337aea3731804e5f94ba657de04dc87756939e1fb32dc33cca1ba2e0f
3
+ metadata.gz: 432bd97204da0f723d7009e82e55a44e717306156cb156719241100fb843b817
4
+ data.tar.gz: 0bae8c5adde10be01c8be9e1f6031447157bf4c9a362e8d956de8bc3e40bd112
5
5
  SHA512:
6
- metadata.gz: f11d0b919eaefb3124624a32f64cb9dae805d18ede463562cc48a16e9489f9d8651adbb2a62cdea2297b274bb8f71265929848156f731a05d2575173660cd6ed
7
- data.tar.gz: 4a0b68a5b9a6216c8c1d19476d72a37f21ac90385395e09305023405e0c399156a7ada9bd29399efda886e81a683ed0f17bd04ec34c6de83206e2e6128ab85b7
6
+ metadata.gz: 64a6ebff657317cb888bc0d3780ca4dcd6085c326d40178fd85fdd38f237f2d48f614a05c2bb87408014d16896df21b356daf27e62f6ab69427163b10737b4c2
7
+ data.tar.gz: a8da8d25e2dce74a4c80fb4a6f71764a6168ffb94b0d1910efaf1a3521dc41ad3cc10238188e2a56c90f1460173d41f879437c50206a26cfbc8ee294ad82624f
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,
metadata CHANGED
@@ -1,7 +1,7 @@
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.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Salinas
@@ -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 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.
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: []