Datasets:
Tasks:
Token Classification
Sub-tasks:
named-entity-recognition
Languages:
Russian
Size:
10K<n<100K
License:
Commit
•
19c8a64
1
Parent(s):
df1f8c6
Fix for remote repository
Browse files- collection3.py +6 -8
collection3.py
CHANGED
@@ -28,9 +28,11 @@ Conversion to the IOB2 format and splitting into train, validation and test sets
|
|
28 |
For more details see https://ieeexplore.ieee.org/document/7584769 and http://labinform.ru/pub/named_entities/index.htm
|
29 |
"""
|
30 |
|
31 |
-
|
32 |
-
|
33 |
-
|
|
|
|
|
34 |
|
35 |
|
36 |
class Collection3(datasets.GeneratorBasedBuilder):
|
@@ -69,11 +71,7 @@ class Collection3(datasets.GeneratorBasedBuilder):
|
|
69 |
|
70 |
def _split_generators(self, dl_manager):
|
71 |
"""Returns SplitGenerators."""
|
72 |
-
data_files =
|
73 |
-
"train": os.path.join('data', _TRAINING_FILE),
|
74 |
-
"dev": os.path.join('data', _DEV_FILE),
|
75 |
-
"test": os.path.join('data', _TEST_FILE),
|
76 |
-
}
|
77 |
|
78 |
return [
|
79 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": data_files["train"]}),
|
|
|
28 |
For more details see https://ieeexplore.ieee.org/document/7584769 and http://labinform.ru/pub/named_entities/index.htm
|
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):
|
|
|
71 |
|
72 |
def _split_generators(self, dl_manager):
|
73 |
"""Returns SplitGenerators."""
|
74 |
+
data_files = dl_manager.download(_URLS)
|
|
|
|
|
|
|
|
|
75 |
|
76 |
return [
|
77 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": data_files["train"]}),
|