cate analyze
Overview
Detect sensitive entities (PII) in a file without making any changes. Useful for auditing files before transformation to understand what would be detected and replaced. Read-only operation.
Usage
python -m src.anonymization.cli analyze FILE [OPTIONS]
Options
| Option | Description | Default |
|---|---|---|
FILE | File to analyze (positional, required) | -- |
-f, --format | Output format: table, json, yaml | table |
--encoding | File encoding | utf-8 |
Prerequisites
- Repo: content-conductor
- Install:
pip install -r requirements.txtfrom repo root
Examples
Analyze a document
python -m src.anonymization.cli analyze document.txt
JSON output for scripting
python -m src.anonymization.cli analyze document.txt --format json
Output
Lists detected entity types, counts, and locations. No files are modified.
Related Commands
cc cate transform-- anonymize detected entitiescc cate batch-- batch-process multiple files