Repository navigation
Canonicalise crop_types and agricultural_task in the dataset registry - #87
Merged
Merged
Conversation
Applies AgML-Journal-Ingestion's src/registry_vocabulary.py (merged in Project-AgML/AgML-Journal-Ingestion#8) to hf_datasets.json, then regenerates the derived files the same way `npm run build` does. - crop_types: corn -> maize (17 datasets), grapevine/grapes/vitis -> grape, canola/brassica napus -> rapeseed, paddy -> rice, brinjal -> eggplant, Latin names and misspellings -> common names; capitalised values lowercased. 148 datasets touched; maize 42 -> 57, corn 17 -> 0, distinct crop strings 672 -> 618. - agricultural_task: the 70-character "crop image collection (unlabeled; for pretraining and foundation models)" label on 18 image_safari entries -> "" (matching the other 41 image_safari entries), plus three singleton token fixes. Removes the oversized bar from the home-page task chart. - performance/global.json: crop_types copies refreshed by generate-datasets. - embeddings/: regenerated by generate-embeddings (6286 -> 6647 records; the committed snapshot predated the October data batches). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
js2552
approved these changes
Oct 20, 2026
This was referenced Oct 20, 2026
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.
Why
The home page charts count maize (42) and corn (17) as separate crops, and draw a 70-character bar label,
crop image collection (unlabeled; for pretraining and foundation models), in the task chart. Both come from unconstrained metadata inhf_datasets.json. The pipeline side was fixed in Project-AgML/AgML-Journal-Ingestion#8 (merged); this PR applies the same canonicalisation to the registry already on the site.What changed
static/data/hf_datasets.json— run throughsrc/registry_vocabulary.pyfrom the merged ingestion main. 148 of 725 datasets touched, only thecrop_typesandagricultural_taskfields.Crop labels merged away, by dataset count: corn 17, grapevine 9, canola 6 (→ rapeseed), paddy 3 (→ rice), brassica napus 3, then grapes, brinjal, urad bean, capsicum, soybeans and a dozen misspellings at 1–2 each. 86 further datasets only had capitalised Latin names lowercased (the site already lowercases for display, so nothing visible changes for those).
crop image collection (unlabeled; for pretraining and foundation models)""plant part segmentationplant_organ_segmentationfruit_maturity_detectionmaturity_detectioncrop and weed segmentationcrop_and_weed_segmentationThe 18 image_safari entries now match the other 41 image_safari entries, which already carry
"".Derived files, regenerated exactly as
npm run build's prebuild does:static/data/performance/global.json— crop_types copies for the leaderboard filter.static/data/embeddings/{meta.json,vectors.bin}— semantic search index. Record count goes 6286 → 6647 because the committed snapshot predated the October data batches; this is the first regeneration since 2026-09-25.datasets.jsonandperformance/index.jsonregenerated byte-identical.Verification
npm run test:unit: 23/23 passnpm run build: success; built output contains zero occurrences of the long label and zerocorncrop entrieshf_datasets.jsoncontains onlycrop_types/agricultural_tasklinesSide effects
cornwill match nothing; new links usemaize.🤖 Generated with Claude Code