Datasets:

Modalities:
Text
Languages:
English
Size:
< 1K
Libraries:
Datasets
License:
albertvillanova HF staff commited on
Commit
2d757a8
·
verified ·
1 Parent(s): 0154f8f

Fix paths for Windows

Browse files
Files changed (1) hide show
  1. chebi_nactem.py +4 -4
chebi_nactem.py CHANGED
@@ -13,7 +13,7 @@
13
  # See the License for the specific language governing permissions and
14
  # limitations under the License.
15
 
16
- import os
17
  from pathlib import Path
18
  from typing import Dict, List, Tuple
19
 
@@ -150,9 +150,9 @@ class ChebiNactemDatasset(datasets.GeneratorBasedBuilder):
150
  data_dir = dl_manager.download_and_extract(urls)
151
 
152
  subset_paths = {
153
- "chebi_nactem_abstr_ann1": "ChEBI/abstracts/Annotator1",
154
- "chebi_nactem_abstr_ann2": "ChEBI/abstracts/Annotator2",
155
- "chebi_nactem_fullpaper": "ChEBI/fullpapers",
156
  }
157
 
158
  subset_dir = Path(data_dir) / subset_paths[self.config.subset_id]
 
13
  # See the License for the specific language governing permissions and
14
  # limitations under the License.
15
 
16
+ import os.path
17
  from pathlib import Path
18
  from typing import Dict, List, Tuple
19
 
 
150
  data_dir = dl_manager.download_and_extract(urls)
151
 
152
  subset_paths = {
153
+ "chebi_nactem_abstr_ann1": os.path.join("ChEBI", "abstracts", "Annotator1"),
154
+ "chebi_nactem_abstr_ann2": os.path.join("ChEBI", "abstracts", "Annotator2"),
155
+ "chebi_nactem_fullpaper": os.path.join("ChEBI", "fullpapers"),
156
  }
157
 
158
  subset_dir = Path(data_dir) / subset_paths[self.config.subset_id]