vicary 0.3.0 → 0.3.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 +4 -4
- data/README.md +6 -0
- data/lib/vicary/version.rb +1 -1
- 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: '0900043bf638f35f9c800d4c4965313a7c6ba37b505b030f5f03454d82bc4149'
|
|
4
|
+
data.tar.gz: 348848675fc538266afa648892697d0eae47e5730cd5c850a745f29c629b3a2c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fb086bad7e88f5cdbb48ec7413ddd0ee5a945df0bee7499d15f0a4898c4818f469bc32c14f1357a836dcdff69f8a5390922d5869fcaa57d5f601b747608ac630
|
|
7
|
+
data.tar.gz: eb1513fe04fa484d45504fdb89a75aef040b30a98b5fc647e5880db9e9f26c9b21573afc7442d352218dbcc1a4a4fb5b4ded2108ad9029c8ec988b32506fefc8
|
data/README.md
CHANGED
|
@@ -40,6 +40,12 @@ masked, n, maps, batched = Vicary.redact_batch_with_report(fields, identity)
|
|
|
40
40
|
# passed separately, so cross-field placeholder identity does NOT hold.
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
+
Pass `render: "adlib"` (and `adlib_seed:`, or set `VICARY_RENDER` / `VICARY_ADLIB_SEED`)
|
|
44
|
+
to write each redacted span as an invented value of its kind instead of a `{KIND_n}`
|
|
45
|
+
placeholder, so the result reads as prose; `Vicary.restore_adlib(text, restore_map,
|
|
46
|
+
token_map)` puts originals back into a model reply. It renders byte for byte what the
|
|
47
|
+
Python implementation does, checked by `conformance/adlib.json`.
|
|
48
|
+
|
|
43
49
|
An offset landing inside a placeholder resolves to the start of the span it
|
|
44
50
|
replaced. A map that is absent, or that covers only some of the placeholders in
|
|
45
51
|
the text, yields **no** spans and translates as the identity — a caller can
|
data/lib/vicary/version.rb
CHANGED
|
@@ -6,5 +6,5 @@ module Vicary
|
|
|
6
6
|
# Shared across all three front doors on purpose: one detector, one number. A
|
|
7
7
|
# gem 0.3.0 that corresponds to nothing on PyPI cannot be reasoned about, and
|
|
8
8
|
# the parity claim is between *versions*, not between package names.
|
|
9
|
-
VERSION = "0.3.
|
|
9
|
+
VERSION = "0.3.1"
|
|
10
10
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vicary
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Blake Thomas
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: |
|
|
14
14
|
Finds the names a student writes about — classmates, teachers, relatives — and
|