transformers-rb 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c1fa37e7471df9836adbb814ac2098b685fd71d879bc83778e97a200db6c9d1b
|
|
4
|
+
data.tar.gz: 99d487b130a5cf67f7c853eeb4d57f17b6cd7d9fe28cf0d39e31d1172ff99936
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a1849c202c5d053eb82643ff1050594b26520fa53ee49e70a33a37ff39ee8e22244ee5ff799ee7961d7434030dd715d2b15a8ba9e7bf75585b947b8f73f36924
|
|
7
|
+
data.tar.gz: b577a028df70e8b90840efb88e49793a1ae5a26faa7420e7fbafd8d1aef1ae55accd025713866095d678dbad9fcdbfd2b757eb89b78172da3fcac7800535342f
|
data/CHANGELOG.md
CHANGED
|
@@ -36,7 +36,7 @@ module Transformers
|
|
|
36
36
|
|
|
37
37
|
# Setting the position-ids to the registered buffer in constructor, it helps
|
|
38
38
|
# when tracing the model without passing position-ids, solves
|
|
39
|
-
#
|
|
39
|
+
# issues similar to issue #5664
|
|
40
40
|
if @position_ids
|
|
41
41
|
position_ids = @position_ids[0.., 0...seq_length]
|
|
42
42
|
else
|
|
@@ -166,7 +166,7 @@ module Transformers
|
|
|
166
166
|
end
|
|
167
167
|
|
|
168
168
|
def preprocess(example, padding: "do_not_pad", doc_stride: nil, max_question_len: 64, max_seq_len: nil)
|
|
169
|
-
# XXX: This is
|
|
169
|
+
# XXX: This is special, args_parser will not handle anything generator or dataset like
|
|
170
170
|
# For those we expect user to send a simple valid example either directly as a SquadExample or simple dict.
|
|
171
171
|
# So we still need a little sanitation here.
|
|
172
172
|
if example.is_a?(Hash)
|
data/lib/transformers/version.rb
CHANGED
data/lib/transformers.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: transformers-rb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Kane
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: logger
|
|
@@ -176,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
176
176
|
- !ruby/object:Gem::Version
|
|
177
177
|
version: '0'
|
|
178
178
|
requirements: []
|
|
179
|
-
rubygems_version:
|
|
179
|
+
rubygems_version: 4.0.3
|
|
180
180
|
specification_version: 4
|
|
181
181
|
summary: State-of-the-art transformers for Ruby
|
|
182
182
|
test_files: []
|