--- language: - ar pretty_name: TypePrediction task_categories: - token-classification tags: - named-entity-recognition - arabic - wojood - entity-typing size_categories: - 100K `GPE_ORG` - `Cluster` -> `CLUSTER` - `Path` -> `PATH` The builder canonicalizes these before mapping to coarse parents. - Sentence boundaries are read from blank lines in the CoNLL files. - Character spans are reconstructed after joining sentence tokens with single spaces. - The main file is single-label by construction. Ambiguous multi-type spans are excluded rather than guessed. ## Summary - total rows: `125996` - unique sentences: `33933` - raw extracted mentions before dedupe: `408035` - rows merged by dedupe: `275272` - ambiguous span groups excluded: `3383` - candidate rows excluded by ambiguity filtering: `6767` ## Source breakdown - `Wojood1_1_flat/test`: 14573 mentions from 6606 sentences - `Wojood1_1_flat/train`: 49959 mentions from 23125 sentences - `Wojood1_1_flat/val`: 7143 mentions from 3304 sentences - `Wojood1_1_nested/test`: 18045 mentions from 6606 sentences - `Wojood1_1_nested/train`: 62377 mentions from 23125 sentences - `Wojood1_1_nested/val`: 8944 mentions from 3304 sentences - `WojoodFine/test`: 27848 mentions from 5748 sentences - `WojoodFine/train`: 96188 mentions from 19484 sentences - `WojoodFine/val`: 13800 mentions from 2828 sentences - `WojoodFine-Flat/split10`: 10859 mentions from 3304 sentences - `WojoodFine-Flat/split20`: 22208 mentions from 6606 sentences - `WojoodFine-Flat/split70`: 76091 mentions from 23125 sentences ## Top coarse types - `GPE`: 26902 - `ORG`: 26593 - `DATE`: 19762 - `PERS`: 10712 - `NORP`: 10217 - `ORDINAL`: 7807 - `OCC`: 7696 - `EVENT`: 3769 - `CARDINAL`: 3724 - `LOC`: 2388 - `WEBSITE`: 1478 - `FAC`: 1296 - `LAW`: 904 - `TIME`: 871 - `MONEY`: 420 - `CURR`: 411 - `LANGUAGE`: 332 - `PERCENT`: 312 - `PRODUCT`: 190 - `QUANTITY`: 106 ## Validation performed - verified that all four non-relation Wojood sources were included - verified nested extraction is enabled when multiple tags occur on one token - verified fine-to-coarse mapping uses the repo's `wojood_ontology.json` - verified `sentence[start_char:end_char] == entity` across the built file - verified deduped rows merge provenance rather than silently dropping it - verified no exact span in the main file has more than one coarse type - verified ids are unique and deterministic ## Split files The repo also includes a mention-level stratified split built from `type_predictor_data.jsonl`: - `type_predictor_train.jsonl` - `type_predictor_val.jsonl` - `type_predictor_test.jsonl` - `split_summary.json` - `artifacts/split_assignments.jsonl` - `split_data.py` Split policy: 1. Start from the clean `type_predictor_data.jsonl`. 2. Perform a stratified `80/20` split by the `type` column with `random_state = 42`. 3. Split the holdout pool again, stratified by `type`, into equal halves. 4. Keep sentence overlap allowed across splits. 5. Preserve all original fields. 6. Add `evaluation_category` only to validation and test rows: - `unseen_sentence` - `seen_sentence_new_entity` Current split sizes: - train: `100,796` - validation: `12,600` - test: `12,600` Current evaluation-category counts: - validation `seen_sentence_new_entity`: `11,661` - validation `unseen_sentence`: `939` - test `seen_sentence_new_entity`: `11,606` - test `unseen_sentence`: `994`