Gå til hovedinnhold

kapi redact

kapi redact [files...]

Replace sensitive spans with protected placeholders before processing

Commandredact
Grouptext-processing
Try it

Runs in your browser against a small sample file. Edit the command before running, or press Run to execute it as shown.

kapi redact
Flags
FlagTypeDefaultDescription
--concurrency, -jint0max parallel files (0 = auto)
--detectorsstringSliceDetection backends to run: rules and/or entities
--encoding, -estringUTF-8input file encoding
--entity-typesstringSliceEntity categories to redact: person
--fail-on-unknownboolfalseexit with error if any file cannot be processed (default: skip with warning)
--format, -fstringoverride input format detection
--jsonboolfalseoutput results as JSON
--map, -mstringArraymap glob pattern to format (e.g. '*.docx=okf_openxml:test')
--no-warnboolfalsesuppress warnings for skipped files
--packboolfalsewhen transforming a .klz, also eject the result to the .klz (auto-pack)
--parallel-blocksint0fan out block processing across N goroutines (0 = off)
--placeholderstringVisible stand-in template; supports {category} and {n}
--progress, -pboolfalseshow progress bar
--rules-pathstringPath to a redaction rules YAML file
--source-langstringensource language (e.g. en, en-US)
--strictboolfalsealias for --fail-on-unknown
--target-langstringtarget language (e.g. fr, de-DE)
--tracestringwrite flow trace JSON to file (for flow visualization)

← Back to the Command Reference