Datasets:
andreaschandra
commited on
Commit
•
508bd72
1
Parent(s):
f4ea8b7
download file
Browse files- causalqa.py +8 -5
causalqa.py
CHANGED
@@ -50,13 +50,16 @@ def OneBuild(data_info,feat_meta):
|
|
50 |
all_config.append(cqa_config)
|
51 |
return all_config
|
52 |
|
53 |
-
print(os.listdir())
|
54 |
-
|
55 |
-
_FILE_PATH = os.getcwd()
|
56 |
_PATH_SOURCE = os.path.join(_FILE_PATH, 'source')
|
|
|
57 |
_PATH_METADATA = os.path.join(_PATH_SOURCE, 'features_metadata.yaml')
|
58 |
-
|
59 |
-
|
|
|
|
|
|
|
|
|
|
|
60 |
_HOMEPAGE = _FILE_URL['homepage']
|
61 |
|
62 |
all_files = _FILE_URL['files']
|
|
|
50 |
all_config.append(cqa_config)
|
51 |
return all_config
|
52 |
|
|
|
|
|
|
|
53 |
_PATH_SOURCE = os.path.join(_FILE_PATH, 'source')
|
54 |
+
|
55 |
_PATH_METADATA = os.path.join(_PATH_SOURCE, 'features_metadata.yaml')
|
56 |
+
_PATH_DATASET = os.path.join(_PATH_SOURCE, 'dataset_info.json')
|
57 |
+
_PATH_DESCRIPTION = os.path.join(_PATH_SOURCE, 'dataset_description.txt')
|
58 |
+
|
59 |
+
datasets.utils.download_manager.DownloadManager.download([_PATH_METADATA, _PATH_DATASET, _PATH_DESCRIPTION,])
|
60 |
+
|
61 |
+
_FILE_URL = json.load(open(_PATH_DATASET))
|
62 |
+
_CAUSALQA_DESCRIPTION = ''.join(open(_PATH_DESCRIPTION).readlines())
|
63 |
_HOMEPAGE = _FILE_URL['homepage']
|
64 |
|
65 |
all_files = _FILE_URL['files']
|