Matías Rojas
commited on
Commit
•
e112f5a
1
Parent(s):
d71eb6c
files added
Browse files- finding.py +13 -13
finding.py
CHANGED
@@ -13,28 +13,28 @@ _DESCRIPTION = """\
|
|
13 |
|
14 |
"""
|
15 |
|
16 |
-
_URL = "https://huggingface.co/datasets/mrojas/
|
17 |
-
_TRAINING_FILE = "
|
18 |
-
_DEV_FILE = "
|
19 |
-
_TEST_FILE = "
|
20 |
|
21 |
|
22 |
-
class
|
23 |
-
"""BuilderConfig for
|
24 |
|
25 |
def __init__(self, **kwargs):
|
26 |
-
"""BuilderConfig for
|
27 |
Args:
|
28 |
**kwargs: keyword arguments forwarded to super.
|
29 |
"""
|
30 |
-
super(
|
31 |
|
32 |
|
33 |
-
class
|
34 |
-
"""
|
35 |
|
36 |
BUILDER_CONFIGS = [
|
37 |
-
|
38 |
]
|
39 |
|
40 |
def _info(self):
|
@@ -47,8 +47,8 @@ class Family(datasets.GeneratorBasedBuilder):
|
|
47 |
datasets.features.ClassLabel(
|
48 |
names=[
|
49 |
"O",
|
50 |
-
"B-
|
51 |
-
"I-
|
52 |
]
|
53 |
)
|
54 |
),
|
|
|
13 |
|
14 |
"""
|
15 |
|
16 |
+
_URL = "https://huggingface.co/datasets/mrojas/finding/resolve/main/data/"
|
17 |
+
_TRAINING_FILE = "Finding_train.conll"
|
18 |
+
_DEV_FILE = "Finding_dev.conll"
|
19 |
+
_TEST_FILE = "Finding_test.conll"
|
20 |
|
21 |
|
22 |
+
class FindingConfig(datasets.BuilderConfig):
|
23 |
+
"""BuilderConfig for Finding"""
|
24 |
|
25 |
def __init__(self, **kwargs):
|
26 |
+
"""BuilderConfig for Finding.
|
27 |
Args:
|
28 |
**kwargs: keyword arguments forwarded to super.
|
29 |
"""
|
30 |
+
super(FindingConfig, self).__init__(**kwargs)
|
31 |
|
32 |
|
33 |
+
class Finding(datasets.GeneratorBasedBuilder):
|
34 |
+
"""Finding dataset."""
|
35 |
|
36 |
BUILDER_CONFIGS = [
|
37 |
+
FindingConfig(name="finding", version=datasets.Version("1.0.0"), description="Finding dataset"),
|
38 |
]
|
39 |
|
40 |
def _info(self):
|
|
|
47 |
datasets.features.ClassLabel(
|
48 |
names=[
|
49 |
"O",
|
50 |
+
"B-Finding",
|
51 |
+
"I-Finding",
|
52 |
]
|
53 |
)
|
54 |
),
|