Datasets:
三洋三洋
commited on
Commit
•
1c11755
1
Parent(s):
f9e4854
2023-08-15
Browse files- latex-formulas.py +4 -3
latex-formulas.py
CHANGED
@@ -5,9 +5,9 @@ import datasets
|
|
5 |
import json
|
6 |
|
7 |
|
8 |
-
RAW_METADATA_URL = r'/
|
9 |
|
10 |
-
DIR_URL = r'/
|
11 |
|
12 |
|
13 |
class LatexFormulasConfig(datasets.BuilderConfig):
|
@@ -56,7 +56,8 @@ class LatexFormulas(datasets.GeneratorBasedBuilder):
|
|
56 |
]
|
57 |
|
58 |
if self.config.name == "tokenized_formulas":
|
59 |
-
dir_path = Path(data_path)
|
|
|
60 |
assert dir_path.is_dir()
|
61 |
|
62 |
return [
|
|
|
5 |
import json
|
6 |
|
7 |
|
8 |
+
RAW_METADATA_URL = r'https://huggingface.co/datasets/OleehyO/latex-formulas/resolve/main/raw_formulas.jsonl'
|
9 |
|
10 |
+
DIR_URL = r'https://huggingface.co/datasets/OleehyO/latex-formulas/resolve/main/data.tar.gz'
|
11 |
|
12 |
|
13 |
class LatexFormulasConfig(datasets.BuilderConfig):
|
|
|
56 |
]
|
57 |
|
58 |
if self.config.name == "tokenized_formulas":
|
59 |
+
# dir_path = Path(data_path)
|
60 |
+
dir_path = Path(dl_manager.download_and_extract(data_path))
|
61 |
assert dir_path.is_dir()
|
62 |
|
63 |
return [
|