harbor run -t openthoughts/tasktrove-exp-flat25-stackoverflow-v2-5k-stackoverflow-1183harbor download openthoughts/tasktrove-exp-flat25-stackoverflow-v2-5k-stackoverflow-1183Title: Implement a compact, self-contained Python n-gram language-modeling library compatible with a test suite
Body: I’m building a tiny Python package (under the module namespace nltk.lm) that provides a family of n-gram language models (MLE and several smoothing variants) plus a minimal vocabulary and preprocessing utility. The library must be self-contained (no external dependencies beyond the Python standard library) and behave exactly as required by an accompanying test suite (including UNK handling and special tokens).
What I need to implement (public API and behavior in detail)
Public module and API (names and behavior)
Inputs and outputs specifics
Data assumptions and test integration
Acceptance criteria
Deliverables
If you have guidance on a clean design approach or a minimal starter skeleton that satisfies this exact specification and passes the tests, I’d appreciate pointers, patterns, or a concrete blueprint.