nlpcloud 1.0.28 → 1.0.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nlpcloud.rb +8 -0
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 432bd97204da0f723d7009e82e55a44e717306156cb156719241100fb843b817
|
4
|
+
data.tar.gz: 0bae8c5adde10be01c8be9e1f6031447157bf4c9a362e8d956de8bc3e40bd112
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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,
|
32
|
-
semantic similarity, tokenization, POS tagging,
|
33
|
-
It is ready for production, served through a
|
34
|
-
the API. More details here: https://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.
|
46
|
-
homepage_uri: https://nlpcloud.
|
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: []
|