Adds a Ukrainian argument structure gallery example#12
Open
pkuchmiichuk wants to merge 16 commits into
Open
Conversation
…ainian VESUM adapter subclass.
13 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a Ukrainian argument structure example to the gallery: an end-to-end 2AFC acceptability pipeline for Ukrainian verb argument structure, following the structure of
gallery/eng/andgallery/kor/. It ships aMakefile, a localconfig.yaml, and numbered pipeline stages covering lexicon generation, template generation, template filling, 2AFC pair construction, list partitioning, and jsPsych/JATOS deployment.Ukrainian specifics worth noting:
UniMorphAdaptersubclass inutils/vesum_adapter.py. This is enabled by a small, overridable_load_datasethook added toUniMorphAdapter(bead/resources/adapters/unimorph.py), so a subclass can read a non-standard file layout without touching the rest of the adapter. The hook and its test are the onlybead/change in this PR.resources/verb_frequencies.csv).build_frequencies.pyregenerates it, but is meant to be run rarely so the pipeline does not depend on wordfreq at run time.Depends on
This example relies on the core changes in the companion PR #11 against
main(constraint-type defaults and the model dtype passthrough):generate_lists.pyconstructs constraints without restatingconstraint_type, andcreate_2afc_pairs.pypasses adtype.Type of Change
Checklist
uv run ruff check .anduv run ruff format .uv run pyrightwith no errorsuv run pytest tests/)Testing
tests/resources/adapters/test_unimorph.pycovers the onebead/change: a subclass overriding_load_datasetis used in place of the module-level loader.The Ukrainian pipeline itself is excluded from CI, matching how
gallery/eng/andgallery/kor/are treated. Generated data is not committed. A galleryREADME.mddocuments the pipeline and how to run it.