Fix paths for Windows
Browse files- 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
|
154 |
-
"chebi_nactem_abstr_ann2": "ChEBI
|
155 |
-
"chebi_nactem_fullpaper": "ChEBI
|
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]
|