Standalone scripts to handle and transform KIParla data.
eaf2csv.py: convert ELAN.eaffiles into tab-separated transcript CSV.make_patch.py: generate a.patchfile from a lemmatization CSV to fix transcription errors in a corpus.vert.tsv.tsv2eaf.py: rebuild.eaffiles from pipeline TSV output.tsv2formats.py: generate linear Jefferson and orthographic text files from.vert.tsv.merge_metadata.py: merge metadata tables from module repositories.
The test suite lives in tests and uses pytest.
From the tools/ directory:
python3 -m venv .venv
source .venv/bin/activate
pip install -e '.[test]'
python -m pytestIf you only want to run one file:
python -m pytest tests/test_tsv2eaf.pytsv2eaf.pyexpects the historical TSV column namesiu_idandiu_align.- The tests mostly target importable functions rather than shell-level CLI behavior.