Datasets:
Broken Download Link
The link, at least, for the ar-en train split is broken/not working.
This is the error message that I received: "---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
in <cell line: 1>()
1 with open("un_multi_hf.txt", "w") as file:
2 file.write(f"وثائق الأمم المتحدة\n\n")
----> 3 un_multi_ds = load_dataset('un_multi', 'ar-en', trust_remote_code=True)
4 file.write(f"English-Arabic Translation\n\n")
5 for row in un_multi_ds["train"]:
10 frames
/usr/local/lib/python3.10/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, token, use_auth_token, ignore_url_params, storage_options, download_desc)
568 )
569 elif response is not None and response.status_code == 404:
--> 570 raise FileNotFoundError(f"Couldn't find file at {url}")
571 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}")
572 if head_error is not None:
FileNotFoundError: Couldn't find file at http://opus.nlpl.eu/download.php?f=MultiUN/v1/moses/ar-en.txt.zip"
I resolved the error by finding the link that works on "opus.nlpl.eu"
This is the line that I ran to load the ar-en train split:
"from datasets import load_dataset
download_url = "https://object.pouta.csc.fi/OPUS-MultiUN/v1/moses/ar-en.txt.zip"
Load the dataset from the download URL
dataset = load_dataset("text", data_files=download_url, split="train")
"
Thanks for reporting, @AhmadYasser1 .
Yes, OPUS recently changed their download URLs and we are working on fixing them. See, e.g.:
Fixed by #4.