Datasets:
Tasks:
Text Generation
Modalities:
Text
Sub-tasks:
language-modeling
Languages:
English
Size:
100K - 1M
License:
Zhangir Azerbayev commited on
Commit ·
bc04843
1
Parent(s): e3d3b09
added clarifying comment
Browse files- fetch_arxiv.py +1 -1
fetch_arxiv.py
CHANGED
|
@@ -133,7 +133,7 @@ def clean_tex_file_some_more(path):
|
|
| 133 |
with open(path) as f:
|
| 134 |
text = f.read()
|
| 135 |
|
| 136 |
-
text = re.sub(r"(?<!\\)%.*", "", text)
|
| 137 |
|
| 138 |
match_obj = re.search(r"\\begin\{document\}", text)
|
| 139 |
if match_obj:
|
|
|
|
| 133 |
with open(path) as f:
|
| 134 |
text = f.read()
|
| 135 |
|
| 136 |
+
text = re.sub(r"(?<!\\)%.*", "", text) # deletes comments
|
| 137 |
|
| 138 |
match_obj = re.search(r"\\begin\{document\}", text)
|
| 139 |
if match_obj:
|