clemsadand
commited on
Commit
•
59add17
1
Parent(s):
5e68a01
Update small_mc4.py
Browse files- small_mc4.py +8 -8
small_mc4.py
CHANGED
@@ -33,7 +33,7 @@ _CITATION = """
|
|
33 |
_URL = "https://github.com/allenai/allennlp/discussions/5056"
|
34 |
|
35 |
# _DATA_URL = "https://huggingface.co/datasets/allenai/c4/resolve/1ddc917116b730e1859edef32896ec5c16be51d0/multilingual/c4-{language}{split_suffix}.tfrecord-{index:05d}-of-{n_shards:05d}.json.gz"
|
36 |
-
_DATA_URL = "https://huggingface.co/datasets/allenai/c4/resolve/main/multilingual/c4-{language}-{index:05d}-of-{n_shards:05d}.json.gz"
|
37 |
|
38 |
|
39 |
|
@@ -45,14 +45,14 @@ _N_SHARDS_PER_SPLIT = {
|
|
45 |
}
|
46 |
|
47 |
|
48 |
-
import requests
|
49 |
|
50 |
-
def check_file_exists(url):
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
|
57 |
|
58 |
|
|
|
33 |
_URL = "https://github.com/allenai/allennlp/discussions/5056"
|
34 |
|
35 |
# _DATA_URL = "https://huggingface.co/datasets/allenai/c4/resolve/1ddc917116b730e1859edef32896ec5c16be51d0/multilingual/c4-{language}{split_suffix}.tfrecord-{index:05d}-of-{n_shards:05d}.json.gz"
|
36 |
+
_DATA_URL = "https://huggingface.co/datasets/allenai/c4/resolve/main/multilingual/c4-{language}.tfrecord-{index:05d}-of-{n_shards:05d}.json.gz"
|
37 |
|
38 |
|
39 |
|
|
|
45 |
}
|
46 |
|
47 |
|
48 |
+
# import requests
|
49 |
|
50 |
+
# def check_file_exists(url):
|
51 |
+
# try:
|
52 |
+
# response = requests.head(url)
|
53 |
+
# return response.status_code == 200
|
54 |
+
# except requests.RequestException:
|
55 |
+
# return False
|
56 |
|
57 |
|
58 |
|