Datasets:
Fix: try get dataviewer work WIP
Browse files
utcd.py
CHANGED
@@ -7,7 +7,7 @@ from os.path import join as os_join
|
|
7 |
from typing import List
|
8 |
|
9 |
import datasets
|
10 |
-
|
11 |
|
12 |
_DESCRIPTION = """
|
13 |
UTCD is a compilation of 18 classification datasets spanning 3 categories of Sentiment,
|
@@ -49,8 +49,11 @@ class UtcdConfig(datasets.BuilderConfig):
|
|
49 |
return f'{prefix}{domain_str}'
|
50 |
|
51 |
|
52 |
-
|
|
|
|
|
53 |
_config = json.load(f)
|
|
|
54 |
_split2hf_split = dict(train=datasets.Split.TRAIN, eval=datasets.Split.VALIDATION, test=datasets.Split.TEST)
|
55 |
|
56 |
|
|
|
7 |
from typing import List
|
8 |
|
9 |
import datasets
|
10 |
+
from huggingface_hub import hf_hub_download
|
11 |
|
12 |
_DESCRIPTION = """
|
13 |
UTCD is a compilation of 18 classification datasets spanning 3 categories of Sentiment,
|
|
|
49 |
return f'{prefix}{domain_str}'
|
50 |
|
51 |
|
52 |
+
config_fnm = hf_hub_download(repo_id='claritylab/utcd', filename='_utcd_info.json')
|
53 |
+
print('file name: ', config_fnm)
|
54 |
+
with open(config_fnm) as f:
|
55 |
_config = json.load(f)
|
56 |
+
print(_config)
|
57 |
_split2hf_split = dict(train=datasets.Split.TRAIN, eval=datasets.Split.VALIDATION, test=datasets.Split.TEST)
|
58 |
|
59 |
|