nlpcloud 1.0.40 → 1.0.42

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 +3 -8
  3. metadata +7 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 64685ed4b295b167ab3c6fc9a9e58457fc977de7ff9aa139058fff708f640b32
4
- data.tar.gz: 403f83f4bf769784f9bc24efc666fc207716064547e66e0262eb5d0995c7a4bd
3
+ metadata.gz: 6d45ed800dab3c0fb10ce8d2c83f7adef3272566e71ef554e2575e1f5fc75575
4
+ data.tar.gz: 26d9aecb9806b8929e1e2cd09902cb53a3257014058590fbe3f818aa513462c8
5
5
  SHA512:
6
- metadata.gz: ad01d8ff341c56a4c47fa061c0385f5ad3c585693bffceb8c30b8a9faeb928e6759d0948d4da68516dcd9a7ef03a09a2d698015eb1efe1bc6c1512be53347a5f
7
- data.tar.gz: de1007facb5017657422c44aa20cd2cc57588e5ae448a53eb22430fce1bdeb10fd256773427f67f08d8c41906e91128438cbc566ce1e18bf24c2f69e50940b1c
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.40
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-04-21 00:00:00.000000000 Z
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
- blog post generation, question answering, automatic speech recognition, machine
32
- translation, language detection, semantic search, semantic similarity, speech synthesis,
33
- tokenization, POS tagging, embeddings, and dependency parsing. It is ready for production,
34
- served through a REST API. This is the Ruby client for the API. More details here:
35
- https://nlpcloud.io. Documentation: https://docs.nlpcloud.io.'
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: []