Busani
commited on
Commit
·
806a8ab
1
Parent(s):
edfd0a6
More debugging
Browse files
cosuju.py
CHANGED
@@ -27,7 +27,7 @@ Court Summaries and Judgements (CoSuJu)
|
|
27 |
"""
|
28 |
|
29 |
# Redundant but may useful in future.
|
30 |
-
_URL =
|
31 |
_URLS = {
|
32 |
'train': _URL + 'mini-train-v1.0.json'
|
33 |
}
|
@@ -91,7 +91,7 @@ class Cosuju(datasets.GeneratorBasedBuilder):
|
|
91 |
def _split_generators(self, dl_manager):
|
92 |
downloaded_files = dl_manager.download_and_extract(_URLS)
|
93 |
|
94 |
-
raise
|
95 |
|
96 |
return [
|
97 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={'filepath': downloaded_files['train']}),
|
|
|
27 |
"""
|
28 |
|
29 |
# Redundant but may useful in future.
|
30 |
+
_URL = "https://frtnx.github.io/cosuju-extractor/dataset/"
|
31 |
_URLS = {
|
32 |
'train': _URL + 'mini-train-v1.0.json'
|
33 |
}
|
|
|
91 |
def _split_generators(self, dl_manager):
|
92 |
downloaded_files = dl_manager.download_and_extract(_URLS)
|
93 |
|
94 |
+
# raise ValueEror(f'filepath: {downloaded_files}')
|
95 |
|
96 |
return [
|
97 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={'filepath': downloaded_files['train']}),
|