Upload completed TypePredictor run 2026-07-12T18:56:38+00:00
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +2 -0
- README.md +136 -0
- checkpoint_summary.json +13 -0
- checkpoints/latest/optimizer.pt +3 -0
- checkpoints/latest/pytorch_model.bin +3 -0
- checkpoints/latest/rng_state.pth +3 -0
- checkpoints/latest/scaler.pt +3 -0
- checkpoints/latest/scheduler.pt +3 -0
- checkpoints/latest/trainer_state.json +0 -0
- checkpoints/latest/training_args.bin +3 -0
- config.json +102 -0
- configs/architecture_config.json +52 -0
- configs/id2label.json +23 -0
- configs/label2id.json +23 -0
- configs/run_config.json +76 -0
- configs/training_arguments.json +145 -0
- confusion_matrices/test_overall_confusion_matrix.csv +22 -0
- confusion_matrices/test_seen_sentence_new_entity_confusion_matrix.csv +22 -0
- confusion_matrices/test_unseen_sentence_confusion_matrix.csv +22 -0
- confusion_matrices/validation_overall_confusion_matrix.csv +22 -0
- confusion_matrices/validation_seen_sentence_new_entity_confusion_matrix.csv +22 -0
- confusion_matrices/validation_unseen_sentence_confusion_matrix.csv +22 -0
- dataset_evaluation_category_counts.csv +85 -0
- dataset_split_type_counts.csv +22 -0
- dataset_validation.json +790 -0
- encoding_summary.json +61 -0
- evaluation_results.json +358 -0
- id2label.json +23 -0
- inference.py +75 -0
- label2id.json +23 -0
- metrics/test_overall.json +45 -0
- metrics/test_overall_per_class.csv +25 -0
- metrics/test_overall_per_class.json +141 -0
- metrics/test_seen_sentence_new_entity.json +45 -0
- metrics/test_seen_sentence_new_entity_per_class.csv +25 -0
- metrics/test_seen_sentence_new_entity_per_class.json +141 -0
- metrics/test_unseen_sentence.json +44 -0
- metrics/test_unseen_sentence_per_class.csv +25 -0
- metrics/test_unseen_sentence_per_class.json +141 -0
- metrics/validation_overall.json +45 -0
- metrics/validation_overall_per_class.csv +25 -0
- metrics/validation_overall_per_class.json +141 -0
- metrics/validation_seen_sentence_new_entity.json +45 -0
- metrics/validation_seen_sentence_new_entity_per_class.csv +25 -0
- metrics/validation_seen_sentence_new_entity_per_class.json +141 -0
- metrics/validation_unseen_sentence.json +44 -0
- metrics/validation_unseen_sentence_per_class.csv +25 -0
- metrics/validation_unseen_sentence_per_class.json +141 -0
- modeling_type_predictor.py +104 -0
- predictions/test_predictions.jsonl +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
predictions/test_predictions.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
predictions/validation_predictions.jsonl filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- ar
|
| 4 |
+
library_name: pytorch
|
| 5 |
+
pipeline_tag: text-classification
|
| 6 |
+
tags:
|
| 7 |
+
- arabic
|
| 8 |
+
- named-entity-recognition
|
| 9 |
+
- entity-typing
|
| 10 |
+
- wojood
|
| 11 |
+
- neoarabert
|
| 12 |
+
datasets:
|
| 13 |
+
- U4RASD/TypePrediction
|
| 14 |
+
metrics:
|
| 15 |
+
- accuracy
|
| 16 |
+
- f1
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# TypePredictor
|
| 20 |
+
|
| 21 |
+
`TypePredictor` is a mention-level Arabic entity-type classifier trained on
|
| 22 |
+
`U4RASD/TypePrediction`. Given an Arabic sentence and a known character span, the
|
| 23 |
+
span is wrapped with generic `[ENT]` and `[/ENT]` markers and classified into one
|
| 24 |
+
of 21 coarse Wojood entity types.
|
| 25 |
+
|
| 26 |
+
> This README is the automatically generated preliminary model card. The RunPod
|
| 27 |
+
> package instructs Codex to wait for Ahmad's explicit confirmation that the full
|
| 28 |
+
> training, validation, and test workflow is complete before writing and pushing
|
| 29 |
+
> the final polished model card from all run artifacts.
|
| 30 |
+
|
| 31 |
+
## Architecture
|
| 32 |
+
|
| 33 |
+
```text
|
| 34 |
+
sentence + known span
|
| 35 |
+
-> insert [ENT] ... [/ENT]
|
| 36 |
+
-> U4RASD/NeoAraBERT
|
| 37 |
+
-> CLS vector [768]
|
| 38 |
+
-> Dropout(0.1)
|
| 39 |
+
-> Linear(768, 21)
|
| 40 |
+
-> argmax entity type
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
The baseline uses ordinary unweighted multiclass cross-entropy. There is no
|
| 44 |
+
class weighting, weighted sampler, extra MLP, span pooling, threshold, or
|
| 45 |
+
subject/object-specific model.
|
| 46 |
+
|
| 47 |
+
## Labels
|
| 48 |
+
|
| 49 |
+
GPE, ORG, DATE, PERS, NORP, ORDINAL, OCC, EVENT, CARDINAL, LOC, WEBSITE, FAC, LAW, TIME, MONEY, CURR, LANGUAGE, PERCENT, PRODUCT, QUANTITY, UNIT
|
| 50 |
+
|
| 51 |
+
## Dataset
|
| 52 |
+
|
| 53 |
+
- Train: 100,796
|
| 54 |
+
- Validation: 12,600
|
| 55 |
+
- Test: 12,600
|
| 56 |
+
- Validation seen-sentence/new-entity: 11,661
|
| 57 |
+
- Validation unseen-sentence: 939
|
| 58 |
+
- Test seen-sentence/new-entity: 11,606
|
| 59 |
+
- Test unseen-sentence: 994
|
| 60 |
+
|
| 61 |
+
The split is mention-level and intentionally allows the same sentence to appear
|
| 62 |
+
across splits with different target mentions. Category-specific results should
|
| 63 |
+
therefore be interpreted separately.
|
| 64 |
+
|
| 65 |
+
## Validation results
|
| 66 |
+
|
| 67 |
+
| Subset | Rows | Accuracy | Micro F1 | Macro F1 (present types) | Weighted F1 |
|
| 68 |
+
|---|---:|---:|---:|---:|---:|
|
| 69 |
+
| overall | 12600 | 0.977857 | 0.977857 | 0.958728 | 0.977791 |
|
| 70 |
+
| unseen_sentence | 939 | 0.945687 | 0.945687 | 0.908841 | 0.945011 |
|
| 71 |
+
| seen_sentence_new_entity | 11661 | 0.980448 | 0.980448 | 0.963262 | 0.980403 |
|
| 72 |
+
|
| 73 |
+
## Test results
|
| 74 |
+
|
| 75 |
+
| Subset | Rows | Accuracy | Micro F1 | Macro F1 (present types) | Weighted F1 |
|
| 76 |
+
|---|---:|---:|---:|---:|---:|
|
| 77 |
+
| overall | 12600 | 0.979365 | 0.979365 | 0.959920 | 0.979297 |
|
| 78 |
+
| unseen_sentence | 994 | 0.962777 | 0.962777 | 0.893174 | 0.961780 |
|
| 79 |
+
| seen_sentence_new_entity | 11606 | 0.980786 | 0.980786 | 0.964113 | 0.980712 |
|
| 80 |
+
|
| 81 |
+
Detailed per-class reports, confusion matrices, predictions, configuration, and
|
| 82 |
+
checkpoint metadata are included in the repository artifacts.
|
| 83 |
+
|
| 84 |
+
## Checkpoints
|
| 85 |
+
|
| 86 |
+
- Best checkpoint: epoch `3.9682923925552602`, step `25000`
|
| 87 |
+
- Best validation macro F1: `0.958728`
|
| 88 |
+
- Latest checkpoint: epoch `3.9994047382832654`, step `25196`
|
| 89 |
+
- Repository root: best model
|
| 90 |
+
- `checkpoints/latest/`: latest completed checkpoint snapshot
|
| 91 |
+
|
| 92 |
+
Both the best and latest full checkpoints are also preserved in the local RunPod
|
| 93 |
+
output directory.
|
| 94 |
+
|
| 95 |
+
## Training configuration
|
| 96 |
+
|
| 97 |
+
- Encoder learning rate: `1e-05`
|
| 98 |
+
- Classifier learning rate: `5e-05`
|
| 99 |
+
- Epochs: `4.0`
|
| 100 |
+
- Train batch size: `4`
|
| 101 |
+
- Gradient accumulation: `4`
|
| 102 |
+
- Effective batch size: `16`
|
| 103 |
+
- Maximum length: `512`
|
| 104 |
+
- FP16: `True`
|
| 105 |
+
- Best-checkpoint criterion: validation macro F1
|
| 106 |
+
|
| 107 |
+
## Loading
|
| 108 |
+
|
| 109 |
+
The repository contains `modeling_type_predictor.py` because this classifier is
|
| 110 |
+
a small custom PyTorch wrapper around NeoAraBERT.
|
| 111 |
+
|
| 112 |
+
```python
|
| 113 |
+
from huggingface_hub import hf_hub_download
|
| 114 |
+
import importlib.util
|
| 115 |
+
|
| 116 |
+
source = hf_hub_download("U4RASD/TypePredictor", "modeling_type_predictor.py")
|
| 117 |
+
spec = importlib.util.spec_from_file_location("modeling_type_predictor", source)
|
| 118 |
+
module = importlib.util.module_from_spec(spec)
|
| 119 |
+
spec.loader.exec_module(module)
|
| 120 |
+
model, tokenizer, config = module.NeoAraBERTTypePredictor.from_pretrained(
|
| 121 |
+
"U4RASD/TypePredictor"
|
| 122 |
+
)
|
| 123 |
+
```
|
| 124 |
+
|
| 125 |
+
## Intended use
|
| 126 |
+
|
| 127 |
+
Use the model when the target entity mention and its character span are already
|
| 128 |
+
known. The same model can classify a relation subject or object mention.
|
| 129 |
+
|
| 130 |
+
## Limitations
|
| 131 |
+
|
| 132 |
+
- The model does not detect spans; it classifies a supplied span.
|
| 133 |
+
- The split contains sentence overlap by design, so overall metrics are not a
|
| 134 |
+
pure unseen-sentence estimate.
|
| 135 |
+
- Rare classes such as `UNIT` and `QUANTITY` have limited support.
|
| 136 |
+
- This first experiment intentionally uses no imbalance correction.
|
checkpoint_summary.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_checkpoint_source": "outputs/TypePredictor/checkpoints/checkpoint-25000",
|
| 3 |
+
"best_checkpoint_preserved": "outputs/TypePredictor/best_checkpoint",
|
| 4 |
+
"best_step": 25000,
|
| 5 |
+
"best_epoch": 3.9682923925552602,
|
| 6 |
+
"best_validation_macro_f1": 0.9587281193044483,
|
| 7 |
+
"latest_checkpoint_source": "outputs/TypePredictor/checkpoints/checkpoint-25196",
|
| 8 |
+
"latest_checkpoint_preserved": "outputs/TypePredictor/latest_checkpoint",
|
| 9 |
+
"latest_step": 25196,
|
| 10 |
+
"latest_epoch": 3.9994047382832654,
|
| 11 |
+
"best_and_latest_same_source": false,
|
| 12 |
+
"root_released_model": "best checkpoint"
|
| 13 |
+
}
|
checkpoints/latest/optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f50dc9dafa68f1d1e36c152f307cd243c56b3f4a76f1e8a88bbaf64fe8becbf6
|
| 3 |
+
size 1985443322
|
checkpoints/latest/pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a3ef5bb9771e8705208a0f3e97788305b09b19d0be51fcf939f736fc5c13fb72
|
| 3 |
+
size 992721978
|
checkpoints/latest/rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:923e5b6a51442e1617111f28197dff670cd469df9e1de7d6216bb14030444691
|
| 3 |
+
size 14244
|
checkpoints/latest/scaler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9cfb01e00465a5891d4570d1c7db65c31941253c42933e7c82e41ca335ed13f5
|
| 3 |
+
size 988
|
checkpoints/latest/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:caa8aa904b6ba57c95fdeb6646034707f9aa8f50f77bbe64ebde1dfff45a23e3
|
| 3 |
+
size 1064
|
checkpoints/latest/trainer_state.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
checkpoints/latest/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c5b6cfce7351bff5319a51e160874bfbfcfd153324040fb99c38f5fff0732e17
|
| 3 |
+
size 5368
|
config.json
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architecture": "NeoAraBERTTypePredictor",
|
| 3 |
+
"task": "mention-level 21-class Arabic entity typing",
|
| 4 |
+
"base_model": "U4RASD/NeoAraBERT",
|
| 5 |
+
"input_markers": [
|
| 6 |
+
"[ENT]",
|
| 7 |
+
"[/ENT]"
|
| 8 |
+
],
|
| 9 |
+
"representation": "last hidden state at token position 0 (CLS)",
|
| 10 |
+
"dropout": 0.1,
|
| 11 |
+
"classifier": [
|
| 12 |
+
768,
|
| 13 |
+
21
|
| 14 |
+
],
|
| 15 |
+
"loss": "ordinary unweighted multiclass cross-entropy",
|
| 16 |
+
"num_labels": 21,
|
| 17 |
+
"labels": [
|
| 18 |
+
"GPE",
|
| 19 |
+
"ORG",
|
| 20 |
+
"DATE",
|
| 21 |
+
"PERS",
|
| 22 |
+
"NORP",
|
| 23 |
+
"ORDINAL",
|
| 24 |
+
"OCC",
|
| 25 |
+
"EVENT",
|
| 26 |
+
"CARDINAL",
|
| 27 |
+
"LOC",
|
| 28 |
+
"WEBSITE",
|
| 29 |
+
"FAC",
|
| 30 |
+
"LAW",
|
| 31 |
+
"TIME",
|
| 32 |
+
"MONEY",
|
| 33 |
+
"CURR",
|
| 34 |
+
"LANGUAGE",
|
| 35 |
+
"PERCENT",
|
| 36 |
+
"PRODUCT",
|
| 37 |
+
"QUANTITY",
|
| 38 |
+
"UNIT"
|
| 39 |
+
],
|
| 40 |
+
"tokenizer_size": 65002,
|
| 41 |
+
"hidden_size": 768,
|
| 42 |
+
"max_length": 512,
|
| 43 |
+
"context_candidates": [
|
| 44 |
+
null,
|
| 45 |
+
500,
|
| 46 |
+
300,
|
| 47 |
+
150,
|
| 48 |
+
80,
|
| 49 |
+
30,
|
| 50 |
+
0
|
| 51 |
+
],
|
| 52 |
+
"architectures": [
|
| 53 |
+
"NeoAraBERTTypePredictor"
|
| 54 |
+
],
|
| 55 |
+
"model_type": "type_predictor",
|
| 56 |
+
"id2label": {
|
| 57 |
+
"0": "GPE",
|
| 58 |
+
"1": "ORG",
|
| 59 |
+
"2": "DATE",
|
| 60 |
+
"3": "PERS",
|
| 61 |
+
"4": "NORP",
|
| 62 |
+
"5": "ORDINAL",
|
| 63 |
+
"6": "OCC",
|
| 64 |
+
"7": "EVENT",
|
| 65 |
+
"8": "CARDINAL",
|
| 66 |
+
"9": "LOC",
|
| 67 |
+
"10": "WEBSITE",
|
| 68 |
+
"11": "FAC",
|
| 69 |
+
"12": "LAW",
|
| 70 |
+
"13": "TIME",
|
| 71 |
+
"14": "MONEY",
|
| 72 |
+
"15": "CURR",
|
| 73 |
+
"16": "LANGUAGE",
|
| 74 |
+
"17": "PERCENT",
|
| 75 |
+
"18": "PRODUCT",
|
| 76 |
+
"19": "QUANTITY",
|
| 77 |
+
"20": "UNIT"
|
| 78 |
+
},
|
| 79 |
+
"label2id": {
|
| 80 |
+
"GPE": 0,
|
| 81 |
+
"ORG": 1,
|
| 82 |
+
"DATE": 2,
|
| 83 |
+
"PERS": 3,
|
| 84 |
+
"NORP": 4,
|
| 85 |
+
"ORDINAL": 5,
|
| 86 |
+
"OCC": 6,
|
| 87 |
+
"EVENT": 7,
|
| 88 |
+
"CARDINAL": 8,
|
| 89 |
+
"LOC": 9,
|
| 90 |
+
"WEBSITE": 10,
|
| 91 |
+
"FAC": 11,
|
| 92 |
+
"LAW": 12,
|
| 93 |
+
"TIME": 13,
|
| 94 |
+
"MONEY": 14,
|
| 95 |
+
"CURR": 15,
|
| 96 |
+
"LANGUAGE": 16,
|
| 97 |
+
"PERCENT": 17,
|
| 98 |
+
"PRODUCT": 18,
|
| 99 |
+
"QUANTITY": 19,
|
| 100 |
+
"UNIT": 20
|
| 101 |
+
}
|
| 102 |
+
}
|
configs/architecture_config.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architecture": "NeoAraBERTTypePredictor",
|
| 3 |
+
"task": "mention-level 21-class Arabic entity typing",
|
| 4 |
+
"base_model": "U4RASD/NeoAraBERT",
|
| 5 |
+
"input_markers": [
|
| 6 |
+
"[ENT]",
|
| 7 |
+
"[/ENT]"
|
| 8 |
+
],
|
| 9 |
+
"representation": "last hidden state at token position 0 (CLS)",
|
| 10 |
+
"dropout": 0.1,
|
| 11 |
+
"classifier": [
|
| 12 |
+
768,
|
| 13 |
+
21
|
| 14 |
+
],
|
| 15 |
+
"loss": "ordinary unweighted multiclass cross-entropy",
|
| 16 |
+
"num_labels": 21,
|
| 17 |
+
"labels": [
|
| 18 |
+
"GPE",
|
| 19 |
+
"ORG",
|
| 20 |
+
"DATE",
|
| 21 |
+
"PERS",
|
| 22 |
+
"NORP",
|
| 23 |
+
"ORDINAL",
|
| 24 |
+
"OCC",
|
| 25 |
+
"EVENT",
|
| 26 |
+
"CARDINAL",
|
| 27 |
+
"LOC",
|
| 28 |
+
"WEBSITE",
|
| 29 |
+
"FAC",
|
| 30 |
+
"LAW",
|
| 31 |
+
"TIME",
|
| 32 |
+
"MONEY",
|
| 33 |
+
"CURR",
|
| 34 |
+
"LANGUAGE",
|
| 35 |
+
"PERCENT",
|
| 36 |
+
"PRODUCT",
|
| 37 |
+
"QUANTITY",
|
| 38 |
+
"UNIT"
|
| 39 |
+
],
|
| 40 |
+
"tokenizer_size": 65002,
|
| 41 |
+
"hidden_size": 768,
|
| 42 |
+
"max_length": 512,
|
| 43 |
+
"context_candidates": [
|
| 44 |
+
null,
|
| 45 |
+
500,
|
| 46 |
+
300,
|
| 47 |
+
150,
|
| 48 |
+
80,
|
| 49 |
+
30,
|
| 50 |
+
0
|
| 51 |
+
]
|
| 52 |
+
}
|
configs/id2label.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"0": "GPE",
|
| 3 |
+
"1": "ORG",
|
| 4 |
+
"2": "DATE",
|
| 5 |
+
"3": "PERS",
|
| 6 |
+
"4": "NORP",
|
| 7 |
+
"5": "ORDINAL",
|
| 8 |
+
"6": "OCC",
|
| 9 |
+
"7": "EVENT",
|
| 10 |
+
"8": "CARDINAL",
|
| 11 |
+
"9": "LOC",
|
| 12 |
+
"10": "WEBSITE",
|
| 13 |
+
"11": "FAC",
|
| 14 |
+
"12": "LAW",
|
| 15 |
+
"13": "TIME",
|
| 16 |
+
"14": "MONEY",
|
| 17 |
+
"15": "CURR",
|
| 18 |
+
"16": "LANGUAGE",
|
| 19 |
+
"17": "PERCENT",
|
| 20 |
+
"18": "PRODUCT",
|
| 21 |
+
"19": "QUANTITY",
|
| 22 |
+
"20": "UNIT"
|
| 23 |
+
}
|
configs/label2id.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"GPE": 0,
|
| 3 |
+
"ORG": 1,
|
| 4 |
+
"DATE": 2,
|
| 5 |
+
"PERS": 3,
|
| 6 |
+
"NORP": 4,
|
| 7 |
+
"ORDINAL": 5,
|
| 8 |
+
"OCC": 6,
|
| 9 |
+
"EVENT": 7,
|
| 10 |
+
"CARDINAL": 8,
|
| 11 |
+
"LOC": 9,
|
| 12 |
+
"WEBSITE": 10,
|
| 13 |
+
"FAC": 11,
|
| 14 |
+
"LAW": 12,
|
| 15 |
+
"TIME": 13,
|
| 16 |
+
"MONEY": 14,
|
| 17 |
+
"CURR": 15,
|
| 18 |
+
"LANGUAGE": 16,
|
| 19 |
+
"PERCENT": 17,
|
| 20 |
+
"PRODUCT": 18,
|
| 21 |
+
"QUANTITY": 19,
|
| 22 |
+
"UNIT": 20
|
| 23 |
+
}
|
configs/run_config.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"experiment_name": "TypePredictor",
|
| 3 |
+
"dataset_repo_id": "U4RASD/TypePrediction",
|
| 4 |
+
"dataset_files": {
|
| 5 |
+
"train": "type_predictor_train.jsonl",
|
| 6 |
+
"validation": "type_predictor_val.jsonl",
|
| 7 |
+
"test": "type_predictor_test.jsonl"
|
| 8 |
+
},
|
| 9 |
+
"model_name": "U4RASD/NeoAraBERT",
|
| 10 |
+
"model_repo_id": "U4RASD/TypePredictor",
|
| 11 |
+
"seed": 42,
|
| 12 |
+
"max_length": 512,
|
| 13 |
+
"context_chars": 300,
|
| 14 |
+
"context_candidates": [
|
| 15 |
+
null,
|
| 16 |
+
500,
|
| 17 |
+
300,
|
| 18 |
+
150,
|
| 19 |
+
80,
|
| 20 |
+
30,
|
| 21 |
+
0
|
| 22 |
+
],
|
| 23 |
+
"num_epochs": 4.0,
|
| 24 |
+
"train_batch_size": 4,
|
| 25 |
+
"eval_batch_size": 8,
|
| 26 |
+
"gradient_accumulation_steps": 4,
|
| 27 |
+
"effective_batch_size": 16,
|
| 28 |
+
"encoder_lr": 1e-05,
|
| 29 |
+
"head_lr": 5e-05,
|
| 30 |
+
"dropout": 0.1,
|
| 31 |
+
"weight_decay": 0.01,
|
| 32 |
+
"warmup_ratio": 0.1,
|
| 33 |
+
"max_grad_norm": 1.0,
|
| 34 |
+
"logging_steps": 50,
|
| 35 |
+
"eval_steps": 500,
|
| 36 |
+
"save_steps": 500,
|
| 37 |
+
"fp16": true,
|
| 38 |
+
"best_metric_name": "validation macro F1",
|
| 39 |
+
"parameter_counts": {
|
| 40 |
+
"total": 248162325,
|
| 41 |
+
"trainable": 248162325,
|
| 42 |
+
"encoder": 248146176,
|
| 43 |
+
"classifier": 16149
|
| 44 |
+
},
|
| 45 |
+
"checkpoint_summary": {
|
| 46 |
+
"best_checkpoint_source": "outputs/TypePredictor/checkpoints/checkpoint-25000",
|
| 47 |
+
"best_checkpoint_preserved": "outputs/TypePredictor/best_checkpoint",
|
| 48 |
+
"best_step": 25000,
|
| 49 |
+
"best_epoch": 3.9682923925552602,
|
| 50 |
+
"best_validation_macro_f1": 0.9587281193044483,
|
| 51 |
+
"latest_checkpoint_source": "outputs/TypePredictor/checkpoints/checkpoint-25196",
|
| 52 |
+
"latest_checkpoint_preserved": "outputs/TypePredictor/latest_checkpoint",
|
| 53 |
+
"latest_step": 25196,
|
| 54 |
+
"latest_epoch": 3.9994047382832654,
|
| 55 |
+
"best_and_latest_same_source": false,
|
| 56 |
+
"root_released_model": "best checkpoint"
|
| 57 |
+
},
|
| 58 |
+
"training_started_at_utc": "2026-07-12T15:30:38+00:00",
|
| 59 |
+
"training_finished_at_utc": "2026-07-12T18:55:01+00:00",
|
| 60 |
+
"training_wall_seconds": 12262.467122793198,
|
| 61 |
+
"versions": {
|
| 62 |
+
"python": "3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0]",
|
| 63 |
+
"torch": "2.5.1+cu124",
|
| 64 |
+
"transformers": "4.49.0",
|
| 65 |
+
"huggingface_hub": "0.29.1",
|
| 66 |
+
"scikit_learn": "1.5.2",
|
| 67 |
+
"numpy": "2.0.2",
|
| 68 |
+
"pandas": "2.2.3",
|
| 69 |
+
"platform": "Linux-6.8.0-48-generic-x86_64-with-glibc2.39"
|
| 70 |
+
},
|
| 71 |
+
"hardware": {
|
| 72 |
+
"cuda_available": true,
|
| 73 |
+
"gpu_name": "NVIDIA A40",
|
| 74 |
+
"gpu_vram_gb": 44.431640625
|
| 75 |
+
}
|
| 76 |
+
}
|
configs/training_arguments.json
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"output_dir": "outputs/TypePredictor/checkpoints",
|
| 3 |
+
"overwrite_output_dir": false,
|
| 4 |
+
"do_train": false,
|
| 5 |
+
"do_eval": true,
|
| 6 |
+
"do_predict": false,
|
| 7 |
+
"eval_strategy": "steps",
|
| 8 |
+
"prediction_loss_only": false,
|
| 9 |
+
"per_device_train_batch_size": 4,
|
| 10 |
+
"per_device_eval_batch_size": 8,
|
| 11 |
+
"per_gpu_train_batch_size": null,
|
| 12 |
+
"per_gpu_eval_batch_size": null,
|
| 13 |
+
"gradient_accumulation_steps": 4,
|
| 14 |
+
"eval_accumulation_steps": null,
|
| 15 |
+
"eval_delay": 0,
|
| 16 |
+
"torch_empty_cache_steps": null,
|
| 17 |
+
"learning_rate": 5e-05,
|
| 18 |
+
"weight_decay": 0.01,
|
| 19 |
+
"adam_beta1": 0.9,
|
| 20 |
+
"adam_beta2": 0.999,
|
| 21 |
+
"adam_epsilon": 1e-08,
|
| 22 |
+
"max_grad_norm": 1.0,
|
| 23 |
+
"num_train_epochs": 4.0,
|
| 24 |
+
"max_steps": -1,
|
| 25 |
+
"lr_scheduler_type": "linear",
|
| 26 |
+
"lr_scheduler_kwargs": {},
|
| 27 |
+
"warmup_ratio": 0.1,
|
| 28 |
+
"warmup_steps": 0,
|
| 29 |
+
"log_level": "passive",
|
| 30 |
+
"log_level_replica": "warning",
|
| 31 |
+
"log_on_each_node": true,
|
| 32 |
+
"logging_dir": "outputs/TypePredictor/checkpoints/runs/Jul12_15-30-37_547e2be95e65",
|
| 33 |
+
"logging_strategy": "steps",
|
| 34 |
+
"logging_first_step": false,
|
| 35 |
+
"logging_steps": 50,
|
| 36 |
+
"logging_nan_inf_filter": true,
|
| 37 |
+
"save_strategy": "steps",
|
| 38 |
+
"save_steps": 500,
|
| 39 |
+
"save_total_limit": 2,
|
| 40 |
+
"save_safetensors": false,
|
| 41 |
+
"save_on_each_node": false,
|
| 42 |
+
"save_only_model": false,
|
| 43 |
+
"restore_callback_states_from_checkpoint": false,
|
| 44 |
+
"no_cuda": false,
|
| 45 |
+
"use_cpu": false,
|
| 46 |
+
"use_mps_device": false,
|
| 47 |
+
"seed": 42,
|
| 48 |
+
"data_seed": 42,
|
| 49 |
+
"jit_mode_eval": false,
|
| 50 |
+
"use_ipex": false,
|
| 51 |
+
"bf16": false,
|
| 52 |
+
"fp16": true,
|
| 53 |
+
"fp16_opt_level": "O1",
|
| 54 |
+
"half_precision_backend": "auto",
|
| 55 |
+
"bf16_full_eval": false,
|
| 56 |
+
"fp16_full_eval": false,
|
| 57 |
+
"tf32": null,
|
| 58 |
+
"local_rank": 0,
|
| 59 |
+
"ddp_backend": null,
|
| 60 |
+
"tpu_num_cores": null,
|
| 61 |
+
"tpu_metrics_debug": false,
|
| 62 |
+
"debug": [],
|
| 63 |
+
"dataloader_drop_last": false,
|
| 64 |
+
"eval_steps": 500,
|
| 65 |
+
"dataloader_num_workers": 2,
|
| 66 |
+
"dataloader_prefetch_factor": null,
|
| 67 |
+
"past_index": -1,
|
| 68 |
+
"run_name": "outputs/TypePredictor/checkpoints",
|
| 69 |
+
"disable_tqdm": false,
|
| 70 |
+
"remove_unused_columns": false,
|
| 71 |
+
"label_names": null,
|
| 72 |
+
"load_best_model_at_end": true,
|
| 73 |
+
"metric_for_best_model": "macro_f1",
|
| 74 |
+
"greater_is_better": true,
|
| 75 |
+
"ignore_data_skip": false,
|
| 76 |
+
"fsdp": [],
|
| 77 |
+
"fsdp_min_num_params": 0,
|
| 78 |
+
"fsdp_config": {
|
| 79 |
+
"min_num_params": 0,
|
| 80 |
+
"xla": false,
|
| 81 |
+
"xla_fsdp_v2": false,
|
| 82 |
+
"xla_fsdp_grad_ckpt": false
|
| 83 |
+
},
|
| 84 |
+
"fsdp_transformer_layer_cls_to_wrap": null,
|
| 85 |
+
"accelerator_config": {
|
| 86 |
+
"split_batches": false,
|
| 87 |
+
"dispatch_batches": null,
|
| 88 |
+
"even_batches": true,
|
| 89 |
+
"use_seedable_sampler": true,
|
| 90 |
+
"non_blocking": false,
|
| 91 |
+
"gradient_accumulation_kwargs": null
|
| 92 |
+
},
|
| 93 |
+
"deepspeed": null,
|
| 94 |
+
"label_smoothing_factor": 0.0,
|
| 95 |
+
"optim": "adamw_torch",
|
| 96 |
+
"optim_args": null,
|
| 97 |
+
"adafactor": false,
|
| 98 |
+
"group_by_length": false,
|
| 99 |
+
"length_column_name": "length",
|
| 100 |
+
"report_to": [],
|
| 101 |
+
"ddp_find_unused_parameters": null,
|
| 102 |
+
"ddp_bucket_cap_mb": null,
|
| 103 |
+
"ddp_broadcast_buffers": null,
|
| 104 |
+
"dataloader_pin_memory": true,
|
| 105 |
+
"dataloader_persistent_workers": false,
|
| 106 |
+
"skip_memory_metrics": true,
|
| 107 |
+
"use_legacy_prediction_loop": false,
|
| 108 |
+
"push_to_hub": false,
|
| 109 |
+
"resume_from_checkpoint": null,
|
| 110 |
+
"hub_model_id": null,
|
| 111 |
+
"hub_strategy": "every_save",
|
| 112 |
+
"hub_token": "<HUB_TOKEN>",
|
| 113 |
+
"hub_private_repo": null,
|
| 114 |
+
"hub_always_push": false,
|
| 115 |
+
"gradient_checkpointing": false,
|
| 116 |
+
"gradient_checkpointing_kwargs": null,
|
| 117 |
+
"include_inputs_for_metrics": false,
|
| 118 |
+
"include_for_metrics": [],
|
| 119 |
+
"eval_do_concat_batches": true,
|
| 120 |
+
"fp16_backend": "auto",
|
| 121 |
+
"evaluation_strategy": null,
|
| 122 |
+
"push_to_hub_model_id": null,
|
| 123 |
+
"push_to_hub_organization": null,
|
| 124 |
+
"push_to_hub_token": "<PUSH_TO_HUB_TOKEN>",
|
| 125 |
+
"mp_parameters": "",
|
| 126 |
+
"auto_find_batch_size": false,
|
| 127 |
+
"full_determinism": false,
|
| 128 |
+
"torchdynamo": null,
|
| 129 |
+
"ray_scope": "last",
|
| 130 |
+
"ddp_timeout": 1800,
|
| 131 |
+
"torch_compile": false,
|
| 132 |
+
"torch_compile_backend": null,
|
| 133 |
+
"torch_compile_mode": null,
|
| 134 |
+
"dispatch_batches": null,
|
| 135 |
+
"split_batches": null,
|
| 136 |
+
"include_tokens_per_second": false,
|
| 137 |
+
"include_num_input_tokens_seen": false,
|
| 138 |
+
"neftune_noise_alpha": null,
|
| 139 |
+
"optim_target_modules": null,
|
| 140 |
+
"batch_eval_metrics": false,
|
| 141 |
+
"eval_on_start": false,
|
| 142 |
+
"use_liger_kernel": false,
|
| 143 |
+
"eval_use_gather_object": false,
|
| 144 |
+
"average_tokens_across_devices": false
|
| 145 |
+
}
|
confusion_matrices/test_overall_confusion_matrix.csv
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
,GPE,ORG,DATE,PERS,NORP,ORDINAL,OCC,EVENT,CARDINAL,LOC,WEBSITE,FAC,LAW,TIME,MONEY,CURR,LANGUAGE,PERCENT,PRODUCT,QUANTITY,UNIT
|
| 2 |
+
GPE,2649,21,4,2,6,0,1,1,1,3,2,1,0,0,0,0,0,0,0,0,0
|
| 3 |
+
ORG,36,2601,1,5,6,0,1,3,0,2,1,3,0,0,0,0,0,0,0,0,0
|
| 4 |
+
DATE,2,0,1968,2,1,0,0,0,0,1,0,0,0,2,0,0,1,0,0,0,0
|
| 5 |
+
PERS,4,4,2,1053,2,1,4,0,0,0,1,0,0,0,0,0,0,0,0,0,0
|
| 6 |
+
NORP,3,7,1,5,999,0,1,1,1,0,0,1,0,1,0,0,1,0,0,0,0
|
| 7 |
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| 18 |
+
LANGUAGE,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,2,0,0,0,0
|
| 19 |
+
PERCENT,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0
|
| 20 |
+
PRODUCT,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0
|
| 21 |
+
QUANTITY,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
| 22 |
+
UNIT,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1
|
dataset_evaluation_category_counts.csv
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
split,type,evaluation_category,count
|
| 2 |
+
validation,GPE,unseen_sentence,159
|
| 3 |
+
validation,GPE,seen_sentence_new_entity,2531
|
| 4 |
+
validation,ORG,unseen_sentence,114
|
| 5 |
+
validation,ORG,seen_sentence_new_entity,2546
|
| 6 |
+
validation,DATE,unseen_sentence,124
|
| 7 |
+
validation,DATE,seen_sentence_new_entity,1852
|
| 8 |
+
validation,PERS,unseen_sentence,145
|
| 9 |
+
validation,PERS,seen_sentence_new_entity,927
|
| 10 |
+
validation,NORP,unseen_sentence,101
|
| 11 |
+
validation,NORP,seen_sentence_new_entity,921
|
| 12 |
+
validation,ORDINAL,unseen_sentence,89
|
| 13 |
+
validation,ORDINAL,seen_sentence_new_entity,691
|
| 14 |
+
validation,OCC,unseen_sentence,45
|
| 15 |
+
validation,OCC,seen_sentence_new_entity,724
|
| 16 |
+
validation,EVENT,unseen_sentence,15
|
| 17 |
+
validation,EVENT,seen_sentence_new_entity,362
|
| 18 |
+
validation,CARDINAL,unseen_sentence,49
|
| 19 |
+
validation,CARDINAL,seen_sentence_new_entity,324
|
| 20 |
+
validation,LOC,unseen_sentence,17
|
| 21 |
+
validation,LOC,seen_sentence_new_entity,222
|
| 22 |
+
validation,WEBSITE,unseen_sentence,37
|
| 23 |
+
validation,WEBSITE,seen_sentence_new_entity,111
|
| 24 |
+
validation,FAC,unseen_sentence,13
|
| 25 |
+
validation,FAC,seen_sentence_new_entity,117
|
| 26 |
+
validation,LAW,unseen_sentence,7
|
| 27 |
+
validation,LAW,seen_sentence_new_entity,83
|
| 28 |
+
validation,TIME,unseen_sentence,12
|
| 29 |
+
validation,TIME,seen_sentence_new_entity,75
|
| 30 |
+
validation,MONEY,unseen_sentence,1
|
| 31 |
+
validation,MONEY,seen_sentence_new_entity,41
|
| 32 |
+
validation,CURR,unseen_sentence,2
|
| 33 |
+
validation,CURR,seen_sentence_new_entity,39
|
| 34 |
+
validation,LANGUAGE,unseen_sentence,3
|
| 35 |
+
validation,LANGUAGE,seen_sentence_new_entity,30
|
| 36 |
+
validation,PERCENT,unseen_sentence,2
|
| 37 |
+
validation,PERCENT,seen_sentence_new_entity,29
|
| 38 |
+
validation,PRODUCT,unseen_sentence,3
|
| 39 |
+
validation,PRODUCT,seen_sentence_new_entity,16
|
| 40 |
+
validation,QUANTITY,unseen_sentence,0
|
| 41 |
+
validation,QUANTITY,seen_sentence_new_entity,11
|
| 42 |
+
validation,UNIT,unseen_sentence,1
|
| 43 |
+
validation,UNIT,seen_sentence_new_entity,9
|
| 44 |
+
test,GPE,unseen_sentence,153
|
| 45 |
+
test,GPE,seen_sentence_new_entity,2538
|
| 46 |
+
test,ORG,unseen_sentence,139
|
| 47 |
+
test,ORG,seen_sentence_new_entity,2520
|
| 48 |
+
test,DATE,unseen_sentence,120
|
| 49 |
+
test,DATE,seen_sentence_new_entity,1857
|
| 50 |
+
test,PERS,unseen_sentence,143
|
| 51 |
+
test,PERS,seen_sentence_new_entity,928
|
| 52 |
+
test,NORP,unseen_sentence,125
|
| 53 |
+
test,NORP,seen_sentence_new_entity,896
|
| 54 |
+
test,ORDINAL,unseen_sentence,82
|
| 55 |
+
test,ORDINAL,seen_sentence_new_entity,699
|
| 56 |
+
test,OCC,unseen_sentence,50
|
| 57 |
+
test,OCC,seen_sentence_new_entity,720
|
| 58 |
+
test,EVENT,unseen_sentence,14
|
| 59 |
+
test,EVENT,seen_sentence_new_entity,363
|
| 60 |
+
test,CARDINAL,unseen_sentence,49
|
| 61 |
+
test,CARDINAL,seen_sentence_new_entity,323
|
| 62 |
+
test,LOC,unseen_sentence,15
|
| 63 |
+
test,LOC,seen_sentence_new_entity,224
|
| 64 |
+
test,WEBSITE,unseen_sentence,52
|
| 65 |
+
test,WEBSITE,seen_sentence_new_entity,96
|
| 66 |
+
test,FAC,unseen_sentence,8
|
| 67 |
+
test,FAC,seen_sentence_new_entity,121
|
| 68 |
+
test,LAW,unseen_sentence,8
|
| 69 |
+
test,LAW,seen_sentence_new_entity,83
|
| 70 |
+
test,TIME,unseen_sentence,19
|
| 71 |
+
test,TIME,seen_sentence_new_entity,68
|
| 72 |
+
test,MONEY,unseen_sentence,1
|
| 73 |
+
test,MONEY,seen_sentence_new_entity,41
|
| 74 |
+
test,CURR,unseen_sentence,3
|
| 75 |
+
test,CURR,seen_sentence_new_entity,38
|
| 76 |
+
test,LANGUAGE,unseen_sentence,8
|
| 77 |
+
test,LANGUAGE,seen_sentence_new_entity,25
|
| 78 |
+
test,PERCENT,unseen_sentence,2
|
| 79 |
+
test,PERCENT,seen_sentence_new_entity,29
|
| 80 |
+
test,PRODUCT,unseen_sentence,2
|
| 81 |
+
test,PRODUCT,seen_sentence_new_entity,17
|
| 82 |
+
test,QUANTITY,unseen_sentence,1
|
| 83 |
+
test,QUANTITY,seen_sentence_new_entity,9
|
| 84 |
+
test,UNIT,unseen_sentence,0
|
| 85 |
+
test,UNIT,seen_sentence_new_entity,11
|
dataset_split_type_counts.csv
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
type,train,validation,test,total,train_pct,validation_pct,test_pct
|
| 2 |
+
GPE,21521,2690,2691,26902,0.7999776968255148,0.09999256560850495,0.10002973756598023
|
| 3 |
+
ORG,21274,2660,2659,26593,0.7999849584477118,0.10002632271650434,0.09998871883578385
|
| 4 |
+
DATE,15809,1976,1977,19762,0.7999696387005364,0.09998987956684546,0.10004048173261816
|
| 5 |
+
PERS,8569,1072,1071,10712,0.7999439880507841,0.10007468259895444,0.09998132935026138
|
| 6 |
+
NORP,8174,1022,1021,10217,0.8000391504355486,0.10002936282666144,0.09993148673778995
|
| 7 |
+
ORDINAL,6246,780,781,7807,0.8000512360701935,0.09991033687716153,0.10003842705264507
|
| 8 |
+
OCC,6157,769,770,7696,0.8000259875259875,0.09992203742203742,0.10005197505197505
|
| 9 |
+
EVENT,3015,377,377,3769,0.7999469355266648,0.10002653223666755,0.10002653223666755
|
| 10 |
+
CARDINAL,2979,373,372,3724,0.7999462943071965,0.10016111707841031,0.09989258861439312
|
| 11 |
+
LOC,1910,239,239,2388,0.7998324958123953,0.10008375209380234,0.10008375209380234
|
| 12 |
+
WEBSITE,1182,148,148,1478,0.7997293640054127,0.10013531799729364,0.10013531799729364
|
| 13 |
+
FAC,1037,130,129,1296,0.8001543209876543,0.10030864197530864,0.09953703703703703
|
| 14 |
+
LAW,723,90,91,904,0.7997787610619469,0.09955752212389381,0.1006637168141593
|
| 15 |
+
TIME,697,87,87,871,0.8002296211251435,0.09988518943742825,0.09988518943742825
|
| 16 |
+
MONEY,336,42,42,420,0.8,0.1,0.1
|
| 17 |
+
CURR,329,41,41,411,0.8004866180048662,0.09975669099756691,0.09975669099756691
|
| 18 |
+
LANGUAGE,266,33,33,332,0.8012048192771084,0.09939759036144578,0.09939759036144578
|
| 19 |
+
PERCENT,250,31,31,312,0.8012820512820513,0.09935897435897435,0.09935897435897435
|
| 20 |
+
PRODUCT,152,19,19,190,0.8,0.1,0.1
|
| 21 |
+
QUANTITY,85,11,10,106,0.8018867924528302,0.10377358490566038,0.09433962264150944
|
| 22 |
+
UNIT,85,10,11,106,0.8018867924528302,0.09433962264150944,0.10377358490566038
|
dataset_validation.json
ADDED
|
@@ -0,0 +1,790 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"validated_at_utc": "2026-07-12T15:30:12+00:00",
|
| 3 |
+
"dataset_repo_id": "U4RASD/TypePrediction",
|
| 4 |
+
"files": {
|
| 5 |
+
"train": {
|
| 6 |
+
"name": "type_predictor_train.jsonl",
|
| 7 |
+
"path": "/workspace/.cache/huggingface/hub/datasets--U4RASD--TypePrediction/snapshots/2cc13badf71d134057168b7e96cf78d1fdfdc4cc/type_predictor_train.jsonl",
|
| 8 |
+
"sha256": "20061ac6df35353e01977a85f0d6fc1466a609a093ef76a06a90f7580cbb65f8"
|
| 9 |
+
},
|
| 10 |
+
"validation": {
|
| 11 |
+
"name": "type_predictor_val.jsonl",
|
| 12 |
+
"path": "/workspace/.cache/huggingface/hub/datasets--U4RASD--TypePrediction/snapshots/2cc13badf71d134057168b7e96cf78d1fdfdc4cc/type_predictor_val.jsonl",
|
| 13 |
+
"sha256": "099b991973d0ba1f747c3959cbcc8a1eb98e96beadf10d7046451cfc094a19ec"
|
| 14 |
+
},
|
| 15 |
+
"test": {
|
| 16 |
+
"name": "type_predictor_test.jsonl",
|
| 17 |
+
"path": "/workspace/.cache/huggingface/hub/datasets--U4RASD--TypePrediction/snapshots/2cc13badf71d134057168b7e96cf78d1fdfdc4cc/type_predictor_test.jsonl",
|
| 18 |
+
"sha256": "7b494a3b7c1f3dcc14aaa9900b18dc983b4c44a8dcd02426068f32bed4f2ca0e"
|
| 19 |
+
}
|
| 20 |
+
},
|
| 21 |
+
"strict_expected_counts": true,
|
| 22 |
+
"train": {
|
| 23 |
+
"name": "TRAIN",
|
| 24 |
+
"rows": 100796,
|
| 25 |
+
"unique_ids": 100796,
|
| 26 |
+
"type_counts": {
|
| 27 |
+
"ORG": 21274,
|
| 28 |
+
"PERS": 8569,
|
| 29 |
+
"NORP": 8174,
|
| 30 |
+
"CARDINAL": 2979,
|
| 31 |
+
"ORDINAL": 6246,
|
| 32 |
+
"GPE": 21521,
|
| 33 |
+
"DATE": 15809,
|
| 34 |
+
"OCC": 6157,
|
| 35 |
+
"LOC": 1910,
|
| 36 |
+
"LANGUAGE": 266,
|
| 37 |
+
"TIME": 697,
|
| 38 |
+
"FAC": 1037,
|
| 39 |
+
"EVENT": 3015,
|
| 40 |
+
"LAW": 723,
|
| 41 |
+
"MONEY": 336,
|
| 42 |
+
"WEBSITE": 1182,
|
| 43 |
+
"CURR": 329,
|
| 44 |
+
"UNIT": 85,
|
| 45 |
+
"PERCENT": 250,
|
| 46 |
+
"PRODUCT": 152,
|
| 47 |
+
"QUANTITY": 85
|
| 48 |
+
},
|
| 49 |
+
"category_counts": {}
|
| 50 |
+
},
|
| 51 |
+
"validation": {
|
| 52 |
+
"name": "VALIDATION",
|
| 53 |
+
"rows": 12600,
|
| 54 |
+
"unique_ids": 12600,
|
| 55 |
+
"type_counts": {
|
| 56 |
+
"GPE": 2690,
|
| 57 |
+
"EVENT": 377,
|
| 58 |
+
"ORG": 2660,
|
| 59 |
+
"DATE": 1976,
|
| 60 |
+
"CARDINAL": 373,
|
| 61 |
+
"OCC": 769,
|
| 62 |
+
"ORDINAL": 780,
|
| 63 |
+
"PERCENT": 31,
|
| 64 |
+
"PERS": 1072,
|
| 65 |
+
"NORP": 1022,
|
| 66 |
+
"TIME": 87,
|
| 67 |
+
"LOC": 239,
|
| 68 |
+
"FAC": 130,
|
| 69 |
+
"WEBSITE": 148,
|
| 70 |
+
"CURR": 41,
|
| 71 |
+
"LAW": 90,
|
| 72 |
+
"QUANTITY": 11,
|
| 73 |
+
"MONEY": 42,
|
| 74 |
+
"PRODUCT": 19,
|
| 75 |
+
"LANGUAGE": 33,
|
| 76 |
+
"UNIT": 10
|
| 77 |
+
},
|
| 78 |
+
"category_counts": {
|
| 79 |
+
"seen_sentence_new_entity": 11661,
|
| 80 |
+
"unseen_sentence": 939
|
| 81 |
+
}
|
| 82 |
+
},
|
| 83 |
+
"test": {
|
| 84 |
+
"name": "TEST",
|
| 85 |
+
"rows": 12600,
|
| 86 |
+
"unique_ids": 12600,
|
| 87 |
+
"type_counts": {
|
| 88 |
+
"DATE": 1977,
|
| 89 |
+
"ORG": 2659,
|
| 90 |
+
"PERS": 1071,
|
| 91 |
+
"NORP": 1021,
|
| 92 |
+
"EVENT": 377,
|
| 93 |
+
"GPE": 2691,
|
| 94 |
+
"OCC": 770,
|
| 95 |
+
"FAC": 129,
|
| 96 |
+
"ORDINAL": 781,
|
| 97 |
+
"WEBSITE": 148,
|
| 98 |
+
"TIME": 87,
|
| 99 |
+
"UNIT": 11,
|
| 100 |
+
"LOC": 239,
|
| 101 |
+
"MONEY": 42,
|
| 102 |
+
"CARDINAL": 372,
|
| 103 |
+
"CURR": 41,
|
| 104 |
+
"PERCENT": 31,
|
| 105 |
+
"LAW": 91,
|
| 106 |
+
"PRODUCT": 19,
|
| 107 |
+
"LANGUAGE": 33,
|
| 108 |
+
"QUANTITY": 10
|
| 109 |
+
},
|
| 110 |
+
"category_counts": {
|
| 111 |
+
"seen_sentence_new_entity": 11606,
|
| 112 |
+
"unseen_sentence": 994
|
| 113 |
+
}
|
| 114 |
+
},
|
| 115 |
+
"all_ids_unique_across_splits": true,
|
| 116 |
+
"label_list": [
|
| 117 |
+
"GPE",
|
| 118 |
+
"ORG",
|
| 119 |
+
"DATE",
|
| 120 |
+
"PERS",
|
| 121 |
+
"NORP",
|
| 122 |
+
"ORDINAL",
|
| 123 |
+
"OCC",
|
| 124 |
+
"EVENT",
|
| 125 |
+
"CARDINAL",
|
| 126 |
+
"LOC",
|
| 127 |
+
"WEBSITE",
|
| 128 |
+
"FAC",
|
| 129 |
+
"LAW",
|
| 130 |
+
"TIME",
|
| 131 |
+
"MONEY",
|
| 132 |
+
"CURR",
|
| 133 |
+
"LANGUAGE",
|
| 134 |
+
"PERCENT",
|
| 135 |
+
"PRODUCT",
|
| 136 |
+
"QUANTITY",
|
| 137 |
+
"UNIT"
|
| 138 |
+
],
|
| 139 |
+
"source_summary": {
|
| 140 |
+
"total_rows": 125996,
|
| 141 |
+
"unique_sentences": 33933,
|
| 142 |
+
"raw_mentions_before_dedupe": 408035,
|
| 143 |
+
"deduped_rows_before_ambiguity_filter": 132763,
|
| 144 |
+
"duplicates_merged": 275272,
|
| 145 |
+
"ambiguous_span_groups_excluded": 3383,
|
| 146 |
+
"ambiguous_candidate_rows_excluded": 6767,
|
| 147 |
+
"source_breakdown": [
|
| 148 |
+
{
|
| 149 |
+
"dataset": "Wojood1_1_flat",
|
| 150 |
+
"split": "test",
|
| 151 |
+
"sentences": 6606,
|
| 152 |
+
"mentions": 14573
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"dataset": "Wojood1_1_flat",
|
| 156 |
+
"split": "train",
|
| 157 |
+
"sentences": 23125,
|
| 158 |
+
"mentions": 49959
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"dataset": "Wojood1_1_flat",
|
| 162 |
+
"split": "val",
|
| 163 |
+
"sentences": 3304,
|
| 164 |
+
"mentions": 7143
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"dataset": "Wojood1_1_nested",
|
| 168 |
+
"split": "test",
|
| 169 |
+
"sentences": 6606,
|
| 170 |
+
"mentions": 18045
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"dataset": "Wojood1_1_nested",
|
| 174 |
+
"split": "train",
|
| 175 |
+
"sentences": 23125,
|
| 176 |
+
"mentions": 62377
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"dataset": "Wojood1_1_nested",
|
| 180 |
+
"split": "val",
|
| 181 |
+
"sentences": 3304,
|
| 182 |
+
"mentions": 8944
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"dataset": "WojoodFine",
|
| 186 |
+
"split": "test",
|
| 187 |
+
"sentences": 5748,
|
| 188 |
+
"mentions": 27848
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"dataset": "WojoodFine",
|
| 192 |
+
"split": "train",
|
| 193 |
+
"sentences": 19484,
|
| 194 |
+
"mentions": 96188
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"dataset": "WojoodFine",
|
| 198 |
+
"split": "val",
|
| 199 |
+
"sentences": 2828,
|
| 200 |
+
"mentions": 13800
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"dataset": "WojoodFine-Flat",
|
| 204 |
+
"split": "split10",
|
| 205 |
+
"sentences": 3304,
|
| 206 |
+
"mentions": 10859
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"dataset": "WojoodFine-Flat",
|
| 210 |
+
"split": "split20",
|
| 211 |
+
"sentences": 6606,
|
| 212 |
+
"mentions": 22208
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"dataset": "WojoodFine-Flat",
|
| 216 |
+
"split": "split70",
|
| 217 |
+
"sentences": 23125,
|
| 218 |
+
"mentions": 76091
|
| 219 |
+
}
|
| 220 |
+
],
|
| 221 |
+
"type_breakdown": [
|
| 222 |
+
{
|
| 223 |
+
"type": "GPE",
|
| 224 |
+
"count": 26902
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"type": "ORG",
|
| 228 |
+
"count": 26593
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"type": "DATE",
|
| 232 |
+
"count": 19762
|
| 233 |
+
},
|
| 234 |
+
{
|
| 235 |
+
"type": "PERS",
|
| 236 |
+
"count": 10712
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"type": "NORP",
|
| 240 |
+
"count": 10217
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "ORDINAL",
|
| 244 |
+
"count": 7807
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"type": "OCC",
|
| 248 |
+
"count": 7696
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"type": "EVENT",
|
| 252 |
+
"count": 3769
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "CARDINAL",
|
| 256 |
+
"count": 3724
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"type": "LOC",
|
| 260 |
+
"count": 2388
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"type": "WEBSITE",
|
| 264 |
+
"count": 1478
|
| 265 |
+
},
|
| 266 |
+
{
|
| 267 |
+
"type": "FAC",
|
| 268 |
+
"count": 1296
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"type": "LAW",
|
| 272 |
+
"count": 904
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"type": "TIME",
|
| 276 |
+
"count": 871
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"type": "MONEY",
|
| 280 |
+
"count": 420
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"type": "CURR",
|
| 284 |
+
"count": 411
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"type": "LANGUAGE",
|
| 288 |
+
"count": 332
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"type": "PERCENT",
|
| 292 |
+
"count": 312
|
| 293 |
+
},
|
| 294 |
+
{
|
| 295 |
+
"type": "PRODUCT",
|
| 296 |
+
"count": 190
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"type": "QUANTITY",
|
| 300 |
+
"count": 106
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"type": "UNIT",
|
| 304 |
+
"count": 106
|
| 305 |
+
}
|
| 306 |
+
]
|
| 307 |
+
},
|
| 308 |
+
"source_split_summary": {
|
| 309 |
+
"random_seed": 42,
|
| 310 |
+
"requested_split_ratios": {
|
| 311 |
+
"train": 0.8,
|
| 312 |
+
"validation": 0.1,
|
| 313 |
+
"test": 0.1
|
| 314 |
+
},
|
| 315 |
+
"totals": {
|
| 316 |
+
"original_rows": 125996,
|
| 317 |
+
"train_rows": 100796,
|
| 318 |
+
"validation_rows": 12600,
|
| 319 |
+
"test_rows": 12600
|
| 320 |
+
},
|
| 321 |
+
"splits": {
|
| 322 |
+
"train": {
|
| 323 |
+
"name": "train",
|
| 324 |
+
"rows": 100796,
|
| 325 |
+
"percentage": 0.7999936505920823,
|
| 326 |
+
"unique_sentences": 32409,
|
| 327 |
+
"type_counts": {
|
| 328 |
+
"CARDINAL": 2979,
|
| 329 |
+
"CURR": 329,
|
| 330 |
+
"DATE": 15809,
|
| 331 |
+
"EVENT": 3015,
|
| 332 |
+
"FAC": 1037,
|
| 333 |
+
"GPE": 21521,
|
| 334 |
+
"LANGUAGE": 266,
|
| 335 |
+
"LAW": 723,
|
| 336 |
+
"LOC": 1910,
|
| 337 |
+
"MONEY": 336,
|
| 338 |
+
"NORP": 8174,
|
| 339 |
+
"OCC": 6157,
|
| 340 |
+
"ORDINAL": 6246,
|
| 341 |
+
"ORG": 21274,
|
| 342 |
+
"PERCENT": 250,
|
| 343 |
+
"PERS": 8569,
|
| 344 |
+
"PRODUCT": 152,
|
| 345 |
+
"QUANTITY": 85,
|
| 346 |
+
"TIME": 697,
|
| 347 |
+
"UNIT": 85,
|
| 348 |
+
"WEBSITE": 1182
|
| 349 |
+
}
|
| 350 |
+
},
|
| 351 |
+
"validation": {
|
| 352 |
+
"name": "validation",
|
| 353 |
+
"rows": 12600,
|
| 354 |
+
"percentage": 0.10000317470395885,
|
| 355 |
+
"unique_sentences": 10139,
|
| 356 |
+
"type_counts": {
|
| 357 |
+
"CARDINAL": 373,
|
| 358 |
+
"CURR": 41,
|
| 359 |
+
"DATE": 1976,
|
| 360 |
+
"EVENT": 377,
|
| 361 |
+
"FAC": 130,
|
| 362 |
+
"GPE": 2690,
|
| 363 |
+
"LANGUAGE": 33,
|
| 364 |
+
"LAW": 90,
|
| 365 |
+
"LOC": 239,
|
| 366 |
+
"MONEY": 42,
|
| 367 |
+
"NORP": 1022,
|
| 368 |
+
"OCC": 769,
|
| 369 |
+
"ORDINAL": 780,
|
| 370 |
+
"ORG": 2660,
|
| 371 |
+
"PERCENT": 31,
|
| 372 |
+
"PERS": 1072,
|
| 373 |
+
"PRODUCT": 19,
|
| 374 |
+
"QUANTITY": 11,
|
| 375 |
+
"TIME": 87,
|
| 376 |
+
"UNIT": 10,
|
| 377 |
+
"WEBSITE": 148
|
| 378 |
+
}
|
| 379 |
+
},
|
| 380 |
+
"test": {
|
| 381 |
+
"name": "test",
|
| 382 |
+
"rows": 12600,
|
| 383 |
+
"percentage": 0.10000317470395885,
|
| 384 |
+
"unique_sentences": 10161,
|
| 385 |
+
"type_counts": {
|
| 386 |
+
"CARDINAL": 372,
|
| 387 |
+
"CURR": 41,
|
| 388 |
+
"DATE": 1977,
|
| 389 |
+
"EVENT": 377,
|
| 390 |
+
"FAC": 129,
|
| 391 |
+
"GPE": 2691,
|
| 392 |
+
"LANGUAGE": 33,
|
| 393 |
+
"LAW": 91,
|
| 394 |
+
"LOC": 239,
|
| 395 |
+
"MONEY": 42,
|
| 396 |
+
"NORP": 1021,
|
| 397 |
+
"OCC": 770,
|
| 398 |
+
"ORDINAL": 781,
|
| 399 |
+
"ORG": 2659,
|
| 400 |
+
"PERCENT": 31,
|
| 401 |
+
"PERS": 1071,
|
| 402 |
+
"PRODUCT": 19,
|
| 403 |
+
"QUANTITY": 10,
|
| 404 |
+
"TIME": 87,
|
| 405 |
+
"UNIT": 11,
|
| 406 |
+
"WEBSITE": 148
|
| 407 |
+
}
|
| 408 |
+
}
|
| 409 |
+
},
|
| 410 |
+
"per_type_counts": {
|
| 411 |
+
"CARDINAL": {
|
| 412 |
+
"original": 3724,
|
| 413 |
+
"train": 2979,
|
| 414 |
+
"validation": 373,
|
| 415 |
+
"test": 372,
|
| 416 |
+
"train_ratio": 0.7999462943071965,
|
| 417 |
+
"validation_ratio": 0.10016111707841031,
|
| 418 |
+
"test_ratio": 0.09989258861439312
|
| 419 |
+
},
|
| 420 |
+
"CURR": {
|
| 421 |
+
"original": 411,
|
| 422 |
+
"train": 329,
|
| 423 |
+
"validation": 41,
|
| 424 |
+
"test": 41,
|
| 425 |
+
"train_ratio": 0.8004866180048662,
|
| 426 |
+
"validation_ratio": 0.09975669099756691,
|
| 427 |
+
"test_ratio": 0.09975669099756691
|
| 428 |
+
},
|
| 429 |
+
"DATE": {
|
| 430 |
+
"original": 19762,
|
| 431 |
+
"train": 15809,
|
| 432 |
+
"validation": 1976,
|
| 433 |
+
"test": 1977,
|
| 434 |
+
"train_ratio": 0.7999696387005364,
|
| 435 |
+
"validation_ratio": 0.09998987956684546,
|
| 436 |
+
"test_ratio": 0.10004048173261816
|
| 437 |
+
},
|
| 438 |
+
"EVENT": {
|
| 439 |
+
"original": 3769,
|
| 440 |
+
"train": 3015,
|
| 441 |
+
"validation": 377,
|
| 442 |
+
"test": 377,
|
| 443 |
+
"train_ratio": 0.7999469355266648,
|
| 444 |
+
"validation_ratio": 0.10002653223666755,
|
| 445 |
+
"test_ratio": 0.10002653223666755
|
| 446 |
+
},
|
| 447 |
+
"FAC": {
|
| 448 |
+
"original": 1296,
|
| 449 |
+
"train": 1037,
|
| 450 |
+
"validation": 130,
|
| 451 |
+
"test": 129,
|
| 452 |
+
"train_ratio": 0.8001543209876543,
|
| 453 |
+
"validation_ratio": 0.10030864197530864,
|
| 454 |
+
"test_ratio": 0.09953703703703703
|
| 455 |
+
},
|
| 456 |
+
"GPE": {
|
| 457 |
+
"original": 26902,
|
| 458 |
+
"train": 21521,
|
| 459 |
+
"validation": 2690,
|
| 460 |
+
"test": 2691,
|
| 461 |
+
"train_ratio": 0.7999776968255148,
|
| 462 |
+
"validation_ratio": 0.09999256560850495,
|
| 463 |
+
"test_ratio": 0.10002973756598023
|
| 464 |
+
},
|
| 465 |
+
"LANGUAGE": {
|
| 466 |
+
"original": 332,
|
| 467 |
+
"train": 266,
|
| 468 |
+
"validation": 33,
|
| 469 |
+
"test": 33,
|
| 470 |
+
"train_ratio": 0.8012048192771084,
|
| 471 |
+
"validation_ratio": 0.09939759036144578,
|
| 472 |
+
"test_ratio": 0.09939759036144578
|
| 473 |
+
},
|
| 474 |
+
"LAW": {
|
| 475 |
+
"original": 904,
|
| 476 |
+
"train": 723,
|
| 477 |
+
"validation": 90,
|
| 478 |
+
"test": 91,
|
| 479 |
+
"train_ratio": 0.7997787610619469,
|
| 480 |
+
"validation_ratio": 0.09955752212389381,
|
| 481 |
+
"test_ratio": 0.1006637168141593
|
| 482 |
+
},
|
| 483 |
+
"LOC": {
|
| 484 |
+
"original": 2388,
|
| 485 |
+
"train": 1910,
|
| 486 |
+
"validation": 239,
|
| 487 |
+
"test": 239,
|
| 488 |
+
"train_ratio": 0.7998324958123953,
|
| 489 |
+
"validation_ratio": 0.10008375209380234,
|
| 490 |
+
"test_ratio": 0.10008375209380234
|
| 491 |
+
},
|
| 492 |
+
"MONEY": {
|
| 493 |
+
"original": 420,
|
| 494 |
+
"train": 336,
|
| 495 |
+
"validation": 42,
|
| 496 |
+
"test": 42,
|
| 497 |
+
"train_ratio": 0.8,
|
| 498 |
+
"validation_ratio": 0.1,
|
| 499 |
+
"test_ratio": 0.1
|
| 500 |
+
},
|
| 501 |
+
"NORP": {
|
| 502 |
+
"original": 10217,
|
| 503 |
+
"train": 8174,
|
| 504 |
+
"validation": 1022,
|
| 505 |
+
"test": 1021,
|
| 506 |
+
"train_ratio": 0.8000391504355486,
|
| 507 |
+
"validation_ratio": 0.10002936282666144,
|
| 508 |
+
"test_ratio": 0.09993148673778995
|
| 509 |
+
},
|
| 510 |
+
"OCC": {
|
| 511 |
+
"original": 7696,
|
| 512 |
+
"train": 6157,
|
| 513 |
+
"validation": 769,
|
| 514 |
+
"test": 770,
|
| 515 |
+
"train_ratio": 0.8000259875259875,
|
| 516 |
+
"validation_ratio": 0.09992203742203742,
|
| 517 |
+
"test_ratio": 0.10005197505197505
|
| 518 |
+
},
|
| 519 |
+
"ORDINAL": {
|
| 520 |
+
"original": 7807,
|
| 521 |
+
"train": 6246,
|
| 522 |
+
"validation": 780,
|
| 523 |
+
"test": 781,
|
| 524 |
+
"train_ratio": 0.8000512360701935,
|
| 525 |
+
"validation_ratio": 0.09991033687716153,
|
| 526 |
+
"test_ratio": 0.10003842705264507
|
| 527 |
+
},
|
| 528 |
+
"ORG": {
|
| 529 |
+
"original": 26593,
|
| 530 |
+
"train": 21274,
|
| 531 |
+
"validation": 2660,
|
| 532 |
+
"test": 2659,
|
| 533 |
+
"train_ratio": 0.7999849584477118,
|
| 534 |
+
"validation_ratio": 0.10002632271650434,
|
| 535 |
+
"test_ratio": 0.09998871883578385
|
| 536 |
+
},
|
| 537 |
+
"PERCENT": {
|
| 538 |
+
"original": 312,
|
| 539 |
+
"train": 250,
|
| 540 |
+
"validation": 31,
|
| 541 |
+
"test": 31,
|
| 542 |
+
"train_ratio": 0.8012820512820513,
|
| 543 |
+
"validation_ratio": 0.09935897435897435,
|
| 544 |
+
"test_ratio": 0.09935897435897435
|
| 545 |
+
},
|
| 546 |
+
"PERS": {
|
| 547 |
+
"original": 10712,
|
| 548 |
+
"train": 8569,
|
| 549 |
+
"validation": 1072,
|
| 550 |
+
"test": 1071,
|
| 551 |
+
"train_ratio": 0.7999439880507841,
|
| 552 |
+
"validation_ratio": 0.10007468259895444,
|
| 553 |
+
"test_ratio": 0.09998132935026138
|
| 554 |
+
},
|
| 555 |
+
"PRODUCT": {
|
| 556 |
+
"original": 190,
|
| 557 |
+
"train": 152,
|
| 558 |
+
"validation": 19,
|
| 559 |
+
"test": 19,
|
| 560 |
+
"train_ratio": 0.8,
|
| 561 |
+
"validation_ratio": 0.1,
|
| 562 |
+
"test_ratio": 0.1
|
| 563 |
+
},
|
| 564 |
+
"QUANTITY": {
|
| 565 |
+
"original": 106,
|
| 566 |
+
"train": 85,
|
| 567 |
+
"validation": 11,
|
| 568 |
+
"test": 10,
|
| 569 |
+
"train_ratio": 0.8018867924528302,
|
| 570 |
+
"validation_ratio": 0.10377358490566038,
|
| 571 |
+
"test_ratio": 0.09433962264150944
|
| 572 |
+
},
|
| 573 |
+
"TIME": {
|
| 574 |
+
"original": 871,
|
| 575 |
+
"train": 697,
|
| 576 |
+
"validation": 87,
|
| 577 |
+
"test": 87,
|
| 578 |
+
"train_ratio": 0.8002296211251435,
|
| 579 |
+
"validation_ratio": 0.09988518943742825,
|
| 580 |
+
"test_ratio": 0.09988518943742825
|
| 581 |
+
},
|
| 582 |
+
"UNIT": {
|
| 583 |
+
"original": 106,
|
| 584 |
+
"train": 85,
|
| 585 |
+
"validation": 10,
|
| 586 |
+
"test": 11,
|
| 587 |
+
"train_ratio": 0.8018867924528302,
|
| 588 |
+
"validation_ratio": 0.09433962264150944,
|
| 589 |
+
"test_ratio": 0.10377358490566038
|
| 590 |
+
},
|
| 591 |
+
"WEBSITE": {
|
| 592 |
+
"original": 1478,
|
| 593 |
+
"train": 1182,
|
| 594 |
+
"validation": 148,
|
| 595 |
+
"test": 148,
|
| 596 |
+
"train_ratio": 0.7997293640054127,
|
| 597 |
+
"validation_ratio": 0.10013531799729364,
|
| 598 |
+
"test_ratio": 0.10013531799729364
|
| 599 |
+
}
|
| 600 |
+
},
|
| 601 |
+
"evaluation_category_counts": {
|
| 602 |
+
"validation": {
|
| 603 |
+
"seen_sentence_new_entity": 11661,
|
| 604 |
+
"unseen_sentence": 939
|
| 605 |
+
},
|
| 606 |
+
"test": {
|
| 607 |
+
"seen_sentence_new_entity": 11606,
|
| 608 |
+
"unseen_sentence": 994
|
| 609 |
+
}
|
| 610 |
+
},
|
| 611 |
+
"evaluation_category_counts_by_type": {
|
| 612 |
+
"validation": {
|
| 613 |
+
"CARDINAL": {
|
| 614 |
+
"unseen_sentence": 49,
|
| 615 |
+
"seen_sentence_new_entity": 324
|
| 616 |
+
},
|
| 617 |
+
"CURR": {
|
| 618 |
+
"unseen_sentence": 2,
|
| 619 |
+
"seen_sentence_new_entity": 39
|
| 620 |
+
},
|
| 621 |
+
"DATE": {
|
| 622 |
+
"unseen_sentence": 124,
|
| 623 |
+
"seen_sentence_new_entity": 1852
|
| 624 |
+
},
|
| 625 |
+
"EVENT": {
|
| 626 |
+
"unseen_sentence": 15,
|
| 627 |
+
"seen_sentence_new_entity": 362
|
| 628 |
+
},
|
| 629 |
+
"FAC": {
|
| 630 |
+
"unseen_sentence": 13,
|
| 631 |
+
"seen_sentence_new_entity": 117
|
| 632 |
+
},
|
| 633 |
+
"GPE": {
|
| 634 |
+
"unseen_sentence": 159,
|
| 635 |
+
"seen_sentence_new_entity": 2531
|
| 636 |
+
},
|
| 637 |
+
"LANGUAGE": {
|
| 638 |
+
"unseen_sentence": 3,
|
| 639 |
+
"seen_sentence_new_entity": 30
|
| 640 |
+
},
|
| 641 |
+
"LAW": {
|
| 642 |
+
"unseen_sentence": 7,
|
| 643 |
+
"seen_sentence_new_entity": 83
|
| 644 |
+
},
|
| 645 |
+
"LOC": {
|
| 646 |
+
"unseen_sentence": 17,
|
| 647 |
+
"seen_sentence_new_entity": 222
|
| 648 |
+
},
|
| 649 |
+
"MONEY": {
|
| 650 |
+
"unseen_sentence": 1,
|
| 651 |
+
"seen_sentence_new_entity": 41
|
| 652 |
+
},
|
| 653 |
+
"NORP": {
|
| 654 |
+
"unseen_sentence": 101,
|
| 655 |
+
"seen_sentence_new_entity": 921
|
| 656 |
+
},
|
| 657 |
+
"OCC": {
|
| 658 |
+
"unseen_sentence": 45,
|
| 659 |
+
"seen_sentence_new_entity": 724
|
| 660 |
+
},
|
| 661 |
+
"ORDINAL": {
|
| 662 |
+
"unseen_sentence": 89,
|
| 663 |
+
"seen_sentence_new_entity": 691
|
| 664 |
+
},
|
| 665 |
+
"ORG": {
|
| 666 |
+
"unseen_sentence": 114,
|
| 667 |
+
"seen_sentence_new_entity": 2546
|
| 668 |
+
},
|
| 669 |
+
"PERCENT": {
|
| 670 |
+
"unseen_sentence": 2,
|
| 671 |
+
"seen_sentence_new_entity": 29
|
| 672 |
+
},
|
| 673 |
+
"PERS": {
|
| 674 |
+
"unseen_sentence": 145,
|
| 675 |
+
"seen_sentence_new_entity": 927
|
| 676 |
+
},
|
| 677 |
+
"PRODUCT": {
|
| 678 |
+
"unseen_sentence": 3,
|
| 679 |
+
"seen_sentence_new_entity": 16
|
| 680 |
+
},
|
| 681 |
+
"QUANTITY": {
|
| 682 |
+
"unseen_sentence": 0,
|
| 683 |
+
"seen_sentence_new_entity": 11
|
| 684 |
+
},
|
| 685 |
+
"TIME": {
|
| 686 |
+
"unseen_sentence": 12,
|
| 687 |
+
"seen_sentence_new_entity": 75
|
| 688 |
+
},
|
| 689 |
+
"UNIT": {
|
| 690 |
+
"unseen_sentence": 1,
|
| 691 |
+
"seen_sentence_new_entity": 9
|
| 692 |
+
},
|
| 693 |
+
"WEBSITE": {
|
| 694 |
+
"unseen_sentence": 37,
|
| 695 |
+
"seen_sentence_new_entity": 111
|
| 696 |
+
}
|
| 697 |
+
},
|
| 698 |
+
"test": {
|
| 699 |
+
"CARDINAL": {
|
| 700 |
+
"unseen_sentence": 49,
|
| 701 |
+
"seen_sentence_new_entity": 323
|
| 702 |
+
},
|
| 703 |
+
"CURR": {
|
| 704 |
+
"unseen_sentence": 3,
|
| 705 |
+
"seen_sentence_new_entity": 38
|
| 706 |
+
},
|
| 707 |
+
"DATE": {
|
| 708 |
+
"unseen_sentence": 120,
|
| 709 |
+
"seen_sentence_new_entity": 1857
|
| 710 |
+
},
|
| 711 |
+
"EVENT": {
|
| 712 |
+
"unseen_sentence": 14,
|
| 713 |
+
"seen_sentence_new_entity": 363
|
| 714 |
+
},
|
| 715 |
+
"FAC": {
|
| 716 |
+
"unseen_sentence": 8,
|
| 717 |
+
"seen_sentence_new_entity": 121
|
| 718 |
+
},
|
| 719 |
+
"GPE": {
|
| 720 |
+
"unseen_sentence": 153,
|
| 721 |
+
"seen_sentence_new_entity": 2538
|
| 722 |
+
},
|
| 723 |
+
"LANGUAGE": {
|
| 724 |
+
"unseen_sentence": 8,
|
| 725 |
+
"seen_sentence_new_entity": 25
|
| 726 |
+
},
|
| 727 |
+
"LAW": {
|
| 728 |
+
"unseen_sentence": 8,
|
| 729 |
+
"seen_sentence_new_entity": 83
|
| 730 |
+
},
|
| 731 |
+
"LOC": {
|
| 732 |
+
"unseen_sentence": 15,
|
| 733 |
+
"seen_sentence_new_entity": 224
|
| 734 |
+
},
|
| 735 |
+
"MONEY": {
|
| 736 |
+
"unseen_sentence": 1,
|
| 737 |
+
"seen_sentence_new_entity": 41
|
| 738 |
+
},
|
| 739 |
+
"NORP": {
|
| 740 |
+
"unseen_sentence": 125,
|
| 741 |
+
"seen_sentence_new_entity": 896
|
| 742 |
+
},
|
| 743 |
+
"OCC": {
|
| 744 |
+
"unseen_sentence": 50,
|
| 745 |
+
"seen_sentence_new_entity": 720
|
| 746 |
+
},
|
| 747 |
+
"ORDINAL": {
|
| 748 |
+
"unseen_sentence": 82,
|
| 749 |
+
"seen_sentence_new_entity": 699
|
| 750 |
+
},
|
| 751 |
+
"ORG": {
|
| 752 |
+
"unseen_sentence": 139,
|
| 753 |
+
"seen_sentence_new_entity": 2520
|
| 754 |
+
},
|
| 755 |
+
"PERCENT": {
|
| 756 |
+
"unseen_sentence": 2,
|
| 757 |
+
"seen_sentence_new_entity": 29
|
| 758 |
+
},
|
| 759 |
+
"PERS": {
|
| 760 |
+
"unseen_sentence": 143,
|
| 761 |
+
"seen_sentence_new_entity": 928
|
| 762 |
+
},
|
| 763 |
+
"PRODUCT": {
|
| 764 |
+
"unseen_sentence": 2,
|
| 765 |
+
"seen_sentence_new_entity": 17
|
| 766 |
+
},
|
| 767 |
+
"QUANTITY": {
|
| 768 |
+
"unseen_sentence": 1,
|
| 769 |
+
"seen_sentence_new_entity": 9
|
| 770 |
+
},
|
| 771 |
+
"TIME": {
|
| 772 |
+
"unseen_sentence": 19,
|
| 773 |
+
"seen_sentence_new_entity": 68
|
| 774 |
+
},
|
| 775 |
+
"UNIT": {
|
| 776 |
+
"unseen_sentence": 0,
|
| 777 |
+
"seen_sentence_new_entity": 11
|
| 778 |
+
},
|
| 779 |
+
"WEBSITE": {
|
| 780 |
+
"unseen_sentence": 52,
|
| 781 |
+
"seen_sentence_new_entity": 96
|
| 782 |
+
}
|
| 783 |
+
}
|
| 784 |
+
},
|
| 785 |
+
"validation": {
|
| 786 |
+
"ok": true,
|
| 787 |
+
"errors": []
|
| 788 |
+
}
|
| 789 |
+
}
|
| 790 |
+
}
|
encoding_summary.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"max_length": 512,
|
| 3 |
+
"context_candidates": [
|
| 4 |
+
null,
|
| 5 |
+
500,
|
| 6 |
+
300,
|
| 7 |
+
150,
|
| 8 |
+
80,
|
| 9 |
+
30,
|
| 10 |
+
0
|
| 11 |
+
],
|
| 12 |
+
"marker_tokens": [
|
| 13 |
+
"[ENT]",
|
| 14 |
+
"[/ENT]"
|
| 15 |
+
],
|
| 16 |
+
"marker_token_ids": {
|
| 17 |
+
"[ENT]": 65000,
|
| 18 |
+
"[/ENT]": 65001
|
| 19 |
+
},
|
| 20 |
+
"splits": {
|
| 21 |
+
"train": {
|
| 22 |
+
"rows": 100796,
|
| 23 |
+
"token_length_min": 5,
|
| 24 |
+
"token_length_mean": 53.74587285209731,
|
| 25 |
+
"token_length_median": 31.0,
|
| 26 |
+
"token_length_p95": 174.0,
|
| 27 |
+
"token_length_p99": 393.25000000001455,
|
| 28 |
+
"token_length_max": 512,
|
| 29 |
+
"context_counts": {
|
| 30 |
+
"None": 100590,
|
| 31 |
+
"500": 206
|
| 32 |
+
}
|
| 33 |
+
},
|
| 34 |
+
"validation": {
|
| 35 |
+
"rows": 12600,
|
| 36 |
+
"token_length_min": 5,
|
| 37 |
+
"token_length_mean": 52.443174603174604,
|
| 38 |
+
"token_length_median": 31.0,
|
| 39 |
+
"token_length_p95": 165.0,
|
| 40 |
+
"token_length_p99": 393.0,
|
| 41 |
+
"token_length_max": 512,
|
| 42 |
+
"context_counts": {
|
| 43 |
+
"None": 12570,
|
| 44 |
+
"500": 30
|
| 45 |
+
}
|
| 46 |
+
},
|
| 47 |
+
"test": {
|
| 48 |
+
"rows": 12600,
|
| 49 |
+
"token_length_min": 5,
|
| 50 |
+
"token_length_mean": 53.945238095238096,
|
| 51 |
+
"token_length_median": 31.0,
|
| 52 |
+
"token_length_p95": 178.0,
|
| 53 |
+
"token_length_p99": 409.0,
|
| 54 |
+
"token_length_max": 512,
|
| 55 |
+
"context_counts": {
|
| 56 |
+
"None": 12575,
|
| 57 |
+
"500": 25
|
| 58 |
+
}
|
| 59 |
+
}
|
| 60 |
+
}
|
| 61 |
+
}
|
evaluation_results.json
ADDED
|
@@ -0,0 +1,358 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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ypePredictor",
|
| 6 |
+
"architecture": {
|
| 7 |
+
"architecture": "NeoAraBERTTypePredictor",
|
| 8 |
+
"task": "mention-level 21-class Arabic entity typing",
|
| 9 |
+
"base_model": "U4RASD/NeoAraBERT",
|
| 10 |
+
"input_markers": [
|
| 11 |
+
"[ENT]",
|
| 12 |
+
"[/ENT]"
|
| 13 |
+
],
|
| 14 |
+
"representation": "last hidden state at token position 0 (CLS)",
|
| 15 |
+
"dropout": 0.1,
|
| 16 |
+
"classifier": [
|
| 17 |
+
768,
|
| 18 |
+
21
|
| 19 |
+
],
|
| 20 |
+
"loss": "ordinary unweighted multiclass cross-entropy",
|
| 21 |
+
"num_labels": 21,
|
| 22 |
+
"labels": [
|
| 23 |
+
"GPE",
|
| 24 |
+
"ORG",
|
| 25 |
+
"DATE",
|
| 26 |
+
"PERS",
|
| 27 |
+
"NORP",
|
| 28 |
+
"ORDINAL",
|
| 29 |
+
"OCC",
|
| 30 |
+
"EVENT",
|
| 31 |
+
"CARDINAL",
|
| 32 |
+
"LOC",
|
| 33 |
+
"WEBSITE",
|
| 34 |
+
"FAC",
|
| 35 |
+
"LAW",
|
| 36 |
+
"TIME",
|
| 37 |
+
"MONEY",
|
| 38 |
+
"CURR",
|
| 39 |
+
"LANGUAGE",
|
| 40 |
+
"PERCENT",
|
| 41 |
+
"PRODUCT",
|
| 42 |
+
"QUANTITY",
|
| 43 |
+
"UNIT"
|
| 44 |
+
],
|
| 45 |
+
"tokenizer_size": 65002,
|
| 46 |
+
"hidden_size": 768,
|
| 47 |
+
"max_length": 512,
|
| 48 |
+
"context_candidates": [
|
| 49 |
+
null,
|
| 50 |
+
500,
|
| 51 |
+
300,
|
| 52 |
+
150,
|
| 53 |
+
80,
|
| 54 |
+
30,
|
| 55 |
+
0
|
| 56 |
+
]
|
| 57 |
+
},
|
| 58 |
+
"dataset_counts": {
|
| 59 |
+
"train": 100796,
|
| 60 |
+
"validation": 12600,
|
| 61 |
+
"test": 12600
|
| 62 |
+
},
|
| 63 |
+
"validation_results": {
|
| 64 |
+
"overall": {
|
| 65 |
+
"subset": "overall",
|
| 66 |
+
"rows": 12600,
|
| 67 |
+
"types_present": [
|
| 68 |
+
"GPE",
|
| 69 |
+
"ORG",
|
| 70 |
+
"DATE",
|
| 71 |
+
"PERS",
|
| 72 |
+
"NORP",
|
| 73 |
+
"ORDINAL",
|
| 74 |
+
"OCC",
|
| 75 |
+
"EVENT",
|
| 76 |
+
"CARDINAL",
|
| 77 |
+
"LOC",
|
| 78 |
+
"WEBSITE",
|
| 79 |
+
"FAC",
|
| 80 |
+
"LAW",
|
| 81 |
+
"TIME",
|
| 82 |
+
"MONEY",
|
| 83 |
+
"CURR",
|
| 84 |
+
"LANGUAGE",
|
| 85 |
+
"PERCENT",
|
| 86 |
+
"PRODUCT",
|
| 87 |
+
"QUANTITY",
|
| 88 |
+
"UNIT"
|
| 89 |
+
],
|
| 90 |
+
"num_types_present": 21,
|
| 91 |
+
"accuracy": 0.9778571428571429,
|
| 92 |
+
"micro_precision": 0.9778571428571429,
|
| 93 |
+
"micro_recall": 0.9778571428571429,
|
| 94 |
+
"micro_f1": 0.9778571428571429,
|
| 95 |
+
"macro_precision_present_types": 0.9725024753902682,
|
| 96 |
+
"macro_recall_present_types": 0.9475659044801065,
|
| 97 |
+
"macro_f1_present_types": 0.9587281193044483,
|
| 98 |
+
"macro_precision_all_21": 0.9725024753902682,
|
| 99 |
+
"macro_recall_all_21": 0.9475659044801065,
|
| 100 |
+
"macro_f1_all_21": 0.9587281193044483,
|
| 101 |
+
"weighted_precision": 0.977879248064854,
|
| 102 |
+
"weighted_recall": 0.9778571428571429,
|
| 103 |
+
"weighted_f1": 0.9777906938936711,
|
| 104 |
+
"split": "validation",
|
| 105 |
+
"checkpoint": "best",
|
| 106 |
+
"model_repo_id": "U4RASD/TypePredictor",
|
| 107 |
+
"generated_at_utc": "2026-07-12T18:55:47+00:00"
|
| 108 |
+
},
|
| 109 |
+
"unseen_sentence": {
|
| 110 |
+
"subset": "unseen_sentence",
|
| 111 |
+
"rows": 939,
|
| 112 |
+
"types_present": [
|
| 113 |
+
"GPE",
|
| 114 |
+
"ORG",
|
| 115 |
+
"DATE",
|
| 116 |
+
"PERS",
|
| 117 |
+
"NORP",
|
| 118 |
+
"ORDINAL",
|
| 119 |
+
"OCC",
|
| 120 |
+
"EVENT",
|
| 121 |
+
"CARDINAL",
|
| 122 |
+
"LOC",
|
| 123 |
+
"WEBSITE",
|
| 124 |
+
"FAC",
|
| 125 |
+
"LAW",
|
| 126 |
+
"TIME",
|
| 127 |
+
"MONEY",
|
| 128 |
+
"CURR",
|
| 129 |
+
"LANGUAGE",
|
| 130 |
+
"PERCENT",
|
| 131 |
+
"PRODUCT",
|
| 132 |
+
"UNIT"
|
| 133 |
+
],
|
| 134 |
+
"num_types_present": 20,
|
| 135 |
+
"accuracy": 0.9456869009584664,
|
| 136 |
+
"micro_precision": 0.9456869009584664,
|
| 137 |
+
"micro_recall": 0.9456869009584664,
|
| 138 |
+
"micro_f1": 0.9456869009584664,
|
| 139 |
+
"macro_precision_present_types": 0.9465091355300324,
|
| 140 |
+
"macro_recall_present_types": 0.8850947519406029,
|
| 141 |
+
"macro_f1_present_types": 0.9088413774156396,
|
| 142 |
+
"macro_precision_all_21": 0.9014372719333641,
|
| 143 |
+
"macro_recall_all_21": 0.8429473828005742,
|
| 144 |
+
"macro_f1_all_21": 0.8655632165863235,
|
| 145 |
+
"weighted_precision": 0.9458822212425712,
|
| 146 |
+
"weighted_recall": 0.9456869009584664,
|
| 147 |
+
"weighted_f1": 0.945010776949412,
|
| 148 |
+
"split": "validation",
|
| 149 |
+
"checkpoint": "best",
|
| 150 |
+
"model_repo_id": "U4RASD/TypePredictor",
|
| 151 |
+
"generated_at_utc": "2026-07-12T18:55:47+00:00"
|
| 152 |
+
},
|
| 153 |
+
"seen_sentence_new_entity": {
|
| 154 |
+
"subset": "seen_sentence_new_entity",
|
| 155 |
+
"rows": 11661,
|
| 156 |
+
"types_present": [
|
| 157 |
+
"GPE",
|
| 158 |
+
"ORG",
|
| 159 |
+
"DATE",
|
| 160 |
+
"PERS",
|
| 161 |
+
"NORP",
|
| 162 |
+
"ORDINAL",
|
| 163 |
+
"OCC",
|
| 164 |
+
"EVENT",
|
| 165 |
+
"CARDINAL",
|
| 166 |
+
"LOC",
|
| 167 |
+
"WEBSITE",
|
| 168 |
+
"FAC",
|
| 169 |
+
"LAW",
|
| 170 |
+
"TIME",
|
| 171 |
+
"MONEY",
|
| 172 |
+
"CURR",
|
| 173 |
+
"LANGUAGE",
|
| 174 |
+
"PERCENT",
|
| 175 |
+
"PRODUCT",
|
| 176 |
+
"QUANTITY",
|
| 177 |
+
"UNIT"
|
| 178 |
+
],
|
| 179 |
+
"num_types_present": 21,
|
| 180 |
+
"accuracy": 0.9804476459994854,
|
| 181 |
+
"micro_precision": 0.9804476459994854,
|
| 182 |
+
"micro_recall": 0.9804476459994854,
|
| 183 |
+
"micro_f1": 0.9804476459994854,
|
| 184 |
+
"macro_precision_present_types": 0.9751134735007793,
|
| 185 |
+
"macro_recall_present_types": 0.9537701979295099,
|
| 186 |
+
"macro_f1_present_types": 0.963262123278673,
|
| 187 |
+
"macro_precision_all_21": 0.9751134735007793,
|
| 188 |
+
"macro_recall_all_21": 0.9537701979295099,
|
| 189 |
+
"macro_f1_all_21": 0.963262123278673,
|
| 190 |
+
"weighted_precision": 0.980497781530163,
|
| 191 |
+
"weighted_recall": 0.9804476459994854,
|
| 192 |
+
"weighted_f1": 0.9804033222521132,
|
| 193 |
+
"split": "validation",
|
| 194 |
+
"checkpoint": "best",
|
| 195 |
+
"model_repo_id": "U4RASD/TypePredictor",
|
| 196 |
+
"generated_at_utc": "2026-07-12T18:55:47+00:00"
|
| 197 |
+
}
|
| 198 |
+
},
|
| 199 |
+
"test_results": {
|
| 200 |
+
"overall": {
|
| 201 |
+
"subset": "overall",
|
| 202 |
+
"rows": 12600,
|
| 203 |
+
"types_present": [
|
| 204 |
+
"GPE",
|
| 205 |
+
"ORG",
|
| 206 |
+
"DATE",
|
| 207 |
+
"PERS",
|
| 208 |
+
"NORP",
|
| 209 |
+
"ORDINAL",
|
| 210 |
+
"OCC",
|
| 211 |
+
"EVENT",
|
| 212 |
+
"CARDINAL",
|
| 213 |
+
"LOC",
|
| 214 |
+
"WEBSITE",
|
| 215 |
+
"FAC",
|
| 216 |
+
"LAW",
|
| 217 |
+
"TIME",
|
| 218 |
+
"MONEY",
|
| 219 |
+
"CURR",
|
| 220 |
+
"LANGUAGE",
|
| 221 |
+
"PERCENT",
|
| 222 |
+
"PRODUCT",
|
| 223 |
+
"QUANTITY",
|
| 224 |
+
"UNIT"
|
| 225 |
+
],
|
| 226 |
+
"num_types_present": 21,
|
| 227 |
+
"accuracy": 0.9793650793650793,
|
| 228 |
+
"micro_precision": 0.9793650793650793,
|
| 229 |
+
"micro_recall": 0.9793650793650793,
|
| 230 |
+
"micro_f1": 0.9793650793650793,
|
| 231 |
+
"macro_precision_present_types": 0.9672581856551346,
|
| 232 |
+
"macro_recall_present_types": 0.9534679938651157,
|
| 233 |
+
"macro_f1_present_types": 0.9599200012897606,
|
| 234 |
+
"macro_precision_all_21": 0.9672581856551346,
|
| 235 |
+
"macro_recall_all_21": 0.9534679938651157,
|
| 236 |
+
"macro_f1_all_21": 0.9599200012897606,
|
| 237 |
+
"weighted_precision": 0.9793254669511197,
|
| 238 |
+
"weighted_recall": 0.9793650793650793,
|
| 239 |
+
"weighted_f1": 0.9792974524068463,
|
| 240 |
+
"split": "test",
|
| 241 |
+
"checkpoint": "best",
|
| 242 |
+
"model_repo_id": "U4RASD/TypePredictor",
|
| 243 |
+
"generated_at_utc": "2026-07-12T18:56:34+00:00"
|
| 244 |
+
},
|
| 245 |
+
"unseen_sentence": {
|
| 246 |
+
"subset": "unseen_sentence",
|
| 247 |
+
"rows": 994,
|
| 248 |
+
"types_present": [
|
| 249 |
+
"GPE",
|
| 250 |
+
"ORG",
|
| 251 |
+
"DATE",
|
| 252 |
+
"PERS",
|
| 253 |
+
"NORP",
|
| 254 |
+
"ORDINAL",
|
| 255 |
+
"OCC",
|
| 256 |
+
"EVENT",
|
| 257 |
+
"CARDINAL",
|
| 258 |
+
"LOC",
|
| 259 |
+
"WEBSITE",
|
| 260 |
+
"FAC",
|
| 261 |
+
"LAW",
|
| 262 |
+
"TIME",
|
| 263 |
+
"MONEY",
|
| 264 |
+
"CURR",
|
| 265 |
+
"LANGUAGE",
|
| 266 |
+
"PERCENT",
|
| 267 |
+
"PRODUCT",
|
| 268 |
+
"QUANTITY"
|
| 269 |
+
],
|
| 270 |
+
"num_types_present": 20,
|
| 271 |
+
"accuracy": 0.9627766599597586,
|
| 272 |
+
"micro_precision": 0.9627766599597586,
|
| 273 |
+
"micro_recall": 0.9627766599597586,
|
| 274 |
+
"micro_f1": 0.9627766599597586,
|
| 275 |
+
"macro_precision_present_types": 0.9052965403310622,
|
| 276 |
+
"macro_recall_present_types": 0.886274373082116,
|
| 277 |
+
"macro_f1_present_types": 0.8931735856196752,
|
| 278 |
+
"macro_precision_all_21": 0.8621871812676783,
|
| 279 |
+
"macro_recall_all_21": 0.8440708315067772,
|
| 280 |
+
"macro_f1_all_21": 0.8506415101139764,
|
| 281 |
+
"weighted_precision": 0.9615439764829642,
|
| 282 |
+
"weighted_recall": 0.9627766599597586,
|
| 283 |
+
"weighted_f1": 0.9617803672434098,
|
| 284 |
+
"split": "test",
|
| 285 |
+
"checkpoint": "best",
|
| 286 |
+
"model_repo_id": "U4RASD/TypePredictor",
|
| 287 |
+
"generated_at_utc": "2026-07-12T18:56:34+00:00"
|
| 288 |
+
},
|
| 289 |
+
"seen_sentence_new_entity": {
|
| 290 |
+
"subset": "seen_sentence_new_entity",
|
| 291 |
+
"rows": 11606,
|
| 292 |
+
"types_present": [
|
| 293 |
+
"GPE",
|
| 294 |
+
"ORG",
|
| 295 |
+
"DATE",
|
| 296 |
+
"PERS",
|
| 297 |
+
"NORP",
|
| 298 |
+
"ORDINAL",
|
| 299 |
+
"OCC",
|
| 300 |
+
"EVENT",
|
| 301 |
+
"CARDINAL",
|
| 302 |
+
"LOC",
|
| 303 |
+
"WEBSITE",
|
| 304 |
+
"FAC",
|
| 305 |
+
"LAW",
|
| 306 |
+
"TIME",
|
| 307 |
+
"MONEY",
|
| 308 |
+
"CURR",
|
| 309 |
+
"LANGUAGE",
|
| 310 |
+
"PERCENT",
|
| 311 |
+
"PRODUCT",
|
| 312 |
+
"QUANTITY",
|
| 313 |
+
"UNIT"
|
| 314 |
+
],
|
| 315 |
+
"num_types_present": 21,
|
| 316 |
+
"accuracy": 0.9807858004480441,
|
| 317 |
+
"micro_precision": 0.9807858004480441,
|
| 318 |
+
"micro_recall": 0.9807858004480441,
|
| 319 |
+
"micro_f1": 0.9807858004480441,
|
| 320 |
+
"macro_precision_present_types": 0.970282742754196,
|
| 321 |
+
"macro_recall_present_types": 0.9589517514121707,
|
| 322 |
+
"macro_f1_present_types": 0.9641131075953279,
|
| 323 |
+
"macro_precision_all_21": 0.970282742754196,
|
| 324 |
+
"macro_recall_all_21": 0.9589517514121707,
|
| 325 |
+
"macro_f1_all_21": 0.9641131075953279,
|
| 326 |
+
"weighted_precision": 0.9807493542827415,
|
| 327 |
+
"weighted_recall": 0.9807858004480441,
|
| 328 |
+
"weighted_f1": 0.9807123412635281,
|
| 329 |
+
"split": "test",
|
| 330 |
+
"checkpoint": "best",
|
| 331 |
+
"model_repo_id": "U4RASD/TypePredictor",
|
| 332 |
+
"generated_at_utc": "2026-07-12T18:56:34+00:00"
|
| 333 |
+
}
|
| 334 |
+
},
|
| 335 |
+
"checkpoint_summary": {
|
| 336 |
+
"best_checkpoint_source": "outputs/TypePredictor/checkpoints/checkpoint-25000",
|
| 337 |
+
"best_checkpoint_preserved": "outputs/TypePredictor/best_checkpoint",
|
| 338 |
+
"best_step": 25000,
|
| 339 |
+
"best_epoch": 3.9682923925552602,
|
| 340 |
+
"best_validation_macro_f1": 0.9587281193044483,
|
| 341 |
+
"latest_checkpoint_source": "outputs/TypePredictor/checkpoints/checkpoint-25196",
|
| 342 |
+
"latest_checkpoint_preserved": "outputs/TypePredictor/latest_checkpoint",
|
| 343 |
+
"latest_step": 25196,
|
| 344 |
+
"latest_epoch": 3.9994047382832654,
|
| 345 |
+
"best_and_latest_same_source": false,
|
| 346 |
+
"root_released_model": "best checkpoint"
|
| 347 |
+
},
|
| 348 |
+
"training_wall_seconds": 12262.467122793198,
|
| 349 |
+
"train_metrics": {
|
| 350 |
+
"train_runtime": 12261.7153,
|
| 351 |
+
"train_samples_per_second": 32.882,
|
| 352 |
+
"train_steps_per_second": 2.055,
|
| 353 |
+
"total_flos": 0.0,
|
| 354 |
+
"train_loss": 0.19069333035238045,
|
| 355 |
+
"epoch": 3.9994047382832654
|
| 356 |
+
},
|
| 357 |
+
"trainer_log_history_entries": 554
|
| 358 |
+
}
|
id2label.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"0": "GPE",
|
| 3 |
+
"1": "ORG",
|
| 4 |
+
"2": "DATE",
|
| 5 |
+
"3": "PERS",
|
| 6 |
+
"4": "NORP",
|
| 7 |
+
"5": "ORDINAL",
|
| 8 |
+
"6": "OCC",
|
| 9 |
+
"7": "EVENT",
|
| 10 |
+
"8": "CARDINAL",
|
| 11 |
+
"9": "LOC",
|
| 12 |
+
"10": "WEBSITE",
|
| 13 |
+
"11": "FAC",
|
| 14 |
+
"12": "LAW",
|
| 15 |
+
"13": "TIME",
|
| 16 |
+
"14": "MONEY",
|
| 17 |
+
"15": "CURR",
|
| 18 |
+
"16": "LANGUAGE",
|
| 19 |
+
"17": "PERCENT",
|
| 20 |
+
"18": "PRODUCT",
|
| 21 |
+
"19": "QUANTITY",
|
| 22 |
+
"20": "UNIT"
|
| 23 |
+
}
|
inference.py
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
"""Safe inference example for U4RASD/TypePredictor."""
|
| 4 |
+
|
| 5 |
+
import argparse
|
| 6 |
+
import json
|
| 7 |
+
import torch
|
| 8 |
+
from modeling_type_predictor import NeoAraBERTTypePredictor
|
| 9 |
+
|
| 10 |
+
OPEN_MARKER = "[ENT]"
|
| 11 |
+
CLOSE_MARKER = "[/ENT]"
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
def mark_entity(sentence: str, start_char: int, end_char: int) -> str:
|
| 15 |
+
entity = sentence[start_char:end_char]
|
| 16 |
+
return sentence[:start_char] + " [ENT] " + entity + " [/ENT] " + sentence[end_char:]
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
def windowed_marked_text(sentence: str, start_char: int, end_char: int, context_chars):
|
| 20 |
+
if context_chars is None:
|
| 21 |
+
return mark_entity(sentence, start_char, end_char)
|
| 22 |
+
left = max(0, start_char - int(context_chars))
|
| 23 |
+
right = min(len(sentence), end_char + int(context_chars))
|
| 24 |
+
window = sentence[left:right]
|
| 25 |
+
return mark_entity(window, start_char - left, end_char - left)
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
def encode_safely(tokenizer, config, sentence: str, start_char: int, end_char: int):
|
| 29 |
+
if not (0 <= start_char < end_char <= len(sentence)):
|
| 30 |
+
raise ValueError("Invalid character span.")
|
| 31 |
+
open_id = tokenizer.convert_tokens_to_ids(OPEN_MARKER)
|
| 32 |
+
close_id = tokenizer.convert_tokens_to_ids(CLOSE_MARKER)
|
| 33 |
+
candidates = config.get("context_candidates", [None, 500, 300, 150, 80, 30, 0])
|
| 34 |
+
for context in candidates:
|
| 35 |
+
text = windowed_marked_text(sentence, start_char, end_char, context)
|
| 36 |
+
batch = tokenizer(
|
| 37 |
+
text,
|
| 38 |
+
return_tensors="pt",
|
| 39 |
+
truncation=True,
|
| 40 |
+
max_length=int(config.get("max_length", 512)),
|
| 41 |
+
)
|
| 42 |
+
ids = batch["input_ids"][0].tolist()
|
| 43 |
+
if ids.count(open_id) == 1 and ids.count(close_id) == 1 and ids.index(open_id) < ids.index(close_id):
|
| 44 |
+
return batch, text, context
|
| 45 |
+
raise RuntimeError("Both entity markers could not be preserved after entity-centered truncation.")
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
def main():
|
| 49 |
+
parser = argparse.ArgumentParser()
|
| 50 |
+
parser.add_argument("--model", default="U4RASD/TypePredictor")
|
| 51 |
+
parser.add_argument("--sentence", required=True)
|
| 52 |
+
parser.add_argument("--start-char", type=int, required=True)
|
| 53 |
+
parser.add_argument("--end-char", type=int, required=True)
|
| 54 |
+
args = parser.parse_args()
|
| 55 |
+
|
| 56 |
+
model, tokenizer, config = NeoAraBERTTypePredictor.from_pretrained(args.model)
|
| 57 |
+
model.eval()
|
| 58 |
+
batch, marked_text, context = encode_safely(
|
| 59 |
+
tokenizer, config, args.sentence, args.start_char, args.end_char
|
| 60 |
+
)
|
| 61 |
+
with torch.no_grad():
|
| 62 |
+
logits = model(**batch)["logits"]
|
| 63 |
+
probabilities = torch.softmax(logits, dim=-1)[0]
|
| 64 |
+
index = int(probabilities.argmax())
|
| 65 |
+
print(json.dumps({
|
| 66 |
+
"entity": args.sentence[args.start_char:args.end_char],
|
| 67 |
+
"predicted_type": config["labels"][index],
|
| 68 |
+
"confidence": float(probabilities[index]),
|
| 69 |
+
"context_chars_used": context,
|
| 70 |
+
"marked_text": marked_text,
|
| 71 |
+
}, ensure_ascii=False, indent=2))
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
if __name__ == "__main__":
|
| 75 |
+
main()
|
label2id.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"GPE": 0,
|
| 3 |
+
"ORG": 1,
|
| 4 |
+
"DATE": 2,
|
| 5 |
+
"PERS": 3,
|
| 6 |
+
"NORP": 4,
|
| 7 |
+
"ORDINAL": 5,
|
| 8 |
+
"OCC": 6,
|
| 9 |
+
"EVENT": 7,
|
| 10 |
+
"CARDINAL": 8,
|
| 11 |
+
"LOC": 9,
|
| 12 |
+
"WEBSITE": 10,
|
| 13 |
+
"FAC": 11,
|
| 14 |
+
"LAW": 12,
|
| 15 |
+
"TIME": 13,
|
| 16 |
+
"MONEY": 14,
|
| 17 |
+
"CURR": 15,
|
| 18 |
+
"LANGUAGE": 16,
|
| 19 |
+
"PERCENT": 17,
|
| 20 |
+
"PRODUCT": 18,
|
| 21 |
+
"QUANTITY": 19,
|
| 22 |
+
"UNIT": 20
|
| 23 |
+
}
|
metrics/test_overall.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"subset": "overall",
|
| 3 |
+
"rows": 12600,
|
| 4 |
+
"types_present": [
|
| 5 |
+
"GPE",
|
| 6 |
+
"ORG",
|
| 7 |
+
"DATE",
|
| 8 |
+
"PERS",
|
| 9 |
+
"NORP",
|
| 10 |
+
"ORDINAL",
|
| 11 |
+
"OCC",
|
| 12 |
+
"EVENT",
|
| 13 |
+
"CARDINAL",
|
| 14 |
+
"LOC",
|
| 15 |
+
"WEBSITE",
|
| 16 |
+
"FAC",
|
| 17 |
+
"LAW",
|
| 18 |
+
"TIME",
|
| 19 |
+
"MONEY",
|
| 20 |
+
"CURR",
|
| 21 |
+
"LANGUAGE",
|
| 22 |
+
"PERCENT",
|
| 23 |
+
"PRODUCT",
|
| 24 |
+
"QUANTITY",
|
| 25 |
+
"UNIT"
|
| 26 |
+
],
|
| 27 |
+
"num_types_present": 21,
|
| 28 |
+
"accuracy": 0.9793650793650793,
|
| 29 |
+
"micro_precision": 0.9793650793650793,
|
| 30 |
+
"micro_recall": 0.9793650793650793,
|
| 31 |
+
"micro_f1": 0.9793650793650793,
|
| 32 |
+
"macro_precision_present_types": 0.9672581856551346,
|
| 33 |
+
"macro_recall_present_types": 0.9534679938651157,
|
| 34 |
+
"macro_f1_present_types": 0.9599200012897606,
|
| 35 |
+
"macro_precision_all_21": 0.9672581856551346,
|
| 36 |
+
"macro_recall_all_21": 0.9534679938651157,
|
| 37 |
+
"macro_f1_all_21": 0.9599200012897606,
|
| 38 |
+
"weighted_precision": 0.9793254669511197,
|
| 39 |
+
"weighted_recall": 0.9793650793650793,
|
| 40 |
+
"weighted_f1": 0.9792974524068463,
|
| 41 |
+
"split": "test",
|
| 42 |
+
"checkpoint": "best",
|
| 43 |
+
"model_repo_id": "U4RASD/TypePredictor",
|
| 44 |
+
"generated_at_utc": "2026-07-12T18:56:34+00:00"
|
| 45 |
+
}
|
metrics/test_overall_per_class.csv
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
,precision,recall,f1-score,support
|
| 2 |
+
GPE,0.9738970588235294,0.9843924191750278,0.9791166143041952,2691.0
|
| 3 |
+
ORG,0.9807692307692307,0.9781872884543061,0.9794765580869893,2659.0
|
| 4 |
+
DATE,0.9904378459989934,0.9954476479514416,0.992936427850656,1977.0
|
| 5 |
+
PERS,0.9795348837209302,0.9831932773109243,0.9813606710158435,1071.0
|
| 6 |
+
NORP,0.9765395894428153,0.9784524975514202,0.9774951076320939,1021.0
|
| 7 |
+
ORDINAL,0.9820971867007673,0.9833546734955185,0.982725527831094,781.0
|
| 8 |
+
OCC,0.9870466321243523,0.9896103896103896,0.9883268482490273,770.0
|
| 9 |
+
EVENT,0.9864130434782609,0.9628647214854111,0.974496644295302,377.0
|
| 10 |
+
CARDINAL,0.9779005524861878,0.9516129032258065,0.9645776566757494,372.0
|
| 11 |
+
LOC,0.9695652173913043,0.9330543933054394,0.9509594882729211,239.0
|
| 12 |
+
WEBSITE,0.9668874172185431,0.9864864864864865,0.9765886287625418,148.0
|
| 13 |
+
FAC,0.928,0.8992248062015504,0.9133858267716536,129.0
|
| 14 |
+
LAW,1.0,1.0,1.0,91.0
|
| 15 |
+
TIME,0.9156626506024096,0.8735632183908046,0.8941176470588236,87.0
|
| 16 |
+
MONEY,0.9736842105263158,0.8809523809523809,0.925,42.0
|
| 17 |
+
CURR,0.975609756097561,0.975609756097561,0.975609756097561,41.0
|
| 18 |
+
LANGUAGE,0.875,0.8484848484848485,0.8615384615384616,33.0
|
| 19 |
+
PERCENT,0.9642857142857143,0.8709677419354839,0.9152542372881356,31.0
|
| 20 |
+
PRODUCT,1.0,0.9473684210526315,0.972972972972973,19.0
|
| 21 |
+
QUANTITY,0.9090909090909091,1.0,0.9523809523809523,10.0
|
| 22 |
+
UNIT,1.0,1.0,1.0,11.0
|
| 23 |
+
accuracy,0.9793650793650793,0.9793650793650793,0.9793650793650793,0.9793650793650793
|
| 24 |
+
macro avg,0.9672581856551346,0.9534679938651157,0.9599200012897606,12600.0
|
| 25 |
+
weighted avg,0.9793254669511197,0.9793650793650793,0.9792974524068463,12600.0
|
metrics/test_overall_per_class.json
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"GPE": {
|
| 3 |
+
"precision": 0.9738970588235294,
|
| 4 |
+
"recall": 0.9843924191750278,
|
| 5 |
+
"f1-score": 0.9791166143041952,
|
| 6 |
+
"support": 2691.0
|
| 7 |
+
},
|
| 8 |
+
"ORG": {
|
| 9 |
+
"precision": 0.9807692307692307,
|
| 10 |
+
"recall": 0.9781872884543061,
|
| 11 |
+
"f1-score": 0.9794765580869893,
|
| 12 |
+
"support": 2659.0
|
| 13 |
+
},
|
| 14 |
+
"DATE": {
|
| 15 |
+
"precision": 0.9904378459989934,
|
| 16 |
+
"recall": 0.9954476479514416,
|
| 17 |
+
"f1-score": 0.992936427850656,
|
| 18 |
+
"support": 1977.0
|
| 19 |
+
},
|
| 20 |
+
"PERS": {
|
| 21 |
+
"precision": 0.9795348837209302,
|
| 22 |
+
"recall": 0.9831932773109243,
|
| 23 |
+
"f1-score": 0.9813606710158435,
|
| 24 |
+
"support": 1071.0
|
| 25 |
+
},
|
| 26 |
+
"NORP": {
|
| 27 |
+
"precision": 0.9765395894428153,
|
| 28 |
+
"recall": 0.9784524975514202,
|
| 29 |
+
"f1-score": 0.9774951076320939,
|
| 30 |
+
"support": 1021.0
|
| 31 |
+
},
|
| 32 |
+
"ORDINAL": {
|
| 33 |
+
"precision": 0.9820971867007673,
|
| 34 |
+
"recall": 0.9833546734955185,
|
| 35 |
+
"f1-score": 0.982725527831094,
|
| 36 |
+
"support": 781.0
|
| 37 |
+
},
|
| 38 |
+
"OCC": {
|
| 39 |
+
"precision": 0.9870466321243523,
|
| 40 |
+
"recall": 0.9896103896103896,
|
| 41 |
+
"f1-score": 0.9883268482490273,
|
| 42 |
+
"support": 770.0
|
| 43 |
+
},
|
| 44 |
+
"EVENT": {
|
| 45 |
+
"precision": 0.9864130434782609,
|
| 46 |
+
"recall": 0.9628647214854111,
|
| 47 |
+
"f1-score": 0.974496644295302,
|
| 48 |
+
"support": 377.0
|
| 49 |
+
},
|
| 50 |
+
"CARDINAL": {
|
| 51 |
+
"precision": 0.9779005524861878,
|
| 52 |
+
"recall": 0.9516129032258065,
|
| 53 |
+
"f1-score": 0.9645776566757494,
|
| 54 |
+
"support": 372.0
|
| 55 |
+
},
|
| 56 |
+
"LOC": {
|
| 57 |
+
"precision": 0.9695652173913043,
|
| 58 |
+
"recall": 0.9330543933054394,
|
| 59 |
+
"f1-score": 0.9509594882729211,
|
| 60 |
+
"support": 239.0
|
| 61 |
+
},
|
| 62 |
+
"WEBSITE": {
|
| 63 |
+
"precision": 0.9668874172185431,
|
| 64 |
+
"recall": 0.9864864864864865,
|
| 65 |
+
"f1-score": 0.9765886287625418,
|
| 66 |
+
"support": 148.0
|
| 67 |
+
},
|
| 68 |
+
"FAC": {
|
| 69 |
+
"precision": 0.928,
|
| 70 |
+
"recall": 0.8992248062015504,
|
| 71 |
+
"f1-score": 0.9133858267716536,
|
| 72 |
+
"support": 129.0
|
| 73 |
+
},
|
| 74 |
+
"LAW": {
|
| 75 |
+
"precision": 1.0,
|
| 76 |
+
"recall": 1.0,
|
| 77 |
+
"f1-score": 1.0,
|
| 78 |
+
"support": 91.0
|
| 79 |
+
},
|
| 80 |
+
"TIME": {
|
| 81 |
+
"precision": 0.9156626506024096,
|
| 82 |
+
"recall": 0.8735632183908046,
|
| 83 |
+
"f1-score": 0.8941176470588236,
|
| 84 |
+
"support": 87.0
|
| 85 |
+
},
|
| 86 |
+
"MONEY": {
|
| 87 |
+
"precision": 0.9736842105263158,
|
| 88 |
+
"recall": 0.8809523809523809,
|
| 89 |
+
"f1-score": 0.925,
|
| 90 |
+
"support": 42.0
|
| 91 |
+
},
|
| 92 |
+
"CURR": {
|
| 93 |
+
"precision": 0.975609756097561,
|
| 94 |
+
"recall": 0.975609756097561,
|
| 95 |
+
"f1-score": 0.975609756097561,
|
| 96 |
+
"support": 41.0
|
| 97 |
+
},
|
| 98 |
+
"LANGUAGE": {
|
| 99 |
+
"precision": 0.875,
|
| 100 |
+
"recall": 0.8484848484848485,
|
| 101 |
+
"f1-score": 0.8615384615384616,
|
| 102 |
+
"support": 33.0
|
| 103 |
+
},
|
| 104 |
+
"PERCENT": {
|
| 105 |
+
"precision": 0.9642857142857143,
|
| 106 |
+
"recall": 0.8709677419354839,
|
| 107 |
+
"f1-score": 0.9152542372881356,
|
| 108 |
+
"support": 31.0
|
| 109 |
+
},
|
| 110 |
+
"PRODUCT": {
|
| 111 |
+
"precision": 1.0,
|
| 112 |
+
"recall": 0.9473684210526315,
|
| 113 |
+
"f1-score": 0.972972972972973,
|
| 114 |
+
"support": 19.0
|
| 115 |
+
},
|
| 116 |
+
"QUANTITY": {
|
| 117 |
+
"precision": 0.9090909090909091,
|
| 118 |
+
"recall": 1.0,
|
| 119 |
+
"f1-score": 0.9523809523809523,
|
| 120 |
+
"support": 10.0
|
| 121 |
+
},
|
| 122 |
+
"UNIT": {
|
| 123 |
+
"precision": 1.0,
|
| 124 |
+
"recall": 1.0,
|
| 125 |
+
"f1-score": 1.0,
|
| 126 |
+
"support": 11.0
|
| 127 |
+
},
|
| 128 |
+
"accuracy": 0.9793650793650793,
|
| 129 |
+
"macro avg": {
|
| 130 |
+
"precision": 0.9672581856551346,
|
| 131 |
+
"recall": 0.9534679938651157,
|
| 132 |
+
"f1-score": 0.9599200012897606,
|
| 133 |
+
"support": 12600.0
|
| 134 |
+
},
|
| 135 |
+
"weighted avg": {
|
| 136 |
+
"precision": 0.9793254669511197,
|
| 137 |
+
"recall": 0.9793650793650793,
|
| 138 |
+
"f1-score": 0.9792974524068463,
|
| 139 |
+
"support": 12600.0
|
| 140 |
+
}
|
| 141 |
+
}
|
metrics/test_seen_sentence_new_entity.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"subset": "seen_sentence_new_entity",
|
| 3 |
+
"rows": 11606,
|
| 4 |
+
"types_present": [
|
| 5 |
+
"GPE",
|
| 6 |
+
"ORG",
|
| 7 |
+
"DATE",
|
| 8 |
+
"PERS",
|
| 9 |
+
"NORP",
|
| 10 |
+
"ORDINAL",
|
| 11 |
+
"OCC",
|
| 12 |
+
"EVENT",
|
| 13 |
+
"CARDINAL",
|
| 14 |
+
"LOC",
|
| 15 |
+
"WEBSITE",
|
| 16 |
+
"FAC",
|
| 17 |
+
"LAW",
|
| 18 |
+
"TIME",
|
| 19 |
+
"MONEY",
|
| 20 |
+
"CURR",
|
| 21 |
+
"LANGUAGE",
|
| 22 |
+
"PERCENT",
|
| 23 |
+
"PRODUCT",
|
| 24 |
+
"QUANTITY",
|
| 25 |
+
"UNIT"
|
| 26 |
+
],
|
| 27 |
+
"num_types_present": 21,
|
| 28 |
+
"accuracy": 0.9807858004480441,
|
| 29 |
+
"micro_precision": 0.9807858004480441,
|
| 30 |
+
"micro_recall": 0.9807858004480441,
|
| 31 |
+
"micro_f1": 0.9807858004480441,
|
| 32 |
+
"macro_precision_present_types": 0.970282742754196,
|
| 33 |
+
"macro_recall_present_types": 0.9589517514121707,
|
| 34 |
+
"macro_f1_present_types": 0.9641131075953279,
|
| 35 |
+
"macro_precision_all_21": 0.970282742754196,
|
| 36 |
+
"macro_recall_all_21": 0.9589517514121707,
|
| 37 |
+
"macro_f1_all_21": 0.9641131075953279,
|
| 38 |
+
"weighted_precision": 0.9807493542827415,
|
| 39 |
+
"weighted_recall": 0.9807858004480441,
|
| 40 |
+
"weighted_f1": 0.9807123412635281,
|
| 41 |
+
"split": "test",
|
| 42 |
+
"checkpoint": "best",
|
| 43 |
+
"model_repo_id": "U4RASD/TypePredictor",
|
| 44 |
+
"generated_at_utc": "2026-07-12T18:56:34+00:00"
|
| 45 |
+
}
|
metrics/test_seen_sentence_new_entity_per_class.csv
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
,precision,recall,f1-score,support
|
| 2 |
+
GPE,0.9750972762645914,0.987391646966115,0.9812059514487079,2538.0
|
| 3 |
+
ORG,0.9816951850378034,0.9789682539682539,0.9803298231670972,2520.0
|
| 4 |
+
DATE,0.9924852388620504,0.9956919763058697,0.9940860215053764,1857.0
|
| 5 |
+
PERS,0.9796355841371919,0.9849137931034483,0.9822675980655562,928.0
|
| 6 |
+
NORP,0.9788182831661093,0.9799107142857143,0.9793641940881205,896.0
|
| 7 |
+
ORDINAL,0.9828080229226361,0.9814020028612304,0.9821045096635648,699.0
|
| 8 |
+
OCC,0.9861878453038674,0.9916666666666667,0.9889196675900277,720.0
|
| 9 |
+
EVENT,0.9859154929577465,0.9641873278236914,0.9749303621169917,363.0
|
| 10 |
+
CARDINAL,0.9777070063694268,0.9504643962848297,0.9638932496075353,323.0
|
| 11 |
+
LOC,0.9720930232558139,0.9330357142857143,0.9521640091116174,224.0
|
| 12 |
+
WEBSITE,0.9791666666666666,0.9791666666666666,0.9791666666666666,96.0
|
| 13 |
+
FAC,0.9310344827586207,0.8925619834710744,0.9113924050632911,121.0
|
| 14 |
+
LAW,1.0,1.0,1.0,83.0
|
| 15 |
+
TIME,0.9206349206349206,0.8529411764705882,0.8854961832061069,68.0
|
| 16 |
+
MONEY,0.9736842105263158,0.9024390243902439,0.9367088607594937,41.0
|
| 17 |
+
CURR,0.9743589743589743,1.0,0.987012987012987,38.0
|
| 18 |
+
LANGUAGE,0.9230769230769231,0.96,0.9411764705882353,25.0
|
| 19 |
+
PERCENT,0.9615384615384616,0.8620689655172413,0.9090909090909091,29.0
|
| 20 |
+
PRODUCT,1.0,0.9411764705882353,0.9696969696969697,17.0
|
| 21 |
+
QUANTITY,0.9,1.0,0.9473684210526315,9.0
|
| 22 |
+
UNIT,1.0,1.0,1.0,11.0
|
| 23 |
+
accuracy,0.9807858004480441,0.9807858004480441,0.9807858004480441,0.9807858004480441
|
| 24 |
+
macro avg,0.970282742754196,0.9589517514121707,0.9641131075953279,11606.0
|
| 25 |
+
weighted avg,0.9807493542827415,0.9807858004480441,0.9807123412635281,11606.0
|
metrics/test_seen_sentence_new_entity_per_class.json
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"GPE": {
|
| 3 |
+
"precision": 0.9750972762645914,
|
| 4 |
+
"recall": 0.987391646966115,
|
| 5 |
+
"f1-score": 0.9812059514487079,
|
| 6 |
+
"support": 2538.0
|
| 7 |
+
},
|
| 8 |
+
"ORG": {
|
| 9 |
+
"precision": 0.9816951850378034,
|
| 10 |
+
"recall": 0.9789682539682539,
|
| 11 |
+
"f1-score": 0.9803298231670972,
|
| 12 |
+
"support": 2520.0
|
| 13 |
+
},
|
| 14 |
+
"DATE": {
|
| 15 |
+
"precision": 0.9924852388620504,
|
| 16 |
+
"recall": 0.9956919763058697,
|
| 17 |
+
"f1-score": 0.9940860215053764,
|
| 18 |
+
"support": 1857.0
|
| 19 |
+
},
|
| 20 |
+
"PERS": {
|
| 21 |
+
"precision": 0.9796355841371919,
|
| 22 |
+
"recall": 0.9849137931034483,
|
| 23 |
+
"f1-score": 0.9822675980655562,
|
| 24 |
+
"support": 928.0
|
| 25 |
+
},
|
| 26 |
+
"NORP": {
|
| 27 |
+
"precision": 0.9788182831661093,
|
| 28 |
+
"recall": 0.9799107142857143,
|
| 29 |
+
"f1-score": 0.9793641940881205,
|
| 30 |
+
"support": 896.0
|
| 31 |
+
},
|
| 32 |
+
"ORDINAL": {
|
| 33 |
+
"precision": 0.9828080229226361,
|
| 34 |
+
"recall": 0.9814020028612304,
|
| 35 |
+
"f1-score": 0.9821045096635648,
|
| 36 |
+
"support": 699.0
|
| 37 |
+
},
|
| 38 |
+
"OCC": {
|
| 39 |
+
"precision": 0.9861878453038674,
|
| 40 |
+
"recall": 0.9916666666666667,
|
| 41 |
+
"f1-score": 0.9889196675900277,
|
| 42 |
+
"support": 720.0
|
| 43 |
+
},
|
| 44 |
+
"EVENT": {
|
| 45 |
+
"precision": 0.9859154929577465,
|
| 46 |
+
"recall": 0.9641873278236914,
|
| 47 |
+
"f1-score": 0.9749303621169917,
|
| 48 |
+
"support": 363.0
|
| 49 |
+
},
|
| 50 |
+
"CARDINAL": {
|
| 51 |
+
"precision": 0.9777070063694268,
|
| 52 |
+
"recall": 0.9504643962848297,
|
| 53 |
+
"f1-score": 0.9638932496075353,
|
| 54 |
+
"support": 323.0
|
| 55 |
+
},
|
| 56 |
+
"LOC": {
|
| 57 |
+
"precision": 0.9720930232558139,
|
| 58 |
+
"recall": 0.9330357142857143,
|
| 59 |
+
"f1-score": 0.9521640091116174,
|
| 60 |
+
"support": 224.0
|
| 61 |
+
},
|
| 62 |
+
"WEBSITE": {
|
| 63 |
+
"precision": 0.9791666666666666,
|
| 64 |
+
"recall": 0.9791666666666666,
|
| 65 |
+
"f1-score": 0.9791666666666666,
|
| 66 |
+
"support": 96.0
|
| 67 |
+
},
|
| 68 |
+
"FAC": {
|
| 69 |
+
"precision": 0.9310344827586207,
|
| 70 |
+
"recall": 0.8925619834710744,
|
| 71 |
+
"f1-score": 0.9113924050632911,
|
| 72 |
+
"support": 121.0
|
| 73 |
+
},
|
| 74 |
+
"LAW": {
|
| 75 |
+
"precision": 1.0,
|
| 76 |
+
"recall": 1.0,
|
| 77 |
+
"f1-score": 1.0,
|
| 78 |
+
"support": 83.0
|
| 79 |
+
},
|
| 80 |
+
"TIME": {
|
| 81 |
+
"precision": 0.9206349206349206,
|
| 82 |
+
"recall": 0.8529411764705882,
|
| 83 |
+
"f1-score": 0.8854961832061069,
|
| 84 |
+
"support": 68.0
|
| 85 |
+
},
|
| 86 |
+
"MONEY": {
|
| 87 |
+
"precision": 0.9736842105263158,
|
| 88 |
+
"recall": 0.9024390243902439,
|
| 89 |
+
"f1-score": 0.9367088607594937,
|
| 90 |
+
"support": 41.0
|
| 91 |
+
},
|
| 92 |
+
"CURR": {
|
| 93 |
+
"precision": 0.9743589743589743,
|
| 94 |
+
"recall": 1.0,
|
| 95 |
+
"f1-score": 0.987012987012987,
|
| 96 |
+
"support": 38.0
|
| 97 |
+
},
|
| 98 |
+
"LANGUAGE": {
|
| 99 |
+
"precision": 0.9230769230769231,
|
| 100 |
+
"recall": 0.96,
|
| 101 |
+
"f1-score": 0.9411764705882353,
|
| 102 |
+
"support": 25.0
|
| 103 |
+
},
|
| 104 |
+
"PERCENT": {
|
| 105 |
+
"precision": 0.9615384615384616,
|
| 106 |
+
"recall": 0.8620689655172413,
|
| 107 |
+
"f1-score": 0.9090909090909091,
|
| 108 |
+
"support": 29.0
|
| 109 |
+
},
|
| 110 |
+
"PRODUCT": {
|
| 111 |
+
"precision": 1.0,
|
| 112 |
+
"recall": 0.9411764705882353,
|
| 113 |
+
"f1-score": 0.9696969696969697,
|
| 114 |
+
"support": 17.0
|
| 115 |
+
},
|
| 116 |
+
"QUANTITY": {
|
| 117 |
+
"precision": 0.9,
|
| 118 |
+
"recall": 1.0,
|
| 119 |
+
"f1-score": 0.9473684210526315,
|
| 120 |
+
"support": 9.0
|
| 121 |
+
},
|
| 122 |
+
"UNIT": {
|
| 123 |
+
"precision": 1.0,
|
| 124 |
+
"recall": 1.0,
|
| 125 |
+
"f1-score": 1.0,
|
| 126 |
+
"support": 11.0
|
| 127 |
+
},
|
| 128 |
+
"accuracy": 0.9807858004480441,
|
| 129 |
+
"macro avg": {
|
| 130 |
+
"precision": 0.970282742754196,
|
| 131 |
+
"recall": 0.9589517514121707,
|
| 132 |
+
"f1-score": 0.9641131075953279,
|
| 133 |
+
"support": 11606.0
|
| 134 |
+
},
|
| 135 |
+
"weighted avg": {
|
| 136 |
+
"precision": 0.9807493542827415,
|
| 137 |
+
"recall": 0.9807858004480441,
|
| 138 |
+
"f1-score": 0.9807123412635281,
|
| 139 |
+
"support": 11606.0
|
| 140 |
+
}
|
| 141 |
+
}
|
metrics/test_unseen_sentence.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"subset": "unseen_sentence",
|
| 3 |
+
"rows": 994,
|
| 4 |
+
"types_present": [
|
| 5 |
+
"GPE",
|
| 6 |
+
"ORG",
|
| 7 |
+
"DATE",
|
| 8 |
+
"PERS",
|
| 9 |
+
"NORP",
|
| 10 |
+
"ORDINAL",
|
| 11 |
+
"OCC",
|
| 12 |
+
"EVENT",
|
| 13 |
+
"CARDINAL",
|
| 14 |
+
"LOC",
|
| 15 |
+
"WEBSITE",
|
| 16 |
+
"FAC",
|
| 17 |
+
"LAW",
|
| 18 |
+
"TIME",
|
| 19 |
+
"MONEY",
|
| 20 |
+
"CURR",
|
| 21 |
+
"LANGUAGE",
|
| 22 |
+
"PERCENT",
|
| 23 |
+
"PRODUCT",
|
| 24 |
+
"QUANTITY"
|
| 25 |
+
],
|
| 26 |
+
"num_types_present": 20,
|
| 27 |
+
"accuracy": 0.9627766599597586,
|
| 28 |
+
"micro_precision": 0.9627766599597586,
|
| 29 |
+
"micro_recall": 0.9627766599597586,
|
| 30 |
+
"micro_f1": 0.9627766599597586,
|
| 31 |
+
"macro_precision_present_types": 0.9052965403310622,
|
| 32 |
+
"macro_recall_present_types": 0.886274373082116,
|
| 33 |
+
"macro_f1_present_types": 0.8931735856196752,
|
| 34 |
+
"macro_precision_all_21": 0.8621871812676783,
|
| 35 |
+
"macro_recall_all_21": 0.8440708315067772,
|
| 36 |
+
"macro_f1_all_21": 0.8506415101139764,
|
| 37 |
+
"weighted_precision": 0.9615439764829642,
|
| 38 |
+
"weighted_recall": 0.9627766599597586,
|
| 39 |
+
"weighted_f1": 0.9617803672434098,
|
| 40 |
+
"split": "test",
|
| 41 |
+
"checkpoint": "best",
|
| 42 |
+
"model_repo_id": "U4RASD/TypePredictor",
|
| 43 |
+
"generated_at_utc": "2026-07-12T18:56:34+00:00"
|
| 44 |
+
}
|
metrics/test_unseen_sentence_per_class.csv
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
,precision,recall,f1-score,support
|
| 2 |
+
GPE,0.9533333333333334,0.934640522875817,0.9438943894389439,153.0
|
| 3 |
+
ORG,0.9640287769784173,0.9640287769784173,0.9640287769784173,139.0
|
| 4 |
+
DATE,0.9596774193548387,0.9916666666666667,0.9754098360655737,120.0
|
| 5 |
+
PERS,0.9788732394366197,0.972027972027972,0.9754385964912281,143.0
|
| 6 |
+
NORP,0.9603174603174603,0.968,0.9641434262948207,125.0
|
| 7 |
+
ORDINAL,0.9761904761904762,1.0,0.9879518072289156,82.0
|
| 8 |
+
OCC,1.0,0.96,0.9795918367346939,50.0
|
| 9 |
+
EVENT,1.0,0.9285714285714286,0.9629629629629629,14.0
|
| 10 |
+
CARDINAL,0.9791666666666666,0.9591836734693877,0.9690721649484536,49.0
|
| 11 |
+
LOC,0.9333333333333333,0.9333333333333333,0.9333333333333333,15.0
|
| 12 |
+
WEBSITE,0.9454545454545454,1.0,0.9719626168224299,52.0
|
| 13 |
+
FAC,0.8888888888888888,1.0,0.9411764705882353,8.0
|
| 14 |
+
LAW,1.0,1.0,1.0,8.0
|
| 15 |
+
TIME,0.9,0.9473684210526315,0.9230769230769231,19.0
|
| 16 |
+
MONEY,0.0,0.0,0.0,1.0
|
| 17 |
+
CURR,1.0,0.6666666666666666,0.8,3.0
|
| 18 |
+
LANGUAGE,0.6666666666666666,0.5,0.5714285714285714,8.0
|
| 19 |
+
PERCENT,1.0,1.0,1.0,2.0
|
| 20 |
+
PRODUCT,1.0,1.0,1.0,2.0
|
| 21 |
+
QUANTITY,1.0,1.0,1.0,1.0
|
| 22 |
+
UNIT,0.0,0.0,0.0,0.0
|
| 23 |
+
accuracy,0.9627766599597586,0.9627766599597586,0.9627766599597586,0.9627766599597586
|
| 24 |
+
macro avg,0.8621871812676783,0.8440708315067772,0.8506415101139764,994.0
|
| 25 |
+
weighted avg,0.9615439764829642,0.9627766599597586,0.9617803672434098,994.0
|
metrics/test_unseen_sentence_per_class.json
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"GPE": {
|
| 3 |
+
"precision": 0.9533333333333334,
|
| 4 |
+
"recall": 0.934640522875817,
|
| 5 |
+
"f1-score": 0.9438943894389439,
|
| 6 |
+
"support": 153.0
|
| 7 |
+
},
|
| 8 |
+
"ORG": {
|
| 9 |
+
"precision": 0.9640287769784173,
|
| 10 |
+
"recall": 0.9640287769784173,
|
| 11 |
+
"f1-score": 0.9640287769784173,
|
| 12 |
+
"support": 139.0
|
| 13 |
+
},
|
| 14 |
+
"DATE": {
|
| 15 |
+
"precision": 0.9596774193548387,
|
| 16 |
+
"recall": 0.9916666666666667,
|
| 17 |
+
"f1-score": 0.9754098360655737,
|
| 18 |
+
"support": 120.0
|
| 19 |
+
},
|
| 20 |
+
"PERS": {
|
| 21 |
+
"precision": 0.9788732394366197,
|
| 22 |
+
"recall": 0.972027972027972,
|
| 23 |
+
"f1-score": 0.9754385964912281,
|
| 24 |
+
"support": 143.0
|
| 25 |
+
},
|
| 26 |
+
"NORP": {
|
| 27 |
+
"precision": 0.9603174603174603,
|
| 28 |
+
"recall": 0.968,
|
| 29 |
+
"f1-score": 0.9641434262948207,
|
| 30 |
+
"support": 125.0
|
| 31 |
+
},
|
| 32 |
+
"ORDINAL": {
|
| 33 |
+
"precision": 0.9761904761904762,
|
| 34 |
+
"recall": 1.0,
|
| 35 |
+
"f1-score": 0.9879518072289156,
|
| 36 |
+
"support": 82.0
|
| 37 |
+
},
|
| 38 |
+
"OCC": {
|
| 39 |
+
"precision": 1.0,
|
| 40 |
+
"recall": 0.96,
|
| 41 |
+
"f1-score": 0.9795918367346939,
|
| 42 |
+
"support": 50.0
|
| 43 |
+
},
|
| 44 |
+
"EVENT": {
|
| 45 |
+
"precision": 1.0,
|
| 46 |
+
"recall": 0.9285714285714286,
|
| 47 |
+
"f1-score": 0.9629629629629629,
|
| 48 |
+
"support": 14.0
|
| 49 |
+
},
|
| 50 |
+
"CARDINAL": {
|
| 51 |
+
"precision": 0.9791666666666666,
|
| 52 |
+
"recall": 0.9591836734693877,
|
| 53 |
+
"f1-score": 0.9690721649484536,
|
| 54 |
+
"support": 49.0
|
| 55 |
+
},
|
| 56 |
+
"LOC": {
|
| 57 |
+
"precision": 0.9333333333333333,
|
| 58 |
+
"recall": 0.9333333333333333,
|
| 59 |
+
"f1-score": 0.9333333333333333,
|
| 60 |
+
"support": 15.0
|
| 61 |
+
},
|
| 62 |
+
"WEBSITE": {
|
| 63 |
+
"precision": 0.9454545454545454,
|
| 64 |
+
"recall": 1.0,
|
| 65 |
+
"f1-score": 0.9719626168224299,
|
| 66 |
+
"support": 52.0
|
| 67 |
+
},
|
| 68 |
+
"FAC": {
|
| 69 |
+
"precision": 0.8888888888888888,
|
| 70 |
+
"recall": 1.0,
|
| 71 |
+
"f1-score": 0.9411764705882353,
|
| 72 |
+
"support": 8.0
|
| 73 |
+
},
|
| 74 |
+
"LAW": {
|
| 75 |
+
"precision": 1.0,
|
| 76 |
+
"recall": 1.0,
|
| 77 |
+
"f1-score": 1.0,
|
| 78 |
+
"support": 8.0
|
| 79 |
+
},
|
| 80 |
+
"TIME": {
|
| 81 |
+
"precision": 0.9,
|
| 82 |
+
"recall": 0.9473684210526315,
|
| 83 |
+
"f1-score": 0.9230769230769231,
|
| 84 |
+
"support": 19.0
|
| 85 |
+
},
|
| 86 |
+
"MONEY": {
|
| 87 |
+
"precision": 0.0,
|
| 88 |
+
"recall": 0.0,
|
| 89 |
+
"f1-score": 0.0,
|
| 90 |
+
"support": 1.0
|
| 91 |
+
},
|
| 92 |
+
"CURR": {
|
| 93 |
+
"precision": 1.0,
|
| 94 |
+
"recall": 0.6666666666666666,
|
| 95 |
+
"f1-score": 0.8,
|
| 96 |
+
"support": 3.0
|
| 97 |
+
},
|
| 98 |
+
"LANGUAGE": {
|
| 99 |
+
"precision": 0.6666666666666666,
|
| 100 |
+
"recall": 0.5,
|
| 101 |
+
"f1-score": 0.5714285714285714,
|
| 102 |
+
"support": 8.0
|
| 103 |
+
},
|
| 104 |
+
"PERCENT": {
|
| 105 |
+
"precision": 1.0,
|
| 106 |
+
"recall": 1.0,
|
| 107 |
+
"f1-score": 1.0,
|
| 108 |
+
"support": 2.0
|
| 109 |
+
},
|
| 110 |
+
"PRODUCT": {
|
| 111 |
+
"precision": 1.0,
|
| 112 |
+
"recall": 1.0,
|
| 113 |
+
"f1-score": 1.0,
|
| 114 |
+
"support": 2.0
|
| 115 |
+
},
|
| 116 |
+
"QUANTITY": {
|
| 117 |
+
"precision": 1.0,
|
| 118 |
+
"recall": 1.0,
|
| 119 |
+
"f1-score": 1.0,
|
| 120 |
+
"support": 1.0
|
| 121 |
+
},
|
| 122 |
+
"UNIT": {
|
| 123 |
+
"precision": 0.0,
|
| 124 |
+
"recall": 0.0,
|
| 125 |
+
"f1-score": 0.0,
|
| 126 |
+
"support": 0.0
|
| 127 |
+
},
|
| 128 |
+
"accuracy": 0.9627766599597586,
|
| 129 |
+
"macro avg": {
|
| 130 |
+
"precision": 0.8621871812676783,
|
| 131 |
+
"recall": 0.8440708315067772,
|
| 132 |
+
"f1-score": 0.8506415101139764,
|
| 133 |
+
"support": 994.0
|
| 134 |
+
},
|
| 135 |
+
"weighted avg": {
|
| 136 |
+
"precision": 0.9615439764829642,
|
| 137 |
+
"recall": 0.9627766599597586,
|
| 138 |
+
"f1-score": 0.9617803672434098,
|
| 139 |
+
"support": 994.0
|
| 140 |
+
}
|
| 141 |
+
}
|
metrics/validation_overall.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"subset": "overall",
|
| 3 |
+
"rows": 12600,
|
| 4 |
+
"types_present": [
|
| 5 |
+
"GPE",
|
| 6 |
+
"ORG",
|
| 7 |
+
"DATE",
|
| 8 |
+
"PERS",
|
| 9 |
+
"NORP",
|
| 10 |
+
"ORDINAL",
|
| 11 |
+
"OCC",
|
| 12 |
+
"EVENT",
|
| 13 |
+
"CARDINAL",
|
| 14 |
+
"LOC",
|
| 15 |
+
"WEBSITE",
|
| 16 |
+
"FAC",
|
| 17 |
+
"LAW",
|
| 18 |
+
"TIME",
|
| 19 |
+
"MONEY",
|
| 20 |
+
"CURR",
|
| 21 |
+
"LANGUAGE",
|
| 22 |
+
"PERCENT",
|
| 23 |
+
"PRODUCT",
|
| 24 |
+
"QUANTITY",
|
| 25 |
+
"UNIT"
|
| 26 |
+
],
|
| 27 |
+
"num_types_present": 21,
|
| 28 |
+
"accuracy": 0.9778571428571429,
|
| 29 |
+
"micro_precision": 0.9778571428571429,
|
| 30 |
+
"micro_recall": 0.9778571428571429,
|
| 31 |
+
"micro_f1": 0.9778571428571429,
|
| 32 |
+
"macro_precision_present_types": 0.9725024753902682,
|
| 33 |
+
"macro_recall_present_types": 0.9475659044801065,
|
| 34 |
+
"macro_f1_present_types": 0.9587281193044483,
|
| 35 |
+
"macro_precision_all_21": 0.9725024753902682,
|
| 36 |
+
"macro_recall_all_21": 0.9475659044801065,
|
| 37 |
+
"macro_f1_all_21": 0.9587281193044483,
|
| 38 |
+
"weighted_precision": 0.977879248064854,
|
| 39 |
+
"weighted_recall": 0.9778571428571429,
|
| 40 |
+
"weighted_f1": 0.9777906938936711,
|
| 41 |
+
"split": "validation",
|
| 42 |
+
"checkpoint": "best",
|
| 43 |
+
"model_repo_id": "U4RASD/TypePredictor",
|
| 44 |
+
"generated_at_utc": "2026-07-12T18:55:47+00:00"
|
| 45 |
+
}
|
metrics/validation_overall_per_class.csv
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
,precision,recall,f1-score,support
|
| 2 |
+
GPE,0.977432482426933,0.9821561338289962,0.9797886148711292,2690.0
|
| 3 |
+
ORG,0.9728321548195012,0.9827067669172932,0.9777445296427903,2660.0
|
| 4 |
+
DATE,0.9934310257705912,0.9949392712550608,0.9941845764854614,1976.0
|
| 5 |
+
PERS,0.9738317757009346,0.9720149253731343,0.972922502334267,1072.0
|
| 6 |
+
NORP,0.9750499001996008,0.9559686888454012,0.9654150197628458,1022.0
|
| 7 |
+
ORDINAL,0.9795134443021767,0.9807692307692307,0.9801409352978859,780.0
|
| 8 |
+
OCC,0.981888745148771,0.9869960988296489,0.9844357976653697,769.0
|
| 9 |
+
EVENT,0.9673024523160763,0.9416445623342176,0.9543010752688172,377.0
|
| 10 |
+
CARDINAL,0.9733333333333334,0.9785522788203753,0.9759358288770054,373.0
|
| 11 |
+
LOC,0.9745762711864406,0.9623430962343096,0.968421052631579,239.0
|
| 12 |
+
WEBSITE,0.9865771812080537,0.9932432432432432,0.98989898989899,148.0
|
| 13 |
+
FAC,0.9166666666666666,0.9307692307692308,0.9236641221374046,130.0
|
| 14 |
+
LAW,1.0,1.0,1.0,90.0
|
| 15 |
+
TIME,0.9743589743589743,0.8735632183908046,0.9212121212121213,87.0
|
| 16 |
+
MONEY,0.9333333333333333,1.0,0.9655172413793104,42.0
|
| 17 |
+
CURR,1.0,0.9512195121951219,0.975,41.0
|
| 18 |
+
LANGUAGE,0.9333333333333333,0.8484848484848485,0.8888888888888888,33.0
|
| 19 |
+
PERCENT,1.0,0.9032258064516129,0.9491525423728814,31.0
|
| 20 |
+
PRODUCT,1.0,0.8421052631578947,0.9142857142857143,19.0
|
| 21 |
+
QUANTITY,1.0,0.8181818181818182,0.9,11.0
|
| 22 |
+
UNIT,0.9090909090909091,1.0,0.9523809523809523,10.0
|
| 23 |
+
accuracy,0.9778571428571429,0.9778571428571429,0.9778571428571429,0.9778571428571429
|
| 24 |
+
macro avg,0.9725024753902682,0.9475659044801065,0.9587281193044483,12600.0
|
| 25 |
+
weighted avg,0.977879248064854,0.9778571428571429,0.9777906938936711,12600.0
|
metrics/validation_overall_per_class.json
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"GPE": {
|
| 3 |
+
"precision": 0.977432482426933,
|
| 4 |
+
"recall": 0.9821561338289962,
|
| 5 |
+
"f1-score": 0.9797886148711292,
|
| 6 |
+
"support": 2690.0
|
| 7 |
+
},
|
| 8 |
+
"ORG": {
|
| 9 |
+
"precision": 0.9728321548195012,
|
| 10 |
+
"recall": 0.9827067669172932,
|
| 11 |
+
"f1-score": 0.9777445296427903,
|
| 12 |
+
"support": 2660.0
|
| 13 |
+
},
|
| 14 |
+
"DATE": {
|
| 15 |
+
"precision": 0.9934310257705912,
|
| 16 |
+
"recall": 0.9949392712550608,
|
| 17 |
+
"f1-score": 0.9941845764854614,
|
| 18 |
+
"support": 1976.0
|
| 19 |
+
},
|
| 20 |
+
"PERS": {
|
| 21 |
+
"precision": 0.9738317757009346,
|
| 22 |
+
"recall": 0.9720149253731343,
|
| 23 |
+
"f1-score": 0.972922502334267,
|
| 24 |
+
"support": 1072.0
|
| 25 |
+
},
|
| 26 |
+
"NORP": {
|
| 27 |
+
"precision": 0.9750499001996008,
|
| 28 |
+
"recall": 0.9559686888454012,
|
| 29 |
+
"f1-score": 0.9654150197628458,
|
| 30 |
+
"support": 1022.0
|
| 31 |
+
},
|
| 32 |
+
"ORDINAL": {
|
| 33 |
+
"precision": 0.9795134443021767,
|
| 34 |
+
"recall": 0.9807692307692307,
|
| 35 |
+
"f1-score": 0.9801409352978859,
|
| 36 |
+
"support": 780.0
|
| 37 |
+
},
|
| 38 |
+
"OCC": {
|
| 39 |
+
"precision": 0.981888745148771,
|
| 40 |
+
"recall": 0.9869960988296489,
|
| 41 |
+
"f1-score": 0.9844357976653697,
|
| 42 |
+
"support": 769.0
|
| 43 |
+
},
|
| 44 |
+
"EVENT": {
|
| 45 |
+
"precision": 0.9673024523160763,
|
| 46 |
+
"recall": 0.9416445623342176,
|
| 47 |
+
"f1-score": 0.9543010752688172,
|
| 48 |
+
"support": 377.0
|
| 49 |
+
},
|
| 50 |
+
"CARDINAL": {
|
| 51 |
+
"precision": 0.9733333333333334,
|
| 52 |
+
"recall": 0.9785522788203753,
|
| 53 |
+
"f1-score": 0.9759358288770054,
|
| 54 |
+
"support": 373.0
|
| 55 |
+
},
|
| 56 |
+
"LOC": {
|
| 57 |
+
"precision": 0.9745762711864406,
|
| 58 |
+
"recall": 0.9623430962343096,
|
| 59 |
+
"f1-score": 0.968421052631579,
|
| 60 |
+
"support": 239.0
|
| 61 |
+
},
|
| 62 |
+
"WEBSITE": {
|
| 63 |
+
"precision": 0.9865771812080537,
|
| 64 |
+
"recall": 0.9932432432432432,
|
| 65 |
+
"f1-score": 0.98989898989899,
|
| 66 |
+
"support": 148.0
|
| 67 |
+
},
|
| 68 |
+
"FAC": {
|
| 69 |
+
"precision": 0.9166666666666666,
|
| 70 |
+
"recall": 0.9307692307692308,
|
| 71 |
+
"f1-score": 0.9236641221374046,
|
| 72 |
+
"support": 130.0
|
| 73 |
+
},
|
| 74 |
+
"LAW": {
|
| 75 |
+
"precision": 1.0,
|
| 76 |
+
"recall": 1.0,
|
| 77 |
+
"f1-score": 1.0,
|
| 78 |
+
"support": 90.0
|
| 79 |
+
},
|
| 80 |
+
"TIME": {
|
| 81 |
+
"precision": 0.9743589743589743,
|
| 82 |
+
"recall": 0.8735632183908046,
|
| 83 |
+
"f1-score": 0.9212121212121213,
|
| 84 |
+
"support": 87.0
|
| 85 |
+
},
|
| 86 |
+
"MONEY": {
|
| 87 |
+
"precision": 0.9333333333333333,
|
| 88 |
+
"recall": 1.0,
|
| 89 |
+
"f1-score": 0.9655172413793104,
|
| 90 |
+
"support": 42.0
|
| 91 |
+
},
|
| 92 |
+
"CURR": {
|
| 93 |
+
"precision": 1.0,
|
| 94 |
+
"recall": 0.9512195121951219,
|
| 95 |
+
"f1-score": 0.975,
|
| 96 |
+
"support": 41.0
|
| 97 |
+
},
|
| 98 |
+
"LANGUAGE": {
|
| 99 |
+
"precision": 0.9333333333333333,
|
| 100 |
+
"recall": 0.8484848484848485,
|
| 101 |
+
"f1-score": 0.8888888888888888,
|
| 102 |
+
"support": 33.0
|
| 103 |
+
},
|
| 104 |
+
"PERCENT": {
|
| 105 |
+
"precision": 1.0,
|
| 106 |
+
"recall": 0.9032258064516129,
|
| 107 |
+
"f1-score": 0.9491525423728814,
|
| 108 |
+
"support": 31.0
|
| 109 |
+
},
|
| 110 |
+
"PRODUCT": {
|
| 111 |
+
"precision": 1.0,
|
| 112 |
+
"recall": 0.8421052631578947,
|
| 113 |
+
"f1-score": 0.9142857142857143,
|
| 114 |
+
"support": 19.0
|
| 115 |
+
},
|
| 116 |
+
"QUANTITY": {
|
| 117 |
+
"precision": 1.0,
|
| 118 |
+
"recall": 0.8181818181818182,
|
| 119 |
+
"f1-score": 0.9,
|
| 120 |
+
"support": 11.0
|
| 121 |
+
},
|
| 122 |
+
"UNIT": {
|
| 123 |
+
"precision": 0.9090909090909091,
|
| 124 |
+
"recall": 1.0,
|
| 125 |
+
"f1-score": 0.9523809523809523,
|
| 126 |
+
"support": 10.0
|
| 127 |
+
},
|
| 128 |
+
"accuracy": 0.9778571428571429,
|
| 129 |
+
"macro avg": {
|
| 130 |
+
"precision": 0.9725024753902682,
|
| 131 |
+
"recall": 0.9475659044801065,
|
| 132 |
+
"f1-score": 0.9587281193044483,
|
| 133 |
+
"support": 12600.0
|
| 134 |
+
},
|
| 135 |
+
"weighted avg": {
|
| 136 |
+
"precision": 0.977879248064854,
|
| 137 |
+
"recall": 0.9778571428571429,
|
| 138 |
+
"f1-score": 0.9777906938936711,
|
| 139 |
+
"support": 12600.0
|
| 140 |
+
}
|
| 141 |
+
}
|
metrics/validation_seen_sentence_new_entity.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"subset": "seen_sentence_new_entity",
|
| 3 |
+
"rows": 11661,
|
| 4 |
+
"types_present": [
|
| 5 |
+
"GPE",
|
| 6 |
+
"ORG",
|
| 7 |
+
"DATE",
|
| 8 |
+
"PERS",
|
| 9 |
+
"NORP",
|
| 10 |
+
"ORDINAL",
|
| 11 |
+
"OCC",
|
| 12 |
+
"EVENT",
|
| 13 |
+
"CARDINAL",
|
| 14 |
+
"LOC",
|
| 15 |
+
"WEBSITE",
|
| 16 |
+
"FAC",
|
| 17 |
+
"LAW",
|
| 18 |
+
"TIME",
|
| 19 |
+
"MONEY",
|
| 20 |
+
"CURR",
|
| 21 |
+
"LANGUAGE",
|
| 22 |
+
"PERCENT",
|
| 23 |
+
"PRODUCT",
|
| 24 |
+
"QUANTITY",
|
| 25 |
+
"UNIT"
|
| 26 |
+
],
|
| 27 |
+
"num_types_present": 21,
|
| 28 |
+
"accuracy": 0.9804476459994854,
|
| 29 |
+
"micro_precision": 0.9804476459994854,
|
| 30 |
+
"micro_recall": 0.9804476459994854,
|
| 31 |
+
"micro_f1": 0.9804476459994854,
|
| 32 |
+
"macro_precision_present_types": 0.9751134735007793,
|
| 33 |
+
"macro_recall_present_types": 0.9537701979295099,
|
| 34 |
+
"macro_f1_present_types": 0.963262123278673,
|
| 35 |
+
"macro_precision_all_21": 0.9751134735007793,
|
| 36 |
+
"macro_recall_all_21": 0.9537701979295099,
|
| 37 |
+
"macro_f1_all_21": 0.963262123278673,
|
| 38 |
+
"weighted_precision": 0.980497781530163,
|
| 39 |
+
"weighted_recall": 0.9804476459994854,
|
| 40 |
+
"weighted_f1": 0.9804033222521132,
|
| 41 |
+
"split": "validation",
|
| 42 |
+
"checkpoint": "best",
|
| 43 |
+
"model_repo_id": "U4RASD/TypePredictor",
|
| 44 |
+
"generated_at_utc": "2026-07-12T18:55:47+00:00"
|
| 45 |
+
}
|
metrics/validation_seen_sentence_new_entity_per_class.csv
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
,precision,recall,f1-score,support
|
| 2 |
+
GPE,0.9795677799607073,0.9849861714737258,0.9822695035460993,2531.0
|
| 3 |
+
ORG,0.9750778816199377,0.983503534956795,0.9792725850606179,2546.0
|
| 4 |
+
DATE,0.9946062567421791,0.9956803455723542,0.9951430113329736,1852.0
|
| 5 |
+
PERS,0.9804347826086957,0.9730312837108953,0.9767190037899296,927.0
|
| 6 |
+
NORP,0.9789356984478935,0.9587404994571118,0.9687328579264948,921.0
|
| 7 |
+
ORDINAL,0.9854862119013063,0.9826338639652678,0.9840579710144928,691.0
|
| 8 |
+
OCC,0.98224043715847,0.9930939226519337,0.9876373626373627,724.0
|
| 9 |
+
EVENT,0.9716713881019831,0.9475138121546961,0.9594405594405594,362.0
|
| 10 |
+
CARDINAL,0.9724770642201835,0.9814814814814815,0.9769585253456221,324.0
|
| 11 |
+
LOC,0.9772727272727273,0.9684684684684685,0.9728506787330317,222.0
|
| 12 |
+
WEBSITE,0.990990990990991,0.990990990990991,0.990990990990991,111.0
|
| 13 |
+
FAC,0.9083333333333333,0.9316239316239316,0.919831223628692,117.0
|
| 14 |
+
LAW,1.0,1.0,1.0,83.0
|
| 15 |
+
TIME,0.9855072463768116,0.9066666666666666,0.9444444444444444,75.0
|
| 16 |
+
MONEY,0.9318181818181818,1.0,0.9647058823529412,41.0
|
| 17 |
+
CURR,1.0,0.9743589743589743,0.987012987012987,39.0
|
| 18 |
+
LANGUAGE,0.9629629629629629,0.8666666666666667,0.9122807017543859,30.0
|
| 19 |
+
PERCENT,1.0,0.896551724137931,0.9454545454545454,29.0
|
| 20 |
+
PRODUCT,1.0,0.875,0.9333333333333333,16.0
|
| 21 |
+
QUANTITY,1.0,0.8181818181818182,0.9,11.0
|
| 22 |
+
UNIT,0.9,1.0,0.9473684210526315,9.0
|
| 23 |
+
accuracy,0.9804476459994854,0.9804476459994854,0.9804476459994854,0.9804476459994854
|
| 24 |
+
macro avg,0.9751134735007793,0.9537701979295099,0.963262123278673,11661.0
|
| 25 |
+
weighted avg,0.980497781530163,0.9804476459994854,0.9804033222521132,11661.0
|
metrics/validation_seen_sentence_new_entity_per_class.json
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"GPE": {
|
| 3 |
+
"precision": 0.9795677799607073,
|
| 4 |
+
"recall": 0.9849861714737258,
|
| 5 |
+
"f1-score": 0.9822695035460993,
|
| 6 |
+
"support": 2531.0
|
| 7 |
+
},
|
| 8 |
+
"ORG": {
|
| 9 |
+
"precision": 0.9750778816199377,
|
| 10 |
+
"recall": 0.983503534956795,
|
| 11 |
+
"f1-score": 0.9792725850606179,
|
| 12 |
+
"support": 2546.0
|
| 13 |
+
},
|
| 14 |
+
"DATE": {
|
| 15 |
+
"precision": 0.9946062567421791,
|
| 16 |
+
"recall": 0.9956803455723542,
|
| 17 |
+
"f1-score": 0.9951430113329736,
|
| 18 |
+
"support": 1852.0
|
| 19 |
+
},
|
| 20 |
+
"PERS": {
|
| 21 |
+
"precision": 0.9804347826086957,
|
| 22 |
+
"recall": 0.9730312837108953,
|
| 23 |
+
"f1-score": 0.9767190037899296,
|
| 24 |
+
"support": 927.0
|
| 25 |
+
},
|
| 26 |
+
"NORP": {
|
| 27 |
+
"precision": 0.9789356984478935,
|
| 28 |
+
"recall": 0.9587404994571118,
|
| 29 |
+
"f1-score": 0.9687328579264948,
|
| 30 |
+
"support": 921.0
|
| 31 |
+
},
|
| 32 |
+
"ORDINAL": {
|
| 33 |
+
"precision": 0.9854862119013063,
|
| 34 |
+
"recall": 0.9826338639652678,
|
| 35 |
+
"f1-score": 0.9840579710144928,
|
| 36 |
+
"support": 691.0
|
| 37 |
+
},
|
| 38 |
+
"OCC": {
|
| 39 |
+
"precision": 0.98224043715847,
|
| 40 |
+
"recall": 0.9930939226519337,
|
| 41 |
+
"f1-score": 0.9876373626373627,
|
| 42 |
+
"support": 724.0
|
| 43 |
+
},
|
| 44 |
+
"EVENT": {
|
| 45 |
+
"precision": 0.9716713881019831,
|
| 46 |
+
"recall": 0.9475138121546961,
|
| 47 |
+
"f1-score": 0.9594405594405594,
|
| 48 |
+
"support": 362.0
|
| 49 |
+
},
|
| 50 |
+
"CARDINAL": {
|
| 51 |
+
"precision": 0.9724770642201835,
|
| 52 |
+
"recall": 0.9814814814814815,
|
| 53 |
+
"f1-score": 0.9769585253456221,
|
| 54 |
+
"support": 324.0
|
| 55 |
+
},
|
| 56 |
+
"LOC": {
|
| 57 |
+
"precision": 0.9772727272727273,
|
| 58 |
+
"recall": 0.9684684684684685,
|
| 59 |
+
"f1-score": 0.9728506787330317,
|
| 60 |
+
"support": 222.0
|
| 61 |
+
},
|
| 62 |
+
"WEBSITE": {
|
| 63 |
+
"precision": 0.990990990990991,
|
| 64 |
+
"recall": 0.990990990990991,
|
| 65 |
+
"f1-score": 0.990990990990991,
|
| 66 |
+
"support": 111.0
|
| 67 |
+
},
|
| 68 |
+
"FAC": {
|
| 69 |
+
"precision": 0.9083333333333333,
|
| 70 |
+
"recall": 0.9316239316239316,
|
| 71 |
+
"f1-score": 0.919831223628692,
|
| 72 |
+
"support": 117.0
|
| 73 |
+
},
|
| 74 |
+
"LAW": {
|
| 75 |
+
"precision": 1.0,
|
| 76 |
+
"recall": 1.0,
|
| 77 |
+
"f1-score": 1.0,
|
| 78 |
+
"support": 83.0
|
| 79 |
+
},
|
| 80 |
+
"TIME": {
|
| 81 |
+
"precision": 0.9855072463768116,
|
| 82 |
+
"recall": 0.9066666666666666,
|
| 83 |
+
"f1-score": 0.9444444444444444,
|
| 84 |
+
"support": 75.0
|
| 85 |
+
},
|
| 86 |
+
"MONEY": {
|
| 87 |
+
"precision": 0.9318181818181818,
|
| 88 |
+
"recall": 1.0,
|
| 89 |
+
"f1-score": 0.9647058823529412,
|
| 90 |
+
"support": 41.0
|
| 91 |
+
},
|
| 92 |
+
"CURR": {
|
| 93 |
+
"precision": 1.0,
|
| 94 |
+
"recall": 0.9743589743589743,
|
| 95 |
+
"f1-score": 0.987012987012987,
|
| 96 |
+
"support": 39.0
|
| 97 |
+
},
|
| 98 |
+
"LANGUAGE": {
|
| 99 |
+
"precision": 0.9629629629629629,
|
| 100 |
+
"recall": 0.8666666666666667,
|
| 101 |
+
"f1-score": 0.9122807017543859,
|
| 102 |
+
"support": 30.0
|
| 103 |
+
},
|
| 104 |
+
"PERCENT": {
|
| 105 |
+
"precision": 1.0,
|
| 106 |
+
"recall": 0.896551724137931,
|
| 107 |
+
"f1-score": 0.9454545454545454,
|
| 108 |
+
"support": 29.0
|
| 109 |
+
},
|
| 110 |
+
"PRODUCT": {
|
| 111 |
+
"precision": 1.0,
|
| 112 |
+
"recall": 0.875,
|
| 113 |
+
"f1-score": 0.9333333333333333,
|
| 114 |
+
"support": 16.0
|
| 115 |
+
},
|
| 116 |
+
"QUANTITY": {
|
| 117 |
+
"precision": 1.0,
|
| 118 |
+
"recall": 0.8181818181818182,
|
| 119 |
+
"f1-score": 0.9,
|
| 120 |
+
"support": 11.0
|
| 121 |
+
},
|
| 122 |
+
"UNIT": {
|
| 123 |
+
"precision": 0.9,
|
| 124 |
+
"recall": 1.0,
|
| 125 |
+
"f1-score": 0.9473684210526315,
|
| 126 |
+
"support": 9.0
|
| 127 |
+
},
|
| 128 |
+
"accuracy": 0.9804476459994854,
|
| 129 |
+
"macro avg": {
|
| 130 |
+
"precision": 0.9751134735007793,
|
| 131 |
+
"recall": 0.9537701979295099,
|
| 132 |
+
"f1-score": 0.963262123278673,
|
| 133 |
+
"support": 11661.0
|
| 134 |
+
},
|
| 135 |
+
"weighted avg": {
|
| 136 |
+
"precision": 0.980497781530163,
|
| 137 |
+
"recall": 0.9804476459994854,
|
| 138 |
+
"f1-score": 0.9804033222521132,
|
| 139 |
+
"support": 11661.0
|
| 140 |
+
}
|
| 141 |
+
}
|
metrics/validation_unseen_sentence.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"subset": "unseen_sentence",
|
| 3 |
+
"rows": 939,
|
| 4 |
+
"types_present": [
|
| 5 |
+
"GPE",
|
| 6 |
+
"ORG",
|
| 7 |
+
"DATE",
|
| 8 |
+
"PERS",
|
| 9 |
+
"NORP",
|
| 10 |
+
"ORDINAL",
|
| 11 |
+
"OCC",
|
| 12 |
+
"EVENT",
|
| 13 |
+
"CARDINAL",
|
| 14 |
+
"LOC",
|
| 15 |
+
"WEBSITE",
|
| 16 |
+
"FAC",
|
| 17 |
+
"LAW",
|
| 18 |
+
"TIME",
|
| 19 |
+
"MONEY",
|
| 20 |
+
"CURR",
|
| 21 |
+
"LANGUAGE",
|
| 22 |
+
"PERCENT",
|
| 23 |
+
"PRODUCT",
|
| 24 |
+
"UNIT"
|
| 25 |
+
],
|
| 26 |
+
"num_types_present": 20,
|
| 27 |
+
"accuracy": 0.9456869009584664,
|
| 28 |
+
"micro_precision": 0.9456869009584664,
|
| 29 |
+
"micro_recall": 0.9456869009584664,
|
| 30 |
+
"micro_f1": 0.9456869009584664,
|
| 31 |
+
"macro_precision_present_types": 0.9465091355300324,
|
| 32 |
+
"macro_recall_present_types": 0.8850947519406029,
|
| 33 |
+
"macro_f1_present_types": 0.9088413774156396,
|
| 34 |
+
"macro_precision_all_21": 0.9014372719333641,
|
| 35 |
+
"macro_recall_all_21": 0.8429473828005742,
|
| 36 |
+
"macro_f1_all_21": 0.8655632165863235,
|
| 37 |
+
"weighted_precision": 0.9458822212425712,
|
| 38 |
+
"weighted_recall": 0.9456869009584664,
|
| 39 |
+
"weighted_f1": 0.945010776949412,
|
| 40 |
+
"split": "validation",
|
| 41 |
+
"checkpoint": "best",
|
| 42 |
+
"model_repo_id": "U4RASD/TypePredictor",
|
| 43 |
+
"generated_at_utc": "2026-07-12T18:55:47+00:00"
|
| 44 |
+
}
|
metrics/validation_unseen_sentence_per_class.csv
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
,precision,recall,f1-score,support
|
| 2 |
+
GPE,0.9430379746835443,0.9371069182389937,0.9400630914826499,159.0
|
| 3 |
+
ORG,0.9243697478991597,0.9649122807017544,0.944206008583691,114.0
|
| 4 |
+
DATE,0.976,0.9838709677419355,0.9799196787148594,124.0
|
| 5 |
+
PERS,0.9333333333333333,0.9655172413793104,0.9491525423728814,145.0
|
| 6 |
+
NORP,0.94,0.9306930693069307,0.9353233830845771,101.0
|
| 7 |
+
ORDINAL,0.9347826086956522,0.9662921348314607,0.9502762430939227,89.0
|
| 8 |
+
OCC,0.975609756097561,0.8888888888888888,0.9302325581395349,45.0
|
| 9 |
+
EVENT,0.8571428571428571,0.8,0.8275862068965517,15.0
|
| 10 |
+
CARDINAL,0.9791666666666666,0.9591836734693877,0.9690721649484536,49.0
|
| 11 |
+
LOC,0.9375,0.8823529411764706,0.9090909090909091,17.0
|
| 12 |
+
WEBSITE,0.9736842105263158,1.0,0.9866666666666667,37.0
|
| 13 |
+
FAC,1.0,0.9230769230769231,0.96,13.0
|
| 14 |
+
LAW,1.0,1.0,1.0,7.0
|
| 15 |
+
TIME,0.8888888888888888,0.6666666666666666,0.7619047619047619,12.0
|
| 16 |
+
MONEY,1.0,1.0,1.0,1.0
|
| 17 |
+
CURR,1.0,0.5,0.6666666666666666,2.0
|
| 18 |
+
LANGUAGE,0.6666666666666666,0.6666666666666666,0.6666666666666666,3.0
|
| 19 |
+
PERCENT,1.0,1.0,1.0,2.0
|
| 20 |
+
PRODUCT,1.0,0.6666666666666666,0.8,3.0
|
| 21 |
+
QUANTITY,0.0,0.0,0.0,0.0
|
| 22 |
+
UNIT,1.0,1.0,1.0,1.0
|
| 23 |
+
accuracy,0.9456869009584664,0.9456869009584664,0.9456869009584664,0.9456869009584664
|
| 24 |
+
macro avg,0.9014372719333641,0.8429473828005742,0.8655632165863235,939.0
|
| 25 |
+
weighted avg,0.9458822212425712,0.9456869009584664,0.945010776949412,939.0
|
metrics/validation_unseen_sentence_per_class.json
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"GPE": {
|
| 3 |
+
"precision": 0.9430379746835443,
|
| 4 |
+
"recall": 0.9371069182389937,
|
| 5 |
+
"f1-score": 0.9400630914826499,
|
| 6 |
+
"support": 159.0
|
| 7 |
+
},
|
| 8 |
+
"ORG": {
|
| 9 |
+
"precision": 0.9243697478991597,
|
| 10 |
+
"recall": 0.9649122807017544,
|
| 11 |
+
"f1-score": 0.944206008583691,
|
| 12 |
+
"support": 114.0
|
| 13 |
+
},
|
| 14 |
+
"DATE": {
|
| 15 |
+
"precision": 0.976,
|
| 16 |
+
"recall": 0.9838709677419355,
|
| 17 |
+
"f1-score": 0.9799196787148594,
|
| 18 |
+
"support": 124.0
|
| 19 |
+
},
|
| 20 |
+
"PERS": {
|
| 21 |
+
"precision": 0.9333333333333333,
|
| 22 |
+
"recall": 0.9655172413793104,
|
| 23 |
+
"f1-score": 0.9491525423728814,
|
| 24 |
+
"support": 145.0
|
| 25 |
+
},
|
| 26 |
+
"NORP": {
|
| 27 |
+
"precision": 0.94,
|
| 28 |
+
"recall": 0.9306930693069307,
|
| 29 |
+
"f1-score": 0.9353233830845771,
|
| 30 |
+
"support": 101.0
|
| 31 |
+
},
|
| 32 |
+
"ORDINAL": {
|
| 33 |
+
"precision": 0.9347826086956522,
|
| 34 |
+
"recall": 0.9662921348314607,
|
| 35 |
+
"f1-score": 0.9502762430939227,
|
| 36 |
+
"support": 89.0
|
| 37 |
+
},
|
| 38 |
+
"OCC": {
|
| 39 |
+
"precision": 0.975609756097561,
|
| 40 |
+
"recall": 0.8888888888888888,
|
| 41 |
+
"f1-score": 0.9302325581395349,
|
| 42 |
+
"support": 45.0
|
| 43 |
+
},
|
| 44 |
+
"EVENT": {
|
| 45 |
+
"precision": 0.8571428571428571,
|
| 46 |
+
"recall": 0.8,
|
| 47 |
+
"f1-score": 0.8275862068965517,
|
| 48 |
+
"support": 15.0
|
| 49 |
+
},
|
| 50 |
+
"CARDINAL": {
|
| 51 |
+
"precision": 0.9791666666666666,
|
| 52 |
+
"recall": 0.9591836734693877,
|
| 53 |
+
"f1-score": 0.9690721649484536,
|
| 54 |
+
"support": 49.0
|
| 55 |
+
},
|
| 56 |
+
"LOC": {
|
| 57 |
+
"precision": 0.9375,
|
| 58 |
+
"recall": 0.8823529411764706,
|
| 59 |
+
"f1-score": 0.9090909090909091,
|
| 60 |
+
"support": 17.0
|
| 61 |
+
},
|
| 62 |
+
"WEBSITE": {
|
| 63 |
+
"precision": 0.9736842105263158,
|
| 64 |
+
"recall": 1.0,
|
| 65 |
+
"f1-score": 0.9866666666666667,
|
| 66 |
+
"support": 37.0
|
| 67 |
+
},
|
| 68 |
+
"FAC": {
|
| 69 |
+
"precision": 1.0,
|
| 70 |
+
"recall": 0.9230769230769231,
|
| 71 |
+
"f1-score": 0.96,
|
| 72 |
+
"support": 13.0
|
| 73 |
+
},
|
| 74 |
+
"LAW": {
|
| 75 |
+
"precision": 1.0,
|
| 76 |
+
"recall": 1.0,
|
| 77 |
+
"f1-score": 1.0,
|
| 78 |
+
"support": 7.0
|
| 79 |
+
},
|
| 80 |
+
"TIME": {
|
| 81 |
+
"precision": 0.8888888888888888,
|
| 82 |
+
"recall": 0.6666666666666666,
|
| 83 |
+
"f1-score": 0.7619047619047619,
|
| 84 |
+
"support": 12.0
|
| 85 |
+
},
|
| 86 |
+
"MONEY": {
|
| 87 |
+
"precision": 1.0,
|
| 88 |
+
"recall": 1.0,
|
| 89 |
+
"f1-score": 1.0,
|
| 90 |
+
"support": 1.0
|
| 91 |
+
},
|
| 92 |
+
"CURR": {
|
| 93 |
+
"precision": 1.0,
|
| 94 |
+
"recall": 0.5,
|
| 95 |
+
"f1-score": 0.6666666666666666,
|
| 96 |
+
"support": 2.0
|
| 97 |
+
},
|
| 98 |
+
"LANGUAGE": {
|
| 99 |
+
"precision": 0.6666666666666666,
|
| 100 |
+
"recall": 0.6666666666666666,
|
| 101 |
+
"f1-score": 0.6666666666666666,
|
| 102 |
+
"support": 3.0
|
| 103 |
+
},
|
| 104 |
+
"PERCENT": {
|
| 105 |
+
"precision": 1.0,
|
| 106 |
+
"recall": 1.0,
|
| 107 |
+
"f1-score": 1.0,
|
| 108 |
+
"support": 2.0
|
| 109 |
+
},
|
| 110 |
+
"PRODUCT": {
|
| 111 |
+
"precision": 1.0,
|
| 112 |
+
"recall": 0.6666666666666666,
|
| 113 |
+
"f1-score": 0.8,
|
| 114 |
+
"support": 3.0
|
| 115 |
+
},
|
| 116 |
+
"QUANTITY": {
|
| 117 |
+
"precision": 0.0,
|
| 118 |
+
"recall": 0.0,
|
| 119 |
+
"f1-score": 0.0,
|
| 120 |
+
"support": 0.0
|
| 121 |
+
},
|
| 122 |
+
"UNIT": {
|
| 123 |
+
"precision": 1.0,
|
| 124 |
+
"recall": 1.0,
|
| 125 |
+
"f1-score": 1.0,
|
| 126 |
+
"support": 1.0
|
| 127 |
+
},
|
| 128 |
+
"accuracy": 0.9456869009584664,
|
| 129 |
+
"macro avg": {
|
| 130 |
+
"precision": 0.9014372719333641,
|
| 131 |
+
"recall": 0.8429473828005742,
|
| 132 |
+
"f1-score": 0.8655632165863235,
|
| 133 |
+
"support": 939.0
|
| 134 |
+
},
|
| 135 |
+
"weighted avg": {
|
| 136 |
+
"precision": 0.9458822212425712,
|
| 137 |
+
"recall": 0.9456869009584664,
|
| 138 |
+
"f1-score": 0.945010776949412,
|
| 139 |
+
"support": 939.0
|
| 140 |
+
}
|
| 141 |
+
}
|
modeling_type_predictor.py
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
"""Standalone loader for U4RASD/TypePredictor."""
|
| 3 |
+
|
| 4 |
+
import json
|
| 5 |
+
import types
|
| 6 |
+
from pathlib import Path
|
| 7 |
+
from typing import Optional, Union
|
| 8 |
+
|
| 9 |
+
import torch
|
| 10 |
+
import torch.nn as nn
|
| 11 |
+
import torch.nn.functional as F
|
| 12 |
+
from huggingface_hub import hf_hub_download
|
| 13 |
+
from transformers import AutoModel, AutoTokenizer, PreTrainedTokenizerFast
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def _patch_neobert_embeddings_for_resize(encoder: nn.Module) -> nn.Module:
|
| 17 |
+
old_vocab_size = int(encoder.config.vocab_size)
|
| 18 |
+
parent = None
|
| 19 |
+
name = None
|
| 20 |
+
layer = None
|
| 21 |
+
for module in encoder.modules():
|
| 22 |
+
for child_name, child in module.named_children():
|
| 23 |
+
if isinstance(child, nn.Embedding) and child.num_embeddings == old_vocab_size:
|
| 24 |
+
parent = module
|
| 25 |
+
name = child_name
|
| 26 |
+
layer = child
|
| 27 |
+
break
|
| 28 |
+
if layer is not None:
|
| 29 |
+
break
|
| 30 |
+
if parent is None or name is None:
|
| 31 |
+
raise RuntimeError(f"Could not find token embedding layer with vocab size {old_vocab_size}.")
|
| 32 |
+
|
| 33 |
+
def get_input_embeddings(self):
|
| 34 |
+
return getattr(parent, name)
|
| 35 |
+
|
| 36 |
+
def set_input_embeddings(self, new_embeddings):
|
| 37 |
+
setattr(parent, name, new_embeddings)
|
| 38 |
+
|
| 39 |
+
encoder.get_input_embeddings = types.MethodType(get_input_embeddings, encoder)
|
| 40 |
+
encoder.set_input_embeddings = types.MethodType(set_input_embeddings, encoder)
|
| 41 |
+
return encoder
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
class NeoAraBERTTypePredictor(nn.Module):
|
| 45 |
+
def __init__(self, base_model: str, tokenizer_size: int, num_labels: int = 21, dropout: float = 0.1):
|
| 46 |
+
super().__init__()
|
| 47 |
+
self.encoder = AutoModel.from_pretrained(base_model, trust_remote_code=True)
|
| 48 |
+
self.encoder = _patch_neobert_embeddings_for_resize(self.encoder)
|
| 49 |
+
try:
|
| 50 |
+
self.encoder.resize_token_embeddings(tokenizer_size, mean_resizing=False)
|
| 51 |
+
except TypeError:
|
| 52 |
+
self.encoder.resize_token_embeddings(tokenizer_size)
|
| 53 |
+
self.encoder.config.vocab_size = int(tokenizer_size)
|
| 54 |
+
self.hidden_size = int(self.encoder.config.hidden_size)
|
| 55 |
+
self.dropout = nn.Dropout(float(dropout))
|
| 56 |
+
self.classifier = nn.Linear(self.hidden_size, int(num_labels))
|
| 57 |
+
|
| 58 |
+
def forward(self, input_ids=None, attention_mask=None, labels=None):
|
| 59 |
+
outputs = self.encoder(input_ids=input_ids, attention_mask=attention_mask)
|
| 60 |
+
hidden = outputs.last_hidden_state if hasattr(outputs, "last_hidden_state") else outputs[0]
|
| 61 |
+
logits = self.classifier(self.dropout(hidden[:, 0, :]))
|
| 62 |
+
result = {"logits": logits}
|
| 63 |
+
if labels is not None:
|
| 64 |
+
result["loss"] = F.cross_entropy(logits, labels.long())
|
| 65 |
+
return result
|
| 66 |
+
|
| 67 |
+
@classmethod
|
| 68 |
+
def from_pretrained(
|
| 69 |
+
cls,
|
| 70 |
+
model_id_or_path: Union[str, Path],
|
| 71 |
+
token: Optional[str] = None,
|
| 72 |
+
map_location: str = "cpu",
|
| 73 |
+
):
|
| 74 |
+
model_id_or_path = str(model_id_or_path)
|
| 75 |
+
local_path = Path(model_id_or_path)
|
| 76 |
+
if local_path.exists():
|
| 77 |
+
config_path = local_path / "type_predictor_config.json"
|
| 78 |
+
weights_path = local_path / "pytorch_model.bin"
|
| 79 |
+
tokenizer_source = model_id_or_path
|
| 80 |
+
else:
|
| 81 |
+
config_path = Path(hf_hub_download(model_id_or_path, "type_predictor_config.json", token=token))
|
| 82 |
+
weights_path = Path(hf_hub_download(model_id_or_path, "pytorch_model.bin", token=token))
|
| 83 |
+
tokenizer_source = model_id_or_path
|
| 84 |
+
|
| 85 |
+
config = json.loads(config_path.read_text(encoding="utf-8"))
|
| 86 |
+
try:
|
| 87 |
+
tokenizer = AutoTokenizer.from_pretrained(
|
| 88 |
+
tokenizer_source, use_fast=True, trust_remote_code=False, token=token
|
| 89 |
+
)
|
| 90 |
+
except Exception:
|
| 91 |
+
tokenizer = PreTrainedTokenizerFast.from_pretrained(
|
| 92 |
+
tokenizer_source, trust_remote_code=False, token=token
|
| 93 |
+
)
|
| 94 |
+
if tokenizer is True or tokenizer is False:
|
| 95 |
+
raise RuntimeError("Tokenizer unexpectedly loaded as a boolean.")
|
| 96 |
+
model = cls(
|
| 97 |
+
base_model=config["base_model"],
|
| 98 |
+
tokenizer_size=len(tokenizer),
|
| 99 |
+
num_labels=config["num_labels"],
|
| 100 |
+
dropout=config["dropout"],
|
| 101 |
+
)
|
| 102 |
+
state_dict = torch.load(weights_path, map_location=map_location, weights_only=False)
|
| 103 |
+
model.load_state_dict(state_dict, strict=True)
|
| 104 |
+
return model, tokenizer, config
|
predictions/test_predictions.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fcf7973d1e70244cde5b8639296e0150392d176f3150037dadfe01ddeaa88a54
|
| 3 |
+
size 11819131
|