nlpcloud 1.0.28 → 1.0.30
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 +16 -0
- metadata +9 -8
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
@@ -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.
|
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
|
@@ -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
|
-
|
33
|
-
|
34
|
-
the API. More details here: https://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.
|
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: []
|