Document Classifier
A command-line document clustering tool with sentence-transformer and Doc2Vec workflows.
Read documents from a directory. The sentence-transformer path supports text, PDF, DOCX, and HTML.
SELECT A STAGE TO FOLLOW THE SYSTEM
Overview
I contributed to both clustering workflows and made the project usable as a CLI tool.
The problem
Large collections of documents often arrive without labels. The task was to ingest them reliably and group related material without requiring a predefined category set.
What I built
- Two unsupervised workflows: sentence-transformer embeddings and Doc2Vec representations.
- A command-line interface for running clustering against an input directory.
- Multi-format ingestion for text, PDF, DOCX, HTML, and HTM files in the sentence-transformer workflow.
System design
The CLI accepts an input directory and selects a workflow. One path creates sentence-transformer representations from several file formats; the other uses Doc2Vec. Each produces document groups that can be inspected outside a notebook.
Key decisions
- Keep the two representations as separate workflows so their behavior can be compared directly.
- Make the tool runnable from the terminal rather than tying the workflow to a notebook.
Outcome
A reusable CLI for clustering unlabeled documents. The repository includes the runnable workflows; no production-scale accuracy claim is made.
What I learned
The interface around a model matters: a repeatable ingestion and command-line path makes an experiment useful beyond its original notebook.