Datasets:
Tasks:
Token Classification
Modalities:
Text
Formats:
parquet
Sub-tasks:
named-entity-recognition
Languages:
English
Size:
10K - 100K
Jake Mitchinson
commited on
Commit
·
ddcf6e1
0
Parent(s):
Initial commit
Browse files- .gitattributes +1 -0
- README.md +122 -0
- data/test.parquet +3 -0
- data/train.parquet +3 -0
- data/validation.parquet +3 -0
- dataset_infos.json +150 -0
.gitattributes
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
task_categories:
|
| 5 |
+
- token-classification
|
| 6 |
+
task_ids:
|
| 7 |
+
- named-entity-recognition
|
| 8 |
+
tags:
|
| 9 |
+
- ner
|
| 10 |
+
- conll2003
|
| 11 |
+
size_categories:
|
| 12 |
+
- 10K<n<100K
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# CoNLL-2003 Named Entity Recognition Dataset
|
| 16 |
+
|
| 17 |
+
This is a self-contained version of the CoNLL-2003 dataset for Named Entity Recognition (NER).
|
| 18 |
+
|
| 19 |
+
**🔒 No `trust_remote_code` required** - This dataset uses only standard parquet files with no custom loading scripts.
|
| 20 |
+
|
| 21 |
+
## Dataset Description
|
| 22 |
+
|
| 23 |
+
The CoNLL-2003 shared task dataset consists of newswire text from the Reuters corpus tagged with four entity types: persons (PER), locations (LOC), organizations (ORG), and miscellaneous (MISC).
|
| 24 |
+
|
| 25 |
+
## Dataset Structure
|
| 26 |
+
|
| 27 |
+
### Data Instances
|
| 28 |
+
|
| 29 |
+
Each instance contains:
|
| 30 |
+
- `id`: Unique identifier for the example
|
| 31 |
+
- `tokens`: List of tokens (words)
|
| 32 |
+
- `pos_tags`: List of part-of-speech tags
|
| 33 |
+
- `chunk_tags`: List of chunk tags
|
| 34 |
+
- `ner_tags`: List of named entity tags
|
| 35 |
+
|
| 36 |
+
### Data Splits
|
| 37 |
+
|
| 38 |
+
- **train**: 14,041 examples
|
| 39 |
+
- **validation**: 3,250 examples
|
| 40 |
+
- **test**: 3,453 examples
|
| 41 |
+
|
| 42 |
+
### Features
|
| 43 |
+
|
| 44 |
+
- **tokens** (list of strings): The words in the sentence
|
| 45 |
+
- **pos_tags** (list of ClassLabel): Part-of-speech tags
|
| 46 |
+
- **chunk_tags** (list of ClassLabel): Chunk tags (phrases)
|
| 47 |
+
- **ner_tags** (list of ClassLabel): Named entity tags with BIO scheme
|
| 48 |
+
- O: Outside any named entity
|
| 49 |
+
- B-PER: Beginning of a person name
|
| 50 |
+
- I-PER: Inside a person name
|
| 51 |
+
- B-ORG: Beginning of an organization name
|
| 52 |
+
- I-ORG: Inside an organization name
|
| 53 |
+
- B-LOC: Beginning of a location name
|
| 54 |
+
- I-LOC: Inside a location name
|
| 55 |
+
- B-MISC: Beginning of a miscellaneous entity
|
| 56 |
+
- I-MISC: Inside a miscellaneous entity
|
| 57 |
+
|
| 58 |
+
## Usage
|
| 59 |
+
|
| 60 |
+
This dataset is completely self-contained and does NOT require `trust_remote_code=True`. All data is bundled in parquet files.
|
| 61 |
+
|
| 62 |
+
### Loading from Hugging Face Hub
|
| 63 |
+
|
| 64 |
+
```python
|
| 65 |
+
from datasets import load_dataset
|
| 66 |
+
|
| 67 |
+
# Load the dataset directly from the Hub
|
| 68 |
+
dataset = load_dataset("YOUR_USERNAME/conll2003")
|
| 69 |
+
|
| 70 |
+
# Access splits
|
| 71 |
+
train_data = dataset["train"]
|
| 72 |
+
validation_data = dataset["validation"]
|
| 73 |
+
test_data = dataset["test"]
|
| 74 |
+
```
|
| 75 |
+
|
| 76 |
+
### Loading from Local Files
|
| 77 |
+
|
| 78 |
+
```python
|
| 79 |
+
from datasets import load_dataset
|
| 80 |
+
|
| 81 |
+
# Load the dataset from local parquet files
|
| 82 |
+
dataset = load_dataset('parquet', data_files={
|
| 83 |
+
'train': 'data/train.parquet',
|
| 84 |
+
'validation': 'data/validation.parquet',
|
| 85 |
+
'test': 'data/test.parquet'
|
| 86 |
+
})
|
| 87 |
+
```
|
| 88 |
+
|
| 89 |
+
### Example Usage
|
| 90 |
+
|
| 91 |
+
```python
|
| 92 |
+
# Get an example
|
| 93 |
+
example = train_data[0]
|
| 94 |
+
print("Tokens:", example["tokens"])
|
| 95 |
+
# Output: ['EU', 'rejects', 'German', 'call', 'to', 'boycott', 'British', 'lamb', '.']
|
| 96 |
+
|
| 97 |
+
print("NER tags:", example["ner_tags"])
|
| 98 |
+
# Output: [3, 0, 7, 0, 0, 0, 7, 0, 0]
|
| 99 |
+
|
| 100 |
+
# Convert NER tags to readable labels
|
| 101 |
+
ner_feature = train_data.features["ner_tags"].feature
|
| 102 |
+
ner_labels = [ner_feature.int2str(tag) for tag in example["ner_tags"]]
|
| 103 |
+
print("NER labels:", ner_labels)
|
| 104 |
+
# Output: ['B-ORG', 'O', 'B-MISC', 'O', 'O', 'O', 'B-MISC', 'O', 'O']
|
| 105 |
+
```
|
| 106 |
+
|
| 107 |
+
## Citation
|
| 108 |
+
|
| 109 |
+
```
|
| 110 |
+
@inproceedings{tjong-kim-sang-de-meulder-2003-introduction,
|
| 111 |
+
title = "Introduction to the {C}o{NLL}-2003 Shared Task: Language-Independent Named Entity Recognition",
|
| 112 |
+
author = "Tjong Kim Sang, Erik F. and De Meulder, Fien",
|
| 113 |
+
booktitle = "Proceedings of the Seventh Conference on Natural Language Learning at {HLT}-{NAACL} 2003",
|
| 114 |
+
year = "2003",
|
| 115 |
+
pages = "142--147",
|
| 116 |
+
url = "https://www.aclweb.org/anthology/W03-0419",
|
| 117 |
+
}
|
| 118 |
+
```
|
| 119 |
+
|
| 120 |
+
## License
|
| 121 |
+
|
| 122 |
+
The dataset is licensed under the same terms as the original CoNLL-2003 dataset.
|
data/test.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7f0541d49ef340c01fb3ac62c56c4f2798de8d07f2f933de15895c1b6b094a25
|
| 3 |
+
size 281535
|
data/train.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d4264892ad73c70e95f85b55754158a4b4269fed152121a31447a973597ceb19
|
| 3 |
+
size 1221036
|
data/validation.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"default": {
|
| 3 |
+
"description": "The CoNLL-2003 shared task dataset for Named Entity Recognition (NER).",
|
| 4 |
+
"citation": "@inproceedings{tjong-kim-sang-de-meulder-2003-introduction,\n title = \"Introduction to the {C}o{NLL}-2003 Shared Task: Language-Independent Named Entity Recognition\",\n author = \"Tjong Kim Sang, Erik F. and De Meulder, Fien\",\n booktitle = \"Proceedings of the Seventh Conference on Natural Language Learning at {HLT}-{NAACL} 2003\",\n year = \"2003\",\n pages = \"142--147\",\n url = \"https://www.aclweb.org/anthology/W03-0419\",\n}",
|
| 5 |
+
"homepage": "https://www.aclweb.org/anthology/W03-0419",
|
| 6 |
+
"license": "",
|
| 7 |
+
"features": {
|
| 8 |
+
"id": {
|
| 9 |
+
"dtype": "string",
|
| 10 |
+
"_type": "Value"
|
| 11 |
+
},
|
| 12 |
+
"tokens": {
|
| 13 |
+
"feature": {
|
| 14 |
+
"dtype": "string",
|
| 15 |
+
"_type": "Value"
|
| 16 |
+
},
|
| 17 |
+
"length": -1,
|
| 18 |
+
"_type": "Sequence"
|
| 19 |
+
},
|
| 20 |
+
"pos_tags": {
|
| 21 |
+
"feature": {
|
| 22 |
+
"names": [
|
| 23 |
+
"\"",
|
| 24 |
+
"''",
|
| 25 |
+
"#",
|
| 26 |
+
"$",
|
| 27 |
+
"(",
|
| 28 |
+
")",
|
| 29 |
+
",",
|
| 30 |
+
".",
|
| 31 |
+
":",
|
| 32 |
+
"``",
|
| 33 |
+
"CC",
|
| 34 |
+
"CD",
|
| 35 |
+
"DT",
|
| 36 |
+
"EX",
|
| 37 |
+
"FW",
|
| 38 |
+
"IN",
|
| 39 |
+
"JJ",
|
| 40 |
+
"JJR",
|
| 41 |
+
"JJS",
|
| 42 |
+
"LS",
|
| 43 |
+
"MD",
|
| 44 |
+
"NN",
|
| 45 |
+
"NNP",
|
| 46 |
+
"NNPS",
|
| 47 |
+
"NNS",
|
| 48 |
+
"NN|SYM",
|
| 49 |
+
"PDT",
|
| 50 |
+
"POS",
|
| 51 |
+
"PRP",
|
| 52 |
+
"PRP$",
|
| 53 |
+
"RB",
|
| 54 |
+
"RBR",
|
| 55 |
+
"RBS",
|
| 56 |
+
"RP",
|
| 57 |
+
"SYM",
|
| 58 |
+
"TO",
|
| 59 |
+
"UH",
|
| 60 |
+
"VB",
|
| 61 |
+
"VBD",
|
| 62 |
+
"VBG",
|
| 63 |
+
"VBN",
|
| 64 |
+
"VBP",
|
| 65 |
+
"VBZ",
|
| 66 |
+
"WDT",
|
| 67 |
+
"WP",
|
| 68 |
+
"WP$",
|
| 69 |
+
"WRB"
|
| 70 |
+
],
|
| 71 |
+
"_type": "ClassLabel"
|
| 72 |
+
},
|
| 73 |
+
"length": -1,
|
| 74 |
+
"_type": "Sequence"
|
| 75 |
+
},
|
| 76 |
+
"chunk_tags": {
|
| 77 |
+
"feature": {
|
| 78 |
+
"names": [
|
| 79 |
+
"O",
|
| 80 |
+
"B-ADJP",
|
| 81 |
+
"I-ADJP",
|
| 82 |
+
"B-ADVP",
|
| 83 |
+
"I-ADVP",
|
| 84 |
+
"B-CONJP",
|
| 85 |
+
"I-CONJP",
|
| 86 |
+
"B-INTJ",
|
| 87 |
+
"I-INTJ",
|
| 88 |
+
"B-LST",
|
| 89 |
+
"I-LST",
|
| 90 |
+
"B-NP",
|
| 91 |
+
"I-NP",
|
| 92 |
+
"B-PP",
|
| 93 |
+
"I-PP",
|
| 94 |
+
"B-PRT",
|
| 95 |
+
"I-PRT",
|
| 96 |
+
"B-SBAR",
|
| 97 |
+
"I-SBAR",
|
| 98 |
+
"B-UCP",
|
| 99 |
+
"I-UCP",
|
| 100 |
+
"B-VP",
|
| 101 |
+
"I-VP"
|
| 102 |
+
],
|
| 103 |
+
"_type": "ClassLabel"
|
| 104 |
+
},
|
| 105 |
+
"length": -1,
|
| 106 |
+
"_type": "Sequence"
|
| 107 |
+
},
|
| 108 |
+
"ner_tags": {
|
| 109 |
+
"feature": {
|
| 110 |
+
"names": [
|
| 111 |
+
"O",
|
| 112 |
+
"B-PER",
|
| 113 |
+
"I-PER",
|
| 114 |
+
"B-ORG",
|
| 115 |
+
"I-ORG",
|
| 116 |
+
"B-LOC",
|
| 117 |
+
"I-LOC",
|
| 118 |
+
"B-MISC",
|
| 119 |
+
"I-MISC"
|
| 120 |
+
],
|
| 121 |
+
"_type": "ClassLabel"
|
| 122 |
+
},
|
| 123 |
+
"length": -1,
|
| 124 |
+
"_type": "Sequence"
|
| 125 |
+
}
|
| 126 |
+
},
|
| 127 |
+
"splits": {
|
| 128 |
+
"train": {
|
| 129 |
+
"name": "train",
|
| 130 |
+
"num_bytes": 6504416,
|
| 131 |
+
"num_examples": 14041,
|
| 132 |
+
"dataset_name": "conll2003"
|
| 133 |
+
},
|
| 134 |
+
"validation": {
|
| 135 |
+
"name": "validation",
|
| 136 |
+
"num_bytes": 1508812,
|
| 137 |
+
"num_examples": 3250,
|
| 138 |
+
"dataset_name": "conll2003"
|
| 139 |
+
},
|
| 140 |
+
"test": {
|
| 141 |
+
"name": "test",
|
| 142 |
+
"num_bytes": 1604588,
|
| 143 |
+
"num_examples": 3453,
|
| 144 |
+
"dataset_name": "conll2003"
|
| 145 |
+
}
|
| 146 |
+
},
|
| 147 |
+
"download_size": 0,
|
| 148 |
+
"dataset_size": 9617816
|
| 149 |
+
}
|
| 150 |
+
}
|