ryo0634 commited on
Commit
eb8aaf8
1 Parent(s): 62b3730

Add a clearer error message for MARC-ja.

Browse files
Files changed (1) hide show
  1. JGLUE.py +5 -0
JGLUE.py CHANGED
@@ -241,6 +241,11 @@ class JGLUE(ds.GeneratorBasedBuilder):
241
  raise ValueError(f"Invalid config name: {self.config.name}")
242
 
243
  def __split_generators_marc_ja(self, dl_manager: ds.DownloadManager):
 
 
 
 
 
244
  file_paths = dl_manager.download_and_extract(_URLS[self.config.name])
245
 
246
  filter_review_id_list = file_paths["filter_review_id_list"]
 
241
  raise ValueError(f"Invalid config name: {self.config.name}")
242
 
243
  def __split_generators_marc_ja(self, dl_manager: ds.DownloadManager):
244
+ raise RuntimeError(
245
+ "The Amazon Review Dataset is currently no longer public. "
246
+ "For sentiment analysis, consider using the `llm-book/wrime-sentiment` dataset instead."
247
+ )
248
+
249
  file_paths = dl_manager.download_and_extract(_URLS[self.config.name])
250
 
251
  filter_review_id_list = file_paths["filter_review_id_list"]