StanBienaives commited on
Commit
a7f1b45
1 Parent(s): 61b8994

update loading script

Browse files
Files changed (4) hide show
  1. LICENSE +2 -0
  2. dataset_info.json +1 -0
  3. jade.parquet +0 -3
  4. jade.py +8 -3
LICENSE ADDED
@@ -0,0 +1,2 @@
 
 
1
+ /
2
+ This dataset is licensed under Creative Commons Attribution 4.0 International License.
dataset_info.json ADDED
@@ -0,0 +1 @@
 
1
+ {"description": " This dataset is an extraction from the OPENDATA/JADE. A list of case laws from the French court \"Conseil d'Etat\".\n", "citation": "", "homepage": "echanges.dila.gouv.fr", "license": "/\n This dataset is licensed under Creative Commons Attribution 4.0 International License.\n", "features": {"title": {"dtype": "string", "id": null, "_type": "Value"}, "content": {"dtype": "string", "id": null, "_type": "Value"}, "summary": {"dtype": "string", "id": null, "_type": "Value"}, "solution": {"dtype": "string", "id": null, "_type": "Value"}, "numero": {"dtype": "string", "id": null, "_type": "Value"}, "publi_receuil": {"dtype": "string", "id": null, "_type": "Value"}, "date": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "french_open_fiscal_texts", "config_name": "default", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 790233334, "num_examples": 83591, "dataset_name": "french_open_fiscal_texts"}, "test": {"name": "test", "num_bytes": 198122747, "num_examples": 20898, "dataset_name": "french_open_fiscal_texts"}}, "download_checksums": {}, "download_size": 0, "post_processing_size": null, "dataset_size": 988356081, "size_in_bytes": 988356081}
jade.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:912ced0c15447d25513b8275eb0708143de6744c6728f7db4991b933d8ff4aff
3
- size 441892975
 
 
 
jade.py CHANGED
@@ -81,14 +81,19 @@ class FrenchOpenFiscalTexts(datasets.GeneratorBasedBuilder):
81
  )
82
 
83
  def _split_generators(self, dl_manager):
84
- self.data_dir = dl_manager.download_and_extract(_URLS["jade"])
 
 
 
 
 
 
 
85
 
86
- df = pd.read_parquet(self.data_dir)
87
 
88
  train = df.sample(frac=0.8,random_state=_SEED)
89
  test = df.drop(train.index)
90
 
91
-
92
  return [
93
  datasets.SplitGenerator(
94
  name=datasets.Split.TRAIN,
81
  )
82
 
83
  def _split_generators(self, dl_manager):
84
+ # self.data_dir = dl_manager.download_and_extract(_URLS["jade"])
85
+
86
+ print(dl_manager.download_config)
87
+ df = pd.read_parquet(dl_manager.download(_URLS["jade"]))
88
+
89
+ print(len(df))
90
+ print(df.head())
91
+
92
 
 
93
 
94
  train = df.sample(frac=0.8,random_state=_SEED)
95
  test = df.drop(train.index)
96
 
 
97
  return [
98
  datasets.SplitGenerator(
99
  name=datasets.Split.TRAIN,