SuzanaB
commited on
Commit
•
de10fa2
1
Parent(s):
76854b4
Revert "Modify data path"
Browse filesThis reverts commit 76854b4c
- janes_tag.py +2 -1
janes_tag.py
CHANGED
@@ -29,6 +29,7 @@ _URL = 'https://huggingface.co/datasets/classla/janes_tag/raw/main/data.zip'
|
|
29 |
_TRAINING_FILE = 'train_all.conllup'
|
30 |
_DEV_FILE = 'dev_all.conllup'
|
31 |
_TEST_FILE = 'test_all.conllup'
|
|
|
32 |
|
33 |
|
34 |
class JanesTag(datasets.GeneratorBasedBuilder):
|
@@ -82,7 +83,7 @@ class JanesTag(datasets.GeneratorBasedBuilder):
|
|
82 |
|
83 |
def _split_generators(self, dl_manager):
|
84 |
"""Returns SplitGenerators."""
|
85 |
-
data_dir = dl_manager.download_and_extract(_URL)
|
86 |
|
87 |
return [
|
88 |
datasets.SplitGenerator(
|
|
|
29 |
_TRAINING_FILE = 'train_all.conllup'
|
30 |
_DEV_FILE = 'dev_all.conllup'
|
31 |
_TEST_FILE = 'test_all.conllup'
|
32 |
+
_DATA_DIR = 'data'
|
33 |
|
34 |
|
35 |
class JanesTag(datasets.GeneratorBasedBuilder):
|
|
|
83 |
|
84 |
def _split_generators(self, dl_manager):
|
85 |
"""Returns SplitGenerators."""
|
86 |
+
data_dir = os.path.join(dl_manager.download_and_extract(_URL), _DATA_DIR)
|
87 |
|
88 |
return [
|
89 |
datasets.SplitGenerator(
|