redact_ner 0.1.1
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 +7 -0
- data/CHANGELOG.md +45 -0
- data/Cargo.lock +2255 -0
- data/Cargo.toml +3 -0
- data/LICENSE-APACHE +202 -0
- data/LICENSE-MIT +21 -0
- data/README.md +152 -0
- data/ext/redact_ner/Cargo.toml +19 -0
- data/ext/redact_ner/extconf.rb +6 -0
- data/ext/redact_ner/src/lib.rs +113 -0
- data/lib/redact_ner/version.rb +5 -0
- data/lib/redact_ner.rb +53 -0
- metadata +121 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: f6fdf0558a7f686f360db45f9a8ebc6822f8f271397597c412a606b97c53211d
|
|
4
|
+
data.tar.gz: 8daed6b0d7875e295517dd1ef3677bb1e0b4c1b679fc12e6e3c09cf7c01b28d3
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 7f30260888db3b7168eabee83ca11590754e790ae02e060c8bca9fadcc21fee6273a5df7ec27964a49328bac9be52e79313a2b22d55f2a74eb84856066b4fc84
|
|
7
|
+
data.tar.gz: 66d18a4ddf45e931c5f615421a08da5d6caa22ae88e47bb4ece2d4a279c8f32cc744b5b893f3036a9bcd9ac69692756b8060d82b5f69a91a457d5e97d6c01505
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is loosely based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [0.1.1] - 2026-05-17
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Relicensed from BUSL-1.1 to dual **MIT OR Apache-2.0**. The BUSL-1.1 in
|
|
15
|
+
0.1.0 was an unintended leftover; 0.1.0 is superseded and yanked.
|
|
16
|
+
|
|
17
|
+
## [0.1.0] - 2026-05-17
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- Initial release.
|
|
22
|
+
- Ruby bindings for the `redact-ner` Rust crate (`NerRecognizer`) via
|
|
23
|
+
[magnus](https://github.com/matsadler/magnus) + [rb-sys](https://github.com/oxidize-rb/rb-sys).
|
|
24
|
+
- `RedactNer::Recognizer.from_file` constructor.
|
|
25
|
+
- `#analyze(text, language)` returning `Array<RedactNer::Result>`.
|
|
26
|
+
- `#available?`, `#supports_language?`, `#name`, `#supported_entities`,
|
|
27
|
+
`#min_confidence`, `#max_seq_length`, `#model_path` accessors.
|
|
28
|
+
- `RedactNer::Result` value object with `entity_type`, `start`, `end`,
|
|
29
|
+
`score`, `recognizer_name`, `text`, `#length`, and `#to_h`.
|
|
30
|
+
- Examples: basic usage, fail-loud availability check, integration with
|
|
31
|
+
the [`onnxruntime`](https://github.com/ankane/onnxruntime-ruby) gem,
|
|
32
|
+
and an email regex merge demonstration.
|
|
33
|
+
- Precompiled native gems (Ruby 3.2–3.4) for `x86_64-linux`, `aarch64-linux`,
|
|
34
|
+
`x86_64-linux-musl`, `aarch64-linux-musl`, and `x64-mingw-ucrt`, so these
|
|
35
|
+
platforms install without a Rust toolchain. Built and published via GitHub
|
|
36
|
+
Actions (`oxidize-rb/actions/cross-gem` + RubyGems Trusted Publishing).
|
|
37
|
+
- macOS (`*-darwin`), Ruby 4.0, and any other platform install from the
|
|
38
|
+
source gem, which compiles the Rust extension (needs a Rust toolchain;
|
|
39
|
+
macOS also needs the Xcode command-line tools).
|
|
40
|
+
- The precompiled musl gems (Alpine / distroless) link `libstdc++`
|
|
41
|
+
dynamically; install it at runtime, e.g. `apk add --no-cache libstdc++`.
|
|
42
|
+
|
|
43
|
+
[Unreleased]: https://github.com/mitsuru/redact-ner-ruby/compare/v0.1.1...HEAD
|
|
44
|
+
[0.1.1]: https://github.com/mitsuru/redact-ner-ruby/releases/tag/v0.1.1
|
|
45
|
+
[0.1.0]: https://github.com/mitsuru/redact-ner-ruby/releases/tag/v0.1.0
|