Update czi_drsm based on git version f5bf778
Browse files- czi_drsm.py +4 -8
czi_drsm.py
CHANGED
@@ -60,16 +60,12 @@ import datasets
|
|
60 |
import pandas as pd
|
61 |
from pathlib import Path
|
62 |
|
63 |
-
|
64 |
-
from bigbio.utils import schemas
|
65 |
-
from bigbio.utils.configs import BigBioConfig
|
66 |
-
from bigbio.utils.constants import Lang, Tasks
|
67 |
-
from bigbio.utils.license import Licenses
|
68 |
|
69 |
#from .bigbiohub import BigBioConfig
|
70 |
#from .bigbiohub import Tasks
|
71 |
|
72 |
-
#from .bigbiohub import
|
73 |
|
74 |
_LOCAL = False
|
75 |
|
@@ -147,7 +143,7 @@ _URLS = {
|
|
147 |
'nhs': "https://raw.githubusercontent.com/chanzuckerberg/DRSM-corpus/main/v2/nhs_all_2023_03_31.tsv"
|
148 |
}
|
149 |
|
150 |
-
_SUPPORTED_TASKS = [Tasks.TEXT_CLASSIFICATION]
|
151 |
|
152 |
_SOURCE_VERSION = "1.0.0"
|
153 |
_BIGBIO_VERSION = "1.0.0"
|
@@ -295,7 +291,7 @@ class DRSMBaseDataset(datasets.GeneratorBasedBuilder):
|
|
295 |
|
296 |
# For example bigbio_kb, bigbio_t2t
|
297 |
elif self.config.schema == "bigbio_text":
|
298 |
-
features =
|
299 |
|
300 |
return datasets.DatasetInfo(
|
301 |
description=_DESCRIPTION,
|
|
|
60 |
import pandas as pd
|
61 |
from pathlib import Path
|
62 |
|
63 |
+
from .bigbiohub import text_features, BigBioConfig, Tasks
|
|
|
|
|
|
|
|
|
64 |
|
65 |
#from .bigbiohub import BigBioConfig
|
66 |
#from .bigbiohub import Tasks
|
67 |
|
68 |
+
#from .bigbiohub import
|
69 |
|
70 |
_LOCAL = False
|
71 |
|
|
|
143 |
'nhs': "https://raw.githubusercontent.com/chanzuckerberg/DRSM-corpus/main/v2/nhs_all_2023_03_31.tsv"
|
144 |
}
|
145 |
|
146 |
+
_SUPPORTED_TASKS = [Tasks.TEXT_CLASSIFICATION]
|
147 |
|
148 |
_SOURCE_VERSION = "1.0.0"
|
149 |
_BIGBIO_VERSION = "1.0.0"
|
|
|
291 |
|
292 |
# For example bigbio_kb, bigbio_t2t
|
293 |
elif self.config.schema == "bigbio_text":
|
294 |
+
features = text_features
|
295 |
|
296 |
return datasets.DatasetInfo(
|
297 |
description=_DESCRIPTION,
|