harbor run -t openthoughts/tasktrove-exp-rpt-stack-pytest-v2-stack-pytest-0154harbor download openthoughts/tasktrove-exp-rpt-stack-pytest-v2-stack-pytest-0154Task: Implement a self-contained MedSpaCy Python package to satisfy the provided pytest suite
Objective Create a Python package named medspacy (located at /app/medspacy/ with init.py and submodules) that exposes the exact API and behavior your tests exercise. The package should wire a minimal, test-friendly spaCy pipeline including a custom tokenizer (Preprocessor) and a small set of no-op pipeline components, plus a utility to enumerate pipeline names. The implementation must be self-contained (no external data files) and rely only on spaCy.
What to implement (high level)
Create a Python package at /app/medspacy/ (with init.py, util.py, and preprocess.py, plus any additional small modules you choose). The tests will import:
Implement a util module with:
Implement a preprocess module with:
Implement the main medspacy package (in /app/medspacy/init.py) with:
What the tests expect (mapping to implementation details)
Implementation notes and constraints
Acceptance criteria
Note
If you want to proceed, implement the package at /app/medspacy/ with the described API and behavior.