classify
Applies classification rules to documents and assigns document classes with weighted confidence scores. Without flags, classifies all unclassified documents. Use --document to classify a single document or --show to view existing classifications.
Usage
bash
unsterwerx classify [OPTIONS]
Options
| Option | Short | Type | Default | Description |
|---|---|---|---|---|
--document | UUID | Classify a single document | ||
--show | UUID | Show existing classification for a document |
Examples
Classify all documents
bash
unsterwerx classify
Classification Summary
══════════════════════════════════
Documents classified: 1122
Rules applied: 6
Errors: 0
══════════════════════════════════
Classify a single document
bash
unsterwerx classify --document a1b2c3d4-...
Show classification for a document
bash
unsterwerx classify --show a1b2c3d4-...
Classifications for a1b2c3d4...
══════════════════════════════════════════
cv (62%) via rule 'seed-cv' at 2026-02-25
══════════════════════════════════════════
Notes
- Classification requires documents to be in
canonicalstatus (text extracted). Documents iningestedstatus are skipped. - Confidence percentages reflect how strongly the document matches the rule's patterns (filename + content regex).
- Rules with
match_all: truerequire both filename and content patterns to match. - Classification respects scoped rules. When classifying a single document with
--document, only rules matching the document's scope chain (global + its org/division/user) are applied. Batch classification applies the same scope filtering per document. - Use
unsterwerx rules listto see active classification rules. - Use
unsterwerx rules addto create new classification rules.