Sam
commited on
Commit
·
d71b1b7
1
Parent(s):
1a5f112
Update from sam
Browse files
argument_mining_dataloader.py
CHANGED
@@ -56,14 +56,14 @@ class ArguementMiningCL2017Config(datasets.BuilderConfig):
|
|
56 |
Args:
|
57 |
**kwargs: keyword arguments forwarded to super.
|
58 |
"""
|
59 |
-
super(
|
60 |
|
61 |
|
62 |
-
class
|
63 |
-
"""
|
64 |
|
65 |
BUILDER_CONFIGS = [
|
66 |
-
|
67 |
]
|
68 |
|
69 |
def _info(self):
|
@@ -120,7 +120,7 @@ class Conll2003(datasets.GeneratorBasedBuilder):
|
|
120 |
tokens = []
|
121 |
chunk_tags = []
|
122 |
else:
|
123 |
-
#
|
124 |
splits = line.split("\t")
|
125 |
tokens.append(splits[0])
|
126 |
chunk_tags.append(splits[1])
|
|
|
56 |
Args:
|
57 |
**kwargs: keyword arguments forwarded to super.
|
58 |
"""
|
59 |
+
super(ArguementMiningCL2017Config, self).__init__(**kwargs)
|
60 |
|
61 |
|
62 |
+
class ArguementMiningCL2017(datasets.GeneratorBasedBuilder):
|
63 |
+
"""CL2017 dataset."""
|
64 |
|
65 |
BUILDER_CONFIGS = [
|
66 |
+
ArguementMiningCL2017(name="cl2017", version=datasets.Version("1.0.0"), description="Cl2017 dataset"),
|
67 |
]
|
68 |
|
69 |
def _info(self):
|
|
|
120 |
tokens = []
|
121 |
chunk_tags = []
|
122 |
else:
|
123 |
+
# cl2017 tokens are space separated
|
124 |
splits = line.split("\t")
|
125 |
tokens.append(splits[0])
|
126 |
chunk_tags.append(splits[1])
|