Datasets:
Tasks:
Token Classification
Sub-tasks:
named-entity-recognition
Languages:
Russian
Size:
10K<n<100K
License:
Commit
•
1e482ba
1
Parent(s):
7552760
Move metadata to card YAML tags and compress data (#3)
Browse files- Compress data (f96976cbfba8cc6f6a21a85f7601cfe998af7cd0)
- Refactor config name and dataset info (1e92cab468f45fc8cb419874ca259ccabaf2142a)
- Remove metadata JSON and move to dataset card (fd448a5dffe2f04773e61513d54ca8d346074f96)
- README.md +29 -0
- collection3.py +10 -18
- data/test.txt +0 -0
- data/test.txt.gz +3 -0
- data/train.txt +0 -0
- data/train.txt.gz +3 -0
- data/valid.txt +0 -0
- data/valid.txt.gz +3 -0
- dataset_infos.json +0 -1
README.md
CHANGED
@@ -18,6 +18,35 @@ task_categories:
|
|
18 |
- token-classification
|
19 |
task_ids:
|
20 |
- named-entity-recognition
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
---
|
22 |
|
23 |
# Dataset Card for Collection3
|
|
|
18 |
- token-classification
|
19 |
task_ids:
|
20 |
- named-entity-recognition
|
21 |
+
dataset_info:
|
22 |
+
features:
|
23 |
+
- name: id
|
24 |
+
dtype: string
|
25 |
+
- name: tokens
|
26 |
+
sequence: string
|
27 |
+
- name: ner_tags
|
28 |
+
sequence:
|
29 |
+
class_label:
|
30 |
+
names:
|
31 |
+
0: O
|
32 |
+
1: B-PER
|
33 |
+
2: I-PER
|
34 |
+
3: B-ORG
|
35 |
+
4: I-ORG
|
36 |
+
5: B-LOC
|
37 |
+
6: I-LOC
|
38 |
+
splits:
|
39 |
+
- name: test
|
40 |
+
num_bytes: 935298
|
41 |
+
num_examples: 1922
|
42 |
+
- name: train
|
43 |
+
num_bytes: 4380588
|
44 |
+
num_examples: 9301
|
45 |
+
- name: validation
|
46 |
+
num_bytes: 1020711
|
47 |
+
num_examples: 2153
|
48 |
+
download_size: 878777
|
49 |
+
dataset_size: 6336597
|
50 |
---
|
51 |
|
52 |
# Dataset Card for Collection3
|
collection3.py
CHANGED
@@ -8,6 +8,9 @@ import datasets
|
|
8 |
logger = datasets.logging.get_logger(__name__)
|
9 |
|
10 |
|
|
|
|
|
|
|
11 |
_CITATION = """\
|
12 |
@inproceedings{mozharova-loukachevitch-2016-two-stage-russian-ner,
|
13 |
author={Mozharova, Valerie and Loukachevitch, Natalia},
|
@@ -29,18 +32,16 @@ For more details see https://ieeexplore.ieee.org/document/7584769 and http://lab
|
|
29 |
"""
|
30 |
|
31 |
_URLS = {
|
32 |
-
"train": os.path.join("data", "train.txt"),
|
33 |
-
"dev": os.path.join("data", "valid.txt"),
|
34 |
-
"test": os.path.join("data", "test.txt"),
|
35 |
}
|
36 |
|
37 |
|
38 |
class Collection3(datasets.GeneratorBasedBuilder):
|
39 |
"""Collection3 dataset."""
|
40 |
|
41 |
-
|
42 |
-
datasets.BuilderConfig(name="collection3", version=datasets.Version("1.0.0"), description=_DESCRIPTION)
|
43 |
-
]
|
44 |
|
45 |
def _info(self):
|
46 |
return datasets.DatasetInfo(
|
@@ -51,27 +52,18 @@ class Collection3(datasets.GeneratorBasedBuilder):
|
|
51 |
"tokens": datasets.Sequence(datasets.Value("string")),
|
52 |
"ner_tags": datasets.Sequence(
|
53 |
datasets.features.ClassLabel(
|
54 |
-
names=[
|
55 |
-
"O",
|
56 |
-
"B-PER",
|
57 |
-
"I-PER",
|
58 |
-
"B-ORG",
|
59 |
-
"I-ORG",
|
60 |
-
"B-LOC",
|
61 |
-
"I-LOC",
|
62 |
-
]
|
63 |
)
|
64 |
),
|
65 |
}
|
66 |
),
|
67 |
-
|
68 |
-
homepage="http://labinform.ru/pub/named_entities/index.htm",
|
69 |
citation=_CITATION,
|
70 |
)
|
71 |
|
72 |
def _split_generators(self, dl_manager):
|
73 |
"""Returns SplitGenerators."""
|
74 |
-
data_files = dl_manager.
|
75 |
|
76 |
return [
|
77 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": data_files["train"]}),
|
|
|
8 |
logger = datasets.logging.get_logger(__name__)
|
9 |
|
10 |
|
11 |
+
|
12 |
+
_HOMEPAGE = "http://labinform.ru/pub/named_entities/index.htm"
|
13 |
+
|
14 |
_CITATION = """\
|
15 |
@inproceedings{mozharova-loukachevitch-2016-two-stage-russian-ner,
|
16 |
author={Mozharova, Valerie and Loukachevitch, Natalia},
|
|
|
32 |
"""
|
33 |
|
34 |
_URLS = {
|
35 |
+
"train": os.path.join("data", "train.txt.gz"),
|
36 |
+
"dev": os.path.join("data", "valid.txt.gz"),
|
37 |
+
"test": os.path.join("data", "test.txt.gz"),
|
38 |
}
|
39 |
|
40 |
|
41 |
class Collection3(datasets.GeneratorBasedBuilder):
|
42 |
"""Collection3 dataset."""
|
43 |
|
44 |
+
VERSION = datasets.Version("1.0.0")
|
|
|
|
|
45 |
|
46 |
def _info(self):
|
47 |
return datasets.DatasetInfo(
|
|
|
52 |
"tokens": datasets.Sequence(datasets.Value("string")),
|
53 |
"ner_tags": datasets.Sequence(
|
54 |
datasets.features.ClassLabel(
|
55 |
+
names=["O", "B-PER", "I-PER", "B-ORG", "I-ORG", "B-LOC", "I-LOC",]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
)
|
57 |
),
|
58 |
}
|
59 |
),
|
60 |
+
homepage=_HOMEPAGE,
|
|
|
61 |
citation=_CITATION,
|
62 |
)
|
63 |
|
64 |
def _split_generators(self, dl_manager):
|
65 |
"""Returns SplitGenerators."""
|
66 |
+
data_files = dl_manager.download_and_extract(_URLS)
|
67 |
|
68 |
return [
|
69 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": data_files["train"]}),
|
data/test.txt
DELETED
The diff for this file is too large to render.
See raw diff
|
|
data/test.txt.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b9f53319ee71b7e8e1be03804dc2632cb81dba9c3e9cf0206e09ba5bde36fd76
|
3 |
+
size 129594
|
data/train.txt
DELETED
The diff for this file is too large to render.
See raw diff
|
|
data/train.txt.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:864f3286fe014d15df7932e47e28a1c866c9e772f9acedcbd87b3f26fda10484
|
3 |
+
size 605955
|
data/valid.txt
DELETED
The diff for this file is too large to render.
See raw diff
|
|
data/valid.txt.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f0a59b427ea8d37745975b3ee3c1e5a3a4535125f62cd1fdc04c3f99d9e2695f
|
3 |
+
size 143228
|
dataset_infos.json
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"collection3": {"description": "Collection3 is a Russian dataset for named entity recognition annotated with LOC (location), PER (person), and ORG (organization) tags.\n\nDataset is based on collection Persons-1000 originally containing 1000 news documents labeled only with names of persons.\nAdditional labels were added by Valerie Mozharova and Natalia Loukachevitch.\nConversion to the IOB2 format and splitting into train, validation and test sets was done by DeepPavlov team.\n\nFor more details see https://ieeexplore.ieee.org/document/7584769 and http://labinform.ru/pub/named_entities/index.htm\n", "citation": "@inproceedings{mozharova-loukachevitch-2016-two-stage-russian-ner,\n author={Mozharova, Valerie and Loukachevitch, Natalia},\n booktitle={2016 International FRUCT Conference on Intelligence, Social Media and Web (ISMW FRUCT)},\n title={Two-stage approach in Russian named entity recognition},\n year={2016},\n pages={1-6},\n doi={10.1109/FRUCT.2016.7584769}}\n", "homepage": "http://labinform.ru/pub/named_entities/index.htm", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"num_classes": 7, "names": ["O", "B-PER", "I-PER", "B-ORG", "I-ORG", "B-LOC", "I-LOC"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "builder_name": "collection3", "config_name": "collection3", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 4380572, "num_examples": 9301, "dataset_name": "collection3"}, "validation": {"name": "validation", "num_bytes": 1020695, "num_examples": 2153, "dataset_name": "collection3"}, "test": {"name": "test", "num_bytes": 935282, "num_examples": 1922, "dataset_name": "collection3"}}, "download_checksums": {}, "download_size": 0, "post_processing_size": null, "dataset_size": 6336549, "size_in_bytes": 6336549}}
|
|
|
|