nlpcloud 1.0.15 → 1.0.16
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 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8890ee672b4124102ff817b4b0eaeb729a0de1a3e3c667aea55e70c2f01615eb
|
4
|
+
data.tar.gz: ce274efee4aa6e6284c7d2f9e1bf2f0b866e197460b23b7c80bed66cf9d10896
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45a4ac5bfde7f70bfbb492d5d6a69d65e4aebb4de8d0764c2ff8a4949a996b7a214f9cdb4f46be6681bad15f81b284b93398b89482ba6cdfc28de4e79c941cb4
|
7
|
+
data.tar.gz: '07285e336c7c1472c379d68a0a7c9c13effd46512f0a033e0ee0f23fb8b77063a995d3deae73a59f1b8ed5c5c11377d99042baba52d8633897b63414fb28b62e'
|
data/lib/nlpcloud.rb
CHANGED
@@ -48,7 +48,7 @@ module NLPCloud
|
|
48
48
|
def generation(text, min_length: nil, max_length: nil, length_no_input: nil,
|
49
49
|
end_sequence: nil, remove_input: nil, do_sample: nil, num_beams: nil, early_stopping: nil,
|
50
50
|
no_repeat_ngram_size: nil, num_return_sequences: nil, top_k: nil, top_p: nil,
|
51
|
-
temperature: nil, repetition_penalty: nil, length_penalty: nil, bad_words: nil)
|
51
|
+
temperature: nil, repetition_penalty: nil, length_penalty: nil, bad_words: nil, remove_end_sequence: nil)
|
52
52
|
payload = {
|
53
53
|
'text' => text,
|
54
54
|
'min_length' => min_length,
|
@@ -66,7 +66,8 @@ module NLPCloud
|
|
66
66
|
'temperature' => temperature,
|
67
67
|
'repetition_penalty' => repetition_penalty,
|
68
68
|
'length_penalty' => length_penalty,
|
69
|
-
'bad_words' => bad_words
|
69
|
+
'bad_words' => bad_words,
|
70
|
+
'remove_end_sequence' => remove_end_sequence
|
70
71
|
}
|
71
72
|
response = RestClient.post("#{@root_url}/generation", payload.to_json, @headers)
|
72
73
|
JSON.parse(response.body)
|
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.16
|
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-01-
|
11
|
+
date: 2022-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: 'NLP Cloud serves high performance pre-trained or custom models for NER,
|
14
14
|
sentiment-analysis, classification, summarization, text generation, question answering,
|