Detect CoNLL-U splits from the -ud-{split}.conllu suffix instead of substring matches, so treebank names such as pt_dantestocks do not misclassify train files as test files.
Pin ud-hf-parquet-tools to v1.3.0 and document the Parquet schema changes, official Hugging Face namespace cleanup, and dataset card updates.
Refs: https://huggingface.co/datasets/universal-dependencies/universal_dependencies/discussions/2
Refs: https://huggingface.co/datasets/universal-dependencies/universal_dependencies/discussions/3
Use the official universal-dependencies/universal_dependencies Hub namespace in active examples, add former-location and v2.0 rewrite notes, and document the pending UPOS/HEAD schema change.
Refs: https://huggingface.co/datasets/universal-dependencies/universal_dependencies/discussions/2
Refs: https://huggingface.co/datasets/universal-dependencies/universal_dependencies/discussions/3
- for UD < 2.15, split genus from legacy family strings like 'Family, Genus'
- for UD >= 2.15, keep explicit genus field from codes_and_flags unchanged
Unify release-handle mapping and harden tools pipeline
**Added:**
- Updated ud-hf-parquet-tools to pinned tag version v1.1.0
- Added `jinja2>=3.1.6` for `uv run` support
**Changed:**
- Removed shebang --script usage (use `uv run` with dependencies in
`pyproject.toml`)
- Removed ar_nyuad configuration from dataset card
- Removed ja_bccwj configuration from dataset card
- Both treebanks moved to blocked status (license restrictions)
- `02_generate_metadata.py` now uses output formatting
**Fixed:**
- Corrected dataset card configs by excluding blocked treebanks
- Updated README-2.17 metadata to reflect dataset configuration
See CHANGELOG.md for full details.
**tools/README.md:**
- Rewrote as concise quick reference for experienced developers
- Focus on commands, not explanations
- Added "Quick Start" section with complete workflow
- Documented all pipeline scripts (00-05)
- Added directory structure diagram
- Included configuration examples
- Added common operations and troubleshooting
- References ADDING_NEW_UD_VERSION.md for detailed guide
**ADDING_NEW_UD_VERSION.md:**
- Maintained as comprehensive guide for new contributors
- Updated all outdated script references:
- 02_traverse_ud_repos.py → 02_generate_metadata.py
- 03_fill_universal_dependencies_tamplate.py → 03_generate_README.py
- Removed all references to universal_dependencies.py (no longer exists)
- Added explanations for each step ("What is...?", "Why...?")
- Kept troubleshooting section with detailed solutions
- Kept timeline estimates and checklist
- References tools/README.md for technical details
- Updated to reflect v2.0 architecture:
- Parquet-only format (no Pytho…
- Update tools/README.md workflow to use new script names:
- 02_traverse_ud_repos.py → 02_generate_metadata.py
- 03_fill_universal_dependencies_tamplate.py → 03_generate_README.py
- Remove references to universal_dependencies-VERSION files (no longer generated)
- Update CONLLU_PARSING_ISSUES.md references to point to ud-hf-parquet-tools repo
- Update templates/README.tmpl with correct documentation link
- Regenerate README-2.17 from updated template
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Rename 02_traverse_ud_repos.py to 02_generate_metadata.py
The script name now better reflects its purpose of generating metadata.json
files from UD repository directories.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Remove all generated universal_dependencies{.py,-VERSION} files
- Renamed 03_fill_universal_dependencies_tamplate.py to 03_generate_README.py
- Script now only generates README-{UD_VER}, not universal_dependencies-{UD_VER}
- Removed templates/universal_dependencies.tmpl (no longer needed)
- Updated docstring to reflect new focused purpose
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Regenerate metadata and README with blocked treebank filtering
- metadata-2.17.json now includes "blocked" property for all treebanks
- README-2.17 filters out blocked treebanks (pt_cintil) from configs
- Blocked treebanks are identified via tools/blocked_treebanks.yaml
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Add conditional check to skip blocked treebanks in configs section
- Only treebanks with metadata.blocked == False will appear in dataset card
- Ensures blocked treebanks (e.g., pt_cintil) don't show in HuggingFace UI
This prevents users from seeing configs for treebanks that have no
parquet files due to license restrictions.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Add blocked treebank tracking to metadata generation
- Read tools/blocked_treebanks.yaml during metadata collection
- Add "blocked" property to each treebank in metadata:
- True if treebank is in blocked_treebanks.yaml
- False otherwise
- Log when treebanks are marked as blocked with reason
This allows downstream tools to check the metadata for blocked
status without needing to separately load the YAML file.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Change from dataset_info to configs format in README template
- Use data_files with parquet paths instead of features schema
- Add uv index configuration to pyproject.toml for PyPI and TestPyPI
- Set en_ewt as default config
- Simplify README structure (removed redundant feature definitions)
- Add TODO note about helper functions post v2.0
This aligns with HuggingFace's current dataset card standards
and the new parquet-based distribution model.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This documentation has been moved to the ud-hf-parquet-tools library
where it belongs, as CONLLU_PARSING.md:
https://github.com/bot-zen/ud-hf-parquet-tools/blob/main/CONLLU_PARSING.md
The library documentation is more comprehensive and includes:
- All 7 parsing challenges with examples
- Affected treebank statistics
- Implementation details and code locations
- Testing and validation procedures
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Add --blocked-treebanks flag to parquet generator
- Added support for --blocked-treebanks argument
- Defaults to tools/blocked_treebanks.yaml
- Automatically filters out treebanks with license restrictions
- Updated usage documentation
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Fix wrapper scripts to use correct library version
- Removed debug output from wrapper scripts
- Added developer notes about using 'python' for local development
- Confirmed --overwrite flag works correctly when calling library
The issue was that 'uv run --script' uses cached PyPI versions
instead of local editable installs. For development, run with
'python tools/04_generate_parquet.py' to use local library changes.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This will help diagnose issues with argument passing to the library.
Shows the exact command line being constructed and passed to ud-hf-parquet-tools.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Replace parquet generation and validation scripts with ud-hf-parquet-tools wrappers
The large standalone scripts (800+ and 600+ lines) have been replaced with
simple wrappers (~90 lines each) that call the ud-hf-parquet-tools library.
Changes:
- tools/04_generate_parquet.py: Now wraps ud-hf-parquet-tools generate
- tools/05_validate_parquet.py: Now wraps ud-hf-parquet-tools validate
- Maintains same CLI interface for backward compatibility
- All functionality moved to reusable library
Benefits:
- Code reuse and maintainability
- Single source of truth for parquet generation/validation
- Library can be used by other projects
- Easier testing and debugging
Note: Requires ud-hf-parquet-tools to be published to PyPI or installed
locally. Until published, use the library directly from:
https://github.com/bot-zen/ud-hf-parquet-tools
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Revert README.md to 541812f0 and update with tools/ content
- Fixed repo fetching to include all UD repos (5 pages vs 3)
- Added 166 missing UD repositories as submodules
- Fetched tags and checked out r2.17 for 102 newly added repos
- Regenerated metadata to include all new treebanks with r2.17 tags
Notable additions:
- Portuguese-CINTIL (blocked from Parquet, license-restricted)
- 100+ additional treebanks including various languages and dialects
Some newly added repos don't have r2.17 tags yet and will be
included in future releases.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Add treebank blocking system and fix repo fetching