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: 607afc7b4cc3bb62f8ae2aab693863d2cd1456d0c90b20dc0eb4f682fc788cfb
4
- data.tar.gz: 3a6ad9f7f624e77e077bf4d7e1d945ee8f6e26d805e08a574d5d583e231500fb
3
+ metadata.gz: c1fa37e7471df9836adbb814ac2098b685fd71d879bc83778e97a200db6c9d1b
4
+ data.tar.gz: 99d487b130a5cf67f7c853eeb4d57f17b6cd7d9fe28cf0d39e31d1172ff99936
5
5
  SHA512:
6
- metadata.gz: ab988a57c8af7883894163b149528172a8602d9031f9c6e6880d6bb32f42842cbfa566ac4f347168a230218565cc7550c99043286e5a31d0d104ba3b250b2483
7
- data.tar.gz: 7f29ee6adcc0566ce1d1905e557288dec78b8befcc98f9a46c71c0fe8580dd14c914afcb1c1477df65aecc3b106cf799975c2b46ba73a4ec7d93ea34a908b688
6
+ metadata.gz: a1849c202c5d053eb82643ff1050594b26520fa53ee49e70a33a37ff39ee8e22244ee5ff799ee7961d7434030dd715d2b15a8ba9e7bf75585b947b8f73f36924
7
+ data.tar.gz: b577a028df70e8b90840efb88e49793a1ae5a26faa7420e7fbafd8d1aef1ae55accd025713866095d678dbad9fcdbfd2b757eb89b78172da3fcac7800535342f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.1.7 (2026-01-07)
2
+
3
+ - Switched to `cgi/escape` for Ruby 4.0
4
+
1
5
  ## 0.1.6 (2024-12-29)
2
6
 
3
7
  - Fixed error with failed HTTP requests
@@ -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
- # isues similar to issue #5664
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 specal, args_parser will not handle anything generator or dataset like
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)
@@ -1,3 +1,3 @@
1
1
  module Transformers
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
data/lib/transformers.rb CHANGED
@@ -5,7 +5,7 @@ require "tokenizers"
5
5
  require "torch-rb"
6
6
 
7
7
  # stdlib
8
- require "cgi"
8
+ require "cgi/escape"
9
9
  require "fileutils"
10
10
  require "io/console"
11
11
  require "json"
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.6
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: 2024-12-29 00:00:00.000000000 Z
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: 3.6.2
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: []