tokenizers 0.6.4-x64-mingw-ucrt → 0.7.0-x64-mingw-ucrt

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: b108807867fc6f00295dedfb99584df1c0ab36c2f141beb3877707ffe4db821e
4
- data.tar.gz: 49d0eaaebbb2bddc3a5fcbdad6ba3a087420da568a1e05b07dd87ed08ade585f
3
+ metadata.gz: 1a3abe56cf8434d09f590d26bebc0841271f7b8455447b6ac3567f592b0b5b17
4
+ data.tar.gz: ff0c2f6efe7be74789fad14e967ba500f2d64a4709b7c8572aef4e1f8d63d70e
5
5
  SHA512:
6
- metadata.gz: 985bf59d24f5cd214684917b7c4d5e47aeac75d3d2f8920d51dc6f58f36e43c008ed0eae8be6ef9db0d8c8b030f8c98e7c76574c88e5ba8f073362cdcf75820a
7
- data.tar.gz: 04fd51d4321a238043ac2036727678de04f47dd20d3cf3aa4c230994eb173448f1878c0918e3a7002ca3979639038b648c77f31c3d5ddd8da0c2093d50a27fa8
6
+ metadata.gz: d63afddd07ddd16cc587f74542b0aa94b323e5c3537850e1da7be5a844f9cf869794a06527b966bbedf947be3b9a54304dcf0b59a9dcc65e0c96b277dafd2746
7
+ data.tar.gz: 248ae028757a517f98b2cc0e9f07f8f1a731fff618574215415058a46cd072a7c16eaec75f9a5513a33a10f805e938e89d879b60cf9419c5e8e159bf91fa0e91
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 0.7.0 (2026-04-27)
2
+
3
+ - Updated Tokenizers to 0.23.1
4
+ - Added support for releasing GVL
5
+ - Added `encode_batch_fast` method to `Tokenizer`
6
+ - Dropped support for Ruby < 3.3
7
+
1
8
  ## 0.6.4 (2026-04-09)
2
9
 
3
10
  - Fixed caching
data/Cargo.lock CHANGED
@@ -33,16 +33,14 @@ checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8"
33
33
 
34
34
  [[package]]
35
35
  name = "bindgen"
36
- version = "0.69.5"
36
+ version = "0.72.1"
37
37
  source = "registry+https://github.com/rust-lang/crates.io-index"
38
- checksum = "271383c67ccabffb7381723dea0672a673f292304fcb45c01cc648c7a8d58088"
38
+ checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895"
39
39
  dependencies = [
40
40
  "bitflags",
41
41
  "cexpr",
42
42
  "clang-sys",
43
43
  "itertools 0.12.1",
44
- "lazy_static",
45
- "lazycell",
46
44
  "proc-macro2",
47
45
  "quote",
48
46
  "regex",
@@ -160,6 +158,12 @@ version = "0.8.21"
160
158
  source = "registry+https://github.com/rust-lang/crates.io-index"
161
159
  checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
162
160
 
161
+ [[package]]
162
+ name = "daachorse"
163
+ version = "1.0.1"
164
+ source = "registry+https://github.com/rust-lang/crates.io-index"
165
+ checksum = "6f55d7153ba3b507595872a3874803f07a8a81d1e888abed8e5db7da0597d6e2"
166
+
163
167
  [[package]]
164
168
  name = "darling"
165
169
  version = "0.20.11"
@@ -339,12 +343,6 @@ version = "1.5.0"
339
343
  source = "registry+https://github.com/rust-lang/crates.io-index"
340
344
  checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
341
345
 
342
- [[package]]
343
- name = "lazycell"
344
- version = "1.3.0"
345
- source = "registry+https://github.com/rust-lang/crates.io-index"
346
- checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
347
-
348
346
  [[package]]
349
347
  name = "libc"
350
348
  version = "0.2.172"
@@ -530,9 +528,9 @@ checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
530
528
 
531
529
  [[package]]
532
530
  name = "rand"
533
- version = "0.9.1"
531
+ version = "0.9.4"
534
532
  source = "registry+https://github.com/rust-lang/crates.io-index"
535
- checksum = "9fbfd9d094a40bf3ae768db9361049ace4c0e04a4fd6b359518bd7b73a73dd97"
533
+ checksum = "44c5af06bb1b7d3216d91932aed5265164bf384dc89cd6ba05cf59a35f5f76ea"
536
534
  dependencies = [
537
535
  "rand_chacha",
538
536
  "rand_core",
@@ -590,18 +588,18 @@ dependencies = [
590
588
 
591
589
  [[package]]
592
590
  name = "rb-sys"
593
- version = "0.9.124"
591
+ version = "0.9.127"
594
592
  source = "registry+https://github.com/rust-lang/crates.io-index"
595
- checksum = "c85c4188462601e2aa1469def389c17228566f82ea72f137ed096f21591bc489"
593
+ checksum = "d7d7c9560fe42dcffa576941394075f18a17dce89fcf718a2fa90b7dc2134d12"
596
594
  dependencies = [
597
595
  "rb-sys-build",
598
596
  ]
599
597
 
600
598
  [[package]]
601
599
  name = "rb-sys-build"
602
- version = "0.9.124"
600
+ version = "0.9.127"
603
601
  source = "registry+https://github.com/rust-lang/crates.io-index"
604
- checksum = "568068db4102230882e6d4ae8de6632e224ca75fe5970f6e026a04e91ed635d3"
602
+ checksum = "f1688e8f32967ba48c89e4dfa283b57f901075f542fc7ee9c3d7c5f9091ca1d9"
605
603
  dependencies = [
606
604
  "bindgen",
607
605
  "lazy_static",
@@ -649,9 +647,9 @@ checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
649
647
 
650
648
  [[package]]
651
649
  name = "rustc-hash"
652
- version = "1.1.0"
650
+ version = "2.1.2"
653
651
  source = "registry+https://github.com/rust-lang/crates.io-index"
654
- checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
652
+ checksum = "94300abf3f1ae2e2b8ffb7b58043de3d399c73fa6f4b73826402a5c457614dbe"
655
653
 
656
654
  [[package]]
657
655
  name = "rustversion"
@@ -778,13 +776,13 @@ dependencies = [
778
776
 
779
777
  [[package]]
780
778
  name = "tokenizers"
781
- version = "0.22.2"
779
+ version = "0.23.1"
782
780
  source = "registry+https://github.com/rust-lang/crates.io-index"
783
- checksum = "b238e22d44a15349529690fb07bd645cf58149a1b1e44d6cb5bd1641ff1a6223"
781
+ checksum = "44e5bea67576e04b6ff8564c5d9e09c2ef0cf476502245f2f120e497769d3112"
784
782
  dependencies = [
785
783
  "ahash",
786
- "aho-corasick",
787
784
  "compact_str",
785
+ "daachorse",
788
786
  "dary_heap",
789
787
  "derive_builder",
790
788
  "esaxx-rs",
@@ -812,11 +810,12 @@ dependencies = [
812
810
 
813
811
  [[package]]
814
812
  name = "tokenizers-ruby"
815
- version = "0.6.4"
813
+ version = "0.7.0"
816
814
  dependencies = [
817
815
  "ahash",
818
816
  "magnus",
819
817
  "onig",
818
+ "rb-sys",
820
819
  "serde",
821
820
  "tokenizers",
822
821
  ]
@@ -14,7 +14,7 @@ base64 v0.13.1
14
14
  https://github.com/marshallpierce/rust-base64
15
15
  MIT/Apache-2.0
16
16
 
17
- bindgen v0.69.5
17
+ bindgen v0.72.1
18
18
  https://rust-lang.github.io/rust-bindgen/
19
19
  BSD-3-Clause
20
20
 
@@ -62,6 +62,10 @@ crossbeam-utils v0.8.21
62
62
  https://github.com/crossbeam-rs/crossbeam/tree/master/crossbeam-utils
63
63
  MIT OR Apache-2.0
64
64
 
65
+ daachorse v1.0.1
66
+ https://github.com/daac-tools/daachorse
67
+ MIT OR Apache-2.0
68
+
65
69
  darling v0.20.11
66
70
  https://github.com/TedDriggs/darling
67
71
  MIT
@@ -138,10 +142,6 @@ lazy_static v1.5.0
138
142
  https://github.com/rust-lang-nursery/lazy-static.rs
139
143
  MIT OR Apache-2.0
140
144
 
141
- lazycell v1.3.0
142
- https://github.com/indiv0/lazycell
143
- MIT/Apache-2.0
144
-
145
145
  libc v0.2.172
146
146
  https://github.com/rust-lang/libc
147
147
  MIT OR Apache-2.0
@@ -226,7 +226,7 @@ quote v1.0.40
226
226
  https://github.com/dtolnay/quote
227
227
  MIT OR Apache-2.0
228
228
 
229
- rand v0.9.1
229
+ rand v0.9.4
230
230
  https://rust-random.github.io/book
231
231
  MIT OR Apache-2.0
232
232
 
@@ -250,11 +250,11 @@ rayon-core v1.12.1
250
250
  https://github.com/rayon-rs/rayon
251
251
  MIT OR Apache-2.0
252
252
 
253
- rb-sys v0.9.124
253
+ rb-sys v0.9.127
254
254
  https://github.com/oxidize-rb/rb-sys
255
255
  MIT OR Apache-2.0
256
256
 
257
- rb-sys-build v0.9.124
257
+ rb-sys-build v0.9.127
258
258
  https://github.com/oxidize-rb/rb-sys
259
259
  MIT OR Apache-2.0
260
260
 
@@ -274,9 +274,9 @@ regex-syntax v0.8.5
274
274
  https://github.com/rust-lang/regex/tree/master/regex-syntax
275
275
  MIT OR Apache-2.0
276
276
 
277
- rustc-hash v1.1.0
278
- https://github.com/rust-lang-nursery/rustc-hash
279
- Apache-2.0/MIT
277
+ rustc-hash v2.1.2
278
+ https://github.com/rust-lang/rustc-hash
279
+ Apache-2.0 OR MIT
280
280
 
281
281
  rustversion v1.0.21
282
282
  https://github.com/dtolnay/rustversion
@@ -338,7 +338,7 @@ thiserror-impl v2.0.12
338
338
  https://github.com/dtolnay/thiserror
339
339
  MIT OR Apache-2.0
340
340
 
341
- tokenizers v0.22.2
341
+ tokenizers v0.23.1
342
342
  https://github.com/huggingface/tokenizers
343
343
  Apache-2.0
344
344
 
@@ -2899,6 +2899,215 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
2899
2899
  IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
2900
2900
  DEALINGS IN THE SOFTWARE.
2901
2901
 
2902
+ ================================================================================
2903
+ daachorse LICENSE-APACHE
2904
+ ================================================================================
2905
+
2906
+ Apache License
2907
+ Version 2.0, January 2004
2908
+ http://www.apache.org/licenses/
2909
+
2910
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
2911
+
2912
+ 1. Definitions.
2913
+
2914
+ "License" shall mean the terms and conditions for use, reproduction,
2915
+ and distribution as defined by Sections 1 through 9 of this document.
2916
+
2917
+ "Licensor" shall mean the copyright owner or entity authorized by
2918
+ the copyright owner that is granting the License.
2919
+
2920
+ "Legal Entity" shall mean the union of the acting entity and all
2921
+ other entities that control, are controlled by, or are under common
2922
+ control with that entity. For the purposes of this definition,
2923
+ "control" means (i) the power, direct or indirect, to cause the
2924
+ direction or management of such entity, whether by contract or
2925
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
2926
+ outstanding shares, or (iii) beneficial ownership of such entity.
2927
+
2928
+ "You" (or "Your") shall mean an individual or Legal Entity
2929
+ exercising permissions granted by this License.
2930
+
2931
+ "Source" form shall mean the preferred form for making modifications,
2932
+ including but not limited to software source code, documentation
2933
+ source, and configuration files.
2934
+
2935
+ "Object" form shall mean any form resulting from mechanical
2936
+ transformation or translation of a Source form, including but
2937
+ not limited to compiled object code, generated documentation,
2938
+ and conversions to other media types.
2939
+
2940
+ "Work" shall mean the work of authorship, whether in Source or
2941
+ Object form, made available under the License, as indicated by a
2942
+ copyright notice that is included in or attached to the work
2943
+ (an example is provided in the Appendix below).
2944
+
2945
+ "Derivative Works" shall mean any work, whether in Source or Object
2946
+ form, that is based on (or derived from) the Work and for which the
2947
+ editorial revisions, annotations, elaborations, or other modifications
2948
+ represent, as a whole, an original work of authorship. For the purposes
2949
+ of this License, Derivative Works shall not include works that remain
2950
+ separable from, or merely link (or bind by name) to the interfaces of,
2951
+ the Work and Derivative Works thereof.
2952
+
2953
+ "Contribution" shall mean any work of authorship, including
2954
+ the original version of the Work and any modifications or additions
2955
+ to that Work or Derivative Works thereof, that is intentionally
2956
+ submitted to Licensor for inclusion in the Work by the copyright owner
2957
+ or by an individual or Legal Entity authorized to submit on behalf of
2958
+ the copyright owner. For the purposes of this definition, "submitted"
2959
+ means any form of electronic, verbal, or written communication sent
2960
+ to the Licensor or its representatives, including but not limited to
2961
+ communication on electronic mailing lists, source code control systems,
2962
+ and issue tracking systems that are managed by, or on behalf of, the
2963
+ Licensor for the purpose of discussing and improving the Work, but
2964
+ excluding communication that is conspicuously marked or otherwise
2965
+ designated in writing by the copyright owner as "Not a Contribution."
2966
+
2967
+ "Contributor" shall mean Licensor and any individual or Legal Entity
2968
+ on behalf of whom a Contribution has been received by Licensor and
2969
+ subsequently incorporated within the Work.
2970
+
2971
+ 2. Grant of Copyright License. Subject to the terms and conditions of
2972
+ this License, each Contributor hereby grants to You a perpetual,
2973
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
2974
+ copyright license to reproduce, prepare Derivative Works of,
2975
+ publicly display, publicly perform, sublicense, and distribute the
2976
+ Work and such Derivative Works in Source or Object form.
2977
+
2978
+ 3. Grant of Patent License. Subject to the terms and conditions of
2979
+ this License, each Contributor hereby grants to You a perpetual,
2980
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
2981
+ (except as stated in this section) patent license to make, have made,
2982
+ use, offer to sell, sell, import, and otherwise transfer the Work,
2983
+ where such license applies only to those patent claims licensable
2984
+ by such Contributor that are necessarily infringed by their
2985
+ Contribution(s) alone or by combination of their Contribution(s)
2986
+ with the Work to which such Contribution(s) was submitted. If You
2987
+ institute patent litigation against any entity (including a
2988
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
2989
+ or a Contribution incorporated within the Work constitutes direct
2990
+ or contributory patent infringement, then any patent licenses
2991
+ granted to You under this License for that Work shall terminate
2992
+ as of the date such litigation is filed.
2993
+
2994
+ 4. Redistribution. You may reproduce and distribute copies of the
2995
+ Work or Derivative Works thereof in any medium, with or without
2996
+ modifications, and in Source or Object form, provided that You
2997
+ meet the following conditions:
2998
+
2999
+ (a) You must give any other recipients of the Work or
3000
+ Derivative Works a copy of this License; and
3001
+
3002
+ (b) You must cause any modified files to carry prominent notices
3003
+ stating that You changed the files; and
3004
+
3005
+ (c) You must retain, in the Source form of any Derivative Works
3006
+ that You distribute, all copyright, patent, trademark, and
3007
+ attribution notices from the Source form of the Work,
3008
+ excluding those notices that do not pertain to any part of
3009
+ the Derivative Works; and
3010
+
3011
+ (d) If the Work includes a "NOTICE" text file as part of its
3012
+ distribution, then any Derivative Works that You distribute must
3013
+ include a readable copy of the attribution notices contained
3014
+ within such NOTICE file, excluding those notices that do not
3015
+ pertain to any part of the Derivative Works, in at least one
3016
+ of the following places: within a NOTICE text file distributed
3017
+ as part of the Derivative Works; within the Source form or
3018
+ documentation, if provided along with the Derivative Works; or,
3019
+ within a display generated by the Derivative Works, if and
3020
+ wherever such third-party notices normally appear. The contents
3021
+ of the NOTICE file are for informational purposes only and
3022
+ do not modify the License. You may add Your own attribution
3023
+ notices within Derivative Works that You distribute, alongside
3024
+ or as an addendum to the NOTICE text from the Work, provided
3025
+ that such additional attribution notices cannot be construed
3026
+ as modifying the License.
3027
+
3028
+ You may add Your own copyright statement to Your modifications and
3029
+ may provide additional or different license terms and conditions
3030
+ for use, reproduction, or distribution of Your modifications, or
3031
+ for any such Derivative Works as a whole, provided Your use,
3032
+ reproduction, and distribution of the Work otherwise complies with
3033
+ the conditions stated in this License.
3034
+
3035
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
3036
+ any Contribution intentionally submitted for inclusion in the Work
3037
+ by You to the Licensor shall be under the terms and conditions of
3038
+ this License, without any additional terms or conditions.
3039
+ Notwithstanding the above, nothing herein shall supersede or modify
3040
+ the terms of any separate license agreement you may have executed
3041
+ with Licensor regarding such Contributions.
3042
+
3043
+ 6. Trademarks. This License does not grant permission to use the trade
3044
+ names, trademarks, service marks, or product names of the Licensor,
3045
+ except as required for reasonable and customary use in describing the
3046
+ origin of the Work and reproducing the content of the NOTICE file.
3047
+
3048
+ 7. Disclaimer of Warranty. Unless required by applicable law or
3049
+ agreed to in writing, Licensor provides the Work (and each
3050
+ Contributor provides its Contributions) on an "AS IS" BASIS,
3051
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
3052
+ implied, including, without limitation, any warranties or conditions
3053
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
3054
+ PARTICULAR PURPOSE. You are solely responsible for determining the
3055
+ appropriateness of using or redistributing the Work and assume any
3056
+ risks associated with Your exercise of permissions under this License.
3057
+
3058
+ 8. Limitation of Liability. In no event and under no legal theory,
3059
+ whether in tort (including negligence), contract, or otherwise,
3060
+ unless required by applicable law (such as deliberate and grossly
3061
+ negligent acts) or agreed to in writing, shall any Contributor be
3062
+ liable to You for damages, including any direct, indirect, special,
3063
+ incidental, or consequential damages of any character arising as a
3064
+ result of this License or out of the use or inability to use the
3065
+ Work (including but not limited to damages for loss of goodwill,
3066
+ work stoppage, computer failure or malfunction, or any and all
3067
+ other commercial damages or losses), even if such Contributor
3068
+ has been advised of the possibility of such damages.
3069
+
3070
+ 9. Accepting Warranty or Additional Liability. While redistributing
3071
+ the Work or Derivative Works thereof, You may choose to offer,
3072
+ and charge a fee for, acceptance of support, warranty, indemnity,
3073
+ or other liability obligations and/or rights consistent with this
3074
+ License. However, in accepting such obligations, You may act only
3075
+ on Your own behalf and on Your sole responsibility, not on behalf
3076
+ of any other Contributor, and only if You agree to indemnify,
3077
+ defend, and hold each Contributor harmless for any liability
3078
+ incurred by, or claims asserted against, such Contributor by reason
3079
+ of your accepting any such warranty or additional liability.
3080
+
3081
+ END OF TERMS AND CONDITIONS
3082
+
3083
+ ================================================================================
3084
+ daachorse LICENSE-MIT
3085
+ ================================================================================
3086
+
3087
+ Permission is hereby granted, free of charge, to any
3088
+ person obtaining a copy of this software and associated
3089
+ documentation files (the "Software"), to deal in the
3090
+ Software without restriction, including without
3091
+ limitation the rights to use, copy, modify, merge,
3092
+ publish, distribute, sublicense, and/or sell copies of
3093
+ the Software, and to permit persons to whom the Software
3094
+ is furnished to do so, subject to the following
3095
+ conditions:
3096
+
3097
+ The above copyright notice and this permission notice
3098
+ shall be included in all copies or substantial portions
3099
+ of the Software.
3100
+
3101
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
3102
+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
3103
+ TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
3104
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
3105
+ SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
3106
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
3107
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
3108
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
3109
+ DEALINGS IN THE SOFTWARE.
3110
+
2902
3111
  ================================================================================
2903
3112
  darling LICENSE
2904
3113
  ================================================================================
@@ -6233,243 +6442,6 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
6233
6442
  IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
6234
6443
  DEALINGS IN THE SOFTWARE.
6235
6444
 
6236
- ================================================================================
6237
- lazycell LICENSE-APACHE
6238
- ================================================================================
6239
-
6240
- Apache License
6241
- Version 2.0, January 2004
6242
- http://www.apache.org/licenses/
6243
-
6244
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6245
-
6246
- 1. Definitions.
6247
-
6248
- "License" shall mean the terms and conditions for use, reproduction,
6249
- and distribution as defined by Sections 1 through 9 of this document.
6250
-
6251
- "Licensor" shall mean the copyright owner or entity authorized by
6252
- the copyright owner that is granting the License.
6253
-
6254
- "Legal Entity" shall mean the union of the acting entity and all
6255
- other entities that control, are controlled by, or are under common
6256
- control with that entity. For the purposes of this definition,
6257
- "control" means (i) the power, direct or indirect, to cause the
6258
- direction or management of such entity, whether by contract or
6259
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
6260
- outstanding shares, or (iii) beneficial ownership of such entity.
6261
-
6262
- "You" (or "Your") shall mean an individual or Legal Entity
6263
- exercising permissions granted by this License.
6264
-
6265
- "Source" form shall mean the preferred form for making modifications,
6266
- including but not limited to software source code, documentation
6267
- source, and configuration files.
6268
-
6269
- "Object" form shall mean any form resulting from mechanical
6270
- transformation or translation of a Source form, including but
6271
- not limited to compiled object code, generated documentation,
6272
- and conversions to other media types.
6273
-
6274
- "Work" shall mean the work of authorship, whether in Source or
6275
- Object form, made available under the License, as indicated by a
6276
- copyright notice that is included in or attached to the work
6277
- (an example is provided in the Appendix below).
6278
-
6279
- "Derivative Works" shall mean any work, whether in Source or Object
6280
- form, that is based on (or derived from) the Work and for which the
6281
- editorial revisions, annotations, elaborations, or other modifications
6282
- represent, as a whole, an original work of authorship. For the purposes
6283
- of this License, Derivative Works shall not include works that remain
6284
- separable from, or merely link (or bind by name) to the interfaces of,
6285
- the Work and Derivative Works thereof.
6286
-
6287
- "Contribution" shall mean any work of authorship, including
6288
- the original version of the Work and any modifications or additions
6289
- to that Work or Derivative Works thereof, that is intentionally
6290
- submitted to Licensor for inclusion in the Work by the copyright owner
6291
- or by an individual or Legal Entity authorized to submit on behalf of
6292
- the copyright owner. For the purposes of this definition, "submitted"
6293
- means any form of electronic, verbal, or written communication sent
6294
- to the Licensor or its representatives, including but not limited to
6295
- communication on electronic mailing lists, source code control systems,
6296
- and issue tracking systems that are managed by, or on behalf of, the
6297
- Licensor for the purpose of discussing and improving the Work, but
6298
- excluding communication that is conspicuously marked or otherwise
6299
- designated in writing by the copyright owner as "Not a Contribution."
6300
-
6301
- "Contributor" shall mean Licensor and any individual or Legal Entity
6302
- on behalf of whom a Contribution has been received by Licensor and
6303
- subsequently incorporated within the Work.
6304
-
6305
- 2. Grant of Copyright License. Subject to the terms and conditions of
6306
- this License, each Contributor hereby grants to You a perpetual,
6307
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
6308
- copyright license to reproduce, prepare Derivative Works of,
6309
- publicly display, publicly perform, sublicense, and distribute the
6310
- Work and such Derivative Works in Source or Object form.
6311
-
6312
- 3. Grant of Patent License. Subject to the terms and conditions of
6313
- this License, each Contributor hereby grants to You a perpetual,
6314
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
6315
- (except as stated in this section) patent license to make, have made,
6316
- use, offer to sell, sell, import, and otherwise transfer the Work,
6317
- where such license applies only to those patent claims licensable
6318
- by such Contributor that are necessarily infringed by their
6319
- Contribution(s) alone or by combination of their Contribution(s)
6320
- with the Work to which such Contribution(s) was submitted. If You
6321
- institute patent litigation against any entity (including a
6322
- cross-claim or counterclaim in a lawsuit) alleging that the Work
6323
- or a Contribution incorporated within the Work constitutes direct
6324
- or contributory patent infringement, then any patent licenses
6325
- granted to You under this License for that Work shall terminate
6326
- as of the date such litigation is filed.
6327
-
6328
- 4. Redistribution. You may reproduce and distribute copies of the
6329
- Work or Derivative Works thereof in any medium, with or without
6330
- modifications, and in Source or Object form, provided that You
6331
- meet the following conditions:
6332
-
6333
- (a) You must give any other recipients of the Work or
6334
- Derivative Works a copy of this License; and
6335
-
6336
- (b) You must cause any modified files to carry prominent notices
6337
- stating that You changed the files; and
6338
-
6339
- (c) You must retain, in the Source form of any Derivative Works
6340
- that You distribute, all copyright, patent, trademark, and
6341
- attribution notices from the Source form of the Work,
6342
- excluding those notices that do not pertain to any part of
6343
- the Derivative Works; and
6344
-
6345
- (d) If the Work includes a "NOTICE" text file as part of its
6346
- distribution, then any Derivative Works that You distribute must
6347
- include a readable copy of the attribution notices contained
6348
- within such NOTICE file, excluding those notices that do not
6349
- pertain to any part of the Derivative Works, in at least one
6350
- of the following places: within a NOTICE text file distributed
6351
- as part of the Derivative Works; within the Source form or
6352
- documentation, if provided along with the Derivative Works; or,
6353
- within a display generated by the Derivative Works, if and
6354
- wherever such third-party notices normally appear. The contents
6355
- of the NOTICE file are for informational purposes only and
6356
- do not modify the License. You may add Your own attribution
6357
- notices within Derivative Works that You distribute, alongside
6358
- or as an addendum to the NOTICE text from the Work, provided
6359
- that such additional attribution notices cannot be construed
6360
- as modifying the License.
6361
-
6362
- You may add Your own copyright statement to Your modifications and
6363
- may provide additional or different license terms and conditions
6364
- for use, reproduction, or distribution of Your modifications, or
6365
- for any such Derivative Works as a whole, provided Your use,
6366
- reproduction, and distribution of the Work otherwise complies with
6367
- the conditions stated in this License.
6368
-
6369
- 5. Submission of Contributions. Unless You explicitly state otherwise,
6370
- any Contribution intentionally submitted for inclusion in the Work
6371
- by You to the Licensor shall be under the terms and conditions of
6372
- this License, without any additional terms or conditions.
6373
- Notwithstanding the above, nothing herein shall supersede or modify
6374
- the terms of any separate license agreement you may have executed
6375
- with Licensor regarding such Contributions.
6376
-
6377
- 6. Trademarks. This License does not grant permission to use the trade
6378
- names, trademarks, service marks, or product names of the Licensor,
6379
- except as required for reasonable and customary use in describing the
6380
- origin of the Work and reproducing the content of the NOTICE file.
6381
-
6382
- 7. Disclaimer of Warranty. Unless required by applicable law or
6383
- agreed to in writing, Licensor provides the Work (and each
6384
- Contributor provides its Contributions) on an "AS IS" BASIS,
6385
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
6386
- implied, including, without limitation, any warranties or conditions
6387
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
6388
- PARTICULAR PURPOSE. You are solely responsible for determining the
6389
- appropriateness of using or redistributing the Work and assume any
6390
- risks associated with Your exercise of permissions under this License.
6391
-
6392
- 8. Limitation of Liability. In no event and under no legal theory,
6393
- whether in tort (including negligence), contract, or otherwise,
6394
- unless required by applicable law (such as deliberate and grossly
6395
- negligent acts) or agreed to in writing, shall any Contributor be
6396
- liable to You for damages, including any direct, indirect, special,
6397
- incidental, or consequential damages of any character arising as a
6398
- result of this License or out of the use or inability to use the
6399
- Work (including but not limited to damages for loss of goodwill,
6400
- work stoppage, computer failure or malfunction, or any and all
6401
- other commercial damages or losses), even if such Contributor
6402
- has been advised of the possibility of such damages.
6403
-
6404
- 9. Accepting Warranty or Additional Liability. While redistributing
6405
- the Work or Derivative Works thereof, You may choose to offer,
6406
- and charge a fee for, acceptance of support, warranty, indemnity,
6407
- or other liability obligations and/or rights consistent with this
6408
- License. However, in accepting such obligations, You may act only
6409
- on Your own behalf and on Your sole responsibility, not on behalf
6410
- of any other Contributor, and only if You agree to indemnify,
6411
- defend, and hold each Contributor harmless for any liability
6412
- incurred by, or claims asserted against, such Contributor by reason
6413
- of your accepting any such warranty or additional liability.
6414
-
6415
- END OF TERMS AND CONDITIONS
6416
-
6417
- APPENDIX: How to apply the Apache License to your work.
6418
-
6419
- To apply the Apache License to your work, attach the following
6420
- boilerplate notice, with the fields enclosed by brackets "[]"
6421
- replaced with your own identifying information. (Don't include
6422
- the brackets!) The text should be enclosed in the appropriate
6423
- comment syntax for the file format. We also recommend that a
6424
- file or class name and description of purpose be included on the
6425
- same "printed page" as the copyright notice for easier
6426
- identification within third-party archives.
6427
-
6428
- Copyright [yyyy] [name of copyright owner]
6429
-
6430
- Licensed under the Apache License, Version 2.0 (the "License");
6431
- you may not use this file except in compliance with the License.
6432
- You may obtain a copy of the License at
6433
-
6434
- http://www.apache.org/licenses/LICENSE-2.0
6435
-
6436
- Unless required by applicable law or agreed to in writing, software
6437
- distributed under the License is distributed on an "AS IS" BASIS,
6438
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
6439
- See the License for the specific language governing permissions and
6440
- limitations under the License.
6441
-
6442
- ================================================================================
6443
- lazycell LICENSE-MIT
6444
- ================================================================================
6445
-
6446
- Original work Copyright (c) 2014 The Rust Project Developers
6447
- Modified work Copyright (c) 2016-2018 Nikita Pekin and lazycell contributors
6448
-
6449
- Permission is hereby granted, free of charge, to any
6450
- person obtaining a copy of this software and associated
6451
- documentation files (the "Software"), to deal in the
6452
- Software without restriction, including without
6453
- limitation the rights to use, copy, modify, merge,
6454
- publish, distribute, sublicense, and/or sell copies of
6455
- the Software, and to permit persons to whom the Software
6456
- is furnished to do so, subject to the following
6457
- conditions:
6458
-
6459
- The above copyright notice and this permission notice
6460
- shall be included in all copies or substantial portions
6461
- of the Software.
6462
-
6463
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
6464
- ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
6465
- TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
6466
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
6467
- SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
6468
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
6469
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
6470
- IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
6471
- DEALINGS IN THE SOFTWARE.
6472
-
6473
6445
  ================================================================================
6474
6446
  libc LICENSE-APACHE
6475
6447
  ================================================================================
@@ -12892,31 +12864,6 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
12892
12864
 
12893
12865
  END OF TERMS AND CONDITIONS
12894
12866
 
12895
- APPENDIX: How to apply the Apache License to your work.
12896
-
12897
- To apply the Apache License to your work, attach the following
12898
- boilerplate notice, with the fields enclosed by brackets "[]"
12899
- replaced with your own identifying information. (Don't include
12900
- the brackets!) The text should be enclosed in the appropriate
12901
- comment syntax for the file format. We also recommend that a
12902
- file or class name and description of purpose be included on the
12903
- same "printed page" as the copyright notice for easier
12904
- identification within third-party archives.
12905
-
12906
- Copyright [yyyy] [name of copyright owner]
12907
-
12908
- Licensed under the Apache License, Version 2.0 (the "License");
12909
- you may not use this file except in compliance with the License.
12910
- You may obtain a copy of the License at
12911
-
12912
- http://www.apache.org/licenses/LICENSE-2.0
12913
-
12914
- Unless required by applicable law or agreed to in writing, software
12915
- distributed under the License is distributed on an "AS IS" BASIS,
12916
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12917
- See the License for the specific language governing permissions and
12918
- limitations under the License.
12919
-
12920
12867
  ================================================================================
12921
12868
  rustc-hash LICENSE-MIT
12922
12869
  ================================================================================
Binary file
Binary file
Binary file
@@ -1,7 +1,7 @@
1
1
  module Tokenizers
2
2
  module FromPretrained
3
3
  # for user agent
4
- TOKENIZERS_VERSION = "0.22.2"
4
+ TOKENIZERS_VERSION = "0.23.1"
5
5
 
6
6
  # use Ruby for downloads
7
7
  # this avoids the need to vendor OpenSSL on Linux
@@ -0,0 +1,9 @@
1
+ module Tokenizers
2
+ module Processors
3
+ class Sequence
4
+ def self.new(processors)
5
+ _new(processors)
6
+ end
7
+ end
8
+ end
9
+ end
@@ -18,6 +18,10 @@ module Tokenizers
18
18
  _encode_batch(input, is_pretokenized, add_special_tokens)
19
19
  end
20
20
 
21
+ def encode_batch_fast(input, is_pretokenized: false, add_special_tokens: true)
22
+ _encode_batch_fast(input, is_pretokenized, add_special_tokens)
23
+ end
24
+
21
25
  def decode(ids, skip_special_tokens: true)
22
26
  _decode(ids, skip_special_tokens)
23
27
  end
@@ -1,3 +1,3 @@
1
1
  module Tokenizers
2
- VERSION = "0.6.4"
2
+ VERSION = "0.7.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tokenizers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.7.0
5
5
  platform: x64-mingw-ucrt
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-04-09 00:00:00.000000000 Z
11
+ date: 2026-04-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: andrew@ankane.org
@@ -23,7 +23,6 @@ files:
23
23
  - LICENSE.txt
24
24
  - README.md
25
25
  - lib/tokenizers.rb
26
- - lib/tokenizers/3.2/tokenizers.so
27
26
  - lib/tokenizers/3.3/tokenizers.so
28
27
  - lib/tokenizers/3.4/tokenizers.so
29
28
  - lib/tokenizers/4.0/tokenizers.so
@@ -50,6 +49,7 @@ files:
50
49
  - lib/tokenizers/pre_tokenizers/split.rb
51
50
  - lib/tokenizers/processors/byte_level.rb
52
51
  - lib/tokenizers/processors/roberta_processing.rb
52
+ - lib/tokenizers/processors/sequence.rb
53
53
  - lib/tokenizers/processors/template_processing.rb
54
54
  - lib/tokenizers/tokenizer.rb
55
55
  - lib/tokenizers/trainers/bpe_trainer.rb
@@ -69,7 +69,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
69
69
  requirements:
70
70
  - - ">="
71
71
  - !ruby/object:Gem::Version
72
- version: '3.2'
72
+ version: '3.3'
73
73
  - - "<"
74
74
  - !ruby/object:Gem::Version
75
75
  version: 4.1.dev
Binary file