Datasets:
Add CEMRC Romanian NER MRC datasets
Browse files- README.md +27 -0
- legalnero/test.parquet +2 -2
- legalnero/train.parquet +2 -2
- legalnero/validation.parquet +2 -2
- simonero/test.parquet +2 -2
- simonero/train.parquet +2 -2
- simonero/validation.parquet +2 -2
README.md
CHANGED
|
@@ -25,9 +25,14 @@ Split files are stored as `parquet` files under one folder per source dataset.
|
|
| 25 |
Each row contains:
|
| 26 |
|
| 27 |
- `example_id`
|
|
|
|
|
|
|
| 28 |
- `source_dataset`
|
| 29 |
- `source_hf_dataset`
|
| 30 |
- `split`
|
|
|
|
|
|
|
|
|
|
| 31 |
- `context_tokens`
|
| 32 |
- `context`
|
| 33 |
- `question`
|
|
@@ -38,6 +43,28 @@ Each row contains:
|
|
| 38 |
- `has_answer`
|
| 39 |
- `n_answers`
|
| 40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
## Generation Settings
|
| 42 |
|
| 43 |
- query style: `descriptive`
|
|
|
|
| 25 |
Each row contains:
|
| 26 |
|
| 27 |
- `example_id`
|
| 28 |
+
- `sentence_id`
|
| 29 |
+
- `query_id`
|
| 30 |
- `source_dataset`
|
| 31 |
- `source_hf_dataset`
|
| 32 |
- `split`
|
| 33 |
+
- `query_style`
|
| 34 |
+
- `query_sampling`
|
| 35 |
+
- `negatives`
|
| 36 |
- `context_tokens`
|
| 37 |
- `context`
|
| 38 |
- `question`
|
|
|
|
| 43 |
- `has_answer`
|
| 44 |
- `n_answers`
|
| 45 |
|
| 46 |
+
## Dataset Construction Method
|
| 47 |
+
|
| 48 |
+
The builder converts token-classification BIO annotations into MRC-style question-answer examples.
|
| 49 |
+
|
| 50 |
+
1. Load each selected source dataset from Hugging Face and process the available train, validation, and test splits.
|
| 51 |
+
2. Map source schema to a shared representation: RoNEC and SiMoNERo provide `tokens` plus `ner_tags`; LegalNERo provides `words` plus `ner`.
|
| 52 |
+
3. Recover BIO label names, remove `B-` and `I-` prefixes, and build the entity-type inventory for that source dataset.
|
| 53 |
+
4. Select Romanian questions from the dataset-specific query maps in `src/data/mrc_queries.py` using the configured query style. Missing labels use generic fallback questions.
|
| 54 |
+
5. Expand each BIO-tagged sentence into one query example per entity type. The original tokens are preserved as `context_tokens`, and `context` is the whitespace-joined token string.
|
| 55 |
+
6. Extract positive answer spans from BIO tags and serialize them as answer text, character starts, and token-level word spans.
|
| 56 |
+
7. Keep absent entity types as negative examples with empty answer arrays, `has_answer=false`, and `n_answers=0`.
|
| 57 |
+
8. Optionally sample train-only negatives when `--negatives sampled` is used; validation and test always use fixed query selection and all negatives for deterministic evaluation.
|
| 58 |
+
9. Use the configured seed for random query selection and train negative sampling, then write deterministic split files, row metadata, and `splits_info.json`.
|
| 59 |
+
|
| 60 |
+
## Repository Layout and Metadata
|
| 61 |
+
|
| 62 |
+
The generated repository stores one folder per source dataset: `ronec/`, `legalnero/`, and `simonero/`. Each folder contains one split file per available split, for example `train.parquet`, `validation.parquet`, and `test.parquet`.
|
| 63 |
+
|
| 64 |
+
`splits_info.json` records the repository id, output format, query style, query sampling mode, negative-example mode, negative ratio, seed, per-source row counts, source Hugging Face dataset names, source URLs, and preserved source licenses.
|
| 65 |
+
|
| 66 |
+
The dataset card keeps a repo-level `license: other` because this combined derivative preserves the original licenses of each included source dataset rather than relicensing them.
|
| 67 |
+
|
| 68 |
## Generation Settings
|
| 69 |
|
| 70 |
- query style: `descriptive`
|
legalnero/test.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c1b8dff174d26c0614bb25a57f22a82c78d5a91f779b934e121fff18cf97e693
|
| 3 |
+
size 1457432
|
legalnero/train.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:40139595062eebc95189c80506dde3b3cbd02332434d0777811b59304192a391
|
| 3 |
+
size 11490058
|
legalnero/validation.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c4ae6fa0f0c6f9356c0d8b4696e151b3df2067fc1984ff2d497d5b570c7f97c2
|
| 3 |
+
size 1484668
|
simonero/test.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bf8ac6395f8bc97330278605fd6f88e7388f4c4721a3b3df80d7683dc242e4e0
|
| 3 |
+
size 737701
|
simonero/train.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9731bcfc02f50b1ac5cbbcc73fd8cbe6376c345a92d67dbbee52c9a887501edb
|
| 3 |
+
size 5566878
|
simonero/validation.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1d0a8771591f512b7961b271e03a493a2c7f1c13d3991cbc462b8e3f8229ba71
|
| 3 |
+
size 713536
|