noamor commited on
Commit
40a164d
·
1 Parent(s): aeae685

Initial public release of ShamNER v1.0

Browse files
LICENSE ADDED
@@ -0,0 +1 @@
 
 
1
+ CC-BY-4.0
README.md ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Spoken-Arabic Named-Entity Dataset (Levantine NER v1.0)
2
+
3
+ A curated corpus of Levantine-Arabic sentences annotated for Named Entities, plus parallel dual-annotator files for assessing annotation noise.
4
+ Ideal for fine-tuning Arabic-BERT–style models on noisy, spoken data and testing cross-register robustness.
5
+
6
+ ---
7
+
8
+ ## 1 Corpus snapshot
9
+
10
+ | statistic | value |
11
+ |----------------------------------------|-------|
12
+ | Sentences (unique set) | **23 422** |
13
+ | Sentences incl. 2nd annotator (A + B) | **29 228** |
14
+ | Tokens (approx.) | ~290 k |
15
+ | Annotated entity spans | **17 589** |
16
+ | Avg. entities ∕ sentence | 0.75 |
17
+ | Annotators | Arzy · Rawan · Reem · Sabil · Wiam · Amir |
18
+ | Rounds | `round1` – `round5` (natural speech) + `round6` (synthetic news/MSA) |
19
+ | File format | JSON Lines (UTF-8) |
20
+
21
+ ### Label inventory
22
+
23
+ | label | description | count |
24
+ |--------|-------------------------|------:|
25
+ | `GPE` | geopolitical entity | 4 601 |
26
+ | `PER` | person | 3 628 |
27
+ | `ORG` | organisation | 1 426 |
28
+ | `MISC` | misc. named item | 1 301 |
29
+ | `FAC` | facility | 947 |
30
+ | `TIMEX`| temporal expression | 926 |
31
+ | `DUC` | product/brand | 711 |
32
+ | `EVE` | event | 487 |
33
+ | `LOC` | (non-GPE) location | 467 |
34
+ | `ANG` | angle/measure | 322 |
35
+ | `WOA` | work of art | 292 |
36
+ | `TTL` | title/honorific | 227 |
37
+
38
+ ---
39
+
40
+ ## 2 File list
41
+
42
+ | file | lines | purpose |
43
+ |------|------:|---------|
44
+ | **`unique_sentences.jsonl`** | 23 422 | canonical training/dev/test pool (one Levantine sentence per line) |
45
+ | **`iaa_A.jsonl`** | 5 806 | first annotator in each inter-annotator pair (not in `unique`) |
46
+ | **`iaa_B.jsonl`** | 5 806 | second annotator for the same sentences (aligned 1-to-1 with `iaa_A`) |
47
+ | `sentences.parquet` / `spans.parquet` | 52 274 / 17 589 | columnar versions for quick Pandas analysis (optional) |
48
+
49
+ ### Record schema (`unique_sentences.jsonl`)
50
+
51
+ ```jsonc
52
+ {
53
+ "doc_id" : 137,
54
+ "doc_name" : "22صدى-الصوت22",
55
+ "sent_id" : 11,
56
+ "orig_ID" : "29891",
57
+ "round" : "round3", // round1-5 natural, round6 synthetic
58
+ "annotator" : "Rawan",
59
+ "text" : "جيب جوال أو أي اشي ضو هيك",
60
+ "source_type": "social_videos",
61
+ "spans": [
62
+ { "start": 4, "end": 8, "label": "DUC" }
63
+ ],
64
+
65
+ // only for round6
66
+ "msa": {
67
+ "text" : "<parallel MSA sentence>",
68
+ "spans" : [{ "start": 5, "end": 16, "label": "LOC" }]
69
+ },
70
+
71
+ // provenance (optional)
72
+ "url" : "https://…",
73
+ "date" : "2019-05-02 18:30:44"
74
+ }
dataset_card.yaml ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: ShamNER
3
+ license: cc-by-4.0
4
+ language:
5
+ - ar
6
+ annotations_creators:
7
+ - expert-annotated
8
+ task_categories:
9
+ - token-classification
10
+ task_ids:
11
+ - named-entity-recognition
12
+ multilinguality: monolingual
13
+ ---
hf_data/dataset_dict.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"splits": ["train", "dev", "test_spoken", "test_msa"]}
hf_data/dev/data-00000-of-00001.arrow ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca5b692f789136f09d6958990fef71128b98c235f0aa7500efefcdc191811ead
3
+ size 1026848
hf_data/dev/dataset_info.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "citation": "",
3
+ "description": "",
4
+ "features": {
5
+ "id": {
6
+ "dtype": "int64",
7
+ "_type": "Value"
8
+ },
9
+ "round": {
10
+ "dtype": "string",
11
+ "_type": "Value"
12
+ },
13
+ "doc_name": {
14
+ "dtype": "string",
15
+ "_type": "Value"
16
+ },
17
+ "doc_id": {
18
+ "dtype": "int64",
19
+ "_type": "Value"
20
+ },
21
+ "annotator": {
22
+ "dtype": "string",
23
+ "_type": "Value"
24
+ },
25
+ "sent_id": {
26
+ "dtype": "int64",
27
+ "_type": "Value"
28
+ },
29
+ "input_ids": {
30
+ "feature": {
31
+ "dtype": "int32",
32
+ "_type": "Value"
33
+ },
34
+ "_type": "Sequence"
35
+ },
36
+ "attention_mask": {
37
+ "feature": {
38
+ "dtype": "int8",
39
+ "_type": "Value"
40
+ },
41
+ "_type": "Sequence"
42
+ },
43
+ "labels": {
44
+ "feature": {
45
+ "dtype": "int64",
46
+ "_type": "Value"
47
+ },
48
+ "_type": "Sequence"
49
+ }
50
+ },
51
+ "homepage": "",
52
+ "license": ""
53
+ }
hf_data/dev/state.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_data_files": [
3
+ {
4
+ "filename": "data-00000-of-00001.arrow"
5
+ }
6
+ ],
7
+ "_fingerprint": "3cdcf26e51681292",
8
+ "_format_columns": null,
9
+ "_format_kwargs": {},
10
+ "_format_type": null,
11
+ "_output_all_columns": false,
12
+ "_split": null
13
+ }
hf_data/test_msa/data-00000-of-00001.arrow ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:511f2dcbccdf05379cea334ef46f9883d262b6716ac065587e1f07a78d89ad56
3
+ size 231872
hf_data/test_msa/dataset_info.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "citation": "",
3
+ "description": "",
4
+ "features": {
5
+ "id": {
6
+ "dtype": "int64",
7
+ "_type": "Value"
8
+ },
9
+ "round": {
10
+ "dtype": "string",
11
+ "_type": "Value"
12
+ },
13
+ "doc_name": {
14
+ "dtype": "string",
15
+ "_type": "Value"
16
+ },
17
+ "doc_id": {
18
+ "dtype": "int64",
19
+ "_type": "Value"
20
+ },
21
+ "annotator": {
22
+ "dtype": "string",
23
+ "_type": "Value"
24
+ },
25
+ "sent_id": {
26
+ "dtype": "int64",
27
+ "_type": "Value"
28
+ },
29
+ "input_ids": {
30
+ "feature": {
31
+ "dtype": "int32",
32
+ "_type": "Value"
33
+ },
34
+ "_type": "Sequence"
35
+ },
36
+ "attention_mask": {
37
+ "feature": {
38
+ "dtype": "int8",
39
+ "_type": "Value"
40
+ },
41
+ "_type": "Sequence"
42
+ },
43
+ "labels": {
44
+ "feature": {
45
+ "dtype": "int64",
46
+ "_type": "Value"
47
+ },
48
+ "_type": "Sequence"
49
+ }
50
+ },
51
+ "homepage": "",
52
+ "license": ""
53
+ }
hf_data/test_msa/state.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_data_files": [
3
+ {
4
+ "filename": "data-00000-of-00001.arrow"
5
+ }
6
+ ],
7
+ "_fingerprint": "978b9a6ae1fe95c4",
8
+ "_format_columns": null,
9
+ "_format_kwargs": {},
10
+ "_format_type": null,
11
+ "_output_all_columns": false,
12
+ "_split": null
13
+ }
hf_data/test_spoken/data-00000-of-00001.arrow ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d6c268809d363584df770d5bcbf8fe19654144c87db3173607f92fe743bb77ff
3
+ size 677224
hf_data/test_spoken/dataset_info.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "citation": "",
3
+ "description": "",
4
+ "features": {
5
+ "id": {
6
+ "dtype": "int64",
7
+ "_type": "Value"
8
+ },
9
+ "round": {
10
+ "dtype": "string",
11
+ "_type": "Value"
12
+ },
13
+ "doc_name": {
14
+ "dtype": "string",
15
+ "_type": "Value"
16
+ },
17
+ "doc_id": {
18
+ "dtype": "int64",
19
+ "_type": "Value"
20
+ },
21
+ "annotator": {
22
+ "dtype": "string",
23
+ "_type": "Value"
24
+ },
25
+ "sent_id": {
26
+ "dtype": "int64",
27
+ "_type": "Value"
28
+ },
29
+ "input_ids": {
30
+ "feature": {
31
+ "dtype": "int32",
32
+ "_type": "Value"
33
+ },
34
+ "_type": "Sequence"
35
+ },
36
+ "attention_mask": {
37
+ "feature": {
38
+ "dtype": "int8",
39
+ "_type": "Value"
40
+ },
41
+ "_type": "Sequence"
42
+ },
43
+ "labels": {
44
+ "feature": {
45
+ "dtype": "int64",
46
+ "_type": "Value"
47
+ },
48
+ "_type": "Sequence"
49
+ }
50
+ },
51
+ "homepage": "",
52
+ "license": ""
53
+ }
hf_data/test_spoken/state.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_data_files": [
3
+ {
4
+ "filename": "data-00000-of-00001.arrow"
5
+ }
6
+ ],
7
+ "_fingerprint": "bb93cafb46bcc2d2",
8
+ "_format_columns": null,
9
+ "_format_kwargs": {},
10
+ "_format_type": null,
11
+ "_output_all_columns": false,
12
+ "_split": null
13
+ }
hf_data/train/data-00000-of-00001.arrow ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e8ef935a888f2351d976d33c3944cf1dd2a6900352b2375144c2400e24d968e1
3
+ size 9156912
hf_data/train/dataset_info.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "citation": "",
3
+ "description": "",
4
+ "features": {
5
+ "id": {
6
+ "dtype": "int64",
7
+ "_type": "Value"
8
+ },
9
+ "round": {
10
+ "dtype": "string",
11
+ "_type": "Value"
12
+ },
13
+ "doc_name": {
14
+ "dtype": "string",
15
+ "_type": "Value"
16
+ },
17
+ "doc_id": {
18
+ "dtype": "int64",
19
+ "_type": "Value"
20
+ },
21
+ "annotator": {
22
+ "dtype": "string",
23
+ "_type": "Value"
24
+ },
25
+ "sent_id": {
26
+ "dtype": "int64",
27
+ "_type": "Value"
28
+ },
29
+ "input_ids": {
30
+ "feature": {
31
+ "dtype": "int32",
32
+ "_type": "Value"
33
+ },
34
+ "_type": "Sequence"
35
+ },
36
+ "attention_mask": {
37
+ "feature": {
38
+ "dtype": "int8",
39
+ "_type": "Value"
40
+ },
41
+ "_type": "Sequence"
42
+ },
43
+ "labels": {
44
+ "feature": {
45
+ "dtype": "int64",
46
+ "_type": "Value"
47
+ },
48
+ "_type": "Sequence"
49
+ }
50
+ },
51
+ "homepage": "",
52
+ "license": ""
53
+ }
hf_data/train/state.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_data_files": [
3
+ {
4
+ "filename": "data-00000-of-00001.arrow"
5
+ }
6
+ ],
7
+ "_fingerprint": "1ffc13131ac359e5",
8
+ "_format_columns": null,
9
+ "_format_kwargs": {},
10
+ "_format_type": null,
11
+ "_output_all_columns": false,
12
+ "_split": null
13
+ }
iaa_A.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
iaa_B.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
label_mapping.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "label2id": {
3
+ "B-ANG": 0,
4
+ "B-DUC": 1,
5
+ "B-EVE": 2,
6
+ "B-FAC": 3,
7
+ "B-GPE": 4,
8
+ "B-LOC": 5,
9
+ "B-MISC": 6,
10
+ "B-ORG": 7,
11
+ "B-PER": 8,
12
+ "B-TIMEX": 9,
13
+ "B-TTL": 10,
14
+ "B-WOA": 11,
15
+ "I-ANG": 12,
16
+ "I-DUC": 13,
17
+ "I-EVE": 14,
18
+ "I-FAC": 15,
19
+ "I-GPE": 16,
20
+ "I-LOC": 17,
21
+ "I-MISC": 18,
22
+ "I-ORG": 19,
23
+ "I-PER": 20,
24
+ "I-TIMEX": 21,
25
+ "I-TTL": 22,
26
+ "I-WOA": 23,
27
+ "O": 24
28
+ },
29
+ "id2label": {
30
+ "0": "B-ANG",
31
+ "1": "B-DUC",
32
+ "2": "B-EVE",
33
+ "3": "B-FAC",
34
+ "4": "B-GPE",
35
+ "5": "B-LOC",
36
+ "6": "B-MISC",
37
+ "7": "B-ORG",
38
+ "8": "B-PER",
39
+ "9": "B-TIMEX",
40
+ "10": "B-TTL",
41
+ "11": "B-WOA",
42
+ "12": "I-ANG",
43
+ "13": "I-DUC",
44
+ "14": "I-EVE",
45
+ "15": "I-FAC",
46
+ "16": "I-GPE",
47
+ "17": "I-LOC",
48
+ "18": "I-MISC",
49
+ "19": "I-ORG",
50
+ "20": "I-PER",
51
+ "21": "I-TIMEX",
52
+ "22": "I-TTL",
53
+ "23": "I-WOA",
54
+ "24": "O"
55
+ }
56
+ }
unique_sentences.jsonl ADDED
The diff for this file is too large to render. See raw diff