nlpcloud 1.0.40 → 1.0.42
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 +3 -8
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d45ed800dab3c0fb10ce8d2c83f7adef3272566e71ef554e2575e1f5fc75575
|
4
|
+
data.tar.gz: 26d9aecb9806b8929e1e2cd09902cb53a3257014058590fbe3f818aa513462c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd80a417277314f5b3714cd67ebfa3e098f400e53b4d5e5fe69be87957ffbb13ab3e40e582a9c2998eee6fbc2689cc9d02ddad051a2f76e6b6a509b0719be12f
|
7
|
+
data.tar.gz: 00bcd1cfeba3c087f7c8c56fe4f8265d31435b90a4d728a3fd2fd2b1f440ca9c3b5a0d111edd98db10fe4374e001d1b0c2ed3d3a560f893fc35ec8661a44d77c
|
data/lib/nlpcloud.rb
CHANGED
@@ -21,6 +21,9 @@ module NLPCloud
|
|
21
21
|
if lang == "en"
|
22
22
|
lang = ""
|
23
23
|
end
|
24
|
+
if lang == "eng_Latn"
|
25
|
+
lang = ""
|
26
|
+
end
|
24
27
|
|
25
28
|
if gpu
|
26
29
|
@root_url += "gpu/"
|
@@ -46,14 +49,6 @@ module NLPCloud
|
|
46
49
|
JSON.parse(response.body)
|
47
50
|
end
|
48
51
|
|
49
|
-
def article_generation(title)
|
50
|
-
payload = {
|
51
|
-
'title' => title
|
52
|
-
}
|
53
|
-
response = RestClient.post("#{@root_url}/article-generation", payload.to_json, @headers)
|
54
|
-
JSON.parse(response.body)
|
55
|
-
end
|
56
|
-
|
57
52
|
def asr(url: nil, encoded_file: nil, input_language: nil)
|
58
53
|
payload = {
|
59
54
|
'url' => url,
|
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.42
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julien Salinas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -28,11 +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
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
31
|
+
question answering, automatic speech recognition, machine translation, language
|
32
|
+
detection, semantic search, semantic similarity, speech synthesis, 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.'
|
36
36
|
email: all@juliensalinas.com
|
37
37
|
executables: []
|
38
38
|
extensions: []
|