Contributing¶
Pull requests are welcome. For non-trivial changes, please open an issue first to discuss the proposed change. A CONTRIBUTORS.md will be added with the first external contribution.
Developement¶
git clone https://github.com/bmikaberidze/micm-nlp.git
cd micm-nlp
pip install -e ".[dev]" # the dev extra adds ruff and pytest
ruff check src/
ruff format src/
pytest
Where things live:
micm_nlp/
├── cli.py # micm-nlp / python -m micm_nlp: run, run-group, init-examples
├── pipeline.py # Top-level wiring: load_dataset, preprocess_dataset, load_model, run
├── group.py # Group config → runs: entry selection, overrides, RunContext
├── config.py # CONFIG.from_yaml; resolves nested namespaces
├── path.py # The artefact tree: models, datasets, tokenizers, runs
├── tokenizers/ # Tokenizer factory, custom tokenizer classes, Georgian sentence splitter
├── datasets/ # DATASET class — local + HF Hub + HF saved + CSV/TXT/JSON
├── models/ # MODEL wrapper, PEFT dispatch, Cross-Prompt Encoder
├── training/ # TRAINER — wraps HF Trainer with custom callbacks + WandB;
│ # RunOutput — the run's output directory and info.json
└── evals/ # Metrics, confusion matrices, plotting; one result file per event
Building the docs¶
sphinx-autoapi parses src/ statically, so the build needs neither the package nor its dependencies — four packages are enough:
pip install -r docs/requirements.txt
sphinx-build -b html docs/source docs/_build/html
One warning is expected: autoapi/micm_nlp/index.rst is deliberately left out of every toctree, so its stub is orphaned. Anything else is real.