debugs
Browse files- bernice-pretrain-data.py +2 -2
- indic_tweet_ids.txt.gz +0 -3
bernice-pretrain-data.py
CHANGED
@@ -50,7 +50,7 @@ _LICENSE = ""
|
|
50 |
# If the data files live in the same folder or repository of the dataset script,
|
51 |
# you can just pass the relative paths to the files instead of URLs.
|
52 |
# Only train data, validation split not provided
|
53 |
-
_BASE_DATA_URL = "data"
|
54 |
# _URLS = {
|
55 |
# "all": f"{_BASE_URL}",
|
56 |
# "indic": ["data/indic_tweet_ids.txt.gz"]
|
@@ -115,7 +115,7 @@ class BernicePretrainData(datasets.GeneratorBasedBuilder):
|
|
115 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
116 |
data_url = f"{_BASE_DATA_URL}/{self.config.name}"
|
117 |
print(f"{data_url=}")
|
118 |
-
print(f"{os.listdir()}")
|
119 |
urls_to_download = [f"{data_url}/{f}" for f in os.listdir(data_url)]
|
120 |
downloaded_files = dl_manager.download_and_extract(urls_to_download)
|
121 |
return [
|
|
|
50 |
# If the data files live in the same folder or repository of the dataset script,
|
51 |
# you can just pass the relative paths to the files instead of URLs.
|
52 |
# Only train data, validation split not provided
|
53 |
+
_BASE_DATA_URL = "https://huggingface.co/datasets/jhu-clsp/bernice-pretrain-data/resolve/main/data"
|
54 |
# _URLS = {
|
55 |
# "all": f"{_BASE_URL}",
|
56 |
# "indic": ["data/indic_tweet_ids.txt.gz"]
|
|
|
115 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
116 |
data_url = f"{_BASE_DATA_URL}/{self.config.name}"
|
117 |
print(f"{data_url=}")
|
118 |
+
print(f"{os.listdir('.')}")
|
119 |
urls_to_download = [f"{data_url}/{f}" for f in os.listdir(data_url)]
|
120 |
downloaded_files = dl_manager.download_and_extract(urls_to_download)
|
121 |
return [
|
indic_tweet_ids.txt.gz
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:b48daccc6c8cc6b2338063ab5500fc001dcf9cb670916fc300c43f49b218365a
|
3 |
-
size 408549963
|
|
|
|
|
|
|
|